/* MeteorBall - presentation of the original screens using the original assets. */

:root {
    --mb-text: #f1ecec;          /* legacy toolbox panel colour #FFF1ECEC */
    --mb-panel: rgba(12, 11, 11, 0.85); /* legacy options panel #FF0C0B0B */
    --mb-accent: #ffd34d;
}

html, body {
    margin: 0;
    height: 100%;
    background: #000;
    color: var(--mb-text);
    font-family: "Segoe UI", system-ui, sans-serif;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

img { -webkit-user-drag: none; }

.screen {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.image-button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}
.image-button img { width: 100%; height: auto; }
/* Keyboard focus: a clear ring on everything the player can use, without changing mouse/touch visuals. */
.image-button:focus-visible,
.tile:focus-visible,
.toolbox-item:focus-visible,
.level-button:focus-visible,
.options-switch:focus-visible,
.options-close:focus-visible { outline: 3px solid var(--mb-accent); outline-offset: 2px; }
.tile:focus-visible { outline-offset: -3px; z-index: 2; }

/* Original sprite strips: the strip slides one frame at a time inside a clipping box. */
.sprite { position: absolute; overflow: hidden; pointer-events: none; }
.sprite img { position: absolute; top: 0; left: 0; height: 100%; }
@keyframes sprite-play { to { transform: translateX(-100%); } }

/* ---------- Main menu (MainMenu.xaml) ---------- */
.main-menu { background: #000; }
.menu-earth {
    position: absolute;
    width: min(100vmin, 1024px);
    left: 50%;
    top: 38%;
    transform: translateX(-50%);
}
.menu-cloud { position: absolute; width: 220vw; top: -10vh; height: 120vh; opacity: 0.7; pointer-events: none; }
.menu-cloud-1 { left: 0; animation: cloud-left 120s linear infinite alternate; }
.menu-cloud-2 { left: -120vw; opacity: 0.5; animation: cloud-right 140s linear infinite alternate; }
@keyframes cloud-left { to { transform: translateX(-100vw); opacity: 0.3; } }
@keyframes cloud-right { to { transform: translateX(100vw); opacity: 0.2; } }
.menu-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    padding-top: 8vh;
}
.menu-logo { width: min(90vw, 893px); }
.menu-title { margin: 0; line-height: 0; }
.menu-play, .menu-options { width: min(60vw, 263px); }

/* Options panel (legacy grdOptions: #FF0C0B0B, rounded corners) */
.options-panel {
    position: relative;
    width: min(340px, 90vw);
    background: #0c0b0b;
    border: 4px solid #3a3535;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.options-title { margin: 0; font-size: 1.4rem; }
.options-close {
    position: absolute; top: 6px; right: 6px;
    width: 48px; height: 48px;
    background: none; border: 0; color: var(--mb-text);
    font-size: 1.8rem; font-weight: 700; cursor: pointer;
}
.options-switches { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.options-switch {
    min-height: 48px;
    padding: 8px 16px;
    background: #2a2626;
    color: var(--mb-text);
    border: 2px solid #4a4444;
    border-radius: 10px;
    font: inherit;
    font-size: 1.05rem;
    cursor: pointer;
}
.options-switch[aria-checked="false"] strong { color: #b9a9a9; }
.options-switch[aria-checked="true"] strong { color: var(--mb-accent); }
.options-clear { width: min(263px, 80%); }
.options-status { margin: 0; text-align: center; }
.options-confirm { text-align: center; }
.options-confirm h3 { margin: 0 0 6px; }
.options-confirm p { margin: 0 0 14px; }
.options-confirm-buttons { display: flex; gap: 12px; justify-content: center; }
.options-confirm-buttons .options-switch { min-width: 96px; }

/* ---------- Level select (LevelSelection.xaml, LevelSelect.xaml) ---------- */
.level-select { background: #000; }
.orion {
    position: absolute;
    width: 250vmax;
    height: 250vmax;
    left: calc(50% - 125vmax);
    top: calc(50% - 125vmax);
    pointer-events: none;
}
.orion-1 { animation: orion-spin 900s linear infinite; }
.orion-2 { animation: orion-spin 900s linear infinite reverse; opacity: 0.6; }
@keyframes orion-spin { to { transform: rotate(360deg); } }
.level-select-content {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
}
.level-back { width: 64px; position: sticky; top: 0; z-index: 2; }
.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 8px auto 32px;
}
.level-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: 0;
    padding: 0;
    color: var(--mb-text);
    cursor: pointer;
    font: inherit;
}
.level-button:disabled { cursor: default; }
.level-planet { position: relative; width: 100%; aspect-ratio: 1; }
.level-earth { position: absolute; inset: 6%; width: 88%; }
.level-button.locked .level-earth { filter: grayscale(0.8) brightness(0.5); }
.level-number {
    position: absolute; top: 0; left: 4%;
    font-size: 1.3rem; font-weight: 700; text-shadow: 0 0 4px #000;
}
.level-lock { position: absolute; width: 34%; left: 33%; top: 30%; }
.level-stars { position: absolute; left: 8%; width: 84%; bottom: 0; }
.level-name { font-weight: 600; text-shadow: 0 0 4px #000, 0 0 2px #000; line-height: 1.2; }
.level-score { font-size: 0.85rem; text-shadow: 0 0 3px #000; }

/* ---------- Play (Play.xaml, GameBoard.xaml, GameControls.xaml) ---------- */
/* The background image is set inline from its fingerprinted URL. */
.play { background: #000 center / cover no-repeat; }
.play-layout {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2vmin;
    padding: 1vmin;
    box-sizing: border-box;
}
.board-area {
    /* Leave room for the meteor's start position just outside the board (7.5% of the board). */
    /* Board + header + padding stays within the viewport: 1.22 x board + header text. */
    --board-size: min(calc((100vh - 2.5rem) / 1.22), calc(100vw - 440px));
    width: var(--board-size);
    padding: calc(var(--board-size) * 0.08);
    padding-top: calc(var(--board-size) * 0.04);
    box-sizing: content-box;
}
.play-header {
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.9rem, 2.2vmin, 1.4rem);
    font-weight: 600;
    text-shadow: 0 0 4px #000;
    margin-bottom: calc(var(--board-size) * 0.08);
}
.board {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}
.board > * { position: absolute; }
.board-earth { top: 1%; left: 0; width: 100%; height: 100%; pointer-events: none; }
.tile { touch-action: manipulation; cursor: pointer; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.meteor, .explosion { z-index: 3; }
.board-close { top: -9%; right: -9%; width: max(8%, 40px); z-index: 4; }

.controls-area { width: 400px; max-width: 100%; }
.game-controls, .tutorial {
    background: var(--mb-panel);
    border-radius: 12px;
    padding: 12px;
}
.control-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.control-buttons .image-button { width: 72px; }
.control-spacer { flex: 1; }
.countdown-clock { position: relative; width: 72px; height: 72px; overflow: hidden; }
.countdown-clock img { position: absolute; top: 0; left: 0; height: 100%; }
.toolbox {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 12px;
    padding: 6px;
    background: var(--mb-text);
    border-radius: 6px;
    min-height: 72px;
}
.toolbox-item { position: relative; flex: 0 0 72px; height: 72px; cursor: grab; touch-action: manipulation; }
.toolbox-item img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.toolbox-item.picked { outline: 3px solid var(--mb-accent); outline-offset: -3px; }
.tutorial { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tutorial-image { width: min(250px, 70vw); }
.tutorial-next { width: 96px; }

/* Score and award boxes (ScoreCalculation.xaml, LevelAwardOptions.xaml) */
.overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10;
}
.score-box {
    min-width: min(360px, 90vw);
    background: var(--mb-panel);
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 1.3rem;
}
.score-row { display: flex; justify-content: space-between; gap: 24px; padding: 4px 0; }
.score-row.total { border-top: 1px solid var(--mb-text); margin-top: 8px; padding-top: 8px; font-weight: 700; }
.score-next { display: block; width: 80px; margin: 16px auto 0; }
.award-box {
    position: relative;
    width: min(400px, 92vw);
    aspect-ratio: 4 / 3;
    background: #000 center / cover no-repeat;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
    box-sizing: border-box;
}
.award-stars { width: 70%; }
.award-highscore { position: absolute; right: -6%; top: -10%; width: 35%; transform: rotate(12deg); }
.award-score { display: flex; align-items: center; gap: 8px; font-size: 1.6rem; font-weight: 700; text-shadow: 0 0 4px #000; }
.award-score img { width: 100px; }
.award-perfect { font-size: 0.9rem; text-shadow: 0 0 3px #000; }
.award-buttons { display: flex; gap: 12px; margin-top: 8px; }
.award-buttons .image-button { width: 64px; }

/* Narrow screens (portrait tablets and phones): controls go under the board. */
@media (max-aspect-ratio: 1/1), (max-width: 820px) {
    html, body { overflow: auto; }
    .play-layout { flex-direction: column; justify-content: flex-start; overflow-y: auto; }
    .board-area { --board-size: min(82vw, calc((100vh - 14rem) / 1.22)); }
    .controls-area { width: min(100%, 560px); }
    .control-buttons .image-button, .countdown-clock { width: 56px; }
    .countdown-clock { height: 56px; }
    .toolbox-item { flex-basis: 56px; height: 56px; }
}

/* ---------- Main menu: Level Creator (original Sandbox button) ---------- */
.menu-creator { width: min(60vw, 263px); }

/* ---------- Level Creator (the original Sandbox, SandBox.xaml / SandBoxControls.xaml) ---------- */
.creator { background: #000 center / cover no-repeat; overflow-y: auto; }
.creator-top {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 16px; background: var(--mb-panel);
}
.creator-back { width: 48px; }
.creator-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.creator-name input {
    min-width: 220px; padding: 8px 10px; font: inherit; font-size: 1.05rem;
    color: var(--mb-text); background: #2a2626; border: 2px solid #4a4444; border-radius: 8px;
}
.creator-name input:focus-visible { outline: 3px solid var(--mb-accent); }
.creator-status { padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.creator-status.verified { background: #1f5a2a; color: #d9ffd9; }
.creator-status.unverified { background: #5a4a1f; color: #fff1c9; }
.creator-unsaved { font-style: italic; color: #d8cccc; }

.creator-layout {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) minmax(260px, 320px);
    gap: 16px;
    padding: 16px;
    align-items: start;
}
.creator-panel { background: var(--mb-panel); border-radius: 12px; padding: 12px; }
.creator-panel h2 { margin: 0 0 6px; font-size: 1.1rem; }
.creator-hint { margin: 0 0 8px; font-size: 0.85rem; color: #d8cccc; }

.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.palette-item {
    position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 6px;
    background: none; cursor: grab;
}
.palette-item img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.palette-item:hover { border-color: var(--mb-accent); }
.palette-item:focus-visible { outline: 3px solid var(--mb-accent); outline-offset: 1px; }
.creator-tile-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 56px; }
.creator-tile-actions .image-button { width: 52px; }

.creator-board-area {
    --board-size: min(calc((100vh - 9rem) / 1.12), 100%);
    width: var(--board-size);
    max-width: 100%;
    justify-self: center;
    padding: calc(var(--board-size) * 0.08) 0 0 calc(var(--board-size) * 0.08);
    box-sizing: border-box;
}
.creator-board { width: 100%; }
.start-marker {
    position: absolute; z-index: 2; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 211, 77, 0.18); color: var(--mb-accent); font-size: clamp(0.7rem, 1.6vw, 1.2rem);
    cursor: pointer; display: grid; place-items: center;
}
.start-marker:hover, .start-marker:focus-visible { background: rgba(255, 211, 77, 0.45); outline: 2px solid var(--mb-accent); }
.start-marker.current { background: transparent; pointer-events: none; }
.creator-start { display: flex; align-items: center; gap: 10px; margin-top: 10px; text-shadow: 0 0 3px #000; }
.creator-start .image-button { width: 52px; }

.toolbox-editor { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toolbox-editor li { display: grid; grid-template-columns: 44px 1fr 40px 2ch 40px; align-items: center; gap: 6px; }
.toolbox-editor-art { position: relative; width: 44px; height: 44px; }
.toolbox-editor-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.toolbox-editor-name { font-size: 0.9rem; }
.qty {
    width: 40px; height: 40px; font-size: 1.3rem; font-weight: 700; border-radius: 8px; cursor: pointer;
    color: var(--mb-text); background: #2a2626; border: 2px solid #4a4444;
}
.qty:disabled { opacity: 0.35; cursor: default; }
.qty:focus-visible { outline: 3px solid var(--mb-accent); }
.qty-count { text-align: center; font-weight: 700; }

.creator-time { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.creator-time input { width: 100%; accent-color: var(--mb-accent); }
.creator-messages p { margin: 6px 0; padding: 8px 10px; border-radius: 8px; }
.creator-message.warning { background: #5a2a1f; }
.creator-message.success { background: #1f5a2a; }
.creator-message.info, .creator-message.saved { background: #2a2626; }
.creator-improvement { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.creator-errors { margin: 8px 0; padding-left: 1.2em; color: #ffd1c4; }
.creator-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.creator-actions .image-button { width: 72px; }
.award-creator { margin: 4px 0; padding: 4px 10px; border-radius: 8px; background: rgba(12, 11, 11, 0.8); font-weight: 600; text-align: center; }

/* My Levels */
.library-top { display: flex; align-items: center; gap: 16px; max-width: 900px; margin: 0 auto 12px; }
.library-top h1 { flex: 1; margin: 0; text-shadow: 0 0 6px #000; }
.library-empty { max-width: 900px; margin: 24px auto; font-size: 1.1rem; text-shadow: 0 0 4px #000; }
.library-list { list-style: none; max-width: 900px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.library-item {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
    background: var(--mb-panel); border-radius: 12px; padding: 12px 16px;
}
.library-info { display: flex; flex-direction: column; gap: 6px; }
.library-name { font-size: 1.15rem; }
.library-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.9rem; color: #d8cccc; }
.library-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.library-info input { padding: 6px 8px; font: inherit; color: var(--mb-text); background: #2a2626; border: 2px solid #4a4444; border-radius: 8px; }

/* Creator on tablets and smaller: panels stack under the board. */
@media (max-width: 1100px) {
    .creator-layout { grid-template-columns: 1fr; }
    .creator-board-area { --board-size: min(86vw, calc((100vh - 9rem) / 1.12)); order: -1; }
}

/* ---------- Accounts and publishing (Phase 4) ---------- */
.account-badge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.95rem; text-shadow: 0 0 4px #000; }
.account-badge a, .link-button, .library-intro a, .account-switch a, .account-back, .creator-publish a, .library-meta a { color: var(--mb-accent); }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.account-name { font-weight: 700; }
.menu-account { position: absolute; right: 16px; bottom: 12px; }
.level-select-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 2; }
.level-tab { width: 150px; }
.library-intro { max-width: 900px; margin: 0 auto 12px; text-shadow: 0 0 4px #000; }
.community-search { display: flex; gap: 8px; max-width: 900px; margin: 0 auto 14px; flex-wrap: wrap; }
.community-search input { flex: 1; min-width: 180px; padding: 8px 10px; font: inherit; color: var(--mb-text); background: #2a2626; border: 2px solid #4a4444; border-radius: 8px; }
.community-search a { text-decoration: none; display: inline-flex; align-items: center; }
.account-screen { background: #000 center / cover no-repeat; display: grid; place-items: center; overflow-y: auto; }
.account-panel { width: min(420px, 92vw); align-items: stretch; }
.account-logo { width: 70%; align-self: center; }
.account-note, .account-hint { margin: 0; font-size: 0.9rem; color: #d8cccc; }
.account-form { display: flex; flex-direction: column; gap: 10px; }
.account-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.account-form small { font-weight: 400; color: #d8cccc; }
.account-form input { padding: 8px 10px; font: inherit; color: var(--mb-text); background: #2a2626; border: 2px solid #4a4444; border-radius: 8px; }
.account-form input:focus-visible { outline: 3px solid var(--mb-accent); }
.account-problem div { font-weight: 400; }
.account-switch { margin: 0; text-align: center; }
.account-back { text-align: center; }
.creator-publish { margin: 10px 0; padding-top: 10px; border-top: 1px solid #4a4444; }
.creator-publish p { margin: 0 0 8px; }
.publish-button { width: 100%; }

/* Community: sorting, paging, player ratings, leaderboards, reports and moderation. */
.creator-status.moderated { background: #6a1f1f; color: #ffd9d9; }
.community-sorts { display: flex; flex-wrap: wrap; gap: 6px; max-width: 900px; margin: 0 auto 12px; }
.community-sort { padding: 6px 12px; font: inherit; color: var(--mb-text); background: #2a2626; border: 2px solid #4a4444; border-radius: 999px; cursor: pointer; }
.community-sort.active { background: #4a3a1f; border-color: var(--mb-accent); }
.community-pages { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 900px; margin: 14px auto; }
.player-rating { color: #ffe08a; }
.award-layout { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; max-height: 100%; overflow: auto; padding: 8px; box-sizing: border-box; }
.award-side { width: min(320px, 92vw); max-height: 90vh; overflow: auto; padding: 12px 14px; box-sizing: border-box; border-radius: 12px; background: rgba(12, 11, 11, 0.88); font-size: 0.95rem; }
.community-panel section + section { margin-top: 10px; padding-top: 8px; border-top: 1px solid #4a4444; }
.community-panel h2 { font-size: 1rem; margin: 0 0 6px; }
.community-panel p { margin: 4px 0; }
.community-version { font-weight: 400; font-size: 0.85rem; color: #d8cccc; }
.community-problem { color: #ffb3a8; }
.leaderboard { list-style: none; margin: 0; padding: 0; }
.leaderboard li { display: grid; grid-template-columns: 2em 1fr auto; gap: 6px; padding: 2px 0; }
.leaderboard-rank { color: #d8cccc; }
.leaderboard-score { font-weight: 700; }
.rating-stars { display: flex; gap: 4px; }
.rating-star { font-size: 1.6rem; line-height: 1; padding: 0 2px; color: #6a6262; background: none; border: none; cursor: pointer; }
.rating-star.on { color: #ffd34a; }
.rating-star:focus-visible, .community-sort:focus-visible { outline: 2px solid var(--mb-accent); outline-offset: 2px; }
.community-report form { display: flex; flex-direction: column; gap: 6px; }
.community-report select, .community-report textarea, .moderation-note { font: inherit; color: var(--mb-text); background: #2a2626; border: 2px solid #4a4444; border-radius: 8px; padding: 6px 8px; }
.community-report-buttons { display: flex; gap: 10px; align-items: center; }
.moderation-detail { margin-top: 8px; font-size: 0.9rem; }
.moderation-detail h2 { font-size: 1rem; margin: 8px 0 4px; }
.moderation-detail ul { margin: 0; padding-left: 18px; }
.moderation-details-text { color: #d8cccc; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-message { font-weight: 600; }

/* Account pages (Phase 6). */
.account-forgot { display: block; margin-top: 10px; text-align: center; }
.account-notice { margin: 8px 0; }
.account-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; width: 100%; }
.account-details dt { font-weight: 700; }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.account-links { display: flex; gap: 16px; flex-wrap: wrap; }
.account-manage .account-panel section { width: 100%; border-top: 1px solid #3a3535; padding-top: 10px; }
.account-manage .account-panel h2 { font-size: 1.1rem; margin: 6px 0; }
.account-choice { border: 1px solid #3a3535; border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.options-switch.danger:not(:disabled) { border-color: #c0392b; background: #5a1f1f; }
.account-manage .account-panel { max-height: 92vh; overflow-y: auto; }

/* Decorative motion stops for players who ask for reduced motion (the meteor's flight itself is the game). */
@media (prefers-reduced-motion: reduce) {
    .menu-cloud, .orion { animation: none !important; }
    #mb-loading, .mb-loading-bar span { transition: none !important; }
}
.account-manage a, .account-panel .account-links a, .account-panel p a { color: var(--mb-accent); }
.account-choice label { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-weight: 400; }
.account-choice legend { padding: 0 4px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; font-size: 0.95rem; }
.account-nav a { color: var(--mb-accent); }

/* In-game Sound / Music switches in the play header. A struck-through, dimmed label means off. */
.play-audio { display: inline-flex; gap: 6px; }
.play-audio-toggle {
    font: inherit; font-size: 0.8em; font-weight: 600; color: var(--mb-accent);
    background: rgba(12, 11, 11, 0.7); border: 1px solid #5a5252; border-radius: 999px;
    padding: 2px 10px; cursor: pointer; min-height: 28px;
}
.play-audio-toggle.off { color: #9a8f8f; text-decoration: line-through; }
.play-audio-toggle:focus-visible { outline: 3px solid var(--mb-accent); outline-offset: 2px; }
.play-header-actions { display: inline-flex; gap: 6px; align-items: center; }
.play-home { text-decoration: none; display: inline-flex; align-items: center; }
.account-age { display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.account-age input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--mb-accent); }
.account-age label { font-weight: 600; }
.account-panel .account-hint a { color: var(--mb-accent); }
