/* Qinghe's miniature neon arcade. Player presentation only; game rules stay separate. */
/* Detail-pass rules live at the end so the accepted scene and layout stay stable. */
/* Navigation paints its destination before requesting remote display data. */
.neon-game{--night:#0c1634;--glass:#172c50;--cyan:#86edff;--pink:#ff9cda;--gold:#ffdc95;--ice:#f1f6ff;--muted:#b8cae7;--line:#719dcc55;--green:#a0f5bd;--jade:#86edff;--serif:"PingFang TC","Microsoft JhengHei",sans-serif;--sans:var(--serif);background:var(--night);color:var(--ice);font-family:var(--sans);margin:0;overscroll-behavior:none}
.neon-game *{box-sizing:border-box}.neon-game button,.neon-game a,.neon-game summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.neon-game button{font-family:inherit;cursor:pointer}.neon-game button:disabled{cursor:default;opacity:.45}.neon-game button:active:not(:disabled){filter:brightness(1.2);transform:translateY(1px)}.neon-game :focus-visible{outline:3px solid var(--gold);outline-offset:3px}.neon-game input,.neon-game select,.neon-game textarea{font-size:16px!important;min-height:44px;color:var(--ice);background:#0b1630;border:1px solid #789cc3;border-radius:9px;padding:9px 12px;color-scheme:dark}.neon-game input:focus{border-color:var(--cyan)}.neon-game label{color:var(--ice);font-size:14px}.neon-game h1,.neon-game h2,.neon-game h3{color:var(--ice);font-family:var(--sans);letter-spacing:.02em}.neon-game p{line-height:1.6}.neon-game .muted,.neon-game .fine-print{color:var(--muted)}.neon-game .icon{width:22px;height:22px;flex:none}.neon-game a{color:var(--cyan)}
.game-shell{--accent:var(--cyan);position:fixed;inset:0;height:100dvh;min-height:0;padding:0;overflow:hidden;background:var(--night);color:var(--ice);isolation:isolate}
.game-shell[data-tone=pink]{--accent:var(--pink)}.game-shell[data-tone=gold]{--accent:var(--gold)}.game-shell[data-tone=green]{--accent:var(--green)}
.game-shell::before{content:"";position:absolute;inset:-20px;z-index:-2;background:linear-gradient(90deg,#071329b8,#0b1736ed),url('/assets/mobile-home-theme-2.png') center/cover;filter:blur(9px)}
.game-shell::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;box-shadow:inset 0 0 110px #050c28}
.game-hud{position:absolute;inset:0 0 auto;z-index:30;height:70px;padding:10px max(20px,env(safe-area-inset-right)) 6px max(20px,env(safe-area-inset-left));display:flex;align-items:center;gap:14px;background:linear-gradient(#091329ed,#09132955,transparent)}
.game-back,.game-settings-button{display:grid;place-items:center;width:46px;height:44px;flex:none;border-radius:12px;border:1px solid #82bade88;background:#142644e6;color:var(--cyan);box-shadow:inset 0 0 12px #57c6ff12,0 3px 0 #050d20}
.game-screen-title{display:flex;align-items:center;gap:10px;font-size:22px;margin:0;white-space:nowrap;text-shadow:0 0 14px color-mix(in srgb,var(--accent) 40%,transparent)}.game-screen-title>.icon{color:var(--accent)}
.game-wallet{margin-left:auto;display:flex;gap:8px;align-items:center}.game-currency{display:flex;align-items:center;gap:8px;min-height:44px;padding:7px 12px;background:#112441eb;border:1px solid #ffdc9570;border-radius:25px;color:var(--gold);box-shadow:inset 0 0 12px #ffdc9512,0 3px 0 #050c21}.game-currency strong{font-size:16px;font-variant-numeric:tabular-nums}.game-currency>span{display:grid;place-items:center;width:20px;height:20px;background:#554222;border-radius:50%;font-size:17px}.game-cards{color:var(--cyan);border-color:#86edff70}.game-cards>span{background:#255267}
.game-home-wordmark{margin-left:125px;color:var(--gold);font-size:22px;font-weight:800;text-shadow:0 0 16px #ffce6e80}.game-home-wordmark span{display:block;font-size:11px;color:var(--ice);font-weight:500;letter-spacing:.1em;margin-top:3px}
.game-shell .game-content{position:absolute;inset:74px max(20px,env(safe-area-inset-right)) 74px max(20px,env(safe-area-inset-left));padding:0;margin:0;width:auto;max-width:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#78b7d1 #11203b;border-radius:16px}
.game-screen-layout{display:grid;grid-template-columns:minmax(150px,23%) minmax(0,1fr);gap:18px;min-height:100%;align-items:start}.game-workspace{min-width:0;background:linear-gradient(125deg,#1c3157f5,#111e3df5);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:inset 0 0 0 3px #0a1530,0 12px 30px #02091b77;min-height:100%}
.scene-portal{position:sticky;top:0;text-align:center;align-self:start;padding:0 0 10px;overflow:hidden}.portal-art{height:185px;border-radius:24px;background-image:url('/assets/mobile-home-theme-2.png');background-size:730px auto;background-position:6% 45%;mask-image:linear-gradient(#000 80%,transparent)}.portal-guild .portal-art{background-position:100% 42%}.portal-history .portal-art{background-position:72% 88%}.portal-sign{display:flex;gap:8px;align-items:center;justify-content:center;padding:10px 8px;margin:-10px 4px 0;position:relative;border:2px solid var(--accent);border-radius:11px;color:var(--accent);background:#12223d;box-shadow:0 0 4px var(--accent),inset 0 0 9px #ffffff22;min-height:48px}.portal-sign strong{font-size:17px}.scene-portal>p{font-size:13px;color:var(--muted);margin:14px 9px 0;text-wrap:balance}
.game-dock{position:absolute;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;z-index:35;padding:4px 9px;border:1px solid #89c1dc66;border-radius:18px;background:linear-gradient(#1a2b47ee,#0b1530f2);box-shadow:0 5px 18px #02081b,0 -1px 9px #73bfff26}.game-dock button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:98px;min-height:44px;border:0;border-radius:12px;color:#c8d7ed;background:transparent;font-size:14px;font-weight:700}.game-dock button[aria-current]{color:var(--cyan);background:#24465e;box-shadow:inset 0 0 0 1px #86edff88,0 0 8px #86edff25}.game-dock .dock-resume{color:var(--gold);border-left:1px solid #ffdc9555;border-radius:0}
.game-shell .demo-strip,.game-shell .app-footer,.game-shell .back,.game-shell .prototype-note{display:none}.game-shell .page-heading{margin:0 0 18px;align-items:center;gap:12px}.game-shell .page-heading h1{font-size:22px;margin:0 0 4px}.game-shell .page-heading .eyebrow{color:var(--accent);font-size:13px;margin:0 0 5px}.game-shell .badge{border:1px solid #8fbcdb55;background:#29425c;color:#d6edff;border-radius:8px;font-size:12px;padding:5px 9px;white-space:normal;line-height:1.4}.game-shell .section-heading{margin:20px 0 12px}.game-shell .section-heading h2{font-size:18px}.game-shell .text-button{color:var(--cyan);font-size:14px;min-height:44px;padding:8px 12px}.game-shell .icon-button{color:var(--cyan);background:#193250;min-width:44px;min-height:44px;border:1px solid #73b0d455;border-radius:10px}
.neon-game .button{min-height:44px;padding:10px 16px;border-radius:11px;font-size:15px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;letter-spacing:.02em}.neon-game .button.primary{background:linear-gradient(#d1f9ec,#7de6cb);color:#102b32;border:1px solid #c6fff1;box-shadow:0 4px 0 #24715f,0 0 17px #7de6cb24}.neon-game .button.outline{background:linear-gradient(#263e5e,#192d4d);color:var(--ice);border:1px solid #7ea7d4;box-shadow:0 3px 0 #081429}.neon-game .button.wide{width:100%}.neon-game .button.small-button{font-size:13px;min-height:44px}.game-shell .notice{background:#24344e;border:1px solid #94a7c355;border-radius:12px;color:#d6e0f2;padding:13px 16px;font-size:13px;line-height:1.65}.game-shell .empty-state{border:0;background:none;color:var(--ice);padding:30px 20px;text-align:center}.game-shell .empty-state h2{font-size:22px}.game-shell .empty-state p{font-size:15px;color:var(--muted)}.game-shell .panel,.game-shell .ledger{background:#12233d;border:1px solid var(--line);border-radius:14px;padding:20px;color:var(--ice)}.game-shell .ledger h2{font-size:18px}
/* The original scene remains the lobby's spatial navigation. */
.game-shell.is-lobby .game-content{inset:0;border-radius:0;overflow:hidden}.game-shell.is-lobby::before{display:none}.game-shell.is-lobby .mobile-home{display:block;position:relative;width:100%;height:100dvh;isolation:isolate;overflow:hidden;touch-action:manipulation}.game-shell.is-lobby .desktop-lobby,.game-shell.is-lobby .desktop-lobby-heading,.game-shell.is-lobby .lan-invite{display:none}
.game-shell .mobile-home-scene{position:absolute;left:50%;top:0;transform:translateX(-50%);width:max(100%,calc(100dvh * 1376 / 768));aspect-ratio:1376/768}.game-shell .home-scene-art{position:absolute;inset:0;background:url('/assets/mobile-home-theme-2.png') center/100% 100% no-repeat;filter:brightness(.86)}.game-shell .home-hotspot{position:absolute;padding:0;border:0;border-radius:12px;background:transparent;min-width:44px;min-height:44px;touch-action:manipulation}.game-shell .home-hotspot span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.game-shell .home-hotspot:active{box-shadow:0 0 22px #86edff99;background:#b9eeff22}.game-shell .home-hotspot-public{left:41%;top:46%;width:16%;height:14%}.game-shell .home-hotspot-friend{left:56.5%;top:6%;width:15%;height:18%}.game-shell .home-hotspot-store{left:14%;top:36%;width:13%;height:18%}.game-shell .home-hotspot-wardrobe{left:34%;top:22%;width:13%;height:17%}.game-shell .home-hotspot-guild{left:81%;top:25%;width:13%;height:18%}
.game-shell .home-player{position:absolute;left:max(12px,env(safe-area-inset-left));top:max(9px,env(safe-area-inset-top));display:grid;grid-template-columns:58px 1fr;grid-template-rows:1fr 1fr;gap:0 10px;width:180px;min-height:64px;text-align:left;padding:6px 12px 6px 6px;border:1px solid #8dd9ec88;border-radius:14px;background:#0e1c36ec;box-shadow:0 0 16px #80ddff24;z-index:40;color:var(--ice);touch-action:manipulation}.game-shell .home-player-frame{grid-row:1/3;display:block;width:54px;height:54px;border-radius:11px;padding:2px;border:2px solid var(--cyan);overflow:hidden;background:#274666}.game-shell .home-player-frame svg{width:100%;height:100%;border-radius:8px}.game-shell .home-player-name{align-self:end;font-size:14px;max-width:94px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.game-shell .home-player-id{font-size:11px;align-self:center;color:var(--muted);white-space:nowrap}.game-shell .home-mobile-menu,.game-shell .home-resume{display:none}.game-shell.is-lobby .game-home-wordmark{margin-left:190px}.game-shell.is-lobby .game-hud{pointer-events:none}.game-shell.is-lobby .game-wallet{pointer-events:auto}
/* Player card and settings are real game destinations. */
.player-card{display:grid;grid-template-columns:34% 1fr;gap:30px;max-width:1000px;margin:0 auto;min-height:100%;padding:24px;border:1px solid #81d2ea88;border-radius:22px;background:linear-gradient(130deg,#263f65e8,#101d3bf7);box-shadow:inset 0 0 0 4px #09152b,0 0 25px #5fd6ff12}.player-card-portrait{display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;border-radius:18px;background:radial-gradient(ellipse at center,#42729a,transparent 70%);min-width:0}.player-card-portrait>.character-portrait{width:160px;height:160px;border:3px solid #9deeff;border-radius:28px;box-shadow:0 0 25px #74dfff66;background:#294a6e}.player-card-info h2{font-size:30px;margin:6px 0 12px}.neon-label{font-size:13px;color:var(--cyan)}.player-number{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:14px}.player-number strong{color:var(--ice);font-size:20px;letter-spacing:.07em}.player-assets{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.player-assets>div{display:flex;gap:12px;align-items:center;padding:14px;background:#10203b;border:1px solid var(--line);border-radius:13px;color:var(--gold)}.player-assets>div:nth-child(2){color:var(--cyan)}.player-assets span{font-size:12px}.player-assets strong{display:block;font-size:23px;margin-top:3px;color:var(--ice)}.player-guild{display:flex;align-items:center;gap:13px;width:100%;padding:10px 14px;border:1px solid #82c4d255;background:#1b3853;color:var(--cyan);border-radius:12px;text-align:left}.player-guild>span{flex:1;font-size:16px;color:var(--ice)}.player-guild small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.profile-actions{display:flex;gap:12px;margin-top:20px}.game-settings-layout{display:grid;grid-template-columns:28% 1fr;gap:24px;max-width:1000px;margin:auto;padding:22px;background:#142543ed;border:1px solid var(--line);border-radius:20px}.settings-identity{text-align:center;align-self:start;padding:20px 8px}.settings-identity>svg{width:100px;height:100px;border:2px solid var(--cyan);border-radius:23px}.settings-identity h2{font-size:21px}.settings-identity p{font-size:12px;color:var(--muted)}.settings-options>h2{margin:0 0 14px;font-size:22px}.setting-action,.setting-info{display:flex;align-items:center;gap:14px;min-height:65px;width:100%;padding:12px 16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#203958;color:var(--cyan);margin-bottom:10px}.setting-action>span,.setting-info>span{flex:1;font-size:16px;color:var(--ice)}.setting-action small,.setting-info small{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}.setting-info{background:#112741}.settings-exit{margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}.settings-exit p{font-size:12px;color:var(--muted)}
/* Rule selection: lit switches, readable chips, fixed context. */
.game-route-rules .scene-portal,.game-route-wardrobe .scene-portal,.game-route-history .scene-portal{display:none}.game-route-rules .game-screen-layout,.game-route-wardrobe .game-screen-layout,.game-route-history .game-screen-layout{display:block}.game-route-rules .rules-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px}.game-route-rules .rules-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;padding:0;background:none;border:0;box-shadow:none}.game-route-rules .rules-form fieldset{padding:0;margin:0;border:0;min-width:0}.game-route-rules .rules-form legend{font-size:15px;font-weight:700;margin-bottom:10px;color:#e1ebff}.game-route-rules .rules-form>.button{grid-column:1/-1}.game-route-rules .choice{min-height:62px;border-radius:10px;border:1px solid #7398ba;background:#10213c;padding:9px;gap:7px}.game-route-rules .choice strong{font-size:14px;color:var(--ice)}.game-route-rules .choice small{font-size:11px;color:var(--muted);line-height:1.5}.game-route-rules .choice:has(input:checked){background:#24595b;border-color:#a0f5bd;box-shadow:inset 0 0 12px #93f1cb22,0 0 8px #93f1cb22}.game-route-rules .choice i{color:var(--green)}.game-route-rules .inputs input{width:100%}.game-route-rules .rules-aside{background:#0e1e36;border:1px solid var(--line);border-radius:14px;padding:15px;font-size:13px;color:var(--muted)}.game-route-rules .mini-table{background:linear-gradient(#235c61,#173347);border:1px solid #7cdacb70;border-radius:12px;padding:14px}.game-route-rules .mini-table h2{font-size:18px;color:var(--green)}.game-route-rules .mini-table>.icon{width:35px;height:35px;color:var(--green)}.game-route-rules .rules-aside h3{font-size:15px}.game-route-rules .rules-aside ul{padding-left:18px;line-height:1.8}.game-route-rules .rules-aside .notice{padding:10px;font-size:12px}
/* Four-seat waiting lounge. */
.game-route-room .page-heading{padding:0 12px}.game-route-room .waiting-panel{position:relative;max-width:1000px;margin:auto;background:radial-gradient(ellipse at 50% 40%,#23595b,#10213b 75%);border:2px solid #70c9cd;border-radius:28px;box-shadow:inset 0 0 0 5px #20334f,inset 0 0 50px #102035,0 0 20px #78e0d92b;padding:22px;text-align:center}.game-route-room .waiting-orbit{display:none}.game-route-room .room-code{background:#0b1c36;border:1px solid #f3d99577;border-radius:12px;display:inline-flex;padding:8px 18px;gap:15px;align-items:center;margin:0 0 15px;color:var(--gold)}.game-route-room .room-code strong{font-size:28px;letter-spacing:.15em}.game-route-room .seats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-width:690px;margin:16px auto}.game-route-room .seat{padding:14px 8px;border:1px dashed #87bec966;border-radius:16px;background:#14274370;min-width:0}.game-route-room .seat.occupied{background:#1e4361;border:1px solid #84dfec}.game-route-room .seat-avatar{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;border:2px solid #85bacb;color:var(--cyan);background:#15304b;font-size:24px;margin:0 auto 8px}.game-route-room .seat strong{color:var(--ice);font-size:15px}.game-route-room .seat small{font-size:12px;color:var(--muted)}.game-shell .rule-chips{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:14px 0}.game-shell .rule-chips span{background:#162b48;border:1px solid #77b9c866;color:#d4e8f4;border-radius:8px;padding:6px 9px;font-size:12px}.game-shell .match-number{font-size:12px;color:var(--muted)}
/* Shop counter. */
.game-route-store .balance-strip{display:none}.game-route-store .product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.game-route-store .product{display:flex;flex-direction:column;align-items:center;text-align:center;border-radius:16px;padding:16px 12px;background:linear-gradient(160deg,#354665,#142440);border:1px solid #f3cf8d88;box-shadow:inset 0 -5px 0 #0c1730}.game-route-store .product-art{display:grid;place-items:center;width:80px;height:70px;margin:0 auto 12px;border:2px solid #ffe19b;border-radius:25px 25px 14px 14px;background:radial-gradient(#9d783f,#373450);box-shadow:0 0 20px #ffdc9533;transform:rotate(-5deg)}.game-route-store .product-art .icon{width:44px;height:44px;color:#ffe9b4}.game-route-store .product-art.cards{border-color:var(--cyan);background:radial-gradient(#448a9b,#20345f);transform:rotate(5deg)}.game-route-store .product h2{font-size:17px;margin:8px 0}.game-route-store .product-amount{font-size:24px;color:var(--gold)}.game-route-store .product-amount small{font-size:12px;color:var(--muted)}.game-route-store .product p{font-size:12px;color:var(--muted);flex:1}.game-route-store .product>.button{font-size:12px;white-space:normal;padding:8px}.game-route-store .store-notice{font-size:12px}.game-route-store .ledger{margin-top:20px}
/* Dressing room with a large stage and small collectible shelves. */
.game-route-wardrobe .wardrobe-layout{display:grid;grid-template-columns:minmax(230px,36%) 1fr;gap:20px}.game-route-wardrobe .dressing-mirror{background:radial-gradient(ellipse at 50% 40%,#754376,#172b4b 68%);border:1px solid #ff9cda88;border-radius:20px;padding:16px;min-width:0}.game-route-wardrobe .mirror-caption{align-items:start;gap:10px}.game-route-wardrobe .mirror-caption h2{font-size:21px}.game-route-wardrobe .mirror-caption span{font-size:12px;color:#e7c4e3}.game-route-wardrobe .mirror-caption>.badge{display:none}.game-route-wardrobe .avatar-stage{height:240px;background:radial-gradient(ellipse at bottom,#feade349,transparent 65%);border:0;box-shadow:none}.game-route-wardrobe .mirror-note{display:none}.game-route-wardrobe .character-picker{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:14px 0}.game-route-wardrobe .character-picker button{min-height:54px;padding:4px;border:1px solid #bb93be;background:#17263e;border-radius:9px;color:var(--ice)}.game-route-wardrobe .character-picker button.selected{border:2px solid var(--pink);background:#633d69;box-shadow:0 0 12px #ff9cda44}.game-route-wardrobe .character-picker span{font-size:10px}.game-route-wardrobe .closet{background:transparent;border:0;padding:0;min-width:0}.game-route-wardrobe .closet-heading h2{font-size:20px}.game-route-wardrobe .closet-heading p{font-size:12px;color:var(--muted)}.game-route-wardrobe .cosmetic-balance{background:#12223c;color:var(--gold);border-color:#c6ad7777}.game-route-wardrobe .closet-tabs,.game-route-wardrobe .slot-filters{gap:8px;margin:12px 0;display:flex;flex-wrap:wrap}.game-route-wardrobe .closet-tabs button,.game-route-wardrobe .slot-filters button{min-height:44px;background:#1c3352;border:1px solid #8ca7ca;color:var(--ice);border-radius:10px;padding:8px 12px}.game-route-wardrobe [aria-pressed=true]{background:#593e67!important;border-color:var(--pink)!important;color:#ffe8f8!important}.game-route-wardrobe .cosmetic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.game-route-wardrobe .cosmetic-card{background:#1a2b47;border:1px solid #b88ba577;border-radius:13px;overflow:hidden}.game-route-wardrobe .cosmetic-card h3{color:var(--ice);font-size:14px}.game-route-wardrobe .cosmetic-card p,.game-route-wardrobe .cosmetic-card small{color:var(--muted);font-size:12px}.game-route-wardrobe .cosmetic-card .button{min-height:44px;font-size:12px}.game-route-wardrobe .equipped-slots>div{background:#14243d;border-color:var(--line);color:var(--ice)}.game-route-wardrobe .equipped-slots strong{font-size:12px}.game-route-wardrobe .equipped-slots span{color:var(--muted)}
/* Guild hall and match records keep real data and actions. */
.game-shell .guild-header{background:linear-gradient(100deg,#1e4c65,#192b4a);border:1px solid #8bdce2;border-radius:18px;padding:22px;color:var(--ice)}.game-shell .guild-crest{display:grid;place-items:center;background:#1e4c60;color:var(--cyan);border:2px solid #88dfe5;border-radius:18px;box-shadow:0 0 18px #86edff22}.game-shell .guild-header h2{color:var(--ice);font-size:25px}.game-shell .guild-header p{color:var(--muted);font-size:13px}.guild-member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.guild-member-card{display:grid;grid-template-columns:44px 1fr;gap:8px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#142943}.guild-member-card .table-avatar{width:40px;height:40px;background:#2b5267;color:var(--ice);border:1px solid #96d4e1;border-radius:10px;display:grid;place-items:center;grid-row:1/3}.guild-member-card strong{font-size:14px}.guild-member-card small{font-size:11px;color:var(--muted)}.guild-member-card .badge{grid-column:1/-1}.guild-member-card>b{grid-column:1/-1;color:var(--gold);font-size:18px}
.game-shell .guild-economy-section,.game-shell .guild-applications{background:#142841;border:1px solid var(--line);border-radius:16px;padding:18px;margin:18px 0;color:var(--ice)}.game-shell .guild-economy-section>h2{font-size:19px}.game-shell .guild-economy-section p{font-size:12px;color:var(--muted)}.game-shell .guild-rank-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.game-shell .guild-rank-grid article{background:#102039;border:1px solid #718eb455;border-radius:12px;padding:14px;min-width:0}.game-shell .guild-rank-grid h3{font-size:16px;color:var(--gold)}.game-shell .guild-economy-section details{padding:12px;color:var(--muted);background:#0e1e35;border-radius:10px}.game-shell details summary{min-height:44px;display:flex;align-items:center;font-size:14px;cursor:pointer;color:var(--cyan)}
.game-shell .table-scroll{border:1px solid var(--line);border-radius:12px;background:#102039;overflow:auto}.game-shell table{color:var(--ice);font-size:13px;width:100%;border-collapse:collapse}.game-shell th{background:#203858;color:#bcdcf1;font-weight:600;font-size:12px;padding:12px}.game-shell td{padding:12px;border-bottom:1px solid #647b9a33;background:transparent}.game-shell tr:last-child td{border-bottom:0}.game-shell td small{display:block;color:var(--muted);font-size:11px}.game-shell .positive{color:#a0f5bd!important}.game-shell .negative{color:#ffb4ba!important}
.game-route-history .history-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:none;border:0;padding:0;margin:0 0 18px}.game-route-history .history-summary>h2,.game-route-history .history-summary>.fine-print{grid-column:1/-1;margin:0;font-size:14px;color:var(--muted)}.game-route-history .history-stat{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:14px;background:linear-gradient(#243c5e,#152841);border:1px solid #8eabc177;border-radius:13px}.game-route-history .history-stat>strong{font-size:15px;color:var(--ice)}.game-route-history .history-stat>span{font-size:13px;color:var(--muted)}.game-route-history .history-stat>b{font-size:25px;color:var(--gold)}.game-route-history .history-stat small{font-size:11px;color:var(--muted)}.game-route-history .history-filters{display:flex;gap:14px;align-items:end;margin:16px 0}.game-route-history .history-number-search{display:flex;gap:10px;align-items:end;padding:0;margin:16px 0}.game-route-history .history-number-search label{flex:1;display:grid;gap:5px}.game-route-history .history-number-search input{width:100%}.game-route-history .history-row{background:#19304b;border:1px solid #7ea5c777;border-left:4px solid var(--gold);border-radius:12px;margin:10px 0;padding:16px 18px}.game-route-history .history-row h2{color:var(--ice);font-size:19px}.game-route-history .history-row p,.game-route-history .history-row small{color:var(--muted);font-size:12px}.game-route-history .history-detail{background:#142641;border:1px solid var(--line);border-radius:15px;padding:20px}.game-route-history .history-players>div{background:#19334c;border-color:var(--line)}.game-route-history .history-players>div.is-self{background:#244857;border-color:var(--cyan)}.game-route-history .history-players strong{font-size:14px}.game-route-history .history-players small{color:var(--muted)}.game-route-history .history-hand{background:#182e4b;border-color:var(--line);color:var(--ice)}.game-route-history .history-hand summary{font-size:14px;color:var(--ice)}.game-route-history .history-hand-body{border-color:var(--line);font-size:14px}.game-route-history .history-expand{color:var(--cyan)}.game-route-history .history-times{font-size:13px}.game-route-history .history-times dt{color:var(--muted)}
/* Shared dialogs and notifications are part of the same arcade. */
.neon-game dialog{border:1px solid #91d2e8;border-radius:20px;background:linear-gradient(140deg,#263b5b,#101e39);color:var(--ice);box-shadow:inset 0 0 0 4px #0b1731,0 20px 80px #0009,0 0 24px #86edff22;padding:26px;max-height:calc(100dvh - 30px);max-width:calc(100vw - 40px);overflow:auto}.neon-game dialog::backdrop{background:#030c27bc;backdrop-filter:blur(7px)}.neon-game dialog h2{font-size:23px;margin:0 44px 14px 0}.neon-game dialog p{font-size:14px;color:var(--muted)}.neon-game dialog .modal-close{min-width:44px;min-height:44px;border:1px solid #819fc8;background:#213b5c;color:var(--ice);border-radius:11px}.neon-game dialog .guild-keypad button{background:#233c5b;color:var(--ice);border:1px solid #87b5d5;min-height:44px;border-radius:9px;box-shadow:0 2px 0 #06122b}.neon-game dialog .dialog-error{color:#ffbdc6}.neon-game #toast{background:#183c55;color:#eaf8ff;border:1px solid var(--cyan);border-radius:12px;font-size:14px;padding:14px 20px;z-index:2000}
.game-shell .network-status{position:fixed;left:50%;transform:translateX(-50%);bottom:76px;z-index:70;color:#ffe6b1;background:#302c35f5;border:1px solid #ffdc9577;border-radius:10px;font-size:12px;padding:8px 14px;max-width:80vw;pointer-events:none}.game-shell .network-status[data-state=connected]{display:none}
/* Preserve table geometry and tap coordinates; restyle the surrounding game HUD. */
.game-shell.is-playing .game-hud,.game-shell.is-playing .game-dock{display:none}.game-shell.is-playing .game-content{inset:0;border-radius:0;padding:0;max-width:none;overflow:hidden}.neon-game .is-playing{background:#0c1634}.game-shell.is-playing .game-heading{color:var(--ice)}.game-shell.is-playing .game-heading h1{color:var(--gold)}.game-shell.is-playing .game-heading .eyebrow{color:var(--muted)}.game-shell.is-playing .game-heading .text-button{color:var(--cyan);background:#152b48;border-color:#82c5d977}.neon-game .arena .table-player{border-color:#8fcae588}.neon-game .voice-controls{background:#132b43;color:var(--ice);border:1px solid #82bdd277;border-radius:10px}.neon-game .voice-controls button{min-height:44px;color:var(--ice);background:#264660;border-radius:8px}.neon-game .voice-controls small{color:var(--muted)}
@media(max-width:1100px){.game-hud{height:62px;padding-top:8px;gap:10px}.game-screen-title{font-size:20px}.game-home-wordmark{font-size:18px}.game-shell .game-content{inset:66px max(15px,env(safe-area-inset-right)) 68px max(15px,env(safe-area-inset-left))}.game-dock{bottom:max(7px,env(safe-area-inset-bottom));padding:3px 7px;border-radius:15px}.game-dock button{min-width:87px;font-size:13px}.game-workspace{padding:16px}.game-screen-layout{gap:14px}.portal-art{height:150px;background-size:650px auto}.portal-sign{padding:8px 4px}.portal-sign strong{font-size:15px}.game-route-rules .rules-layout{grid-template-columns:1fr 205px;gap:16px}.game-route-rules .rules-form{gap:15px}.game-route-wardrobe .cosmetic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-route-wardrobe .avatar-stage{height:210px}.game-route-wardrobe .wardrobe-layout{grid-template-columns:38% 1fr;gap:15px}.game-route-wardrobe .character-picker{grid-template-columns:repeat(3,1fr)}.player-card{padding:18px;gap:22px}.player-card-info h2{font-size:26px}.player-card-portrait>.character-portrait{width:135px;height:135px}.guild-member-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-height:500px) and (orientation:landscape){.game-hud{height:56px;padding-top:5px}.game-screen-title{font-size:19px}.game-shell .game-content{top:60px;bottom:63px}.game-dock{bottom:max(4px,env(safe-area-inset-bottom));padding:2px 6px}.game-dock button{min-height:44px}.game-workspace{padding:14px}.game-shell .page-heading{margin-bottom:12px}.game-shell .page-heading h1{font-size:20px}.scene-portal>p{font-size:12px;margin-top:10px}.portal-art{height:115px;background-size:540px auto}.portal-sign{min-height:44px}.game-shell .home-player{grid-template-columns:46px 1fr;min-height:58px;width:164px;gap:0 8px;top:6px}.game-shell .home-player-frame{width:46px;height:46px}.game-shell.is-lobby .game-home-wordmark{margin-left:172px;font-size:16px}.game-home-wordmark span{display:none}.game-currency{padding:5px 10px;gap:6px}.game-currency strong{font-size:14px}.player-card{padding:16px;grid-template-columns:29% 1fr;gap:20px}.player-card-portrait>.character-portrait{width:110px;height:110px}.player-card-info h2{font-size:23px;margin:4px 0 6px}.player-assets{margin:10px 0;gap:10px}.player-assets>div{padding:9px 12px}.player-assets strong{font-size:20px}.player-number strong{font-size:18px}.profile-actions{margin-top:12px}.game-route-room .waiting-panel{padding:14px 20px}.game-route-room .seats{gap:10px;margin:12px auto}.game-route-room .seat{padding:8px}.game-route-room .seat-avatar{width:44px;height:44px;font-size:19px;margin-bottom:5px}.game-route-room .room-code{margin-bottom:4px;padding:4px 15px}.game-route-room .room-code strong{font-size:24px}.game-route-store .product{padding:12px 8px}.game-route-store .product-art{height:54px;width:60px}.game-route-store .product-art>.icon{width:32px;height:32px}.game-route-store .product h2{font-size:15px}.game-route-store .product-amount{font-size:22px}.game-route-wardrobe .avatar-stage{height:170px}.game-route-wardrobe .dressing-mirror{padding:12px}.game-route-wardrobe .closet-tabs button,.game-route-wardrobe .slot-filters button{padding:6px 10px}.game-settings-layout{padding:16px;gap:20px}.settings-identity{padding:10px}.settings-identity>svg{width:80px;height:80px}}
@media(max-width:700px){.game-home-wordmark{display:none}.game-hud{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.game-screen-title{font-size:17px}.game-screen-title>.icon{display:none}.game-wallet{gap:5px}.game-currency{padding:5px 9px;gap:5px}.game-currency>span{display:none}.game-currency strong{font-size:13px}.game-dock button{min-width:72px}.game-shell .game-content{left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right))}.scene-portal{display:none}.game-screen-layout{display:block}.game-route-rules .rules-layout{grid-template-columns:1fr}.game-route-rules .rules-aside{margin-top:15px}.game-route-wardrobe .wardrobe-layout{grid-template-columns:1fr}.game-route-wardrobe .character-picker{grid-template-columns:repeat(6,1fr)}.game-route-store .product-grid{gap:8px}.game-route-history .history-summary{gap:8px}.game-route-history .history-stat{padding:10px}.game-route-history .history-stat>strong{font-size:13px}.game-route-history .history-stat>span{font-size:12px}.game-route-history .history-filters{gap:8px;flex-wrap:wrap}.game-route-history .history-filters label{min-width:120px}.player-card{grid-template-columns:1fr}.game-settings-layout{grid-template-columns:1fr}.settings-identity{display:none}.game-shell .guild-rank-grid{grid-template-columns:1fr}.game-shell .home-player{width:145px;grid-template-columns:42px 1fr}.game-shell .home-player-frame{width:42px;height:42px}.game-shell .home-player-name{max-width:75px;font-size:12px}.game-shell .home-player-id{font-size:10px}}
@media(max-height:500px) and (orientation:landscape){.player-card-info{display:grid;grid-template-columns:1fr auto;gap:9px 12px;align-content:center}.player-card-info>.neon-label{display:none}.player-card-info>h2{grid-column:1;margin:0;align-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-number{grid-column:2;gap:8px}.player-number>span{display:none}.player-assets{grid-column:1/-1;margin:0}.player-assets>div{padding:8px 12px}.player-assets strong{font-size:20px;margin-top:1px}.player-guild{grid-column:1/-1;min-height:49px;padding:7px 12px}.player-guild small{margin-top:2px}.profile-actions{grid-column:1/-1;margin:0;gap:10px}.profile-actions>.button{flex:1}.player-card-portrait>.button{font-size:13px;padding:8px 10px}.player-card{min-height:100%}}
.game-route-store .shop-status{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:12px;margin-bottom:10px}.shop-status>span{display:flex;align-items:center;gap:6px}.shop-status .icon{width:15px;height:15px}.shop-status>a{min-height:32px;display:flex;align-items:center}.game-route-store .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 14px}.game-route-store .product h2{font-size:15px;margin:5px 0}.game-route-store .product-amount{font-size:22px;display:flex;flex-direction:column;gap:4px}.game-route-store .product>.button{flex-direction:column;gap:3px;font-size:12px}.game-route-store .product>.button small{font-size:11px;color:var(--gold)}.game-route-store .product p{font-size:11px;margin:8px 0}.game-route-store .product-art{height:54px;width:58px;margin-bottom:8px}.game-route-store .product-art .icon{width:31px;height:31px}.game-route-store .ledger{padding:8px 14px}.game-route-store .ledger summary{min-height:44px}.game-shell .page-heading h1{font-size:20px}.game-route-wardrobe .page-heading{display:none}.game-route-history .page-heading{display:none}
@media(max-height:500px) and (orientation:landscape){.game-route-store .product{padding:10px 7px}.game-route-store .product-grid{gap:8px}.game-route-store .product-art{height:44px;width:48px;margin-bottom:5px}.game-route-store .product-art>.icon{width:28px;height:28px}.game-route-store .product p{margin:6px 0;font-size:10px}.game-route-store .product-amount{font-size:20px}.game-route-store .shop-status{margin-bottom:5px}.game-route-store .product>.button{padding:7px 3px}}
@media(max-width:700px){.game-route-store .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:no-preference){.game-workspace,.player-card,.game-settings-layout{animation:game-enter 180ms ease-out}@keyframes game-enter{from{transform:translateY(6px)}to{transform:none}}}
@media(prefers-reduced-motion:reduce){.neon-game *{animation:none!important;transition:none!important}}
/* The dressing room keeps the mirror beside a separately scrollable collection. */
.game-route-wardrobe .cosmetic-item{background:#182a47;border:1px solid #bd8fb477;border-radius:13px}.game-route-wardrobe .cosmetic-item.trying{border-color:var(--pink);box-shadow:0 0 9px #ff9cda33}.game-route-wardrobe .item-preview,.game-route-wardrobe .cosmetic-item:nth-child(n) .item-preview{background:radial-gradient(ellipse,#684e72,#243953);height:125px;padding:12px}.game-route-wardrobe .item-details>span,.game-route-wardrobe .item-details p{color:var(--muted)}.game-route-wardrobe .item-details h3{font-size:15px}.game-route-wardrobe .item-price{color:var(--gold)}.game-route-wardrobe .wardrobe-message{color:#ead4e6;margin:8px 0;font-size:12px}.game-route-wardrobe .closet-tabs{border-bottom:0}.game-route-wardrobe .closet-heading p{margin-bottom:5px}.game-route-wardrobe .equipped-details{grid-column:1/-1}.game-route-wardrobe .equipped-details summary{justify-content:center;color:#e5c5e4;font-size:12px}.game-route-history #history-back{display:inline-flex;margin-bottom:12px}.game-route-history .page-heading{display:flex}.game-route-history .game-workspace:has(.history-summary)>.page-heading{display:none}
@media(orientation:landscape) and (max-height:600px){
.game-route-wardrobe .game-content{overflow:hidden}.game-route-wardrobe .game-screen-layout,.game-route-wardrobe .game-workspace,[data-wardrobe],.game-route-wardrobe .wardrobe-layout{height:100%;min-height:0}.game-route-wardrobe .game-workspace{padding:10px}.game-route-wardrobe .wardrobe-layout{grid-template-columns:38% minmax(0,1fr);gap:12px;align-items:stretch}.game-route-wardrobe .dressing-mirror{position:relative;top:0;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) 106px;gap:6px;align-content:start;overflow:auto;max-width:none;margin:0}.game-route-wardrobe .mirror-caption{grid-column:1/-1;min-height:28px}.game-route-wardrobe .mirror-caption h2{font-size:17px;display:inline-block;margin-right:8px}.game-route-wardrobe .mirror-caption span{font-size:10px}.game-route-wardrobe .avatar-stage{height:126px;margin:0}.game-route-wardrobe .character-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin:0}.game-route-wardrobe .character-picker button{height:42px;min-height:42px;padding:2px;display:flex;align-items:center;gap:2px}.game-route-wardrobe .character-picker svg{width:25px;height:32px;flex:none}.game-route-wardrobe .character-picker span{font-size:10px;writing-mode:vertical-rl;letter-spacing:0}.game-route-wardrobe .dressing-mirror>.button{grid-column:1/-1;margin:0;min-height:44px;padding:6px}.game-route-wardrobe .closet{height:100%;overflow:auto;padding:2px 8px 12px 0;scrollbar-width:thin;scrollbar-color:#e7a8d0 #12223b}.game-route-wardrobe .closet-heading h2{font-size:17px}.game-route-wardrobe .closet-heading p{font-size:11px}.game-route-wardrobe .closet-tabs,.game-route-wardrobe .slot-filters{margin:7px 0;gap:5px}.game-route-wardrobe .slot-filters button{font-size:12px;min-height:44px;padding:4px 8px}.game-route-wardrobe .closet-tabs button{font-size:13px}.game-route-wardrobe .cosmetic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.game-route-wardrobe .item-details{padding:10px}.game-route-wardrobe .item-details p{font-size:11px}.game-route-wardrobe .item-actions .button{padding:6px 9px}.player-card{grid-template-columns:29% minmax(0,1fr)}
}
@media(orientation:landscape) and (max-height:500px){.game-route-store .product{min-height:0;padding:9px 7px}.game-route-store .product-art{height:38px;width:44px;margin:0 0 3px}.game-route-store .product h2{font-size:14px;line-height:1.35;margin:3px 0}.game-route-store .product-amount{line-height:1.2;gap:3px;font-size:20px}.game-route-store .product-amount small{font-size:11px;margin:0;line-height:1.25}.game-route-store .product p{min-height:0;flex:0;margin:5px 0;line-height:1.4}.game-route-store .product>.button{line-height:1.25;min-height:44px;gap:2px}.game-route-store .shop-status{min-height:28px}.game-route-store .shop-status>a{min-height:28px}}
@media(orientation:landscape) and (max-height:600px){.game-route-history .history-summary{gap:8px;margin-bottom:10px}.game-route-history .history-summary>h2{display:none}.game-route-history .history-summary>.fine-print{font-size:12px;line-height:1.4}.game-route-history .history-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 7px;padding:10px 12px}.game-route-history .history-stat>strong{grid-column:1;font-size:14px}.game-route-history .history-stat>span{grid-column:1;font-size:11px}.game-route-history .history-stat>span small{display:block;font-size:10px}.game-route-history .history-stat>b{grid-column:2;grid-row:1/3;align-self:center;font-size:23px}.game-route-history .history-stat>b small{display:block;font-size:10px}.game-route-history .history-filters{margin:10px 0}.game-route-history .history-filters label{font-size:12px}.game-route-history .history-number-search{margin:10px 0}}
.game-route-rules .choice{padding:0;min-height:62px;overflow:hidden}.game-route-rules .choice>span{min-height:62px;padding:10px 12px;border:0;border-radius:9px;background:transparent}.game-route-rules .choice input:checked+span{background:transparent;color:var(--ice)}.game-route-rules .choice input:checked+span strong{color:#dcfff4}.game-route-rules .choice input:checked+span small{color:#c4eadc}.game-route-rules .choice i{color:#b5ffe0;top:8px;right:6px}.game-route-rules .rules-aside{display:block}.game-route-rules .rules-aside ul{color:var(--muted);font-size:12px;padding-left:18px;margin:0 0 12px}.game-route-rules .rules-aside .notice{padding:12px;font-size:12px}.game-route-rules .page-heading h1,.game-route-rules .page-heading>.badge{display:none}.game-route-rules .page-heading .eyebrow{font-size:15px;margin:0}.game-route-rules .four .choice,.game-route-rules .three .choice,.game-route-rules .four .choice>span,.game-route-rules .three .choice>span{min-height:48px}.game-route-rules .four .choice>span,.game-route-rules .three .choice>span{display:flex;align-items:center;justify-content:center;padding:8px 5px}
@media(orientation:landscape) and (max-height:500px){.game-route-room:not(.is-playing) .page-heading{margin-bottom:8px}.game-route-room:not(.is-playing) .page-heading .eyebrow{display:none}.game-route-room:not(.is-playing) .page-heading h1{font-size:17px}.game-route-room .waiting-panel{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:6px 15px;padding:12px 16px}.game-route-room .waiting-panel>.match-number{grid-column:1/-1;margin:0;font-size:10px}.game-route-room .seats{grid-column:1;grid-row:2/7;margin:0;align-self:center;gap:8px}.game-route-room .seat{padding:12px 5px}.game-route-room .seat strong{font-size:14px}.game-route-room .seat small{font-size:11px}.game-route-room .waiting-panel>.rule-chips{grid-column:2;gap:4px;margin:0}.game-route-room .waiting-panel>.rule-chips span{padding:3px 6px;font-size:10px}.game-route-room .waiting-panel>.muted{display:none}.game-route-room .waiting-panel>button{grid-column:2;margin:0;min-height:44px}.game-route-room .waiting-panel>.room-code,.game-route-room .waiting-panel>.voice-controls{grid-column:2}.game-route-room .room-code{margin:0;padding:0 8px}.game-route-room .room-code strong{font-size:20px}.game-route-room .room-code span{font-size:12px}}
/* Table chrome shares the night palette; the table camera and tile hit targets stay intact. */
.game-shell.is-playing .game-content{overflow:auto}.game-shell.is-playing .game-heading{min-height:48px;padding:2px 12px;margin:0}.game-shell.is-playing .arena{background:#10203b;border-color:#86edff88;box-shadow:0 0 18px #86edff22}.neon-game .arena-background{filter:brightness(.65) saturate(.8)}.neon-game .seat-info{color:#e8f6ff;background:#122c48ed;border-color:#8ad9e8;box-shadow:0 0 12px #86edff22}.neon-game .seat-info strong small,.neon-game .seat-info>small{color:#bdd9e9}.neon-game .seat-info b{color:var(--gold)}.neon-game .arena-seat.current .seat-info{background:#3b3c42ed;border-color:var(--gold);box-shadow:0 0 12px #ffdc9533}.neon-game .arena-controls{background:linear-gradient(#1e3e58,#11243d);border-color:#8dd4df;color:var(--ice)}.neon-game .session-notice{background:#10213b;color:#c4d8ed}.neon-game .session-vote,.neon-game .hand-result-panel{color:var(--ice);background:linear-gradient(135deg,#253e60,#101f3b);border-color:var(--gold);box-shadow:0 0 24px #ffdc9522,0 20px 70px #020818a8}.neon-game .hand-result-panel header{background:linear-gradient(100deg,#294969,#162c4b);color:var(--gold)}.neon-game .result-headline,.neon-game .result-formula{color:var(--gold)}.neon-game .result-balance{background:#1b3651;color:var(--ice)}.neon-game .hand-result-panel footer{background:#132b44;border-color:#84bfd955}.neon-game .hand-result-panel footer p{color:var(--cyan)}.neon-game .session-vote h2 span{color:var(--gold)}.neon-game .call-menu,.neon-game .call-hint{background:#17314bea;color:var(--ice);border-color:#82d2df}.neon-game .table-reference .match-number{background:#122d46ed;color:#ddf8ff;border:1px solid #86edff66}.neon-game .table-opening{color:var(--ice)}
@media(orientation:landscape) and (max-height:520px){.game-shell.is-playing .game-rules{display:none}.game-shell.is-playing .game-heading .eyebrow{display:none}.game-shell.is-playing .arena-stage{height:calc(100dvh - 114px);min-height:220px}.game-shell.is-playing .game-heading h1{font-size:17px}.game-shell.is-playing .table-menu{gap:5px}.game-shell.is-playing .game-heading .text-button{font-size:12px;padding:7px 10px;min-height:44px}.game-shell.is-playing .arena-controls{min-height:40px;padding:4px 10px}}
@media(orientation:landscape) and (max-height:500px){.player-card{padding:12px}.player-card-info{gap:6px 10px}.player-assets>div{padding:5px 10px}.player-assets span{line-height:1.2}.player-assets strong{font-size:19px;line-height:1.2;margin-top:1px}.player-guild{min-height:44px;padding:6px 10px}.player-guild>span{font-size:15px;line-height:1.2}.player-guild small{font-size:11px;line-height:1.2}.profile-actions>.button{font-size:13px;padding:7px 10px}.game-route-wardrobe .character-picker button{height:44px;min-height:44px}.game-route-wardrobe .avatar-stage{height:132px}}
/* Reserve the iPhone home-indicator area for the dock as well as the content. */
.game-shell:not(.is-lobby):not(.is-playing) .game-content{bottom:calc(74px + env(safe-area-inset-bottom))}
@media(max-width:1100px){.game-shell:not(.is-lobby):not(.is-playing) .game-content{bottom:calc(68px + env(safe-area-inset-bottom))}}
@media(orientation:landscape) and (max-height:500px){.game-shell:not(.is-lobby):not(.is-playing) .game-content{bottom:calc(63px + env(safe-area-inset-bottom))}}
.neon-game .button{background:#243d5c;color:var(--ice);border-color:#90b7d6}.neon-game .opening-overlay{background:linear-gradient(125deg,#233b5af5,#101f38f5);color:var(--ice);border-color:var(--gold);box-shadow:0 0 20px #ffdc9522,0 12px 40px #0007}.neon-game .opening-result{color:var(--gold)}.neon-game .opening-overlay p{color:var(--muted)}.neon-game .continue-prompt{background:#18324b;color:var(--ice);border-color:#82b9d477}.neon-game .continue-prompt h3{color:var(--gold)}.neon-game .continue-prompt p,.neon-game .continue-prompt li{color:var(--muted)}.neon-game .result-panel{background:linear-gradient(130deg,#294261,#101e38);color:var(--ice);border:1px solid var(--gold);border-radius:20px}.game-shell.is-playing .result-panel{position:fixed;inset:0;margin:auto;width:min(720px,calc(100vw - 40px));height:fit-content;max-height:calc(100dvh - 30px);overflow:auto;z-index:40;padding:22px;box-shadow:0 0 0 100vmax #050c25b8,0 0 25px #ffdc9533}.neon-game .score-list>div{background:#142e49;color:var(--ice);border:1px solid #8ebdd066;border-radius:12px}.neon-game .score-list strong{color:var(--gold);font-size:21px}.neon-game .score-list small,.neon-game .result-panel p{color:var(--muted)}.neon-game .result-panel h2{color:var(--gold)}

/* Readable details and clear interactions across the accepted neon screens. */
.neon-game details>summary{list-style:none;gap:10px;padding-right:5px}
.neon-game details>summary::-webkit-details-marker{display:none}
.neon-game details>summary::after{content:"";width:8px;height:8px;flex:none;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);align-self:center}
.neon-game details[open]>summary::after{transform:rotate(225deg)}
.game-shell .shop-status>button{min-height:44px;flex:none;border:1px solid #90b7d666;border-radius:10px;background:#1c3452;padding:8px 12px;font-size:13px}
.game-route-store .shop-status{font-size:13px;min-height:44px;flex-wrap:wrap}
.game-route-store .product p,.game-route-store .product-amount small,.game-route-store .product>.button small{font-size:12px;line-height:1.5}
.game-route-store .product>.button{font-size:13px;gap:3px}
.game-route-store .ledger{scroll-margin-top:8px}
.game-route-wardrobe .mirror-caption span,.game-route-wardrobe .character-picker span,.game-route-wardrobe .closet-heading p,.game-route-wardrobe .item-details p{font-size:12px;line-height:1.5}
.game-route-wardrobe .equipped-details summary{font-size:13px;justify-content:flex-start}
.game-route-wardrobe .slot-filters button{font-size:13px}
.game-route-wardrobe .item-actions{gap:8px;flex-wrap:wrap}
.game-route-wardrobe .item-actions>.text-button,.game-route-wardrobe .item-actions>.button{font-size:13px;min-height:44px}
.game-route-history .history-stat>span small,.game-route-history .history-stat>b small,.game-route-history .history-stat>span{font-size:12px;line-height:1.5}
.game-route-history .history-stat{min-width:0;overflow-wrap:anywhere}
.game-route-history .history-pager{display:flex;justify-content:flex-end;gap:12px;padding:12px 0}
.game-route-history .history-number-search label{min-width:0}
.player-card-info,.player-assets>div,.player-assets span,.player-guild>span,.guild-member-card>strong,.settings-identity{min-width:0}
.player-card-info h2,.player-guild>span,.settings-identity h2,.guild-member-card>strong{overflow-wrap:anywhere}
.player-assets strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.player-number{flex-wrap:wrap;gap:6px 10px}
.player-number strong{overflow-wrap:anywhere;letter-spacing:.03em}
.player-guild small,.game-shell .guild-member-card small{font-size:12px;line-height:1.5}
.neon-game dialog{max-width:calc(100vw - max(20px,env(safe-area-inset-left)) - max(20px,env(safe-area-inset-right)));max-height:calc(100dvh - max(15px,env(safe-area-inset-top)) - max(15px,env(safe-area-inset-bottom)))}
.neon-game dialog .modal-close{position:sticky;top:0;right:auto;float:right;margin:0 0 8px 12px;z-index:2}
.neon-game dialog h2{margin-right:0}
.neon-game #toast{bottom:calc(70px + env(safe-area-inset-bottom));max-width:calc(100vw - 40px);text-wrap:pretty}
@media(orientation:landscape) and (max-height:600px){
 .game-route-wardrobe .dressing-mirror{grid-template-columns:minmax(0,1fr) 112px}
 .game-route-wardrobe .character-picker{gap:4px}
 .game-route-wardrobe .character-picker button{min-height:44px;height:44px}
 .game-route-wardrobe .character-picker span{line-height:1.2}
 .game-route-wardrobe .character-picker svg{width:24px}
 .game-route-wardrobe .closet{padding-right:6px}
 .game-route-wardrobe .closet-heading p{line-height:1.5;margin-top:4px}
 .game-route-wardrobe .slot-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin;scrollbar-color:#e7a8d0 #12223b}
 .game-route-wardrobe .slot-filters button{flex:none;white-space:nowrap}
}
.neon-game .empty-hint,.game-route-wardrobe .closet-empty{color:var(--muted);font-size:14px;line-height:1.6;border-color:#719dcc66;background:#132740}
.neon-game dialog .notice{background:#1d3652;border:1px solid #8ebbd077;border-radius:12px;padding:14px 16px;color:#d6e6f5;font-size:14px;line-height:1.6}
.game-route-profile .player-card-info>h2,.game-route-account .player-card-info>h2{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}
/* Immediate destination feedback; animation is not a prerequisite for navigation. */
.neon-game .page-loading{min-height:190px;padding:20px;color:var(--muted)}
.neon-game .page-loading-caption{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--cyan)}
.neon-game .page-loading-shapes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.neon-game .page-loading-shapes i{height:125px;border:1px solid #709cc355;border-radius:14px;background:linear-gradient(135deg,#24456566,#18304d99)}
.neon-game .page-load-error>.button{margin:8px 6px}
.game-shell .game-workspace,.game-shell .player-card,.game-shell .game-settings-layout{animation:none}

/* A fixed table viewport: instructions above, table and public tiles in the middle. */
.game-shell.is-playing .game-content{display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:none;touch-action:none;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.game-shell.is-playing .game-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;flex:none;min-height:48px}
.game-shell.is-playing .game-heading>div:first-child{min-width:0}
.game-shell.is-playing .table-hint{margin:0;min-width:0;text-align:center;color:var(--ice);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.game-shell.is-playing .table-menu{flex-wrap:nowrap}
.game-shell.is-playing .game-rules{display:none}
.game-shell.is-playing .arena{display:flex;flex:1;flex-direction:column;min-height:0;margin:0;overflow:hidden}
.game-shell.is-playing .arena-stage{height:auto;min-height:0;flex:1}
.game-shell.is-playing .arena-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);flex:none;gap:8px;min-height:40px}
.game-shell.is-playing .table-hand-number{justify-self:end;text-align:right;font-size:11px;white-space:nowrap}
.game-shell.is-playing .self-info{flex-wrap:nowrap;font-size:11px;gap:5px}
.game-shell.is-playing .self-name{max-width:90px}
.game-shell.is-playing .result-panel{position:absolute;z-index:12;inset:52px 8% 8px;overflow:auto}
@media(orientation:landscape) and (max-height:520px){
 .game-shell.is-playing .game-heading{gap:8px;padding:2px 10px}
 .game-shell.is-playing .table-hint{font-size:11px}
 .game-shell.is-playing .arena-seat .seat-info>small{display:none}
 .game-shell.is-playing .arena-status{gap:7px;font-size:10px}
 .game-shell.is-playing .arena-status strong{font-size:11px}
 .game-shell.is-playing .table-hand-number{font-size:10px}
}
@media(max-width:700px){
 .game-shell.is-playing .game-heading{gap:6px;padding:2px 6px}
 .game-shell.is-playing .game-heading h1{font-size:15px;letter-spacing:0}
 .game-shell.is-playing .game-heading .text-button{font-size:11px;padding:6px 8px;white-space:nowrap}
 .game-shell.is-playing .table-hint{font-size:10px}
 .game-shell.is-playing .self-name{max-width:62px}
 .game-shell.is-playing .self-info,.game-shell.is-playing .table-hand-number{font-size:9px}
 .game-shell.is-playing .arena-controls{padding:4px 7px;gap:5px}
 .game-shell.is-playing .arena-status{gap:5px}
 .game-shell.is-playing .arena-status>b{font-size:20px;min-width:36px}
}
@media(orientation:portrait){
 .game-shell.is-playing .game-heading{grid-template-columns:1fr auto}
 .game-shell.is-playing .table-hint{grid-column:1/-1;grid-row:2;padding-bottom:4px}
 .game-shell.is-playing .table-menu{flex-wrap:wrap}
 .game-shell.is-playing .arena-controls{grid-template-columns:1fr auto}
 .game-shell.is-playing .arena-status{grid-column:1/-1;grid-row:2;justify-content:center}
}
/* Keep table geometry identical while a declared hand draws and auto-discards. */
.game-shell.is-playing .clock-empty{visibility:hidden}
.game-shell.is-playing .arena-status{flex-wrap:nowrap}
.game-shell.is-playing .arena-status>strong{max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-shell.is-playing .arena-status>.table-clock{display:block;width:46px;min-width:46px;line-height:28px;font-size:20px}
@media(orientation:landscape){
 .game-shell.is-playing .game-heading{height:52px;min-height:52px;max-height:52px;overflow:hidden}
 .game-shell.is-playing .arena-controls{height:44px;min-height:44px;max-height:44px;overflow:hidden}
}
.discard-confirm,.discard-confirm-flat{min-width:56px;min-height:44px;padding:8px;border:1px solid #ffe1a1;border-radius:12px;background:linear-gradient(#f7d78e,#d5a759);color:#172440;font-weight:800;font-size:16px;touch-action:manipulation;box-shadow:0 3px 9px #0008}
.discard-confirm{position:absolute;z-index:8}
.discard-confirm[hidden],.discard-confirm-flat[hidden],.table-input-feedback[hidden]{display:none}
.table-input-feedback{position:absolute;z-index:9;left:50%;bottom:90px;transform:translateX(-50%);margin:0;padding:7px 15px;background:#112b49ed;border:1px solid #86edff88;border-radius:20px;color:#e4faff;font-size:13px;pointer-events:none}
.input-pending .table-actions{visibility:hidden;pointer-events:none}
.hand .tile-selected{transform:translateY(-50%);outline:2px solid #ffe1a1}
/* The scene extends behind a frameless HUD, while controls retain safe insets. */
.game-shell.is-playing::before,.game-shell.is-playing::after{display:none}
.game-shell.is-playing .game-content{padding:0}
.app-background *,.app-background *::before,.app-background *::after{animation-play-state:paused!important}
.game-shell.is-playing .arena{border:0;border-radius:0;box-shadow:none;background:transparent}
.game-shell.is-playing .arena-stage{overflow:visible;background:none;margin-left:env(safe-area-inset-left);margin-right:env(safe-area-inset-right)}
.game-shell.is-playing .arena-background{position:fixed;inset:0;width:100vw;height:100dvh;object-fit:cover}
.game-shell.is-playing .game-heading{position:relative;z-index:10;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));background:linear-gradient(#071226d9,#07122666)}
.game-shell.is-playing .arena-controls{position:relative;z-index:10;border:0;background:linear-gradient(#07122633,#071226cc);padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));padding-bottom:max(4px,env(safe-area-inset-bottom))}
