:root {
    --app-height: 100dvh;
    --bg: #f6f7fb;
    --card: #ffffff;
    --ink: #101828;
    --muted: #667085;
    --line: #d0d5dd;
    --hot: #ff005c;
    --warm: #ff7a00;
    --good: #00c853;
    --blue: #0091ea;
    --shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

html,
body,
html.app-document,
html.app-document body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    color: var(--ink);
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    user-select: none;
}

button,
input {
    font: inherit;
}

button {
    touch-action: manipulation;
    user-select: none;
}

.app-page {
    position: fixed;
    inset: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 0, 0.16), transparent 18rem),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.app-page[data-theme="dark"] {
    --bg: #080d18;
    --card: #101828;
    --ink: #f9fafb;
    --muted: #98a2b3;
    --line: #344054;
}

.app-page[data-theme="neon"] {
    --bg: #080016;
    --card: #140029;
    --ink: #ffffff;
    --muted: #d6bbfb;
    --line: #6941c6;
    --hot: #f000ff;
    --warm: #00e5ff;
}

.app-page[data-theme="gold"] {
    --hot: #111827;
    --warm: #f4c542;
    --blue: #8a5a00;
}

.app-page[data-theme="pink"] {
    --hot: #ff005c;
    --warm: #ff7ab6;
}

.app-page[data-theme="blue"] {
    --hot: #005bea;
    --warm: #00c6fb;
}

.app-shell {
    width: 100%;
    min-width: 0;
    height: var(--app-height, 100dvh);
    max-height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: clamp(4px, 1.2vw, 8px);
    padding:
        max(env(safe-area-inset-top), 6px)
        clamp(6px, 2vw, 10px)
        calc(62px + env(safe-area-inset-bottom));
}

.app-shell > * {
    min-width: 0;
}

.top-app-header {
    position: relative;
    height: clamp(46px, 13vw, 52px);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

.app-page[data-theme="dark"] .top-app-header,
.app-page[data-theme="neon"] .top-app-header,
.app-page[data-theme="dark"] .play-panel,
.app-page[data-theme="neon"] .play-panel,
.app-page[data-theme="dark"] .compact-summary,
.app-page[data-theme="neon"] .compact-summary,
.app-page[data-theme="dark"] .bottom-sheet,
.app-page[data-theme="neon"] .bottom-sheet,
.app-page[data-theme="dark"] .drawer,
.app-page[data-theme="neon"] .drawer {
    background: var(--card);
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 11px;
    background: #111827;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.icon-btn.small {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.apk-download-btn {
    height: 18px;
    min-width: 52px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--good), var(--blue));
    box-shadow: 0 7px 16px rgba(0, 145, 234, 0.24);
}

.apk-download-btn:active {
    transform: translateY(1px) scale(0.98);
}

.app-title {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.app-title strong {
    font-size: clamp(15px, 4.2vw, 19px);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-title span,
.mini-label {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 7px;
    background: linear-gradient(135deg, var(--warm), var(--hot));
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
}

.title-badges {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.language-menu {
    position: absolute;
    z-index: 20;
    right: 44px;
    top: 45px;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.language-menu button {
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 10px 16px;
    text-align: left;
    font-weight: 900;
}

.mode-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 5px;
    min-height: 34px;
}

.mode-chip {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--muted);
    padding: 7px 9px;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-chip.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--warm), var(--hot));
    box-shadow: 0 6px 14px rgba(255, 0, 92, 0.2);
}

