/* One physical table; HUD and drawers never push the hand off-screen. */
.game-shell{height:100dvh;min-height:650px;overflow:hidden;background:linear-gradient(#110b23bb,#110b23ed),url('/assets/eight-characters-hero-v7.png') center/cover}
.game-shell .game-header{height:60px;min-height:60px;background:#100d20dc;padding:7px 24px;border-bottom:2px solid #c7a67366}.table-menu{display:flex;gap:8px;justify-self:end}.table-menu .tiny-button{font-size:13px;padding:8px 15px}
.tabletop{position:relative;height:calc(100% - 60px);min-height:590px;max-width:1600px;margin:0 auto;isolation:isolate;overflow:hidden}
.table-rim{position:absolute;inset:24px 4% 75px;border:18px solid #4c3551;border-radius:25% 25% 30% 30%/24% 24% 30% 30%;background:radial-gradient(ellipse at 50% 40%,#60507788,transparent 62%),repeating-linear-gradient(12deg,#ffffff03 0 1px,transparent 1px 7px),#30283f;box-shadow:inset 0 0 0 3px #c5a58b,inset 0 0 70px #100a26,0 0 0 3px #b79470,0 0 0 11px #211927,0 18px 40px #05020f;z-index:-2}
.table-rim::after{content:"";position:absolute;inset:24px;border:1px solid #c5a58b35;border-radius:inherit}.board-stamp{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%) rotate(-12deg);font-size:clamp(38px,6vw,80px);font-weight:950;letter-spacing:.1em;color:#d5b3900c;white-space:nowrap;pointer-events:none;z-index:-1}.board-stamp small{display:block;text-align:center;font-size:20px;letter-spacing:.4em}
.table-status{position:absolute;left:18px;top:12px;z-index:3;font-size:12px;color:#d3c0e4}.table-status p{margin:6px 0;color:#ffe5a5}.table-status h1{font-size:13px;font-weight:500;max-width:200px;color:#c8b1d6;margin:4px 0}.table-status #alive-count{color:#baf38b}
.tabletop .arena-opponents{position:absolute;inset:0;display:block;pointer-events:none}.tabletop .arena-opponent{position:absolute;left:calc(var(--seat-x)*1%);top:calc(var(--seat-y)*1%);transform:translate(-50%,-15%);width:112px;min-height:0;padding:0!important;background:transparent;border:0;border-radius:0;box-shadow:none;pointer-events:auto;text-align:center;overflow:visible;color:#fff0e0;transition:filter .18s,scale .18s}.tabletop .arena-opponent:hover{scale:1.06}.tabletop .arena-opponent.selected .hero-portrait,.tabletop .arena-opponent.drop-target .hero-portrait{border-color:#c2ff7a;box-shadow:0 0 0 3px #5da943,0 0 25px #baff7377}.tabletop .arena-opponent.eliminated{filter:grayscale(1);opacity:.4}
.hero-portrait{position:relative;width:78px;height:86px;margin:0 auto;border:4px solid #bd9670;border-radius:48% 48% 17% 17%;background-image:linear-gradient(0deg,#20112677,transparent 70%),url('/assets/eight-characters-hero-v7.png');background-size:auto,600px auto;background-position:center,var(--portrait-x,40%) 36%;box-shadow:0 4px 0 #160c22,inset 0 0 15px #140b23;display:flex;align-items:end;justify-content:center}.hero-portrait>span{display:grid;place-items:center;width:24px;height:24px;margin-bottom:4px;border-radius:50%;background:#281439c9;color:#ffeec3;font-size:13px;font-weight:900}.hero-health{position:absolute;bottom:-9px;right:-13px;display:grid;place-items:center;width:34px;height:36px;border:3px solid #f6c895;border-radius:45% 45% 50% 50%;background:#b33462;color:white;font-size:20px;text-shadow:1px 2px #581532;font-style:normal;font-weight:950}.tabletop .arena-opponent strong{display:block;max-width:112px;margin:10px auto 2px;font-size:12px;text-shadow:0 2px 4px #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tabletop .arena-opponent .seat-state{display:block;font-size:10px;color:#e0c7ad}.enemy-hand{height:18px;margin:0 auto -7px;display:flex;justify-content:center;transform:rotate(-3deg)}.enemy-hand i{display:block;width:16px;height:23px;margin-left:-4px;border:2px solid #bd9574;border-radius:3px;background:repeating-linear-gradient(45deg,#8868a9 0 3px,#332244 3px 7px)}.seat-played{position:absolute;left:80%;top:32%;width:65px;min-height:80px;padding:7px 4px;border:2px solid var(--type-color,#c1a46f);border-radius:8px;background:#251a39;box-shadow:3px 4px 0 #130b1b;font-size:10px;transform:rotate(9deg);animation:card-reveal .3s ease-out both;animation-delay:var(--reveal-delay,0ms)}.seat-played b{display:block;font-size:21px;margin:0 0 4px}.seat-played small{display:block;margin-top:5px;color:#ffd28e}.seat-played.face-down{background:repeating-linear-gradient(45deg,#654a8c 0 4px,#35234c 4px 9px);color:#ffdfa6;font-size:30px;padding-top:17px}.tabletop .point-change{position:absolute;top:42px;left:-14px;padding:4px 7px;border-radius:50%;background:#a3284d;color:#fff;font-size:18px;box-shadow:2px 2px #170d26}
.table-center{position:absolute;top:29%;left:50%;transform:translateX(-50%);width:240px;text-align:center}.type-cycle{font-size:11px;color:#bfaecb;margin-bottom:12px;letter-spacing:.12em}.type-cycle span:nth-child(1){color:#ff94b9}.type-cycle span:nth-child(2){color:#c9b2ff}.type-cycle span:nth-child(3){color:#93e6dd}.staged-card{display:grid;place-content:center;gap:7px;width:115px;height:151px;margin:auto;border:2px dashed #c9b1d366;border-radius:14px;background:#160e242b;color:#cfbedf80;font-size:12px;transform:rotate(-4deg)}.staged-card.has-card{border:3px solid var(--type-color);background:linear-gradient(140deg,#674c82,#251731);color:#fff3cd;box-shadow:5px 7px 0 #1a0d25}.staged-card b{font-size:18px}.staged-card .stage-glyph{font-size:44px}.tabletop .arena-selection{margin:12px -20px 0;padding:0;border:0;background:transparent;font-size:12px;line-height:1.5;color:#eadbc4}.table-center .staged-card.locked{background:repeating-linear-gradient(45deg,#755490 0 6px,#382544 6px 12px);border-color:#e6c58b}
.draw-pile{position:absolute;right:3%;top:8%;width:70px;text-align:center;transform:rotate(8deg);z-index:2;font-size:12px;color:#eed6a6}.card-back{height:103px;display:grid;place-content:center;border:4px solid #b78a62;border-radius:10px;background:repeating-linear-gradient(45deg,#6c437e 0 5px,#3c274d 5px 11px);box-shadow:3px 3px 0 #b78a62,6px 6px 0 #322335,9px 9px 0 #93744f,12px 12px 0 #241729;font-size:31px;font-weight:950;color:#ffdc8d}.card-back sup{font-size:14px;position:absolute;top:26px;right:12px}.draw-pile>span{display:block;margin-top:17px}.discard-pile{position:absolute;left:4%;top:8%;display:flex;flex-direction:column;align-items:center;justify-content:center;width:54px;height:70px;border:2px solid #8b7293;border-radius:8px;transform:rotate(-12deg);color:#c6b2d1;background:#241b30;font-size:11px}.discard-pile b{font-size:22px}
.table-action{position:absolute;right:21%;top:43%;width:145px;text-align:center;z-index:6}.table-action #selection-copy{font-size:10px;line-height:1.5;margin-bottom:9px;min-height:30px}.table-action #selection-copy span,.table-action #selection-copy b{display:block}.table-action .play-button{width:100%;min-height:55px;background:linear-gradient(#ffe798,#d6a453);border:3px solid #865a45;box-shadow:0 0 0 3px #25162c,0 6px 0 #180f24;border-radius:14px;color:#342035;font-size:16px}.table-action .prediction-control{display:block;margin:5px 0;padding:8px;font-size:11px;background:#20152d}.table-action select{width:100%;max-width:140px}.table-action #play-card:disabled{opacity:.5}.table-action #next-round{font-size:13px;padding:8px}.table-action #round-details{margin-top:12px}.table-action:has(#reveal-actions:not(.hidden))>#play-card,.table-action:has(#reveal-actions:not(.hidden))>#selection-copy{display:none}
.self-hero{position:absolute;left:50%;bottom:162px;transform:translateX(-50%);text-align:center;z-index:5}.self-hero .hero-portrait{height:88px;width:85px;background-size:auto,650px auto}.self-hero strong{display:block;font-size:12px;margin-top:10px}.hero-skill{position:absolute;left:calc(50% + 75px);bottom:182px;width:80px;height:64px;padding:8px;border:4px solid #b79a67;border-radius:50%;background:radial-gradient(#9468b9,#39224c);color:#ffedc3;font-size:12px;box-shadow:3px 5px #170e23;z-index:7}.agent-launcher{position:absolute;bottom:14px;left:3%;display:flex;flex-direction:column;gap:10px;z-index:8}.agent-launcher button{background:#332346;border:2px solid #bd93d1;box-shadow:3px 4px #12091b;font-size:13px;padding:10px 14px}.agent-launcher #quick-advice{color:#ffe69a;transform:rotate(-3deg)}
.tabletop .hand-section{position:absolute;bottom:0;left:0;width:100%;height:175px;padding:0;margin:0;z-index:10;pointer-events:none}.tabletop #hand-count{position:absolute;right:9%;bottom:24px;font-size:12px;color:#d6bfdc}.tabletop .draw-notice{position:absolute;left:calc(50% + 168px);bottom:190px;width:160px;margin:0;padding:7px;color:#ffedb5;font-size:11px;border:0;background:transparent}.tabletop .draw-notice span,.tabletop .draw-notice small{display:none}.tabletop .draw-notice b{font-size:12px}.tabletop .hand-cards{position:absolute;inset:0;display:block;overflow:visible;padding:0;margin:0;pointer-events:none}.tabletop .hand-card{position:absolute;left:calc(50% + var(--fan-offset)*var(--fan-step,72px));bottom:-35px;flex:none;width:154px;max-width:none;min-height:0;height:219px;padding:10px 10px 8px;border:3px solid #b09a78;border-radius:13px 13px 18px 18px;background:linear-gradient(140deg,#755884,#291c3c 55%,#47354e);box-shadow:0 0 0 2px #26192a,4px 9px 15px #05020eaa;transform:translateX(-50%) translateY(var(--fan-lift)) rotate(var(--fan-angle));transform-origin:50% 130%;pointer-events:auto;touch-action:none;transition:transform .18s ease,filter .18s ease,border-color .18s ease;z-index:var(--card-index);overflow:hidden;text-align:left;color:#fff2d4}.tabletop .hand-card::before{content:attr(data-glyph);position:static;display:grid;place-items:center;height:75px;margin:9px -2px 7px;border:2px solid #c5a47788;border-radius:45% 45% 12% 12%;background:radial-gradient(circle,var(--type-color),#2d1b42 70%);font-size:45px;color:#fff6e8;opacity:1;text-shadow:2px 3px #21132d;transform:none}.tabletop .hand-card::after{display:none}.tabletop .hand-card .card-head{position:absolute;left:7px;right:7px;top:4px;display:flex;justify-content:space-between;font-size:8px}.tabletop .hand-card h3{font-size:16px;line-height:1.2;margin:4px -3px 6px;text-align:center;color:#ffe7b0}.tabletop .hand-card p{font-size:10px;line-height:1.45;margin:0;min-height:0;color:#e3d1e4}.tabletop .hand-card .card-foot{position:absolute;bottom:6px;left:9px;right:9px;margin:0;padding:0;font-size:9px}.tabletop .hand-card .card-foot>b{display:grid;place-items:center;width:28px;height:28px;border:2px solid #ffdc8e;border-radius:50%;background:#b64769;color:white;font-size:20px}.tabletop .hand-card .card-foot small{display:none}.tabletop .hand-card:hover,.tabletop .hand-card:focus-visible,.tabletop .hand-card.selected{transform:translateX(-50%) translateY(-62px) rotate(0) scale(1.16);z-index:30;border-color:#c2ff7a;box-shadow:0 0 16px #a0ea6766,5px 9px 18px #070310}.tabletop .hand-card.dimmed{opacity:.5}.tabletop .hand-card.drag-source{opacity:.2}.drag-card{position:fixed!important;z-index:300!important;pointer-events:none!important;width:154px!important;height:219px!important;transform:translate(-50%,-50%) rotate(-5deg)!important;left:0;top:0;opacity:.95;box-shadow:0 15px 35px #0009!important}.drag-card p{font-size:12px}.drag-card::after{display:none}.drag-card::before{font-size:50px}.tabletop.drag-active .staged-card{border-color:#c2ff7a;background:#a4df7522}.draw-flight{position:fixed;z-index:200;pointer-events:none;width:70px;height:103px}
.game-shell .agent-drawer{position:fixed;right:16px;top:76px;bottom:20px;width:min(380px,calc(100vw - 32px));height:auto;max-height:none;overflow:auto;border:3px solid #b798d1;border-radius:20px;background:#241834f5;box-shadow:-10px 10px 50px #080310b3;z-index:60;padding:25px 20px}.game-shell .agent-top{padding-right:25px}.game-shell .agent-top h2{font-size:19px}.game-shell .agent-chat{height:220px}.game-shell .agent-drawer .bubble-close{color:#fff}.tabletop .advice-float{position:absolute;left:4%;bottom:125px;max-width:280px;max-height:220px;margin:0;padding:15px 30px 13px 16px;z-index:35;box-shadow:5px 5px #1b0e26}.tabletop .advice-float p{font-size:12px;line-height:1.55;max-height:125px;overflow:auto}.tabletop .advice-float>b{font-size:12px}.tabletop .advice-float .tiny-button{min-height:32px;font-size:11px}.tabletop .advice-float::after{left:35px}.game-shell .public-log{max-height:60vh;overflow:auto}
@media(min-width:1400px){.tabletop .hand-card{width:170px;height:235px}.tabletop .hand-card::before{height:90px}.tabletop .hand-card p{font-size:11px}.tabletop .hand-cards{--fan-step:83px}.self-hero{bottom:178px}.hero-skill{bottom:198px}}
@media(max-width:950px){.tabletop .arena-opponent{width:90px}.hero-portrait{width:62px;height:71px}.table-action{right:13%;width:110px;top:42%}.table-center{top:34%;width:190px}.staged-card{width:93px;height:123px}.tabletop .arena-opponent strong{font-size:10px}.tabletop .hand-cards{--fan-step:55px}.tabletop .hand-card{width:135px;height:200px}.tabletop .hand-card::before{height:65px}.tabletop .hand-card h3{font-size:14px}.tabletop .hand-card p{font-size:9px}.seat-played{left:76%;width:48px;min-height:62px;font-size:9px}.seat-played b{font-size:16px}.tabletop .draw-notice{display:none}.agent-launcher{bottom:12px}.hero-skill{left:calc(50% + 60px);width:68px;font-size:10px}.tabletop .advice-float{max-width:230px;bottom:125px}.table-status h1{display:none}}
@media(max-width:600px){.game-shell{min-height:720px}.game-shell .game-header{padding:7px 10px}.game-shell .round-head{min-width:105px}.table-menu{gap:4px}.table-menu .tiny-button{padding:6px;font-size:11px}.tabletop{min-height:660px}.table-rim{inset:35px 3% 70px;border-width:10px;border-radius:25% 25% 24% 24%/12% 12% 18% 18%}.table-status{left:10px;top:8px;font-size:9px}.table-status p{font-size:9px}.tabletop .arena-opponent{width:60px;top:calc(var(--seat-y)*.9% + 3%)}.hero-portrait{width:47px;height:58px;border-width:3px;background-size:auto,450px auto}.hero-health{width:26px;height:28px;font-size:15px;right:-10px}.hero-portrait>span{width:19px;height:19px;font-size:10px}.tabletop .arena-opponent strong{max-width:68px;font-size:9px}.tabletop .arena-opponent .seat-state{font-size:8px}.enemy-hand{height:12px}.enemy-hand i{height:18px;width:12px}.seat-played{left:64%;top:24px;width:32px;min-height:45px;padding:3px;font-size:7px;transform:rotate(8deg)}.seat-played b{font-size:13px}.seat-played small{display:none}.seat-played.face-down{font-size:21px;padding-top:10px}.table-center{top:32%;width:150px}.type-cycle{font-size:8px;letter-spacing:0}.staged-card{width:82px;height:112px}.staged-card b{font-size:12px}.staged-card .stage-glyph{font-size:30px}.tabletop .arena-selection{font-size:10px;margin:10px 0 0}.draw-pile{right:3%;top:22%;width:35px;font-size:9px}.draw-pile .card-back{height:53px;border-width:2px;font-size:19px;box-shadow:2px 2px #bd9274,4px 4px #2c1b39}.draw-pile sup{display:none}.draw-pile>span{margin-top:8px}.discard-pile{left:3%;top:22%;width:30px;height:42px;font-size:8px}.discard-pile b{font-size:16px}.table-action{right:5%;top:auto;bottom:225px;width:94px}.table-action #selection-copy{display:none}.table-action .play-button{min-height:44px;font-size:12px}.table-action .prediction-control{font-size:9px}.self-hero{bottom:183px}.self-hero .hero-portrait{height:68px;width:62px}.self-hero strong{font-size:10px}.hero-skill{bottom:180px;left:calc(50% + 53px);height:47px;width:57px;border-width:3px;font-size:9px;padding:4px}.agent-launcher{left:3%;bottom:218px;gap:8px}.agent-launcher button{font-size:10px;padding:8px 6px;max-width:99px}.tabletop .hand-cards{--fan-step:32px}.tabletop .hand-card{width:116px;height:177px;bottom:-20px;padding:8px;border-width:2px}.tabletop .hand-card::before{height:52px;font-size:30px;margin-top:11px}.tabletop .hand-card h3{font-size:12px}.tabletop .hand-card p{font-size:8px}.tabletop .hand-card .card-foot{font-size:7px}.tabletop .hand-card .card-foot>b{width:22px;height:22px;font-size:16px}.tabletop .hand-card:hover,.tabletop .hand-card:focus-visible,.tabletop .hand-card.selected{transform:translateX(-50%) translateY(-45px) rotate(0) scale(1.2)}.tabletop #hand-count{right:12px;bottom:9px;font-size:10px}.tabletop .advice-float{left:6%;bottom:292px;max-width:88%;max-height:165px}.tabletop .advice-float p{max-height:65px;font-size:11px}.tabletop .point-change{font-size:13px;left:-8px;top:28px}.board-stamp{font-size:40px}}
.tabletop .right-seat .seat-played{left:auto;right:80%;transform:rotate(-9deg)}
.tabletop .hand-card::before{background-image:linear-gradient(0deg,#22112ee6,transparent 75%),url('/assets/eight-characters-hero-v7.png');background-size:auto,560px auto;background-position:center,var(--card-art,50%) 35%;align-items:end;justify-items:end;padding:4px;font-size:28px;text-shadow:2px 2px 0 #201027,-1px -1px 0 var(--type-color)}
@media(max-width:600px){.game-shell .game-header{grid-template-columns:1fr auto auto;gap:8px}.game-shell .round-head{min-width:95px;grid-column:auto;grid-row:auto}.game-shell .round-head>span{font-size:9px}.game-shell .compact-brand b{font-size:12px}.game-shell .brand-bomb.small{width:28px;height:28px}.tabletop .seat-played.face-down{display:none}.tabletop .right-seat .seat-played{right:68%}.table-action{left:50%;right:auto;transform:translateX(-50%);bottom:295px;width:110px}.agent-launcher{top:9px;bottom:auto;left:auto;right:8px;flex-direction:row;gap:5px}.agent-launcher button{max-width:86px;font-size:9px;padding:6px;min-height:32px}.table-status{max-width:175px}.tabletop .advice-float{bottom:auto;top:48px;max-width:calc(100% - 30px);left:15px;max-height:165px}.tabletop .hand-cards{--fan-step:29px}.tabletop .hand-card::before{background-size:auto,400px auto;font-size:24px}.tabletop .hand-card .card-foot{font-size:8px}.tabletop .hand-card p{font-size:9px}.tabletop .hand-card{height:187px}.tabletop .hand-card .card-head{font-size:7px}.tabletop .hero-skill{bottom:194px}}
@media(prefers-reduced-motion:reduce){.tabletop *, .drag-card{animation:none!important;transition:none!important}}
