:root {
    --bg: #eef2f7;
    --card: #ffffff;
    --text: #152033;
    --muted: #667085;
    --line: #d8dee9;
    --brand: #45b36b;
    --brand-dark: #25834a;
    --danger: #c2410c;
    --shadow: 0 18px 45px rgba(15, 23, 42, .10);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #d7f8dc 0, transparent 34rem), var(--bg);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.page-shell {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(216, 222, 233, .90);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 18px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
}

.hero h1, .card h2 { margin: 0; line-height: 1.08; }
.hero h1 { font-size: clamp(2rem, 6vw, 4.4rem); }
.subtitle { margin: 10px 0 0; color: var(--muted); font-size: 1.15rem; }
.eyebrow { margin: 0 0 8px; color: var(--brand-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.hero-bird { width: 96px; height: 96px; border-radius: 24px; flex: 0 0 auto; }

.grid { display: grid; gap: 18px; }
.two-col { grid-template-columns: 1fr 1fr; }
.profile-top, .section-head, .button-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.button-row { justify-content: flex-start; flex-wrap: wrap; margin-top: 16px; }

.btn {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
    color: var(--text);
    font-weight: 750;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #a7b0c0; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}
.stats div {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: #f8fafc;
}
.stats span { display: block; color: var(--muted); font-size: .84rem; }
.stats strong { display: block; margin-top: 4px; font-size: 1.3rem; }

.meter { height: 12px; margin-top: 16px; border-radius: 99px; overflow: hidden; background: #e5e7eb; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e); transition: width .24s ease; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
label { display: grid; gap: 6px; color: var(--muted); font-weight: 700; }
input, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 12px;
    color: var(--text);
    background: #fff;
}

.result-log {
    min-height: 150px;
    max-height: 270px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.log-item {
    border-left: 4px solid var(--brand);
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
}
.log-item strong { display: block; margin-bottom: 6px; }
.log-deltas { color: var(--muted); font-size: .92rem; }

.hint { margin: 0; color: var(--muted); max-width: 360px; }
.play-zone {
    margin: 16px 0;
    padding: 18px;
    border: 2px dashed #9ca3af;
    border-radius: 18px;
    text-align: center;
    color: var(--muted);
    background: #f8fafc;
}
.play-zone.is-over { border-color: var(--brand); background: #eefcf2; color: var(--brand-dark); }

.actions-grid, .shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.action-card, .shop-item {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.action-card { user-select: none; }
.action-card[draggable="true"] { cursor: grab; }
.action-card:active { cursor: grabbing; }
.action-meta, .shop-meta { color: var(--muted); font-size: .88rem; display: grid; gap: 4px; }
.badge { display: inline-flex; width: fit-content; border-radius: 99px; padding: 3px 9px; background: #ecfdf3; color: var(--brand-dark); font-size: .78rem; font-weight: 800; }
.leaderboard-list { display: grid; gap: 8px; }
.leaderboard-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); }
.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    max-width: min(520px, calc(100% - 32px));
    z-index: 1300;
}

@media (max-width: 860px) {
    .two-col, .actions-grid, .shop-grid, .form-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero { align-items: flex-start; }
    .section-head { align-items: flex-start; flex-direction: column; }
}
.telegram-login { margin-top: 16px; min-height: 32px; }
.auth-error { margin: 12px 0 0; color: var(--danger); font-weight: 750; }
.admin-link { display: inline-flex; margin-top: 12px; color: var(--brand-dark); font-weight: 800; text-decoration: none; }
.admin-link:hover { text-decoration: underline; }
.muted { color: var(--muted); line-height: 1.55; }
.auth-card h2, .setup-card h2 { margin-bottom: 8px; }

.idle-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin: 14px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.idle-panel > div {
    display: grid;
    gap: 4px;
}

.idle-label {
    font-size: 12px;
    color: var(--muted);
}

#idlePreview {
    font-size: 18px;
}

#idleHint {
    max-width: 260px;
    color: var(--muted);
    text-align: right;
}

@media (max-width: 640px) {
    .idle-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    #idleHint {
        max-width: none;
        text-align: left;
    }
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
}

.top-nav a,
.button-row a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.top-nav a.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.compact-hero h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
.section-head.compact { margin-bottom: 12px; }
.compact-log { max-height: none; min-height: 260px; }
.log-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.log-head span { color: var(--muted); font-size: .82rem; }

.action-card.is-locked {
    background: #f3f4f6;
    border-style: dashed;
    opacity: .78;
}

.cooldown-line {
    color: var(--danger);
    font-weight: 800;
}

.action-card[data-available="1"] .cooldown-line {
    color: var(--brand-dark);
}

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

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

.owned-mark {
    display: inline-flex;
    border-radius: 99px;
    padding: 3px 9px;
    background: #eefcf2;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 900;
}

.shop-item.is-owned {
    border-color: rgba(37, 131, 74, .35);
    background: linear-gradient(180deg, #ffffff, #f7fff9);
}

.shop-item.is-maxed {
    background: linear-gradient(180deg, #f7fff9, #eefcf2);
}

.upgrade-help {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

.big-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 16px;
    background: #f8fafc;
    font-size: 1.35rem;
}

.leaderboard-list.large .leaderboard-row {
    font-size: 1.05rem;
    padding: 16px;
}

@media (max-width: 860px) {
    .shop-grid.detailed { grid-template-columns: 1fr; }
}

/* v1.1.6 shared layout */
.site-header {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

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

.page-shell {
    width: min(1120px, calc(100% - 32px));
}

.top-nav {
    align-items: center;
}

.top-nav a {
    min-height: 42px;
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        padding: 12px 0 32px;
    }

    .card {
        border-radius: 18px;
        padding: 16px;
        margin-bottom: 12px;
    }

    .site-header {
        gap: 12px;
        margin-bottom: 12px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-bird {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .top-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .top-nav a,
    .button-row a.btn,
    .button-row button.btn {
        width: 100%;
        padding: 10px 8px;
        text-align: center;
    }

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

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

    .profile-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-top .btn,
    .profile-top .big-balance {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .top-nav {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        font-size: clamp(1.9rem, 12vw, 3rem);
    }
}

/* levels and system journal */
.level-panel {
    margin: 14px 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.level-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.level-need {
    flex: 0 0 auto;
    border-radius: 99px;
    padding: 5px 10px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 900;
    font-size: .86rem;
}

.level-meter {
    margin: 12px 0 8px;
    background: #e5e7eb;
}

.level-meter span {
    background: linear-gradient(90deg, #f97316, #84cc16);
}

#levelProgressHint {
    color: var(--muted);
    line-height: 1.45;
}

.levels-list {
    display: grid;
    gap: 10px;
}

.level-row {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: #f8fafc;
}

.level-row.is-reached {
    border-color: rgba(37, 131, 74, .35);
    background: #f7fff9;
}

.level-row.is-current {
    box-shadow: inset 0 0 0 2px rgba(37, 131, 74, .20);
}

.level-row-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.level-row p {
    margin: 8px 0 6px;
    color: var(--muted);
    line-height: 1.45;
}

.level-row small {
    color: var(--brand-dark);
    font-weight: 850;
}

.log-item.is-system {
    border-left-color: #f97316;
    background: #fff7ed;
}

.system-mark {
    color: #9a3412;
    font-weight: 850;
}

@media (max-width: 640px) {
    .level-panel-head,
    .level-row-main {
        grid-template-columns: 1fr;
        display: grid;
    }

    .level-need {
        width: fit-content;
    }
}

/* levels page */
.levels-overview {
    align-items: stretch;
}

.level-next-card {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(249, 115, 22, .28);
    border-radius: 18px;
    background: #fff7ed;
}

.level-next-card strong {
    display: block;
    margin: 8px 0 6px;
}

.level-next-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.level-next-card.is-max {
    border-color: rgba(37, 131, 74, .32);
    background: #f7fff9;
}

.level-rules {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.level-rules span {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    font-weight: 800;
}

.levels-page-card .section-head {
    align-items: flex-start;
}

.levels-timeline {
    display: grid;
    gap: 12px;
}

.level-timeline-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: stretch;
}

.level-number {
    display: grid;
    place-items: center;
    min-height: 86px;
    border-radius: 18px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 950;
}

.level-timeline-body {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.level-timeline-item.is-reached .level-number {
    background: #dcfce7;
    color: #166534;
}

.level-timeline-item.is-reached .level-timeline-body {
    border-color: rgba(37, 131, 74, .35);
    background: #f7fff9;
}

.level-timeline-item.is-current .level-number {
    background: #ffedd5;
    color: #9a3412;
}

.level-timeline-item.is-current .level-timeline-body {
    box-shadow: inset 0 0 0 2px rgba(249, 115, 22, .22);
}

.level-timeline-body p {
    margin: 8px 0 6px;
    color: var(--muted);
    line-height: 1.45;
}

.level-timeline-body small {
    color: var(--brand-dark);
    font-weight: 900;
}

@media (max-width: 640px) {
    .level-timeline-item {
        grid-template-columns: 1fr;
    }

    .level-number {
        min-height: 44px;
        place-items: center start;
        padding: 0 14px;
    }
}

.copy-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 16px 0 10px;
}
.copy-box input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.referral-stats { grid-template-columns: repeat(2, 1fr); }
.referral-next-card { margin-top: 14px; }
.referral-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.referral-level-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    display: grid;
    gap: 10px;
}
.referral-level-card h3 { margin: 0; }
.referral-level-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.referral-level-card.is-issued {
    border-color: #86efac;
    background: #f0fdf4;
}
.referral-level-card.is-ready {
    border-color: #fdba74;
    background: #fff7ed;
}
.leaderboard-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}
@media (max-width: 640px) {
    .copy-box { grid-template-columns: 1fr; }
    .referral-stats { grid-template-columns: 1fr 1fr; }
}

/* v1.3.3 viral systems */
.viral-grid { align-items: stretch; }
.daily-event-card {
    border-color: rgba(249, 115, 22, .28);
    background: linear-gradient(180deg, #fff, #fff7ed);
}
.daily-event-card small {
    display: inline-flex;
    margin-top: 10px;
    border-radius: 99px;
    padding: 5px 10px;
    background: #ffedd5;
    color: #9a3412;
    font-weight: 900;
}
.onboarding-steps { display: grid; gap: 10px; margin-top: 12px; }
.onboarding-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    background: #f8fafc;
}
.onboarding-step > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 99px;
    background: #e5e7eb;
    font-weight: 950;
}
.onboarding-step.is-done > span {
    background: #dcfce7;
    color: #166534;
}
.onboarding-step small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.action-card.is-recommended {
    border-color: rgba(249, 115, 22, .75);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .14), var(--shadow);
}
.share-card-panel {
    border-color: rgba(37, 131, 74, .32);
    background: linear-gradient(180deg, #fff, #f0fdf4);
}
.share-card-text {
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    margin: 14px 0 0;
    background: #0f172a;
    color: #f8fafc;
    font: 500 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.achievement-mini-list { display: grid; gap: 8px; margin: 12px 0; }
.achievement-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 9px 10px;
    background: #f8fafc;
}
.achievement-pill.is-unlocked {
    border-color: #86efac;
    background: #f0fdf4;
}
.territory-grid,
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.territory-item,
.achievement-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
}
.territory-item.is-unlocked,
.achievement-card.is-unlocked {
    border-color: rgba(37, 131, 74, .35);
    background: #f7fff9;
}
.territory-item h3,
.achievement-card h3 { margin: 10px 0 8px; }
.territory-item p,
.achievement-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.achievement-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
}
.achievement-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #eef2ff;
    font-size: 1.35rem;
}
.achievement-card small { display: block; margin-top: 8px; color: var(--brand-dark); font-weight: 900; }
@media (max-width: 640px) {
    .territory-grid,
    .achievement-grid { grid-template-columns: 1fr; }
    .achievement-card { grid-template-columns: 1fr; }
}

/* Calendar themes. These are visual moods, not gameplay mechanics. */
body.theme-new-year {
    --brand: #16a34a;
    --brand-dark: #047857;
    --bg: #eef8f1;
    background: radial-gradient(circle at top left, rgba(34,197,94,.24) 0, transparent 34rem), radial-gradient(circle at top right, rgba(239,68,68,.14) 0, transparent 28rem), var(--bg);
}
body.theme-new-year .hero::after { content: "🎄"; font-size: 42px; opacity: .85; }

body.theme-christmas {
    --brand: #b91c1c;
    --brand-dark: #7f1d1d;
    --bg: #fff7ed;
    background: radial-gradient(circle at top left, rgba(248,113,113,.20) 0, transparent 32rem), radial-gradient(circle at top right, rgba(250,204,21,.14) 0, transparent 26rem), var(--bg);
}
body.theme-christmas .hero::after { content: "⭐"; font-size: 42px; opacity: .85; }

body.theme-defender {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --bg: #eff6ff;
    background: radial-gradient(circle at top left, rgba(37,99,235,.18) 0, transparent 34rem), radial-gradient(circle at top right, rgba(34,197,94,.12) 0, transparent 26rem), var(--bg);
}
body.theme-defender .hero::after { content: "🛡️"; font-size: 42px; opacity: .85; }

body.theme-women {
    --brand: #db2777;
    --brand-dark: #be185d;
    --bg: #fff1f7;
    background: radial-gradient(circle at top left, rgba(244,114,182,.22) 0, transparent 32rem), radial-gradient(circle at top right, rgba(251,191,36,.14) 0, transparent 26rem), var(--bg);
}
body.theme-women .hero::after { content: "🌷"; font-size: 42px; opacity: .9; }

body.theme-labor {
    --brand: #65a30d;
    --brand-dark: #4d7c0f;
    --bg: #f7fee7;
    background: radial-gradient(circle at top left, rgba(132,204,22,.22) 0, transparent 32rem), radial-gradient(circle at top right, rgba(34,197,94,.13) 0, transparent 26rem), var(--bg);
}
body.theme-labor .hero::after { content: "🌿"; font-size: 42px; opacity: .9; }

body.theme-victory {
    --brand: #dc2626;
    --brand-dark: #991b1b;
    --bg: #fff7ed;
    background: radial-gradient(circle at top left, rgba(220,38,38,.18) 0, transparent 32rem), radial-gradient(circle at top right, rgba(251,191,36,.18) 0, transparent 26rem), var(--bg);
}
body.theme-victory .hero::after { content: "🎖️"; font-size: 42px; opacity: .88; }

body.theme-programmer {
    --brand: #7c3aed;
    --brand-dark: #5b21b6;
    --bg: #f5f3ff;
    background: radial-gradient(circle at top left, rgba(124,58,237,.22) 0, transparent 34rem), radial-gradient(circle at top right, rgba(14,165,233,.14) 0, transparent 28rem), var(--bg);
}
body.theme-programmer .hero::after { content: "⌨️"; font-size: 42px; opacity: .88; }

@media (max-width: 860px) {
    body.theme-new-year .hero::after,
    body.theme-christmas .hero::after,
    body.theme-defender .hero::after,
    body.theme-women .hero::after,
    body.theme-labor .hero::after,
    body.theme-victory .hero::after,
    body.theme-programmer .hero::after {
        display: none;
    }
}

/* 1.4.0: GEO/AEO/AIO/LEO answer blocks for public pages */
.ai-answer-card {
    display: grid;
    gap: 14px;
    border-color: rgba(76, 111, 255, 0.18);
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,248,255,0.92));
}

