.account-shell {
    min-height: 100dvh;
    background: linear-gradient(145deg, #fff7df 0%, #eaf7ff 52%, #fff0f2 100%);
}

.account-shell .header.board,
.account-shell .track,
.account-shell .footer.board,
.account-shell #confetti {
    display: none;
}

.account-shell .game.board {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 100dvh;
    padding: 0;
    border: 0;
    justify-content: flex-start;
    background: transparent;
    box-sizing: border-box;
}

.account-page,
.admin-page {
    width: min(960px, calc(100% - 28px));
    margin: clamp(24px, 5dvh, 56px) auto;
    color: var(--text-main);
    text-align: left;
}

.account-page { display: grid; gap: 20px; padding-bottom: 44px; }
.account-page-narrow { width: min(520px, calc(100% - 28px)); }
.account-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.account-brand { color: var(--text-main); font-size: 1.15rem; font-weight: 900; text-decoration: none; }
.account-back, .admin-link { color: var(--text-main); font-weight: 800; text-decoration: none; }
.account-hero { text-align: center; }
.account-hero h2, .admin-heading h2 { margin: 12px 0 8px; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1; }
.account-hero p { max-width: 680px; margin: 0 auto; color: var(--text-muted); font-size: 1.08rem; font-weight: 700; line-height: 1.5; }
.account-badge { display: inline-flex; padding: 9px 14px; border-radius: 8px; background: var(--sun); font-weight: 900; }
.access-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; border: 0; }
.access-plan, .access-code-form, .admin-card, .admin-alert { padding: clamp(18px, 3vw, 28px); border-radius: 12px; background: rgba(255,255,255,.8); box-shadow: var(--shadow-soft); box-sizing: border-box; }
.access-plan { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; min-height: 154px; border: 3px solid transparent; cursor: pointer; transition: border-color .18s, transform .18s, background .18s; }
.access-plan:hover { transform: translateY(-2px); background: #fff; }
.access-plan input { position: absolute; opacity: 0; pointer-events: none; }
.access-plan:has(input:checked) { border-color: var(--mint); background: #fff; }
.access-plan-check { display: block; width: 22px; height: 22px; margin-top: 2px; border: 2px solid #9ba8ae; border-radius: 50%; box-sizing: border-box; }
.access-plan input:checked + .access-plan-check { border: 7px solid #25a783; }
.access-plan-copy { display: grid; gap: 7px; }
.access-plan-copy small { color: #087769; font-size: .9rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.access-plan-copy strong { color: var(--text-main); font-size: 1.35rem; }
.access-plan-copy > span { color: var(--text-muted); font-weight: 700; line-height: 1.4; }
.access-code-form { display: grid; gap: 12px; }
.access-code-form label, .admin-form label { font-weight: 900; }
.access-code-block { display: grid; gap: 12px; padding-top: 6px; }
.access-code-heading { display: grid; gap: 3px; }
.access-code-heading strong { font-size: 1.1rem; }
.access-code-heading span { color: var(--text-muted); font-weight: 700; }
.access-code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.access-code-form input, .admin-page input, .admin-page select { min-height: 48px; padding: 0 14px; border: 2px solid rgba(37,48,68,.12); border-radius: 8px; background: #fff; color: var(--text-main); font: inherit; box-sizing: border-box; }
.access-code-form button, .admin-page button, .account-primary-link { min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.account-primary-link { display: inline-flex; align-items: center; justify-content: center; justify-self: center; text-decoration: none; }
.form-error { margin: 0; color: #b42318; font-weight: 800; }
.form-note { margin: 0; color: var(--text-muted); font-size: .92rem; }
.admin-page { display: grid; gap: 18px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-heading h2 { margin-bottom: 0; }
.admin-heading p { margin: 8px 0 0; color: var(--text-muted); font-weight: 700; }
.admin-heading-actions { display: flex; align-items: center; gap: 8px; }
.admin-heading-actions form { margin: 0; }
.admin-card h3 { margin: 0 0 18px; font-size: 1.5rem; }
.admin-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #e9fff7; }
.admin-alert > div { display: grid; gap: 4px; }
.admin-alert strong { font-size: 1.3rem; letter-spacing: .08em; }
.admin-form { display: grid; gap: 18px; }
.admin-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.admin-fields label { display: grid; gap: 7px; font-size: .88rem; }
.admin-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px 16px; border: 0; padding: 0; }
.admin-games legend { width: 100%; margin-bottom: 12px; font-weight: 900; }
.admin-games legend > span:first-child { float: left; }
.admin-game-actions { float: right; display: inline-flex; gap: 8px; }
.admin-text-button { min-height: auto !important; padding: 2px 0 !important; background: transparent !important; color: #087769 !important; font-size: .88rem !important; }
.admin-games label { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.admin-games input { min-height: 0; }
.admin-inline-form { display: grid; grid-template-columns: 2fr 1fr 1.4fr auto; gap: 10px; margin-bottom: 18px; }
.admin-secondary { min-height: 36px !important; padding: 0 12px !important; background: #edf3f6 !important; color: var(--text-main) !important; }
.admin-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid rgba(37,48,68,.1); text-align: left; white-space: nowrap; }
.admin-code-cell { display: flex; align-items: center; gap: 8px; }
.admin-code-cell form { margin: 0; }
.admin-code-cell code { padding: 7px 9px; border-radius: 6px; background: #edf3f6; color: var(--text-main); font-size: .92rem; font-weight: 900; }
.admin-copy-mini { min-height: 32px !important; padding: 0 9px !important; background: #97e8d2 !important; color: var(--text-main) !important; font-size: .78rem !important; }
.feedback-list { display: grid; gap: 10px; }
.feedback-item { padding: 14px; border: 2px solid rgba(37,48,68,.1); border-radius: 8px; }
.feedback-item > div { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: .88rem; }
.feedback-item p { white-space: pre-wrap; }
.feedback-item form { display: flex; gap: 8px; justify-content: flex-end; }
.feedback-done { opacity: .65; }

@media (max-width: 760px) {
    .access-plans, .admin-fields, .admin-games { grid-template-columns: 1fr; }
    .access-code-row, .admin-inline-form { grid-template-columns: 1fr; }
    .admin-heading, .admin-alert { align-items: flex-start; flex-direction: column; }
    .admin-heading-actions { width: 100%; justify-content: space-between; }
    .account-page, .admin-page { margin-top: 18px; }
    .account-topbar { align-items: flex-start; }
    .account-back { text-align: right; }
    .access-plan { min-height: 0; }
    .admin-games legend > span:first-child, .admin-game-actions { float: none; }
    .admin-games legend { display: grid; gap: 8px; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; box-sizing: border-box; }
    .admin-table thead { display: none; }
    .admin-table tr { padding: 14px; border: 2px solid rgba(37,48,68,.09); border-radius: 10px; }
    .admin-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border: 0; white-space: normal; }
    .admin-table td[data-label]::before { content: attr(data-label); flex: 0 0 88px; color: var(--text-muted); font-size: .8rem; font-weight: 900; }
    .admin-code-cell { flex-wrap: wrap; }
    .admin-code-cell code { word-break: break-all; }
}

@media (max-width: 430px) {
    .account-page, .admin-page { width: calc(100% - 20px); }
    .account-hero h2, .admin-heading h2 { font-size: 2rem; }
    .account-hero p { font-size: .98rem; }
    .access-plan, .access-code-form, .admin-card, .admin-alert { padding: 16px; }
    .access-code-form { gap: 16px; }
    .access-code-row button { width: 100%; }
    .admin-heading-actions { flex-wrap: wrap; }
}

/* Compact activation page; admin screens keep their own layout. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.access-shell .account-page { width:min(720px,calc(100% - 40px)); gap:28px; }
.access-shell .account-topbar { min-height:36px; font-size:14px; }.access-shell .account-brand { font-size:16px; }
.access-shell .account-hero { text-align:left; }.access-shell .account-hero h2 { font-size:clamp(28px,4vw,38px); line-height:1.12; margin:14px 0 10px; letter-spacing:-.03em; }.access-shell .account-hero p { margin:0; font-size:15px; font-weight:400; max-width:530px; }
.access-shell .account-badge { background:#e0f3e9; color:#087769; font-size:13px; padding:7px 11px; border-radius:20px; }
.access-shell .access-code-form { padding:0; background:transparent; box-shadow:none; gap:24px; }
.access-shell .access-plan { padding:20px; border-radius:18px; min-height:154px; gap:12px; box-shadow:none; border:2px solid #e1e8e5; }.access-shell .access-plan:has(input:checked) { border-color:#25a783; background:#f3fff9; }.access-plan:has(input:focus-visible) { outline:3px solid #087769; outline-offset:3px; }
.access-shell .access-plan-copy small { font-size:12px; }.access-shell .access-plan-copy strong { font-size:20px; }.access-shell .access-plan-copy > span { font-size:14px; font-weight:400; }
.access-shell .access-code-block { background:white; padding:24px; border-radius:18px; gap:16px; }.access-shell .access-code-heading span { font-size:14px; font-weight:400; }.access-shell .access-code-row { grid-template-columns:minmax(0,1fr) auto; }.access-shell .access-code-row input { width:100%; min-width:0; }.access-shell .form-note { font-size:13px; }.access-shell .access-code-row button { font-size:15px; }
@media(max-width:580px) { .access-shell .access-plans,.access-shell .access-code-row { grid-template-columns:1fr; }.access-shell .access-plan { min-height:0; padding:18px; }.access-shell .account-page { margin-top:22px; gap:24px; }.access-shell .account-topbar { gap:12px; flex-wrap:wrap; }.access-shell .access-code-block { padding:20px; } }
