* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #000;
    color: #fff;
}

body {
    font-family: Arial, sans-serif;
}

:root {
    --theme-primary: #ff2bd6;
    --theme-secondary: #00e5ff;
    --theme-accent: #ffeb00;
}

/* APP */
.app {
    width: 100%;
    max-width: 480px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 6px calc(6px + env(safe-area-inset-bottom));
}

/* HOME ORDER */
#home {
    display: flex;
    flex-direction: column;
}

.header { order: 1; }
.top-status-card { order: 2; }
.install-card { order: 3; }
.global-ad-banner { order: 4; }
.quick-action-row { order: 5; }
.quick-action-msg { order: 6; }
.action-grid { order: 7; }
.game-row { order: 8; }
.social-actions { order: 9; }
.price-card { order: 10; }
.superadmin-slot { order: 11; }

/* HEADER */
.header {
    position: relative;
    padding: 2px 4px 4px;
}

.brand-lockup {
    width: min(325px, calc(100% - 92px));
    min-height: 88px;
    margin: 18px auto 4px;
    padding: 12px 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.025);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.logo {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: block;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
    text-align: left;
}

.brand-copy strong {
    color: #fff;
    font-size: 24px;
    line-height: 1.02;
    font-weight: 900;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.brand-copy span {
    color: var(--theme-accent);
    font-size: 17px;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

/* HEADER ICONS */
.header-rail {
    position: absolute;
    top: 3px;
    right: 4px;
    display: flex;
    gap: 6px;
    z-index: 20;
}

.header-icon {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    border: 1px solid var(--theme-secondary);
    background: rgba(0, 0, 0, 0.92);
    color: var(--theme-accent);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 8px rgba(0, 229, 255, 0.75),
        inset 0 0 8px rgba(255, 43, 214, 0.35);
    cursor: pointer;
}

.header-icon:active {
    transform: scale(0.94);
}

/* WALLET - COMPACT TOP BAR */
.wallet-card {
    margin: 0 auto 2px;
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.75);
    background: rgba(0, 0, 0, 0.7);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.18);
}

.wallet-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    font-size: 11px;
    font-weight: 900;
}

.wallet-row span {
    color: #fff;
}

.wallet-row strong {
    color: var(--theme-accent);
    white-space: nowrap;
}

.wallet-connect-btn {
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 43, 214, 0.9);
    background: rgba(255, 43, 214, 0.16);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 43, 214, 0.35);
}

.wallet-msg {
    grid-column: 1 / -1;
    min-height: 11px;
    margin-top: -1px;
    font-size: 10px;
    font-weight: 800;
    color: #00e5ff;
    text-align: center;
}

/* PLAYER */
.player-card {
    margin: 0 auto 3px;
    width: 100%;
}

.points-pill {
    margin: 0 auto 2px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg,#ff2bd6,#7b3cff,#00e5ff);
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 900;
}

.nickname-display-card {
    text-align: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--theme-secondary);
    background: rgba(0,0,0,.55);
    font-size: 11px;
    font-weight: 900;
}

/* THEME ACTIONS */
.action-grid,
.game-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 4px;
}

.theme-action,
.tile-button,
.tile-link {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 64px;
    padding: 10px;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        radial-gradient(circle at 10% 0%, rgba(255,43,214,0.2), transparent 42%),
        radial-gradient(circle at 90% 100%, rgba(0,229,255,0.16), transparent 48%),
        rgba(255,255,255,0.045);
    box-shadow: 0 0 12px rgba(0,0,0,0.22);
}

.theme-action.primary {
    border-color: rgba(255,255,255,0.18);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 26%, transparent), color-mix(in srgb, var(--theme-secondary) 18%, transparent)),
        rgba(255,255,255,0.055);
}

.custom-home-action {
    border-color: rgba(255,235,0,0.2);
}

.custom-home-action[hidden] {
    display: none;
}

.theme-action::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.action-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060606;
    background: linear-gradient(135deg,var(--theme-accent),var(--theme-secondary));
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.action-copy {
    min-width: 0;
}

.action-copy strong,
.action-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-copy strong {
    font-size: 13px;
    font-weight: 900;
}

.action-copy small {
    margin-top: 3px;
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    font-weight: 800;
}

.theme-action:active,
.tile-button:active,
.tile-link:active {
    transform: scale(0.97);
}

body[data-theme-preset="clean"] .theme-action,
body[data-theme-preset="clean"] .quick-action {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.14);
    box-shadow: none;
}

