:root {
    color-scheme: dark;
    --bg: #101114;
    --panel: #181a20;
    --panel-strong: #20232b;
    --line: #2b2f3a;
    --text: #f6f7fb;
    --muted: #9ca3af;
    --red: #e33245;
    --green: #34c759;
    --yellow: #f7bd31;
    --blue: #54a7ff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(227, 50, 69, 0.16), transparent 34rem),
        linear-gradient(135deg, #101114 0%, #15161b 52%, #111318 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
    min-width: 0;
}

button {
    cursor: pointer;
}

.sound-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(24, 26, 32, 0.92);
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.sound-toggle.is-off {
    color: var(--muted);
}

.app-shell {
    width: min(1320px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    border-bottom: 1px solid var(--line);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.top-actions a[aria-current="page"] {
    border-color: rgba(52, 199, 89, 0.5);
    color: var(--green);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.wallet {
    min-width: 172px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    text-align: right;
}

.wallet span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.wallet strong {
    display: block;
    margin-top: 4px;
    color: var(--green);
    font-size: 20px;
}

.game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    padding: 20px 0 32px;
}

.stage-panel,
.controls-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.92);
}

.stage-panel {
    min-width: 0;
    overflow: hidden;
}

.round-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.round-strip strong {
    color: var(--yellow);
}

.stage-board {
    position: relative;
    height: clamp(360px, 64vh, 680px);
    overflow: hidden;
    background:
        linear-gradient(rgba(16, 17, 20, 0.82), rgba(16, 17, 20, 0.7)),
        url("../img/play_desktop_bg.svg") center / cover no-repeat;
}

.stage-board::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(transparent, rgba(227, 50, 69, 0.16));
    pointer-events: none;
}

.rotateimage {
    position: absolute;
    left: -35%;
    bottom: -80%;
    width: 96%;
    aspect-ratio: 1;
    background: url("../img/bg-rotate-old.svg") center / contain no-repeat;
    opacity: 0.24;
    transform-origin: center;
}

.rotateimage.is-flying {
    animation: spin 12s linear infinite;
}

#flightCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.multiplier {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: clamp(52px, 10vw, 132px);
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.42);
    pointer-events: none;
}

.phase-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.78);
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.crash-message {
    position: absolute;
    left: 50%;
    top: 62%;
    display: none;
    transform: translateX(-50%);
    padding: 10px 14px;
    border: 1px solid rgba(227, 50, 69, 0.48);
    border-radius: 8px;
    background: rgba(32, 35, 43, 0.92);
    color: #ffd7dc;
    font-weight: 700;
}

.crash-message.show {
    display: block;
}

.controls-panel {
    padding: 16px;
}

.bet-form {
    display: grid;
    gap: 14px;
}

.bet-form label,
.panel-title h2 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.amount-control {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
}

.amount-control button,
.quick-values button,
.panel-title button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    color: var(--text);
}

.amount-control button {
    min-height: 48px;
    font-size: 22px;
    font-weight: 800;
}