.notice-strip {
    position: fixed;
    z-index: 35;
    left: 10px;
    right: 10px;
    top: calc(env(safe-area-inset-top) + 92px);
    min-height: 22px;
    max-height: 28px;
    overflow: hidden;
    border-radius: 999px;
    padding: 5px 9px;
    background: #fffbeb;
    color: #9a3412;
    font-size: clamp(9px, 2.5vw, 11px);
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.play-panel {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 6px;
    padding: clamp(6px, 1.7vw, 10px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

.play-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

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

.play-head strong {
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1;
}

.play-head span:not(.selected-pill) {
    color: var(--muted);
    font-size: clamp(9px, 2.5vw, 11px);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selection-actions {
    width: clamp(78px, 23vw, 96px);
    min-width: clamp(78px, 23vw, 96px);
    display: grid;
    gap: 3px;
}

.selected-pill {
    min-width: 0;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #111827;
    background: #f4c542;
    font-size: 16px;
    line-height: 1;
    font-weight: 950;
    box-shadow: inset 0 0 0 2px #111827;
}

.mini-vote-btn {
    width: 100%;
    height: 22px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--good), var(--blue));
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    box-shadow: 0 6px 14px rgba(0, 145, 234, 0.22);
}

.mini-vote-btn:disabled {
    color: #98a2b3;
    background: #eaecf0;
    box-shadow: none;
}

.context-tip {
    min-height: 17px;
    overflow: hidden;
    border-radius: 999px;
    padding: 4px 8px;
    color: #9a3412;
    background: #fffbeb;
    font-size: clamp(9px, 2.5vw, 11px);
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.guess-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: clamp(2px, 0.7vw, 5px);
}

.guess-grid.number-mode {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
}

.guess-grid.digit-mode {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.guess-grid.choice-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
}

.guess-grid.range-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.guess-btn {
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: clamp(6px, 1.7vw, 10px);
    background: var(--card);
    color: var(--ink);
    padding: 0;
    font-size: clamp(9px, 2.75vw, 15px);
    line-height: 1;
    font-weight: 950;
}

.guess-grid.digit-mode .guess-btn,
.guess-grid.choice-mode .guess-btn,
.guess-grid.range-mode .guess-btn {
    font-size: clamp(18px, 7vw, 32px);
}

.guess-grid.range-mode .guess-btn {
    font-size: clamp(18px, 5.5vw, 26px);
}

.guess-btn.selected {
    border-color: #111827;
    color: #111827;
    background: #f4c542;
    box-shadow: inset 0 0 0 2px #111827;
}

.guess-btn:disabled {
    opacity: 0.62;
}

.compact-summary {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 5px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
}

.summary-cell {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 6px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
}

.summary-cell span {
    font-size: 9px;
    line-height: 1;
    opacity: 0.76;
}

.summary-cell strong {
    margin-top: 2px;
    font-size: clamp(16px, 4.8vw, 22px);
    line-height: 1;
}

.countdown-line {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.app-bottom-nav {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(58px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(16, 24, 40, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 28px rgba(16, 24, 40, 0.14);
}

.nav-btn {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 16px;
}

.nav-btn .icon {
    font-size: 18px;
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--warm), var(--hot));
    box-shadow: 0 8px 18px rgba(255, 0, 92, 0.25);
}

.overlay,
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 38;
    background: rgba(16, 24, 40, 0.36);
}

.drawer {
    position: fixed;
    z-index: 42;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 330px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
    padding: max(env(safe-area-inset-top), 10px) 10px max(env(safe-area-inset-bottom), 10px);
    border-right: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-user {
    padding: 10px;
    border-radius: 12px;
    background: #f2f4f7;
    color: #344054;
    font-size: 12px;
    font-weight: 900;
}

.drawer-list {
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 4px;
    overscroll-behavior: contain;
}

.drawer-list button {
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    padding: 11px 10px;
    text-align: left;
    font-size: 14px;
    font-weight: 850;
}

.drawer-list button:active {
    background: #f2f4f7;
}

.help-status-card {
    display: grid;
    gap: 8px;
}

.help-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bottom-sheet {
    position: fixed;
    z-index: 45;
    left: 8px;
    right: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    max-height: min(58dvh, 430px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(16, 24, 40, 0.3);
}

.sheet-handle {
    justify-self: center;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #d0d5dd;
}

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

.sheet-head > div > span {
    color: var(--hot);
    font-size: 10px;
    font-weight: 950;
}

.sheet-head h2 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1;
}

.sheet-head h2 span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.inline-help-btn {
    width: 19px;
    height: 19px;
    border: 0;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    vertical-align: 1px;
    color: #fff;
    background: linear-gradient(135deg, var(--warm), var(--hot));
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
}

.sheet-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f2f4f7;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.sheet-body {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    display: grid;
    gap: 8px;
}

.sheet-card {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fafafa;
    color: #101828;
}

.sheet-card p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    font-weight: 750;
}

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

.sheet-stat {
    padding: 10px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    text-align: center;
}

.sheet-stat span {
    display: block;
    font-size: 11px;
    opacity: 0.72;
}

.sheet-stat strong {
    display: block;
    margin-top: 5px;
    font-size: 24px;
    line-height: 1;
}

.progress-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 64px;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
}

.trend-card-row {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eaecf0;
}

.rank-badge,
.number-badge {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 34px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
}

.rank-badge {
    color: #fff;
    background: #111827;
}

.number-badge {
    color: #111827;
    background: #f4c542;
    box-shadow: inset 0 0 0 2px #111827;
}

.trend-row-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.trend-row-main strong,
.trend-row-main span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.trend-row-main span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4e7ec;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--warm), var(--hot));
}