.ai-answer-card > p:not(.eyebrow) {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

.ai-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ai-faq-grid details {
    padding: 12px;
    border: 1px solid rgba(22, 28, 45, 0.09);
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
}

.ai-faq-grid summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--text);
}

.ai-faq-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.ai-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ai-facts li {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(22, 28, 45, 0.06);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 820px) {
    .ai-faq-grid {
        grid-template-columns: 1fr;
    }
}

/* 1.4.1: comfortable play-first layout */
body[data-page="game"] .page-shell {
    width: min(1280px, calc(100% - 24px));
}
body[data-page="game"] .hero.compact-hero {
    padding: 16px 18px;
    margin-bottom: 12px;
}
body[data-page="game"] .hero.compact-hero h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}
body[data-page="game"] .hero.compact-hero .subtitle {
    font-size: 1rem;
}
body[data-page="game"] .top-nav.card {
    margin-bottom: 14px;
}
.game-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.game-sidebar {
    display: grid;
    gap: 14px;
}
.game-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}
.compact-profile.card,
.game-sidebar .card,
.game-main .card {
    margin-bottom: 0;
}
.compact-profile .profile-top {
    align-items: flex-start;
}
.compact-profile .profile-top h2 {
    font-size: 1.35rem;
}
.compact-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.compact-stats div {
    padding: 10px;
}
.compact-stats span {
    display: inline;
    font-size: 1rem;
}
.compact-stats strong {
    font-size: 1.18rem;
}
.compact-stats small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 750;
}
.compact-actions {
    gap: 8px;
}
.compact-actions .btn {
    padding: 9px 11px;
}
.play-card {
    border-color: rgba(69, 179, 107, .28);
}
.play-head {
    align-items: flex-start;
}
.play-zone {
    margin-top: 12px;
}
.play-actions-grid.actions-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.game-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
    gap: 16px;
}
.compact-achievements .achievement-mini-list {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.setup-card .button-row {
    justify-content: flex-start;
}
.onboarding-step.is-daily > span {
    background: #e0f2fe;
    color: #075985;
}
@media (max-width: 980px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
    .game-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .compact-profile {
        grid-column: 1 / -1;
    }
    .game-bottom-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    body[data-page="game"] .page-shell {
        width: min(100% - 16px, 1280px);
        padding-top: 12px;
    }
    .game-sidebar {
        grid-template-columns: 1fr;
    }
    .compact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .play-actions-grid.actions-grid {
        grid-template-columns: 1fr;
    }
    body[data-page="game"] .hero.compact-hero {
        align-items: flex-start;
    }
}

/* 1.4.2: footer, cookie notice and clearer idle panel */
.idle-panel {
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(249, 115, 22, .22);
    background: linear-gradient(135deg, #fff7ed, #ffffff 72%);
    box-shadow: 0 10px 26px rgba(249, 115, 22, .10);
}

.idle-panel > div:first-child {
    gap: 8px;
}

.idle-panel .idle-label {
    color: #9a3412;
    font-size: .8rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.idle-resources-block {
    min-width: 0;
}

.idle-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.idle-resource-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(249, 115, 22, .16);
    box-shadow: 0 8px 18px rgba(124, 45, 18, .06);
    color: #1f2937;
    font-size: clamp(1.18rem, 3vw, 1.48rem);
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
}

#idleHint {
    align-self: stretch;
    display: grid;
    gap: 6px;
    min-width: 190px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(249, 115, 22, .16);
    color: #7c2d12;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.35;
}

.idle-limit-full {
    color: #b45309;
}

.game-side-stack {
    display: grid;
    gap: 16px;
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 28px;
    color: var(--muted);
}

body[data-page="game"] .site-footer {
    width: min(1280px, calc(100% - 24px));
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(0, 1.7fr);
    gap: 22px;
    padding: 20px;
    border: 1px solid rgba(216, 222, 233, .86);
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.footer-brand {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-main strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
}

.footer-main p {
    margin: 0;
    line-height: 1.55;
}

.footer-links.footer-link-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    justify-content: stretch;
}

.footer-link-group {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.footer-link-group h3 {
    margin: 0 0 2px;
    color: var(--text);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 0;
    font-size: .86rem;
    line-height: 1.45;
}

.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 80;
    width: min(760px, calc(100% - 28px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 22px;
    background: rgba(15, 23, 42, .96);
    color: #f8fafc;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.cookie-consent p {
    margin: 0;
    color: rgba(248, 250, 252, .82);
    line-height: 1.45;
    font-size: .94rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-actions a {
    color: #bbf7d0;
    font-weight: 850;
    text-decoration: none;
}

.cookie-actions a:hover {
    text-decoration: underline;
}

.legal-page {
    display: grid;
    gap: 16px;
}

.legal-page h2,
.legal-page h3 {
    margin: 0;
}

.legal-page p,
.legal-page li {
    color: var(--muted);
    line-height: 1.65;
}

.legal-page ul {
    margin: 0;
    padding-left: 20px;
}

.legal-note {
    border: 1px solid rgba(249, 115, 22, .22);
    border-radius: 18px;
    padding: 14px 16px;
    background: #fff7ed;
    color: #7c2d12;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .footer-main,
    .cookie-consent {
        grid-template-columns: 1fr;
    }

    .footer-links.footer-link-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-links,
    .cookie-actions {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
    }

    #idleHint {
        max-width: none;
        align-self: stretch;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .idle-resource-grid {
        grid-template-columns: 1fr;
    }

    .idle-resource-grid span {
        justify-content: flex-start;
    }

    #idleHint {
        min-width: 0;
        width: 100%;
    }
}

/* 1.4.5: fix idle panel overlap on narrow profile cards */
.idle-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
    align-items: stretch;
    column-gap: 12px;
    row-gap: 12px;
    overflow: hidden;
}

.idle-panel > *,
.idle-resources-block,
.idle-time-block,
#idlePreview,
#idleHint {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.idle-resource-grid {
    grid-template-columns: repeat(3, minmax(58px, 1fr));
    gap: 8px;
}

.idle-resource-grid span {
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
    overflow-wrap: anywhere;
}

#idleHint {
    width: 100%;
    min-width: 0;
    text-align: left;
}