body[data-theme-preset="clean"] .action-icon {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--theme-secondary);
}

body[data-theme-preset="glass"] .theme-action,
body[data-theme-preset="glass"] .quick-action {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.035)),
        rgba(0,0,0,0.38);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

body[data-theme-preset="glass"] .action-icon {
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
}

body[data-theme-preset="arcade"] .theme-action,
body[data-theme-preset="arcade"] .quick-action {
    border: 2px solid var(--theme-accent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 34%, black), color-mix(in srgb, var(--theme-secondary) 24%, black));
    box-shadow: 3px 3px 0 var(--theme-accent);
}

body[data-theme-preset="arcade"] .action-icon {
    border-radius: 8px;
    color: #000;
    background: var(--theme-accent);
}

/* SOCIAL */
.social-actions {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    max-width: 200px;
    margin: 6px auto 0;
}

.social-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 999px;
    color: #050505;
    background: var(--theme-secondary);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.28);
}

.social-action span {
    line-height: 1;
}

.global-ad-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 2px 0 5px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(135deg, rgba(255,43,214,0.18), rgba(0,229,255,0.12)),
        rgba(255,255,255,0.035);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
}

.global-ad-banner[hidden] {
    display: none;
}

.global-ad-banner span {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0,0,0,0.52);
    color: var(--theme-accent);
    text-transform: uppercase;
    font-size: 9px;
}

.global-ad-banner strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.superadmin-slot {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 58px;
    margin: 8px 0 0;
    padding: 9px 10px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.025);
    color: #fff;
    text-decoration: none;
}

.superadmin-slot.is-active {
    border-style: solid;
    border-color: rgba(255,235,0,0.28);
    background:
        linear-gradient(135deg, rgba(255,235,0,0.12), rgba(0,229,255,0.1)),
        rgba(255,255,255,0.035);
}

.superadmin-slot.is-empty {
    pointer-events: none;
}

.superadmin-slot span {
    display: none;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0,0,0,0.52);
    color: var(--theme-accent);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.superadmin-slot strong {
    display: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 900;
}

.superadmin-slot.is-active span,
.superadmin-slot.is-active strong {
    display: block;
}

.quick-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 0 4px;
}

.quick-action {
    min-height: 48px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background:
        radial-gradient(circle at 15% 0%, rgba(255,43,214,0.22), transparent 42%),
        radial-gradient(circle at 85% 100%, rgba(0,229,255,0.18), transparent 44%),
        rgba(255,255,255,0.035);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

.quick-action span,
.quick-action strong {
    display: block;
}

.quick-action span {
    color: rgba(255,255,255,0.62);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-action strong {
    margin-top: 3px;
    color: var(--theme-accent);
    font-size: 13px;
}

.quick-action:active {
    transform: scale(0.98);
}

.quick-action:disabled {
    opacity: 0.58;
}

.quick-action-msg {
    min-height: 14px;
    color: var(--theme-secondary);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

/* PRICE */
.price-card {
    text-align: center;
    margin-top: 2px;
    color: #fff;
    text-decoration: none;
}

.price-title {
    font-size: 13px;
    font-weight: 900;
}

.home-price-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    line-height: 1.1;
}

#projectPrice {
    font-size: 13px;
    font-weight: 900;
}

#projectChange {
    font-size: 12px;
    font-weight: 900;
}

.price-change.up { color: #00e676; }
.price-change.down { color: #ff5252; }

/* SETTINGS */
.settings-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    padding: 12px;
}

.settings-panel.show {
    display: flex;
}

.settings-box {
    width: 100%;
    max-width: 420px;
    background: #0a0a0a;
    border: 1px solid rgba(0,229,255,0.35);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 0 18px rgba(0,229,255,0.25);
}

.settings-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.settings-top strong {
    font-size: 18px;
}

#settingsCloseBtn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.settings-section {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}

.settings-label {
    color: rgba(255,255,255,0.65);
}

.settings-value {
    color: #ffeb00;
    font-weight: 800;
}

.danger-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,80,80,0.4);
    background: rgba(255,80,80,0.1);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

/* CHAT */
.chat-box {
    max-height: 40dvh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px;
    border-radius: 16px;
}

/* INTRO SCREEN */
.intro-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    transition: opacity .28s ease;
}

.intro-screen[hidden] {
    display: none;
}

.intro-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.route-splash-screen {
    transition: opacity 0.22s ease;
}

