:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#f7f2e9;background:#090c12;--gold:#f0bd75;--cream:#f7f2e9;--muted:#9b9ea5;--line:#29313a;--panel:#111820;--teal:#178f88;--green:#1aa18d}*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(circle at 83% 22%,#17313a66,transparent 34%),radial-gradient(circle at 11% 80%,#472c2047,transparent 30%),#090c12;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;transition:transform .17s,background .17s,border-color .17s}button:active{transform:scale(.98)}button:disabled{opacity:.42;cursor:not-allowed;transform:none}a{color:inherit;text-decoration:none}em{font-style:normal;color:var(--gold)}.ambient{z-index:-1;position:fixed;inset:0;pointer-events:none;opacity:.65}.ambient-one{background-image:linear-gradient(#ffffff07 1px,transparent 1px),linear-gradient(90deg,#ffffff07 1px,transparent 1px);background-size:68px 68px;mask-image:linear-gradient(to bottom,transparent,#0008,transparent)}.ambient-two{background-image:radial-gradient(#f8ca8144 .8px,transparent .8px);background-size:50px 50px;opacity:.14}.header{height:88px;padding:0 max(28px,calc((100vw - 1400px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff14;background:#090e16b8;backdrop-filter:blur(18px)}.identity{display:flex;align-items:center;gap:14px}.identity .mark{width:52px;height:52px;border:1px solid #f1bd7680;color:#eac18a;border-radius:15px;display:grid;place-items:center;font-size:32px;background:linear-gradient(145deg,#242422,#121820)}.identity strong{font-size:18px;letter-spacing:.15em;display:block}.identity small{display:block;font-size:9px;color:var(--gold);margin-top:5px;font-weight:800;letter-spacing:.28em}.header-right{display:flex;align-items:center;gap:25px}.status{font-size:12px;color:#aab4bc;display:flex;align-items:center;gap:8px}.status-dot{height:8px;width:8px;border-radius:50%;background:#ab7561;box-shadow:0 0 9px #ab756155}.status-dot.online{background:#55d5a7;box-shadow:0 0 12px #55d5a7}.ghost,.outline,.primary{border-radius:8px;letter-spacing:.075em;font-size:12px;font-weight:850;min-height:48px;padding:0 18px;text-transform:uppercase}.ghost{color:#d5dbe1;border:1px solid transparent;background:transparent}.ghost:hover{color:#fff;background:#ffffff0e}.small{min-height:40px}.outline{color:#f0e1c6;background:#121d26;border:1px solid #71624f}.outline:hover{background:#1b2b33;border-color:#efc789}.primary{border:1px solid #efc17c;background:linear-gradient(135deg,#ffda9f,#e1a75e);color:#172126;box-shadow:0 8px 22px #a9632530}.primary:hover{background:linear-gradient(135deg,#ffe2af,#e6b771)}.main{width:min(1400px,calc(100% - 72px));margin:0 auto;min-height:calc(100vh - 158px)}.home{min-height:700px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:54px;padding:68px 0 60px}.eyebrow{font-size:11px;letter-spacing:.19em;color:#d4b17c;font-weight:850}.tiny-diamond{padding:0 4px;color:var(--gold)}.hero-copy h1{font-size:clamp(49px,5.15vw,80px);line-height:1.01;letter-spacing:-.055em;margin:25px 0 22px;font-weight:950}.hero-copy>p{color:#aeb2ba;line-height:1.75;max-width:550px;font-size:15px;margin:0 0 25px}.stamps{display:flex;gap:18px;flex-wrap:wrap;font-size:10px;letter-spacing:.13em;color:#d6bc93;font-weight:800}.join-card{max-width:525px;margin-top:39px;background:linear-gradient(135deg,#182028ed,#111820ed);border:1px solid #ffffff22;padding:24px;border-radius:16px;box-shadow:0 30px 90px #0007}.join-card label{display:block;margin-bottom:10px;font-size:10px;letter-spacing:.12em;color:#d8bf93;font-weight:900}input{background:#0b1219;color:#fff;border:1px solid #46505a;border-radius:8px;min-height:49px;padding:0 15px;outline:none;min-width:0}input:focus{border-color:#e7bf83;box-shadow:0 0 0 3px #e2ad6530}input::placeholder{color:#7b8b98}#nickname{width:100%;margin-bottom:11px}#create{width:100%;display:flex;justify-content:space-between;align-items:center;padding:0 19px}.separator{text-align:center;margin:20px 0;color:#818b92;font-size:10px;letter-spacing:.13em}.join-row{display:flex;gap:9px}.join-row input{width:45%;letter-spacing:.2em;text-transform:uppercase}.join-row button{flex:1}.form-feedback{min-height:17px;color:#f2ad89;font-size:12px;margin:12px 0 0}.hero-visual{height:570px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #e2b36a28;transform:rotate(-19deg);border-radius:50%}.orbit1{height:520px;width:520px}.orbit2{height:400px;width:400px;border-color:#82e2dd28;transform:rotate(36deg)}.fan{position:relative;width:400px;height:420px;filter:drop-shadow(0 35px 44px #000c);transform:translateY(12px)}.fan-card{width:221px;height:326px;border-radius:16px;position:absolute;top:45px;left:92px;display:flex;flex-direction:column;justify-content:space-between;padding:20px 22px;background:#fff3e8;color:#191a20;border:9px solid #f3e8db;box-shadow:0 1px 0 2px #2f2c2a,0 10px 35px #000b}.fan-card span{font-size:29px;font-weight:950;line-height:.9;display:flex;flex-direction:column}.fan-card span b{font-size:23px}.fan-card strong{align-self:center;font-size:90px;font-weight:600}.fan-card .inverse{align-self:flex-end;transform:rotate(180deg)}.fan-left{transform:translate(-92px,6px) rotate(-25deg);background:repeating-linear-gradient(45deg,#093b45,#093b45 8px,#0d6472 8px,#0d6472 10px);border:9px solid #e8d5a4;color:#c6e3d9;align-items:center;justify-content:center;gap:16px}.fan-left>div{font-size:38px}.fan-left strong{font-size:74px;letter-spacing:-.07em}.fan-left small{font-size:13px;letter-spacing:.1em}.fan-mid{transform:rotate(-8deg);color:#c83337}.fan-right{transform:translate(93px,4px) rotate(16deg)}.hero-roundel{position:absolute;bottom:20px;border-top:1px solid #82745a;padding-top:19px;text-align:center;width:270px;font-size:10px;color:#b8a687;letter-spacing:.25em;font-weight:800}.hero-roundel span{color:#d4ac6b;margin:0 8px}footer{min-height:70px;border-top:1px solid #ffffff16;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px max(28px,calc((100vw - 1400px)/2));color:#818d95;font-size:10px;font-weight:800;letter-spacing:.14em}.room{padding:45px 0 80px}.room-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px}.room-head h2,.finished h2{font-size:38px;letter-spacing:-.05em;line-height:1.1;margin:10px 0}.room-head h2 span{color:var(--gold);letter-spacing:.03em}.subtitle{color:#a5b0b6;font-size:13px}.room-buttons{display:flex;gap:8px}.lobby-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.seat-card{min-height:240px;padding:24px;border-radius:15px;border:1px solid #34414b;background:linear-gradient(140deg,#17242b,#10151a);position:relative;overflow:hidden}.seat-number{font-size:11px;color:#988d75;letter-spacing:.13em;font-weight:850}.seat-avatar{height:65px;width:65px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,#2a5654,#192b32);color:#d8f7ed;font-size:27px;margin:29px auto 17px;border:1px solid #6a938259}.seat-name{text-align:center;font-weight:850;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat-state{text-align:center;font-size:11px;margin-top:9px;color:#a3afb6;letter-spacing:.06em}.seat-state.ready{color:#61d6a5}.seat-card.empty{border-style:dashed;border-color:#38434b;background:#0d141a}.ready-panel{margin-top:20px;border:1px solid #35434a;border-radius:14px;background:#121d23;display:flex;gap:20px;align-items:center;justify-content:space-between;padding:25px}.ready-panel strong{font-size:15px;letter-spacing:.1em}.ready-panel p{color:#9aabb4;font-size:13px;margin:8px 0 0}.ready-actions{display:flex;gap:12px}.arena-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px}.game-topline{display:flex;justify-content:space-between;align-items:center;color:#e8d6b6;font-weight:900;letter-spacing:.05em;margin-bottom:10px;min-height:40px}.timer{font-variant-numeric:tabular-nums;color:#fff3e1;padding:7px 14px;border-radius:6px;background:#1e3536;border:1px solid #3b6964}.timer.warning{background:#502822;color:#ffd0b0}.felt{min-height:460px;border:11px solid #3f2b23;background:#183b38;border-radius:220px;box-shadow:inset 0 0 0 4px #ae8454,inset 0 0 60px #081f1b,0 30px 65px #000a}.felt-inner{min-height:440px;border:2px solid #a9a27333;border-radius:220px;position:relative;background:radial-gradient(ellipse at 50% 48%,#285851,#12332e 73%);padding:22px 30px;display:flex;flex-direction:column;justify-content:space-around;align-items:center;overflow:hidden}.felt-inner:before{content:"";position:absolute;inset:40px;border:1px solid #dddca918;border-radius:210px}.opponents{z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%;align-items:start}.opponent{border:1px solid #ffffff25;border-radius:12px;padding:11px 9px;min-height:86px;background:#061817a1;text-align:center}.opponent .opp-name{font-size:11px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.opponent .opp-detail{font-size:10px;color:#b7c9c7;margin-top:7px}.opponent.turning{border-color:#ffcd7a;box-shadow:0 0 16px #b894385a}.opponent.offline{opacity:.55}.center-play{z-index:1;text-align:center;margin:9px 0;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center}.center-label{color:#b9d1c3;font-size:10px;letter-spacing:.3em;font-weight:850}.center-info{font-size:12px;color:#c8cebb;margin-top:14px}.played-cards{display:flex;justify-content:center;min-height:113px;align-items:center;padding-left:15px;margin-top:6px}.mini-card{width:72px;height:108px;background:#fff5e9;color:#111c23;border-radius:7px;border:2px solid white;box-shadow:2px 8px 13px #0008;position:relative;margin-left:-11px;display:flex;align-items:center;justify-content:center;font-size:37px}.mini-card.red,.card.red{color:#bf3c45}.mini-card span,.card .rank{position:absolute;top:6px;left:6px;font-size:17px;font-weight:950;line-height:.95;text-align:left}.mini-card span b,.card .rank b{display:block;font-size:14px}.felt-label{z-index:1;font-size:11px;letter-spacing:.35em;color:#d2bb8e88;font-weight:900}.felt-label span{color:#d8ad6f}.hand-area{margin-top:16px;border-radius:15px;border:1px solid #ffffff22;background:#101921;padding:16px}.hand-heading{display:flex;justify-content:space-between;align-items:center}.hand-heading small{display:block;font-size:9px;letter-spacing:.16em;color:#d0b788}.hand-heading strong{display:block;font-size:17px;letter-spacing:.03em}.hand-heading>span{font-size:12px;color:#acb7bc}.hand-scroller{overflow-x:auto;overflow-y:hidden;padding:30px 0 6px}.hand{display:flex;justify-content:center;min-width:max-content;padding:0 16px 1px}.card{width:77px;height:116px;border:2px solid #fffaf4;background:linear-gradient(155deg,#fffdf7,#eee7de);border-radius:9px;position:relative;flex:0 0 77px;margin-left:-20px;box-shadow:0 7px 16px #0008;color:#18212a;display:flex;align-items:center;justify-content:center;transition:transform .12s,border-color .12s;font-size:40px;padding:0}.card:first-child{margin-left:0}.card.selected{transform:translateY(-20px);border-color:#f7c16b;box-shadow:0 0 0 3px #d29e5b77,0 10px 19px #000a;z-index:2}.card:focus-visible{outline:3px solid #f6d087;outline-offset:2px}.card:hover{z-index:3;transform:translateY(-9px)}.card.selected:hover{transform:translateY(-20px)}.card .corner-bottom{position:absolute;bottom:7px;right:7px;transform:rotate(180deg);font-size:13px;font-weight:950;line-height:1}.action-bar{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}.action-bar .primary{min-width:180px}.sidebar{background:linear-gradient(#131e26,#0e151c);border:1px solid #2d3d44;border-radius:14px;display:flex;flex-direction:column;min-height:710px;overflow:hidden}.sidebar-title{padding:20px;border-bottom:1px solid #354149;font-size:11px;letter-spacing:.12em;font-weight:900}.sidebar-title span{float:right;color:#6ed4ad;font-size:10px}.activity{padding:15px 18px;flex:1;overflow-y:auto;max-height:530px;display:flex;flex-direction:column;gap:14px}.activity-item{font-size:12px;line-height:1.45;color:#bcccd0;border-bottom:1px solid #ffffff0e;padding-bottom:10px}.activity-item:last-child{border:0}.chat-line{padding:12px;display:flex;gap:5px;border-top:1px solid #354149}.chat-line input{min-width:0;width:100%;font-size:12px}.chat-line button{padding:0 10px}.sidebar-rules{padding:19px;border-top:1px solid #354149;background:#11181c}.sidebar-rules strong{font-size:10px;letter-spacing:.16em;color:var(--gold);display:block;margin-bottom:8px}.sidebar-rules span{font-size:12px;line-height:1.65;color:#a3b0b4;display:block}.text-btn{padding:10px 0 0;border:0;background:none;color:#e7b67e;font-weight:800;font-size:11px;letter-spacing:.1em}.finished{text-align:center;padding:50px 0}.finished h2{font-size:48px}.finished p{color:#aab2b8}.podium{margin:40px auto;max-width:680px;display:grid;gap:10px}.podium-row{display:flex;justify-content:space-between;align-items:center;border:1px solid #46515a;background:#142127;border-radius:10px;padding:20px}.podium-row strong{color:#edc082}.podium-row:first-child{border-color:#e0b56c;background:#28302b}.toast{position:fixed;z-index:20;bottom:24px;left:50%;transform:translate(-50%,20px);background:#202e30;border:1px solid #c2a56e;color:#fff;padding:14px 22px;border-radius:9px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 40px);font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}.modal[hidden],[hidden]{display:none!important}.modal{position:fixed;inset:0;z-index:21;display:grid;place-items:center;padding:15px}.modal-backdrop{position:absolute;inset:0;background:#050709de;backdrop-filter:blur(7px)}.rules-dialog{position:relative;width:min(740px,100%);max-height:90vh;overflow:auto;border-radius:15px;background:#121f27;border:1px solid #988460;padding:30px;box-shadow:0 28px 100px #000}.modal-heading{display:flex;justify-content:space-between;align-items:start;gap:10px}.modal-heading h2{font-size:34px;margin:8px 0 20px}.rules-copy p{font-size:14px;line-height:1.76;color:#c0cbd1;padding-bottom:12px;border-bottom:1px solid #ffffff0e}.rules-copy strong{color:#f4d09b}@media(max-width:1200px){.home{gap:30px}.hero-visual{transform:scale(.85)}.felt{min-height:400px}.felt-inner{min-height:380px}.opponents{gap:6px}}@media(max-width:1000px){.main{width:calc(100% - 40px)}.home{grid-template-columns:1fr;padding:55px 0}.hero-visual{height:380px;transform:scale(.72);margin:-65px 0}.hero-copy{max-width:700px}.hero-copy h1{font-size:clamp(45px,8vw,76px)}.arena-layout{grid-template-columns:1fr}.sidebar{min-height:260px}.activity{max-height:170px}.lobby-grid{grid-template-columns:repeat(2,1fr)}.felt{border-radius:130px}.felt-inner{border-radius:130px}}@media(max-width:650px){.header{height:70px;padding:0 16px}.identity .mark{height:42px;width:42px;font-size:24px}.identity strong{font-size:12px}.identity small{font-size:7px}.header-right{gap:6px}.header-right .ghost{font-size:10px;padding:0 6px}.status{font-size:0}.status-dot{height:11px;width:11px}.main{width:calc(100% - 24px)}.home{padding:38px 0 22px}.hero-copy h1{font-size:clamp(37px,9.1vw,58px)}.hero-copy>p{font-size:13px}.stamps{gap:10px;font-size:9px}.join-card{padding:18px;margin-top:28px}.hero-visual{transform:scale(.58);height:290px;margin:-90px 0}.room{padding:27px 0}.room-head{display:block}.room-head h2{font-size:29px}.room-buttons{margin-top:19px}.room-buttons button{font-size:10px;padding:0 11px}.lobby-grid{gap:9px}.seat-card{min-height:170px;padding:13px}.seat-avatar{width:51px;height:51px;font-size:21px;margin:15px auto 10px}.seat-name{font-size:14px}.ready-panel{display:block;padding:18px}.ready-actions{margin-top:15px;display:flex;flex-wrap:wrap}.ready-actions button{flex:1}.felt{border-width:6px;min-height:350px;border-radius:90px}.felt-inner{min-height:338px;border-radius:90px;padding:15px 8px}.opponent{padding:9px 4px;min-height:69px}.opponent .opp-name{font-size:10px}.opponent .opp-detail{font-size:9px}.played-cards{min-height:90px}.mini-card{width:55px;height:84px;font-size:30px}.center-play{min-height:150px}.hand-area{padding:10px}.hand-scroller{margin:0 -3px}.hand{justify-content:flex-start}.card{width:65px;flex-basis:65px;height:101px;margin-left:-17px;font-size:35px}.hand-heading strong{font-size:14px}.action-bar{gap:5px}.action-bar button{min-height:43px;font-size:10px;padding:0 9px}.action-bar .primary{min-width:0;flex:1}.action-bar .ghost{max-width:90px}.finished h2{font-size:34px}footer{padding:24px 18px;display:block;line-height:2;font-size:9px}}