#idleHint span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .idle-panel {
        grid-template-columns: 1fr;
    }

    .idle-resource-grid {
        grid-template-columns: repeat(3, minmax(76px, 1fr));
    }
}

@media (max-width: 520px) {
    .idle-resource-grid {
        grid-template-columns: 1fr;
    }

    .idle-resource-grid span {
        justify-content: flex-start;
        text-align: left;
    }
}


/* 1.4.6: idle panel vertical layout to prevent overlap in all profile widths */
.idle-panel {
    display: block;
    width: 100%;
    overflow: visible;
    padding: 16px;
}

.idle-resources-block,
.idle-time-block,
#idlePreview,
#idleHint {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.idle-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.idle-resource-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
}

#idleHint {
    margin-top: 12px;
    padding: 12px 14px;
    text-align: left;
}

#idleHint span {
    display: block;
    width: 100%;
}

#idleHint span + span {
    margin-top: 4px;
}

@media (max-width: 420px) {
    .idle-resource-grid {
        grid-template-columns: 1fr;
    }

    .idle-resource-grid span {
        justify-content: flex-start;
        text-align: left;
    }
}


/* 1.4.7: compact idle panel */
.idle-panel {
    padding: 12px 14px;
    border-radius: 20px;
}

.idle-panel .idle-label {
    display: block;
    margin-bottom: 8px;
    font-size: .76rem;
    line-height: 1;
}

.idle-resource-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.idle-resource-grid span {
    width: auto;
    min-width: 74px;
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 1.08rem;
    line-height: 1;
}

#idleHint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9a3412;
    font-size: .88rem;
    line-height: 1.25;
}

#idleHint span {
    display: inline-flex;
    width: auto;
}

#idleHint span + span {
    margin-top: 0;
}

#idleHint .idle-dot {
    color: rgba(154, 52, 18, .48);
}

#idleHint .idle-limit-full {
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffedd5;
    color: #b45309;
    font-weight: 950;
}

@media (max-width: 420px) {
    .idle-resource-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .idle-resource-grid span {
        min-width: 0;
        justify-content: center;
        padding: 7px 6px;
        font-size: 1rem;
        text-align: center;
    }
}

/* 1.4.9: keep idle resource values in one horizontal row */
.idle-resource-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    overflow: hidden;
}

.idle-resource-grid span {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    padding: 7px 5px;
    font-size: .98rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

@media (min-width: 421px) {
    .idle-resource-grid {
        gap: 8px;
    }

    .idle-resource-grid span {
        flex: 0 1 auto;
        min-width: 74px;
        padding: 7px 11px;
        font-size: 1.08rem;
    }
}


/* 1.4.9: prevent ugly word-by-word wraps in profile and level progress */
#birdTitle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    line-height: 1.18;
    min-width: 0;
}
.bird-title-name {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.bird-title-level {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 214, 107, .18);
    color: var(--text);
    font-size: .82rem;
    font-weight: 900;
}
#levelProgressTitle {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    line-height: 1.2;
}
.level-progress-main {
    display: inline-flex;
    white-space: nowrap;
    flex: 0 0 auto;
}
.level-progress-name {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.level-panel-head > div {
    min-width: 0;
}
.level-panel-head {
    gap: 10px;
}
@media (max-width: 420px) {
    #birdTitle {
        gap: 5px 8px;
    }
    .bird-title-level {
        font-size: .78rem;
        padding: 3px 7px;
    }
    #levelProgressTitle {
        display: grid;
        gap: 3px;
    }
}