.intro-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.intro-enter {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 900;
    border: 0;
    background: linear-gradient(135deg,#ff2bd6,#7b3cff,#00e5ff);
    color: #fff;
}

/* SMALL HEIGHT */
@media (max-height: 720px) {
    .brand-lockup {
        min-height: 76px;
        margin-top: 14px;
        padding: 10px 14px;
    }

    .logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .brand-copy strong {
        font-size: 21px;
    }

    .brand-copy span {
        font-size: 15px;
    }

    .header-icon {
        width: 29px;
        height: 29px;
        font-size: 14px;
    }

    .action-grid,
    .game-row {
        gap: 2px;
    }

    .wallet-card {
        padding: 2px 6px;
    }

    .points-pill,
    .nickname-display-card {
        padding-top: 2px;
        padding-bottom: 2px;
    }
}
.return-app-btn {
    display: block;
    margin: 10px auto;
    text-align: center;
    padding: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg,#ff2bd6,#00e5ff);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    max-width: 220px;
}

.return-app-btn[hidden] {
    display: none;
}

.top-status-card {
    order: 2;
    width: 100%;
    margin: 0 auto 4px;
}

.top-status-row {
    display: flex;
    justify-content: center;
}

.install-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin: 0 0 5px;
    padding: 9px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,235,0,0.22);
    background:
        linear-gradient(135deg, rgba(255,235,0,0.12), rgba(0,229,255,0.1)),
        rgba(255,255,255,0.035);
}

.install-card[hidden] {
    display: none;
}

.install-card strong,
.install-card span {
    display: block;
}

.install-card strong {
    color: var(--theme-accent);
    font-size: 13px;
    font-weight: 900;
}

.install-card span {
    margin-top: 3px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.install-card button {
    min-width: 86px;
    min-height: 36px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--theme-primary),#7b3cff,var(--theme-secondary));
    color: #fff;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
}

.sub-header {
    display: grid;
    grid-template-columns: 72px 1fr 42px;
    align-items: center;
    gap: 8px;
    padding: 12px 4px 8px;
}

.sub-header h1 {
    margin: 0;
    text-align: center;
    font-size: 22px;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.settings-page {
    padding: 0 8px 16px;
}

.settings-card {
    margin: 10px 0;
    padding: 13px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        radial-gradient(circle at top left, rgba(255,43,214,0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(0,229,255,0.12), transparent 34%),
        rgba(255,255,255,0.03);
}

.settings-card h2 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #00e5ff;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}

.settings-row:first-of-type {
    border-top: 0;
}

.settings-row span,
.settings-note {
    color: rgba(255,255,255,0.68);
}

.settings-row strong {
    color: var(--theme-accent);
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
}

.settings-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 10px;
}

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

.settings-form input {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0,229,255,0.38);
    background: rgba(0,0,0,0.58);
    color: #fff;
    padding: 0 12px;
    font-weight: 800;
}

.settings-form button,
.settings-main-btn {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--theme-primary),#7b3cff,var(--theme-secondary));
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.settings-main-btn {
    width: 100%;
    margin-top: 8px;
}

