/* Go Fish goals: coach line, daily table, rank line. */
.gf-coach{margin:.35rem auto 0;max-width:30rem;padding:.4rem .75rem;border-radius:99px;background:#0E7490;color:#fff;font-size:.8rem;font-weight:800;text-align:center}
#gf-coach[hidden]{display:none}
.gf-me[data-coach="hand"] #gf-hand{animation:gf-coach-glow 1.4s ease-in-out infinite;border-radius:12px}
@keyframes gf-coach-glow{0%,100%{box-shadow:0 0 0 0 #f59e0b00}50%{box-shadow:0 0 0 4px #f59e0baa}}
.gf-foot{gap:.6rem;flex-wrap:wrap}
.gf-daily{min-height:44px;padding:.55rem 1.1rem}
.gf-daily[aria-pressed="true"]{outline:2px solid #f59e0b;outline-offset:2px}
.gf-daily small{display:block;font-size:.65rem;font-weight:700;opacity:.85}
.gf-rank{text-align:center;font-size:.75rem;font-weight:800;color:#0E7490;margin-top:.25rem}
.gf-rank:empty{display:none}
@media (prefers-reduced-motion:reduce){.gf-me[data-coach="hand"] #gf-hand{animation:none;box-shadow:0 0 0 3px #f59e0baa}}

/* Full screen (immersive + native): the table (seats, pond, your hand) fills the stage, no scroll, chrome hidden.
   hd.js moves #gf-me into #gf-table while full screen is on and puts it back on exit. */
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .game-wrap.pip-stage{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:.3rem .4rem;align-content:stretch;overflow:hidden!important;padding-bottom:max(.4rem,env(safe-area-inset-bottom,0px))!important;padding-left:max(.5rem,env(safe-area-inset-left,0px));padding-right:max(.5rem,env(safe-area-inset-right,0px))}
:is(html.pip-immersive,html.pip-native) .pip-stage .game-title,
:is(html.pip-immersive,html.pip-native) .pip-stage .facts,
:is(html.pip-immersive,html.pip-native) .pip-stage .pip-actions,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-howto,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-rules,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-ask-rehearsal,
:is(html.pip-immersive,html.pip-native) .pip-stage #gf-depth-review,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-stats,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-rank,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-log,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-depth-pond-guide{display:none}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>*{margin-top:0;margin-bottom:0;min-width:0}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-bar{grid-column:1 / -1;grid-row:1;flex-wrap:wrap;justify-content:center}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-note{grid-column:1 / -1;grid-row:2}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-coach{grid-column:1 / -1;grid-row:3;margin:0 auto}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>#gf-table{grid-column:1 / -1;grid-row:4;min-height:0;display:flex;flex-direction:column;gap:.25rem;padding:.4rem .4rem .35rem;margin:0;overflow-x:hidden;overflow-y:auto}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-foot{grid-column:1;grid-row:5;margin:0;justify-content:flex-start;flex-wrap:nowrap;gap:.4rem}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-notebook{grid-column:2;grid-row:5;margin:0;align-self:stretch}
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-seg button,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-new,
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-daily{min-height:44px}
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-new{padding:.4rem .9rem}
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-daily{padding:.3rem .7rem}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage .gf-depth-table .gf-seats{padding-top:.2rem}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage .gf-depth-table .gf-seat{min-height:56px;padding-top:.2rem;padding-bottom:.2rem}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage .gf-depth-table .gf-mid{flex:1 1 auto;min-height:0;margin:0;gap:.5rem}
:is(html.pip-immersive,html.pip-native) .pip-stage #status{flex:none;min-height:0;margin:0;font-size:.85rem}
:is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage #gf-me{flex:none;margin:0;padding:.3rem .35rem .35rem}
:is(html.pip-immersive,html.pip-native) .pip-stage #gf-hand{margin:.25rem 0 .1rem;gap:4px}
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-ask{min-height:0}
/* Ask notebook: a 44px button in the bottom row; opened, it is a fixed panel with its own scroll. */
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-notebook:not([open]){border-radius:10px}
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-notebook:not([open])>summary{display:flex;align-items:center;justify-content:center;padding:0 .8rem;font-size:0;list-style:none}
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-notebook:not([open])>summary::-webkit-details-marker{display:none}
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-notebook:not([open])>summary::before{content:"Notes";font-size:.8rem;font-weight:800}
:is(html.pip-immersive,html.pip-native) .pip-stage .gf-notebook[open]{position:fixed;z-index:8100;top:calc(var(--pip-dock-h,52px) + env(safe-area-inset-top,0px) + 8px);left:calc(var(--pip-rail-w,0px) + env(safe-area-inset-left,0px) + 8px);right:calc(env(safe-area-inset-right,0px) + 8px);bottom:calc(env(safe-area-inset-bottom,0px) + 8px);margin:0;overflow:auto;box-shadow:0 10px 40px #0009}
@media (orientation:landscape) and (max-height:520px){
  :is(html.pip-immersive,html.pip-native) body[data-pip-frame] .game-wrap.pip-stage{grid-template-columns:minmax(0,1fr) minmax(0,15rem);grid-template-rows:auto auto auto minmax(0,1fr) auto auto;align-content:stretch}
  :is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>#gf-table{grid-column:1;grid-row:1 / span 6}
  :is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-bar{grid-column:2;grid-row:1;flex-direction:column;align-items:stretch}
  :is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-note{grid-column:2;grid-row:2}
  :is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-coach{grid-column:2;grid-row:3;border-radius:12px}
  :is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-foot{grid-column:2;grid-row:5;flex-direction:column;align-items:stretch}
  :is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage>.gf-notebook{grid-column:2;grid-row:6}
  :is(html.pip-immersive,html.pip-native) body[data-pip-frame] .pip-stage .gf-depth-table .gf-seat{min-height:50px}
}

/* Finish: felt depth, card sheen, pond ripple, panel polish. */
#gf-table{box-shadow:inset 0 2px 10px #0005,inset 0 0 40px #00000040,0 6px 14px #0f172a30}
.gf-card{box-shadow:0 2px 3px #0f172a40,inset 0 1px 0 #ffffffcc;background-image:linear-gradient(160deg,#ffffff 55%,#eef2f7)}
.gf-pond-cards i{box-shadow:0 3px 5px #0008}
.gf-pond:not(.empty) .gf-pond-cards::after{content:"";position:absolute;left:-6px;right:-6px;bottom:-6px;height:10px;border-radius:50%;border:1.5px solid #ffffff55;opacity:0;animation:gf-ripple 3.2s ease-out infinite;pointer-events:none}
@keyframes gf-ripple{0%{transform:scale(.6);opacity:.7}100%{transform:scale(1.4);opacity:0}}
.gf-group,.gf-seat,.gf-me{transition:transform .18s cubic-bezier(.2,.8,.3,1.2),border-color .15s,box-shadow .2s}
#overlay .panel{background:linear-gradient(180deg,#fff,#f1f5f9);border:2px solid #0E7490;box-shadow:0 14px 44px #0008,0 0 0 4px #ffffff22}
@media (prefers-reduced-motion:reduce){.gf-pond-cards::after{animation:none!important;opacity:0!important}}