/* 1.4.10: cleaner level progress card */
.level-summary-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 247, 237, .95), rgba(248, 250, 252, .96));
}
.level-summary-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}
.level-summary-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}
#levelProgressTitle {
    display: block;
    margin: 0;
    font-size: .92rem;
    line-height: 1.2;
    color: var(--muted);
    font-weight: 850;
    white-space: normal;
}
.level-progress-name {
    display: block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 950;
}
.level-summary-card .level-need {
    justify-self: end;
    align-self: start;
    white-space: nowrap;
    font-size: .92rem;
    padding: 7px 11px;
}
.level-summary-card .level-meter {
    margin: 0;
    height: 10px;
}
.level-progress-hint {
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
    font-size: .95rem;
}
@media (max-width: 520px) {
    .level-summary-top {
        grid-template-columns: 1fr;
    }
    .level-summary-card .level-need {
        justify-self: start;
        width: fit-content;
    }
    .level-progress-name {
        font-size: 1.08rem;
    }
}

/* 1.5.0: cleaner level/profile/share UI */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.btn.subtle {
    opacity: .78;
}
.level-summary-card {
    padding: 16px;
}
.level-summary-top {
    display: block;
}
.level-summary-main {
    display: block;
}
#levelProgressTitle {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: .98rem;
    line-height: 1.2;
    margin-bottom: 6px;
}
.level-progress-name {
    display: block;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    font-size: 1.24rem;
    line-height: 1.25;
    margin-bottom: 10px;
}
.level-summary-card .level-need {
    display: inline-flex;
    justify-self: auto;
    margin-bottom: 10px;
    white-space: nowrap;
}
.share-buttons {
    gap: 8px;
}
.share-buttons .btn {
    min-width: 52px;
}
.btn.tiny {
    padding: 6px 9px;
    font-size: .78rem;
    border-radius: 999px;
    margin-top: 8px;
}
.bot-auth-fallback {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}
@media (max-width: 520px) {
    #levelProgressTitle { font-size: .94rem; }
    .level-progress-name { font-size: 1.14rem; }
    .profile-actions { justify-content: flex-start; }
}

.result-breakdown-panel {
    border-color: rgba(59, 130, 246, .28);
    background: linear-gradient(180deg, #fff, #eff6ff);
}
.breakdown-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.breakdown-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .82);
}
.breakdown-item strong {
    display: block;
    margin-bottom: 3px;
}
.breakdown-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
}
.breakdown-deltas {
    white-space: nowrap;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.breakdown-item.is-total {
    border-color: rgba(249, 115, 22, .38);
    background: #fff7ed;
}
@media (max-width: 640px) {
    .breakdown-item {
        grid-template-columns: 1fr;
    }
    .breakdown-deltas {
        white-space: normal;
    }
}

/* 1.5.5 - journal actions and meme cards */
.log-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.btn.ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}
.share-card-text {
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 44px rgba(15,23,42,.18);
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, .28), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(34, 197, 94, .18), transparent 34%),
        linear-gradient(145deg, #0f172a, #111827 55%, #020617);
    color: #f8fafc;
    font: 500 15px/1.62 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .01em;
}
.share-buttons .btn {
    min-width: 54px;
}
.result-breakdown-panel .hint {
    max-width: 460px;
}

/* Version 1.5.6: full player journal */
.journal-page-card {
    display: grid;
    gap: 18px;
}

.journal-full-list {
    display: grid;
    gap: 14px;
}

.journal-full-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.journal-full-item.is-system {
    background: rgba(255, 214, 102, 0.08);
}

.journal-full-main {
    display: grid;
    gap: 7px;
}

.journal-time {
    color: var(--muted);
    font-size: 0.84rem;
}

.journal-full-main h3 {
    margin: 0;
    font-size: 1.08rem;
}

.journal-full-main p {
    margin: 0;
    color: var(--text);
    line-height: 1.45;
}

.journal-deltas {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
    font-weight: 700;
}

.journal-details {
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.12);
    padding: 10px 12px;
}

.journal-details summary {
    cursor: pointer;
    font-weight: 800;
}

.journal-breakdown-list {
    margin-top: 12px;
}

.journal-share-text {
    margin-top: 12px;
    white-space: pre-wrap;
}

.journal-share-direct {
    margin-top: 10px;
}

.share-buttons.is-compact {
    gap: 6px;
}

.share-buttons.is-compact .btn {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.84rem;
}

.bot-auth-fallback .hint[hidden] { display: none !important; }

.bot-auth-fallback .hint {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(252, 191, 73, .35);
    border-radius: 14px;
    background: rgba(252, 191, 73, .08);
    color: var(--text);
}
.bot-auth-title { font-weight: 700; }
.bot-auth-command {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .08);
    font: 700 14px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: normal;
    word-break: break-all;
}
.bot-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bot-auth-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.7);
    text-decoration: none;
    color: var(--text);
}
.bot-auth-status {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0,0,0,.16);
    color: var(--danger);
    font-weight: 700;
}

/* 1.6.8: clearer idle, trust meter label and mobile hamburger nav */
.mobile-menu-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 950;
}

.mobile-menu-toggle span:first-child {
    font-size: 1.25rem;
    line-height: 1;
}

.meter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 850;
}

.meter-label span {
    color: var(--text);
    white-space: nowrap;
}

.meter-label small {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 900;
}

.trust-meter {
    margin-top: 7px;
}

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

.idle-help {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(249, 115, 22, .20);
    color: #9a3412;
    font-size: .76rem;
    font-weight: 950;
    cursor: help;
    white-space: nowrap;
}

.idle-help::before {
    content: '?';
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border-radius: 50%;
    background: #ffedd5;
    color: #9a3412;
    font-size: .72rem;
}

.idle-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.idle-resource-grid span {
    min-height: 36px;
    padding: 8px 9px;
    font-size: clamp(1rem, 2.1vw, 1.22rem);
    cursor: help;
}

.idle-rate-line {
    margin-top: 8px;
    color: #7c2d12;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.35;
}

#idleHint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    min-width: 0;
    margin-top: 10px;
    padding: 9px 10px;
    font-size: .88rem;
}

#idleHint span:not(.idle-dot) {
    white-space: nowrap;
}

@media (max-width: 720px) {
    body.auth-first[data-page="game"] .page-shell {
        display: flex;
        flex-direction: column;
    }

    body.auth-first[data-page="game"] #authCard {
        order: 1;
    }

    body.auth-first[data-page="game"] .site-header {
        order: 2;
    }

    body.auth-first[data-page="game"] #setupCard,
    body.auth-first[data-page="game"] #gameShell {
        order: 3;
    }

    body.auth-first[data-page="game"] .hero.compact-hero {
        padding: 12px 14px;
    }

    body.auth-first[data-page="game"] .hero.compact-hero .hero-bird,
    body.auth-first[data-page="game"] .hero.compact-hero .subtitle {
        display: none;
    }

    body.auth-first[data-page="game"] .hero.compact-hero h1 {
        font-size: 1.55rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .top-nav {
        display: none;
        grid-template-columns: 1fr;
    }

    .top-nav.is-open {
        display: grid;
    }

    .top-nav a {
        justify-content: center;
    }

    .idle-title-row {
        align-items: flex-start;
    }

    .idle-help {
        font-size: .72rem;
        padding-inline: 8px;
    }

    .idle-resource-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .idle-resource-grid span {
        min-width: 0;
        padding: 8px 5px;
        font-size: .98rem;
    }

    .idle-rate-line,
    #idleHint {
        font-size: .78rem;
    }
}

/* 1.6.8: real tooltip behavior for idle hints */
.idle-help {
    border: 1px solid rgba(249, 115, 22, .24);
    appearance: none;
    font-family: inherit;
}

.js-tooltip {
    position: relative;
}

.ui-tooltip {
    position: absolute;
    z-index: 10000;
    padding: 10px 12px;
    border-radius: 14px;
    background: #111827;
    color: #fff7ed;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .26);
    font-size: .88rem;
    line-height: 1.35;
    pointer-events: none;
}

