:root {
    color-scheme: dark;
    --ink: #edf4ff;
    --muted: #a6b3c9;
    --panel: rgba(14, 23, 40, .91);
    --edge: rgba(185, 214, 255, .14);
    --gold: #ffd15c;
    --cyan: #4ee8ee;
}
* { box-sizing: border-box; }
body { font-family: Inter, 'Segoe UI', Arial, sans-serif; color: var(--ink); background: #0e1627; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .45; cursor: default; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
button { transition: border-color .15s, background .15s, transform .15s; }
button:not(:disabled):hover { filter: brightness(1.12); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
#dashboard-overlay {
    position: fixed; inset: 0; overflow-y: auto; z-index: 20;
    background: linear-gradient(180deg, rgba(7, 12, 26, .48), rgba(8, 16, 31, .75)), url('bg.jpg') center / cover fixed;
}
.top-navbar { min-height: 76px; display: flex; align-items: center; gap: 24px; padding: 16px 3vw; border-bottom: 1px solid var(--edge); background: rgba(9, 16, 31, .88); }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; border: 0; background: none; font-size: 16px; font-weight: 900; letter-spacing: 1px; padding: 0; }
.nav-brand b { color: var(--gold); }
.pixel-dino { font-size: 27px; }
.classic-mark { display: inline-block; width: 44px; height: 47px; background: url(assets/default_100_percent/100-offline-sprite.png) -848px -2px no-repeat; image-rendering: pixelated; flex-shrink: 0; }
.nav-brand .classic-mark { transform: scale(.7); width: 44px; margin: -8px; }
.avatar-box .classic-mark { transform: scale(.8); }
.nav-links { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: center; }
.nav-links button { background: none; border: 0; padding: 8px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .7px; white-space: nowrap; }
.nav-links button.active { color: var(--cyan); border-bottom: 2px solid var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.currency-badge { display: inline-flex; gap: 10px; align-items: center; padding: 8px 15px; border: 1px solid var(--edge); background: #0c1323; border-radius: 24px; font-size: 14px; }
.icon-button { background: transparent; border: 1px solid var(--edge); border-radius: 10px; width: 38px; height: 38px; font-size: 23px; }
.main-grid { display: grid; grid-template-columns: minmax(205px, 250px) minmax(400px, 1fr) minmax(230px, 290px); gap: 24px; max-width: 1560px; margin: 0 auto; padding: 36px 3vw 28px; }
.left-column, .right-column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.center-column { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 18px 0; }
.glass-card { background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; padding: 22px; box-shadow: 0 12px 30px #0004; backdrop-filter: blur(9px); }
.card-eyebrow { font-size: 9px; letter-spacing: 1.6px; font-weight: 800; color: var(--cyan); margin-bottom: 18px; }
.profile-card-inner { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar-box { display: grid; place-items: center; height: 52px; width: 52px; font-size: 32px; border-radius: 12px; border: 1px solid #5c9b9866; background: #1b3243; flex-shrink: 0; }
.profile-info { flex: 1; min-width: 0; }
.profile-info h2 { margin: 0 0 7px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-info p { font-size: 10px; color: var(--muted); margin: 0; display: flex; gap: 5px; flex-wrap: wrap; }
.profile-info p #dash-xp { margin-left: auto; }
.xp-bar-bg { margin-top: 9px; border-radius: 4px; height: 4px; background: #2c3a51; overflow: hidden; }
.xp-bar-fill { height: 100%; background: var(--cyan); width: 0; }
.profile-mini-stats { display: flex; gap: 15px; border-top: 1px solid var(--edge); padding-top: 18px; margin: 20px 0; }
dl { margin: 0; }
dt { color: var(--muted); font-size: 10px; line-height: 1.6; }
dd { margin: 5px 0 0; font-weight: 800; font-size: 19px; }
.microcopy { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 13px 0 0; }
.secondary-btn, .primary-btn { border: 1px solid #61738a66; border-radius: 8px; padding: 12px 16px; background: #25354b; font-size: 11px; font-weight: 800; letter-spacing: .4px; }
.secondary-btn:not(:disabled):hover { border-color: var(--cyan); }
.primary-btn { background: linear-gradient(115deg, #ffb847, #ffdc75); color: #23251f; border-color: #ffe0a0; }
.full { width: 100%; }
.party-card p, .howto-card p, .run-note p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 10px 0 17px; }
.howto-card { background: linear-gradient(130deg, rgba(42, 56, 73, .92), rgba(21, 31, 47, .86)); }
.howto-card h2 { font-size: 20px; line-height: 1.4; margin: 0; }
kbd { display: inline-block; background: #344258; border: 1px solid #65748a; border-radius: 4px; padding: 0 5px; color: var(--ink); font-size: 11px; }
.title-container { text-align: center; margin: 10px 0 26px; }
.hero-eyebrow { color: #d5e1f2; letter-spacing: 2px; font-size: 9px; font-weight: 800; margin-bottom: 18px; }
.title-dino { font-size: clamp(40px, 4.7vw, 74px); letter-spacing: -3px; line-height: 1.06; font-weight: 950; margin: 0; text-shadow: 0 3px 5px #0005; white-space: nowrap; }
.title-online { color: var(--gold); font-family: 'Segoe Print', 'Trebuchet MS', sans-serif; font-weight: 900; font-style: italic; font-size: clamp(35px, 4vw, 52px); letter-spacing: -2px; transform: rotate(-4deg); line-height: 1.2; text-shadow: 2px 3px 0 #80511b; }
.subtitle { font-size: 10px; color: #b9c9df; letter-spacing: 2.5px; margin: 18px 0 0; }
.connection-status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; min-height: 24px; color: #c2d4dd; font-size: 10px; margin-bottom: 14px; text-align: center; }
#connection-dot { background: #ffa462; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
#connection-dot[data-status='online'] { background: #66e6ac; box-shadow: 0 0 8px #66e6ac99; }
#connection-dot[data-status='connecting'] { background: #f9d272; }
#online-count { color: #7ca5b1; border-left: 1px solid #66889944; padding-left: 7px; }
#online-count:empty { display: none; }
.play-btn { width: min(100%, 430px); padding: 24px 10px; border: 1px solid #ffe890; background: linear-gradient(112deg, #ffa537, #ffd05e 75%); border-radius: 14px; box-shadow: 0 5px 0 #9e5d21, 0 15px 45px #ffc74d2b; color: #252018; display: flex; flex-direction: column; align-items: center; gap: 7px; margin-bottom: 30px; }
.play-btn strong { font-size: 25px; font-weight: 950; }
.play-btn span { font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.play-btn:not(:disabled):hover { transform: translateY(-2px); }
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.mode-btn { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(12, 23, 40, .92); border: 1px solid var(--edge); border-radius: 10px; padding: 18px 9px; color: var(--ink); text-align: left; }
.mode-btn .icon { font-size: 23px; }
.mode-text { display: flex; flex-direction: column; gap: 5px; }
.mode-text strong { font-size: 10px; white-space: nowrap; }
.mode-text small { font-size: 8px; color: var(--muted); }
.mode-selector { position: relative; }
.mode-selector.selected { border-color: var(--cyan); background: rgba(17, 67, 83, .85); box-shadow: 0 0 22px #4ee8ee18; }
.mode-selector.selected::after { content: ''; position: absolute; width: 20px; height: 3px; background: var(--cyan); top: -1px; border-radius: 3px; }
.mode-selector.purple.selected { border-color: #c794ff; background: #44315be0; }
.mode-selector.green.selected { border-color: #83dca4; background: #244a40ed; }
.mode-help { color: #b9c9df; text-align: center; max-width: 440px; font-size: 10px; line-height: 1.7; min-height: 36px; margin: 15px 0 18px; }
.modes-subgrid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modes-subgrid .mode-btn { padding: 14px 8px; font-size: 9px; font-weight: 800; gap: 8px; color: #c2d0df; }
.modes-subgrid .mode-btn span:first-child { font-size: 17px; }
.hero-footer { display: flex; gap: 10px; align-items: center; width: 100%; color: #99adbf; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; margin-top: 35px; }
.line { height: 1px; background: #8eb0cc2e; flex: 1; }
.leaderboard-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--edge); margin-bottom: 9px; }
.leaderboard-header h2 { margin: 0; font-size: 10px; letter-spacing: .8px; }
.text-button { padding: 3px; background: none; border: 0; color: var(--cyan); font-size: 9px; font-weight: 700; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li:not(.empty-state) { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #b9d6ff0c; }
.lb-list .rank { font-size: 11px; color: #9cacbf; min-width: 12px; }
.lb-list li:first-child .rank { color: var(--gold); }
.lb-list .name { flex: 1; font-size: 11px; overflow-wrap: anywhere; }
.lb-list .score { font-family: monospace; color: var(--cyan); font-size: 12px; }
.lb-list .own-score .name { color: var(--gold); }
.empty-state { color: var(--muted); font-size: 11px; line-height: 1.8; padding: 12px 0; }
.chat-box { display: flex; flex-direction: column; height: 270px; }
.live-label { color: #78dcb0; font-size: 8px; letter-spacing: 1px; }
.chat-messages { flex: 1; min-height: 80px; overflow-y: auto; font-size: 11px; line-height: 1.7; }
.chat-messages p { margin: 5px 0; overflow-wrap: anywhere; }
.msg-author { color: #69d9dc; }
.chat-input { display: flex; align-items: center; background: #081221; border: 1px solid var(--edge); border-radius: 7px; margin-top: 12px; overflow: hidden; }
.chat-input input { min-width: 0; flex: 1; background: none; border: 0; padding: 11px; color: var(--ink); font-size: 11px; width: 100%; }
.chat-input button { background: transparent; color: var(--cyan); border: 0; padding: 12px; }
.run-note { display: flex; gap: 13px; padding: 16px 20px; }
.run-note > span { font-size: 24px; margin-top: 5px; }
.run-note h2 { margin: 0; font-size: 11px; }
.run-note p { margin: 7px 0 0; font-size: 10px; }
.modal { position: fixed; inset: 0; z-index: 50; padding: 24px; display: flex; justify-content: center; align-items: center; background: rgba(5, 10, 21, .84); backdrop-filter: blur(6px); }
.modal-content { width: 100%; max-width: 460px; max-height: calc(100dvh - 48px); overflow-y: auto; background: #121e32; color: var(--ink); border: 1px solid #627a9c66; border-radius: 18px; padding: 28px; box-shadow: 0 18px 80px #0008; }
.modal-wide { max-width: 720px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; }
.modal-header .card-eyebrow { margin-bottom: 8px; font-size: 8px; }
.modal-content h2 { font-size: 23px; margin: 0; }
.modal-content h3 { font-size: 15px; margin-top: 25px; }
.close-btn { border: 1px solid var(--edge); border-radius: 8px; background: #26344a; width: 34px; height: 34px; font-size: 23px; line-height: 1; flex-shrink: 0; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.modal-content > .muted { margin-bottom: 24px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #1b2b41; border: 1px solid var(--edge); border-radius: 12px; padding: 16px 10px; text-align: center; }
 .skin-preview { background-size: 300% 200%; background-position: left top; background-repeat: no-repeat; image-rendering: pixelated; }
.skin-preview.normalized-preview { background-size: contain; background-position: center; }
.skin-preview.classic-preview { display: grid; place-items: center; }
.skin-preview.classic-preview .classic-mark { transform: scale(1.65); }
.shop-item-icon { width: 100px; height: 100px; flex-shrink: 0; }
.shop-item .skin-description { color: var(--muted); font-size: 10px; line-height: 1.6; min-height: 32px; }
.shop-item h3 { margin: 0; font-size: 13px; }
.shop-item p { margin: 0; font-size: 10px; color: var(--gold); }
.shop-action-btn { margin-top: auto; padding: 11px 6px; width: 100%; border-radius: 6px; font-size: 9px; font-weight: 800; color: #151f2e; background: var(--gold); border: 0; }
.shop-action-btn.equip { background: var(--cyan); }
.shop-action-btn.equipped { background: #34574d; color: #9ff5c2; }
.shop-item .muted { font-size: 9px; }
.bp-progress { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.bp-progress strong { color: var(--ink); }
.bp-track-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bp-tier { border: 1px solid var(--edge); border-radius: 10px; background: #1b2b41; padding: 15px 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bp-tier.unlocked { border-color: #d2b057; }
.bp-tier.claimed { border-color: #75d1a355; background: #193c33; }
.bp-tier-number { font-size: 9px; letter-spacing: 1px; }
.reward-icon { font-size: 28px; }
.bp-tier strong { font-size: 12px; }
.bp-tier small { color: var(--muted); font-size: 10px; }
.bp-tier .secondary-btn { width: 100%; padding: 8px 3px; font-size: 8px; }
.or-divider { text-align: center; margin: 24px 0; color: var(--muted); font-size: 11px; }
.input-group { display: flex; gap: 10px; margin: 20px 0; }
.input-group input { min-width: 0; flex: 1; border: 1px solid #7183a466; border-radius: 7px; background: #0a1425; color: white; padding: 12px; }
#join-room-input { text-transform: uppercase; font-family: monospace; letter-spacing: 3px; }
.room-code { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 22px; }
.room-code > span { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.room-code strong { font-family: monospace; font-size: 32px; color: var(--gold); letter-spacing: 5px; }
.room-players { list-style: none; padding: 0; margin: 0; }
.room-players li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; background: #26384e; border-radius: 7px; margin: 8px 0; padding: 15px 13px; }
.room-players li span { overflow-wrap: anywhere; }
.ready-status { color: #88e1b1; white-space: nowrap; }
.button-row { display: flex; gap: 12px; margin: 22px 0 10px; }
.button-row > button { flex: 1; }
.ranked-summary { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 25px 0; }
.ranked-summary span:first-child { font-size: 45px; }
.ranked-summary strong { font-size: 32px; color: var(--gold); }
.ranked-summary span:last-child { font-size: 11px; color: var(--muted); }
.queue-content { text-align: center; padding: 35px; }
.loader { width: 45px; height: 45px; border: 3px solid #ffffff1c; border-top-color: var(--cyan); border-radius: 50%; margin: 0 auto 25px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.setting-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 22px 0; font-size: 12px; }
.setting-row label { min-width: 72px; }
.setting-row input { flex: 1; min-width: 0; accent-color: var(--cyan); }
.setting-row output { min-width: 40px; text-align: right; color: var(--cyan); }
.setting-row select { padding: 9px 12px; border-radius: 6px; background: #23364d; border: 1px solid var(--edge); color: white; }
#settings-form .primary-btn { margin-top: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; background: #1b2b41; padding: 20px; border-radius: 9px; margin-top: 25px; }
.match-history { max-height: 210px; overflow-y: auto; }
.history-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; border-bottom: 1px solid var(--edge); padding: 12px 0; font-size: 11px; }
.history-item small { font-size: 9px; color: var(--muted); }
.history-reward { font-size: 9px; color: var(--cyan); }
#results-modal .modal-content { text-align: center; }
#results-modal .card-eyebrow { margin: 8px 0 15px; }
.result-score { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 28px 0; }
.result-score strong { font-size: 64px; color: var(--gold); }
.result-score span { color: var(--muted); font-size: 9px; letter-spacing: 2px; }
#toast-container { position: fixed; z-index: 70; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #173141; border: 1px solid #61bccb; box-shadow: 0 8px 30px #0008; border-radius: 9px; padding: 14px 22px; color: #e5ffff; font-size: 12px; max-width: min(90vw, 600px); width: max-content; line-height: 1.6; }
#game-stage { min-height: 100dvh; display: flex; align-items: center; flex-direction: column; background: #faf9f3; color: #344143; padding: 22px; }
.game-hidden #game-stage { display: none; }
.game-hud { width: min(100%, 900px); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.game-hud > div { display: flex; flex-direction: column; gap: 5px; }
.game-hud .card-eyebrow { margin: 0; color: #3b7b7e; }
.game-hud strong { font-size: 13px; }
.game-hud .secondary-btn { background: #e4e9e6; color: #344143; border: 1px solid #9cafad; font-size: 10px; }
#game-status { font-size: 12px; color: #526566; min-height: 18px; margin: 38px 0 8px; text-align: center; }
#game-stage .interstitial-wrapper { position: relative; width: min(100%, 900px); margin: 0; max-width: 900px; padding: 30px 0 0; min-height: 180px; height: auto; }
#game-stage .runner-container { position: relative; margin: 0 auto; top: 0; max-width: 600px; width: 100%; height: auto; min-height: 150px; }
#game-stage .runner-canvas { position: relative; display: block; width: 100%; height: auto; max-width: 600px; image-rendering: pixelated; }
#game-stage #main-content { display: none; }
 .touch-controls { display: none; position: fixed; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 40px), 800px); align-items: center; justify-content: space-between; gap: 20px; pointer-events: none; z-index: 5; }
.thumb-pad { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; width: 122px; height: 112px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #9eafad; border-radius: 30px; color: #285252; background: linear-gradient(145deg, #f4faf5, #d7e6df); box-shadow: 0 5px 0 #a7bcb4, 0 10px 24px #28525218; }
.thumb-pad svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thumb-pad > span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; letter-spacing: 1px; font-weight: 850; }
.thumb-pad small { color: #55736a; font-size: 8px; letter-spacing: .3px; font-weight: 500; }
.jump-pad { border-color: #d3ab58; color: #76541e; background: linear-gradient(145deg, #fff7d2, #f3d48a); box-shadow: 0 5px 0 #b69b62, 0 10px 24px #92733418; }
.jump-pad small { color: #897340; }
.thumb-pad:active, .thumb-pad.is-pressed { transform: translateY(4px) scale(.97); box-shadow: 0 1px 0 #a7bcb4, inset 0 2px 5px #28525215; }
.touch-control-hint { color: #8fa09a; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-align: center; }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1366px) and (max-height: 1024px) {
    .touch-controls { display: flex; }
    #game-stage { padding-bottom: max(170px, calc(150px + env(safe-area-inset-bottom))); }
}
@media (max-width: 600px) { .thumb-pad { width: 104px; height: 103px; border-radius: 27px; } .touch-control-hint { font-size: 8px; max-width: 70px; } }
@media (max-height: 500px) and (max-width: 1024px) { .thumb-pad { width: 88px; height: 82px; border-radius: 21px; } .thumb-pad svg { width: 23px; height: 23px; } .touch-controls { bottom: max(15px, env(safe-area-inset-bottom)); width: calc(100% - 44px); } #game-stage { padding-bottom: 110px; } #game-status { margin-top: 12px; } }
.game-tip { font-size: 11px; color: #647875; text-align: center; margin-top: 24px; }
.crt-overlay { z-index: 25; opacity: .1; animation: none; }
@media (min-width: 1600px) { .main-grid { padding-top: 65px; gap: 38px; } .center-column { padding-top: 28px; } }
@media (max-width: 1150px) {
    .main-grid { grid-template-columns: 210px minmax(360px, 1fr); gap: 20px; }
    .right-column { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .run-note { display: none; }
    .nav-links { gap: 15px; }
    .title-dino { font-size: 63px; }
    .title-online { font-size: 47px; }
}
@media (max-width: 740px) {
    .top-navbar { padding: 14px 20px; flex-wrap: wrap; gap: 12px; }
    .nav-right { margin-left: auto; }
    .nav-links { flex-basis: 100%; order: 3; justify-content: space-between; gap: 8px; }
    .nav-links button { font-size: 9px; }
    .main-grid { display: flex; flex-direction: column; padding: 10px 20px 30px; gap: 18px; }
    .center-column { order: 1; padding: 12px 0 0; }
    .left-column { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .right-column { order: 3; grid-template-columns: 1fr 1fr; gap: 12px; }
    .glass-card { padding: 18px; }
    .howto-card { display: none; }
    .title-container { margin: 8px 0 16px; }
    .hero-eyebrow { font-size: 8px; margin-bottom: 13px; letter-spacing: 1.4px; }
    .title-dino { font-size: clamp(43px, 10vw, 64px); }
    .title-online { font-size: 38px; }
    .subtitle { font-size: 8px; }
    .connection-status { margin-bottom: 12px; }
    .play-btn { padding: 19px 8px; margin-bottom: 24px; width: 100%; }
    .play-btn strong { font-size: 23px; }
    .mode-btn { flex-direction: column; text-align: center; padding: 13px 5px; gap: 8px; }
    .mode-text strong { font-size: 9px; }
    .mode-text small { font-size: 8px; }
    .modes-subgrid .mode-btn { font-size: 8px; padding: 10px 5px; }
    .mode-help { margin-bottom: 13px; }
    .hero-footer { margin-top: 22px; margin-bottom: 8px; }
    .profile-card-inner { flex-direction: column; align-items: flex-start; }
    .profile-info { width: 100%; }
    .profile-mini-stats { padding-top: 12px; margin: 15px 0; gap: 12px; }
    dd { font-size: 17px; }
    .party-card p { font-size: 11px; }
    .chat-box { min-height: 290px; }
    .leaderboard-header h2 { font-size: 9px; }
    .leaderboard-header .text-button { font-size: 8px; }
    .modal { padding: 15px; }
    .modal-content { padding: 23px; max-height: calc(100dvh - 30px); }
    .bp-track-container { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-item-icon { width: 70px; height: 60px; font-size: 40px; }
    .stats-grid { gap: 16px 9px; padding: 15px; }
    .input-group input { padding: 10px; }
    #game-stage { padding: 15px; }
    #game-status { margin-top: 35px; }
}
@media (max-width: 430px) {
    .top-navbar { padding: 13px 14px; }
    .main-grid { padding-left: 14px; padding-right: 14px; }
    .nav-brand { font-size: 13px; }
    .currency-badge { padding: 7px 11px; font-size: 12px; }
    .nav-links button { font-size: 8px; }
    .glass-card { padding: 15px; }
    .right-column { grid-template-columns: 1fr; }
    .chat-box { height: 240px; min-height: 240px; }
    .left-column { grid-template-columns: 1fr; }
    .profile-card-inner { flex-direction: row; align-items: center; }
    .profile-card .microcopy { margin-top: 10px; }
    .party-card { display: flex; flex-wrap: wrap; gap: 10px; }
    .party-card .leaderboard-header { width: 100%; margin: 0; padding-bottom: 9px; }
    .party-card p { margin: 0; flex: 1; }
    .party-card button { width: auto; align-self: center; }
    .profile-mini-stats { justify-content: space-between; }
    .mode-text small { min-height: 20px; }
    .title-dino { font-size: 44px; letter-spacing: -2px; }
    .play-btn strong { font-size: 21px; }
    .play-btn span { font-size: 7px; }
    .bp-track-container { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .button-row { gap: 7px; }
    .button-row > button { font-size: 9px; padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.control-reference { background: #1a2b42; border: 1px solid var(--edge); border-radius: 10px; margin: 25px 0; padding: 17px; }
.control-reference h3 { margin: 0 0 18px; font-size: 13px; }
.control-reference > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; font-size: 12px; }
.control-reference kbd { margin-left: 4px; padding: 3px 6px; }
.weekly-period { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 10px 0 4px; }
.weekly-card .card-eyebrow { margin-bottom: 10px; font-size: 8px; }
.weekly-reward { display: flex; align-items: center; gap: 14px; min-height: 46px; margin: 10px 0 20px; }
.weekly-skin-preview { width: 70px; height: 70px; flex-shrink: 0; }
.weekly-skin-preview.classic-preview .classic-mark { transform: scale(1.25); }
.weekly-reward-text { display: flex; flex-direction: column; gap: 8px; }
.weekly-reward-text strong { font-size: 12px; color: var(--gold); line-height: 1.6; }
.weekly-reward-text small { font-size: 9px; color: var(--muted); line-height: 1.6; }
.weekly-champion { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-top: 1px solid var(--edge); padding-top: 15px; }
.weekly-champion > strong { font-size: 12px; color: #d3e2f3; line-height: 1.6; }
.weekly-champion > span:last-child { font-size: 9px; color: var(--muted); line-height: 1.6; }
.modal-champion { margin: 18px 0; border-top: 0; padding-top: 0; }
.modal-champion .card-eyebrow { margin: 0; }
.full-leaderboard { margin-top: 20px; }
@media (max-width: 1150px) { .weekly-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; } .weekly-card > .card-eyebrow { grid-column: 1; } .weekly-card .weekly-reward { grid-column: 1; margin: 0; } .weekly-card .weekly-champion { grid-column: 2; grid-row: 1 / 3; border-top: 0; border-left: 1px solid var(--edge); padding: 0 0 0 25px; } }
@media (max-width: 430px) { .weekly-card { display: block; } .weekly-card .weekly-reward { margin: 10px 0 18px; } .weekly-card .weekly-champion { border-left: 0; border-top: 1px solid var(--edge); padding: 15px 0 0; } }

@media (max-width: 1024px), (pointer: coarse) and (max-width: 1366px) and (max-height: 1024px) {
    #game-stage { padding-bottom: max(170px, calc(150px + env(safe-area-inset-bottom))); }
}
@media (max-height: 500px) and (max-width: 1024px) {
    #game-stage { padding-bottom: 110px; }
    #game-status { margin-top: 12px; }
}

/* The renderer measures the whole viewport; UI controls float above the arena. */
#game-stage { position: fixed; inset: 0; width: 100vw; height: 100dvh; min-height: 0; padding: 0; display: block; overflow: hidden; background: #faf9f3; }
#game-stage .interstitial-wrapper { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-width: none; padding: 0; margin: 0; }
#game-stage .runner-container { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; min-height: 0; max-width: none !important; margin: 0 !important; overflow: visible; }
#game-stage .runner-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; }
.game-hud { position: absolute; z-index: 7; top: max(22px, env(safe-area-inset-top)); left: max(24px, env(safe-area-inset-left)); right: max(24px, env(safe-area-inset-right)); width: auto; align-items: flex-start; }
.game-hud .card-eyebrow { color: #446768; font-size: 10px; }
.game-hud strong { color: #334e4f; }
.hud-actions { display: flex; gap: 10px; }
.game-hud .secondary-btn { background: #f9fcf2cc; backdrop-filter: blur(6px); border-color: #75958a88; }
.game-countdown { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #faf9f338; color: #35585a; pointer-events: none; }
.game-countdown > span { font-size: 12px; letter-spacing: 3px; font-weight: 800; }
.game-countdown strong { font-size: clamp(90px, 15vw, 160px); line-height: 1.15; font-weight: 950; color: #385b57; text-shadow: 0 6px 0 #d8e7d8; }
.game-countdown small { color: #526d68; font-size: 11px; max-width: 80%; text-align: center; line-height: 1.8; }
#game-status { position: absolute; z-index: 8; top: 100px; left: 20px; right: 20px; margin: 0; text-align: center; }
@media (max-width: 650px) { .game-hud { top: max(16px, env(safe-area-inset-top)); left: 16px; right: 16px; gap: 10px; } .game-hud strong { font-size: 11px; } .game-hud .card-eyebrow { font-size: 8px; } .hud-actions { gap: 6px; } .game-hud .secondary-btn { padding: 10px 8px; font-size: 8px; } .game-countdown small { font-size: 9px; } }

/* Collections and progress use the same server-owned inventory everywhere. */
.collection-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5px; gap: 4px; background: #0b1627; border: 1px solid var(--edge); border-radius: 11px; margin: 0 0 20px; }
.collection-tabs button { padding: 12px 5px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; }
.collection-tabs button[aria-selected='true'] { background: #263e51; color: var(--cyan); border-color: #61989866; }
.collection-tabs button:not([aria-selected='true']):hover { background: #1b2b41; color: var(--ink); }
.quick-loadout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 14px; width: 100%; margin-top: 16px; padding: 15px 17px; border: 1px solid #54738244; border-radius: 11px; background: #0d2031a8; }
.quick-loadout label { color: #b9d5dc; font-size: 10px; font-weight: 700; grid-column: 1 / -1; }
.quick-loadout select, .profile-avatar-editor select { width: 100%; min-width: 0; padding: 10px 11px; border-radius: 7px; background: #0a1425; border: 1px solid #657a9566; color: var(--ink); font-family: inherit; font-size: 11px; }
.quick-loadout small { grid-column: 1 / -1; font-size: 9px; color: #95aebe; line-height: 1.7; }
.quick-loadout .text-button { white-space: nowrap; }
.daily-card h2 { font-size: 17px; margin: 0; }
.daily-card p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 12px 0 16px; }
.item-icon { width: 92px; height: 92px; flex-shrink: 0; display: grid; place-items: center; border-radius: 22px; border: 1px solid #7084a055; background: radial-gradient(circle at 35% 20%, #7cc6c224, transparent 70%), #21374d; color: #7be6d5; margin: 3px auto; }
.item-icon svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.item-magnet { color: #dbb8fa; background: radial-gradient(circle at 35% 20%, #b481ed30, transparent 70%), #2e2d4c; }
.item-double_coins, .item-crate { color: var(--gold); background: radial-gradient(circle at 35% 20%, #f1ca6230, transparent 70%), #3a3540; }
.shop-item > .secondary-btn { font-size: 9px; padding: 11px 7px; }
.shop-item > strong { color: var(--ink); font-size: 13px; }
.shop-item > .skin-description { color: var(--muted); }
.crate-odds { grid-column: 1 / -1; color: var(--muted); padding: 14px 16px; border: 1px solid var(--edge); border-radius: 8px; font-size: 10px; line-height: 1.9; background: #0d182a; margin: 0; }
.inventory-summary { color: #bed4dc; font-size: 11px; margin: 0 0 17px; }
#retry-commerce-btn { margin-top: 20px; color: var(--gold); border-color: #c3a05288; }
.avatar-preview { width: 96px; height: 96px; flex-shrink: 0; display: grid; place-items: center; border-radius: 22px; border: 2px solid #6e879455; background: radial-gradient(circle at 50% 35%, #8abdbd27, transparent 70%), #1e3447; position: relative; }
.avatar-preview > .skin-preview { width: 72%; height: 76%; }
.avatar-preview > .skin-preview.classic-preview .classic-mark { transform: scale(1.15); }
.avatar-frame-bronze { border: 3px solid #cc9259; box-shadow: inset 0 0 0 3px #714e3833, 0 0 16px #cd8d4322; }
.avatar-frame-silver { border: 3px solid #cce6ed; box-shadow: inset 0 0 0 3px #809ba34d, 0 0 18px #bbdce622; }
.avatar-frame-gold { border: 3px solid #ffdc80; box-shadow: inset 0 0 0 3px #b47f414d, 0 0 22px #ffce522b; }
.avatar-frame-gold::after, .avatar-frame-silver::after, .avatar-frame-bronze::after { content: ''; position: absolute; width: 11px; height: 11px; left: calc(50% - 6px); bottom: -6px; background: currentColor; transform: rotate(45deg); border: 2px solid #243346; }
.avatar-frame-bronze { color: #cc9259; }.avatar-frame-silver { color: #cce6ed; }.avatar-frame-gold { color: #ffdc80; }
#dash-profile-avatar { background: transparent; border: 0; border-radius: 13px; }
#dash-profile-avatar > .avatar-preview { width: 52px; height: 52px; border-radius: 13px; }
#dash-profile-avatar .classic-mark { transform: scale(.7); }
#dash-profile-avatar .avatar-preview > .skin-preview { width: 78%; height: 80%; }
.profile-avatar-editor { display: flex; gap: 22px; padding: 18px; background: #192b40; border: 1px solid var(--edge); border-radius: 12px; align-items: center; }
#profile-avatar-preview { border: 0; background: transparent; width: 108px; height: 108px; }
#profile-avatar-preview > .avatar-preview { width: 104px; height: 104px; }
.profile-avatar-editor form { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-avatar-editor label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 7px; }
.profile-avatar-editor .secondary-btn { grid-column: 1 / -1; font-size: 10px; }
.bp-tier .avatar-preview { width: 58px; height: 58px; border-radius: 15px; }
.bp-tier .avatar-preview .classic-mark { transform: scale(.75); }
.bp-tier .item-icon { width: 58px; height: 58px; border-radius: 14px; }.bp-tier .item-icon svg { width: 30px; height: 30px; }
.bp-tier strong { text-align: center; line-height: 1.6; }
.daily-login-status { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.daily-login-status strong { color: #c7dce0; font-size: 11px; font-weight: 600; line-height: 1.7; }
.daily-login-status > span { color: var(--gold); font-size: 11px; font-weight: 800; white-space: nowrap; }
.daily-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.login-day { padding: 13px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 112px; border: 1px solid var(--edge); background: #18293e; border-radius: 9px; }
.login-day > span { color: var(--muted); font-size: 10px; }.login-day strong { color: #cfdce8; font-size: 11px; }.login-day small { color: #8ba2b6; font-size: 8px; line-height: 1.6; }
.login-day.earned { border-color: #467e6a; background: #1c3935; }.login-day.earned small { color: #9ae0b9; }.login-day.today { border-color: var(--gold); box-shadow: inset 0 0 18px #e4b64e15; }.login-day.today strong { color: var(--gold); }
.daily-quest-list { display: flex; flex-direction: column; gap: 10px; }
.quest-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: #1b2c42; border: 1px solid var(--edge); border-radius: 10px; padding: 18px; }.quest-card > div { flex: 1; min-width: 0; }.quest-card h4 { font-size: 12px; margin: 0 0 8px; }.quest-card p { font-size: 10px; margin: 0 0 11px; color: var(--muted); }.quest-card button { flex-shrink: 0; font-size: 9px; }
.quest-card progress { appearance: none; width: 100%; height: 5px; display: block; border: 0; border-radius: 6px; background: #0b182a; accent-color: #68d4bb; overflow: hidden; }.quest-card progress::-webkit-progress-bar { background: #0b182a; }.quest-card progress::-webkit-progress-value { background: #68d4bb; border-radius: 6px; }.quest-card progress::-moz-progress-bar { background: #68d4bb; }
.reward-rules { color: #aec5d2; background: #0e1a2b; border: 1px solid var(--edge); border-radius: 9px; padding: 16px; margin: 22px 0 0; font-size: 10px; line-height: 1.9; }
.crate-content { text-align: center; }.crate-content .modal-header { text-align: left; }.crate-reward-art { display: grid; place-items: center; margin: 25px 0 20px; min-height: 120px; }.crate-reward-art .skin-preview { width: 150px; height: 150px; }.crate-reward-art .avatar-preview { width: 120px; height: 120px; }.crate-reward-art .avatar-preview .skin-preview { width: 85px; height: 90px; }.coin-reward-art { font-size: 84px; }.crate-content h3 { margin: 0 0 12px; font-size: 23px; }.crate-content > p { margin-bottom: 25px; }
.game-hud .hud-actions { flex-direction: row; }
.game-loot-hud { position: absolute; z-index: 7; top: max(90px, calc(74px + env(safe-area-inset-top))); left: max(24px, env(safe-area-inset-left)); color: #375d57; pointer-events: none; display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 700; }
#game-effect-status:not(:empty) { border: 1px solid #649d7e66; border-radius: 8px; background: #e8f5e3d9; padding: 10px 13px; backdrop-filter: blur(5px); }
#game-loot-status { color: #687965; font-size: 9px; font-weight: 600; }
#result-qualification { font-size: 11px; line-height: 1.8; color: #f1cd98; background: #61472844; border: 1px solid #c99a4755; border-radius: 9px; padding: 14px; }
@media (max-width: 1150px) { .nav-links { gap: 13px; }.nav-links button { font-size: 10px; }.daily-card { grid-column: 1 / -1; } }
@media (max-width: 740px) { .daily-card { grid-column: auto; }.quick-loadout { padding: 13px; }.collection-tabs button { font-size: 10px; }.profile-avatar-editor { gap: 15px; padding: 15px; }.daily-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }.login-day { min-height: 98px; }.daily-login-status { align-items: flex-start; }.daily-login-status strong { font-size: 10px; }.item-icon { width: 80px; height: 80px; }.game-loot-hud { left: 16px; font-size: 10px; max-width: calc(100% - 32px); } }
@media (max-width: 430px) { .nav-links { gap: 7px; }.nav-links button { font-size: 8px; }.collection-tabs { gap: 2px; padding: 4px; }.collection-tabs button { font-size: 9px; padding: 11px 3px; }.profile-avatar-editor { flex-direction: column; align-items: stretch; }.profile-avatar-editor > #profile-avatar-preview { margin: 0 auto; }.profile-avatar-editor form { gap: 12px; }.daily-login-status { flex-direction: column; gap: 8px; }.daily-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }.quest-card { gap: 12px; padding: 14px; }.quest-card button { padding: 11px 8px; font-size: 8px; }.quick-loadout select { font-size: 10px; } }
@media (max-height: 500px) and (max-width: 1024px) { .game-loot-hud { top: 77px; }.game-loot-hud #game-effect-status:not(:empty) { padding: 7px 10px; } }

/* Profile and collection states follow the confirmed profile, including frames. */
#profile-modal .modal-content { background: radial-gradient(ellipse at 0 0, #25455655, transparent 55%), #121e32; }
.profile-avatar-editor { background: linear-gradient(125deg, #203b4d, #192a40); border-color: #60839766; padding: 22px; }
#profile-avatar-preview { width: 124px; height: 124px; }
#profile-avatar-preview > .avatar-preview { width: 118px; height: 118px; border-radius: 25px; }
.avatar-frame-bronze { border-color: #e7a666; box-shadow: inset 0 0 0 3px #633f3866, 0 0 0 1px #4b261e, 0 6px 22px #d88c4930; }
.avatar-frame-silver { border-color: #d0edf8; box-shadow: inset 0 0 0 3px #709bb855, 0 0 0 1px #63828b, 0 6px 24px #98cfef30; }
.avatar-frame-gold { border-color: #ffe080; box-shadow: inset 0 0 0 3px #97682d66, 0 0 0 1px #a9873d, 0 6px 26px #ffcc4944; }
.avatar-save-status { grid-column: 1 / -1; margin: 0; color: #aad5cc; font-size: 10px; line-height: 1.7; min-height: 17px; }
#profile-stats { gap: 9px; padding: 0; background: none; }
#profile-stats > div { border: 1px solid #536e8955; padding: 15px; border-radius: 10px; background: #1a304566; }
#profile-stats dd { color: #d9eeee; font-variant-numeric: tabular-nums; }
.shop-item { position: relative; background: linear-gradient(140deg, #22384c, #17263b); padding-top: 18px; border-color: #6b86a244; box-shadow: inset 0 1px 0 #a8d3e40a; }
.shop-item:has(.ownership-badge) { padding-top: 42px; }
.ownership-badge, .quantity-badge { border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .7px; color: #acd7d7; background: #35576855; border: 1px solid #648e9e44; padding: 5px 8px; }
.ownership-badge { position: absolute; top: 11px; right: 10px; }
.ownership-badge.is-equipped { color: #a5f1ba; background: #215b3e99; border-color: #77d69755; }
.quantity-badge { color: #b6cbe0; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.shop-item-price { padding: 6px 10px; border-radius: 7px; background: #2f3043; color: #ffd98b !important; font-weight: 750; font-variant-numeric: tabular-nums; }
.inventory-summary { padding: 12px 14px; background: #102138; border: 1px solid var(--edge); border-radius: 8px; color: #c5d7e6; }
#inventory-grid > .empty-state, #shop-grid-container > .empty-state { grid-column: 1 / -1; padding: 28px 22px; text-align: center; border: 1px dashed #7184a255; border-radius: 12px; background: #16263a; }
#game-effect-status { display: flex; flex-wrap: wrap; gap: 9px; max-width: min(100%, 660px); padding: 0; border: 0; background: none; backdrop-filter: none; }
#game-effect-status:not(:empty) { border: 0; border-radius: 0; padding: 0; background: none; backdrop-filter: none; }
.powerup-card { display: flex; align-items: center; gap: 10px; width: 196px; padding: 11px; color: #315747; background: #edf8e4ed; border: 1px solid #80a78688; border-radius: 12px; box-shadow: 0 5px 18px #34543812; backdrop-filter: blur(8px); }
.powerup-card .item-icon { width: 40px; height: 43px; border-radius: 11px; margin: 0; border-color: #88bda466; background: #cee9d966; color: #327b64; }.powerup-card .item-icon svg { width: 25px; height: 25px; }
.powerup-card-detail { flex: 1; min-width: 0; }.powerup-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }.powerup-name { font-size: 10px; font-weight: 850; }.powerup-seconds { font-variant-numeric: tabular-nums; font-size: 11px; white-space: nowrap; }
.powerup-card small { display: block; color: #6b806a; font-size: 8px; font-weight: 600; margin-top: 7px; }
.powerup-time-progress { appearance: none; width: 100%; height: 4px; border: 0; display: block; border-radius: 5px; background: #b7d7bd; accent-color: #57976f; overflow: hidden; }.powerup-time-progress::-webkit-progress-bar { background: #b7d7bd; }.powerup-time-progress::-webkit-progress-value { background: #57976f; border-radius: 5px; }.powerup-time-progress::-moz-progress-bar { background: #57976f; }
.powerup-magnet { color: #70516d; border-color: #b29daf99; background: #fbecf6ed; }.powerup-magnet .item-icon { color: #915e83; background: #ecd7e666; border-color: #bf98b466; }.powerup-magnet small { color: #947a8e; }.powerup-magnet .powerup-time-progress { background: #decbd9; accent-color: #a27799; }.powerup-magnet .powerup-time-progress::-webkit-progress-bar { background: #decbd9; }.powerup-magnet .powerup-time-progress::-webkit-progress-value { background: #a27799; }.powerup-magnet .powerup-time-progress::-moz-progress-bar { background: #a27799; }
.powerup-double_coins { color: #7c662c; border-color: #bfa95b99; background: #fff7dced; }.powerup-double_coins .item-icon { color: #a58934; background: #efdb9a44; border-color: #c0aa6166; }.powerup-double_coins small { color: #958350; }.powerup-double_coins .powerup-time-progress { background: #e4d5a3; accent-color: #b09a4d; }.powerup-double_coins .powerup-time-progress::-webkit-progress-bar { background: #e4d5a3; }.powerup-double_coins .powerup-time-progress::-webkit-progress-value { background: #b09a4d; }.powerup-double_coins .powerup-time-progress::-moz-progress-bar { background: #b09a4d; }
.result-loot-panel { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 12px 16px; margin: 24px 0; padding: 19px; border: 1px solid #9b845688; border-radius: 13px; background: radial-gradient(ellipse at 0 0, #92733744, transparent 75%), #263345; }
.result-crate-art .item-icon { width: 64px; height: 67px; border-radius: 15px; margin: 0; }.result-crate-art .item-icon svg { width: 35px; height: 35px; }
.result-loot-copy { text-align: left; }.result-loot-copy .card-eyebrow { color: #dfc584; font-size: 8px; margin-bottom: 7px; }.result-loot-copy h3 { color: #fff1c5; margin: 0; font-size: 17px; }.result-loot-copy p { font-size: 10px; color: #c3c8d5; line-height: 1.8; margin: 8px 0 0; }.result-loot-panel > button { grid-column: 1 / -1; }
.crate-content { background: radial-gradient(ellipse at 50% 30%, #39566888, transparent 65%), #142239; }.crate-reward-art { border-radius: 18px; background: #253d5166; border: 1px solid #6a859c33; padding: 22px; }.crate-actions { display: flex; flex-direction: column; gap: 12px; }.crate-content .microcopy { color: #adcacb; }
@media (max-width: 740px) { .profile-avatar-editor { padding: 18px; }.powerup-card { width: 178px; padding: 9px; gap: 8px; }.powerup-card .item-icon { width: 34px; height: 38px; }.powerup-name { font-size: 9px; }.powerup-seconds { font-size: 10px; } }
@media (max-width: 430px) { #profile-stats > div { padding: 13px; }.profile-avatar-editor { padding: 16px; }.game-loot-hud { max-width: calc(100% - 32px); }.powerup-card { width: 158px; }.powerup-card small { font-size: 7px; }.powerup-card .item-icon { width: 30px; height: 34px; }.powerup-card .item-icon svg { width: 21px; height: 21px; }.powerup-card-top { gap: 5px; }.result-loot-panel { padding: 16px; gap: 12px; } }
@media (max-height: 500px) and (max-width: 1024px) { .powerup-card { width: 168px; padding: 8px; }.powerup-card .item-icon { width: 30px; height: 31px; }.powerup-card small { display: none; }.powerup-card-top { margin-bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .powerup-card, .powerup-time-progress { transition: none; animation: none; } }
@media (max-width: 600px) {
    .profile-avatar-editor { flex-direction: column; align-items: stretch; }
    .profile-avatar-editor > #profile-avatar-preview { margin: 0 auto; }
    .profile-avatar-editor form { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .profile-avatar-editor form > div { min-width: 0; }
    .quick-loadout { grid-template-columns: minmax(0, 1fr); }
    .quick-loadout > select, .quick-loadout > .dinoby-select { grid-column: 1; width: 100%; }
    .quick-loadout > .text-button { grid-column: 1; justify-self: end; }
}

/* A full inventory entry stays usable beside the run preparation controls. */
.quick-loadout { grid-template-columns: minmax(0, 1fr); }
.quick-loadout > select, .quick-loadout > .dinoby-select { grid-column: 1 / -1; }
.inventory-entry-btn { display: flex; align-items: center; gap: 13px; min-width: 0; width: 100%; min-height: 74px; grid-column: 1 / -1; padding: 13px 15px; border: 1px solid #78968477; border-radius: 12px; text-align: left; color: #e9f4df; background: linear-gradient(120deg, #314b43, #233b40); box-shadow: inset 0 1px 0 #e1f4ca15, 0 4px 12px #0002; }
.inventory-entry-btn:hover { border-color: #b2dda4; background: linear-gradient(120deg, #3a594b, #29494a); }
.inventory-entry-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; color: #d2e3a4; background: #a6c17018; border: 1px solid #aec6a14d; border-radius: 11px; }
.inventory-entry-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.inventory-entry-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }.inventory-entry-copy strong { font-size: 13px; font-weight: 800; letter-spacing: .2px; }.inventory-entry-copy > span { color: #bed0c4; font-size: 10px; font-weight: 500; line-height: 1.7; overflow-wrap: break-word; }
.inventory-entry-arrow { color: #d8e7ad; font-size: 23px; padding-left: 5px; }
.modal-network-note { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #9e97624d; padding: 12px 14px; border-radius: 9px; background: #5b4e2726; color: #ddcea7; font-size: 11px; line-height: 1.8; margin: -4px 0 20px; }
.modal-network-note::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #cfc079; margin-top: 6px; }
.close-btn, .icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }.collection-tabs button { min-height: 44px; }.nav-links button { min-height: 40px; }.text-button { min-height: 32px; }
.inventory-entry-btn:focus-visible, .close-btn:focus-visible, .icon-button:focus-visible { outline: 3px solid #c3efd7; outline-offset: 4px; }
button:not(:disabled):active { filter: brightness(.94); }
@media (max-width: 600px) { .inventory-entry-btn { padding: 12px 13px; gap: 11px; }.inventory-entry-copy strong { font-size: 12px; }.inventory-entry-copy > span { font-size: 10px; }.text-button, .nav-links button { min-height: 44px; }.modal-network-note { font-size: 10px; } }
.pickup-retry-status { align-self: flex-start; padding: 7px 11px; border: 1px solid #a5aa7b66; border-radius: 7px; background: #fbf6dbdf; color: #70763c; font-size: 9px; font-weight: 650; }
.powerup-card.is-pending .powerup-card-top { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 4px; }
.powerup-card.is-pending .powerup-seconds { font-size: 9px; font-weight: 750; }
.powerup-card.is-pending small { margin-top: 4px; }
@media (max-height: 500px) and (max-width: 1024px) { .powerup-card.is-pending small { display: block; } }

/* The first paint shows preparation before any profile values are rendered. */
.startup-screen { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; overflow-y: auto; padding: max(30px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); background: radial-gradient(ellipse at 18% 12%, #264b503d, transparent 50%), radial-gradient(ellipse at 80% 86%, #82633822, transparent 48%), #0c1525; }
.startup-card { width: min(100%, 430px); text-align: center; padding: 34px 30px; border: 1px solid #a4c4d322; border-radius: 24px; background: linear-gradient(145deg, #18283acc, #0e1d30d9); box-shadow: 0 26px 100px #0004, inset 0 1px #c9e9e910; }
.startup-brand { color: #eef5fa; font-size: clamp(43px, 8vw, 57px); font-weight: 950; letter-spacing: -2.7px; line-height: 1.15; }.startup-brand span { color: var(--gold); }
.startup-eyebrow { margin-top: 12px; color: #90b1bb; font-size: 8px; font-weight: 750; letter-spacing: 2px; }
.startup-track { position: relative; height: 78px; margin: 25px auto 27px; max-width: 230px; }.startup-dino { position: absolute; top: 7px; left: calc(50% - 22px); filter: brightness(1.7); animation: startup-step .7s ease-in-out infinite; }.startup-track-line { position: absolute; left: 0; right: 0; top: 58px; height: 1px; background: linear-gradient(90deg, transparent, #7caaa680, transparent); }.startup-track-spark { position: absolute; width: 4px; height: 4px; background: #b9dba8; border-radius: 1px; top: 64px; left: 34%; box-shadow: 52px 4px #96c9b65c, -34px 3px #96c9b633; }
.startup-card h1 { margin: 0 0 14px; font-size: 21px; font-weight: 800; letter-spacing: -.5px; line-height: 1.4; }.startup-status { min-height: 42px; margin: 0 0 22px; color: #afc3d1; font-size: 12px; line-height: 1.8; }
.startup-checklist { list-style: none; padding: 0; margin: 0; text-align: left; border-top: 1px solid #91b0c122; }.startup-checklist li { display: flex; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid #91b0c122; font-size: 11px; color: #c3d3df; }.startup-checklist li::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border: 1px solid #85a3b480; border-radius: 50%; }.startup-checklist small { margin-left: auto; color: #7f9cae; font-size: 9px; font-weight: 600; }.startup-checklist li[data-ready='true']::before { border-color: #9ae3bd; background: #9ae3bd; box-shadow: 0 0 9px #9ae3bd33; }.startup-checklist li[data-ready='true'] small { color: #a7dfbc; }
.startup-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }.startup-actions button { min-height: 46px; font-size: 10px; }.startup-note { margin: 23px 0 0; color: #829aab; font-size: 10px; line-height: 1.8; }.startup-noscript { color: #ffd495; font-size: 12px; line-height: 1.7; margin-top: 22px; }
.startup-screen[data-state='attention'] .startup-dino { animation: none; }.startup-screen[data-state='attention'] .startup-status { color: #e2cda5; }
@keyframes startup-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 600px) { .startup-card { padding: 30px 23px; border-radius: 20px; }.startup-status { font-size: 11px; }.startup-card h1 { font-size: 20px; } }
@media (max-height: 500px) { .startup-screen { padding-top: 18px; padding-bottom: 18px; }.startup-card { padding-top: 22px; padding-bottom: 22px; }.startup-brand { font-size: 36px; }.startup-track { height: 58px; margin-top: 12px; margin-bottom: 20px; }.startup-eyebrow { margin-top: 8px; }.startup-checklist li { padding: 9px 2px; }.startup-note { margin-top: 16px; } }
@media (prefers-reduced-motion: reduce) { .startup-dino { animation: none; } }
.account-entry-btn { min-height: 44px; padding: 12px 15px; border: 1px solid #77b0b266; border-radius: 9px; background: linear-gradient(120deg, #234949, #21394f); color: #d2f0e6; font-size: 10px; font-weight: 800; letter-spacing: .3px; }.account-entry-btn:not(:disabled):hover { border-color: #9de6d7; }.profile-card .account-entry-btn { margin-top: 15px; }
.profile-account { padding: 19px 20px; margin: 0 0 23px; border: 1px solid #84b7c330; border-radius: 13px; background: linear-gradient(125deg, #18334199, #172638aa); }.profile-account-heading { display: flex; align-items: center; gap: 15px; justify-content: space-between; }.profile-account-heading .card-eyebrow { display: block; margin-bottom: 8px; font-size: 8px; }.profile-account h3 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }.profile-account > p:not(.microcopy) { margin: 16px 0; color: #acc3cf; font-size: 11px; line-height: 1.9; }.account-badge { flex-shrink: 0; padding: 6px 9px; border: 1px solid #7dabb04d; border-radius: 20px; color: #a0bec9; font-size: 8px; font-weight: 700; }.account-badge[data-linked='true'] { color: #ade5c5; border-color: #84c5a15c; background: #38704722; }.profile-account .account-entry-btn { width: 100%; }.profile-account .text-button { text-align: left; }
@media (max-width: 600px) { .profile-account { padding: 17px; }.profile-account-heading { align-items: flex-start; gap: 10px; }.profile-account h3 { font-size: 13px; } }
.account-cancel-btn { width: 100%; min-height: 44px; margin-top: 10px; }.profile-card #dash-auth-cancel-btn { margin-top: 6px; min-height: 40px; color: #b4cdd2; }.profile-account #account-action-status { color: #bddbd5; line-height: 1.9; }