/* Mobile width and artwork containment: keep every control inside the viewport. */
@media(max-width:650px){.home{grid-template-columns:minmax(0,1fr)}.hero-copy{min-width:0}.hero-copy h1{font-size:clamp(32px,8.2vw,52px);overflow-wrap:break-word}.join-card{max-width:100%;min-width:0}.join-row button{min-width:0}.hero-visual{display:none}footer{position:relative}}

@media(max-width:650px){footer span{display:block}}
/* The card hand scrolls *inside* its panel instead of expanding mobile layout. */
.arena-layout{grid-template-columns:minmax(0,1fr) 280px}
.game-column,.hand-area,.felt,.sidebar{min-width:0}
.hand-scroller{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden}
.opponents{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){.arena-layout{grid-template-columns:minmax(0,1fr)}.game-column,.sidebar{width:100%}}

/* Optional Hard AI bot controls */
.join-card .solo{width:100%;display:flex;justify-content:space-between;align-items:center;margin-top:10px}.join-card #create{width:100%;margin-top:14px}.solo-note{color:#a8bbc2;font-size:12px;line-height:1.5;margin:8px 0 0}.bots-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #42625d;background:linear-gradient(110deg,#152a29,#131b21);border-radius:13px;margin:15px 0;padding:20px}.bots-panel strong{font-size:12px;letter-spacing:.13em;color:#f4d09b}.bots-panel p{font-size:12px;color:#a8c0c2;line-height:1.6;margin:7px 0 0;max-width:620px}.bots-panel .outline{white-space:nowrap}.seat-card .remove-bot{margin-top:8px;min-height:29px;border-radius:5px;border:1px solid #715d4a;background:#1d272b;color:#e5c29e;padding:4px 10px;font-size:9px;font-weight:900;letter-spacing:.07em}.seat-card .remove-bot:hover{background:#3b2920}.bot-opponent{border-color:#b68d55a6}@media(max-width:650px){.bots-panel{display:block;padding:16px}.bots-panel .outline{margin-top:12px;width:100%}}