.ui-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 22px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background: #111827;
}

@media (hover: none) {
    .ui-tooltip {
        pointer-events: auto;
    }
}

/* 1.6.9: unified UI polish system */
:root {
    --bg: #f3f6fb;
    --card: #ffffff;
    --text: #182235;
    --muted: #687386;
    --line: #dde4ee;
    --soft: #f8fafc;
    --soft-2: #f1f5f9;
    --brand: #3aae68;
    --brand-dark: #237a49;
    --accent: #f59e0b;
    --accent-dark: #9a5b0a;
    --danger: #b42318;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 12px 34px rgba(24, 34, 53, .08);
    --shadow-soft: 0 8px 22px rgba(24, 34, 53, .06);
    --space-card: clamp(16px, 2vw, 22px);
}

html { scroll-behavior: smooth; }
body {
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(69, 179, 107, .18) 0, transparent 34rem),
        radial-gradient(circle at 88% 8%, rgba(245, 158, 11, .10) 0, transparent 30rem),
        var(--bg);
    font-size: 16px;
    line-height: 1.5;
}

body, button, input, select, textarea {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

.page-shell,
.site-footer {
    width: min(1180px, calc(100% - 28px));
}

body[data-page="game"] .page-shell,
body[data-page="game"] .site-footer {
    width: min(1280px, calc(100% - 28px));
}

.card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(221, 228, 238, .95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-card);
    margin-bottom: 16px;
}

.card h2,
.card h3,
.hero h1 {
    color: var(--text);
    letter-spacing: -.02em;
}

.hero {
    gap: 18px;
    min-height: auto;
}

.hero h1 {
    font-size: clamp(2rem, 5.4vw, 4rem);
    line-height: .98;
}

body[data-page="game"] .hero.compact-hero h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.65rem);
}

.subtitle {
    max-width: 760px;
    margin-top: 10px;
    color: var(--muted);
    font-size: clamp(.98rem, 1.4vw, 1.12rem);
    line-height: 1.5;
}

.eyebrow {
    margin-bottom: 7px;
    color: var(--brand-dark);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.section-head,
.profile-top,
.log-head,
.play-head {
    align-items: flex-start;
}

.section-head h2,
.profile-top h2,
.log-head h2,
.play-head h2,
.share-card-panel h2 {
    margin: 0;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.15;
}

.hint,
.muted,
.card p,
.level-progress-hint,
.upgrade-help,
.admin-note {
    color: var(--muted);
    line-height: 1.55;
}

.hint {
    max-width: 620px;
    font-size: .94rem;
}

.btn,
.top-nav a,
.footer-links a,
.bot-auth-links a {
    min-height: 40px;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: .94rem;
    font-weight: 850;
    line-height: 1.1;
    box-shadow: none;
}

.btn.primary,
.top-nav a.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn.primary:hover,
.top-nav a.is-active:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn.ghost,
.btn.subtle {
    background: #fff;
    color: var(--text);
}

.btn.danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.btn.tiny {
    min-height: 32px;
    padding: 6px 10px;
    font-size: .8rem;
}

.button-row {
    gap: 9px;
}

.top-nav.card {
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 14px;
}

.top-nav a {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.top-nav a:hover {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

.mobile-menu-toggle.card {
    border-radius: 999px;
    padding: 10px 14px;
}

.stats,
.compact-stats {
    gap: 8px;
}

.stats div,
.compact-stats div {
    border-radius: 16px;
    background: var(--soft);
    border-color: var(--line);
}

.stats span,
.compact-stats small {
    color: var(--muted);
}

.stats strong,
.compact-stats strong {
    font-size: clamp(1.05rem, 2.1vw, 1.28rem);
    line-height: 1.15;
}

.meter-label {
    margin-top: 14px;
    font-size: .9rem;
}

.meter {
    height: 10px;
    margin-top: 8px;
    background: #e8edf5;
}

.game-layout {
    gap: 18px;
}

.game-sidebar,
.game-main,
.game-side-stack {
    gap: 14px;
}

.compact-profile.card,
.play-card,
.daily-event-card,
.level-summary-card,
.share-card-panel,
.result-breakdown-panel {
    overflow: hidden;
}

#birdTitle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bird-title-name {
    font-size: 1.35rem;
    font-weight: 950;
}

.bird-title-level {
    background: #fff7ed;
    color: var(--accent-dark);
}

.level-summary-card {
    border: 1px solid rgba(245, 158, 11, .22);
    background: linear-gradient(135deg, #fff7ed, #fff 74%);
    padding: 14px;
}

#levelProgressTitle {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 900;
}

.level-progress-name {
    margin: 4px 0 10px;
    color: var(--text);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
}

.level-summary-card .level-need,
.level-need {
    background: #ffedd5;
    color: var(--accent-dark);
    border: 1px solid rgba(245, 158, 11, .18);
}

.level-meter,
.level-summary-card .level-meter {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.idle-panel {
    border: 1px solid rgba(245, 158, 11, .24);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff 78%);
    box-shadow: var(--shadow-soft);
    padding: 12px;
}

.idle-title-row {
    margin-bottom: 8px;
}

.idle-panel .idle-label {
    color: var(--accent-dark);
    font-size: .74rem;
    font-weight: 950;
}

.idle-help {
    min-height: 28px;
    background: #fff;
    font-size: .74rem;
}

.idle-resource-grid {
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 7px;
}

.idle-resource-grid span {
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: clamp(.96rem, 1.8vw, 1.08rem);
    box-shadow: none;
}

.idle-rate-line,
#idleHint {
    color: #7c2d12;
    font-size: .82rem;
}

#idleHint {
    padding: 8px 9px;
    border-radius: 14px;
    background: rgba(255,255,255,.62);
}

.play-zone {
    margin: 12px 0;
    border: 1.5px dashed #b9c3d2;
    border-radius: 18px;
    background: var(--soft);
    color: var(--muted);
    font-weight: 750;
}

.play-zone.is-over {
    border-color: var(--brand);
    background: #ecfdf3;
    color: var(--brand-dark);
}

.actions-grid,
.shop-grid,
.play-actions-grid.actions-grid {
    gap: 12px;
}

.action-card,
.shop-item,
.referral-level-card,
.territory-item,
.achievement-card,
.level-timeline-body,
.log-item,
.journal-full-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(24,34,53,.045);
}

.action-card,
.shop-item {
    min-height: auto;
    padding: 14px;
}

.action-card strong,
.shop-item h3,
.territory-item h3,
.achievement-card h3,
.referral-level-card h3,
.journal-full-main h3 {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.25;
}

.action-card > span:not(.badge):not(.action-meta) {
    color: var(--muted);
    line-height: 1.42;
}

.action-meta,
.shop-meta {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.35;
}

.badge,
.owned-mark,
.admin-chip,
.achievement-pill,
.level-rules span {
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
}

.badge {
    background: #ecfdf3;
    color: var(--brand-dark);
}

.cooldown-line {
    color: var(--accent-dark);
}

.action-card.is-locked {
    background: #f8fafc;
    opacity: .82;
}

