/* Live integration for the supplied ASSHOLE design kit v2. Route scoped. */
html { min-width: 320px; min-height: 100%; background: #2d143e; }
body.ah-theme { min-width: 320px; margin: 0; overflow-x: hidden; padding: 0 24px 28px; }
.ah-theme main { width: 100%; }
.ah-theme .view { width: 100%; max-width: 1440px; margin-inline: auto; }
.ah-theme .skip-link { z-index: 1000; color: var(--ah-ink); background: var(--ah-yellow); font: 800 14px Nunito, sans-serif; }
.ah-theme .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.ah-theme .ah-header { position: relative; z-index: 50; }
.ah-theme .ah-brand { margin-right: auto; padding: 0; color: inherit; border: 0; background: none; text-align: left; }
.ah-theme .ah-brand > span { display: grid; }
.ah-theme .ah-logo { display: block; }
.ah-theme .ah-tagline { display: block; }
.ah-theme .connection-pill { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ah-muted); border: 2px solid #85549d; border-radius: 999px; background: #3a1b4c; font: 800 12px Nunito,sans-serif; }
.ah-theme .connection-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ah-yellow); box-shadow: 0 0 0 3px rgba(255,212,73,.15); }
.ah-theme .connection-pill.online i { background: var(--ah-mint); }
.ah-theme .connection-pill.offline i { background: var(--ah-coral); }
.ah-theme .ah-btn--danger { color: var(--ah-cream); background: #7b285b; }
.ah-theme .ah-btn--danger img { filter: none; }

/* Entry */
.ah-theme .ah-entry-view { padding: 18px 0 42px; }
.ah-theme .ah-entry-intro { max-width: 760px; margin: 22px 0 18px; }
.ah-theme .ah-entry-intro p:last-child { max-width: 670px; font-size: 16px; }
.ah-theme .ah-entry-grid { display: grid; grid-template-columns: minmax(420px, 1.35fr) minmax(270px, .65fr); gap: 24px; align-items: start; }
.ah-theme .ah-entry-panel { padding: 0; overflow: hidden; }
.ah-theme .entry-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 3px solid var(--ah-ink); }
.ah-theme .entry-tab { min-height: 52px; padding: 10px 16px; color: var(--ah-muted); border: 0; border-bottom: 5px solid transparent; background: #381846; font: 600 17px Fredoka,sans-serif; }
.ah-theme .entry-tab.active { color: var(--ah-ink); border-bottom-color: var(--ah-yellow); background: var(--ah-lavender); }
.ah-theme .entry-panel { padding: 24px; }
.ah-theme .form-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ah-theme .form-heading > img { width: 58px; height: 58px; flex: 0 0 58px; }
.ah-theme .form-heading h2 { font-size: 24px; }
.ah-theme .form-heading p { margin-top: 2px; color: var(--ah-muted); font-size: 14px; }
.ah-theme .field-label { display: block; margin: 14px 0 6px; color: var(--ah-cream); font-size: 13px; font-weight: 800; }
.ah-theme .input-wrap { min-height: 52px; display: flex; align-items: center; border: var(--ah-border); border-radius: 14px; background: var(--ah-cream); box-shadow: 0 4px 0 #1c0d27; }
.ah-theme .input-wrap:focus-within { outline: 3px solid var(--ah-mint); outline-offset: 3px; }
.ah-theme .input-wrap input { min-width: 0; width: 100%; height: 50px; padding: 0 14px; color: var(--ah-ink); border: 0; outline: 0; background: transparent; font: 800 16px Nunito,sans-serif; }
.ah-theme .input-wrap input::placeholder { color: #866e8d; }
.ah-theme .code-input input { font: 600 23px Fredoka,sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.ah-theme .setting-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 12px 14px; border: 2px solid #835398; border-radius: 16px; background: #523066; }
.ah-theme .setting-card > div { display: flex; align-items: center; gap: 10px; }
.ah-theme .setting-card img { width: 38px; height: 38px; }
.ah-theme .setting-card b,.ah-theme .setting-card small { display: block; }
.ah-theme .setting-card small { margin-top: 2px; color: var(--ah-muted); font-size: 12px; }
.ah-theme .switch { position: relative; display: flex; align-items: center; }
.ah-theme .switch input { position: absolute; opacity: 0; }
.ah-theme .switch span { width: 48px; height: 28px; position: relative; display: block; border: 2px solid var(--ah-ink); border-radius: 999px; background: #8d6b9c; }
.ah-theme .switch span::after { content: ""; width: 18px; height: 18px; position: absolute; top: 3px; left: 3px; border: 2px solid var(--ah-ink); border-radius: 50%; background: var(--ah-cream); transition: transform .12s; }
.ah-theme .switch input:checked + span { background: var(--ah-mint); }
.ah-theme .switch input:checked + span::after { transform: translateX(20px); }
.ah-theme .switch input:focus-visible + span { outline: 3px solid var(--ah-mint); outline-offset: 4px; }
.ah-theme .switch em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.ah-theme .chip-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 18px; }
.ah-theme .chip-setting .field-label { margin: 0; }
.ah-theme .stepper { height: 44px; display: flex; overflow: hidden; border: var(--ah-border); border-radius: 14px; background: var(--ah-cream); box-shadow: 0 4px 0 #1c0d27; }
.ah-theme .stepper button { width: 42px; color: var(--ah-ink); border: 0; background: var(--ah-lavender); font: 600 22px Fredoka,sans-serif; }
.ah-theme .stepper input { width: 55px; padding: 0; color: var(--ah-ink); border: 0; border-inline: 2px solid var(--ah-ink); outline: 0; background: var(--ah-cream); text-align: center; font-weight: 900; appearance: textfield; }
.ah-theme .turn-setting { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 20px; padding: 0; border: 0; }
.ah-theme .turn-setting legend { grid-column: 1/-1; width: 100%; margin-bottom: 6px; color: var(--ah-cream); font-size: 13px; font-weight: 800; }
.ah-theme .turn-setting label { position: relative; }
.ah-theme .turn-setting input { position: absolute; opacity: 0; }
.ah-theme .turn-setting span { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 8px 13px; color: var(--ah-cream); border: 2px solid #8f65a2; border-radius: 14px; background: #452158; }
.ah-theme .turn-setting b { font: 600 22px Fredoka,sans-serif; }
.ah-theme .turn-setting small { color: var(--ah-muted); }
.ah-theme .turn-setting input:checked + span { color: var(--ah-ink); border-color: var(--ah-ink); background: var(--ah-yellow); box-shadow: 0 4px 0 #1c0d27; }
.ah-theme .turn-setting input:checked + span small { color: #654c20; }
.ah-theme .turn-setting input:focus-visible + span { outline: 3px solid var(--ah-mint); outline-offset: 4px; }
.ah-theme .ah-entry-rules { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; }
.ah-theme .ah-entry-rules > img { width: min(170px, 55%); }
.ah-theme .ah-entry-rules h2 { color: var(--ah-yellow); font-size: clamp(28px,3vw,38px); }
.ah-theme .ah-entry-rules p:last-child { font-size: 15px; }
.ah-theme .ah-public-tables { margin-top: 24px; padding: 22px; }
.ah-theme .ah-public-tables-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.ah-theme .ah-public-tables-head h2 { margin: 2px 0 3px; color: var(--ah-yellow); font-size: clamp(25px,3vw,34px); }
.ah-theme .ah-public-tables-head p:last-child { color: var(--ah-muted); font-size: 13px; }
.ah-theme #refreshPublicRoomsButton img { transform: rotate(90deg); }
.ah-theme .ah-public-room-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ah-theme .ah-public-room { min-width: 0; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px; color: var(--ah-ink); border: var(--ah-border); border-radius: 18px; background: var(--ah-cream); box-shadow: 0 4px 0 #1c0d27; }
.ah-theme .ah-public-room-icon { width: 62px; height: 62px; position: relative; display: grid; place-items: center; border: 2px solid var(--ah-ink); border-radius: 50%; background: var(--ah-lavender); }
.ah-theme .ah-public-room-icon img { width: 48px; height: 48px; }
.ah-theme .ah-public-room-icon span { min-width: 30px; position: absolute; right: -7px; bottom: -5px; padding: 2px 5px; border: 2px solid var(--ah-ink); border-radius: 999px; background: var(--ah-yellow); font: 600 10px Fredoka,sans-serif; text-align: center; }
.ah-theme .ah-public-room-copy { min-width: 0; }
.ah-theme .ah-public-room-copy small { color: #7c6682; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.ah-theme .ah-public-room-copy h3 { overflow: hidden; margin: 1px 0 5px; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.ah-theme .ah-public-room-copy p { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.ah-theme .ah-public-room-copy p > * { padding: 3px 7px; border-radius: 999px; background: #ead9ee; color: #654c6c; font-size: 10px; font-weight: 900; }
.ah-theme .ah-public-room-copy p > b { background: var(--ah-mint); color: var(--ah-ink); }
.ah-theme .ah-public-join { min-width: 126px; }
.ah-theme .ah-public-empty { grid-column: 1/-1; min-height: 104px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 18px; color: var(--ah-muted); border: 2px dashed #8f65a2; border-radius: 18px; background: #371847; text-align: left; }
.ah-theme .ah-public-empty img { width: 58px; height: 58px; }.ah-theme .ah-public-empty b,.ah-theme .ah-public-empty span { display: block; }.ah-theme .ah-public-empty b { color: var(--ah-cream); font: 600 17px Fredoka,sans-serif; }.ah-theme .ah-public-empty span { margin-top: 2px; font-size: 12px; }

/* Lobby */
.ah-theme .ah-lobby-view { padding-bottom: 36px; }
.ah-theme .ah-lobby-intro { margin: 18px 0 14px; }
.ah-theme .ah-lobby-intro p:last-child { font-size: 15px; }
.ah-theme .ah-lobby-arena { min-height: 430px; }
.ah-theme .ah-lobby-seats { position: absolute; inset: 0; }
.ah-theme .ah-table-waiting { margin-top: 8px; color: #edfff8; font-size: 14px; }
.ah-theme .ah-table-waiting b { color: var(--ah-yellow); }
.ah-theme .ah-seat.is-disconnected { opacity: .66; filter: saturate(.55); }
.ah-theme .ah-seat-status { display: block; margin-top: 2px; color: #735d79; font-size: 10px; }
.ah-theme .status-tag { display: inline-block; margin: 4px 0 0; padding: 2px 7px; color: var(--ah-ink); border-radius: 999px; background: var(--ah-mint); font: 800 10px Nunito,sans-serif; }
.ah-theme .status-tag.off { background: var(--ah-muted); }
.ah-theme .host-action { display: grid; gap: 7px; }

/* Game header and table */
.ah-theme .ah-game { padding: 12px 0 28px; }
.ah-theme .ah-game-meta { min-height: 64px; display: flex; align-items: center; gap: 15px; margin-bottom: 4px; }
.ah-theme .round-mark { min-width: 105px; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; color: var(--ah-ink); border: var(--ah-border); border-radius: 999px; background: var(--ah-yellow); box-shadow: var(--ah-shadow); }
.ah-theme .round-mark small { font: 600 12px Fredoka,sans-serif; }.ah-theme .round-mark b { font: 650 23px Fredoka,sans-serif; }
.ah-theme .phase-copy { display: grid; gap: 1px; }
.ah-theme .phase-copy span { color: var(--ah-mint); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.ah-theme .phase-copy strong { color: var(--ah-cream); font: 600 18px Fredoka,sans-serif; }
.ah-theme .game-ribbon-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.ah-theme .turn-clock { min-width: 62px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 4px 7px; color: var(--ah-ink); border: var(--ah-border); border-radius: 16px; background: var(--ah-cream); box-shadow: var(--ah-shadow); }
.ah-theme .turn-clock img { width: 25px; height: 25px; }.ah-theme .turn-clock b { font: 650 20px Fredoka,sans-serif; }
.ah-theme .turn-clock.mine { background: var(--ah-yellow); }.ah-theme .turn-clock.urgent { color: var(--ah-cream); background: #a2254b; }
.ah-theme .exchange-recap,.ah-theme .chip-wallet { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; color: var(--ah-cream); border: 2px solid #9367a8; border-radius: 16px; background: var(--ah-panel); }
.ah-theme .exchange-recap { display: grid; text-align: left; }.ah-theme .exchange-recap small,.ah-theme .exchange-recap b { display: block; }.ah-theme .exchange-recap small { color: var(--ah-mint); font-size: 9px; }
.ah-theme .chip-wallet img { width: 29px; height: 29px; }.ah-theme .chip-wallet small,.ah-theme .chip-wallet b { display: block; text-align: left; }.ah-theme .chip-wallet small { color: var(--ah-muted); font-size: 9px; }.ah-theme .chip-wallet b { font: 600 18px Fredoka,sans-serif; }
.ah-theme .ah-game-copy { width: 48px; }
.ah-theme .ah-game-arena { min-height: clamp(440px,55vh,560px); margin-top: 8px; }
.ah-theme .ah-game .ah-felt { inset: 48px 64px 12px; }
.ah-theme .ah-game-seats { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.ah-theme .ah-game .ah-seat { width: min(230px,21vw); min-height: 78px; }
.ah-theme .ah-game .ah-seat--pov-0 { bottom: 22px; left: 14px; }
.ah-theme .ah-game .ah-seat--pov-1 { top: 102px; left: 0; }
.ah-theme .ah-game .ah-seat--pov-2 { top: 0; left: 50%; transform: translateX(-50%); }
.ah-theme .ah-game .ah-seat--pov-3 { top: 102px; right: 0; }
.ah-theme .ah-game .ah-seat--pov-4 { right: 14px; bottom: 22px; }
.ah-theme .ah-game-seats[data-count="4"] .ah-seat--pov-0 { left: 50%; transform: translateX(-50%); }
.ah-theme .ah-seat--local { outline-color: var(--ah-mint); }
.ah-theme .ah-seat--next-president { outline: 4px solid var(--ah-yellow); outline-offset: 4px; }
.ah-theme .president-elect-badge { position: absolute; top: -23px; right: 12px; display: flex; align-items: center; gap: 4px; padding: 3px 9px; color: var(--ah-ink); border: 2px solid var(--ah-ink); border-radius: 999px; background: var(--ah-yellow); font: 600 10px Fredoka,sans-serif; }
.ah-theme .president-elect-badge img { width: 19px; height: 19px; }
.ah-theme .ah-game .ah-table-center { z-index: 3; top: 29%; left: 50%; right: auto; width: min(520px,48%); transform: translateX(-50%); }
.ah-theme .turn-banner { display: inline-flex; justify-content: center; margin-bottom: 8px; padding: 5px 14px; color: var(--ah-ink); border: 2px solid var(--ah-ink); border-radius: 999px; background: var(--ah-cream); box-shadow: 0 3px 0 #1c0d27; font: 600 13px Fredoka,sans-serif; }
.ah-theme .turn-banner.yours { background: var(--ah-yellow); }
.ah-theme .last-action-banner { max-width: 450px; display: flex; align-items: center; gap: 8px; margin: 0 auto 7px; padding: 7px 11px; color: var(--ah-ink); border: var(--ah-border); border-radius: 14px; background: var(--ah-cream); box-shadow: var(--ah-shadow); font-size: 12px; }
.ah-theme .last-action-banner > span { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ah-yellow); }
.ah-theme .last-action-banner img { width: 22px; height: 22px; }
.ah-theme .pile-area.ah-pile { min-height: 142px; margin: 4px 0; }
.ah-theme .empty-pile { width: 150px; min-height: 130px; display: grid; place-content: center; justify-items: center; color: #effff9; border: 2px dashed rgba(255,245,223,.55); border-radius: 20px; }
.ah-theme .empty-pile img { width: 56px; height: 56px; }.ah-theme .empty-pile b { margin-top: 4px; font: 600 18px Fredoka,sans-serif; }.ah-theme .empty-pile small { font-size: 11px; }
.ah-theme .pile-stack { width: 250px; height: 145px; position: relative; margin-inline: auto; }
.ah-theme .pile-layer { position: absolute; z-index: var(--stack-index); left: 50%; top: 44%; display: grid; justify-items: center; transform: translate(-50%,-50%) translate(var(--stack-x),var(--stack-y)) rotate(var(--stack-rotate)); }
.ah-theme .pile-layer .combo-label { display: none; }
.ah-theme .pile-layer.latest { z-index: 100; }
.ah-theme .pile-layer.latest .combo-label { display: block; position: absolute; z-index: 5; top: -31px; padding: 3px 12px; color: var(--ah-ink); border: 2px solid var(--ah-ink); border-radius: 999px; background: var(--ah-cream); font: 600 12px Fredoka,sans-serif; }
.ah-theme .combo-cards { display: flex; justify-content: center; }
.ah-theme .pile-layer .combo-card.ah-card { width: 72px; min-width: 72px; height: 102px; margin-left: -40px; pointer-events: none; }
.ah-theme .pile-layer .combo-card:first-child { margin-left: 0; }
.ah-theme .pile-layer:not(.latest) { filter: saturate(.7) brightness(.88); }
.ah-theme .pile-area.burning .pile-layer.latest { animation: ah-burn-reveal 1.2s ease both; }
.ah-theme .pile-meta { color: #effff9; font-size: 12px; font-weight: 800; }
.ah-theme .president-celebration { position: absolute; z-index: 30; inset: 35px; display: grid; place-content: center; justify-items: center; color: var(--ah-ink); border: var(--ah-border); border-radius: 40px; background: rgba(255,212,73,.96); text-align: center; pointer-events: none; }
.ah-theme .president-celebration img { width: 100px; height: 100px; }.ah-theme .president-celebration small { font: 600 13px Fredoka,sans-serif; letter-spacing: .15em; }.ah-theme .president-celebration strong { font: 650 clamp(30px,5vw,54px) Fredoka,sans-serif; }

/* Hand */
.ah-theme .hand-dock.ah-hand-panel { min-height: 196px; grid-template-columns: minmax(0,1fr) 245px; margin: 12px 0 0; padding: 13px 18px 15px; color: var(--ah-cream); background: #58316f; }
.ah-theme .ah-hand-main { min-width: 0; }
.ah-theme .hand-topline.ah-hand-head { min-height: 42px; gap: 14px; margin: 0; }
.ah-theme .identity-lockup { min-width: 170px; display: flex; align-items: center; gap: 9px; }
.ah-theme .role-medal { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 2px solid var(--ah-ink); border-radius: 50%; background: var(--ah-lavender); }
.ah-theme .role-medal img { width: 38px; height: 38px; }.ah-theme .identity-lockup small { color: var(--ah-muted); font-size: 10px; }.ah-theme .identity-lockup h2 { margin: 0; font-size: 19px; }
.ah-theme .selection-hint { flex: 1; margin: 0; color: var(--ah-muted); text-align: right; font-size: 13px; }
.ah-theme .hand-scroll.ah-hand { min-height: 126px; justify-content: flex-start; padding: 13px 5px 8px; }
.ah-theme .playing-card.ah-card { margin: 0; }
.ah-theme .playing-card.ah-card.selected { outline: 3px solid var(--ah-yellow); outline-offset: 1px; }
.ah-theme .playing-card.ah-card:disabled { filter: saturate(.5) brightness(.78); }
.ah-theme .ah-card img { pointer-events: none; }
.ah-theme .ah-suit-small { position: absolute; top: 35px; left: 8px; width: 14px; height: 14px; }
.ah-theme .ah-suit-center { width: 34px; height: 34px; margin-top: 15px; }
.ah-theme .hand-actions.ah-hand-controls { gap: 9px; }
.ah-theme .hand-actions .ah-btn { width: 100%; }
.ah-theme .hand-actions .ah-btn--burn { color: var(--ah-ink); background: var(--ah-coral); }
.ah-theme .ah-btn--burn > span { display: grid; text-align: left; }.ah-theme .ah-btn--burn small { font: 800 10px Nunito,sans-serif; }
.ah-theme #selectedCount { min-width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--ah-ink); border-radius: 50%; background: var(--ah-cream); font: 600 12px Fredoka,sans-serif; }

/* Dialogs and secondary phases */
.ah-theme dialog.ah-dialog { width: min(900px,calc(100% - 28px)); max-height: min(820px,calc(100dvh - 30px)); overflow: auto; padding: clamp(24px,4vw,44px); color: var(--ah-cream); border: var(--ah-border); border-radius: 24px; background: var(--ah-panel); box-shadow: 0 8px 0 #1c0d27; }
.ah-theme dialog.ah-dialog::backdrop { background: rgba(20,7,28,.82); backdrop-filter: blur(5px); }
.ah-theme .modal-close { width: 44px; height: 44px; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; padding: 7px; border: var(--ah-border); border-radius: 14px; background: var(--ah-cream); box-shadow: 0 3px 0 #1c0d27; }
.ah-theme .modal-close img { width: 26px; height: 26px; }
.ah-theme .ah-dialog > h2,.ah-theme .action-modal h2 { margin: 4px 0 22px; font-size: clamp(28px,4vw,40px); }
.ah-theme .rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.ah-theme .rules-grid article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 15px 0; border-top: 2px solid #704181; }
.ah-theme .rules-grid article > span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ah-ink); border-radius: 50%; background: var(--ah-yellow); font: 600 11px Fredoka,sans-serif; }
.ah-theme .rules-grid h3 { font-size: 17px; }.ah-theme .rules-grid p,.ah-theme .betting-rules p,.ah-theme .betting-rules li { color: var(--ah-muted); font-size: 14px; }
.ah-theme .rank-strip { display: flex; align-items: center; gap: 5px; margin-top: 20px; padding: 11px; overflow-x: auto; border-radius: 14px; background: #321641; }
.ah-theme .rank-strip span { color: var(--ah-muted); font-size: 10px; }.ah-theme .rank-strip b { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 2px solid #8e64a2; border-radius: 7px; }.ah-theme .rank-strip .hot { color: var(--ah-ink); background: var(--ah-yellow); }
.ah-theme .betting-rules { margin-top: 20px; padding: 18px; border: 2px solid #704181; border-radius: 18px; background: #3a1b4c; }.ah-theme .betting-rules ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.ah-theme .action-modal { text-align: center; }
.ah-theme .action-art { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 12px; border: var(--ah-border); border-radius: 50%; background: var(--ah-yellow); }
.ah-theme .action-art img { width: 68px; height: 68px; }
.ah-theme .action-lede { max-width: 600px; margin: 0 auto 18px; color: var(--ah-muted); font-size: 15px; }
.ah-theme .waiting-note { display: flex; justify-content: center; padding: 12px 14px; color: var(--ah-muted); border-radius: 14px; background: #351743; }
.ah-theme .modal-card-picker { min-height: 150px; display: flex; justify-content: center; align-items: end; gap: 7px; padding: 20px 10px 8px; overflow-x: auto; border: 2px solid #704181; border-radius: 18px; background: #371847; }
.ah-theme .action-footer { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.ah-theme .action-footer .ah-btn--primary { min-width: 220px; }
.ah-theme .exchange-summary { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; max-width: 650px; margin: 15px auto; padding: 14px; border: 2px solid #704181; border-radius: 18px; background: #371847; text-align: left; }
.ah-theme .exchange-summary > div > small { display: block; margin-bottom: 7px; color: var(--ah-muted); font-size: 10px; font-weight: 900; }.ah-theme .exchange-summary > i { color: var(--ah-yellow); font: 600 24px Fredoka,sans-serif; font-style: normal; }
.ah-theme .exchange-summary small em { display: inline-block; margin-left: 7px; padding: 2px 6px; color: var(--ah-ink); border-radius: 999px; background: var(--ah-yellow); font-size: 8px; font-style: normal; letter-spacing: .03em; }
.ah-theme .exchange-summary.is-preview > div:first-child > span { min-height: 64px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 5px; border: 2px dashed #9b6eb0; border-radius: 12px; background: #2f153c; }
.ah-theme .exchange-summary.is-preview .exchange-card { outline: 3px solid var(--ah-yellow); outline-offset: 1px; }
.ah-theme .exchange-summary.is-preview .exchange-none { padding: 0 7px; }
.ah-theme .exchange-card { width: 46px; height: 60px; display: inline-grid; place-content: center; justify-items: center; gap: 3px; margin-right: 5px; color: var(--ah-ink); border: 2px solid var(--ah-ink); border-radius: 9px; background: var(--ah-cream); font: 600 15px Fredoka,sans-serif; box-shadow: 0 3px 0 #1c0d27; }.ah-theme .exchange-card.red { color: var(--ah-red); }.ah-theme .exchange-suit { width: 18px; height: 18px; }.ah-theme .exchange-none { color: var(--ah-muted); }
.ah-theme .bet-intro { display: flex; justify-content: center; gap: 10px; margin: 15px 0; }.ah-theme .bet-intro > span { padding: 7px 10px; border: 2px solid #805195; border-radius: 999px; background: #351743; }.ah-theme .bet-intro b { color: var(--ah-yellow); }
.ah-theme .bet-board-wrap { width: 100%; overflow-x: auto; }.ah-theme .bet-board { width: 100%; min-width: 590px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }.ah-theme .bet-board th { color: var(--ah-muted); font-size: 11px; }.ah-theme .bet-board td { height: 54px; }.ah-theme .bet-cell { width: 100%; height: 100%; color: var(--ah-cream); border: 2px solid #815397; border-radius: 11px; background: #351743; font: 600 18px Fredoka,sans-serif; }.ah-theme .bet-cell.selected { color: var(--ah-ink); border-color: var(--ah-ink); background: var(--ah-yellow); }.ah-theme .bet-cell:disabled { opacity: .35; }.ah-theme .bet-cell small { display: block; font: 800 9px Nunito,sans-serif; }
.ah-theme .result-list { display: grid; gap: 7px; max-width: 620px; margin: 18px auto; }.ah-theme .result-row { display: grid; grid-template-columns: 42px 42px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 12px; color: var(--ah-ink); border: var(--ah-border); border-radius: 14px; background: var(--ah-cream); box-shadow: 0 3px 0 #1c0d27; text-align: left; }.ah-theme .result-place { font: 600 18px Fredoka,sans-serif; }.ah-theme .result-role-icon { width: 39px; height: 39px; }.ah-theme .result-role { padding: 4px 8px; border-radius: 999px; background: var(--ah-yellow); font: 600 11px Fredoka,sans-serif; }
.ah-theme .settlement-card { max-width: 680px; margin: 18px auto; padding: 16px; border: 2px solid #704181; border-radius: 18px; background: #371847; text-align: left; }.ah-theme .settlement-heading { display: flex; justify-content: space-between; gap: 14px; }.ah-theme .settlement-totals { display: flex; gap: 6px; }.ah-theme .settlement-totals > span { min-width: 65px; padding: 7px; color: var(--ah-ink); border-radius: 11px; background: var(--ah-yellow); text-align: center; }.ah-theme .settlement-totals small,.ah-theme .settlement-totals b { display: block; }
.ah-theme .prediction-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }.ah-theme .prediction-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 8px; border: 2px solid #704181; border-radius: 12px; }.ah-theme .prediction-row > span { width: 23px; height: 23px; display: grid; place-items: center; color: var(--ah-ink); border-radius: 50%; background: var(--ah-coral); }.ah-theme .prediction-row.correct > span { background: var(--ah-mint); }.ah-theme .prediction-row div b,.ah-theme .prediction-row div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.ah-theme .prediction-row div small { color: var(--ah-muted); }

.ah-theme .modal-chip-balances { margin: -8px 34px 18px; padding: 9px; border: 2px solid #704181; border-radius: 14px; background: rgba(20,7,28,.38); text-align: left; }
.ah-theme .modal-chip-balances > small { display: block; margin: 0 0 6px 3px; color: var(--ah-muted); font-size: 8px; font-weight: 1000; letter-spacing: .09em; }
.ah-theme .modal-chip-balances > div { display: flex; gap: 6px; overflow-x: auto; }
.ah-theme .modal-chip-balances span { min-width: 105px; flex: 1 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid #704181; border-radius: 9px; background: #351743; }
.ah-theme .modal-chip-balances span.is-you { border-color: var(--ah-yellow); }
.ah-theme .modal-chip-balances b { max-width: 75px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ah-theme .modal-chip-balances em { color: var(--ah-yellow); font-size: 9px; font-style: normal; font-weight: 1000; white-space: nowrap; }

.ah-theme .chip-ledger-open { margin-top: 14px; }
.ah-theme .chip-ledger-dialog { width: min(820px,calc(100% - 28px)); text-align: left; }
.ah-theme .chip-ledger-dialog h2 { margin-bottom: 8px; }
.ah-theme .chip-ledger-dialog .action-lede { max-width: 680px; margin: 0 0 20px; text-align: left; }
.ah-theme .chip-balance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.ah-theme .chip-balance-card { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 2px solid #704181; border-radius: 15px; background: #351743; }
.ah-theme .chip-balance-card.is-you { border-color: var(--ah-yellow); box-shadow: inset 0 0 0 1px var(--ah-yellow); }
.ah-theme .chip-balance-card > div { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: #b76ee1; overflow: hidden; }
.ah-theme .chip-balance-role { width: 100%; height: 100%; object-fit: contain; }
.ah-theme .chip-balance-card > span { min-width: 0; }
.ah-theme .chip-balance-card > span small,.ah-theme .chip-balance-card > span b,.ah-theme .chip-balance-card > strong small { display: block; }
.ah-theme .chip-balance-card > span small { color: var(--ah-muted); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.ah-theme .chip-balance-card > span b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ah-theme .chip-balance-card > strong { color: var(--ah-yellow); font: 900 25px Fredoka,sans-serif; text-align: right; }
.ah-theme .chip-balance-card > strong small { color: var(--ah-muted); font: 900 8px Nunito,sans-serif; letter-spacing: .08em; }
.ah-theme .chip-history { margin-top: 22px; }
.ah-theme .chip-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ah-theme .chip-history-heading h3 { margin: 0; font-size: 18px; }
.ah-theme .chip-history-heading span { color: var(--ah-muted); font-size: 11px; font-weight: 900; }
.ah-theme .chip-history ol { display: grid; gap: 6px; max-height: 330px; margin: 0; padding: 0 3px 0 0; overflow: auto; list-style: none; }
.ah-theme .chip-transaction { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #704181; border-radius: 11px; background: rgba(20,7,28,.3); }
.ah-theme .chip-transaction-delta { width: 42px; padding: 5px 3px; color: var(--ah-ink); border-radius: 8px; background: var(--ah-muted); font-weight: 1000; text-align: center; }
.ah-theme .chip-transaction.credit .chip-transaction-delta { background: var(--ah-mint); }
.ah-theme .chip-transaction.debit .chip-transaction-delta { background: var(--ah-coral); }
.ah-theme .chip-transaction > div { min-width: 0; }
.ah-theme .chip-transaction > div b,.ah-theme .chip-transaction > div small,.ah-theme .chip-transaction > span:last-child b,.ah-theme .chip-transaction > span:last-child small { display: block; }
.ah-theme .chip-transaction > div small,.ah-theme .chip-transaction > span:last-child small { color: var(--ah-muted); font-size: 9px; }
.ah-theme .chip-transaction > span:last-child { text-align: right; }
.ah-theme .chip-transaction > span:last-child b { color: var(--ah-yellow); font-size: 16px; }
.ah-theme .chip-history-empty { padding: 24px; color: var(--ah-muted); border: 2px dashed #704181; border-radius: 13px; text-align: center; }

.ah-theme .settlement-board-wrap { width: 100%; margin-top: 16px; overflow-x: auto; }
.ah-theme .settlement-board { width: 100%; min-width: 650px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.ah-theme .settlement-board th { padding: 5px; color: var(--ah-muted); font-size: 9px; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.ah-theme .settlement-board th:first-child { width: 112px; text-align: left; }
.ah-theme .settlement-board td { position: relative; min-height: 64px; padding: 22px 4px 4px; border: 2px solid #603675; border-radius: 10px; background: #2f133c; vertical-align: top; }
.ah-theme .settlement-board td.actual-result { border-color: var(--ah-yellow); background: rgba(255,216,61,.1); }
.ah-theme .settlement-board td > em { position: absolute; top: 4px; right: 5px; color: var(--ah-yellow); font-size: 7px; font-style: normal; font-weight: 1000; letter-spacing: .06em; }
.ah-theme .settlement-cell-points { position: absolute; top: 3px; left: 6px; color: var(--ah-muted); font-size: 10px; font-weight: 1000; }
.ah-theme .settlement-bet { display: block; margin-top: 3px; padding: 4px 5px; color: var(--ah-ink); border-radius: 7px; background: var(--ah-coral); line-height: 1.05; }
.ah-theme .settlement-bet.outcome-won { background: var(--ah-mint); }
.ah-theme .settlement-bet.outcome-tie { background: var(--ah-yellow); }
.ah-theme .settlement-bet b,.ah-theme .settlement-bet small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-theme .settlement-bet b { font-size: 9px; }
.ah-theme .settlement-bet small { margin-top: 2px; font-size: 7px; font-weight: 900; }
.ah-theme .settlement-distribution { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 14px; }
.ah-theme .settlement-balance { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px; border: 2px solid #704181; border-left: 7px solid var(--ah-muted); border-radius: 11px; background: #2f133c; }
.ah-theme .settlement-balance.outcome-won { border-left-color: var(--ah-mint); }
.ah-theme .settlement-balance.outcome-lost { border-left-color: var(--ah-coral); }
.ah-theme .settlement-balance.outcome-tie { border-left-color: var(--ah-yellow); }
.ah-theme .settlement-balance.outcome-president { border-left-color: #b76ee1; }
.ah-theme .settlement-balance > span { min-width: 0; }
.ah-theme .settlement-balance > span b,.ah-theme .settlement-balance > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-theme .settlement-balance > span small { margin-top: 3px; color: var(--ah-muted); font-size: 8px; font-weight: 1000; }
.ah-theme .settlement-balance dl { display: flex; gap: 8px; margin: 0; }
.ah-theme .settlement-balance dl div { text-align: center; }
.ah-theme .settlement-balance dt { color: var(--ah-muted); font-size: 7px; font-weight: 1000; }
.ah-theme .settlement-balance dd { margin: 2px 0 0; color: var(--ah-yellow); font-size: 13px; font-weight: 1000; }
.ah-theme .prediction-row > strong { text-align: right; }
.ah-theme .prediction-row > strong small { display: block; margin-top: 2px; color: var(--ah-muted); font-size: 8px; }

/* Notifications */
.ah-theme .toast-region { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 9px; pointer-events: none; }
.ah-theme .toast { max-width: min(390px,calc(100vw - 36px)); display: flex; align-items: center; gap: 11px; padding: 12px 15px; color: var(--ah-ink); border: var(--ah-border); border-radius: 14px; background: var(--ah-cream); box-shadow: var(--ah-shadow); }
.ah-theme .toast > div:first-child { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ah-yellow); }.ah-theme .toast.error > div:first-child { background: var(--ah-coral); }.ah-theme .toast img { width: 27px; height: 27px; }.ah-theme .toast b,.ah-theme .toast span { display: block; }.ah-theme .toast span { color: #684f70; font-size: 13px; }

@keyframes ah-burn-reveal { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.7); } 40% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); } 100% { opacity: .22; transform: translate(-50%,-50%) scale(.9) rotate(8deg); } }

@media (max-width: 1100px) and (min-width: 761px) {
  .ah-theme .ah-entry-grid { grid-template-columns: minmax(390px,1.2fr) minmax(240px,.8fr); }
  .ah-theme .ah-public-room-list { grid-template-columns: 1fr; }
  .ah-theme .ah-game .ah-seat { width: 195px; }.ah-theme .ah-game .ah-medallion { width: 48px; height: 48px; flex-basis: 48px; }.ah-theme .ah-game .ah-medallion img { width: 42px; height: 42px; }
  .ah-theme .ah-game .ah-table-center { left: 50%; right: auto; width: min(480px,54%); transform: translateX(-50%); }
  .ah-theme .hand-dock.ah-hand-panel { grid-template-columns: minmax(0,1fr) 205px; }
}

@media (max-width: 760px) {
  body.ah-theme { padding-inline: 12px; }
  .ah-theme .ah-header { min-height: 70px; }.ah-theme .ah-brand > img { width: 36px; height: 36px; }.ah-theme .ah-logo { font-size: 28px; }.ah-theme .ah-tagline { display: none; }.ah-theme .connection-pill { order: 3; min-height: 32px; margin-left: auto; }.ah-theme .ah-header > .ah-pill { order: 3; }.ah-theme .ah-top-actions .ah-btn span { display: none; }.ah-theme .ah-top-actions .ah-btn { width: 44px; min-width: 44px; padding: 7px; }.ah-theme .ah-top-actions #rulesButton img,.ah-theme .ah-top-actions #leaveButton img { display: block; width: 24px; height: 24px; }.ah-theme #rulesButton { color: var(--ah-ink); background: var(--ah-cream); }.ah-theme #leaveButton { color: var(--ah-cream); background: #7b285b; }.ah-theme .modal-close { z-index: 5; width: 46px; height: 46px; padding: 8px; background: var(--ah-cream); }.ah-theme .modal-close img { display: block; width: 27px; height: 27px; }
  .ah-theme .ah-entry-grid { grid-template-columns: 1fr; }.ah-theme .ah-entry-rules { min-height: 230px; grid-template-columns: 115px 1fr; text-align: left; }.ah-theme .ah-entry-rules > img { width: 110px; }.ah-theme .ah-public-tables { padding: 16px 13px; }.ah-theme .ah-public-room-list { grid-template-columns: 1fr; }.ah-theme .ah-public-room { grid-template-columns: 52px minmax(0,1fr); }.ah-theme .ah-public-room-icon { width: 50px; height: 50px; }.ah-theme .ah-public-room-icon img { width: 39px; height: 39px; }.ah-theme .ah-public-room-copy h3 { font-size: 18px; }.ah-theme .ah-public-join { grid-column: 1/-1; width: 100%; }.ah-theme .ah-public-join span { display: inline; }
  .ah-theme .ah-lobby-intro { margin-top: 17px; }.ah-theme .ah-lobby-layout { display: flex; flex-direction: column; }.ah-theme .ah-lobby-arena { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 7px; min-height: 0; }.ah-theme .ah-lobby-seats { display: contents; }.ah-theme .ah-lobby-arena .ah-felt { grid-column: 1/-1; grid-row: 4; position: relative; inset: auto; width: 100%; height: 160px; }.ah-theme .ah-lobby-arena .ah-seat { position: relative; inset: auto; transform: none; width: auto; min-height: 70px; }.ah-theme .ah-lobby-arena .ah-seat--top { grid-column: 1/-1; justify-self: center; width: 64%; }.ah-theme .ah-lobby-arena .ah-table-center { grid-column: 1/-1; grid-row: 4; position: relative; z-index: 1; inset: auto; height: 160px; display: grid; place-content: center; pointer-events: none; }.ah-theme .ah-rank-strip { gap: 7px; }.ah-theme .ah-rank-strip span { font-size: 9px; }
  .ah-theme .ah-game-meta { flex-wrap: wrap; }.ah-theme .phase-copy { min-width: 0; flex: 1; }.ah-theme .phase-copy strong { font-size: 14px; }.ah-theme .game-ribbon-actions { width: 100%; margin: 0; justify-content: flex-end; }.ah-theme .exchange-recap { display: none; }.ah-theme .ah-game-arena { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 7px; min-height: 0; padding: 0; }.ah-theme .ah-game-seats { display: contents; }.ah-theme .ah-game .ah-felt { grid-column: 1/-1; grid-row: 4; position: relative; inset: auto; width: 100%; height: 210px; }.ah-theme .ah-game .ah-seat { position: relative; inset: auto; transform: none; width: auto; min-height: 68px; }.ah-theme .ah-game .ah-seat--pov-0 { grid-column: 1/-1; grid-row: 1; justify-self: center; width: 64%; }.ah-theme .ah-game .ah-seat--pov-1 { grid-column: 1; grid-row: 2; }.ah-theme .ah-game .ah-seat--pov-2 { grid-column: 2; grid-row: 2; }.ah-theme .ah-game .ah-seat--pov-3 { grid-column: 1; grid-row: 3; }.ah-theme .ah-game .ah-seat--pov-4 { grid-column: 2; grid-row: 3; }.ah-theme .ah-game-seats[data-count="4"] .ah-seat--pov-3 { grid-column: 1/-1; justify-self: center; width: 64%; }.ah-theme .ah-game .ah-table-center { grid-column: 1/-1; grid-row: 4; position: relative; z-index: 3; inset: auto; width: 100%; height: 210px; transform: none; display: grid; align-content: center; justify-items: center; padding: 10px; }.ah-theme .last-action-banner { max-width: 290px; font-size: 10px; }.ah-theme .pile-area.ah-pile { min-height: 110px; }.ah-theme .pile-stack { height: 105px; }.ah-theme .pile-layer .combo-card.ah-card { width: 54px; min-width: 54px; height: 76px; margin-left: -31px; }.ah-theme .pile-layer .ah-card-rank { font-size: 21px; }.ah-theme .pile-layer .ah-suit-small { top: 28px; width: 10px; height: 10px; }.ah-theme .pile-layer .ah-suit-center { width: 23px; height: 23px; }.ah-theme .pile-layer.latest .combo-label { top: -25px; font-size: 10px; }
  .ah-theme .hand-dock.ah-hand-panel { grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; }.ah-theme .hand-topline.ah-hand-head { display: flex; }.ah-theme .identity-lockup { min-width: 130px; }.ah-theme .role-medal { width: 38px; height: 38px; flex-basis: 38px; }.ah-theme .role-medal img { width: 33px; height: 33px; }.ah-theme .identity-lockup h2 { font-size: 16px; }.ah-theme .selection-hint { font-size: 11px; }.ah-theme .hand-scroll.ah-hand { min-height: 105px; }.ah-theme .hand-scroll .ah-card { width: 64px; min-width: 64px; flex-basis: 64px; height: 91px; }.ah-theme .hand-actions.ah-hand-controls { display: grid; grid-template-columns: 1fr 100px; }.ah-theme .hand-actions .ah-btn--burn { grid-column: 1/-1; }.ah-theme .hand-actions .ah-link { grid-column: 1/-1; min-height: 34px; padding: 3px; }
  .ah-theme dialog.ah-dialog { padding: 28px 16px 22px; }.ah-theme .rules-grid { grid-template-columns: 1fr; }.ah-theme .betting-rules ul,.ah-theme .prediction-list { grid-template-columns: 1fr; }.ah-theme .exchange-summary { grid-template-columns: 1fr; }.ah-theme .exchange-summary > i { transform: rotate(90deg); text-align: center; }.ah-theme .action-footer { display: grid; }.ah-theme .action-footer .ah-btn--primary { min-width: 0; }.ah-theme .result-row { grid-template-columns: 36px 36px minmax(0,1fr); }.ah-theme .result-role { grid-column: 3; justify-self: start; }
}

@media (max-width: 620px) {
  .ah-theme .modal-chip-balances { margin: -6px 28px 14px 0; }
  .ah-theme .chip-balance-grid,.ah-theme .settlement-distribution { grid-template-columns: 1fr; }
  .ah-theme .chip-transaction { grid-template-columns: 42px minmax(0,1fr) auto; gap: 7px; padding-inline: 7px; }
  .ah-theme .chip-transaction-delta { width: 38px; }
  .ah-theme .settlement-heading { display: grid; }
  .ah-theme .settlement-totals { justify-content: start; }
  .ah-theme .settlement-card { padding: 11px; }
  .ah-theme .settlement-balance dl { gap: 5px; }
}

@media (max-width: 420px) {
  body.ah-theme { padding-inline: 8px; }.ah-theme .ah-header { gap: 5px; }.ah-theme .ah-header > .ah-pill { display: none; }.ah-theme .ah-top-actions { gap: 4px; }.ah-theme .connection-pill { width: 100%; justify-content: center; margin: 2px 0 0; }
  .ah-theme .ah-entry-view { padding-top: 8px; }.ah-theme .entry-panel { padding: 18px 14px; }.ah-theme .form-heading > img { width: 48px; height: 48px; flex-basis: 48px; }.ah-theme .ah-entry-rules { grid-template-columns: 82px 1fr; }.ah-theme .ah-entry-rules > img { width: 78px; }
  .ah-theme .ah-lobby-arena .ah-seat--top,.ah-theme .ah-game .ah-seat--pov-0,.ah-theme .ah-game .ah-seat--pov-2 { width: 76%; }.ah-theme .ah-seat { padding: 6px; gap: 5px; }.ah-theme .ah-medallion { width: 38px; height: 38px; flex-basis: 38px; }.ah-theme .ah-medallion img { width: 33px; height: 33px; }.ah-theme .ah-name { font-size: 14px; }.ah-theme .ah-role { font-size: 9px; }.ah-theme .ah-seat-meta,.ah-theme .ah-seat-status { font-size: 9px; }
  .ah-theme .chip-wallet { display: none; }.ah-theme .round-mark { min-width: 86px; }.ah-theme .ah-game-copy { display: none; }.ah-theme .last-action-banner { max-width: 250px; }
  .ah-theme .identity-lockup { display: none; }.ah-theme .selection-hint { text-align: center; }.ah-theme .hand-actions.ah-hand-controls { grid-template-columns: 1fr 90px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .ah-theme .ah-header { min-height: 58px; padding: 6px 0; }.ah-theme .ah-brand > img { width: 32px; height: 32px; }.ah-theme .ah-logo { font-size: 25px; }.ah-theme .ah-game-arena { min-height: 390px; }.ah-theme .hand-dock.ah-hand-panel { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ah-theme * { animation: none; transition: none; scroll-behavior: auto; }
}

/* Rank Kit v3: authoritative rank art and felt-relative pile geometry. */
.ah-theme.rk3 .rk3-entry-rank { object-fit: contain; }
.ah-theme.rk3 .ah-rank-strip img { width: 38px; height: 38px; object-fit: contain; }
.ah-theme.rk3 .ah-seat { min-height: 94px; }
.ah-theme.rk3 .ah-medallion.rk3-badge { --rk3-size: 74px; width: var(--rk3-size); height: var(--rk3-size); flex: 0 0 var(--rk3-size); background: var(--rk3-accent,var(--rank-color)); overflow: visible; }
.ah-theme.rk3 .ah-medallion.rk3-badge .rk3-role-art { width: 92%; height: 92%; object-fit: contain; transform: scale(var(--rk3-art-scale,1)); }
.ah-theme.rk3 .ah-game .ah-seat { width: min(250px,22vw); }
.ah-theme.rk3 .role-medal.rk3-badge { --rk3-size: 58px; width: var(--rk3-size); height: var(--rk3-size); flex: 0 0 var(--rk3-size); background: var(--rk3-accent,var(--ah-lavender)); }
.ah-theme.rk3 .role-medal.rk3-badge .rk3-role-art { width: 92%; height: 92%; object-fit: contain; }
.ah-theme.rk3 .identity-lockup { min-width: 190px; }
.ah-theme.rk3 .president-elect-badge img { object-fit: contain; }

.ah-theme.rk3 .ah-game .ah-felt.rk3-table-surface { position: absolute; z-index: 0; inset: 48px 64px 12px; min-block-size: 0; overflow: visible; }
.ah-theme.rk3 .ah-game .rk3-center-anchor { position: absolute; z-index: 3; left: 50%; top: 50%; right: auto; bottom: auto; width: min(46%,360px); height: 146px; margin: 0; padding: 0; transform: translate(-50%,-50%); }
.ah-theme.rk3 .rk3-pile-slot { width: 100%; height: 100%; }
.ah-theme.rk3 .rk3-pile-slot .pile-area.ah-pile { width: 100%; min-width: 0; min-height: 0; height: 100%; margin: 0; display: grid; place-items: center; }
.ah-theme.rk3 .rk3-pile-heading.turn-banner { position: absolute; inset: auto auto calc(100% + 9px) 50%; width: max-content; max-width: min(430px,90vw); margin: 0; transform: translateX(-50%); white-space: nowrap; }
.ah-theme.rk3 .rk3-pile-message { position: absolute; inset: calc(100% + 9px) auto auto 50%; width: clamp(220px,34vw,470px); transform: translateX(-50%); }
.ah-theme.rk3 .rk3-pile-message .last-action-banner { width: max-content; max-width: 100%; margin: 0 auto 7px; }
.ah-theme.rk3 .rk3-pile-message .pile-meta { margin: 0; text-align: center; }
.ah-theme.rk3 .rk3-pile-slot .empty-pile { min-height: 126px; }

.ah-theme.rk3 .rk3-action-rank { width: 92px; height: 92px; background: var(--ah-lavender); overflow: visible; }
.ah-theme.rk3 .rk3-action-rank .rk3-role-art { width: 88px; height: 88px; object-fit: contain; }
.ah-theme.rk3 .rk3-result-hero { width: 132px; height: 132px; background: var(--ah-yellow); overflow: visible; }
.ah-theme.rk3 .rk3-result-hero .rk3-result-hero-art { width: 126px; height: 126px; object-fit: contain; }
.ah-theme.rk3 .result-role-badge { --rk3-size: 64px; }
.ah-theme.rk3 .result-role-badge .result-role-icon { width: 92%; height: 92%; object-fit: contain; }
.ah-theme.rk3 .result-row { grid-template-columns: 42px 66px minmax(0,1fr) auto; min-height: 78px; }
.ah-theme.rk3 .president-celebration .rk3-badge--large { --rk3-size: 132px; }
.ah-theme.rk3 .president-celebration .rk3-badge--large img { width: 94%; height: 94%; object-fit: contain; }

@media (max-width: 1100px) and (min-width: 761px) {
  .ah-theme.rk3 .ah-medallion.rk3-badge { --rk3-size: 64px; }
  .ah-theme.rk3 .ah-game .ah-seat { width: min(220px,23vw); }
  .ah-theme.rk3 .ah-game .rk3-center-anchor { left: 50%; top: 50%; width: min(48%,330px); transform: translate(-50%,-50%); }
}

@media (max-width: 760px) {
  .ah-theme.rk3 .ah-medallion.rk3-badge { --rk3-size: 52px; width: var(--rk3-size); height: var(--rk3-size); flex-basis: var(--rk3-size); }
  .ah-theme.rk3 .ah-medallion.rk3-badge .rk3-role-art { width: 92%; height: 92%; }
  .ah-theme.rk3 .role-medal.rk3-badge { --rk3-size: 48px; }
  .ah-theme.rk3 .ah-game .ah-seat { width: auto; min-height: 76px; }
  .ah-theme.rk3 .ah-game .ah-felt.rk3-table-surface { grid-column: 1/-1; grid-row: 4; position: relative; z-index: 0; inset: auto; width: 100%; height: 250px; min-block-size: 250px; margin: 0; overflow: visible; }
  .ah-theme.rk3 .ah-game .rk3-center-anchor { position: absolute; z-index: 3; inset: auto; left: 50%; top: 50%; width: min(82%,310px); height: 112px; margin: 0; padding: 0; transform: translate(-50%,-50%); }
  .ah-theme.rk3 .rk3-pile-heading.turn-banner { max-width: min(310px,88vw); font-size: 10px; }
  .ah-theme.rk3 .rk3-pile-message { width: min(310px,86vw); font-size: 11px; }
  .ah-theme.rk3 .rk3-pile-slot .empty-pile { min-height: 96px; }
  .ah-theme.rk3 .rk3-result-hero { width: 112px; height: 112px; }
  .ah-theme.rk3 .rk3-result-hero .rk3-result-hero-art { width: 106px; height: 106px; }
  .ah-theme.rk3 .result-role-badge { --rk3-size: 54px; }
  .ah-theme.rk3 .result-row { grid-template-columns: 34px 56px minmax(0,1fr); min-height: 68px; }
}
