/* v1.0.8.17: room usability, compact arcade cards, and Immortal King Fast Run. */

/* Keep each arcade entry at its natural height instead of inheriting the tallest neighbour. */
.game-list{align-items:start}.game-list>.game-feature{align-self:start}.game-list>.game-feature .game-art{height:auto;min-height:0;aspect-ratio:16/9}.game-list>.game-feature .game-body{min-height:0}.game-list>.game-feature .game-body p{min-height:0}.werewolf-feature .game-art,.fishing-feature .game-art,.cat-feature .game-art{height:auto;aspect-ratio:16/9}

/* The summon cards communicate the rule instead of reserving a dark empty area. */
.summon-info-card{min-height:0}.attribute-guide-copy{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:9px 0 0;padding-top:8px;border-top:1px solid #31414a;color:#aebdc5;font-size:10px;line-height:1.5}.attribute-guide-copy span{min-width:0}.attribute-guide-copy b{color:#e7ca6d;font-family:var(--display);font-size:9px}.summon-rate-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.summon-rate-grid>span:nth-child(1) b{color:#9b69dc}.summon-rate-grid>span:nth-child(2) b{color:#4ba9ef}.summon-rate-grid>span:nth-child(3) b{color:#67c78f}.summon-rate-grid>span:nth-child(4) b{color:#e6e9eb}.summon-rate-copy{margin:9px 0 0;color:#8da3ad;font-size:10px;line-height:1.45}.summon-rate-guide>small{margin-top:7px}

/* Reserve a right-side lane for the modal close control so room actions stay tappable. */
.game-modal:has(.werewolf-shell),.game-modal:has(.fast-run-shell){box-sizing:border-box;max-height:calc(100dvh - 22px);overflow:auto}.game-modal:has(.werewolf-shell)>.modal-close,.game-modal:has(.fast-run-shell)>.modal-close{z-index:8;width:40px;height:40px;right:13px;top:13px;border:1px solid #465662;background:#17222c}.werewolf-head{padding-right:51px}.werewolf-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto}.werewolf-leave,.fast-run-leave{height:38px;padding-inline:11px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-color:#5b6973;color:#dde6e9}.werewolf-leave svg,.fast-run-leave svg{width:16px;height:16px}.werewolf-leave:hover,.fast-run-leave:hover{border-color:#e4c567;color:#fff3c8}.werewolf-shell,.fast-run-shell{contain:layout paint}

/* New arcade cover: two animated decks and a bright wildcard. */
.fast-run-feature .game-art{background:#17212a}.fast-run-art{isolation:isolate;overflow:hidden;background:radial-gradient(circle at 62% 40%,#4b1f3b 0 20%,transparent 47%),linear-gradient(135deg,#172a31,#18202c 55%,#271820)}.fast-run-art:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(120deg,transparent 0 15%,#ffffff09 16% 17%,transparent 18% 32%);animation:fast-run-table-light 8s linear infinite}.fast-run-card{position:absolute;z-index:1;width:88px;height:122px;padding:10px;border:2px solid #e9edf2;border-radius:7px;background:#f7f4e9;color:#1c2631;box-shadow:0 15px 24px #0008;display:grid;align-content:space-between;font-family:var(--display);animation:fast-run-cover-float 3.6s ease-in-out infinite}.fast-run-card b{font-size:27px}.fast-run-card i{justify-self:end;font-style:normal;font-size:30px}.fast-run-card.one{left:25%;top:28px;transform:rotate(-16deg);color:#152632}.fast-run-card.two{left:45%;top:49px;transform:rotate(4deg);background:#f0d968;color:#8e2637;animation-delay:.5s}.fast-run-card.three{right:18%;top:30px;transform:rotate(18deg);color:#aa3549;animation-delay:1.1s}.fast-run-art>span{z-index:2}.fast-run-feature:hover .fast-run-card.two{filter:brightness(1.12);box-shadow:0 0 24px #f7dc6a80,0 15px 24px #0008}@keyframes fast-run-cover-float{50%{margin-top:-7px}}@keyframes fast-run-table-light{to{background-position:240px 0}}

/* Shared Fast Run room surface. */
.game-modal:has(.fast-run-shell){width:min(1100px,calc(100vw - 24px));max-width:1100px;padding:27px 32px;background:#101923;border-color:#384c59}.fast-run-shell{width:min(1030px,100%);margin:0 auto;color:#e6edf0}.fast-run-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 52px 17px 3px;border-bottom:1px solid #354853}.fast-run-head h2{margin:3px 0;color:#f1d985;font:800 28px var(--display)}.fast-run-head>div>span{color:#9db0ba;font-size:11px}.fast-run-head>svg{width:46px;height:46px;color:#f2d76b;filter:drop-shadow(0 0 12px #f1d16d88)}.fast-run-head-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}.fast-run-timer{display:flex;align-items:center;gap:7px;color:#f2d977}.fast-run-timer svg{width:18px}.fast-run-timer strong{font:800 22px var(--display)}
.fast-run-lobby-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-top:17px}.fast-run-panel{display:grid;align-content:start;gap:14px;padding:19px;border:1px solid #384b58;background:#15222c}.fast-run-panel p{margin:0;color:#9eafb7;font-size:12px;line-height:1.75}.fast-run-panel label{display:grid;gap:7px;color:#c9d5da;font-size:12px}.fast-run-panel input{height:40px;padding:0 11px;border:1px solid #425765;background:#0d151c;color:#f0f6f7;font:600 13px var(--font)}.fast-run-join{background:#121d26}.fast-run-panel-title{display:flex;align-items:center;gap:10px}.fast-run-panel-title>svg{width:26px;color:#f2d570}.fast-run-panel-title span{display:grid;gap:3px}.fast-run-panel-title small{color:#8699a5;font:800 8px var(--display);letter-spacing:1.4px}.fast-run-panel-title b{font:800 19px var(--display)}.fast-run-rule-chips{display:flex;flex-wrap:wrap;gap:6px}.fast-run-rule-chips span{padding:5px 7px;border:1px solid #465764;background:#101820;color:#bed0d7;font:800 9px var(--display)}.fast-run-rule-strip{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:10px 12px;border-left:2px solid #f0d86e;background:#17232c;color:#aebdc3;font-size:10px;line-height:1.55}.fast-run-rule-strip svg{flex:0 0 15px;color:#f1d770}
.fast-run-table{margin-top:17px;border:1px solid #344753;background:#111c25}.fast-run-room-meta{display:flex;align-items:center;gap:13px;min-height:42px;padding:0 14px;border-bottom:1px solid #324550;color:#9cafb8;font-size:10px}.fast-run-room-meta span{display:inline-flex;align-items:center;gap:5px}.fast-run-room-meta svg{width:14px;height:14px;color:#f0d872}.fast-run-room-meta b{color:#f0e4a9;font-family:var(--display)}.fast-run-seat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px}.fast-run-seat{position:relative;min-height:80px;padding:10px;border:1px solid #334752;background:#17242e;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px}.fast-run-seat.me{border-color:#d9bc61;background:#28271d}.fast-run-seat.turn{box-shadow:inset 0 0 0 1px #f0d76d,0 0 17px #eed26531}.fast-run-seat.left{opacity:.65}.fast-run-seat img{width:38px;height:38px;object-fit:cover;border-radius:50%;border:1px solid #637783}.fast-run-seat>div:not(.fast-run-seat-number){display:grid;gap:3px;min-width:0}.fast-run-seat b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.fast-run-seat small{color:#93a5ad;font-size:9px}.fast-run-seat em{position:absolute;right:7px;top:7px;color:#efda72;font-style:normal;font:800 8px var(--display)}.fast-run-seat-number{position:absolute;left:7px;top:6px;color:#6c808a;font:800 9px var(--display)}.fast-run-seat.vacant{display:flex;align-items:center;justify-content:center;gap:7px;border-style:dashed;color:#70838c}.fast-run-seat.vacant>b{position:static;color:#778992}.fast-run-seat.vacant svg{width:16px}.fast-run-seat.vacant span{font-size:10px}
.fast-run-lobby-actions{min-height:55px;padding:10px 14px;border-top:1px solid #31434d;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#a6b6bd;font-size:11px}.fast-run-lobby-actions .primary{height:37px;display:inline-flex;align-items:center;gap:6px}.fast-run-play-zone{display:grid;grid-template-columns:260px minmax(0,1fr);border-top:1px solid #324550}.fast-run-last-play{min-height:164px;padding:16px;border-right:1px solid #324550;background:#14212a;display:grid;align-content:center;gap:5px}.fast-run-last-play>span{color:#82959f;font:800 9px var(--display);letter-spacing:1px}.fast-run-last-play b{color:#f1dc8d;font:800 17px var(--display)}.fast-run-last-play small{color:#a6b5bb;font-size:10px;line-height:1.5}.fast-run-table-cards{display:flex;flex-wrap:wrap;align-items:center;gap:3px;margin-top:5px}.fast-run-table-card{position:relative;width:32px;height:45px;padding:3px;border:1px solid #cbd5db;border-radius:4px;background:#f8f6ee;color:#19242e;display:grid;align-content:space-between;font-family:var(--display);box-shadow:0 3px 7px #0006}.fast-run-table-card b{font-size:13px;line-height:1}.fast-run-table-card i{justify-self:end;font-style:normal;font-size:12px;line-height:1}.fast-run-table-card.red{color:#b1384b}.fast-run-table-card.wild{border-color:#e8ce62;background:#f5e6a6;color:#7f3443}.fast-run-table-card em{position:absolute;right:2px;bottom:2px;font-style:normal;font-size:5px}.fast-run-table-empty{margin-top:7px;color:#71858f;font-size:10px}.fast-run-hand{min-width:0;padding:14px}.fast-run-hand>header{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:9px}.fast-run-hand header>div{display:grid;gap:3px}.fast-run-hand header small{color:#7f939e;font:800 8px var(--display);letter-spacing:1px}.fast-run-hand header b{font:800 14px var(--display)}.fast-run-hand header>span{color:#8ea0a8;font-size:9px;text-align:right}.fast-run-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(42px,1fr));min-height:94px;gap:6px;padding:9px 3px 12px;overflow:visible}.fast-run-card-button{position:relative;min-width:0;width:100%;height:78px;padding:5px;border:1px solid #cbd5db;border-radius:5px;background:#f8f6ee;color:#19242e;display:grid;align-content:space-between;text-align:left;font-family:var(--display);box-shadow:0 5px 9px #0005;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}.fast-run-card-button b{font-size:19px;line-height:1}.fast-run-card-button i{justify-self:end;font-style:normal;font-size:19px;line-height:1}.fast-run-card-button.red{color:#b1384b}.fast-run-card-button.wild{border-color:#e8ce62;background:#f5e6a6;color:#7f3443}.fast-run-card-button em{position:absolute;right:4px;bottom:4px;font-style:normal;font-size:7px}.fast-run-card-button:not(:disabled):hover,.fast-run-card-button.selected{transform:translateY(-9px);border-color:#e0bd51;box-shadow:0 0 0 2px #e9d06a55,0 10px 14px #0008}.fast-run-card-button:disabled{cursor:default;opacity:.72}.fast-run-empty-hand{align-self:center;color:#83959e;font-size:11px}.fast-run-actions{display:flex;justify-content:flex-end;gap:8px}.fast-run-actions button{height:38px;display:inline-flex;align-items:center;gap:6px}.fast-run-actions button svg{width:15px}.fast-run-log{margin-top:13px;border:1px solid #344751;background:#121d25}.fast-run-log header{min-height:37px;padding:0 12px;border-bottom:1px solid #324550;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#c8d5da;font-size:11px}.fast-run-log header>span{display:flex;align-items:center;gap:6px}.fast-run-log header svg{width:15px;color:#f0d66d}.fast-run-effect{color:#f5db72;font:800 10px var(--display)}.fast-run-log>div{max-height:126px;overflow:auto;padding:4px 12px}.fast-run-log p{margin:0;padding:6px 0;border-bottom:1px solid #263943;color:#aebdc3;font-size:10px}.fast-run-log p:last-child{border:0}.fast-run-result{margin-top:13px;padding:15px;border:1px solid #476161;background:#15262a;display:flex;align-items:center;gap:12px}.fast-run-result.lost{border-color:#6e3e47;background:#27191e}.fast-run-result>svg{width:30px;height:30px;color:#f3dc71}.fast-run-result.lost>svg{color:#ee7d87}.fast-run-result div{display:grid;gap:3px}.fast-run-result small{color:#a8bac0;font-size:10px}.fast-run-result b{font:800 16px var(--display)}.fast-run-result span{color:#d0dde1;font-size:10px}.fast-run-finished-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;color:#a8b8bf;font-size:10px}.fast-run-finished-actions button{height:39px;display:inline-flex;align-items:center;gap:6px}

@media(max-width:760px){.game-modal:has(.werewolf-shell),.game-modal:has(.fast-run-shell){width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:20px 13px}.game-modal:has(.werewolf-shell)>.modal-close,.game-modal:has(.fast-run-shell)>.modal-close{right:9px;top:9px;width:38px;height:38px}.werewolf-head,.fast-run-head{align-items:flex-start;padding-right:44px}.werewolf-head-actions,.fast-run-head-actions{align-items:flex-end;flex-direction:column;gap:5px}.werewolf-timer,.fast-run-timer{gap:5px}.werewolf-timer strong,.fast-run-timer strong{font-size:18px}.werewolf-leave,.fast-run-leave{height:34px;padding-inline:8px;font-size:10px}.werewolf-leave span,.fast-run-leave span{display:inline}.fast-run-head h2{font-size:23px}.fast-run-lobby-grid{grid-template-columns:1fr}.fast-run-seat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fast-run-play-zone{grid-template-columns:1fr}.fast-run-last-play{min-height:0;border-right:0;border-bottom:1px solid #324550;padding:12px;grid-template-columns:70px minmax(0,1fr);gap:3px 10px}.fast-run-last-play>span{grid-row:1/4;align-self:center}.fast-run-table-cards{grid-column:2}.fast-run-hand{padding:12px}.fast-run-room-meta{overflow-x:auto;white-space:nowrap}.attribute-guide-copy{grid-template-columns:1fr;font-size:9px}.summon-rate-copy{font-size:9px}}
@media(max-width:440px){.fast-run-head .eyebrow{font-size:8px}.fast-run-head>div>span{font-size:9px}.fast-run-seat{min-height:68px;padding:7px;grid-template-columns:32px minmax(0,1fr);gap:6px}.fast-run-seat img{width:31px;height:31px}.fast-run-seat b{font-size:10px}.fast-run-seat small{font-size:8px}.fast-run-cards{grid-template-columns:repeat(auto-fit,minmax(35px,1fr));min-height:89px;gap:4px}.fast-run-card-button{height:62px;padding:4px}.fast-run-card-button b{font-size:16px}.fast-run-card-button i{font-size:15px}.fast-run-card-button em{font-size:6px}.fast-run-hand header>span{display:none}.fast-run-actions{justify-content:stretch;gap:5px}.fast-run-actions button{flex:1;justify-content:center;padding-inline:5px;font-size:10px}.fast-run-actions button svg{width:13px}.fast-run-rule-strip{font-size:9px}.werewolf-head h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.fast-run-art:before,.fast-run-card,.fast-run-card-button{animation:none!important;transition:none!important}}
