:root {
    color-scheme: dark;
    --ink: #f7fbff;
    --muted: #a9b6c7;
    --panel: rgba(13, 18, 27, 0.82);
    --panel-solid: #111823;
    --line: rgba(255, 255, 255, 0.12);
    --gold: #ffc85a;
    --mint: #55e6ad;
    --coral: #ff6f6f;
    --cyan: #54d9ff;
    --violet: #9b8cff;
    --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
    --blox-yellow: #ffe24a;
    --blox-yellow-deep: #ff9a1a;
    --blox-purple: #a855f7;
    --blox-magenta: #ec4899;
    --blox-sky: #38bdf8;
    --blox-sky-deep: #1d4ed8;
    --font-blox: "Fredoka", ui-rounded, "Nunito", system-ui, sans-serif;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 28% 10%, rgba(84, 217, 255, 0.22), transparent 30rem),
        linear-gradient(145deg, #151018 0%, #17212b 42%, #111114 100%);
    overflow-x: hidden;
}

body.is-game {
    touch-action: manipulation;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    color: var(--gold);
}

.auth-screen {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: max(10px, env(safe-area-inset-top)) clamp(14px, 4vw, 28px) max(14px, env(safe-area-inset-bottom));
    overflow: hidden;
    font-family: var(--font-blox);
    background:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(255, 255, 255, 0.55), transparent 52%),
        linear-gradient(180deg, #4db8ff 0%, #2a8fe6 28%, #6b5cff 72%, #4c1d95 100%);
}

.auth-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.92;
}

#authCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-sunrays {
    position: absolute;
    inset: -20% -30% auto;
    height: 72%;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-conic-gradient(
            from 0deg at 50% 100%,
            rgba(255, 255, 255, 0.14) 0deg 7deg,
            transparent 7deg 22deg
        );
    opacity: 0.55;
    mask-image: radial-gradient(ellipse 55% 70% at 50% 100%, black 0%, transparent 72%);
}

.auth-float-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.auth-coin,
.auth-spark {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 214, 90, 0.65);
}

.auth-coin {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 32% 28%, #fff8c4, #fbbf24 45%, #d97706 100%);
    border: 3px solid #fde68a;
}

.auth-coin::after {
    content: "★";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: #92400e;
    font-weight: 900;
}

.auth-coin.c1 {
    top: 16%;
    left: 8%;
    animation: auth-float 4.2s ease-in-out infinite;
}

.auth-coin.c2 {
    top: 28%;
    right: 10%;
    width: 22px;
    height: 22px;
    animation: auth-float 3.4s ease-in-out 0.6s infinite;
}

.auth-coin.c3 {
    bottom: 42%;
    left: 14%;
    width: 20px;
    height: 20px;
    animation: auth-float 3.8s ease-in-out 1.1s infinite;
}

.auth-spark {
    width: 10px;
    height: 10px;
    background: #fff;
    box-shadow: 0 0 12px #fff, 0 0 22px rgba(125, 211, 252, 0.9);
    border: 0;
}

.auth-spark.s1 {
    top: 22%;
    right: 22%;
    animation: auth-twinkle 2.2s ease-in-out infinite;
}

.auth-spark.s2 {
    top: 38%;
    left: 22%;
    animation: auth-twinkle 2.8s ease-in-out 0.4s infinite;
}

@keyframes auth-float {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }
    50% {
        transform: translateY(-10px) rotate(4deg);
    }
}

@keyframes auth-twinkle {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.85);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.auth-showcase {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    min-height: clamp(220px, 36svh, 420px);
    flex: 1 1 auto;
}

.showcase-logo {
    position: absolute;
    top: clamp(6px, 3vh, 28px);
    left: 50%;
    width: min(440px, 94%);
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-blox);
    line-height: 0.88;
    text-align: center;
}

