:root {
  color: #2d504d;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-synthesis: none;
  --paper: #fffdf7;
  --ink: #2d504d;
  --muted: #6c817c;
  --line: #ded8c4;
  --green: #4ca274;
}
* { box-sizing: border-box; }
html { min-width: 0; background: #f6f4e8; }
body { min-width: 0; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 10% 9%, #ffe7a66e 0 150px, transparent 151px), radial-gradient(circle at 92% 24%, #d9eddf9c 0 190px, transparent 191px), linear-gradient(#9ab3a733 1px, transparent 1px), linear-gradient(90deg, #9ab3a733 1px, transparent 1px), linear-gradient(145deg, #fbf8ed, #eff7f0); background-size: auto, auto, 28px 28px, 28px 28px, auto; }
button { color: inherit; font: inherit; } button:not(:disabled) { cursor: pointer; } button:focus-visible { outline: 4px solid #f0c34e; outline-offset: 3px; }
.app { width: min(1120px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; }
.page { padding: 22px 0 52px; }
.loading-card { margin-top: 15vh; padding: 42px; border: 2px solid var(--line); border-radius: 32px; background: var(--paper); box-shadow: 0 18px 50px #294f4b18; text-align: center; font-size: 24px; font-weight: 900; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; text-align: left; }
.brand-mark { position: relative; display: block; width: 55px; height: 51px; border: 2px solid #d8d2bd; border-radius: 15px; background: #fffdf8; box-shadow: 0 6px 13px #35574f12; }
.brand-mark i { position: absolute; width: 28px; height: 34px; left: 8px; top: 7px; border: 3px solid #376059; border-radius: 5px; background: repeating-linear-gradient(#fff 0 7px, #dbe8dc 8px 9px); }.brand-mark b { position: absolute; display: grid; width: 24px; height: 24px; right: 3px; bottom: 2px; place-items: center; border: 3px solid white; border-radius: 50%; background: #55a77b; color: #fff; font-size: 12px; }.brand-mark em { position: absolute; right: 1px; top: -7px; color: #de9a3c; font-size: 21px; font-style: normal; transform: rotate(-20deg); }
.brand strong, .brand small { display: block; }.brand strong { font-size: 22px; letter-spacing: -.55px; }.brand small { margin-top: 1px; color: #71847f; font-size: 10px; font-weight: 800; letter-spacing: .42px; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 9px; }.collection-button, .sound-button { display: flex; min-height: 50px; align-items: center; gap: 9px; padding: 8px 13px; border: 2px solid #ddd7c3; border-radius: 15px; background: #fffdf8df; box-shadow: 0 5px 13px #35574f0e; font-size: 13px; font-weight: 900; }.collection-button small { display: block; margin-top: 1px; color: #7a8b87; font-size: 9px; text-align: left; }.sound-button { min-width: 50px; justify-content: center; font-size: 11px; }.sound-button.is-on { border-color: #82b99a; background: #edf8ef; }

.eyebrow { display: block; color: #4e9172; font: 900 11px Georgia, serif; letter-spacing: 1.35px; }
.hero { position: relative; display: grid; min-height: 422px; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; overflow: hidden; padding: 47px 54px; border: 2px solid #dcd7c3; border-radius: 42px; background: linear-gradient(125deg, #fff9e9 0 46%, #edf6ed 70%, #e8f0fa); box-shadow: 0 20px 55px #294f4b17; }
.hero::before { position: absolute; width: 190px; height: 190px; left: -85px; bottom: -95px; border: 25px solid #ffffff62; border-radius: 50%; content: ""; }.hero-copy { position: relative; z-index: 2; }.hero h1 { margin: 10px 0 16px; font-size: clamp(46px, 5vw, 64px); line-height: .96; letter-spacing: -2.4px; }.hero-copy > p { max-width: 570px; margin: 0; color: #627873; font-size: 17px; font-weight: 700; line-height: 1.55; }.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 28px; }
.primary-button, .secondary-button, .learn-button { min-height: 52px; padding: 13px 20px; border-radius: 16px; font-weight: 900; transition: transform .16s ease, box-shadow .16s ease; }.primary-button { border: 0; background: linear-gradient(145deg, #56aa7d, #3e936b); color: white; box-shadow: 0 7px 0 #2f7554, 0 13px 23px #3e936b28; }.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 9px 0 #2f7554, 0 16px 26px #3e936b2d; }.primary-button:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 #2f7554; }.primary-button span { margin-left: 7px; }.secondary-button, .learn-button { border: 2px solid #d5d0bd; background: #fffdf8; box-shadow: 0 5px 12px #304e480d; color: #365e57; }.secondary-button:hover, .learn-button:hover { border-color: #8bb99b; transform: translateY(-2px); }
.hero-editor { position: relative; min-height: 300px; padding: 45px 34px 32px; border: 9px solid #fff; border-radius: 28px; background: repeating-linear-gradient(#fffdf8 0 34px, #dce9df 35px 36px); box-shadow: 0 18px 35px #31554d20; transform: rotate(2deg); }.paper-tabs { position: absolute; display: flex; gap: 6px; left: 19px; top: 15px; }.paper-tabs i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #ed8c7e; }.paper-tabs i:nth-child(2) { background: #e4b34a; }.paper-tabs i:nth-child(3) { background: #61ae80; }.paper-title { color: #658078; font: 900 10px Georgia, serif; letter-spacing: 1.2px; text-transform: uppercase; }.hero-editor p { margin: 30px 0 0; color: #315651; font: 900 29px/1.55 Georgia, serif; }.hero-editor u { position: relative; text-decoration: underline wavy #e66f65 3px; text-underline-offset: 5px; }.correction-note { position: absolute; display: grid; width: 190px; right: -18px; bottom: 20px; grid-template-columns: 1fr 35px; gap: 3px; padding: 12px 12px 11px; border: 5px solid #fff; border-radius: 16px; background: #fff1c6; box-shadow: 0 11px 22px #31554d1d; transform: rotate(-5deg); }.correction-note small, .correction-note b { display: block; }.correction-note small { grid-column: 1; color: #9a762a; font-size: 8px; font-weight: 900; letter-spacing: 1px; }.correction-note b { grid-column: 1; font: 900 20px Georgia, serif; }.correction-note span { display: grid; grid-column: 2; grid-row: 1 / 3; place-items: center; border-radius: 50%; background: #55a77b; color: #fff; font-weight: 900; }.pencil { position: absolute; right: 25px; top: -29px; font-size: 51px; transform: rotate(22deg); }.hero-spark { position: absolute; left: -20px; bottom: 51px; color: #8878bb; font-size: 28px; }

.how, .levels { margin-top: 47px; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.section-heading h2, .collection-heading h2 { margin: 6px 0 0; font-size: 35px; line-height: 1.05; letter-spacing: -1px; }.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.45; text-align: right; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 19px; }.step-card { position: relative; display: grid; min-height: 135px; grid-template-columns: 48px 43px 1fr; gap: 11px; align-items: center; padding: 20px 17px; overflow: hidden; border: 2px solid #dfd9c5; border-radius: 24px; background: #fffdf8; box-shadow: 0 10px 23px #31554d0d; }.step-card::after { position: absolute; width: 88px; height: 88px; right: -38px; bottom: -42px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, white); content: ""; }.step-number { display: grid; width: 46px; height: 46px; place-items: center; border: 3px solid var(--accent); border-radius: 50%; color: var(--accent); font: 900 25px Georgia, serif; transform: translateY(-1px); }.step-icon { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, white); font-size: 22px; }.step-card h3 { margin: 0; font-size: 18px; }.step-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.35; }
.rule-strip { display: grid; grid-template-columns: 185px 1fr auto; gap: 24px; align-items: center; margin-top: 39px; padding: 25px 28px; border: 2px solid #d7e1d4; border-radius: 29px; background: linear-gradient(105deg, #eaf5e9, #fff8e2); box-shadow: 0 10px 26px #31554d10; }.proof-tools { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 92px; padding: 12px; border: 5px solid #fff; border-radius: 21px; background: #f1e8cf; box-shadow: 0 7px 15px #31554d11; transform: rotate(-2deg); }.proof-tools span, .proof-tools b, .proof-tools i { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: #fff; font: 900 12px Georgia, serif; font-style: normal; }.proof-tools span { background: #5da77d; }.proof-tools b { background: #d99340; }.proof-tools i { background: #8071b7; }.rule-strip h2 { margin: 5px 0; font-size: 22px; line-height: 1.2; }.rule-strip p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }.level-card { position: relative; display: flex; min-height: 292px; flex-direction: column; align-items: stretch; padding: 20px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--accent) 58%, white); border-radius: 27px; background: #fffdf8; box-shadow: 0 11px 25px #31554d11; text-align: left; transition: transform .16s ease, box-shadow .16s ease; }.level-card::after { position: absolute; width: 126px; height: 126px; right: -50px; top: -50px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, white); content: ""; }.level-card:hover { transform: translateY(-4px); box-shadow: 0 17px 29px #31554d1b; }.level-top, .level-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.level-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--accent) 17%, white); font-size: 29px; }.age-pill { position: relative; z-index: 2; padding: 6px 9px; border-radius: 20px; background: #f2efe4; color: #788783; font-size: 9px; font-weight: 900; }.level-index { margin-top: 17px; color: var(--accent); font: 900 10px Georgia, serif; letter-spacing: 1px; }.level-card > strong { margin-top: 6px; font-size: 23px; line-height: 1.05; }.level-copy { min-height: 64px; margin-top: 9px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }.level-proof { display: flex; gap: 4px; margin: 12px 0; }.level-proof i { display: block; height: 5px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 34%, white); }.level-proof i:nth-child(1) { width: 43%; }.level-proof i:nth-child(2) { width: 28%; }.level-proof i:nth-child(3) { width: 17%; }.level-bottom { margin-top: auto; padding-top: 11px; border-top: 1px dashed #ddd7c6; color: #71827e; font-size: 10px; font-weight: 900; }.stars { color: #e5a936; letter-spacing: 1px; }

.learn-hero, .collection-hero { display: grid; min-height: 275px; grid-template-columns: 1fr auto; gap: 25px; align-items: center; padding: 38px 48px; border: 2px solid #dcd7c3; border-radius: 36px; background: linear-gradient(125deg, #fff8e6, #eaf5e9, #edf0fb); box-shadow: 0 16px 40px #31554d14; }.back-link { padding: 7px 4px; border: 0; background: transparent; color: #547c73; font-size: 12px; font-weight: 900; }.learn-hero .eyebrow, .collection-hero .eyebrow { margin-top: 20px; }.learn-hero h1, .collection-hero h1 { margin: 7px 0 10px; font-size: 47px; line-height: 1; letter-spacing: -1.6px; }.learn-hero p, .collection-hero p { max-width: 670px; margin: 0; color: var(--muted); font-weight: 700; line-height: 1.5; }.learn-stamp { display: grid; width: 175px; height: 120px; place-items: center; border: 7px double #58a77b; border-radius: 22px; background: #f2faef; color: #4b9670; font: 900 20px Georgia, serif; letter-spacing: 1px; transform: rotate(-5deg); }.learn-stamp small { display: block; margin-top: -25px; font: 900 9px "Trebuchet MS", sans-serif; text-transform: uppercase; }
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 26px; }.lesson-card { position: relative; min-height: 280px; padding: 23px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--kind) 56%, white); border-radius: 26px; background: #fffdf8; box-shadow: 0 10px 23px #31554d0e; }.lesson-number { position: absolute; right: 16px; top: 11px; color: color-mix(in srgb, var(--kind) 25%, white); font: 900 46px Georgia, serif; }.lesson-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 17px; background: color-mix(in srgb, var(--kind) 15%, white); color: var(--kind); font: 900 20px Georgia, serif; }.lesson-card h2 { margin: 15px 0 5px; font-size: 22px; }.lesson-card > b { color: var(--kind); font-size: 12px; text-transform: uppercase; }.lesson-card p { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }.lesson-example { padding: 13px; border-radius: 14px; background: color-mix(in srgb, var(--kind) 9%, white); font: 800 14px/1.4 Georgia, serif; }.lesson-example u { text-decoration: underline wavy #e8756b 2px; text-underline-offset: 3px; }
.workflow { display: grid; grid-template-columns: 390px 1fr; gap: 22px; align-items: center; margin-top: 28px; padding: 24px 27px; border: 2px solid #e7d59e; border-radius: 27px; background: #fff8dc; }.workflow-sheet { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 90px; border: 5px solid #fff; border-radius: 20px; background: #fffdf8; }.workflow-sheet span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #5ba77c; color: white; font: 900 18px Georgia, serif; }.workflow-sheet p { margin: 0; font-size: 11px; font-weight: 900; }.workflow-sheet i { color: #d3923c; font-style: normal; }.workflow h2 { margin: 5px 0; font-size: 21px; }.workflow > div:last-child p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }.learn-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 27px; padding: 25px 30px; border-radius: 25px; background: #e9f4e8; }.learn-footer h2 { margin: 4px 0 0; font-size: 24px; }

.game-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; }.game-head > div { text-align: center; }.game-head > div span, .game-head > div small { display: block; }.game-head > div span { font-size: 16px; font-weight: 900; }.game-head > div small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 800; }.game-head .back-link { justify-self: start; }.hint-button { justify-self: end; min-height: 42px; padding: 9px 13px; border: 2px solid #dfc98b; border-radius: 13px; background: #fff7d8; color: #775f2f; font-size: 12px; font-weight: 900; }.hint-button:disabled { opacity: .55; }.progress-line { height: 9px; margin: 14px 0 19px; overflow: hidden; border-radius: 9px; background: #dfeade; }.progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #56a77b, #e1aa40, #7f70b7); transition: width .35s ease; }
.game-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: 18px; align-items: stretch; }.brief-card, .editor-card { border: 2px solid #dcd8c5; border-radius: 31px; background: #fffdf8; box-shadow: 0 15px 36px #31554d15; }.brief-card { position: relative; display: flex; min-height: 620px; flex-direction: column; align-items: center; overflow: hidden; padding: 30px; text-align: center; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 13%, white), #fff9e9); }.brief-card::before, .brief-card::after { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, white); content: ""; }.brief-card::before { width: 160px; height: 160px; right: -75px; top: -65px; }.brief-card::after { width: 110px; height: 110px; left: -50px; bottom: -45px; }.brief-emoji { display: grid; width: 126px; height: 126px; place-items: center; margin: 23px 0 15px; border: 7px solid #fff; border-radius: 33px; background: color-mix(in srgb, var(--accent) 18%, white); box-shadow: 0 10px 21px #31554d17; font-size: 64px; transform: rotate(-3deg); }.brief-card h2 { margin: 5px 0 8px; font-size: 27px; }.brief-card > p { max-width: 270px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.45; }.error-counter { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 17px; border: 2px solid #fff; border-radius: 17px; background: #ffffff8f; text-align: left; }.error-counter > span { font: 900 36px Georgia, serif; }.error-counter b, .error-counter small { display: block; }.error-counter b { font-size: 12px; }.error-counter small { color: var(--muted); font-size: 9px; font-weight: 800; }.brief-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: auto; }.brief-kinds span { padding: 7px 9px; border: 2px solid color-mix(in srgb, var(--kind) 45%, white); border-radius: 11px; background: color-mix(in srgb, var(--kind) 9%, white); color: #526d67; font-size: 9px; font-weight: 900; }
.editor-card { min-height: 620px; padding: 0 29px 27px; overflow: hidden; }.editor-toolbar { display: grid; min-height: 55px; grid-template-columns: 95px 1fr auto; gap: 10px; align-items: center; margin: 0 -29px; padding: 0 24px; border-bottom: 2px solid #ded9c8; background: #f2f0e7; }.window-dots { display: flex; gap: 6px; }.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e98277; }.window-dots i:nth-child(2) { background: #e4ad43; }.window-dots i:nth-child(3) { background: #58aa7d; }.editor-toolbar > b { overflow: hidden; color: #647b75; font: 800 11px Georgia, serif; text-align: center; text-overflow: ellipsis; white-space: nowrap; }.toolbar-status { padding: 6px 9px; border-radius: 10px; background: #e4e5df; color: #7b8986; font-size: 9px; font-weight: 900; text-transform: uppercase; }.toolbar-status.ready { background: #dff2e3; color: #438062; }
.editor-sheet { position: relative; display: grid; min-height: 155px; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; margin-top: 25px; padding: 25px 22px 25px 10px; border: 2px solid #dfe3d8; border-radius: 21px; background: repeating-linear-gradient(#fff 0 38px, #e4eee6 39px 40px); box-shadow: inset 0 0 0 7px #f8f7ef; }.line-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #edf2ea; color: #91a09c; font: 11px Georgia, serif; }.editable-text { position: relative; padding: 0 4px; color: #315651; font: 900 23px/1.72 Georgia, serif; z-index: 1; }.text-fragment { display: inline; min-height: 38px; margin: 0; padding: 4px 2px 5px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; text-decoration: underline dotted #9cafaa 2px; text-underline-offset: 6px; transition: background .14s ease, color .14s ease; }.text-fragment:hover:not(:disabled) { background: #eaf5e9; text-decoration-color: #4c9c71; }.text-fragment.is-wrong { background: #fff0ed; color: #ae5d56; text-decoration: underline wavy #e7746c 2px; }.error-fragment.is-selected { background: #e7effb; color: #516ca2; text-decoration: underline solid #7185b4 3px; }.error-fragment.is-hint { background: #fff2b9; color: #7d6224; text-decoration: underline wavy #dfa735 3px; box-shadow: 0 0 0 4px #fff1a56b; }.error-fragment.is-fixed { background: #dff3e3; color: #347858; text-decoration: none; }.error-fragment.is-fixed::after { margin-left: 3px; color: #4ba976; content: "✓"; font: 900 12px "Trebuchet MS", sans-serif; }.caret { position: absolute; width: 2px; height: 25px; right: 24px; bottom: 25px; background: #5b9c7c; animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } }
.editor-instruction { margin: 12px 2px 0; color: var(--muted); font-size: 11px; font-weight: 800; }.correction-placeholder, .correction-panel { margin-top: 18px; border: 2px dashed #d7ddcf; border-radius: 19px; background: #f7f7f0; }.correction-placeholder { display: grid; min-height: 112px; grid-template-columns: 44px 1fr; gap: 11px; align-items: center; padding: 16px; }.correction-placeholder > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #e8ece5; color: #84948f; font-size: 24px; }.correction-placeholder strong { font-size: 13px; }.correction-placeholder p { margin: 3px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; }.correction-panel { padding: 16px; border-style: solid; border-color: color-mix(in srgb, var(--kind) 42%, white); background: color-mix(in srgb, var(--kind) 7%, white); }.correction-heading { display: grid; grid-template-columns: 43px 1fr; gap: 10px; align-items: center; }.correction-heading > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--kind) 17%, white); color: var(--kind); font: 900 17px Georgia, serif; }.correction-heading small, .correction-heading strong { display: block; }.correction-heading small { color: var(--kind); font-size: 8px; font-weight: 900; letter-spacing: .6px; }.correction-heading strong { margin-top: 3px; font-size: 14px; }.correction-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }.correction-option { position: relative; min-width: 0; min-height: 57px; padding: 10px 22px 10px 9px; overflow-wrap: anywhere; border: 2px solid #d7e3d8; border-radius: 14px; background: #fff; box-shadow: 0 5px 10px #31554d0a; color: #315651; font: 900 15px Georgia, serif; }.correction-option:hover:not(:disabled) { border-color: #6db48a; background: #eff9ef; transform: translateY(-2px); }.correction-option small { position: absolute; right: 6px; bottom: 5px; color: #9ba8a4; font: 800 8px "Trebuchet MS", sans-serif; }.correction-option.is-wrong { border-color: #eb9d94; background: #fff0ed; color: #ad5d57; }.correction-option.is-hint { border-color: #e4ad38; background: #fff7d7; box-shadow: 0 0 0 4px #f6df8c73; }
.feedback { display: grid; min-height: 75px; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; margin-top: 16px; padding: 13px 15px; border: 2px solid #d8e2d7; border-radius: 17px; background: #eef6ed; }.feedback > b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #fff; font-size: 21px; }.feedback strong { font-size: 13px; }.feedback p { margin: 3px 0 0; color: #667b76; font-size: 11px; font-weight: 700; line-height: 1.35; }.feedback.try { border-color: #efc0b9; background: #fff2ef; }.feedback.hint { border-color: #ead28b; background: #fff8db; }.feedback.good { border-color: #b8dec3; background: #e8f6e9; }.feedback.found { border-color: #bdcbe7; background: #eef3fb; }.game-actions { display: flex; justify-content: flex-end; margin-top: 12px; }.game-actions .primary-button { min-height: 47px; padding: 11px 17px; }.text-button { min-height: 42px; padding: 9px 12px; border: 0; background: transparent; color: #537b72; font-size: 12px; font-weight: 900; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }

.result { position: relative; max-width: 840px; min-height: 590px; margin: 34px auto 0; padding: 48px 58px 40px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--accent) 56%, white); border-radius: 39px; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 16%, white), transparent 45%), #fffdf8; box-shadow: 0 22px 55px #31554d1a; text-align: center; }.result::before, .result::after { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--accent) 10%, white); content: ""; }.result::before { width: 170px; height: 170px; left: -85px; bottom: -85px; }.result::after { width: 140px; height: 140px; right: -70px; top: 80px; }.result-confetti { position: absolute; right: 27px; top: 19px; color: var(--accent); font-size: 20px; letter-spacing: 9px; }.result-icon { display: grid; width: 95px; height: 95px; place-items: center; margin: 0 auto 12px; border: 7px solid #fff; border-radius: 29px; background: color-mix(in srgb, var(--accent) 17%, white); box-shadow: 0 11px 22px #31554d16; font-size: 48px; transform: rotate(-3deg); }.result-stamp { display: inline-block; margin-bottom: 12px; padding: 6px 12px; border: 4px double #56a77b; border-radius: 8px; color: #4b966f; font: 900 10px Georgia, serif; letter-spacing: 1.2px; transform: rotate(-2deg); }.result h1 { margin: 8px 0; font-size: 44px; letter-spacing: -1.4px; }.result-stars { color: #e8ac35; font-size: 40px; letter-spacing: 4px; }.result > p { max-width: 620px; margin: 11px auto; color: var(--muted); font-weight: 700; line-height: 1.5; }.stats { display: flex; justify-content: center; gap: 12px; margin: 22px 0; }.stats span { min-width: 170px; padding: 13px; border: 2px solid #e0dbc9; border-radius: 17px; background: #fff; }.stats b, .stats small { display: block; }.stats b { font: 900 28px Georgia, serif; }.stats small { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }.result-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; z-index: 1; }

.archive-box { position: relative; display: grid; width: 185px; height: 145px; place-items: center; border: 7px solid #fff; border-radius: 25px; background: #f0dfae; box-shadow: 0 13px 27px #31554d17; transform: rotate(3deg); }.archive-box::before { position: absolute; width: 70px; height: 18px; left: 15px; top: -18px; border-radius: 10px 10px 0 0; background: #e0c57c; content: ""; }.archive-box span { color: #897039; font-size: 9px; font-weight: 900; letter-spacing: 1px; }.archive-box b { margin-top: -25px; font: 900 45px Georgia, serif; }.archive-box i { position: absolute; display: grid; width: 42px; height: 42px; right: 13px; bottom: 10px; place-items: center; border-radius: 50%; background: #58a77b; color: #fff; font-style: normal; font-weight: 900; }
.collection-group { margin-top: 36px; }.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 15px; }.collection-heading > b { padding: 7px 10px; border-radius: 20px; background: #e9f3e9; color: #54796f; font-size: 11px; }.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.archive-card { position: relative; display: grid; min-height: 220px; grid-template-columns: 58px 1fr; gap: 11px; align-items: start; padding: 19px 16px; overflow: hidden; border: 2px dashed #d5d4c9; border-radius: 23px; background: #f2f1ea; color: #83918d; }.archive-card.opened { border: 3px solid color-mix(in srgb, var(--accent) 52%, white); background: #fffdf8; box-shadow: 0 8px 20px #31554d0e; color: #315651; }.archive-number { position: absolute; right: 11px; top: 8px; color: #96a19e; font: 11px Georgia, serif; }.archive-emoji { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 17px; background: color-mix(in srgb, var(--accent) 14%, white); font-size: 29px; }.archive-card strong { display: block; margin-top: 4px; font-size: 15px; }.archive-card p { grid-column: 1 / -1; min-height: 76px; margin: 10px 0 0; padding: 12px; border-radius: 14px; background: #f7f8f2; color: #5f7671; font: 800 13px/1.45 Georgia, serif; }.archive-card p span { display: inline; }.archive-fix { padding: 1px 3px; border-radius: 5px; background: #dff2e3; color: #347858; }.archive-status { grid-column: 1 / -1; justify-self: end; padding: 5px 8px; border-radius: 9px; background: #e6ede4; color: #75847f; font-size: 8px; font-weight: 900; text-transform: uppercase; }.archive-card.opened .archive-status { background: #e0f2e3; color: #468064; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr .82fr; padding: 42px 34px; }.hero h1 { font-size: 48px; }.hero-editor { transform: scale(.88) rotate(2deg); transform-origin: center; margin-left: -19px; }.steps-grid { grid-template-columns: 1fr; }.step-card { min-height: 104px; }.rule-strip { grid-template-columns: 160px 1fr; }.rule-strip .secondary-button { grid-column: 2; justify-self: start; }.levels-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr; }.brief-card { min-height: 0; display: grid; grid-template-columns: 110px 1fr auto; gap: 13px; align-items: center; text-align: left; }.brief-card > .eyebrow, .brief-kinds { grid-column: 1 / -1; }.brief-emoji { width: 105px; height: 105px; margin: 0; font-size: 55px; }.brief-card h2 { margin: 0; }.brief-card > p { max-width: none; }.error-counter { margin: 0; }.brief-kinds { margin-top: 0; }.editor-card { min-height: 0; }.archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .app { width: min(1120px, calc(100% - 20px)); }.page { padding: 12px 0 43px; }.topbar { align-items: flex-start; margin-bottom: 18px; }.brand-mark { width: 44px; height: 42px; border-radius: 13px; }.brand-mark i { width: 23px; height: 28px; left: 6px; top: 6px; }.brand-mark b { width: 20px; height: 20px; font-size: 10px; }.brand-mark em { font-size: 17px; }.brand strong { max-width: 172px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }.brand small { font-size: 8px; }.top-actions { gap: 5px; }.collection-button, .sound-button { min-height: 42px; padding: 7px 9px; border-radius: 12px; font-size: 0; }.collection-button small { display: none; }.collection-button > span:first-child, .sound-button > span:first-child { font-size: 18px; }
  .hero { display: block; min-height: 0; padding: 33px 24px 15px; border-radius: 28px; }.eyebrow { font-size: 9px; letter-spacing: 1px; }.hero h1 { margin-top: 8px; font-size: 38px; letter-spacing: -1.3px; }.hero-copy > p { font-size: 14px; }.hero-actions { align-items: stretch; margin-top: 21px; }.hero-actions button { width: 100%; }.hero-editor { width: 300px; min-height: 228px; margin: 19px auto -16px; padding: 37px 24px 25px; border-width: 7px; transform: scale(.8) rotate(2deg); transform-origin: top center; }.hero-editor p { margin-top: 22px; font-size: 23px; }.correction-note { width: 170px; right: -10px; bottom: 11px; }.pencil { font-size: 43px; }
  .how, .levels { margin-top: 32px; }.section-heading { display: block; }.section-heading h2 { font-size: 30px; }.section-heading > p { max-width: none; margin-top: 8px; font-size: 11px; text-align: left; }.steps-grid { gap: 9px; margin-top: 14px; }.step-card { grid-template-columns: 40px 34px 1fr; gap: 9px; padding: 14px 12px; border-radius: 19px; }.step-number { width: 38px; height: 38px; border-width: 2px; font-size: 20px; }.step-icon { width: 32px; height: 32px; font-size: 17px; }.step-card h3 { font-size: 15px; }.step-card p { font-size: 11px; }
  .rule-strip { grid-template-columns: 88px 1fr; gap: 12px; margin-top: 29px; padding: 16px 13px; border-radius: 21px; }.proof-tools { min-height: 82px; flex-direction: column; gap: 3px; padding: 6px; border-width: 3px; }.proof-tools span, .proof-tools b, .proof-tools i { width: 42px; height: 22px; border-radius: 7px; font-size: 8px; }.rule-strip h2 { font-size: 16px; }.rule-strip p { font-size: 10px; }.rule-strip .secondary-button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .levels-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 15px; }.level-card { min-height: 258px; padding: 18px; border-radius: 22px; }.level-icon { width: 50px; height: 50px; font-size: 26px; }.level-card > strong { font-size: 22px; }.level-copy { min-height: 0; }
  .learn-hero, .collection-hero { display: block; min-height: 0; padding: 27px 22px; border-radius: 25px; }.learn-hero h1, .collection-hero h1 { font-size: 35px; }.learn-hero p, .collection-hero p { font-size: 13px; }.learn-stamp, .archive-box { display: none; }.lesson-grid { grid-template-columns: 1fr; gap: 10px; }.lesson-card { min-height: 255px; padding: 20px; border-radius: 22px; }.workflow { display: block; padding: 16px; }.workflow-sheet { min-height: 75px; gap: 4px; }.workflow-sheet span { width: 30px; height: 30px; }.workflow-sheet p { font-size: 8px; }.workflow > div:last-child { margin-top: 15px; }.workflow h2 { font-size: 17px; }.learn-footer { display: block; padding: 21px; }.learn-footer h2 { font-size: 21px; }.learn-footer .primary-button { width: 100%; margin-top: 15px; }
  .game-head { grid-template-columns: 1fr auto; gap: 5px; }.game-head > div { grid-column: 1 / -1; grid-row: 1; margin-bottom: 6px; }.game-head .back-link { grid-column: 1; grid-row: 2; }.hint-button { grid-column: 2; grid-row: 2; min-height: 38px; padding: 7px 9px; font-size: 10px; }
  .game-grid { gap: 12px; margin-top: 12px; }.brief-card { grid-template-columns: 72px 1fr; gap: 10px; padding: 18px; border-radius: 22px; }.brief-emoji { width: 70px; height: 70px; border-width: 5px; border-radius: 20px; font-size: 38px; }.brief-card h2 { font-size: 22px; }.brief-card > p { grid-column: 1 / -1; font-size: 11px; }.error-counter { grid-column: 1 / -1; justify-self: center; padding: 8px 13px; }.error-counter > span { font-size: 29px; }.brief-kinds { justify-content: center; }
  .editor-card { padding: 0 15px 20px; border-radius: 22px; }.editor-toolbar { grid-template-columns: 63px 1fr auto; margin: 0 -15px; padding: 0 12px; }.editor-sheet { min-height: 145px; grid-template-columns: 25px 1fr; gap: 6px; margin-top: 17px; padding: 20px 11px 20px 7px; border-radius: 17px; }.line-number { width: 23px; height: 23px; }.editable-text { font-size: 19px; line-height: 1.8; }.text-fragment { min-height: 36px; padding: 3px 1px 4px; text-underline-offset: 5px; }.caret { display: none; }.editor-instruction { font-size: 10px; }.correction-placeholder { min-height: 95px; margin-top: 13px; padding: 12px; }.correction-panel { margin-top: 13px; padding: 12px; }.correction-heading { grid-template-columns: 38px 1fr; }.correction-heading > span { width: 37px; height: 37px; }.correction-heading strong { font-size: 12px; }.correction-options { grid-template-columns: 1fr; gap: 7px; }.correction-option { min-height: 51px; font-size: 14px; }.feedback { min-height: 72px; margin-top: 13px; padding: 11px; }.feedback strong { font-size: 12px; }.feedback p { font-size: 10px; }.game-actions { margin-top: 9px; }.game-actions .primary-button { width: 100%; }
  .result { min-height: 0; margin-top: 22px; padding: 37px 18px 29px; border-radius: 27px; }.result-confetti { right: 14px; top: 12px; font-size: 15px; }.result-icon { width: 80px; height: 80px; border-width: 6px; font-size: 39px; }.result h1 { font-size: 34px; }.result-stars { font-size: 32px; }.result > p { font-size: 13px; }.stats { gap: 7px; }.stats span { min-width: 0; width: 50%; padding: 11px; }.stats b { font-size: 23px; }.result-actions { align-items: stretch; flex-direction: column; }
  .collection-heading { align-items: flex-start; }.collection-heading h2 { font-size: 23px; }.archive-grid { grid-template-columns: 1fr; gap: 9px; }.archive-card { min-height: 200px; padding: 16px 13px; border-radius: 20px; }.archive-card p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