.daily-event-card {
    border-color: rgba(245, 158, 11, .28);
    background: linear-gradient(135deg, #fff7ed, #ffffff 76%);
}

.daily-event-card small {
    background: #ffedd5;
    color: var(--accent-dark);
}

.onboarding-step,
.achievement-pill,
.level-row,
.level-rules span,
.upgrade-help {
    border-color: var(--line);
    background: var(--soft);
}

.result-log,
.journal-full-list {
    gap: 10px;
}

.log-item {
    border-left: 4px solid var(--brand);
    padding: 12px 14px;
}

.log-item strong {
    margin-bottom: 4px;
    line-height: 1.25;
}

.log-deltas,
.journal-time {
    color: var(--muted);
    font-size: .86rem;
}

.log-actions {
    gap: 7px;
}

.result-breakdown-panel {
    border-color: rgba(59, 130, 246, .18);
    background: linear-gradient(135deg, #eff6ff, #ffffff 78%);
}

.breakdown-item {
    border-radius: 16px;
    background: #fff;
}

.breakdown-item.is-total {
    border-color: rgba(245, 158, 11, .26);
    background: #fff7ed;
}

.share-card-panel {
    border-color: rgba(34, 197, 94, .22);
    background: linear-gradient(135deg, #f0fdf4, #ffffff 74%);
}

.share-card-text,
.journal-share-text {
    border-radius: 18px;
    padding: 16px;
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, .24), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(34, 197, 94, .16), transparent 32%),
        linear-gradient(145deg, #111827, #020617);
    color: #f8fafc;
    font-size: .95rem;
    line-height: 1.62;
}

.share-buttons {
    gap: 7px;
}

.share-buttons .btn {
    min-width: auto;
}

.ai-answer-card,
.legal-page.card {
    background: rgba(255,255,255,.92);
}

.ai-faq-grid details {
    border-color: var(--line);
    background: var(--soft);
}

.footer-main {
    border-radius: var(--radius);
    background: rgba(255,255,255,.86);
    box-shadow: var(--shadow-soft);
}

.cookie-consent {
    border-radius: 20px;
}

.ui-tooltip {
    max-width: min(320px, calc(100vw - 28px));
    border-radius: 14px;
    font-size: .86rem;
}

@media (max-width: 980px) {
    .game-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell,
    body[data-page="game"] .page-shell,
    .site-footer,
    body[data-page="game"] .site-footer {
        width: min(100% - 18px, 1280px);
    }

    .card {
        border-radius: 18px;
        padding: 15px;
        margin-bottom: 12px;
    }

    .hero h1,
    body[data-page="game"] .hero.compact-hero h1 {
        font-size: clamp(1.55rem, 8vw, 2.25rem);
    }

    .subtitle {
        font-size: .94rem;
    }

    .section-head,
    .profile-top,
    .log-head,
    .play-head {
        gap: 10px;
    }

    .profile-actions,
    .button-row,
    .share-buttons {
        display: flex;
        flex-wrap: wrap;
    }

    .btn,
    .top-nav a {
        min-height: 38px;
        padding: 9px 12px;
        font-size: .9rem;
    }

    .compact-stats,
    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-stats div,
    .stats div {
        padding: 9px;
    }

    .compact-stats strong,
    .stats strong {
        font-size: 1.05rem;
    }

    .idle-resource-grid span {
        padding: 7px 5px;
        font-size: .95rem;
    }

    #idleHint {
        font-size: .78rem;
    }
}

@media (max-width: 430px) {
    .compact-stats,
    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .idle-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .idle-help {
        width: fit-content;
    }

    .idle-resource-grid {
        gap: 5px;
    }

    .idle-resource-grid span {
        font-size: .88rem;
        padding-inline: 4px;
    }

    .share-buttons .btn,
    .log-actions .btn {
        flex: 1 1 auto;
    }
}

.link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--accent, #4f46e5);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-button:hover,
.link-button:focus-visible {
    color: var(--accent-strong, #3730a3);
}

/* 1.8.0: email auth and remember UI */
.email-auth-box {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
}
.email-auth-box h3 { margin: 0 0 .35rem; }
.remember-row {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: .65rem 0;
    color: var(--muted);
    font-size: .95rem;
}
.remember-row input { width: auto; }
.auth-card .email-auth-box + .telegram-login,
.auth-card .email-auth-box + .telegram-login + .bot-auth-fallback { margin-top: 1rem; }

.account-link-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}
.account-link-panel h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}
.account-link-panel label {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    font-weight: 700;
}
.account-link-panel input {
    width: 100%;
}

/* 1.8.28: shared auth methods, restored 2x2 layout */
.auth-lead {
    max-width: 760px;
}
.auth-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.auth-methods-grid .auth-method-card {
    min-width: 0;
}
.auth-methods-grid .auth-method-card:nth-child(1) { order: 1; }
.auth-methods-grid .auth-method-card:nth-child(2) { order: 2; }
.auth-methods-grid .auth-method-card:nth-child(3) { order: 3; }
.auth-methods-grid .auth-method-card:nth-child(4) { order: 4; }
.external-auth-list-single {
    align-items: flex-start;
}
.external-auth-list-single .google-login-btn {
    width: fit-content;
    max-width: 100%;
}
.auth-method-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.auth-method-card.is-primary {
    border-color: rgba(249, 115, 22, .30);
    background: linear-gradient(180deg, #fff7ed, rgba(255,255,255,.82));
}
.auth-method-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}
.auth-method-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(15, 23, 42, .06);
    font-size: 1.25rem;
}
.auth-method-head h3 {
    margin: 0 0 4px;
    font-size: 1.08rem;
}
.auth-method-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}
.auth-method-card .email-auth-box,
.auth-method-card .bot-auth-fallback {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.auth-method-card .telegram-login {
    margin-top: 0;
}
.social-login-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.social-login-btn {
    min-height: 58px;
    display: grid;
    gap: 2px;
    place-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 850;
}
.social-login-btn small {
    color: var(--muted);
    font-weight: 700;
}
.social-login-btn.is-disabled {
    opacity: .68;
    cursor: not-allowed;
}
.auth-note {
    margin: 0;
}
@media (max-width: 820px) {
    .auth-methods,
    .social-login-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 821px) and (max-width: 1100px) {
    .social-login-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 1.8.11: compact VK ID auth */
.vkid-auth-box {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    pointer-events: auto;
}
.vkid-auth-box.is-disabled {
    opacity: .7;
}
.vkid-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 38px;
    padding: .45rem;
    border: 0;
    border-radius: 999px;
    background: #0077ff;
    color: #fff;
    font: inherit;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(0, 119, 255, .2);
    cursor: pointer;
    pointer-events: auto;
}
.vkid-login-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}
.vkid-login-btn:disabled {
    cursor: wait;
}
.vkid-auth-box.is-disabled .vkid-login-btn:disabled {
    cursor: not-allowed;
}
.vkid-login-btn.is-loading {
    opacity: .82;
}
.vkid-login-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    color: inherit;
    font-size: .75rem;
    font-weight: 950;
    letter-spacing: -.04em;
}
.vkid-auth-box .hint {
    flex: 1 1 120px;
    margin: 0;
    text-align: left;
}
@media (max-width: 560px) {
    .vkid-auth-box { align-items: flex-start; }
    .vkid-auth-box .hint { flex-basis: 100%; }
}


/* 1.8.15: proper email-link modal after VK redirect */
body.account-link-modal-open {
    overflow: hidden;
}

.account-link-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    width: 100vw;
    height: 100dvh;
    background: rgba(15, 23, 42, .62);
}

.account-link-panel-floating {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1200;
    width: min(420px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: min(620px, calc(100dvh - 28px));
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(216, 222, 233, .95);
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .34);
}

.account-link-panel-floating input {
    max-width: 100%;
}

.account-link-panel-floating .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.account-link-panel-floating .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

@media (min-width: 520px) {
    .account-link-panel-floating .button-row {
        grid-template-columns: minmax(132px, 1.25fr) minmax(112px, 1fr) minmax(92px, .8fr);
    }
}

/* 1.8.18: email-link modal compact request button */
.account-link-panel-floating .account-link-request-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.account-link-panel-floating .account-link-request-row .btn {
    width: auto;
    min-width: 136px;
    max-width: 180px;
    padding-inline: 16px;
    justify-content: center;
    white-space: nowrap;
}

.account-link-panel-floating .account-link-request-btn.is-cooldown,
.account-link-panel-floating .account-link-request-btn.is-cooldown:hover {
    border: 1px solid #d8decf;
    background: #eef2e9;
    color: #697164;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

.account-link-panel-floating .account-link-confirm-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.account-link-panel-floating .account-link-confirm-row[hidden] {
    display: none;
}

.account-link-panel-floating .account-link-confirm-row .btn {
    width: 100%;
}

@media (min-width: 520px) {
    .account-link-panel-floating .account-link-confirm-row {
        grid-template-columns: minmax(150px, 1fr) minmax(96px, .65fr);
    }
}

/* 1.8.19: compact profile actions dropdown */
.profile-menu-wrap {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    align-items: flex-start;
}
.profile-menu-btn {
    white-space: nowrap;
}
.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    display: grid;
    gap: 8px;
    min-width: 190px;
    padding: 10px;
    border: 1px solid rgba(120, 96, 45, .18);
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 18px 40px rgba(56, 40, 12, .18);
}
.profile-menu[hidden] {
    display: none;
}
.profile-menu .btn {
    width: 100%;
    justify-content: flex-start;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .profile-menu-wrap {
        align-self: flex-start;
    }
    .profile-menu {
        right: auto;
        left: 0;
        min-width: 170px;
    }
}

