/* Game analysis page: win odds for one game. */
.gokick{display:block;font-size:12px;letter-spacing:.14em;font-weight:700;color:var(--mute);text-transform:uppercase;margin-top:4px}
.gonum{font-family:"Sora";font-size:64px;font-weight:600;letter-spacing:-.05em;line-height:1;margin-top:2px}
.goat{font-size:15px;color:#5B636F;margin:2px 0 0;min-height:22px;max-width:75%}
.gowrap{margin-top:14px;touch-action:pan-y;cursor:crosshair;outline:none;border-radius:16px;user-select:none}
.gochart{display:block;overflow:visible;max-width:100%}
.golegend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:13px;color:#5B636F;max-width:75%;text-align:left}
.golegend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
.gocap{font-size:12px;line-height:1.4;color:var(--mute);margin:2px 0 14px;max-width:75%;text-align:left}
.gofacts{margin:0 0 6px}
.gonote{font-size:15px;color:#5B636F;margin:18px 0}
@media (min-width:1024px){
#goPage{background:radial-gradient(90% 60% at 70% 0%,#FFFFFF,#F1F4F8 55%,#E6EBF2)}
#goPage .pbody{max-width:1240px;padding:var(--mt) 40px 72px}
#goPage .phead{margin:0 0 18px;text-align:left;grid-template-columns:44px 1fr}
#goPage .phead>span{display:none}
#goPage .phead>div{padding-left:14px}
#goPage .gogrid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:48px;align-items:start}
#goPage .gomain,#goPage .goside{min-width:0}
#goPage .gonum{font-size:96px;letter-spacing:-.055em;line-height:.95}
#goPage .goat{font-size:17px}
#goPage .gofacts{grid-template-columns:1fr 1fr;gap:10px}
#goPage .gofacts .cell:last-child{grid-column:1/-1}
#goPage .cell{background:#fff;box-shadow:0 10px 24px -20px rgba(21,23,28,.35);padding:14px 16px;border-radius:18px}
}


/* rating history: Robinhood style ranges as plain text, and a gear for the chart style */
.csrow{display:flex;align-items:stretch;gap:0;margin-top:12px;min-height:44px}
.cswhen{display:none}
#csRange{display:flex;flex:1;justify-content:space-between;background:none;padding:0;gap:0}
#csRange button{flex:1;display:flex;align-items:center;justify-content:center;padding:0 4px;border-radius:0;background:none;box-shadow:none;font-size:14px;font-weight:600;color:var(--mute);position:relative}
#csRange button[aria-pressed=true]{background:none;box-shadow:none;color:var(--ink)}
#csRange button[aria-pressed=true]::after{content:"";position:absolute;left:50%;bottom:2px;width:16px;height:2px;margin-left:-8px;border-radius:2px;background:var(--ink)}
.csgearwrap{position:relative;display:flex;align-items:stretch}
.csgear{width:34px;height:100%;min-height:44px;display:grid;place-items:center;color:var(--mute);background:none;box-shadow:none;transition:color .2s}
.csgear svg{width:20px;height:20px}
.csgear:hover,.csgear[aria-expanded=true]{color:var(--ink)}
.csmenu{position:absolute;right:0;bottom:46px;z-index:5;min-width:160px;padding:6px;border-radius:16px;background:#fff;box-shadow:0 18px 40px -16px rgba(21,23,28,.4),0 0 0 1px rgba(21,23,28,.05)}
.csmenu[hidden]{display:none}
.csmenu button{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:500;color:var(--ink)}
.csmenu button[aria-pressed=true]{background:rgba(21,23,28,.06);font-weight:600}
.csmenu.down{bottom:auto;top:46px}
#csChart .csstep{filter:none!important;stroke-width:2!important}
@media (min-width:1024px){
/* Polymarket layout: the date range on the left, the ranges and the gear together on the right, all on one line under the chart */
.csrow{align-items:center;justify-content:space-between;margin-top:6px;min-height:40px}
.cswhen{display:inline-flex;align-items:center;gap:8px;font-size:15px;color:#7C8590}
.cswhen::before{content:"";width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8590' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat}
#csRange{flex:none;justify-content:flex-end;gap:2px;margin-left:auto}
#csRange button{flex:none;padding:8px 12px;font-size:16px;font-weight:500;color:#7C8590}
#csRange button[aria-pressed=true]{color:var(--ink);font-weight:700}
#csRange button[aria-pressed=true]::after{display:none}
.csgear{min-height:36px;height:36px;width:36px}
}

/* more actions: a three dot button and a small sheet */
.moreb{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--ink);background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 1px rgba(21,23,28,.1);flex:none;transition:background .2s}
.moreb svg{width:20px;height:20px}
.moreb:hover{background:#fff}
.moreb[hidden]{display:none}
#labMore{display:grid;margin-right:8px;align-self:center}
.sheet.msheet{height:auto;min-height:0;max-height:80dvh;z-index:120}
.msrows{display:grid;gap:4px;margin-top:10px}
.msrow{display:grid;gap:2px;text-align:left;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px #fff}
.msrow b{font-size:16px;font-weight:600}
.msrow small{font-size:13px;color:#5B636F}
.msrow:disabled{opacity:.45}
.msrow:not(:disabled):hover{background:#fff}
/* Lab with a game: only the two main buttons stay; everything else is behind the three dots */
#t-lab.gamesrc #labActs{display:none!important}
#t-lab.gamesrc .labplay:has(#playItHere:not([hidden])) #playItBtn{display:none}
#t-lab.gamesrc .labplay .pillbtn:not([hidden]){flex:1 1 calc(50% - 4px)!important}
#t-lab.gamesrc #playItBtn:not([hidden]){flex-basis:calc(50% - 4px)!important}
#t-lab.gamesrc #playEng{background:rgba(21,23,28,.05);color:var(--ink)}
#t-lab.gamesrc #playEng svg{display:none}
#t-lab.gamesrc #playItHere:not([hidden]){background:var(--ink);color:#fff}
@media (min-width:1024px){
#miniSheet{left:calc(var(--sb) + (100vw - var(--sb)) / 2);right:auto;top:50%;bottom:auto;width:min(460px,calc(100vw - var(--sb) - 64px));max-width:none;border-radius:30px;transform:translate(-50%,-46%) scale(.97);opacity:0;visibility:hidden;box-shadow:0 40px 90px -30px rgba(21,23,28,.55),inset 0 0 0 1px rgba(255,255,255,.8);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .25s,visibility 0s .3s}
#miniSheet.on{transform:translate(-50%,-50%);opacity:1;visibility:visible;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .25s}
#miniSheet .sbody{padding:24px 24px 26px}
}

/* Game analysis page: one main action, quiet links, and plain collapsible sections (Polymarket style) */
.gogrid{display:flex;flex-direction:column}
.gomain,.goside{display:contents}
.gohero{order:1}.gochartblk{order:2}.gocta{order:3}#goSumSec{order:4}#goMomSec{order:5}.gofacts{order:6}
.gocta{margin:6px 0 4px}
.gocta .btn{padding:16px 14px;font-size:16px}
.golinks{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:6px}
.golinks button{padding:10px 6px;font-size:14px;font-weight:600;color:#5B636F;transition:color .2s}
.golinks button:hover{color:var(--ink)}
.golinks i{font-style:normal;color:#B0B6BF}
.gosec{border-top:1px solid var(--hair)}
.gosec summary{display:flex;justify-content:space-between;align-items:center;list-style:none;cursor:pointer;padding:22px 0;font-family:"Sora";font-size:19px;font-weight:600;letter-spacing:-.02em}
.gosec summary::-webkit-details-marker{display:none}
.gosec summary::after{content:"";width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8590' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.gosec:not([open]) summary::after{transform:rotate(-90deg)}
.gosec .gobody{padding:0 0 24px}
.gosum{font-family:"Hanken Grotesk";font-size:16px;line-height:1.65;color:#4A525E;margin:0;max-width:62ch}
.gosumnote{font-size:13px;color:var(--mute);margin:10px 0 0}
#goWait .gocta{margin-top:10px}
@media (min-width:1024px){
#goPage .gogrid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:0 48px;align-items:start}
#goPage .gomain,#goPage .goside{display:block;min-width:0}
#goPage .goside{position:sticky;top:32px}
#goPage .gocta{margin:0 0 20px}
#goPage .gofacts{margin-top:8px}
#goWait{max-width:720px}
}
.gocta .btn{display:block;width:100%}
@media (min-width:1024px){#goPage .goside .gosec{margin-top:8px}}

/* three dots: no circle, top right of the card in line with the title */
#labMore{background:none;box-shadow:none;width:36px;height:36px;color:#5B636F}
#labMore:hover{background:none;color:var(--ink)}
@media (min-width:1024px){
#t-lab .dhead{position:relative}
#t-lab .dhead #labMore{position:absolute;top:16px;right:14px;margin:0;z-index:2}
}
@media (max-width:1023px){
#t-lab .labtop{grid-template-columns:minmax(0,1fr) auto auto auto}
#t-lab #labMore{margin-right:0;width:32px;height:36px}
}
/* the rating history hero keeps one height, so the chart never moves while you hover */
#chartPage .cphero .chip{display:inline-flex;align-items:center;gap:4px;min-height:32px;box-sizing:border-box}
#chartPage .cphero{min-height:var(--heroh,0)}

/* smooth scanning: the crosshair, dots and labels glide a short way instead of snapping */
#goHov line,#goHov circle,#goHov text{transition:transform .09s cubic-bezier(.2,.8,.2,1)}
@media (prefers-reduced-motion:reduce){#goHov line,#goHov circle,#goHov text{transition:none}}

/* Openings: a page, not a bottom sheet */
#opSheet{z-index:46}
#opSheet .opfilters{display:grid;gap:10px;margin:14px 0 12px}
#opSheet .oprow{display:grid;grid-template-columns:62px 1fr;align-items:center;gap:10px}
#opSheet .oplab{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#6B7280}
#opSheet .oprow .seg{display:flex;width:100%}#opSheet .oprow .seg button{flex:1;padding:10px 4px;font-size:13.5px;min-width:0}
#opSheet .opsearch{margin-top:12px}
@media (min-width:1024px){
#opSheet{background:radial-gradient(90% 60% at 70% 0%,#FFFFFF,#F1F4F8 55%,#E6EBF2)}
#opSheet .pbody{max-width:1120px;padding:var(--mt) 40px 72px}
#opSheet .phead{margin:0 0 18px;text-align:left;grid-template-columns:44px 1fr}
#opSheet .phead>span{display:none}
#opSheet .phead>div{padding-left:14px}
#opSheet .opsearch{max-width:none}
#opSheet #opRows,#opSheet #opLines{display:grid;grid-template-columns:1fr 1fr;column-gap:48px}
}

/* Lab, any source: two main buttons, the rest behind the three dots */
#t-lab #labActs{display:none!important}
#t-lab .labplay{display:flex;flex-wrap:wrap;gap:8px}
#t-lab .labplay .pillbtn:not([hidden]){flex:1 1 calc(50% - 4px);padding:13px 10px;font-size:14px;font-weight:600;white-space:nowrap;line-height:1.2;justify-content:center}
/* Play the engine is always the secondary button (white, platinum border, no dark edge); the ink one beside it is the main action */
#t-lab #playEng{background:#fff;color:var(--ink);border:0;box-shadow:inset 0 0 0 1.5px rgba(21,23,28,.16)}
#t-lab #playEng svg{display:none}
#t-lab.prac #practiceBtn,#t-lab.gamesrc #practiceBtn{display:none}

/* the more menu: a small popover under the three dots */
.scrim.pop{background:rgba(21,23,28,.04);backdrop-filter:none;-webkit-backdrop-filter:none}
#miniSheet.pop{right:auto;bottom:auto;height:auto;min-height:0;max-height:72dvh;border-radius:20px;transform:translateY(-6px) scale(.97);transform-origin:top right;opacity:0;visibility:hidden;margin:0;box-shadow:0 24px 60px -20px rgba(21,23,28,.45),0 0 0 1px rgba(21,23,28,.06);transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .15s,visibility 0s .2s}
#miniSheet.pop.on{transform:none;opacity:1;visibility:visible;transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .15s}
#miniSheet.pop .sbody{padding:8px}
#miniSheet.pop .shead{display:none}
#miniSheet.pop .msrows{margin-top:0}
#miniSheet.pop .msrow{background:none;box-shadow:none;padding:12px 14px;border-radius:12px}
#miniSheet.pop .msrow:not(:disabled):hover{background:rgba(21,23,28,.05)}
/* back chevron in the Lab title row: only when a game is loaded */
#labBack{display:none;margin-right:6px;background:none;box-shadow:none;width:36px;height:40px;color:var(--ink)}
#labBack:hover{background:none}
#t-lab.gamesrc #labBack{display:grid}
#t-lab .labtop{align-items:center}
@media (max-width:1023px){#t-lab.gamesrc .labtop{grid-template-columns:auto minmax(0,1fr) auto auto auto}}
@media (min-width:1024px){
#t-lab.gamesrc .dhead .labtop{grid-template-columns:auto minmax(0,1fr);padding-right:44px}
}

/* popover, like a native menu: single line items, 44px rows, one hairline before the last group */
#miniSheet.pop{width:220px!important;border-radius:16px;box-shadow:0 12px 32px -8px rgba(21,23,28,.28),0 0 0 1px rgba(21,23,28,.07);background:#fff}
#miniSheet.pop .sbody{padding:6px}
#miniSheet.pop .msrows{gap:0}
#miniSheet.pop .msrow{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;background:none;box-shadow:none}
#miniSheet.pop .msrow b{font-size:15px;font-weight:500}
#miniSheet.pop .msrow small{display:none}
#miniSheet.pop .msrow:disabled{opacity:.4}
#miniSheet.pop .msrow+.msrow.sep{margin-top:7px;position:relative}
#miniSheet.pop .msrow.sep::before{content:"";position:absolute;left:8px;right:8px;top:-4px;height:1px;background:var(--hair)}
#miniSheet.pop .sbody{padding:6px!important}#miniSheet.pop .msrows{margin:0!important}

/* key moment cards: a small board, the tag, the move and one plain reason */
.gocard{display:grid;grid-template-columns:112px 1fr;gap:14px;align-items:center;width:100%;text-align:left;padding:10px 12px;margin:0 -12px 2px;width:calc(100% + 24px);border-radius:16px;transition:background .2s}
.gocard:hover{background:rgba(21,23,28,.035)}.gocard.on{background:rgba(21,23,28,.06)}
.gimini{position:relative;display:block;width:112px;height:112px;border-radius:10px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(21,23,28,.08)}
.gimini .bd{width:100%;height:100%;border-radius:0;box-shadow:none}
.gimini-clock{display:grid;place-items:center;background:rgba(21,23,28,.04);color:#6B7280}.gimini-clock svg{width:44px;height:44px}
.gct{display:block;min-width:0}
.gctag{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--mute)}
.gctag.down{color:var(--coral)}.gctag.up{color:var(--up)}
.gct b{display:block;font-family:"Sora";font-size:17px;font-weight:600;margin:2px 0 4px}
.gcwhy{display:block;font-size:14px;line-height:1.45;color:#5B636F}
.goctx{margin:14px 0 0}.goctx p{font-size:14px;line-height:1.45;color:#5B636F;padding:8px 0;border-top:1px solid var(--hair)}.goctx:empty{display:none}
.gimini .sq .c,.gimini .sq .rk{display:none}
@media (min-width:1024px){#goMoments{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;margin:0 -12px}#goMoments .gonote{grid-column:1/-1}#goMoments .gocard{margin:0;width:100%;align-items:start}}

/* the main button splits in two when a key moment is picked: a light Play it again, and the dark action with a slow shine */
.gorow{display:flex;align-items:stretch}
.gocta .gorow .btn{width:auto;min-width:0;font-size:15px;line-height:1.2}
.gorow .goagain{flex:0 1 0%;padding-left:0;padding-right:0;margin-right:0;border:0;opacity:0;transform:scale(.94);overflow:hidden;white-space:nowrap;pointer-events:none;background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px rgba(21,23,28,.16);transition:flex-grow .5s cubic-bezier(.2,.8,.2,1),margin .5s cubic-bezier(.2,.8,.2,1),opacity .3s ease .08s,transform .5s cubic-bezier(.2,.8,.2,1)}
.gorow.split .goagain{flex-grow:1;padding-left:14px;padding-right:14px;margin-right:10px;opacity:1;transform:none;pointer-events:auto}
.gorow #goReplay{flex:1 1 0%;position:relative;overflow:hidden;transition:opacity .15s ease}
.gorow #goReplay.swap{opacity:0}
.gorow.split #goReplay::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.26) 48%,rgba(255,255,255,.1) 56%,transparent 70%);transform:translateX(-130%);animation:goShine 2.8s ease-in-out .6s infinite;pointer-events:none}
@keyframes goShine{0%{transform:translateX(-130%)}55%,100%{transform:translateX(130%)}}
.gorow.nomo .goagain,.gorow.nomo #goReplay{transition:none}
.gorow.split+.golinks .golk-play,.gorow.split+.golinks i{display:none}
@media (prefers-reduced-motion:reduce){.gorow .goagain,.gorow #goReplay{transition:none}.gorow.split #goReplay::after{animation:none;display:none}}

   and the small full oops pose that stands in for the peek for about a second after a hung piece is picked */