.showcase-logo-hero .logo-city {
    display: block;
    font-size: clamp(52px, 12vw, 92px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fde047;
    text-shadow:
        0 1px 0 #ca8a04,
        0 2px 0 #a16207,
        0 3px 0 #854d0e,
        0 4px 0 #713f12,
        0 5px 0 #5b340f,
        0 6px 14px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(250, 204, 21, 0.75);
    filter: drop-shadow(0 4px 0 rgba(91, 33, 182, 0.35));
}

.showcase-logo-hero .logo-bloxpix {
    display: block;
    margin-top: 4px;
    font-size: clamp(46px, 11vw, 84px);
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #bae6fd 0%, #38bdf8 45%, #0284c7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 2px #0c4a6e;
    paint-order: stroke fill;
    filter: drop-shadow(0 5px 0 rgba(15, 23, 42, 0.35)) drop-shadow(0 0 20px rgba(56, 189, 248, 0.55));
}

.showcase-mascot {
    position: absolute;
    left: 50%;
    bottom: clamp(8%, 12vh, 18%);
    width: min(100px, 22vw);
    height: min(118px, 26vw);
    transform: translateX(-50%);
    border-radius: 18px;
    background:
        linear-gradient(145deg, #60a5fa 0%, #2563eb 40%, #1d4ed8 100%);
    box-shadow:
        0 18px 0 rgba(15, 23, 42, 0.25),
        0 22px 40px rgba(0, 0, 0, 0.35),
        inset 0 -8px 0 rgba(30, 58, 138, 0.45),
        inset 0 6px 0 rgba(255, 255, 255, 0.22);
}

.showcase-mascot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -22px;
    width: 76%;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #fde047, #eab308);
    box-shadow: 0 4px 0 #a16207;
}

.showcase-mascot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 28%;
    width: 58%;
    height: 18%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background:
        radial-gradient(circle at 28% 45%, #0f172a 2.5px, transparent 2.6px),
        radial-gradient(circle at 72% 45%, #0f172a 2.5px, transparent 2.6px),
        linear-gradient(180deg, #e0f2fe, #bae6fd);
    box-shadow: inset 0 -2px 0 rgba(15, 23, 42, 0.12);
}

.showcase-crane {
    position: absolute;
    top: clamp(120px, 24vh, 200px);
    left: 4%;
    right: 0;
    height: 36px;
    border-top: 8px solid #64748b;
    border-bottom: 4px solid #fbbf24;
    background: repeating-linear-gradient(135deg, transparent 0 28px, rgba(8, 14, 25, 0.55) 28px 34px, transparent 34px 62px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.showcase-crane::before {
    content: "";
    position: absolute;
    right: 16px;
    top: 28px;
    width: 48px;
    height: min(280px, 38vh);
    background:
        repeating-linear-gradient(45deg, transparent 0 32px, #1e293b 32px 38px, transparent 38px 70px),
        linear-gradient(90deg, #0f172a 0 14px, #475569 14px 20px, #0f172a 20px 34px, #475569 34px 40px, #0f172a 40px);
}

.showcase-crane::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 30px;
    width: 3px;
    height: min(120px, 18vh);
    background: #020617;
    box-shadow: 0 min(118px, 17vh) 0 6px #fbbf24;
}

.showcase-block {
    position: absolute;
    width: clamp(72px, 18vw, 120px);
    height: clamp(88px, 22vw, 140px);
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 18%, transparent 72%, rgba(0, 0, 0, 0.22)),
        repeating-linear-gradient(0deg, transparent 0 22px, rgba(8, 14, 24, 0.65) 22px 26px),
        repeating-linear-gradient(90deg, transparent 0 40px, rgba(8, 14, 24, 0.65) 40px 46px),
        linear-gradient(135deg, #475569, #1e293b);
    border-top: 10px solid #e2e8f0;
    border-bottom: 6px solid #f59e0b;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(251, 191, 36, 0.25);
}

.showcase-block::before {
    content: "";
    position: absolute;
    inset: 22px 14px 18px;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.35), transparent 0.3rem),
        repeating-linear-gradient(0deg, #fbbf24 0 14px, transparent 14px 28px),
        repeating-linear-gradient(90deg, transparent 0 22px, #0f172a 22px 26px);
    opacity: 0.92;
}

.block-a {
    left: 58%;
    top: clamp(180px, 52vh, 320px);
    transform: translateX(-50%) rotate(-3deg) scale(0.92);
}

.block-b {
    left: 38%;
    top: clamp(120px, 38vh, 240px);
    transform: translateX(-50%) rotate(6deg) scale(0.88);
}

.showcase-base {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: clamp(6px, 3vh, 20px);
    height: clamp(56px, 10vh, 80px);
    border-radius: 12px;
    background:
        repeating-linear-gradient(115deg, #fbbf24 0 32px, #0f172a 32px 62px),
        linear-gradient(180deg, #64748b, #1e293b);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.auth-panel,
.setup-panel,
.tool-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-panel {
    position: relative;
    z-index: 3;
    width: min(420px, calc(100vw - 24px));
    margin: 0 auto;
    flex: 0 0 auto;
    padding: clamp(18px, 4vw, 26px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    border-radius: 12px;
    overflow: visible;
}

.auth-panel-bloxpix {
    font-family: var(--font-blox);
    background: rgba(17, 28, 62, 0.78);
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(125, 211, 252, 0.4),
        0 0 36px rgba(255, 255, 255, 0.12),
        0 22px 50px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    padding-top: 26px;
}

.auth-panel-bloxpix::before,
.auth-panel-bloxpix::after {
    display: none;
}

.auth-welcome-ribbon {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -52%);
    padding: 10px 22px 12px;
    min-width: min(340px, 88vw);
    text-align: center;
    font-size: clamp(13px, 3.5vw, 15px);
    font-weight: 700;
    color: #fef3c7;
    text-shadow: 0 2px 0 rgba(67, 20, 7, 0.35);
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 45%, #5b21b6 100%);
    border-radius: 10px 10px 12px 12px;
    border: 2px solid rgba(250, 250, 250, 0.35);
    box-shadow:
        0 6px 0 rgba(59, 7, 100, 0.45),
        0 12px 24px rgba(0, 0, 0, 0.25);
    clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0 50%);
}

.auth-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.auth-card-title {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 3px 0 rgba(15, 23, 42, 0.35);
    letter-spacing: 0.02em;
}

.auth-card-star {
    color: #fef9c3;
    font-size: 14px;
    text-shadow: 0 0 12px rgba(254, 249, 195, 0.9);
}

.auth-form-bloxpix {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.auth-form-bloxpix.active {
    display: flex;
}

.auth-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 12px 0 14px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.85),
        0 6px 0 rgba(15, 23, 42, 0.12),
        0 10px 20px rgba(15, 23, 42, 0.12);
}

.auth-field:focus-within {
    border-color: #38bdf8;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.85),
        0 0 0 3px rgba(56, 189, 248, 0.35),
        0 8px 18px rgba(15, 23, 42, 0.14);
}

.auth-field-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #2563eb;
}

.auth-field-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.4;
}

.auth-field input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    padding: 0 8px 0 0;
    background: transparent;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    box-shadow: none;
}

.auth-field input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.auth-field input:focus {
    box-shadow: none;
    outline: none;
}

.auth-toggle-pass {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: transparent;
    color: #2563eb;
    padding: 0;
}

.auth-toggle-pass:hover {
    background: rgba(37, 99, 235, 0.08);
}

.auth-toggle-pass svg {
    width: 22px;
    height: 22px;
}

.auth-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border-radius: 16px;
    font-family: var(--font-blox);
    font-size: clamp(17px, 4.2vw, 20px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 0 rgba(15, 23, 42, 0.2),
        0 14px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.12s ease, filter 0.12s ease;
}

.auth-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.auth-cta:active {
    transform: translateY(2px);
    box-shadow:
        0 4px 0 rgba(15, 23, 42, 0.18),
        0 8px 16px rgba(0, 0, 0, 0.18);
}

.auth-cta-enter {
    background: linear-gradient(180deg, #fde047 0%, #facc15 35%, #f59e0b 100%);
    color: #fff;
    border-color: rgba(255, 250, 220, 0.55);
    text-shadow: 0 2px 0 rgba(146, 64, 14, 0.35);
}

.auth-cta-register {
    background: linear-gradient(180deg, #c084fc 0%, #a855f7 40%, #db2777 100%);
    border-color: rgba(250, 232, 255, 0.45);
}

.auth-notice {
    margin-top: 4px;
}

.auth-panel-bloxpix .legal-line {
    color: rgba(226, 232, 240, 0.78);
    text-align: center;
}

.setup-shell {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.setup-panel {
    min-height: auto;
    border-radius: 8px;
    max-width: 440px;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(15, 32, 55, 0.92), rgba(7, 13, 25, 0.96)),
        radial-gradient(circle at 50% 0%, rgba(84, 217, 255, 0.22), transparent 16rem);
    border: 1px solid rgba(84, 217, 255, 0.28);
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), #fb7b53 48%, var(--cyan));
    color: #101216;
    font-weight: 900;
    letter-spacing: 0;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: clamp(36px, 7vw, 66px);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    font-size: 16px;
    letter-spacing: 0;
}

.muted,
.legal-line {
    color: var(--muted);
}

.legal-line {
    font-size: 12px;
    line-height: 1.45;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
    outline: none;
}

textarea {
    min-height: 78px;
    padding: 12px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(84, 217, 255, 0.18);
}

.auth-panel-bloxpix .auth-field input {
    width: auto;
    min-height: 46px;
    padding: 0 8px 0 0;
    border: 0;
    border-radius: 0;
    color: #0f172a;
    background: transparent;
    box-shadow: none;
}

.auth-panel-bloxpix .auth-field input:focus {
    border-color: transparent;
    box-shadow: none;
}

.primary-btn,
.secondary-btn,
.success-btn,
.ghost-btn,
.drop-btn,
.icon-btn {
    min-height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--ink);
    font-weight: 850;
    letter-spacing: 0;
    transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #ffc85a, #ff7b60);
    color: #17110b;
}

.secondary-btn {
    background: rgba(84, 217, 255, 0.16);
    border: 1px solid rgba(84, 217, 255, 0.35);
}

.success-btn {
    background: linear-gradient(135deg, #55e6ad, #41c6ff);
    color: #071412;
}

.ghost-btn,
.icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.primary-btn:hover,
.secondary-btn:hover,
.success-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.drop-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.icon-btn {
    width: 44px;
    flex: 0 0 44px;
    padding: 0;
}

.drop-btn {
    min-height: 76px;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    color: #090b14;
}

.drop-btn svg {
    width: 34px;
    height: 34px;
}

svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.3;
}

.notice {
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(84, 217, 255, 0.12);
    border: 1px solid rgba(84, 217, 255, 0.28);
    color: var(--ink);
    font-size: 14px;
}

.notice.error {
    background: rgba(255, 111, 111, 0.13);
    border-color: rgba(255, 111, 111, 0.38);
}

.notice.success {
    background: rgba(85, 230, 173, 0.13);
    border-color: rgba(85, 230, 173, 0.38);
}

.boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(70, 142, 201, 0.82), rgba(20, 43, 68, 0.9)),
        #77b6ed;
}

.boot-card {
    width: min(300px, calc(100vw - 48px));
    min-height: 190px;
    display: grid;
    place-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 8px;
    background: rgba(14, 19, 28, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.boot-card strong {
    color: #fff4b8;
    font-size: 28px;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.26);
}

.boot-track {
    width: 100%;
    height: 18px;
    border-radius: 8px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.boot-track span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: 6px;
    background: linear-gradient(90deg, #ffe66e, #ff8f3d, #54d9ff);
    box-shadow: 0 0 22px rgba(255, 230, 110, 0.4);
    transition: width 0.12s linear;
}

.app-shell {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr;
}

.topbar {
    height: 76px;
    padding: 12px clamp(12px, 3vw, 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(14, 17, 24, 0.76);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand-lockup {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-lockup div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.brand-lockup strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-lockup span:not(.brand-mark) {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance-pill {
    min-width: 132px;
    min-height: 52px;
    border-radius: 8px;
    padding: 8px 14px;
    display: grid;
    align-content: center;
    background: rgba(255, 200, 90, 0.13);
    border: 1px solid rgba(255, 200, 90, 0.32);
}

.balance-pill span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.balance-pill strong {
    color: var(--gold);
}

.top-actions {
    display: flex;
    gap: 8px;
}

.game-layout {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: clamp(10px, 2vw, 22px);
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 410px);
    gap: clamp(12px, 2vw, 22px);
    align-items: start;
}

.play-surface {
    position: relative;
    min-height: calc(100svh - 112px);
    overflow: hidden;
    border-radius: 8px;
    background: #141820;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

#gameCanvas {
    width: 100%;
    height: calc(100svh - 112px);
    min-height: 620px;
    display: block;
    touch-action: manipulation;
}

.hud-strip {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    pointer-events: none;
}

.hud-strip div {
    min-width: 0;
    border-radius: 8px;
    padding: 10px;
    background: rgba(5, 8, 13, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
}

.hud-strip span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.hud-strip strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-toast {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    max-width: min(92%, 520px);
    z-index: 6;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(7, 12, 17, 0.78);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    text-align: center;
}

.control-dock {
    display: grid;
    gap: 12px;
}

.tool-panel {
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 13px;
}

.bet-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 10px;
    align-items: end;
}

.round-actions {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
}

.wallet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.deposit-gen-overlay {
    margin-top: 8px;
}

.deposit-gen-card {
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(2, 12, 28, 0.78);
    border: 1px solid rgba(84, 217, 255, 0.32);
    display: grid;
    place-items: center;
    gap: 14px;
    box-shadow:
        inset 0 0 28px rgba(84, 217, 255, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.28);
}

.deposit-gen-qr-skel {
    width: 124px;
    height: 124px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e3a5f, #0f172a 55%, #172554);
    position: relative;
    overflow: hidden;
    animation: deposit-qr-pulse 1.25s ease-in-out infinite;
}

.deposit-gen-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 32%;
    background: linear-gradient(
        transparent,
        rgba(125, 211, 252, 0.18),
        rgba(56, 189, 248, 0.22),
        transparent
    );
    animation: deposit-scan 1.85s linear infinite;
    pointer-events: none;
}

.deposit-gen-msg {
    margin: 0;
    font-weight: 850;
    font-size: 14px;
    color: #e0f2fe;
    text-align: center;
    line-height: 1.35;
    min-height: 2.6em;
}

.deposit-gen-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.deposit-gen-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
    animation: deposit-dot 0.9s ease-in-out infinite;
}

.deposit-gen-dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.deposit-gen-dots span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes deposit-qr-pulse {
    0%,
    100% {
        opacity: 0.88;
        filter: brightness(0.95);
    }
    50% {
        opacity: 1;
        filter: brightness(1.08);
    }
}

@keyframes deposit-scan {
    0% {
        top: -40%;
    }
    100% {
        top: 110%;
    }
}

@keyframes deposit-dot {
    0%,
    80%,
    100% {
        transform: scale(0.55);
        opacity: 0.35;
    }
    40% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.pix-box {
    display: grid;
    gap: 10px;
}

.qr-box {
    width: 168px;
    min-height: 168px;
    display: grid;
    place-items: center;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.qr-box img,
.qr-box canvas {
    max-width: 148px;
    max-height: 148px;
}

.qr-building {
    margin: 0;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
}

.pix-deposit-modal {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pix-deposit-modal-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.58);
    cursor: pointer;
}

.pix-deposit-modal-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    max-height: min(92vh, 580px);
    overflow: auto;
    border-radius: 16px;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pix-deposit-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pix-deposit-modal-head h2 {
    margin: 0;
    font-size: 18px;
    font-family: var(--font-blox);
    color: var(--gold);
}

.pix-deposit-modal-loading {
    margin: 0;
}

.pix-deposit-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pix-deposit-modal-body .qr-box {
    width: 180px;
    min-height: 180px;
}

.pix-deposit-modal-body .qr-box img,
.pix-deposit-modal-body .qr-box canvas {
    max-width: 160px;
    max-height: 160px;
}

.pix-modal-code {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font-size: 11px;
    line-height: 1.35;
    font-family: ui-monospace, monospace;
    resize: vertical;
    min-height: 80px;
}

.pix-deposit-modal-error {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 111, 111, 0.45);
    background: rgba(40, 12, 12, 0.55);
}

.pix-deposit-error-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #fecaca;
}

.copy-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
}

.history-list {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
}

.history-item {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-item strong,
.history-item span {
    white-space: nowrap;
}

.history-item small {
    color: var(--muted);
}

.positive {
    color: var(--mint);
}

.negative {
    color: var(--coral);
}

@media (max-width: 980px) {
    .auth-screen {
        padding: max(8px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
    }

    .auth-visual {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .auth-panel {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-showcase {
        min-height: clamp(200px, 34svh, 400px);
        opacity: 0.9;
    }

    .showcase-crane {
        top: clamp(100px, 22svh, 180px);
        left: -6%;
        right: -6%;
    }

    .block-a {
        top: clamp(160px, 48svh, 300px);
    }

    .block-b {
        top: clamp(100px, 34svh, 220px);
    }

    .showcase-base {
        left: 4%;
        right: 4%;
    }

    .game-layout {
        grid-template-columns: 1fr;
        padding-bottom: 120px;
    }

    .play-surface {
        min-height: 62svh;
    }

    #gameCanvas {
        height: 62svh;
        min-height: 480px;
    }

    .control-dock {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar {
        height: auto;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .balance-pill {
        grid-column: 1 / -1;
        min-height: 44px;
    }

    .top-actions {
        justify-content: end;
    }

    .game-layout {
        padding: 8px;
        gap: 10px;
    }

    .play-surface {
        min-height: 58svh;
    }

    #gameCanvas {
        height: 58svh;
        min-height: 420px;
    }

    .hud-strip {
        left: 8px;
        right: 8px;
        top: 8px;
        gap: 6px;
    }

    .hud-strip div {
        padding: 8px 6px;
    }

    .hud-strip strong {
        font-size: 14px;
    }

    .bet-row,
    .round-actions {
        grid-template-columns: 1fr;
    }

    .drop-btn {
        min-height: 62px;
    }

    .auth-panel {
        width: min(100%, 400px);
        padding: clamp(16px, 4vw, 22px);
    }

    .auth-panel-bloxpix {
        padding-top: 24px;
    }
}

body.is-game {
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    background: #11151b;
}

.game-only.app-shell {
    min-height: 100svh;
    display: block;
}

.menu-fab {
    position: fixed;
    top: 50%;
    left: max(12px, env(safe-area-inset-left));
    z-index: 27;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #16130b;
    background: linear-gradient(135deg, #ffe07a, #ff9a4d);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
}

.menu-fab:hover {
    transform: translateY(-50%) translateX(1px);
}

.menu-fab svg {
    width: 24px;
    height: 24px;
}

.menu-fab[hidden] {
    display: none !important;
}

.game-stage {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.game-stage .play-surface {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #020b1d;
    display: block;
    overflow: hidden;
}

.game-stage #gameCanvas {
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    image-rendering: auto;
    cursor: pointer;
    touch-action: manipulation;
}

.game-stage .hud-strip {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    right: auto;
    width: min(154px, calc(100vw - 24px));
    transform: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    grid-template-columns: 1fr;
}

.game-stage .hud-strip div {
    padding: 7px 9px;
    background: rgba(28, 45, 63, 0.56);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.game-stage .hud-strip strong {
    color: #fff8d4;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.26);
}

.bet-stepper {
    min-width: 0;
    display: grid;
    gap: 4px;
    align-content: end;
}

.bet-stepper-label {
    display: block;
    font-size: 11px;
    font-weight: 850;
    color: #fff3bd;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
}

.bet-stepper-inner {
    display: flex;
    align-items: stretch;
    gap: 5px;
    min-height: 42px;
}

.bet-step-btn {
    flex: 0 0 auto;
    width: 40px;
    min-height: 42px;
    padding: 0;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-blox, ui-sans-serif, system-ui, sans-serif);
    color: #0f172a;
    background: linear-gradient(180deg, #e2e8f0, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 0 rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.1s ease, filter 0.1s ease;
}

.bet-step-btn:hover {
    filter: brightness(1.06);
}

.bet-step-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bet-stepper-inner input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 42px;
    border-radius: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff8e7;
    background: rgba(2, 8, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
    appearance: textfield;
    -moz-appearance: textfield;
}

.bet-stepper-inner input::-webkit-outer-spin-button,
.bet-stepper-inner input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bet-stepper-inner input:focus {
    outline: none;
    border-color: rgba(250, 204, 21, 0.55);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.round-console {
    position: absolute;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 8;
    width: min(560px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: minmax(118px, 168px) minmax(104px, 132px) minmax(124px, 170px);
    align-items: end;
    gap: 8px;
    transform: translateX(-50%);
    padding: 10px;
    border-radius: 8px;
    background: rgba(10, 17, 24, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
}

.round-console .bet-stepper {
    min-width: 0;
}

.round-console .primary-btn,
.round-console .success-btn {
    min-height: 42px;
}

.game-tutorial-layer {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
}

.game-tutorial-ring {
    position: fixed;
    z-index: 13;
    transform-origin: center center;
    border-radius: 18px;
    border: 3px solid rgba(125, 250, 255, 0.95);
    box-shadow:
        0 0 0 4px rgba(84, 217, 255, 0.22),
        0 0 36px rgba(84, 217, 255, 0.55),
        0 0 90px rgba(84, 217, 255, 0.18);
    pointer-events: none;
    animation: game-tutorial-ring-pulse 1.35s ease-in-out infinite;
}

@keyframes game-tutorial-ring-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.08);
    }
}

.game-tutorial-card {
    position: absolute;
    left: 50%;
    bottom: max(118px, calc(env(safe-area-inset-bottom) + 112px));
    transform: translateX(-50%);
    width: min(380px, calc(100vw - 20px));
    padding: 16px 18px 14px;
    border-radius: 18px;
    pointer-events: auto;
    z-index: 14;
    background: linear-gradient(165deg, rgba(12, 28, 48, 0.96), rgba(6, 12, 22, 0.98));
    border: 1px solid rgba(84, 217, 255, 0.38);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 22px 60px rgba(0, 0, 0, 0.55);
    display: grid;
    gap: 10px;
}

.game-tutorial-card.game-tutorial-card--top {
    bottom: auto;
    top: max(12px, env(safe-area-inset-top));
}

.game-tutorial-cashout-help {
    margin: 0;
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    border-radius: 12px;
}

.game-tutorial-badge {
    justify-self: start;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f172a;
    background: linear-gradient(90deg, #7efcff, #38bdf8);
    padding: 4px 10px;
    border-radius: 999px;
}

.game-tutorial-h3 {
    margin: 0;
    font-family: var(--font-blox, ui-sans-serif, system-ui, sans-serif);
    font-size: 20px;
    color: var(--gold);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.game-tutorial-msg {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #e8f1ff;
}

.game-tutorial-card .primary-btn,
.game-tutorial-card .secondary-btn,
.game-tutorial-card .success-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.game-tutorial-card .primary-btn svg,
.game-tutorial-card .secondary-btn svg,
.game-tutorial-card .success-btn svg {
    width: 20px;
    height: 20px;
}

.cashout-stack {
    display: grid;
    gap: 4px;
}

.cashout-stack > span {
    min-height: 18px;
    color: #fff3bd;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.cashout-stack strong {
    color: #ffe16a;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(4, 8, 12, 0.52);
    backdrop-filter: blur(3px);
}

.menu-backdrop[hidden] {
    display: none;
}

.player-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 26;
    width: min(390px, 92vw);
    height: 100svh;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(10, 24, 44, 0.97), rgba(7, 12, 22, 0.98)),
        radial-gradient(circle at 20% 0%, rgba(84, 217, 255, 0.22), transparent 18rem);
    border-right: 1px solid rgba(84, 217, 255, 0.25);
    box-shadow: 26px 0 70px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(20px);
    transform: translateX(-104%);
    transition: transform 0.22s ease;
}

.player-menu.open {
    transform: translateX(0);
}

.menu-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-head div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.menu-head strong,
.menu-head span:not(.brand-mark) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-head span:not(.brand-mark) {
    color: var(--muted);
    font-size: 12px;
}

.menu-wallet-card {
    position: relative;
    min-height: 102px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 16px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 224, 115, 0.95), rgba(255, 151, 58, 0.92) 50%, rgba(84, 217, 255, 0.92));
    color: #09121b;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.menu-wallet-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -40px auto;
    width: 150px;
    height: 150px;
    border: 18px solid rgba(7, 16, 29, 0.16);
    border-radius: 50%;
}

.menu-wallet-card span,
.menu-wallet-card small {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.menu-wallet-card strong {
    position: relative;
    z-index: 1;
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
}

.menu-wallet-card small {
    text-transform: none;
    opacity: 0.72;
}

.menu-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border-radius: 8px;
    background: rgba(2, 8, 18, 0.48);
    border: 1px solid rgba(84, 217, 255, 0.12);
}

.menu-tab {
    min-width: 0;
    min-height: 58px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    gap: 4px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 850;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.menu-tab svg {
    width: 20px;
    height: 20px;
}

.menu-tab.active {
    color: #17110b;
    background: linear-gradient(135deg, #ffe073, #ffac54);
    border-color: rgba(255, 224, 115, 0.7);
    box-shadow: 0 8px 18px rgba(255, 172, 84, 0.18);
}

.menu-scroll {
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.menu-panel {
    display: none;
    gap: 13px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.menu-panel.active {
    display: grid;
}

.menu-panel h2 {
    font-size: 19px;
}

.menu-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff3bd;
}

.menu-panel-title svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.player-menu label {
    color: #d2deea;
}

.player-menu input,
.player-menu select,
.player-menu textarea {
    background: rgba(2, 8, 18, 0.54);
    border-color: rgba(84, 217, 255, 0.18);
}

.player-menu .history-item {
    background: rgba(2, 8, 18, 0.42);
    border-color: rgba(84, 217, 255, 0.12);
}

.menu-panel .ghost-btn,
.menu-panel .secondary-btn {
    width: 100%;
}

.game-toast {
    bottom: max(98px, calc(env(safe-area-inset-bottom) + 98px));
}

@media (min-width: 900px) {
    .game-stage .hud-strip {
        width: 160px;
        left: max(16px, env(safe-area-inset-left));
        right: auto;
        transform: none;
    }
}

@media (max-width: 640px) {
    .menu-fab {
        width: 48px;
        height: 48px;
    }

    .game-stage .hud-strip {
        width: 116px;
        gap: 5px;
        left: max(10px, env(safe-area-inset-left));
        top: max(10px, env(safe-area-inset-top));
    }

    .game-stage .hud-strip div {
        padding: 7px 6px;
    }

    .round-console .bet-stepper-label {
        font-size: 10px;
    }

    .bet-step-btn {
        width: 36px;
        min-height: 40px;
        font-size: 20px;
    }

    .bet-stepper-inner {
        min-height: 40px;
    }

    .bet-stepper-inner input {
        min-height: 40px;
        font-size: 14px;
    }

    .round-console {
        grid-template-columns: minmax(86px, 1fr) 46px minmax(92px, 1fr);
        gap: 6px;
        padding: 8px;
    }

    .round-console .primary-btn span {
        display: none;
    }

    .round-console .primary-btn {
        min-width: 46px;
        padding: 0;
    }

    .player-menu {
        width: min(368px, 94vw);
    }

    .menu-tabs {
        gap: 5px;
    }

    .menu-tab {
        min-height: 54px;
        font-size: 10px;
    }
}
