@import url("../js/hd-cards/hd-about.css");
/* gin-rummy - HD tuning. Everything lives under html.hdc (set by hd.js once the atlas has
   decoded); with ?hd=0 or after the perf guard nothing here applies. */
html.hdc .card[data-hdc], html.hdc .gr-pile[data-hdc], html.hdc .gr-stock[data-hdc], html.hdc .gr-fan .back[data-hdc] { border-width: 0; }
/* the little labels on the cards stay readable */
html.hdc .card[data-hdc] .tag { color: #fff !important; }
html.hdc .card[data-hdc] .dot { color: #34d399 !important; text-shadow: 0 1px 1px rgb(0 0 0 / .6) !important; }
html.hdc .card[data-hdc] .knk { color: #fff !important; }
html.hdc .gr-stock[data-hdc] b, html.hdc .gr-stock[data-hdc] .pl { color: #fff !important; text-shadow: 0 1px 3px #000 !important; }
html.hdc .gr-pile[data-hdc] .pl { color: #e2f5ea !important; text-shadow: 0 1px 2px #000 !important; }
html.hdc .gr-stock[data-hdc] { box-shadow: 3px 3px 0 rgb(0 0 0 / .28), 0 5px 12px rgb(0 0 0 / .5); }
html.hdc .gr-pile[data-hdc] { box-shadow: 0 2px 2px rgb(0 0 0 / .35), 0 8px 16px -4px rgb(0 0 0 / .55); }
/* meld cues keep their colour: a bar under the card (the border no longer shows over the art) */
html.hdc .card.m[data-hdc] { border-bottom-width: 0; }
html.hdc .card.g0[data-hdc] { box-shadow: 0 5px 0 0 #047857, var(--hdc-shadow); }
html.hdc .card.g1[data-hdc] { box-shadow: 0 5px 0 0 #2563eb, var(--hdc-shadow); }
html.hdc .card.g2[data-hdc] { box-shadow: 0 5px 0 0 #9333ea, var(--hdc-shadow); }
html.hdc .card.g3[data-hdc] { box-shadow: 0 5px 0 0 #c2410c, var(--hdc-shadow); }
html.hdc #hand .card.new[data-hdc] { box-shadow: 0 0 0 3px #f59e0b, var(--hdc-shadow); }
html.hdc #hand .card.ok[data-hdc] { box-shadow: 0 0 0 3px #047857, 0 0 12px 2px rgb(52 211 153 / .6), var(--hdc-shadow); }
html.hdc .card.no[data-hdc] { opacity: .45; filter: grayscale(.5); }
html.hdc .card.locked[data-hdc] { filter: brightness(.88); }
html.hdc #gr-table[data-hdc-felt] { border-radius: 14px; box-shadow: inset 0 0 40px rgb(0 0 0 / .4); }

/* fs-fix-2: Full screen keeps only the play surface (table, status, hand); coaching, review, rehearsal,
   options, rules and stats are not play rows and made the stage scroll. */
html.pip-immersive .game-wrap #gr-depth-gameplay,
html.pip-immersive .game-wrap #gr-depth-review,
html.pip-immersive .game-wrap #gr-rehearsal,
html.pip-immersive .game-wrap .gr-opts,
html.pip-immersive .game-wrap .gr-rules,
html.pip-immersive .game-wrap #stats-line,
html.pip-immersive .game-wrap .gr-depth-draw-guide,
html.pip-immersive .game-wrap .gr-depth-hand-guide { display: none !important; }

/* wave3: table finish (lighting, rim, status pill) and Full screen safe areas. Paint only. */
#gr-table{background:radial-gradient(ellipse 80% 60% at 50% 38%,#26905a 0%,#1a6b42 45%,#0f4a2c 100%);box-shadow:inset 0 0 0 2px #0b3d24,inset 0 0 0 5px rgb(255 255 255 / .06),inset 0 10px 28px rgb(0 0 0 / .35),0 8px 18px -8px rgb(0 0 0 / .55)}
#status{width:fit-content;max-width:96%;margin-left:auto;margin-right:auto;padding:.3rem .8rem;border-radius:999px;background:rgb(0 0 0 / .22);box-shadow:0 1px 0 rgb(255 255 255 / .08) inset;transition:background .25s}
.gr-center{filter:drop-shadow(0 6px 6px rgb(0 0 0 / .25))}
#hand .card{transition:transform .16s cubic-bezier(.2,.8,.3,1.2),box-shadow .16s}
@media (prefers-reduced-motion:reduce){#hand .card,#status{transition:none}}
html.pip-immersive .game-wrap.pip-stage{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-bottom:max(6px,env(safe-area-inset-bottom));overflow-x:hidden}
html.pip-immersive .game-wrap .gr-seg button{min-height:44px}
