/* Gin Rummy (Doug, 29 Oct 2026): big, high-contrast cards for eyes that struggle. Phone first. */
#vGin{--gcw:clamp(70px,calc((100vw - 64px) / 4),112px);--gred:#B3121B;--gblk:#111}
body.ginsmall #vGin{--gcw:clamp(46px,calc((100vw - 60px) / 7),76px)}
#ginPlay{position:relative;max-width:1000px;margin:0 auto}
.ginvoice{margin-bottom:16px;border:2px solid rgba(230,182,82,.45)}
.ginsw{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 12px}
button.ginbig{min-height:56px;font-size:19px;padding:12px 22px}
button.ginbig[aria-pressed="false"]{background:transparent;color:var(--panel-fg);border-color:rgba(255,255,255,.4)}
.ginrow{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:0 0 10px}
.ginrow .seg{flex:1;margin:0;min-width:240px}
.ginrow .seg button,.ginsortseg button{min-height:48px}
.ginlab{font-weight:700;color:var(--panel-fg)}
.ginhear{font-size:15px!important;color:var(--panel-fg)!important}
.gincheck{display:flex;gap:10px;align-items:center;margin:10px 0 0;font-size:16px;color:var(--panel-fg);min-height:48px;cursor:pointer}
.gincheck input{width:26px;height:26px;accent-color:#E6B652;flex:none}
.ginrules{margin-top:16px}
.ginrules>summary{list-style:none;cursor:pointer;display:flex;align-items:center;min-height:48px}
.ginrules>summary::-webkit-details-marker{display:none}
.ginrules>summary h2{margin:0}
.ginrules>summary::after{content:"+";margin-left:auto;font-size:24px;color:var(--paint)}
.ginrules[open]>summary::after{content:"−"}
.ginrl{margin:8px 0 0;padding-left:22px}.ginrl li{margin:0 0 8px;max-width:70ch}
/* the play screen */
.ginplates{grid-template-columns:1fr 1fr}
.ginplates .pname{font-size:18px;font-weight:700}
.ginstatus{font-family:var(--display);font-weight:600;font-size:clamp(20px,5.2vw,28px);line-height:1.25;text-align:center;margin:4px 0 12px;min-height:1.25em}
.gintable{background:radial-gradient(ellipse at 50% 40%,#2f6b45,#1d4a2f 70%,#163a25);border-radius:18px;padding:12px;box-shadow:inset 0 0 0 3px #6b4a2b,0 10px 26px rgba(26,15,8,.35)}
.gintable[hidden]{display:none}
.ginopp{display:flex;align-items:center;gap:10px;margin:0 0 10px;color:#F5EAD3;font-weight:700}
.ginbacks{display:flex;flex:1;min-width:0;overflow:hidden}
.ginbacks .gc.sm{--w:28px;margin-left:-14px}.ginbacks .gc:first-child{margin-left:0}
.ginpiles{display:flex;gap:18px;justify-content:center;align-items:flex-start}
.ginpile{display:flex;flex-direction:column;align-items:center;gap:6px}
.ginpl{color:#F5EAD3;font-weight:700;font-size:15px}
.gpbtn{background:none;border:0;padding:0;border-radius:12px}
.gpbtn .gc{box-shadow:0 0 0 4px #E6B652,0 6px 16px rgba(0,0,0,.4)}
/* a card */
.gc{--w:var(--gcw);position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:var(--w);height:calc(var(--w) * 1.42);flex:none;
  background:#FFFDF6;border:2px solid #2A1A0F;border-radius:calc(var(--w) * .12);color:var(--gblk);padding:4px 2px;font-family:var(--body);box-shadow:0 3px 8px rgba(0,0,0,.28);line-height:1}
button.gc{cursor:pointer;font-weight:700;transition:transform .12s}
.gc.red{color:var(--gred)}
.gc .gr{font-family:var(--body);font-weight:700;font-size:calc(var(--w) * .46);letter-spacing:-.02em}
.gc .gsv{width:calc(var(--w) * .40);height:calc(var(--w) * .40)}
.gc .gw{font-size:max(13px,calc(var(--w) * .16));font-weight:700;text-transform:lowercase}
.gc.sel{transform:translateY(-10px);box-shadow:0 0 0 5px #E6B652,0 10px 18px rgba(0,0,0,.4);z-index:1}
.gc.nw{outline:3px dashed #A8352A;outline-offset:2px}
.gc .gtag{position:absolute;top:-9px;right:-6px;background:#A8352A;color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:2px 7px;text-transform:none}
.gc.back{background:repeating-linear-gradient(45deg,#3A2212 0 6px,#2B1A0E 6px 12px);border-color:#E6B652}
.gc.back .gbk{font-family:var(--display);font-weight:700;color:#E6B652;font-size:calc(var(--w) * .3)}
.gc.back.sm .gbk{display:none}
button.gc.back{--w:var(--gcw)}
button.gc.back.go{box-shadow:0 0 0 4px #E6B652,0 6px 16px rgba(0,0,0,.4)}
button.gc.back:disabled{opacity:1}
.gc.empty{background:transparent;border:2px dashed rgba(245,234,211,.4);box-shadow:none}
.gc.sm{--w:clamp(52px,12vw,64px)}
.gc.sm .gw{font-size:10px;letter-spacing:-.02em}
.gc.laid{box-shadow:0 0 0 3px #4F8F5C}
.gc.laid .gtag{background:#2f6b45;font-size:10px;top:-8px;right:-4px;padding:1px 5px}
/* the hand */
.ginacts{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:14px 0 6px;min-height:8px}
.ginacts button.gact{min-height:56px;font-size:19px;padding:12px 22px;flex:1 1 220px;max-width:420px}
.ginacts button.gact.ghost{background:transparent;color:var(--ghost-fg);border-color:var(--line)}
.ginacts button.knock{background:#A8352A;border-color:#A8352A;color:#FBE9DF}
.ginacts button.gin{background:#E6B652;border-color:#E6B652;color:#2A1A0F;font-family:"Alfa Slab One",Georgia,serif;font-weight:400;font-size:22px}
.gintip{margin:4px 0;text-align:center;font-size:18px;color:var(--muted);width:100%}
.ginwhisper{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px;justify-content:center}
.ginwhisper[hidden]{display:none}
.ginwhisper button{min-height:52px;font-size:17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1 1 auto;min-width:0}
.ginwhisper #ginWhat{flex:1 1 100%;max-width:460px}
.ginwhisper svg{width:26px;height:26px;flex:none}
@media (min-width:700px){.ginwhisper #ginWhat{flex:0 1 auto}}
.ginwhisper button.ghost{color:var(--ghost-fg)}
.ginhand{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding-top:12px}
.ggrp{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:14px;background:rgba(43,26,14,.08);border:2px solid var(--line);max-width:100%}
.ggrp.set,.ggrp.run{background:rgba(230,182,82,.16);border-color:rgba(168,110,20,.55)}
.glab{font-weight:700;font-size:15px;color:var(--muted)}
.gcards{display:flex;flex-wrap:wrap;gap:6px}
.gindw{text-align:center;font-weight:700;font-size:19px;margin:12px 0 4px}
.ginctl .ginsortseg{margin:0;flex:1 1 260px}
.ginctl .ginsortseg button{background:transparent;color:var(--ghost-fg);border-color:var(--line)}
.ginctl .ginsortseg button[aria-pressed="true"]{background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg)}
.ginctl button{min-height:48px}
.ginchat .chatbox{margin:0 0 10px}
/* one tablet: the cover hides every card until the next player taps */
.gincover{position:fixed;inset:0;z-index:30;background:linear-gradient(160deg,#33200f,#170E08);color:#F5EAD3;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px}
.gincover[hidden]{display:none}
.gincover h2{font-family:"Alfa Slab One",Georgia,serif;font-weight:400;color:#E6B652;font-size:clamp(34px,9vw,64px);margin:6px 0 10px;line-height:1.1}
.gincover p{font-size:20px;margin:0 auto 20px;max-width:26ch}
.gincover .gck{font-size:16px;color:#C4A684;margin:0}
.gincover button{min-height:64px;font-size:21px;padding:14px 28px;background:#E6B652;color:#2A1A0F;border-color:#E6B652}
/* the end of a hand */
.ginsheet{background:linear-gradient(160deg,#33200f,#24150b);color:#F5EAD3;border-radius:18px;padding:18px 16px;margin-top:6px}
.ginsheet[hidden]{display:none}
.ginsheet h2{font-family:"Alfa Slab One",Georgia,serif;font-weight:400;color:#E6B652;font-size:clamp(26px,6vw,40px);margin:0 0 6px;line-height:1.15}
.ginsheet .gpts{font-size:19px;margin:0 0 10px}
.ginsheet .gsrow{margin:10px 0;padding:10px 0;border-top:1px solid rgba(245,234,211,.15)}
.ginsheet .gsn{font-weight:700;font-size:17px;margin:0 0 8px}.ginsheet .gsn span{color:#C4A684;font-weight:600}
.ginsheet .gsc{display:flex;flex-wrap:wrap;gap:10px}
.ginsheet .gsm{display:flex;gap:4px;flex-wrap:wrap;padding:4px;border-radius:10px;background:rgba(230,182,82,.18)}
.ginsheet .gsm.deadm{background:rgba(168,53,42,.25)}
.ginsheet .gsm.laidm{background:rgba(79,143,92,.3)}
.gscore{border-collapse:collapse;margin:10px 0 4px;font-size:18px;width:100%;max-width:480px}
.gscore th,.gscore td{padding:6px 10px;text-align:right;border-bottom:1px solid rgba(245,234,211,.15)}
.gscore th:first-child,.gscore td:first-child{text-align:left;color:#C4A684}
.gscore tr.tot td{font-weight:700;color:#E6B652;font-size:20px}
.ginsheet .row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;align-items:center}
.ginsheet .row button{min-height:56px;font-size:18px;background:#E6B652;color:#2A1A0F;border-color:#E6B652}
.ginsheet .row button.ghost{background:transparent;color:#F5EAD3;border-color:rgba(245,234,211,.35)}
.ginsheet .ruleline{width:100%;margin:6px 0 0;font-style:italic;color:#C4A684}
.ginsetup{position:fixed;top:50%;z-index:20}
@media (min-width:900px){
  #vGin{--gcw:clamp(70px,calc((min(100vw,1000px) - 120px) / 8),112px)}
  .ginwhisper{justify-content:flex-start}
}