/* 1.8.20: Google OAuth button */
.external-auth-list {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    cursor: pointer;
}
.google-login-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .11);
}
.google-login-btn.is-disabled,
.google-login-btn:disabled {
    opacity: .62;
    cursor: not-allowed;
    transform: none;
}
.google-login-mark {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 42%, #fbbc05 70%, #ea4335 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 950;
}
@media (max-width: 560px) {
    .external-auth-list {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v1.8.22 richer leaderboards */
.leaderboard-list.detailed {
    gap: 10px;
}
.leaderboard-row.detailed-row {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.leaderboard-main {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}
.leaderboard-rank {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    border-radius: 999px;
    background: #ecfdf3;
    color: var(--brand-dark);
    font-weight: 900;
}
.leaderboard-player {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.leaderboard-player strong,
.mini-leaderboard-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leaderboard-stats {
    flex: 0 0 auto;
    text-align: right;
    display: grid;
    gap: 3px;
}
.leaderboard-stats b {
    font-size: 1.08rem;
}
.mini-leaderboard-card {
    border-color: rgba(69, 179, 107, .28);
}
.mini-leaderboard-list {
    display: grid;
    gap: 7px;
}
.mini-leaderboard-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    font-size: .94rem;
}
.mini-leaderboard-rank {
    color: var(--brand-dark);
    font-weight: 900;
}
.mini-leaderboard-score {
    font-weight: 900;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .leaderboard-row.detailed-row {
        align-items: stretch;
        flex-direction: column;
    }
    .leaderboard-stats {
        text-align: left;
        padding-left: 54px;
    }
}

/* 1.8.25: guest landing for GEO/AEO/LEO-ready homepage */
.landing-shell {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.landing-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, .75fr);
    align-items: center;
    gap: 22px;
    padding: clamp(22px, 4vw, 34px);
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 236, 153, .82), transparent 28rem),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(231, 255, 236, .88));
}

.landing-hero-copy h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2rem, 5vw, 4.25rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.landing-lead {
    max-width: 720px;
    margin: 16px 0 0;
    color: #42526a;
    font-size: clamp(1.04rem, 2vw, 1.25rem);
    line-height: 1.55;
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.landing-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    max-width: 560px;
}

.landing-proof-grid span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(69, 179, 107, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
}

.landing-proof-grid strong {
    font-size: 1.35rem;
    line-height: 1;
}

.landing-proof-grid small {
    color: var(--muted);
    font-weight: 750;
}

.landing-bird-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(69, 179, 107, .18);
    border-radius: 28px;
    background: rgba(255, 255, 255, .68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.landing-bird-card img {
    width: min(160px, 46vw);
    height: auto;
    filter: drop-shadow(0 16px 24px rgba(15, 23, 42, .14));
}

.landing-bubble {
    max-width: 260px;
    padding: 12px 14px;
    border-radius: 18px 18px 18px 6px;
    background: #152033;
    color: #fff;
    font-weight: 850;
    line-height: 1.35;
}

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

.landing-feature-card,
.landing-answer-card {
    margin-bottom: 0;
}

.landing-feature-card > span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 17px;
    background: #fff7ed;
    font-size: 1.35rem;
}

.landing-feature-card h3,
.landing-answer-card h3 {
    margin: 0 0 8px;
    font-size: 1.16rem;
}

.landing-feature-card p,
.landing-answer-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.landing-how-card,
.landing-faq-card {
    margin-bottom: 0;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.landing-steps div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.landing-steps strong {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
}

.landing-steps span {
    color: #42526a;
    line-height: 1.45;
    font-weight: 720;
}

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

.landing-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.landing-faq-list details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    overflow: hidden;
}

.landing-faq-list summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 850;
}

.landing-faq-list p {
    margin: 0;
    padding: 0 16px 16px;
    color: var(--muted);
    line-height: 1.55;
}

body.auth-first[data-page="game"] #authCard {
    scroll-margin-top: 18px;
}

@media (max-width: 860px) {
    .landing-hero-card,
    .landing-grid,
    .landing-steps,
    .landing-seo-grid {
        grid-template-columns: 1fr;
    }

    .landing-bird-card {
        order: -1;
    }

    .landing-proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .landing-hero-card {
        padding: 18px;
    }

    .landing-cta-row .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .landing-bubble {
        max-width: 100%;
        font-size: .95rem;
    }
}

@media (max-width: 720px) {
    body.auth-first[data-page="game"] .site-header { order: 0; }
    body.auth-first[data-page="game"] .landing-shell { order: 1; }
    body.auth-first[data-page="game"] #authCard { order: 2; }
    body.auth-first[data-page="game"] #setupCard,
    body.auth-first[data-page="game"] #gameShell { order: 3; }
}