.amount-control input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.quick-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.quick-values button {
    min-height: 38px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.primary-action,
.cashout-action {
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.primary-action {
    background: linear-gradient(180deg, #39d96d, #1b9f43);
}

.cashout-action {
    background: linear-gradient(180deg, #f7345b, #d71942);
}

.cashout-action.is-live {
    background: linear-gradient(180deg, #ff3f67, #ef214d);
    animation: liveCashout 900ms ease-in-out infinite alternate;
}

.cashout-action.is-locked {
    background: linear-gradient(180deg, #35404e, #252c36);
}

.primary-action:disabled,
.cashout-action:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.52;
}

.primary-action:not(:disabled),
.cashout-action:not(:disabled) {
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.08), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.message {
    min-height: 42px;
    margin: 14px 0;
    color: var(--muted);
    line-height: 1.35;
}

.message.good {
    color: var(--green);
}

.message.bad {
    color: #ff8d9a;
}

.history-panel {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-title button,
.mini-link {
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.history-list {
    display: grid;
    gap: 8px;
}

.history-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #14161b;
}

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

.history-item strong {
    color: var(--text);
}

.history-item .won {
    color: var(--green);
}

.history-item .lost {
    color: var(--red);
}

.empty {
    margin: 0;
    color: var(--muted);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-hero {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px);
    align-items: center;
    gap: 28px;
    padding: 28px 0;
}

.login-showcase {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(rgba(16, 17, 20, 0.72), rgba(16, 17, 20, 0.9)),
        url("../img/play_desktop_bg.svg") center / cover no-repeat;
    padding: 26px;
}

.login-flight {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(9, 12, 18, 0.68);
}

.login-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 70px 56px;
}

.login-curve {
    position: absolute;
    left: 8%;
    bottom: 16%;
    width: 58%;
    height: 38%;
    border-bottom: 6px solid var(--red);
    border-right: 6px solid var(--red);
    border-radius: 0 0 92% 0;
    transform: skew(-16deg) rotate(-8deg);
    filter: drop-shadow(0 0 16px rgba(227, 50, 69, 0.35));
}

.login-plane {
    position: absolute;
    right: 9%;
    top: 30%;
    width: min(42vw, 280px);
    animation: loginPlane 3s ease-in-out infinite alternate;
}

.login-flight strong {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    color: var(--text);
    font-size: clamp(54px, 8vw, 112px);
    font-weight: 900;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.login-copy {
    max-width: 620px;
}

.login-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 0.98;
}

.login-copy p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}

.login-panel {
    width: 100%;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.auth-panel,
.profile-card {
    width: min(100%, 460px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.96);
    padding: 22px;
}

.auth-brand {
    margin-bottom: 22px;
}

.auth-panel h1,
.profile-card h1,
.profile-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.auth-panel p,
.profile-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.45;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--text);
    padding: 0 12px;
}

.auth-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--text);
    padding: 0 12px;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 800;
}

.checkbox-row input {
    width: 16px;
    min-height: 16px;
}

.auth-form .primary-action {
    margin-top: 8px;
}

.auth-link {
    margin-top: 18px !important;
    text-align: center;
}

.auth-link a {
    color: var(--green);
    font-weight: 800;
}

.form-alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.35;
}

.form-alert.good {
    border: 1px solid rgba(52, 199, 89, 0.35);
    background: rgba(52, 199, 89, 0.12);
    color: var(--green);
}

.form-alert.bad {
    border: 1px solid rgba(227, 50, 69, 0.42);
    background: rgba(227, 50, 69, 0.12);
    color: #ff9aa5;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 20px;
    padding: 20px 0 32px;
}

.wallet-layout,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 20px 0 32px;
}

.wallet-layout > .profile-card {
    min-width: 0;
}

.wallet-history,
.admin-grid > .profile-card:last-child {
    grid-column: 1 / -1;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    color: var(--text);
}

.data-table th,
.data-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.status-pill.paid {
    background: rgba(52, 199, 89, 0.14);
    color: var(--green);
}

.status-pill.pending {
    background: rgba(247, 189, 49, 0.14);
    color: var(--yellow);
}

.status-pill.failed,
.status-pill.cancelled {
    background: rgba(227, 50, 69, 0.14);
    color: #ff9aa5;
}

.qr-box {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.qr-box textarea {
    width: 100%;
    min-height: 120px;
    max-width: 100%;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--text);
    padding: 10px;
    overflow-wrap: anywhere;
}

.section-title {
    margin-top: 24px !important;
}

.admin-shell {
    max-width: 1440px;
}

.admin-alert {
    margin-top: 14px;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding-top: 18px;
}

.admin-metrics div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.92);
}

.admin-metrics span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-metrics strong {
    display: block;
    margin-top: 7px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 18px;
}

.admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.admin-form-grid label {
    display: grid;
    gap: 6px;
}