.action-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--good), var(--blue));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    font-weight: 950;
}

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

.login-gate {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(16, 24, 40, 0.48);
}

.login-card {
    width: min(calc(100vw - 24px), 380px);
    max-width: 100%;
    max-height: min(86dvh, 560px);
    overflow: auto hidden;
    overscroll-behavior: contain;
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.login-step {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.login-card h2,
.login-card p {
    margin: 0;
}

.login-card p,
.login-card small {
    color: #667085;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 18px;
    font-weight: 900;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--hot);
    font-weight: 950;
    padding: 6px 8px;
}

.app-install-step h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 23px;
    line-height: 1.05;
}

.app-install-step h2::before {
    content: "⬇";
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--warm), var(--hot));
    font-size: 16px;
}

.app-install-step p {
    font-size: 12px;
    line-height: 1.22;
}

.install-benefits,
.notification-options {
    display: grid;
    gap: 5px;
    padding: 8px;
    border-radius: 14px;
    background: #f2f4f7;
    color: #344054;
    font-size: 11px;
    font-weight: 900;
}

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

.install-benefits span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #ecfdf3;
    color: #027a48;
}

.notification-options label {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto;
    place-items: center;
    gap: 3px;
    text-align: center;
    line-height: 1.1;
}

.app-download-action {
    display: grid;
    place-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--warm), var(--hot));
}

.soft-action-btn.wide {
    width: 100%;
    padding: 9px 12px;
}

.whatsapp-action {
    background: linear-gradient(135deg, #00c853, #16a34a);
}

.otp-flow-steps {
    display: grid;
    gap: 5px;
    padding: 8px;
    border-radius: 14px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 12px;
    font-weight: 900;
}

.otp-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    padding: 10px;
    border-radius: 14px;
    background: #f2f4f7;
    color: #101828;
}

.otp-info span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.otp-info strong {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 950;
}

.otp-code-box {
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(0, 200, 83, 0.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.12), rgba(0, 145, 234, 0.12));
    color: #101828;
    text-align: center;
}

.otp-code-box span,
.otp-code-box small {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.otp-code-box strong {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1;
    letter-spacing: 0.18em;
    font-weight: 950;
    color: #00a650;
}

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

.soft-action-btn {
    min-width: 0;
    border: 1px solid rgba(0, 145, 234, 0.22);
    border-radius: 999px;
    background: #eff8ff;
    color: #005c99;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 950;
}

.otp-tip {
    padding: 8px 10px;
    border-radius: 14px;
    background: #fffbeb;
    color: #9a3412 !important;
    font-size: 12px;
    font-weight: 900 !important;
}

.help-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.55);
}

.help-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    max-height: 70dvh;
    overflow: hidden;
    display: grid;
    gap: 12px;
    border-radius: 24px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 16px;
}

.help-hero {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--warm), var(--hot));
}

.help-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 26px;
    line-height: 1;
}

.help-kicker {
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    opacity: 0.86;
}

.help-title {
    margin: 4px 0 0;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
}

.help-message {
    margin: 0;
    max-height: 28dvh;
    overflow: auto;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    overscroll-behavior: contain;
}

.help-actions,
.demo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.demo-actions {
    grid-template-columns: 0.8fr 0.8fr 1fr;
}

.help-keep-btn,
.help-understood-btn {
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 12px;
    font-weight: 900;
}

.help-keep-btn {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
}

.help-understood-btn {
    border: 0;
    background: linear-gradient(135deg, var(--good), var(--blue));
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 145, 234, 0.25);
}

.install-required {
    width: min(92vw, 430px);
    margin: 20vh auto;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
}

@media (max-width: 380px), (max-height: 700px) {
    .app-shell {
        gap: 4px;
        padding-left: 5px;
        padding-right: 5px;
    }
    .top-app-header {
        height: 44px;
    }
    .icon-btn {
        width: 32px;
        height: 32px;
    }
    .app-title strong {
        font-size: 15px;
    }
    .app-title span {
        font-size: 8px;
    }
    .mode-chip {
        padding: 6px 7px;
    }
    .play-panel {
        padding: 5px;
    }
    .guess-btn {
        font-size: clamp(8px, 2.45vw, 12px);
        border-radius: 6px;
    }
    .compact-summary {
        padding: 5px;
    }
    .summary-cell {
        padding: 5px;
    }
}
