/* SSG GAMES | Green Velvet V2 | Visual layer only; original JS and game rules untouched. */
:root{--gold:#f6d681;--ivory:#fff4d9;--accent:#cd963b;--green:#05532f;--text:#fff5de;--muted:#d8bc86}
html{background:#070c0a}
body{
  background:linear-gradient(180deg,rgba(5,7,9,.73) 0%,rgba(9,8,7,.91) 46%,#080b0a 100%),url('../../assets/club-hero.webp') center top/cover fixed no-repeat,#080b0a;
  color:#fff5dc;
}
.shell{max-width:1380px;padding:16px clamp(10px,2vw,30px) 36px}
.header{padding:10px 14px 17px;margin-bottom:4px;border-bottom:1px solid #d3a04880;background:linear-gradient(90deg,#0b0b0ade,#1d1711b8,#0a0a0bde);border-radius:16px 16px 0 0;box-shadow:0 8px 25px #0008}
.brand{font-family:Georgia,serif;color:#ffe09c;text-shadow:0 1px 0 #fff5c1,0 3px 5px #000,0 0 24px #f6b7469c}
.brand small{color:#f9d89a}
.back{border:1px solid #f0c66b;border-radius:12px;background:linear-gradient(#332313,#120c09);box-shadow:inset 0 1px #fee6a35e,0 2px 12px #0008;color:#ffeac1;font-weight:650}
.title{margin:15px 0 10px}
.title h1{font-size:clamp(31px,4.8vw,54px);letter-spacing:.055em;font-weight:900;text-shadow:0 1px #fff0bc,0 2px #b88131,0 5px 8px #000,0 0 20px #ffbf4270}
.title p{color:#f0dcb5}
.banner{margin:12px 0 18px}
.tag{border:1px solid #ddac55a6;background:linear-gradient(180deg,#2b2117e6,#120e0ceb);border-radius:30px;color:#fff2ce;padding:6px 14px;box-shadow:0 1px 7px #0008}
.frame{
  padding:6px;
  border-radius:clamp(30px,7vw,92px);
  background:conic-gradient(from var(--spin),#754017,#e6b455,#fff8ce,#ab6c29,#3c2117,#b27c32,#ffe1a0,#713616,#754017);
  box-shadow:0 0 0 2px #43230e,0 0 28px #f2a53580,0 11px 34px #000c,inset 0 1px 7px #fff5c7;
  animation:spin 30s linear infinite;
}
.table{
  border:6px solid #3d210f;
  border-radius:clamp(25px,6.6vw,85px);
  min-height:600px;
  background:
    radial-gradient(ellipse at 50% 32%,#18875d75 0%,transparent 54%),
    radial-gradient(ellipse at 50% 53%,#116d46 0%,#075334 48%,#01391e 89%,#012715 100%),
    repeating-linear-gradient(55deg,transparent 0px,rgba(255,255,255,.015) 1px,transparent 2px,transparent 7px);
  box-shadow:inset 0 0 0 2px #efc774,inset 0 0 0 7px #9b6627,inset 0 0 0 9px #f5d9874d,inset 0 0 52px 15px #001b0cbd,0 5px 25px #000d;
  overflow:hidden;
}
.table:before{inset:21px;border:2px solid #cba95466;border-radius:clamp(15px,5.7vw,65px);box-shadow:inset 0 0 0 1px #000a}
.table:after{content:'SSG  •  GAMES';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:900 clamp(34px,7vw,100px)/1 Georgia,serif;letter-spacing:.12em;color:#ffe2a5;opacity:.055;transform:translateY(-6%);background:repeating-linear-gradient(45deg,transparent 0 6px,#fff3 7px 8px);pointer-events:none}
.opponent{padding:27px 10px 0}
.who{border:1px solid #f2cf7cbe;background:linear-gradient(#19291ddb,#071a11e9);padding:7px 18px;color:#ffdf90;box-shadow:0 3px 15px #001b14ae,inset 0 1px #fff7b62b;letter-spacing:.02em;font-size:13px}
.opponent .cards{min-height:110px}
.card{width:clamp(48px,5.2vw,70px);height:clamp(73px,8vw,105px);border:2px solid #faedcf;border-radius:9px;background:linear-gradient(137deg,#fffefa 0%,#fff8e9 57%,#e4d6b6 100%);box-shadow:0 4px 4px #001308a6,0 7px 13px #0009,inset 0 1px 1px #fff;transition:transform .17s ease, box-shadow .17s ease;border-color:#e9d3aa;color:#1c2227}
.card.red{color:#ba1729}
.card .corner{font-size:clamp(13px,1.7vw,20px);font-weight:900;text-shadow:0 1px #fff}
.card .symbol{font-size:clamp(32px,4vw,50px);text-shadow:0 1px #fff}
.card .bottomcorner{font-size:clamp(12px,1.4vw,16px)}
.card.backcard{border:3px solid #dec07a;background:radial-gradient(circle at 50% 50%,#101d28 0%,#07101c 45%,#172033 75%,#04090f 100%);box-shadow:inset 0 0 0 3px #12100c,inset 0 0 0 5px #a97931,0 3px 8px #000d}
.card.backcard:after{content:'♛\A SSG';white-space:pre;font:700 14px/1.05 Georgia,serif;letter-spacing:.02em;color:#ffda83;border:1px solid #d0a451;border-radius:7px;padding:9px 5px;box-shadow:0 0 12px #b4843626;background:linear-gradient(#1f2432,#0b1420);text-shadow:0 0 4px #c58a26}
.card:not(:disabled):hover{transform:translateY(-12px) rotate(-1deg);border-color:#ffe19c;box-shadow:0 5px 20px #f2c969a6,0 6px 13px #000}
.card.legal{outline:2px solid #f6cf59;outline-offset:2px;box-shadow:0 0 15px #ffd95e8c,0 6px 9px #0008}
.board-middle{min-height:250px;grid-template-columns:minmax(82px,160px) minmax(0,1fr) minmax(72px,140px);gap:8px;padding:5px clamp(12px,2vw,28px)}
.pile{background:linear-gradient(#052b21aa,#011d14bb);border:1px solid #ad925a66;border-radius:16px;padding:12px 5px;box-shadow:inset 0 0 25px #00170c94;z-index:1;color:#ffe4af;font-weight:750}
.pile-label{color:#fff2c7}
.pile-count{margin:12px auto;display:inline-flex;align-items:center;justify-content:center;min-height:34px;min-width:42px;border:1px solid #e1b663a3;border-radius:24px;color:#ffde8f;font-size:18px;font-weight:800;background:#081d15}
.tablecards{z-index:1;min-height:196px}
.centerhint{letter-spacing:.3em;font:700 clamp(15px,3vw,24px)/1.2 Georgia,serif;color:#ffdea98c;text-shadow:0 2px 5px #000}
.pair{width:clamp(70px,7vw,100px);height:145px}
.turn{padding:9px 14px;min-height:45px;color:#ffe0a3;text-shadow:0 2px 5px #000,0 0 8px #a7792e}
.bottom{padding:8px 12px 24px}
.bottom .cards{min-height:122px;gap:7px}
.controls{margin:17px 0 12px;gap:14px}
.action{padding:12px 20px;min-width:165px;border-radius:15px;border:1px solid #ffe4a1;color:#2c1b0c;background:linear-gradient(#fff0bb 0%,#e8b958 38%,#bd7d25 90%,#875019 100%);box-shadow:inset 0 2px 1px #fff6dbb7,0 4px 0 #53310a,0 9px 16px #0008,0 0 15px #f8b84852;font-size:14px}
.action.alt{background:linear-gradient(#27241e,#11130f 70%,#090b0a);color:#ffe6ae;box-shadow:inset 0 1px 1px #ffdd8c7d,0 4px 0 #090d0a,0 9px 16px #0008}
.action:hover:not(:disabled){filter:brightness(1.17);transform:translateY(-1px)}
.msg{font-weight:600;text-shadow:0 2px 5px #000}
.help{background:linear-gradient(135deg,#241910f5,#100d0de8);border:1px solid #c6923a;border-radius:18px;box-shadow:0 6px 25px #0008,inset 0 1px #ffdf8e61;padding:21px 24px;max-width:none}
.help h2{font:800 20px Georgia,serif;color:#ffdf95}
.announcement{background:#020d0bba;backdrop-filter:blur(5px)}
.announce-box{background:linear-gradient(145deg,#352216,#090c0b);border:3px solid #f4c36f;box-shadow:0 0 0 4px #241705c8,0 0 34px #ffc75ba6,inset 0 1px #fff7c78f;border-radius:24px;padding:30px}
.announce-box h2{font:900 clamp(28px,4vw,39px) Georgia,serif;color:#ffe1a0;text-shadow:0 2px 5px #000,0 0 12px #edb244}
@media(max-width:750px){body{background-attachment:scroll}.header{padding:9px}.table{min-height:550px}.frame{padding:4px}.board-middle{grid-template-columns:70px 1fr 70px;gap:3px;padding:4px 5px}.pile{padding:9px 2px;font-size:10px}.pile .card{margin:7px auto}.opponent{padding-top:18px}.bottom{padding:6px 5px 18px}.bottom .cards{gap:3px;overflow-x:auto;justify-content:flex-start}.card{width:clamp(43px,9vw,58px);height:clamp(67px,14vw,86px)}.action{min-width:125px;padding:10px 13px}.controls{gap:8px}.help{padding:14px}.table:before{inset:12px}.title h1{letter-spacing:0}.table:after{font-size:30px}.pair{width:62px;height:116px}.pair>.card.defense{left:17px;top:30px}}
@media(prefers-reduced-motion:reduce){.frame{animation:none}.card,.action{transition:none}}
/* SSG-EMERALD-V3 */
.table{background:radial-gradient(ellipse at 50% 40%,#0b7131 0%,#055525 52%,#012b16 100%)!important;}
