:root {
  color-scheme: light;
  --paper: #f6f7f1;
  --white: #fff;
  --ink: #172f28;
  --muted: #52635b;
  --green: #164b38;
  --forest: #15382c;
  --lime: #e2fb9f;
  --line: #dce5d8;
  font-family: "Segoe UI", "Arial", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7955cc; outline-offset: 3px; }
.shell, .header-inner { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
main { flex: 1; padding-block: 34px 62px; }
.site-header { background: #fcfdf9; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 1.16rem; font-weight: 850; letter-spacing: -.055em; line-height: 1; }
.brand-icon { display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: #fff; font-size: 1.44rem; }
.brand-icon span { color: var(--lime); }
.brand-accent { color: #377451; }
.brand small { display: block; margin-top: 5px; font-size: .59rem; letter-spacing: .12em; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 5px; }
nav a { padding: 9px 13px; font-size: .9rem; font-weight: 650; color: var(--muted); text-decoration: none; border-radius: 8px; }
nav a[aria-current="page"] { color: var(--green); background: #eaf2e5; }
.hero { position: relative; overflow: hidden; min-height: 342px; padding: 40px 46px; border-radius: 25px; background: var(--forest); color: #fff; display: grid; grid-template-columns: 1.35fr .85fr; align-items: center; }
.hero::after { content: ""; pointer-events: none; position: absolute; inset: 0 0 0 60%; opacity: .21; background-image: radial-gradient(circle, #c0d7b6 1px, transparent 1.5px); background-size: 19px 19px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero-copy { position: relative; z-index: 1; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); line-height: 1.01; letter-spacing: -.065em; }
.hero h1 span { color: var(--lime); }
.hero p { color: #deebe2; font-size: 1.03rem; line-height: 1.6; margin-top: 20px; max-width: 38ch; }
.hero .actions { margin-top: 25px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: 9px 15px; font-weight: 700; text-decoration: none; line-height: 1.25; text-align: center; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #0e392a; }
.bright { background: var(--lime); color: var(--ink); }
.bright:hover { background: #ecffc2; }
.quiet { border-color: var(--line); background: white; color: var(--green); }
.quiet:hover, .mode-card:hover { border-color: #84aa8b; }
.hero .quiet { background: transparent; color: #fff; border-color: #6a8c7c; }
.hero .quiet:hover { background: #24543f; }
.art { position: relative; z-index: 1; height: 256px; width: min(100%, 340px); justify-self: center; }
.art-card { position: absolute; display: flex; flex-direction: column; justify-content: space-between; width: 158px; height: 182px; border-radius: 17px; padding: 15px; color: #1d392f; box-shadow: 0 12px 22px #0f271e55; }
.art-card strong { font-size: 1.73rem; letter-spacing: -.065em; align-self: center; line-height: 1; }
.art-card small { font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.art-card i { font-style: normal; font-size: 1.7rem; text-align: right; line-height: 1; }
.art-front { top: 27px; left: 12%; background: var(--lime); transform: rotate(-12deg); }
.art-back { right: 0; bottom: 17px; background: #e6dcff; transform: rotate(12deg); }
.art-spark { position: absolute; top: 23px; right: 11%; color: var(--lime); font-size: 2rem; }
.section-title { margin: 32px 0 16px; }
h2 { font-size: clamp(1.54rem, 3vw, 2rem); letter-spacing: -.043em; line-height: 1.15; }
.section-title p, .subhead { color: var(--muted); margin-top: 7px; line-height: 1.5; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); gap: 12px; }
.mode-card { border: 1px solid var(--line); background: white; border-radius: 15px; padding: 15px; display: block; text-decoration: none; min-height: 153px; transition: border-color .16s, transform .16s; }
.mode-card:hover { transform: translateY(-2px); }
.mode-icon { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; color: var(--ink); font-size: 1.18rem; font-weight: 800; }
.mint { background: #d6efda; } .lilac { background: #eadfff; } .peach { background: #ffead8; } .blue { background: #dcecff; } .yellow { background: #f4efbe; }
.mode-card strong { display: block; margin-top: 10px; }
.mode-card small { display: block; margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.example-card { display: grid; gap: 4px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; text-decoration: none; }
.example-card:hover { border-color: #84aa8b; }
.example-card span { color: var(--muted); font-size: .875rem; }
.footer { border-top: 1px solid var(--line); padding-block: 17px; color: var(--muted); font-size: .875rem; }
.footer span { margin-inline: 5px; }
.page { width: min(790px, 100%); margin-inline: auto; }
.page h1 { font-size: clamp(2rem, 5vw, 3.1rem); overflow-wrap: anywhere; }
.page-top { margin-bottom: 23px; }
.page-top .mode-icon { margin-bottom: 10px; }
.panel { background: white; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 17px; }
.panel + .panel { margin-top: 12px; }
.panel h2 { margin-bottom: 13px; }
.fields { display: grid; gap: 12px; }
label { font-weight: 650; }
input, textarea { min-width: 0; width: 100%; padding: 10px 11px; background: #fafffa; border: 1px solid #b6c8b9; border-radius: 8px; color: var(--ink); }
label input, label textarea { display: block; margin-top: 5px; }
.editor-item { display: grid; gap: 5px; }
.question-media { margin: 0 0 3px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbf7; }
.question-media summary { font-size: .9rem; }
.question-media[open] { display: grid; gap: 10px; }
.media-attached { margin-inline-start: 8px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.media-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-edit-grid input { padding: 6px; background: white; }
.question-media small { display: block; margin-top: 4px; color: var(--muted); font-size: .81rem; }
.question-media select { display: block; max-width: 100%; margin-top: 5px; padding: 8px; border: 1px solid #b6c8b9; border-radius: 8px; background-color: white; color: var(--ink); }
.media-preview { margin-top: 8px; }
.media-preview img { display: block; max-width: 100%; max-height: 120px; border-radius: 6px; object-fit: contain; }
.media-preview audio, .wheel-question audio { display: block; width: min(100%, 360px); }
.question-media [data-remove] { margin-top: 7px; min-height: 34px; padding: 5px 9px; font-size: .84rem; }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; }
.column-head { font-size: .9rem; color: var(--muted); font-weight: 650; }
.remove { padding: 0; min-height: 42px; }
.editor-actions { margin-top: 16px; }
.mode-field { margin: 0; min-width: 0; border: 0; padding: 0; }
.mode-field legend { margin-bottom: 6px; padding: 0; font-weight: 650; }
.wheel-settings { margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f9fbf7; }
.wheel-settings .mode-field { margin-top: 9px; }
.wheel-settings p { margin-bottom: 0; }
.mode-choice { position: relative; }
.mode-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.mode-choice span { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.mode-choice input:checked + span { background: #e6f4e3; border-color: #84aa8b; }
.mode-choice input:focus-visible + span { outline: 3px solid #7955cc; outline-offset: 3px; }
.form-error { color: #a02b33; margin-top: 12px; }
details { margin-block: 15px; }
summary { cursor: pointer; color: var(--green); font-weight: 700; }
details p, .share p { color: var(--muted); margin-block: 8px; line-height: 1.5; }
.modes-switch { margin-block: 14px; }
.modes-switch .button[aria-current="page"] { background: #e6f4e3; border-color: #84aa8b; }
.game { --game-color: #3e7653; --game-tint: #eaf5e7; min-height: 335px; display: grid; align-content: start; gap: 20px; }
.game[data-mode="quiz"] { --game-color: #694aa0; --game-tint: #f1eafd; }
.game[data-mode="wheel"] { --game-color: #9c532d; --game-tint: #ffefe2; }
.game[data-mode="cards"] { --game-color: #315e92; --game-tint: #e9f2ff; }
.game[data-mode="spell"] { --game-color: #715910; --game-tint: #fbf3d9; }
.game[data-mode="letters"] { --game-color: #246965; --game-tint: #e5f5f0; }
.game[data-mode="match"] { --game-color: #8e3f64; --game-tint: #faeaf2; }
.mode-icon.teal { background: #d3efe6; color: #1b5148; }
.rose { background: #f9ddea; }
.progress { color: var(--muted); font-size: .95rem; font-weight: 650; }
.game-progress { display: grid; gap: 8px; }
.game-progress-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.game-counters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.game-tally { color: var(--game-color); background: var(--game-tint); padding: 5px 10px; border-radius: 20px; font-size: .875rem; font-weight: 650; }
.timed-intro { display: grid; justify-items: start; gap: 13px; align-self: center; padding: 12px 0; }
.timed-intro h2 { margin: 0; }
.timed-intro > p:not(.timer-pill) { max-width: 46ch; line-height: 1.5; color: var(--muted); }
.timer-pill { background: #e8f2ed; color: #23513a; padding: 5px 10px; border-radius: 20px; font-weight: 650; font-size: .875rem; white-space: nowrap; }
.timer-pill strong, .board-time, .result-time { font-variant-numeric: tabular-nums; }
.timer-pill.running-low { background: #fff0ef; color: #8e2638; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.game progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 30px; overflow: hidden; background: var(--game-tint); accent-color: var(--game-color); }
.game progress::-webkit-progress-bar { background: var(--game-tint); }
.game progress::-webkit-progress-value { background: var(--game-color); transition: width .24s; }
.game progress::-moz-progress-bar { background: var(--game-color); }
.prompt { font-size: clamp(1.6rem, 4vw, 2.65rem); letter-spacing: -.04em; font-weight: 750; overflow-wrap: anywhere; }
.round { display: grid; gap: 13px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { text-align: start; justify-content: flex-start; min-height: 56px; overflow-wrap: anywhere; }
.tile:enabled:hover { background: var(--game-tint); border-color: var(--game-color); }
.memory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr)); gap: 8px; }
.memory-tile { display: flex; flex-direction: column; gap: 5px; min-height: 89px; overflow-wrap: anywhere; min-width: 0; background: #f4f8ef; }
.memory-tile:not([dir]) { background: repeating-linear-gradient(135deg, #f8fbf6 0 8px, #edf5ea 8px 16px); font-size: 1.35rem; }
.memory-tile:not([dir]):hover { background: #e6f4e3; }
.memory-side { font-size: .79rem; color: var(--muted); }
.matching-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 3vw, 23px); align-items: start; }
.matching-column { display: grid; gap: 8px; min-width: 0; }
.matching-column h2 { margin: 0; color: var(--muted); font-size: 1rem; letter-spacing: 0; }
.matching-card { display: flex; flex-direction: column; gap: 5px; width: 100%; min-width: 0; min-height: 55px; padding: 8px; overflow-wrap: anywhere; }
.matching-text { max-width: 100%; }
.matching-image { display: block; width: min(100%, 210px); height: clamp(72px, 17vw, 145px); object-fit: contain; border-radius: 6px; background: #f7f9f5; }
.matching-badge { border-radius: 20px; padding: 2px 6px; background: #fff; font-size: .78rem; }
.matching-message { min-height: 1.4em; }
.selected { border-color: #7955cc; background: #f1eafd; }
.correct { border-color: #6aa078; background: #e3f5e1; }
.incorrect { border-color: #c97b81; background: #fff0ef; }
.button:disabled { cursor: default; }
.status { font-weight: 650; overflow-wrap: anywhere; }
.actions:has(> .next[hidden]:only-child) { display: none; }
.feedback { background: var(--game-tint); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.feedback.correct { border-color: #6aa078; background: #e3f5e1; }
.feedback.incorrect { border-color: #c97b81; background: #fff0ef; }
.flashcard { position: relative; min-height: 188px; width: 100%; padding: 48px 19px 24px; border: 1px solid #9db8d8; border-radius: 17px; background: #e9f2ff; color: var(--ink); overflow-wrap: anywhere; box-shadow: 0 4px 0 #cdddf2; }
.flashcard.face-answer { border-color: #83b092; background: #e2f5e6; box-shadow: 0 4px 0 #c4e3cb; }
.flashcard:hover { filter: brightness(.98); }
.card-side { position: absolute; top: 14px; left: 15px; font-size: .875rem; color: var(--muted); }
.wheel-layout { display: grid; grid-template-columns: minmax(210px, 42%) minmax(0, 1fr); align-items: center; gap: 24px; }
.wheel-wrap { position: relative; width: 100%; max-width: 318px; justify-self: center; }
.wheel-marker { position: absolute; z-index: 1; left: 50%; top: -4px; transform: translateX(-50%); border: 11px solid transparent; border-top: 20px solid var(--ink); }
.wheel-disc { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--forest); display: grid; place-items: center; overflow: hidden; box-shadow: 0 5px 0 #26382c24; transition: transform .85s cubic-bezier(.15,.77,.24,1); }
.wheel-disc.wheel-empty { background: #eaf2eb; }
.wheel-center { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; min-height: 0; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--forest); color: #fff; box-shadow: 0 2px 6px #172f284d; font-size: .82rem; }
.wheel-center:enabled:hover { background: #28614b; }
.wheel-center:enabled:active { background: #0e2e23; }
.wheel-center:disabled { background: #50675b; box-shadow: none; }
.wheel-slice-label { position: absolute; transform: translate(-50%, -50%) rotate(var(--label-angle)); display: grid; place-items: center; width: max-content; max-width: 34%; min-width: 0; color: var(--ink); font-size: .9rem; font-weight: 750; text-align: center; line-height: 1.15; border-radius: 5px; }
.wheel-caption { display: block; width: 100%; min-width: 0; padding: 2px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wheel-slice-label.current { z-index: 1; background: var(--forest); color: #fff; box-shadow: 0 0 0 2px var(--forest); }
.wheel-slice-label.used { opacity: .63; }
.wheel-slice-label.with-image { width: 18%; max-width: 51px; aspect-ratio: 1; padding: 2px; background: #fffffff0; box-shadow: 0 0 0 1px #172f2860; }
.wheel-slice-label.with-image.current { box-shadow: 0 0 0 3px var(--forest); }
.wheel-thumbnail { width: 100%; height: 100%; border-radius: 3px; object-fit: contain; }
.wheel-compact .wheel-slice-label { max-width: 29%; font-size: .8rem; }
.wheel-compact .wheel-slice-label.with-image { width: 12%; max-width: 34px; }
.wheel-dense .wheel-slice-label { max-width: 28%; font-size: .72rem; }
.wheel-dense .wheel-caption { padding: 0 2px; }
.wheel-dense .wheel-slice-label.with-image { width: 8%; max-width: 23px; }
.wheel-hit { display: grid; gap: 6px; min-width: 0; }
.wheel-sector { color: var(--game-color); font-weight: 750; }
.wheel-image { display: block; width: min(100%, 410px); max-height: 260px; object-fit: contain; object-position: center; border: 1px solid #f1dfd2; border-radius: 12px; background: #fffaf5; }
.wheel-question { min-width: 0; }
.wheel-question .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wheel-question .status:empty { display: none; }
.media-status { color: #a02b33; font-size: .9rem; }
.letter-board, .letter-bank { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.letter-board { min-height: 65px; padding: 9px; border: 1px solid #c6ded4; border-radius: 12px; background: var(--game-tint); }
.letter-slot, .letter-fixed { display: inline-grid; place-items: center; font-size: 1.16rem; font-weight: 750; color: var(--ink); }
.letter-slot { width: 43px; min-height: 43px; padding: 3px; border: 1px dashed #85a99f; border-radius: 8px; background: #ffffff9e; overflow-wrap: anywhere; }
.letter-slot.letter-filled { border-style: solid; background: white; }
.letter-fixed { min-height: 43px; max-width: 100%; overflow-wrap: anywhere; }
.letter-space { width: 8px; }
.letter-key { min-width: 44px; min-height: 44px; padding: 7px; color: var(--game-color); background: white; border-color: #b7d7cc; font-size: 1.14rem; }
.letter-key:enabled:hover { background: var(--game-tint); border-color: var(--game-color); }
.letter-key:disabled { opacity: .38; }
.game[data-mode="letters"] .actions .button:disabled { opacity: .5; }
.letter-help { color: var(--muted); font-size: .9rem; }
.letter-board.correct { background: #e3f5e1; border-color: #6aa078; }
.letter-board.incorrect { background: #fff0ef; border-color: #c97b81; }
.result { padding: 17px; border-radius: 12px; background: var(--game-tint); }
.result h2 { margin-bottom: 7px; }
.result-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: var(--game-color); font-weight: 700; }
.review { margin: 0; }
.review ul { display: grid; gap: 8px; padding: 0; margin: 10px 0 0; list-style: none; overflow-wrap: anywhere; }
.review li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.review li p { margin: 4px 0 0; }
.leaderboard summary { font-size: 1.14rem; }
.leaderboard-form { display: grid; justify-items: start; gap: 8px; margin-block: 14px; padding: 14px; border-radius: 10px; background: #edf5ea; }
.leaderboard-form label { width: min(100%, 300px); }
.leaderboard-form p { margin: 0; }
.leaderboard-results, .board-message { margin-top: 12px; }
.board-message:empty { margin-top: 0; }
.leaderboard table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.leaderboard th, .leaderboard td { padding: 9px 5px; border-bottom: 1px solid var(--line); text-align: start; overflow-wrap: anywhere; }
.leaderboard th { color: var(--muted); font-size: .9rem; }
.leaderboard th:first-child { width: 4.3rem; }
.leaderboard th:nth-child(3) { width: 6rem; }
.leaderboard th.board-time { width: 4.5rem; }
.leaderboard td small { display: block; color: var(--muted); }
.leaderboard tbody td:first-child { color: var(--green); font-weight: 750; }
.share { margin-top: 14px; }
.share label { display: block; margin-top: 12px; }
.saved-list { display: grid; gap: 10px; }
.cabinet-heading { margin-bottom: 16px; }
.cabinet-heading h1 { font-size: clamp(2.4rem, 5vw, 3.65rem); }
.cabinet-tabs { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.cabinet-tabs a { font-size: 1rem; }
.cabinet-shelf > h2 { margin-bottom: 12px; }
.cabinet-shelf .modes { margin-top: 16px; }
.cabinet-layout { display: grid; grid-template-columns: minmax(205px, 250px) minmax(0, 1fr); align-items: start; gap: 20px; }
.folder-sidebar { min-width: 0; padding: 14px; }
.folder-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.folder-heading h2 { margin: 0; font-size: 1.25rem; }
.folder-heading .button { min-height: 36px; padding: 7px 9px; font-size: .85rem; }
.folder-links { display: grid; gap: 3px; }
.folder-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px; overflow-wrap: anywhere; }
.folder-links a:hover { background: #f0f5eb; }
.folder-count { background: #eef4ea; color: var(--green); border-radius: 20px; padding: 2px 6px; font-size: .78rem; }
.cabinet-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cabinet-toolbar h2 { overflow-wrap: anywhere; }
.cabinet-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); gap: 10px; margin-bottom: 14px; }
.cabinet select, .editor-folder select { display: block; width: 100%; min-width: 0; max-width: 100%; margin-top: 5px; padding: 10px 28px 10px 10px; appearance: none; border: 1px solid #b6c8b9; border-radius: 8px; color: var(--ink); background: linear-gradient(45deg, transparent 50%, #496a5c 50%) right 13px center / 5px 5px no-repeat, linear-gradient(135deg, #496a5c 50%, transparent 50%) right 8px center / 5px 5px no-repeat, #fafffa; }
.cabinet-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding-block: 14px; }
.cabinet-card h3, .cabinet-examples h3 { font-size: 1.2rem; overflow-wrap: anywhere; }
.cabinet-card > div:first-child { min-width: 0; }
.game-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; color: var(--muted); font-size: .875rem; }
.mode-tag { color: var(--ink); border-radius: 999px; padding: 3px 8px; font-weight: 650; }
.mode-tag.teal { background: #d3efe6; }
.game-folder-select { min-width: 112px; max-width: min(100%, 180px); }
.game-folder-select select { margin: 0; }
.cabinet-empty { color: var(--muted); }
.cabinet-examples h3 { margin: 4px 0 12px; }
.folder-dialog { width: min(430px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 12px 50px #17382c30; }
.folder-dialog::backdrop { background: #142a21a3; }
.folder-name { display: block; margin-top: 12px; }
.folder-dialog .actions { margin-top: 14px; }
.toast { position: fixed; bottom: 20px; right: 20px; left: auto; max-width: calc(100% - 40px); z-index: 5; padding: 12px 16px; color: #fff; background: var(--forest); border-radius: 9px; }
@media (max-width: 820px) {
  .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cabinet-card { align-items: flex-start; flex-direction: column; }
  .hero { padding-inline: 28px; }
  .art { transform: scale(.85); transform-origin: center; min-width: 230px; }
  .art-front { left: 0; }
}
@media (max-width: 600px) {
  .shell, .header-inner { width: calc(100% - 28px); }
  .header-inner { min-height: 65px; }
  .brand { gap: 7px; font-size: .96rem; }
  .brand-icon { width: 32px; height: 32px; font-size: 1.16rem; }
  .brand small { font-size: .48rem; }
  nav { gap: 0; }
  nav a { padding: 7px 5px; font-size: .8rem; }
  main { padding-top: 18px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 26px 21px; border-radius: 17px; }
  .art { display: none; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .examples { grid-template-columns: 1fr; }
  .mode-card { min-height: 128px; }
  .cabinet-layout { grid-template-columns: 1fr; gap: 16px; }
  .cabinet-filters { grid-template-columns: minmax(0, 1fr) minmax(112px, 47%); }
  .game { min-height: 285px; gap: 16px; }
  .leaderboard th:first-child { width: 3.2rem; }
  .leaderboard th:nth-child(3) { width: 4.1rem; }
  .leaderboard th.board-time { width: 3.9rem; }
  .memory-tile { min-height: 76px; }
  .wheel-layout { grid-template-columns: 1fr; justify-items: center; }
  .wheel-wrap { max-width: 278px; }
  .wheel-layout > div:last-child { width: 100%; }
  .media-edit-grid { grid-template-columns: 1fr; }
  .wheel-image { max-height: 200px; }
  .letter-board, .letter-bank { gap: 5px; }
  .letter-slot { width: 32px; min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