/* 1.8.30: public info pages and content blocks */
.info-page {
    display: grid;
    gap: 14px;
}
.info-page h2 {
    margin: 0;
}
.info-page p {
    margin: 0;
    color: var(--muted, #61594b);
    line-height: 1.65;
}
.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.fact-grid article {
    border: 1px solid rgba(95, 74, 0, .12);
    border-radius: 16px;
    background: rgba(255, 247, 214, .56);
    padding: 14px;
    min-width: 0;
}
.fact-grid strong {
    display: block;
    color: var(--ink, #2d281f);
    margin-bottom: 6px;
}
.fact-grid span {
    display: block;
    color: var(--muted, #6a6152);
    line-height: 1.45;
}
.content-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    background: #fffaf0;
}
.content-table th,
.content-table td {
    border: 1px solid rgba(95, 74, 0, .14);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}
.content-table th {
    width: 30%;
    color: var(--ink, #2d281f);
    background: rgba(143, 209, 79, .16);
}
.clean-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
    color: var(--muted, #61594b);
    line-height: 1.55;
}
.page-updated {
    font-size: .92rem;
    color: #8a7b63 !important;
    border-top: 1px dashed rgba(95, 74, 0, .18);
    padding-top: 12px;
}
.faq-page-list details {
    border: 1px solid rgba(95, 74, 0, .12);
    border-radius: 14px;
    background: #fffaf0;
    padding: 12px 14px;
}
.faq-page-list details + details {
    margin-top: 10px;
}
.faq-page-list summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--ink, #2d281f);
}
.faq-page-list p {
    margin-top: 10px;
}
@media (max-width: 860px) {
    .fact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .fact-grid {
        grid-template-columns: 1fr;
    }
    .content-table th,
    .content-table td {
        display: block;
        width: 100%;
    }
}

.metrika-pixel {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    border: 0;
}


/* 1.8.43: visible ticket create feedback */
.ticket-create-hint {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7d6;
    color: #674900;
    font-weight: 800;
}

/* Tickets */
.ticket-panel-floating {
    position: fixed;
    z-index: 80;
    inset: min(4vh, 28px) 16px auto 16px;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: 0 auto;
    overflow: auto;
    background: var(--card-bg, #fffdf8);
    border: 1px solid rgba(96, 72, 25, .16);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(45, 32, 12, .28);
    padding: 22px;
}
.ticket-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.ticket-create-form { display:grid; grid-template-columns: minmax(150px, .7fr) minmax(220px, 1.3fr); gap:12px; margin:16px 0; }
.ticket-create-form .wide { grid-column: 1 / -1; }
.ticket-create-form textarea, .ticket-reply-form textarea { min-height: 96px; resize: vertical; }
.ticket-reward-guide, .ticket-admin-guide { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.ticket-reward-guide span, .ticket-admin-guide span { background:#fff7d6; border:1px solid rgba(195,151,36,.22); border-radius:999px; padding:7px 10px; font-size:.88rem; }
.ticket-layout, .admin-ticket-layout { display:grid; grid-template-columns: minmax(220px, .85fr) minmax(280px, 1.15fr); gap:14px; align-items:start; }
.ticket-list, .admin-ticket-list { display:grid; gap:8px; max-height:420px; overflow:auto; padding-right:4px; }
.ticket-list-item, .admin-ticket-item { text-align:left; border:1px solid rgba(87,67,24,.14); background:#fffaf0; border-radius:16px; padding:11px 12px; cursor:pointer; display:grid; gap:4px; color:inherit; }
.ticket-list-item.is-active, .admin-ticket-item.is-active { border-color:#7fcb3f; box-shadow:0 0 0 2px rgba(127,203,63,.14); background:#fbfff2; }
.ticket-title { font-weight:800; }
.ticket-meta { color:#756c5a; font-size:.86rem; }
.ticket-thread, .admin-ticket-detail { border:1px solid rgba(87,67,24,.12); border-radius:18px; padding:14px; background:#fffdf8; }
.ticket-thread-head h4 { margin:.1rem 0 .25rem; }
.ticket-messages { display:grid; gap:10px; max-height:360px; overflow:auto; margin-top:10px; }
.ticket-message { border-radius:16px; padding:10px 12px; background:#f6f0e2; }
.ticket-message.is-player { background:#eef9df; }
.ticket-message.is-admin { background:#fff2cf; }
.ticket-message.is-system { background:#edf2ff; }
.ticket-message strong { display:block; margin-bottom:4px; }
.ticket-message p { margin:.1rem 0 .35rem; white-space:pre-wrap; }
.ticket-message small { color:#7b7466; }
.ticket-reply-form, .admin-ticket-reply { display:grid; gap:10px; margin-top:12px; }
.ticket-status { display:inline-block; border-radius:999px; padding:2px 8px; font-style:normal; font-weight:800; font-size:.8rem; }
.status-created { background:#fff3c4; color:#6c4c00; }
.status-in_progress { background:#dff4ff; color:#07526e; }
.status-review { background:#eee6ff; color:#4b2c83; }
.status-done { background:#ddf8d7; color:#1c641d; }
.admin-ticket-controls { display:grid; grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) auto; gap:10px; align-items:end; margin:10px 0; }
.admin-ticket-messages { max-height:460px; }
@media (max-width: 760px) {
    .ticket-panel-floating { inset:8px; width:calc(100vw - 16px); max-height:calc(100dvh - 16px); padding:16px; border-radius:20px; }
    .ticket-create-form, .ticket-layout, .admin-ticket-layout, .admin-ticket-controls { grid-template-columns:1fr; }
}

/* 1.8.43: public tickets and fixed ticket modal layering */
.landing-real-note,
.info-accent {
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(127, 203, 63, .28);
    border-radius: 16px;
    background: rgba(246, 255, 231, .86);
    color: #3f5f19;
    font-weight: 800;
}

.ticket-panel-floating {
    z-index: 1210;
}

.ticket-backdrop {
    z-index: 1200;
}

.tickets-public-card {
    display: grid;
    gap: 16px;
}

.public-ticket-note {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid rgba(127, 203, 63, .24);
    border-radius: 18px;
    background: #fbfff2;
    color: #4b5a34;
}

.public-ticket-list {
    display: grid;
    gap: 12px;
}

.public-ticket-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 18px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(87, 67, 24, .14);
    border-radius: 22px;
    background: #fffdf8;
    box-shadow: 0 14px 36px rgba(45, 32, 12, .08);
}

.public-ticket-main {
    display: grid;
    gap: 8px;
}

.public-ticket-main h3 {
    margin: 0;
    font-size: 1.12rem;
}

.public-ticket-main p {
    margin: 0;
    color: #5f5748;
    line-height: 1.5;
}

.public-ticket-topline,
.public-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.public-ticket-meta {
    color: #7b7466;
    font-size: .88rem;
}

.public-ticket-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    background: #fff3c4;
    color: #6c4c00;
    font-weight: 800;
    font-size: .82rem;
}

.public-ticket-pill.reward {
    background: #eef9df;
    color: #2f6b12;
}

.public-ticket-vote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: #f7f1e5;
    text-align: center;
}

.public-ticket-vote-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #fffdf8;
    border: 1px solid rgba(87, 67, 24, .1);
}

.public-ticket-vote strong {
    font-size: 2rem;
    line-height: 1;
}

.public-ticket-vote span {
    color: #7b7466;
    font-size: .85rem;
    white-space: nowrap;
}

.public-ticket-vote-btn {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .public-ticket-card {
        grid-template-columns: 1fr;
    }
    .public-ticket-vote {
        flex-direction: row;
        align-items: center;
    }
    .public-ticket-vote-count {
        flex: 1 1 auto;
    }
    .public-ticket-vote-btn {
        flex: 0 0 auto;
        width: auto;
    }
}

.field-rules {
    display: block;
    margin-top: 8px;
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--muted, #6f6a5f);
}

.field-rules summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    font-weight: 800;
    color: var(--accent-strong, #5c7c16);
    border-bottom: 1px dashed rgba(92, 124, 22, 0.45);
}

.field-rules summary::-webkit-details-marker {
    display: none;
}

.field-rules summary::after {
    content: '?';
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 214, 102, 0.55);
    color: #5d4300;
    font-size: 0.74rem;
}

.field-rules span {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 248, 224, 0.78);
    border: 1px solid rgba(185, 143, 42, 0.22);
}

input.field-error,
select.field-error,
textarea.field-error {
    border-color: var(--danger, #d94b4b) !important;
    box-shadow: 0 0 0 3px rgba(217, 75, 75, 0.18) !important;
    background: rgba(255, 244, 244, 0.96);
}

.form-error {
    display: block;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    border: 1px solid rgba(217, 75, 75, 0.38);
    background: rgba(255, 235, 235, 0.94);
    color: var(--danger, #b02f2f) !important;
    font-weight: 800;
}

/* 1.8.53: neat profile setup fields */
.setup-profile-grid.form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 8px;
}

.setup-profile-field {
    min-width: 0;
}

.setup-name-rules {
    margin: 4px 0 12px;
    max-width: 720px;
}

@media (max-width: 720px) {
    .setup-profile-grid.form-grid {
        grid-template-columns: 1fr;
    }
}


/* 1.8.57: compact grouped footer */
@media (max-width: 520px) {
    .site-footer { width: min(100% - 20px, 1120px); }
    .footer-main { padding: 16px; border-radius: 20px; }
    .footer-links.footer-link-groups { grid-template-columns: 1fr; gap: 12px; }
    .footer-link-group { padding-top: 10px; border-top: 1px solid var(--line); }
    .footer-link-group:first-child { padding-top: 0; border-top: 0; }
}


/* 1.8.58: game logo placement */
.hero-logo {
    width: clamp(88px, 14vw, 128px);
    height: auto;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(15, 23, 42, .16));
}

.landing-bird-card .landing-logo {
    width: min(260px, 58vw);
    max-width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 18px 26px rgba(15, 23, 42, .18));
}

.landing-bird-card {
    align-self: stretch;
    align-content: center;
}

@media (max-width: 720px) {
    .hero-logo {
        width: min(112px, 42vw);
        align-self: flex-end;
    }
}

@media (max-width: 560px) {
    .landing-bird-card .landing-logo {
        width: min(230px, 72vw);
    }
}

/* 2.0.10: ticket bounty program information */
.ticket-bounty-card {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.1fr);
    gap: 18px;
    align-items: start;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(195,151,36,.22);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,247,214,.92), rgba(255,255,255,.96));
    box-shadow: 0 12px 28px rgba(112,83,31,.08);
}
.ticket-bounty-card h2 { margin: 0 0 8px; }
.ticket-bounty-card p { margin: 0; color: #6f6658; line-height: 1.55; }
.ticket-bounty-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ticket-bounty-grid article,
.ticket-bounty-mini {
    border: 1px solid rgba(82,62,31,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.75);
    padding: 12px;
}
.ticket-bounty-grid strong { display: block; margin-bottom: 5px; }
.ticket-bounty-grid span,
.ticket-bounty-mini {
    color: #6f6658;
    font-size: .92rem;
    line-height: 1.45;
}
.ticket-bounty-mini { margin: 10px 0 14px; }
.ticket-bounty-mini strong { color: #3f382f; }
@media (max-width: 760px) {
    .ticket-bounty-card,
    .ticket-bounty-grid { grid-template-columns: 1fr; }
}

/* 2.0.12: normalize daily event effect badge */
.daily-event-card small,
#dailyEventEffect {
    display: block;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, .22);
    background: #ffedd5;
    color: var(--accent-dark);
    font-weight: 900;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}