.admin-wide,
.admin-wide-card {
    grid-column: 1 / -1;
}

.admin-inline-action {
    margin-top: 12px;
}

.admin-inline-action button {
    width: 100%;
}

.admin-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 8px;
    margin: 12px 0;
}

.admin-search input {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--text);
    padding: 0 12px;
}

.admin-search button {
    min-height: 44px;
    font-size: 14px;
}

.admin-user-list {
    display: grid;
    gap: 10px;
    max-height: 760px;
    overflow: auto;
    padding-right: 2px;
}

.admin-user-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #14161b;
    overflow: hidden;
}

.admin-user-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
}

.admin-user-card summary span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.admin-user-card summary strong {
    color: var(--green);
}

.admin-user-card summary em {
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.admin-user-card .auth-form {
    padding: 0 12px 12px;
}

.admin-actions-row {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}

.admin-actions-row form {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 8px;
}

.admin-actions-row input,
.admin-actions-row button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    color: var(--text);
    padding: 0 10px;
}

.admin-actions-row button {
    font-weight: 900;
}

.profile-card {
    width: 100%;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.profile-stats div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #14161b;
}

.profile-stats dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-stats dd {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes liveCashout {
    from {
        box-shadow: 0 0 0 3px rgba(255, 63, 103, 0.12), 0 10px 28px rgba(0, 0, 0, 0.22);
    }

    to {
        box-shadow: 0 0 0 5px rgba(255, 63, 103, 0.22), 0 14px 34px rgba(239, 33, 77, 0.28);
    }
}

@keyframes loginPlane {
    from {
        transform: translate(-18px, 22px) rotate(-2deg);
    }

    to {
        transform: translate(18px, -18px) rotate(4deg);
    }
}

@media (max-width: 920px) {
    .login-hero {
        width: min(100% - 20px, 680px);
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px 0;
    }

    .login-showcase {
        min-height: auto;
        padding: 18px;
    }

    .login-flight {
        min-height: 280px;
        margin: 10px 0 14px;
    }

    .login-copy h1 {
        font-size: 34px;
    }

    .login-copy p {
        font-size: 15px;
    }

    .app-shell {
        width: min(100% - 12px, 760px);
        padding-top: 6px;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        min-height: auto;
        padding-bottom: 8px;
    }

    .topbar-right {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .top-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet {
        width: 100%;
        min-width: 0;
        padding: 7px 10px;
        text-align: left;
    }

    .wallet span {
        font-size: 10px;
    }

    .wallet strong {
        margin-top: 2px;
        font-size: 16px;
    }

    .game-layout {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 8px;
    }

    .controls-panel {
        order: 2;
        padding: 10px;
    }

    .stage-panel {
        order: 1;
    }

    .stage-board {
        height: min(46vh, 390px);
        min-height: 250px;
    }

    .round-strip {
        padding: 9px 12px;
        font-size: 13px;
    }

    .bet-form {
        gap: 8px;
    }

    .bet-form label {
        font-size: 13px;
    }

    .amount-control {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 6px;
    }

    .amount-control button,
    .amount-control input {
        min-height: 40px;
    }

    .amount-control input {
        font-size: 18px;
    }

    .quick-values {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .quick-values button {
        min-height: 32px;
        font-size: 11px;
    }

    .primary-action,
    .cashout-action {
        min-height: 44px;
        font-size: 15px;
        white-space: normal;
        line-height: 1.15;
    }

    .message {
        min-height: auto;
        margin: 8px 0;
        font-size: 12px;
    }

    .history-panel {
        padding-top: 8px;
    }

    .history-list {
        max-height: 96px;
        overflow: auto;
        gap: 6px;
    }

    .history-item {
        min-height: 36px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 14px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .wallet-layout,
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 14px;
    }

    .wallet-layout {
        padding-bottom: 20px;
    }

    .wallet-layout .profile-card {
        padding: 16px;
    }

    .wallet-layout .profile-card h1,
    .wallet-layout .profile-card h2 {
        font-size: 22px;
    }

    .wallet-layout .auth-form {
        gap: 8px;
    }

    .wallet-layout .auth-form input {
        min-height: 42px;
        font-size: 16px;
    }

    .wallet-layout .auth-form .primary-action,
    .wallet-layout .cashout-action {
        min-height: 44px;
        margin-top: 4px;
        font-size: 14px;
    }

    .wallet-history .data-table {
        min-width: 460px;
    }

    .wallet-history .data-table th,
    .wallet-history .data-table td {
        padding: 8px;
        font-size: 12px;
    }

    .qr-box {
        margin-top: 10px;
    }

    .qr-box textarea {
        min-height: 96px;
        max-height: 140px;
        font-size: 12px;
        line-height: 1.35;
    }

    .admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .login-hero {
        width: min(100% - 12px, 680px);
    }

    .login-showcase {
        padding: 14px;
    }

    .login-flight {
        min-height: 220px;
    }

    .login-plane {
        width: 170px;
        right: 2%;
        top: 34%;
    }

    .login-flight strong {
        font-size: 48px;
    }

    .login-copy h1 {
        font-size: 28px;
    }

    .login-copy p {
        font-size: 13px;
    }

    .app-shell {
        width: min(100% - 12px, 760px);
    }

    .brand span {
        font-size: 16px;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .top-actions a {
        min-height: 32px;
        padding: 0 8px;
        font-size: 11px;
    }

    .game-layout {
        gap: 7px;
    }

    .round-strip {
        align-items: center;
        flex-direction: row;
        padding: 7px 9px;
        font-size: 11px;
    }

    .stage-board {
        height: 42vh;
        min-height: 220px;
    }

    .multiplier {
        font-size: clamp(38px, 16vw, 68px);
    }

    .phase-badge {
        top: 10px;
        left: 10px;
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

    .auth-panel,
    .profile-card {
        padding: 14px;
    }

    .wallet-layout {
        gap: 10px;
        padding-top: 10px;
    }

    .wallet-layout .profile-card {
        padding: 12px;
    }

    .wallet-layout .profile-card h1,
    .wallet-layout .profile-card h2 {
        margin-bottom: 6px;
        font-size: 19px;
    }

    .wallet-layout .auth-form {
        gap: 7px;
    }

    .wallet-layout .auth-form label {
        font-size: 12px;
    }

    .wallet-layout .auth-form input {
        min-height: 40px;
        padding: 0 10px;
    }

    .wallet-layout .auth-form .primary-action,
    .wallet-layout .cashout-action {
        min-height: 42px;
        font-size: 13px;
    }

    .wallet-history .table-wrap {
        margin: 0 -4px;
        padding: 0 4px 4px;
    }

    .wallet-history .data-table {
        min-width: 390px;
    }

    .wallet-history .data-table th,
    .wallet-history .data-table td {
        padding: 7px 6px;
        font-size: 11px;
    }

    .wallet-history .status-pill {
        min-height: 22px;
        padding: 0 6px;
        font-size: 10px;
    }

    .qr-box textarea {
        min-height: 82px;
        max-height: 118px;
        padding: 8px;
    }

    .controls-panel {
        padding: 8px;
    }

    .sound-toggle {
        right: 10px;
        bottom: 10px;
        min-height: 34px;
        padding: 0 10px;
        font-size: 11px;
    }

    .panel-title {
        margin-bottom: 6px;
    }

    .panel-title h2,
    .mini-link {
        font-size: 11px;
    }

    .admin-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-search {
        grid-template-columns: 1fr;
    }

    .admin-user-card summary {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-actions-row form {
        grid-template-columns: 1fr;
    }

    .history-item {
        grid-template-columns: 1fr auto;
    }

    .history-item small {
        display: none;
    }

    .primary-action,
    .cashout-action {
        min-height: 50px;
        font-size: 14px;
    }
}