.settings-main-btn.account-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.settings-action-stack {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.settings-action-stack[hidden] {
    display: none;
}

.settings-subblock {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.settings-subtitle {
    color: var(--theme-accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.settings-small-link {
    display: block;
    margin-top: 8px;
    color: #00e5ff;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.nickname-msg {
    min-height: 16px;
    margin-top: 8px;
    color: #00e5ff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.settings-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.danger-soft {
    border-color: rgba(255,235,0,0.18);
}

.leaderboard-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.leaderboard-tab {
    border: 1px solid rgba(255,43,214,0.45);
    background: rgba(255,43,214,0.08);
    color: #fff;
    border-radius: 999px;
    padding: 10px;
    font-weight: 900;
    cursor: pointer;
}

.leaderboard-tab.active {
    background: linear-gradient(135deg,var(--theme-primary),#7b3cff,var(--theme-secondary));
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-row,
.my-rank-main {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
}

.leaderboard-row.is-me {
    border-color: rgba(255,235,0,0.5);
}

.leaderboard-rank,
.rank-badge {
    text-align: center;
    font-weight: 900;
    color: #00e5ff;
}

.rank-name {
    font-size: 13px;
    font-weight: 900;
}

.rank-sub {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255,255,255,0.58);
}

.leaderboard-points,
.wallet-mini {
    color: #ffeb00;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.wallet-mini.verified {
    color: #00ff88;
}

.empty-board {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.game-score-board {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.game-score-section {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
}

.game-score-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.game-score-title strong {
    color: #ffeb00;
    font-size: 14px;
}

.game-score-title a {
    color: #00e5ff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.help-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.84);
    padding: 68px 10px 12px;
}

.help-panel[hidden] {
    display: none;
}

.help-panel-inner {
    width: 100%;
    max-width: 460px;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    margin: 0 auto;
    padding: 12px;
    background: #050505;
    border: 1px solid rgba(0,229,255,0.22);
    border-radius: 18px;
    box-shadow: 0 0 18px rgba(0,229,255,0.18);
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.help-header strong {
    font-size: 16px;
    color: #00e5ff;
}

.help-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.help-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.help-item {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.045);
}

.help-item strong {
    display: block;
    color: #ffeb00;
    font-size: 13px;
    margin-bottom: 5px;
}

.help-item span {
    display: block;
    color: rgba(255,255,255,0.74);
    font-size: 12px;
    line-height: 1.35;
}

.help-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.help-action-btn {
    display: block;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: #ff2bd6;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.help-action-btn.secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.guest-account-panel {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.78);
    padding: 18px;
}

.guest-account-panel[hidden] {
    display: none;
}

.guest-account-inner {
    width: 100%;
    max-width: 420px;
    padding: 16px;
    border: 1px solid rgba(0,229,255,0.34);
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 0%, rgba(255,43,214,0.22), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(0,229,255,0.2), transparent 36%),
        rgba(8,8,18,0.96);
    box-shadow: 0 0 34px rgba(0,229,255,0.18);
}

.guest-account-copy {
    margin: 12px 0 4px;
    color: #d8f8ff;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.guest-dismiss-btn {
    font-family: inherit;
    cursor: pointer;
}

.challenge-hero {
    display: block;
}

.challenge-hero img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.challenge-hero h2,
.challenge-notice h2 {
    margin: 0 0 5px;
    color: #00e5ff;
    font-size: 18px;
}

.challenge-hero p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    line-height: 1.35;
}

.challenge-list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.challenge-list-title h2 {
    margin: 0;
}

.challenge-refresh-btn {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 7px 10px;
    font-weight: 900;
}

.challenge-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.challenge-card {
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.045);
}

.challenge-card.completed {
    border-color: rgba(50,255,140,0.34);
    background: rgba(50,255,140,0.07);
}

.challenge-card.pending {
    border-color: rgba(255,235,0,0.34);
    background: rgba(255,235,0,0.06);
}

.challenge-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.challenge-card h3 {
    margin: 4px 0 0;
    font-size: 16px;
    color: #fff;
}

.challenge-card p {
    margin: 8px 0;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    line-height: 1.35;
}

.challenge-status {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.08);
    color: #d8f8ff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.challenge-status.completed {
    background: rgba(50,255,140,0.18);
    color: #75ffad;
}

.challenge-status.pending {
    background: rgba(255,235,0,0.18);
    color: #ffeb00;
}

.challenge-points {
    color: #ffeb00;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

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

.challenge-meta span {
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 999px;
    padding: 4px 8px;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.challenge-proof-form {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.challenge-proof-form input,
.challenge-proof-form textarea {
    width: 100%;
    border: 1px solid rgba(0,229,255,0.28);
    border-radius: 12px;
    background: rgba(0,0,0,0.54);
    color: #fff;
    padding: 10px;
    font: inherit;
    font-size: 13px;
}

.challenge-proof-form textarea {
    min-height: 72px;
    resize: vertical;
}

.challenge-action {
    flex: 1;
    min-width: 120px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--theme-primary),#7b3cff,var(--theme-secondary));
    color: #fff;
    padding: 10px;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.challenge-action.secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.challenge-action:disabled {
    opacity: 0.62;
}

.share-link-box {
    margin: 10px 0;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0,229,255,0.28);
    background: rgba(0,0,0,0.52);
    color: #ffeb00;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.button-row,
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.stat {
    padding: 9px;
    border-radius: 14px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.stat span {
    display: block;
    color: rgba(255,255,255,0.66);
    font-size: 11px;
}

.stat strong {
    display: block;
    margin-top: 3px;
    color: var(--theme-accent);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.chart-wrap {
    width: 100%;
    height: 410px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.45);
}

.chart-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.settings-main-btn.secondary-share {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.share-big-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--theme-primary),#7b3cff,var(--theme-secondary));
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.wallet-restore-code {
    display: block;
    margin-top: 6px;
    padding: 7px;
    border-radius: 10px;
    background: rgba(0,0,0,0.55);
    color: #ffeb00;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
