:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --paper-deep: #eee8d9;
  --ink: #232723;
  --muted: #77796e;
  --line: #e6e0d3;
  --white: #fffefa;
  --teal: #286f68;
  --teal-dark: #205d57;
  --teal-soft: #e4f0ec;
  --coral: #ed7355;
  --yellow: #f4c851;
  --blue: #89a9d0;
  --shadow: 0 20px 55px rgba(57, 51, 37, .08), 0 3px 8px rgba(57, 51, 37, .04);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #277e74; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(5.5vw, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(72, 71, 59, .09); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 850; letter-spacing: -.8px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal); color: white; font-family: Georgia, serif; font-size: 22px; font-weight: 700; transform: rotate(-5deg); }
.brand-mark i { position: absolute; top: -8px; right: -7px; color: var(--coral); font-size: 15px; font-style: normal; }
.wordmark-light { color: var(--teal); }
.brand-name { color: var(--ink); font-size: clamp(16px, 4vw, 19px); letter-spacing: -.7px; white-space: nowrap; }
.topbar-note { display: flex; align-items: center; gap: 8px; color: #78796f; font-size: 12px; letter-spacing: .025em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #7fac73; box-shadow: 0 0 0 4px rgba(127,172,115,.14); }
.top-link { color: var(--teal); font-size: 12px; font-weight: 750; text-decoration: none; }
.top-link:hover, .inspiration a:hover { text-decoration: underline; text-underline-offset: 3px; }
main { width: min(1120px, calc(100% - 48px)); margin: auto; }
.intro { position: relative; min-height: 328px; display: flex; align-items: center; justify-content: space-between; padding: 42px 4.5% 30px; }
.intro-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.eyebrow-spark { color: var(--coral); font-size: 18px; }
h1 { margin: 0; font-size: clamp(38px, 5.1vw, 58px); line-height: 1.04; letter-spacing: -2.8px; font-weight: 800; }
h1 span { color: var(--teal); }
.intro-text { max-width: 420px; margin: 17px 0 14px; color: #686a60; font-size: 14px; line-height: 1.65; }
.intro-text em { color: #a35c3d; font-family: Georgia, serif; }
.intro-meta { color: #838176; font-size: 11px; }
.meta-icon { margin-right: 5px; color: var(--coral); }
.meta-divider { margin: 0 8px; color: #c3baa8; }
.doodle-scene { position: relative; width: 310px; height: 260px; flex: 0 0 310px; margin: 0 1.2% 0 18px; }
.sun-shape { position: absolute; display: grid; place-items: center; width: 145px; height: 145px; top: 54px; left: 81px; color: #523f1d; background: var(--yellow); border-radius: 44% 56% 46% 54% / 57% 42% 58% 43%; box-shadow: 0 8px 0 #e7b843; transform: rotate(-9deg); }
.sun-shape::before { content: ""; position: absolute; inset: 11px; border: 1.5px dashed rgba(87,65,18,.4); border-radius: inherit; }
.sun-shape span { font-family: Georgia, serif; font-size: 50px; font-weight: 700; transform: rotate(9deg); }
.orbit { position: absolute; border: 1px dashed rgba(40,111,104,.35); border-radius: 50%; transform: rotate(-26deg); }
.orbit-one { width: 230px; height: 120px; top: 65px; left: 39px; }
.orbit-two { width: 270px; height: 158px; top: 48px; left: 18px; transform: rotate(38deg); border-color: rgba(237,115,85,.3); }
.floating-chip { position: absolute; z-index: 1; display: grid; place-items: center; min-width: 52px; height: 36px; padding: 0 10px; border: 1px solid rgba(53,52,44,.08); border-radius: 11px; background: var(--white); color: var(--teal); box-shadow: 0 6px 15px rgba(42,46,37,.1); font-size: 14px; font-weight: 800; transform: rotate(-8deg); }
.chip-a { top: 41px; left: 45px; }.chip-b { top: 30px; right: 28px; color: var(--coral); font-family: Georgia,serif; font-size: 22px; transform: rotate(9deg); }.chip-c { right: 26px; bottom: 47px; transform: rotate(-5deg); }
.doodle-spark { position: absolute; z-index: 1; color: var(--coral); }.spark-one { top: 13px; right: 89px; font-size: 26px; }.spark-two { left: 26px; bottom: 33px; color: var(--teal); font-size: 19px; }
.doodle-caption { position: absolute; right: -1px; bottom: 23px; color: #9a8d73; font-family: Georgia,serif; font-size: 11px; font-style: italic; line-height: 1.2; transform: rotate(-7deg); }
.arcade { display: grid; grid-template-columns: 245px minmax(0, 1fr); align-items: stretch; gap: 18px; }
.sidebar { display: flex; flex-direction: column; gap: 13px; }
.score-card, .progress-card { border: 1px solid rgba(74,68,51,.07); border-radius: 16px; background: rgba(255,254,250,.68); }
.score-card { padding: 17px 18px 15px; }
.score-card-top, .card-heading { display: flex; justify-content: space-between; align-items: center; }
.score-label, .card-heading { color: #78796f; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.score-star { color: var(--coral); font-size: 18px; }
.score-value { margin-top: 5px; color: var(--teal); font-size: 36px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
.score-value small { color: #a8a28f; font-size: 14px; font-weight: 650; letter-spacing: 0; }
.score-card p { margin: 6px 0 0; color: #858276; font-size: 11px; }
.progress-card { padding: 17px 17px 12px; }
.progress-track { height: 5px; margin: 12px 0 12px; overflow: hidden; border-radius: 99px; background: #e9e4d7; }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .3s ease; }
.puzzle-list { display: grid; gap: 3px; max-height: 390px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.puzzle-list li { min-height: 34px; color: #8a887b; font-size: 11px; }
.puzzle-nav { display: grid; width: 100%; grid-template-columns: 26px minmax(0,1fr) 12px; align-items: center; gap: 8px; padding: 4px 5px; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.puzzle-nav:hover { background: #f3f0e7; color: var(--ink); }
.puzzle-nav:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.puzzle-list li.is-current .puzzle-nav { color: var(--ink); font-weight: 750; }
.puzzle-list li.is-done .puzzle-nav { color: #526b5e; }
.puzzle-dot { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #e3dfd4; border-radius: 8px; color: #9a978b; font-size: 9px; font-weight: 750; }
li.is-current .puzzle-dot { border-color: var(--teal); background: var(--teal); color: white; }
li.is-done .puzzle-dot { border-color: #cbe2d5; background: #e7f2e9; color: var(--teal-dark); }
.list-state { color: #d5d0c5; text-align: center; }
li.is-done .list-state { color: #5c9b70; }
.tiny-note { display: flex; gap: 10px; padding: 5px 5px 2px; color: #9c8869; }
.tiny-note span { padding-top: 2px; color: var(--coral); font-size: 19px; }
.tiny-note p { max-width: 180px; margin: 0; font-family: Georgia,serif; font-size: 12px; font-style: italic; line-height: 1.5; }
.puzzle-card { min-height: 462px; overflow: hidden; border: 1px solid rgba(61,57,45,.08); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.puzzle-card-head { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 27px; border-bottom: 1px solid #f0ece3; }
.puzzle-category { display: flex; align-items: center; gap: 8px; color: #6f746a; font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.category-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-size: 16px; }
.difficulty { padding: 6px 9px; border-radius: 999px; background: #fff4dd; color: #9c7130; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.puzzle-body { padding: 23px 29px 15px; }
.puzzle-number { margin-bottom: 7px; color: #aaa394; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
h2 { margin: 0; color: #282d29; font-size: 25px; letter-spacing: -.7px; }
.puzzle-prompt { margin: 8px 0 16px; color: #72746b; font-size: 12px; line-height: 1.55; }
.puzzle-scenario { display: grid; gap: 4px; margin: -7px 0 14px; padding: 9px 11px; border-left: 3px solid #d9bc69; border-radius: 0 9px 9px 0; background: #fbf6e8; color: #657067; font-size: 11px; line-height: 1.5; }
.puzzle-scenario strong { color: #9b8050; font-size: 8px; letter-spacing: .12em; }
.puzzle-visual { display: flex; align-items: center; justify-content: center; gap: clamp(5px, 1.4vw, 14px); min-height: 91px; margin-bottom: 19px; padding: 14px; overflow: hidden; border: 1px solid rgba(247,244,223,.3); border-radius: 13px; background-color: #245d62; background-image: radial-gradient(rgba(250,249,226,.12) .7px, transparent .7px); background-size: 13px 13px; box-shadow: inset 0 0 35px rgba(9,39,42,.2); color: #fffbe9; }
.puzzle-visual > span { display: grid; place-items: center; width: clamp(34px, 5vw, 49px); height: clamp(37px, 5.3vw, 53px); border: 1.5px solid rgba(255,252,235,.82); border-radius: 8px; background: rgba(13,52,56,.13); color: #fffbea; box-shadow: 0 0 2px rgba(255,255,235,.35), inset 0 0 4px rgba(255,255,235,.08); font-family: Georgia,serif; font-size: clamp(14px, 2vw, 18px); font-weight: 700; text-shadow: 0 0 2px rgba(255,255,235,.55); }
.puzzle-visual > b { color: #f4edcf; font-family: Georgia,serif; font-size: 15px; text-shadow: 0 0 2px rgba(255,255,235,.55); }
.puzzle-visual > span.missing { border: 1.5px dashed #f8dc82; background: rgba(248,220,130,.09); color: #ffe58b; box-shadow: none; }
.puzzle-visual.grid-visual { display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; width: max-content; min-height: 0; margin: 0 auto 19px; padding: 13px; }
.puzzle-visual.grid-visual > span { width: 52px; height: 42px; }
.puzzle-visual.pair-visual { gap: 13px; }
.puzzle-visual.pair-visual > span { width: auto; min-width: 76px; padding: 0 11px; }
.puzzle-visual.tiles-visual { flex-direction: column; gap: 7px; }
.tile-group { display: grid; grid-template-columns: repeat(3, 25px); gap: 2px; }
.square-tile { width: 25px; height: 17px; border: 1.5px solid rgba(255,252,235,.88); border-radius: 3px; background: transparent; box-shadow: 0 0 2px rgba(255,255,235,.45); }
.puzzle-visual > span.tile-label { display: block; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fffbe9; box-shadow: none; font-family: Georgia,serif; font-size: 11px; font-weight: 700; }
.puzzle-visual.equation-visual > span.equation-line { display: block; width: auto; max-width: 100%; height: auto; min-height: 0; padding: 5px 7px; border: 0; border-radius: 0; background: transparent; color: #fffbe9; box-shadow: none; font-family: Georgia,"Times New Roman",serif; font-size: clamp(13px, 2.4vw, 22px); line-height: 1.45; letter-spacing: .01em; text-align: center; white-space: pre-line; overflow-wrap: anywhere; text-shadow: 0 0 2px rgba(255,255,235,.5); }
.puzzle-visual.math-board-visual { min-height: 154px; padding: 12px 16px; }
.math-board { position: relative; display: grid; place-items: center; gap: 10px; width: 100%; min-height: 126px; overflow: hidden; }
.math-board::before { position: absolute; inset: 6px 4%; border: 1px dashed rgba(255,250,219,.18); border-radius: 18px; content: ""; transform: rotate(-1.5deg); }
.math-board-badge, .math-board-footer { position: relative; z-index: 1; color: rgba(255,251,229,.76); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.math-board-footer { color: #f8dc82; font-size: 8px; letter-spacing: .1em; }
.math-clue-stack { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 100%; }
.math-clue-card { display: grid; place-items: center; min-height: 39px; padding: 5px 12px; border: 1.5px solid rgba(255,252,235,.8); border-radius: 9px 13px 8px 12px; background: rgba(10,45,51,.28); color: #fffbe9; box-shadow: 0 3px 0 rgba(5,37,42,.25), 0 0 12px rgba(255,239,156,.08); font: 700 clamp(13px,2.4vw,19px)/1.3 Georgia,"Times New Roman",serif; text-shadow: 0 0 2px rgba(255,255,235,.5); transform: rotate(calc((var(--clue-index, 0) - 1.5) * .7deg)); }
.math-clue-prompt { width: min(100%, 560px); min-height: 0; padding: 10px 14px; text-align: center; font-size: clamp(12px, 2vw, 15px); line-height: 1.45; overflow-wrap: anywhere; transform: none; }
.math-board-geometry-shapes .math-clue-card { border-color: rgba(248,220,130,.85); color: #ffe58b; }
.math-board-equations-digits .math-clue-card { border-radius: 4px; }
.math-board-comparisons .math-clue-card { border-radius: 999px; }
.math-board-logic-placement .math-clue-card { border-style: dashed; }
.math-motif { position: relative; z-index: 1; padding: 8px 20px; color: #f8dc82; font: 800 clamp(20px,4vw,30px)/1.3 Georgia,serif; letter-spacing: .14em; text-shadow: 0 0 10px rgba(248,220,130,.25); }
.math-sequence-rail { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(3px,1vw,8px); max-width: 100%; }
.math-sequence-tile { display: grid; place-items: center; min-width: clamp(38px,7vw,56px); height: 42px; padding: 0 6px; border: 1.5px solid rgba(255,252,235,.8); border-radius: 10px; background: rgba(9,45,50,.3); color: #fffbe9; font: 700 clamp(12px,2vw,16px) Georgia,serif; box-shadow: 0 0 12px rgba(255,239,156,.08); }
.math-sequence-tile:nth-child(4n+1) { transform: translateY(-3px) rotate(-2deg); }
.math-sequence-tile:nth-child(4n+3) { transform: translateY(3px) rotate(2deg); }
.math-sequence-tile.is-missing { border-style: dashed; border-color: #f8dc82; color: #ffe58b; animation: math-pulse 2s ease-in-out infinite; }
.math-sequence-arrow { color: #f8dc82; font-size: 13px; text-shadow: 0 0 8px rgba(248,220,130,.5); }
.math-fraction-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; max-width: 100%; }
.math-fraction-tile { display: grid; grid-template-rows: auto 1px auto; justify-items: center; min-width: 34px; gap: 2px; padding: 4px 7px; border: 1px solid rgba(255,252,235,.65); border-radius: 8px; background: rgba(9,45,50,.28); color: #fffbe9; font: 700 12px Georgia,serif; }
.math-fraction-tile i { width: 100%; background: #f8dc82; }
.math-fraction-op { color: #f8dc82; font-weight: 800; }
.math-board-number-patterns .math-sequence-tile { border-color: rgba(255,252,235,.75); box-shadow: 0 0 13px rgba(122,217,202,.15); }
.puzzle-visual.orthogonal-perimeter-visual, .puzzle-visual.square-diagonal-visual, .puzzle-visual.shape-ratio-sum-visual { min-height: 210px; padding: 10px 14px; }
.puzzle-visual.same-circle-equation-visual { min-height: 190px; padding: 8px 12px; }
.geometry-chalkboard { display: grid; justify-items: center; gap: 5px; width: 100%; color: #fffbe9; }
.geometry-chalkboard svg { display: block; width: min(100%, 520px); height: auto; overflow: visible; }
.geometry-outline { fill: rgba(9,45,50,.22); stroke: rgba(255,252,235,.93); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(255,255,235,.18)); }
.geometry-question-mark { fill: #ffe58b; font: 800 20px Georgia,serif; text-anchor: middle; }
.geometry-givens-label { color: rgba(255,251,229,.75); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.geometry-givens { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.geometry-given-chip { display: grid; place-items: center; min-width: 30px; height: 28px; padding: 0 8px; border: 1.5px solid rgba(248,220,130,.86); border-radius: 6px 9px 6px 8px; color: #ffe58b; font: 800 14px Georgia,serif; text-shadow: 0 0 2px rgba(255,255,235,.3); }
.geometry-diagonal { stroke: #f8dc82; stroke-width: 3; stroke-dasharray: 8 5; }
.geometry-diagonal-label { fill: #ffe58b; font: 800 18px Georgia,serif; text-anchor: middle; paint-order: stroke; stroke: #145561; stroke-width: 5px; stroke-linejoin: round; }
.ratio-sum-shape { fill: rgba(9,45,50,.25); stroke: rgba(255,252,235,.93); stroke-width: 3; stroke-linejoin: round; }
.ratio-sum-operator, .ratio-sum-total { fill: #fffbe9; font: 700 20px Georgia,serif; text-anchor: middle; }
.ratio-sum-total { fill: #ffe58b; font-weight: 800; }
.ratio-sum-divider { stroke: rgba(255,252,235,.35); stroke-width: 1.5; stroke-dasharray: 4 6; }
.same-circle-board svg { width: min(100%, 600px); }
.same-circle-heading { fill: #fffbe9; font: 700 22px Arial,sans-serif; text-anchor: middle; }
.same-circle-operator { fill: #fffbe9; font: 700 25px Georgia,serif; text-anchor: middle; }
.same-circle-answer-slot { fill: rgba(9,45,50,.18); stroke: rgba(255,252,235,.96); stroke-width: 3; }
@keyframes math-pulse { 50% { box-shadow: 0 0 15px rgba(248,220,130,.38); } }
.puzzle-visual.slot-puzzle-visual { min-height: 150px; }
.slot-board { display: grid; justify-items: center; gap: 13px; width: 100%; }
.slot-equation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(3px,1vw,8px); max-width: 100%; }
.slot-cell, .slot-target { display: grid; place-items: center; flex: 0 0 auto; width: clamp(34px,6vw,48px); height: clamp(36px,6vw,48px); border: 2px solid rgba(255,252,235,.88); border-radius: 8px; background: rgba(9,45,50,.34); color: #fffbe9; box-shadow: 0 3px 0 rgba(5,37,42,.25), 0 0 12px rgba(255,239,156,.08); font: 800 clamp(13px,2.1vw,17px) Georgia,serif; }
.slot-cell:nth-child(even) { transform: translateY(2px); }
.slot-cell.is-circle { border-radius: 50%; }
.slot-cell.is-given { color: #ffe58b; border-color: #f8dc82; }
.slot-operator, .slot-coefficient { color: #f8dc82; font: 800 clamp(13px,2.3vw,19px) Georgia,serif; }
.slot-target { width: auto; min-width: 46px; padding: 0 8px; color: #ffe58b; border-color: #f8dc82; }
.slot-caption { color: rgba(255,251,229,.76); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.puzzle-visual.circle-pair-line-visual { min-height: 220px; padding: 8px 12px; }
.circle-pair-line-visual svg { display: block; width: min(100%, 520px); height: auto; overflow: visible; }
.circle-pair-connector, .circle-endpoint-bracket { fill: none; stroke: rgba(255,252,235,.88); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.circle-pair-node { fill: rgba(9,45,50,.4); stroke: rgba(255,252,235,.92); stroke-width: 2.4; }
.circle-pair-clue, .circle-endpoint-total { fill: #ffe58b; font: 800 19px Georgia,serif; text-anchor: middle; }
.circle-pair-letter { fill: #fffbe9; font: 800 18px Georgia,serif; text-anchor: middle; }
.circle-endpoint-total { font-size: 16px; }
.puzzle-visual.pair-sum-chain-visual { min-height: 220px; padding: 8px 12px; }
.pair-sum-chain-visual svg { display: block; width: min(100%, 520px); height: auto; overflow: visible; }
.pair-sum-branch, .pair-sum-bracket { fill: none; stroke: rgba(255,252,235,.88); stroke-width: 2.2; stroke-linecap: round; }
.pair-sum-node { fill: rgba(9,45,50,.4); stroke: rgba(255,252,235,.92); stroke-width: 2.4; }
.pair-sum-total, .pair-sum-bottom-total { fill: #ffe58b; font: 800 18px Georgia,serif; text-anchor: middle; }
.pair-sum-letter { fill: #fffbe9; font: 800 18px Georgia,serif; text-anchor: middle; }
.pair-sum-bottom-total { font-size: 15px; }
.puzzle-visual.reciprocal-sum-visual, .puzzle-visual.fraction-split-visual, .puzzle-visual.power-cycle-visual, .puzzle-visual.digit-remainder-visual, .puzzle-visual.power-compare-visual { min-height: 156px; padding: 12px 14px; }
.guided-math-board { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; width: 100%; color: #fffbe9; }
.guided-given { padding: 7px 13px; border: 1.5px solid rgba(255,252,235,.75); border-radius: 9px; color: #ffe58b; font: 800 16px Georgia,serif; }
.reciprocal-board { flex-direction: column; gap: 13px; }
.reciprocal-expression { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.guided-fraction { padding: 10px 12px; border: 1px solid rgba(255,252,235,.7); border-radius: 8px; background: rgba(9,45,50,.3); font: 700 clamp(13px,2.2vw,18px) Georgia,serif; }
.guided-operator { color: #f8dc82; font: 800 18px Georgia,serif; }
.fraction-slot-card { display: grid; grid-template-rows: auto 2px auto; justify-items: center; gap: 3px; min-width: 40px; padding: 7px 9px; border: 1.5px solid rgba(255,252,235,.82); border-radius: 8px; color: #fffbe9; font: 800 15px Georgia,serif; }
.fraction-slot-card i { width: 100%; background: #f8dc82; }
.fraction-slot-card:not(.is-given) span { min-width: 16px; text-align: center; color: #ffe58b; }
.fraction-slot-card.is-given { color: #ffe58b; }
.power-cycle-board { gap: 15px; }
.power-of-seven { display: flex; align-items: flex-start; padding: 9px 20px; border: 2px solid rgba(255,252,235,.85); border-radius: 12px; background: rgba(9,45,50,.35); color: #fffbe9; font: 800 39px Georgia,serif; box-shadow: 0 4px 0 rgba(5,37,42,.26); }
.power-of-seven sup, .power-choice sup { margin-left: 2px; color: #ffe58b; font-size: 15px; }
.power-cycle-label { color: rgba(255,251,229,.75); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.power-question { display: grid; place-items: center; width: 38px; height: 38px; border: 2px dashed #f8dc82; border-radius: 50%; color: #ffe58b; font-size: 22px; font-weight: 900; }
.remainder-board { gap: 4px; }
.digit-group { display: flex; gap: 2px; padding: 5px; border: 1px solid rgba(255,252,235,.55); border-radius: 9px; }
.digit-chip { display: grid; place-items: center; width: 29px; height: 38px; border-radius: 5px; background: rgba(255,252,235,.1); color: #fffbe9; font: 800 20px Georgia,serif; }
.digit-group-separator { color: #ffe58b; font-size: 22px; font-weight: 800; }
.remainder-op { margin-left: 5px; }
.remainder-question { flex-basis: 100%; margin-top: 6px; color: rgba(255,251,229,.78); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.remainder-question b { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-left: 5px; border: 1.5px dashed #f8dc82; border-radius: 50%; color: #ffe58b; font-size: 16px; }
.power-compare-board { gap: clamp(6px,2vw,14px); }
.power-choice { display: flex; align-items: flex-start; justify-content: center; min-width: clamp(82px,15vw,130px); padding: 15px 14px; border: 2px solid rgba(255,252,235,.8); border-radius: 13px; background: rgba(9,45,50,.3); color: #fffbe9; font: 800 clamp(27px,5vw,40px) Georgia,serif; box-shadow: 0 4px 0 rgba(5,37,42,.25); }
.power-versus { color: #f8dc82; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.power-compare-question { flex-basis: 100%; color: rgba(255,251,229,.75); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.puzzle-visual.shape-equations-visual { min-height: 155px; }
.shape-equations { display: grid; gap: 12px; width: min(100%, 470px); margin: 0 auto; color: #fffbe9; font-family: Georgia,"Times New Roman",serif; }
.shape-equation-line { display: flex; align-items: center; justify-content: center; gap: clamp(4px,1vw,8px); min-height: 29px; white-space: nowrap; }
.chalk-shape { position: relative; display: inline-block; flex: 0 0 23px; width: 23px; height: 23px; filter: drop-shadow(0 0 1px rgba(255,255,235,.65)); }
.chalk-square { border: 2px solid #fffbe9; border-radius: 1px; }
.chalk-circle { border: 2px solid #fffbe9; border-radius: 50%; }
.chalk-triangle::before, .chalk-triangle::after { position: absolute; inset: 0; content: ""; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chalk-triangle::before { background: #fffbe9; }
.chalk-triangle::after { inset: 3px 3px 4px; background: #245d62; }
.chalk-operator, .chalk-total { color: #fffbe9; font-size: clamp(14px,2.2vw,20px); text-shadow: 0 0 2px rgba(255,255,235,.55); }
.chalk-total { min-width: 54px; text-align: left; }
.puzzle-visual.pyramid-visual { min-height: 220px; }
.number-pyramid { display: grid; gap: 4px; width: 100%; max-width: 310px; margin: 0 auto; }
.pyramid-level { display: flex; justify-content: center; gap: 5px; }
.pyramid-brick { display: grid; place-items: center; width: 48px; height: 34px; border: 1.5px solid rgba(255,252,235,.88); border-radius: 5px; color: #fffbe9; font-family: Georgia,"Times New Roman",serif; font-size: 17px; font-weight: 700; text-shadow: 0 0 2px rgba(255,255,235,.55); box-shadow: inset 0 0 4px rgba(255,255,235,.08), 0 0 2px rgba(255,255,235,.35); }
.pyramid-brick.is-missing { border-style: dashed; border-color: #f8dc82; color: #ffe58b; }
.puzzle-visual.chalk-grid-visual { min-height: 195px; }
.chalk-number-grid { display: grid; grid-template-columns: repeat(3, clamp(44px,7vw,60px)); gap: 5px; margin: 0 auto; }
.chalk-number-grid.is-five-grid { width: min(100%, 285px); gap: 4px; }
.chalk-number-grid.is-five-grid .chalk-grid-cell { min-width: 0; min-height: 31px; aspect-ratio: 1.12; font-size: clamp(14px,2.2vw,19px); }
.chalk-grid-cell { display: grid; place-items: center; aspect-ratio: 1; border: 1.5px solid rgba(255,252,235,.86); border-radius: 4px; color: #fffbe9; font-family: Georgia,"Times New Roman",serif; font-size: clamp(18px,3vw,25px); text-shadow: 0 0 2px rgba(255,255,235,.5); }
.chalk-grid-cell.is-missing { border-style: dashed; border-color: #f8dc82; color: #ffe58b; }
.puzzle-visual.picture-equations-visual { min-height: 210px; }
.picture-equations { display: grid; gap: 7px; width: 100%; max-width: 390px; margin: 0 auto; }
.picture-equation-line { display: flex; align-items: center; justify-content: center; gap: clamp(4px,1.2vw,9px); min-height: 34px; white-space: nowrap; }
.picture-fruit { display: grid; place-items: center; min-width: 26px; color: white; font-family: "Apple Color Emoji","Segoe UI Emoji",sans-serif; font-size: clamp(18px,3vw,25px); line-height: 1; }
.picture-operator, .picture-total { color: #fffbe9; font-family: Georgia,"Times New Roman",serif; font-size: clamp(14px,2.4vw,20px); text-shadow: 0 0 2px rgba(255,255,235,.5); }
.picture-total { min-width: 45px; text-align: left; }
.picture-challenge { margin-top: 3px; padding-top: 8px; border-top: 1px dashed rgba(255,252,235,.45); color: #fff0a5; font-family: Georgia,"Times New Roman",serif; font-size: clamp(19px,3.4vw,28px); text-align: center; text-shadow: 0 0 2px rgba(255,255,235,.5); }
.puzzle-visual.network-visual { min-height: 205px; padding: 9px 12px; }
.network-visual svg { display: block; width: min(100%, 460px); height: auto; overflow: visible; }
.network-edge { stroke: rgba(255,252,235,.88); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 1px rgba(255,255,235,.4)); }
.network-box { fill: rgba(13,52,56,.2); stroke: rgba(255,252,235,.92); stroke-width: 2; filter: drop-shadow(0 0 1px rgba(255,255,235,.35)); }
.network-box.is-focus { stroke: #f8dc82; stroke-dasharray: 5 3; fill: rgba(248,220,130,.08); }
.network-value, .network-total { fill: #fffbe9; text-anchor: middle; font-family: Georgia,"Times New Roman",serif; font-weight: 700; font-size: 18px; paint-order: stroke; stroke: #245d62; stroke-width: 2px; stroke-linejoin: round; }
.network-value.is-focus, .network-total, .network-note { fill: #ffe58b; }
.network-total { font-size: 17px; }
.network-note { text-anchor: middle; font-family: Georgia,"Times New Roman",serif; font-weight: 700; font-size: 15px; paint-order: stroke; stroke: #245d62; stroke-width: 2px; stroke-linejoin: round; }
.network-note.is-clue { fill: #fffbe9; font-size: 13px; }
.puzzle-visual.shape-network-visual { min-height: 230px; padding: 10px; }
.shape-network-visual svg { display: block; width: min(100%, 480px); height: auto; overflow: visible; }
.puzzle-visual.shape-pair-line-visual { min-height: 220px; padding: 8px; }
.shape-pair-line-visual svg { display: block; width: min(100%, 500px); height: auto; overflow: visible; }
.shape-pair-connector { stroke: rgba(255,252,235,.9); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 1px rgba(255,255,235,.4)); }
.shape-pair-node { fill: rgba(13,52,56,.12); stroke: #fffbe9; stroke-width: 2.8; stroke-linejoin: round; filter: drop-shadow(0 0 1px rgba(255,255,235,.55)); }
.shape-pair-total { fill: #ffe58b; text-anchor: middle; font-family: Georgia,"Times New Roman",serif; font-weight: 700; font-size: 22px; paint-order: stroke; stroke: #245d62; stroke-width: 3px; stroke-linejoin: round; }
.puzzle-visual.line-sum-network-visual { min-height: 300px; padding: 8px; }
.line-sum-network-visual svg { display: block; width: min(100%, 380px); height: auto; overflow: visible; }
.line-sum-position { fill: #f3d77d; font-family: ui-sans-serif,system-ui,sans-serif; font-size: 10px; font-weight: 800; text-anchor: middle; }
.line-sum-network-visual svg > text.shape-network-total { text-anchor: middle; font-size: 13px; }
.line-sum-network-visual svg > line.line-sum-route-1 { stroke: #f3c969; }
.line-sum-network-visual svg > line.line-sum-route-2 { stroke: #83d6ce; }
.line-sum-network-visual svg > line.line-sum-route-3 { stroke: #f49b78; }
.line-sum-network-visual svg > line.line-sum-route-4 { stroke: #b7a2ef; }
.line-sum-network-visual svg > line.line-sum-route-5 { stroke: #b4d77c; }
.line-sum-key { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 4px 10px; max-width: 390px; margin: 0 auto; padding: 0 8px 4px 24px; color: #fffbe9; text-align: left; font-size: 11px; font-weight: 700; }
.line-sum-key li { padding-left: 2px; }
.line-sum-key-route-1::marker { color: #f3c969; }
.line-sum-key-route-2::marker { color: #83d6ce; }
.line-sum-key-route-3::marker { color: #f49b78; }
.line-sum-key-route-4::marker { color: #b7a2ef; }
.line-sum-key-route-5::marker { color: #b4d77c; }
.shape-network-node { fill: rgba(13,52,56,.12); stroke: #fffbe9; stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 1px rgba(255,255,235,.6)); }
.shape-network-total { fill: #ffe58b; text-anchor: middle; font-family: Georgia,"Times New Roman",serif; font-weight: 700; font-size: 23px; paint-order: stroke; stroke: #245d62; stroke-width: 3px; stroke-linejoin: round; }
.puzzle-visual.digit-addition-visual { min-height: 215px; }
.digit-addition-board { max-width: 100%; margin: 0; color: #fffbe9; font: 700 clamp(17px,3.1vw,26px)/1.48 ui-monospace,SFMono-Regular,Menlo,monospace; white-space: pre; text-shadow: 0 0 2px rgba(255,255,235,.5); }
.puzzle-visual.chalk-equations-visual { min-height: 190px; padding: 12px 10px; }
.chalk-equations { display: grid; gap: 12px; width: 100%; max-width: 430px; margin: 0 auto; }
.chalk-equation-line { display: flex; align-items: center; justify-content: center; gap: clamp(5px,1.5vw,12px); min-height: 36px; color: #fffbe9; font: 700 clamp(18px,3.3vw,27px)/1.2 Georgia,"Times New Roman",serif; text-shadow: 0 0 2px rgba(255,255,235,.55); }
.chalk-equation-slot { display: grid; place-items: center; width: clamp(30px,6vw,42px); aspect-ratio: 1; border: 2px solid #fffbe9; border-radius: 5px; color: #ffe58b; font: 800 15px/1 ui-sans-serif,system-ui,sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,235,.18),0 0 6px rgba(255,255,235,.12); }
#answer-form label { display: block; margin-bottom: 7px; color: #40443e; font-size: 11px; font-weight: 750; }
.label-hint { color: #969387; font-size: 10px; font-weight: 450; }
.answer-row { display: flex; gap: 9px; }
.answer-row input { min-width: 0; flex: 1; height: 43px; padding: 0 13px; border: 1px solid #e5e1d7; border-radius: 10px; background: #fffefa; color: var(--ink); font-size: 12px; }
.answer-row input::placeholder { color: #b3b0a5; }
.check-button, .next-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 0; border-radius: 10px; background: var(--teal); color: white; cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.check-button { min-width: 120px; height: 43px; padding: 0 14px; }.check-button:hover:not(:disabled), .next-button:hover:not(:disabled) { background: var(--teal-dark); transform: translateY(-1px); }
.helper-text { margin: 7px 0 0; color: #a19d90; font-size: 10px; }
kbd { padding: 1px 5px; border: 1px solid #ded9ce; border-radius: 4px; background: #f6f3ec; color: #717267; font: inherit; }
.feedback { min-height: 19px; margin: 8px 0 0; color: #ae5e43; font-size: 11px; font-weight: 700; }
.feedback.is-correct { color: #34745c; }.feedback.is-revealed { color: #777461; font-weight: 600; }
.hint-box { display: flex; gap: 8px; margin-top: 6px; padding: 10px 12px; border: 1px solid #f0e1b9; border-radius: 9px; background: #fff9e9; color: #816d3e; }
.hint-box[hidden] { display: none; }.hint-icon { color: #d4a32c; }.hint-box p { margin: 0; font-size: 11px; line-height: 1.45; }
.puzzle-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 0 27px; border-top: 1px solid #f0ece3; }
.foot-right { display: flex; align-items: center; gap: 16px; }
.quiet-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; background: none; color: #75776c; cursor: pointer; font-size: 10px; font-weight: 700; }
.quiet-button:hover { color: var(--teal); }.quiet-button span { color: #dda937; font-size: 16px; }
.reveal-button { color: #9b7366; font-weight: 600; }
.next-button { min-width: 122px; min-height: 37px; padding: 0 13px; gap: 12px; font-size: 10px; }
.next-button:disabled { background: #e5e5dd; color: #96978c; cursor: not-allowed; }
.inspiration { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 13px 17px; border: 1px solid rgba(45,102,91,.12); border-radius: 12px; background: rgba(228,240,236,.62); color: #597066; }
.inspiration-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; background: #fffefa; color: var(--teal); font-size: 15px; }
.inspiration p { margin: 0; font-size: 10px; line-height: 1.5; }.inspiration strong { color: #385e53; }.inspiration a { margin-left: 5px; color: var(--teal); font-weight: 800; text-decoration: none; }
footer { display: flex; justify-content: space-between; width: min(1120px, calc(100% - 48px)); margin: 26px auto 0; padding: 15px 4px 25px; border-top: 1px solid rgba(72,71,59,.1); color: #999586; font-size: 9px; letter-spacing: .05em; }
footer span:first-child { font-weight: 850; letter-spacing: .13em; }footer span:first-child span { color: var(--coral); }
@media (min-width: 1280px) { .intro { padding-left: 4%; padding-right: 4%; } }
@media (max-width: 760px) {
  .topbar { height: 67px; padding: 0 22px; }.topbar-note { display: none; }
  main { width: min(100% - 32px, 560px); }
  .intro { min-height: 265px; padding: 33px 5px 24px; }.intro-copy { max-width: 100%; }h1 { font-size: clamp(35px, 8vw, 48px); }.intro-text { max-width: 390px; font-size: 13px; }
  .doodle-scene { width: 205px; height: 190px; flex-basis: 205px; margin: 0 -12px 0 4px; transform: scale(.78); transform-origin: center right; }
  .arcade { grid-template-columns: 1fr; gap: 12px; }.sidebar { display: grid; grid-template-columns: minmax(120px,.75fr) minmax(0,1.5fr); align-items: stretch; gap: 10px; }.score-card, .progress-card { padding: 13px 14px; }.progress-card { grid-row: span 2; }.tiny-note { align-self: center; }.tiny-note p { font-size: 10px; }
  .puzzle-list { grid-template-columns: 1fr 1fr; column-gap: 7px; max-height: none; overflow: visible; }.puzzle-list li { min-height: 28px; font-size: 9px; }.puzzle-nav { grid-template-columns: 23px 1fr; gap: 5px; padding: 3px; }.list-state { display: none; }.puzzle-dot { width: 21px; height: 21px; font-size: 8px; }
  .puzzle-card { min-height: 0; }.puzzle-card-head { padding: 0 18px; }.puzzle-body { padding: 21px 18px 12px; }.puzzle-card-foot { padding: 0 18px; }.puzzle-visual { min-height: 80px; }
  footer { width: calc(100% - 32px); }
}
@media (max-width: 470px) {
  .topbar { padding: 0 16px; }.top-link { max-width: 114px; font-size: 10px; text-align: right; }
  main { width: calc(100% - 28px); }.intro { min-height: 250px; }.intro-copy { max-width: 100%; }h1 { font-size: 36px; letter-spacing: -1.8px; }.intro-text { max-width: 290px; font-size: 12px; }.intro-meta { font-size: 9px; }.doodle-scene { display: none; }
  .sidebar { grid-template-columns: 1fr; }.progress-card { grid-row: auto; }.puzzle-list { grid-template-columns: repeat(3, 1fr); }.puzzle-nav { grid-template-columns: 21px 1fr; }.score-card { display: grid; grid-template-columns: 1fr auto; align-items: center; }.score-card-top { grid-column: 1; }.score-value { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 28px; }.score-card p { grid-column: 1; margin-top: -2px; }
  .puzzle-card-head { height: 53px; padding: 0 14px; }.puzzle-body { padding: 18px 14px 10px; }.puzzle-card-foot { min-height: 58px; padding: 0 14px; }.foot-right { gap: 10px; }.next-button { min-width: 102px; }.reveal-button { font-size: 9px; }.quiet-button { font-size: 9px; }.check-button { min-width: 99px; gap: 8px; }
  .puzzle-visual { gap: 5px; padding: 9px 5px; }.puzzle-visual > span { width: 34px; height: 39px; font-size: 13px; }.puzzle-visual > b { font-size: 10px; }.puzzle-visual.grid-visual { grid-template-columns: repeat(3, 47px); }.puzzle-visual.grid-visual > span { width: 47px; }
  footer { width: calc(100% - 28px); font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

.tutorial-card { margin-top: 24px; padding: 25px; border: 1px solid rgba(74,68,51,.08); border-radius: 18px; background: rgba(255,254,250,.82); box-shadow: var(--shadow); }
.tutorial-heading { max-width: 690px; }
.tutorial-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 21px 0 15px; padding: 0; list-style: none; }
.tutorial-steps li { display: flex; align-items: flex-start; gap: 10px; min-height: 113px; padding: 14px 13px; border: 1px solid #ece6d9; border-radius: 12px; background: #fbf9f3; }
.tutorial-steps li > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); font-size: 9px; font-weight: 850; }
.tutorial-steps strong { display: block; margin: 2px 0 6px; color: #374139; font-size: 11px; }
.tutorial-steps p { margin: 0; color: #77796e; font-size: 10px; line-height: 1.5; }

.guided-puzzle { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); gap: 23px; align-items: stretch; margin: 22px 0 16px; padding: 16px; border: 1px solid #ece6d9; border-radius: 14px; background: #fbf9f3; }
.guided-diagram { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; gap: 13px; border-radius: 11px; background: #f4efe2; }
.guided-tiles { display: grid; grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(2, 54px); border: 2px solid #286f68; }
.guided-tiles i { border: 1px solid rgba(40,111,104,.55); background: #e0eee7; }
.guided-tiles i:nth-child(2), .guided-tiles i:nth-child(4), .guided-tiles i:nth-child(6) { background: #fdfcf7; }
.guided-diagram p { margin: 0; color: #64756a; font-size: 10px; font-weight: 750; }
.guided-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.guided-prompt { margin: 0 0 8px; color: #48544b; font-size: 11px; line-height: 1.55; }
.guided-prompt strong { color: var(--teal-dark); }
.guided-nudge { min-height: 35px; margin: 0 0 11px; color: #8a887b; font-size: 10px; font-style: italic; line-height: 1.5; }
.guided-reveal { width: 100%; min-height: 135px; padding: 14px; border: 1px solid #e7e1d4; border-radius: 10px; background: #fffefa; }
.guided-step-count { color: #9b8964; font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.guided-reveal h3 { margin: 7px 0 5px; color: #35483f; font-size: 14px; letter-spacing: -.2px; }
.guided-reveal p { margin: 0; color: #77796e; font-size: 10px; line-height: 1.55; }
.guided-equation { margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: #eaf2ed; color: #286f68; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 750; line-height: 1.5; }
.guided-button { min-height: 37px; margin-top: 11px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--teal); color: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.guided-button:hover { background: var(--teal-dark); }
.guided-button:focus-visible { outline: 3px solid #277e74; outline-offset: 3px; }
@media (max-width: 760px) { .guided-puzzle { grid-template-columns: 1fr; gap: 13px; }.guided-diagram { min-height: 170px; } }

.network-given { fill: #ffe58b; text-anchor: middle; font-family: Georgia,"Times New Roman",serif; font-weight: 800; font-size: 18px; paint-order: stroke; stroke: #245d62; stroke-width: 2px; stroke-linejoin: round; }
.network-given.is-clue { fill: #fffbe9; font-size: 20px; }
.box-answer-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 8px; margin: 9px 0 2px; }
.box-answer-fields[hidden] { display: none; }
.box-answer-field { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 6px 8px; border: 1px solid #e5e1d7; border-radius: 9px; background: #fffefa; color: var(--teal) !important; font-size: 11px !important; font-weight: 800 !important; }
.box-answer-field input { width: 100%; min-width: 0; height: 30px; padding: 0 7px; border: 1px solid #e5e1d7; border-radius: 6px; color: var(--ink); font-size: 12px; }
.answer-row[hidden] { display: none; }

.chalk-number { color: #fffbe9; font: 700 20px/1 Georgia,"Times New Roman",serif; }

/* GaNannGenius player, progression, and ranking panels */
.player-panel,.shelf-panel{margin:14px 0;padding:16px;border-radius:18px;background:#fffdf7;border:1px solid rgba(41,39,85,.12);color:#292755}.player-now{display:flex;align-items:center;gap:10px;margin-bottom:10px}.player-avatar{font-size:30px}.player-now b,.player-now small{display:block}.player-now small{font-size:11px;color:#686582;margin-top:3px}.profile-action,.saved-player,.shelf-level{border:1px solid #d8d4e8;background:#fff;border-radius:12px;padding:9px 12px;color:#292755;font:inherit;font-weight:700;cursor:pointer}.profile-action{width:100%}.weak-topics,.ranking{margin-top:14px;font-size:12px}.weak-topics span{display:block;text-transform:capitalize;color:#625e78;margin-top:5px}.ranking ol{margin:7px 0;padding-left:22px}.ranking li{padding:3px 0}.shelf-panel{margin:16px 0}.shelf-panel h3{margin:0 0 5px}.shelf-panel p{font-size:12px;line-height:1.45}.shelf-groups{display:grid;grid-template-columns:1fr;gap:7px}.shelf-level{text-align:left;text-transform:capitalize}.shelf-level:disabled{opacity:.55;cursor:not-allowed}.free-pick{display:block;margin-top:12px;font-weight:800;color:#5146a1}.profile-dialog{width:min(440px,calc(100% - 28px));border:0;border-radius:24px;padding:0;box-shadow:0 22px 80px #17143e66;color:#292755}.profile-dialog::backdrop{background:#17143e88;backdrop-filter:blur(3px)}.profile-dialog form{padding:26px}.profile-dialog h2{margin:8px 0}.profile-dialog label{display:grid;gap:6px;margin:14px 0;font-weight:700}.profile-dialog input,.profile-dialog select{width:100%;border:1px solid #c9c5dc;border-radius:12px;padding:12px;font:inherit}.saved-players{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.tutorial-unlock{display:inline-block;margin:10px 0 0;font-weight:800;color:#5146a1}.feedback.is-revealed{background:#fff1d8;padding:12px;border-radius:12px}.puzzle-card-foot .reveal-button{max-width:150px}
@media(min-width:900px){.shelf-groups{grid-template-columns:1fr 1fr}}
.profile-help{color:#686582;font-size:13px;line-height:1.5}.profile-mode{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.profile-mode button{padding:10px;border:1px solid #d8d4e8;border-radius:11px;background:#fff;color:#292755;font:inherit;font-weight:800;cursor:pointer}.profile-mode button[aria-pressed="true"]{border-color:#5146a1;background:#f1efff;color:#5146a1}.profile-status{min-height:20px;margin:8px 0;color:#994b33;font-size:12px;line-height:1.45}.profile-dialog button:disabled{opacity:.65;cursor:wait}.profile-dialog [hidden]{display:none!important}

@media (max-width: 470px) { .tutorial-card { margin-top: 17px; padding: 17px 14px; } .guided-puzzle { margin: 15px 0 12px; padding: 11px; } .guided-diagram { min-height: 155px; } .guided-tiles { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); } .guided-reveal { min-height: 0; } }
.avatar-label{display:block;margin-bottom:8px;font-weight:800}
.avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:245px;overflow-y:auto;padding:2px}
.avatar-choice{display:grid;justify-items:center;gap:3px;min-width:0;padding:5px 3px;border:2px solid transparent;border-radius:13px;background:#211a36;color:#f4f0ff;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.avatar-choice:hover{border-color:#a99dff}
.avatar-choice[aria-pressed="true"]{border-color:#5146a1;box-shadow:0 0 0 2px #e9e5ff}
.avatar-choice svg{width:100%;max-width:64px;height:auto;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #b026ff)}
.player-avatar{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:#211a36;overflow:hidden}
.player-avatar svg{width:100%;height:auto;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #b026ff)}
.ranking li{display:flex;align-items:center;gap:7px}
.ranking-avatar{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:9px;background:#211a36;overflow:hidden}
.ranking-avatar svg{width:100%;height:auto}
.chat-panel{margin:14px 0;padding:17px;border:1px solid rgba(41,39,85,.12);border-radius:18px;background:#fffdf7;color:#292755}
.chat-heading{display:flex;align-items:center;justify-content:space-between}.chat-heading h3{margin:3px 0 0;font-size:20px}.chat-heading .eyebrow{margin:0;color:#5146a1;font-size:9px;font-weight:900;letter-spacing:.13em}
.chat-live-dot{width:11px;height:11px;border-radius:50%;background:#46b58a;box-shadow:0 0 0 4px #46b58a22}
.chat-safety,.chat-refresh-note{font-size:12px;line-height:1.5;color:#686582}.chat-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:13px 0}
.chat-tabs button,.chat-room-choice{padding:9px 10px;border:1px solid #d8d4e8;border-radius:11px;background:#fff;color:#292755;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.chat-tabs button[aria-pressed="true"],.chat-room-choice[aria-pressed="true"]{border-color:#5146a1;background:#f1efff;color:#5146a1}
.chat-tools details{margin:8px 0;padding:10px 12px;border:1px solid #e2deee;border-radius:12px;background:#fff}
.chat-tools summary{cursor:pointer;font-size:12px;font-weight:800}.chat-tools form{display:grid;gap:8px;margin-top:10px}.chat-tools label,.chat-send label{display:grid;gap:6px;font-size:12px;font-weight:800}.chat-tools select,.chat-send select{width:100%;min-height:40px;padding:8px;border:1px solid #c9c5dc;border-radius:10px;background:white;color:#292755;font:inherit;font-size:12px}.chat-tools p{margin:0;color:#686582;font-size:11px;line-height:1.45}
.chat-rooms{display:grid;gap:7px;margin:10px 0}.chat-rooms>p{color:#686582;font-size:12px}.chat-room-choice{text-align:left}.chat-invite-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:11px;background:#f4f1ff;font-size:12px;font-weight:800}.chat-invite-row .profile-action{width:auto}
.chat-status{min-height:18px;margin:8px 0;color:#5146a1;font-size:11px;line-height:1.4}.chat-status.is-error{color:#994b33}.chat-feed{display:flex;flex-direction:column;gap:8px;max-height:320px;min-height:86px;overflow:auto;margin:8px 0;padding:3px;list-style:none}
.chat-message{display:flex;align-items:center;gap:8px;max-width:94%;padding:8px 9px;border:1px solid #e2deee;border-radius:13px;background:#fff}.chat-message.is-mine{align-self:flex-end;background:#f1efff}.chat-message-avatar{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;overflow:hidden;border-radius:9px;background:#211a36}.chat-message-avatar svg{width:100%;height:auto}.chat-message-copy{display:grid;gap:2px;min-width:0;font-size:12px}.chat-message-copy b{font-size:10px;color:#686582}.chat-report{align-self:flex-start;margin-left:auto;padding:3px 5px;border:0;border-radius:7px;background:transparent;color:#746f85;font:inherit;font-size:9px;cursor:pointer}.chat-report:hover,.chat-report:focus-visible{background:#eee9fa;color:#5146a1}
.chat-send{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding-top:7px;border-top:1px solid #eeeaf4}.chat-send .check-button{min-width:100px;padding:10px}.chat-send button:disabled{opacity:.55}
@media(max-width:470px){.chat-panel{padding:14px}.chat-feed{max-height:260px}.chat-message{max-width:100%}.chat-send{grid-template-columns:1fr}.chat-send .check-button{width:100%}}
.avatar-stack{position:relative;display:grid;place-items:center;width:100%;height:100%}
.avatar-stack svg{display:block;width:100%;height:auto}
.avatar-gear{position:absolute;z-index:2;display:grid;place-items:center;line-height:1;text-shadow:0 1px 4px #16122b,0 0 4px #fff}
.gear-hat{top:-8%;left:50%;transform:translateX(-50%);font-size:.62em}
.gear-eyes{top:39%;left:50%;transform:translateX(-50%);font-size:.42em;white-space:nowrap}
.gear-neck{top:68%;left:50%;transform:translateX(-50%);font-size:.42em}
.gear-back{top:42%;right:-12%;font-size:.5em}
.gear-aura{top:-7%;right:-12%;font-size:.48em;filter:drop-shadow(0 0 5px #ffdb72)}
.star-wallet{display:flex;justify-content:space-between;align-items:center;margin:4px 0 10px;padding:10px 12px;border-radius:12px;background:#fff3cf;color:#74551a;font-size:12px}
.star-wallet b{font-size:14px}
.avatar-shop{margin:10px 0;padding:0 11px;border:1px solid #ddd7ee;border-radius:13px;background:#f8f6ff}
.avatar-shop summary{display:flex;justify-content:space-between;gap:8px;padding:12px 0;color:#302b66;font-size:13px;font-weight:900;cursor:pointer;list-style:none}
.avatar-shop summary::-webkit-details-marker{display:none}
.avatar-shop summary::after{content:"＋";margin-left:auto;color:#6256aa}
.avatar-shop[open] summary::after{content:"−"}
.shop-note{margin:0 0 10px;color:#686582;font-size:11px;line-height:1.45}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:11px}
.shop-item{display:flex;min-width:0;flex-direction:column;align-items:center;gap:4px;padding:9px 7px;border:1px solid #e4def2;border-radius:12px;background:#fff;text-align:center}
.shop-item-icon{font-size:26px;line-height:1.2}
.shop-item>b{font-size:11px;color:#302b66}
.shop-item small{min-height:28px;color:#747087;font-size:9px;line-height:1.35}
.shop-buy{width:100%;min-height:34px;padding:6px 5px;border:1px solid #c9c2e3;border-radius:9px;background:#f3f0ff;color:#433b86;font:inherit;font-size:10px;font-weight:900;cursor:pointer}
.shop-buy:hover:not(:disabled){background:#e6e0ff}
.shop-buy:disabled{background:#f3f1f6;color:#9995a5;cursor:not-allowed}
.shop-buy:focus-visible,.avatar-shop summary:focus-visible{outline:3px solid #2a847a;outline-offset:2px}
