@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root { --paper: #f8f7f0; --ink: #183f32; --muted: #62665e; --line: #d4d7c5; --accent: #e9ff93; --orange: #b95634; font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; }
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, .button { cursor: pointer; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
[hidden] { display: none !important; }
.site-header, main, .site-footer { width: min(1080px, calc(100% - 64px)); margin: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 110px; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -1.2px; }
.brand span { font-weight: 400; }
.brand i { font-size: 10px; align-self: flex-start; margin: 5px 0 0 3px; font-style: normal; }
.brand svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.5; margin-right: 10px; }
nav { display: flex; gap: 30px; align-items: center; }
.nav-link { text-decoration: none; font-size: 14px; }
.beta-label { font-size: 10px; letter-spacing: 1px; border: 1px solid var(--line); border-radius: 20px; padding: 7px 10px; }
.intro { padding: 72px 0 40px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 700; }
.small-star { font-size: 21px; vertical-align: middle; margin-right: 10px; }
h1, h2 { font-family: 'Manrope', sans-serif; font-weight: 500; letter-spacing: -2px; }
.intro h1 { font-size: clamp(64px, 9vw, 112px); line-height: 1.04; margin: 27px 0 22px; }
h1 em { font-family: Georgia, serif; font-weight: 400; }
.intro-copy { color: var(--muted); line-height: 1.7; font-size: 17px; }
.practice-card { background: #fffef8; border: 1px solid var(--line); border-radius: 16px; padding: 38px; margin: -305px 0 0 46%; position: relative; }
.card-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 30px; }
h2 { font-size: 28px; letter-spacing: -1px; margin: 10px 0; }
.round-arrow { border: 1px solid var(--line); border-radius: 50%; font-size: 25px; padding: 8px 12px; }
fieldset { padding: 0; border: 0; margin: 26px 0; min-width: 0; }
legend { font-size: 11px; color: var(--muted); margin-bottom: 15px; }
legend span { color: var(--ink); font-size: 13px; margin-left: 10px; }
.shape-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shape-option { border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 14px 5px; cursor: pointer; position: relative; }
.shape-option:has(input:checked) { background: #eaf0df; border-color: var(--ink); }
.shape-option:has(input:focus-visible) { outline: 3px solid var(--orange); }
.shape-option input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.shape-symbol { display: block; font: 44px/1 Georgia, serif; margin-bottom: 12px; }
.shape-option strong { font-size: 12px; display: block; }
.shape-option small { font-size: 9px; display: block; margin-top: 5px; color: var(--muted); }
.difficulty-options { display: flex; gap: 20px; justify-content: space-between; }
.difficulty-options label { display: flex; align-items: start; gap: 5px; cursor: pointer; }
input[type=radio] { accent-color: var(--ink); }
.difficulty-options strong { display: block; font-size: 12px; }
.difficulty-options small { display: block; font-size: 9px; margin-top: 5px; color: var(--muted); }
.start-row { border-top: 1px solid var(--line); padding-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.start-row > span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid var(--line); padding: 12px 20px; border-radius: 7px; text-decoration: none; background: transparent; font-size: 13px; }
.button.primary { background: var(--ink); color: #fffef8; border-color: var(--ink); }
.button:hover { filter: brightness(1.15); }
.quiet-note { display: flex; align-items: center; gap: 16px; padding: 42px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.quiet-note > span { font-size: 35px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; margin-top: 35px; }
.recent { margin-top: 50px; }
.recent-row { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.recent-row span { color: var(--muted); }
.flash { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; line-height: 1.6; }
.flash--notice { color: #244d35; border-color: #a7bea0; background: #edf4e9; }
.flash--alert { color: #813c2d; border-color: #d9a293; background: #fff0eb; }
.flash-message { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.flash-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; }
.flash-close:hover { background: rgb(0 0 0 / 5%); }
.flash-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.skip-link { position: absolute; top: -100px; left: 20px; background: white; padding: 10px; z-index: 10; }
.skip-link:focus { top: 10px; }
.game { max-width: 780px; margin: 45px auto; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.game-heading h1 { font-size: 32px; letter-spacing: -1px; margin: 12px 0 24px; }
.text-link { font-size: 13px; text-underline-offset: 5px; white-space: nowrap; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 20px; }
.game-toolbar strong { font-size: 24px; }
.game-toolbar span { font-size: 12px; margin-left: 7px; color: var(--muted); }
.game-toolbar p { font-size: 12px; color: var(--muted); }
.game-toolbar button, .secondary-controls button { background: transparent; border: 0; text-decoration: underline; text-underline-offset: 5px; font-size: 12px; min-height: 44px; }
.board-frame { position: relative; background: #fffef8; border: 1px solid var(--line); border-radius: 12px; padding: 25px; }
.maze-board { display: block; background: transparent; border: 0; padding: 0; width: min(100%, 540px); margin: auto; touch-action: none; }
.maze-board svg { width: 100%; display: block; overflow: visible; }
.maze-wall { stroke: var(--ink); stroke-width: 2.3; stroke-linecap: square; fill: none; }
.maze-trail { stroke: #a0b978; stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0.65; }
.maze-solution { stroke: var(--orange); stroke-width: 3; stroke-dasharray: 4 4; fill: none; }
.maze-label { fill: var(--ink); font: bold 9px sans-serif; text-anchor: middle; dominant-baseline: central; }
.player-dot { fill: var(--orange); stroke: #fffef8; stroke-width: 2; }
.pause-cover { position: absolute; inset: 0; background: #edf0e5; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pause-cover > span { font: italic 36px Georgia, serif; }
.pause-cover p { font-size: 13px; color: var(--muted); margin: 16px 0 25px; }
.position-status { text-align: center; color: var(--muted); font-size: 11px; min-height: 16px; }
.game-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.direction-pad { display: flex; gap: 6px; }
.direction-pad button { width: 46px; height: 46px; background: #fffef8; border: 1px solid var(--line); border-radius: 7px; font-size: 22px; }
.direction-pad button:active { background: var(--accent); }
.secondary-controls { display: flex; gap: 12px; }
.control-cue { color: var(--muted); font-size: 10px; margin-top: 16px; }
.result-card { background: #eaf0df; border-radius: 12px; padding: 30px; margin-top: 30px; }
.result-card > p { line-height: 1.7; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 1500px) { main { min-height: 65vh; } }
@media (max-width: 950px) { .practice-card { margin-left: 43%; padding: 25px; } .intro h1 { font-size: 83px; } .difficulty-options { gap: 6px; } .start-row { flex-wrap: wrap; } }
@media (max-width: 720px) { .site-header, main, .site-footer { width: calc(100% - 36px); } .site-header { min-height: 85px; } .brand { font-size: 20px; } .brand svg { width: 28px; margin-right: 7px; } nav { gap: 12px; } .beta-label { display: none; } .intro { padding-top: 35px; } .intro h1 { font-size: 72px; } .intro-copy { font-size: 15px; } .practice-card { margin: 0; padding: 25px; } .card-heading { margin-bottom: 15px; } .difficulty-options { gap: 12px; } .quiet-note { padding: 20px 0; } .site-footer { line-height: 1.7; } .game { margin-top: 26px; } .game-heading h1 { font-size: 25px; } .board-frame { padding: 12px; } .game-controls { justify-content: center; } .control-cue { text-align: center; } }
@media (max-width: 380px) { .practice-card { padding: 18px; } .shape-options { gap: 5px; } .shape-option small { font-size: 8px; } .difficulty-options { gap: 6px; } .difficulty-options small { font-size: 8px; } .game-heading { flex-wrap: wrap; gap: 0; } .game-toolbar { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
.daily-intro { padding: 60px 0 35px; text-align: center; }
.daily-intro h1 { font-size: clamp(56px, 7vw, 84px); line-height: 1.12; margin: 24px 0; }
.daily-card { max-width: 720px; margin: auto; padding: 35px 40px; background: #fffef8; border: 1px solid var(--line); border-radius: 14px; }
.daily-meta, .daily-foot, .daily-start { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.daily-card h2 { font-size: 38px; margin-top: 22px; }
.daily-card p { line-height: 1.7; }
.daily-settings { color: var(--muted); font-size: 13px; }
.daily-settings span { margin: 0 8px; }
.daily-rules { padding-left: 18px; line-height: 2.2; font-size: 13px; margin: 25px 0; }
.daily-start { justify-content: start; flex-wrap: wrap; }
.daily-start > span { font-size: 10px; color: var(--muted); }
.daily-foot { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 10px; font-size: 10px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 720px) { .daily-card { padding: 23px; } .daily-card h2 { font-size: 29px; } .daily-intro { padding-top: 30px; } .daily-rules { line-height: 1.8; } .daily-rules li { margin-bottom: 7px; } }
.account-card { max-width: 540px; margin: 55px auto; padding: 35px; background: #fffef8; border: 1px solid var(--line); border-radius: 14px; }
.account-card h1, .page-heading h1 { font-size: 38px; letter-spacing: -1.4px; }
.account-card p { line-height: 1.7; font-size: 13px; }
.account-card form { margin: 25px 0; }
.account-card label { display: block; margin: 18px 0 8px; font-size: 12px; }
.account-card input:not([type=submit]), .account-card select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: transparent; color: var(--ink); }
.account-card input[type=submit] { margin-top: 24px; }
.account-divider { border-top: 1px solid var(--line); margin-top: 25px; }
.page-heading { margin: 50px 0 30px; }
.recent-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 8px; }
@media (max-width: 720px) { .site-header { flex-wrap: wrap; padding: 18px 0; gap: 16px; } .site-header nav { margin-left: auto; } .account-card { padding: 23px; margin-top: 30px; } .account-card h1 { font-size: 32px; } }
.maze-preview { display: block; max-width: 600px; width: 100%; margin: auto; }
.button { color: var(--ink); }
.button.primary { color: #fffef8; }
.skip-link { color: #173f38; }
.comparison-card { padding: 25px; border: 1px solid var(--line); border-radius: 12px; margin-top: 30px; }
.comparison-card p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.comparison-card ul { list-style: none; padding: 0; }
.comparison-card li { display: flex; gap: 15px; align-items: center; justify-content: space-between; margin: 10px 0; font-size: 12px; }
.comparison-card meter { width: 45%; }
.privacy-copy { max-width: 740px; margin: 0 auto 50px; line-height: 1.8; }
.privacy-copy h2 { margin-top: 32px; }
.privacy-copy p { font-size: 15px; }
.report-table { max-width: 100%; overflow-x: auto; margin: 25px 0; }
.report-table table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.report-table caption { text-align: left; margin: 10px 0; color: var(--muted); }
.report-table :is(th,td) { padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table th small { display: block; font-weight: normal; margin-top: 7px; }
.player-endpoint { fill: none; stroke: #a74722; stroke-width: 2; }
button:disabled { opacity: 0.55; cursor: default; }

/* Compact language disclosure in the account area. */
.language-menu { position: relative; flex-shrink: 0; font-size: 12px; }
.language-menu-trigger { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; }
.language-menu-trigger::-webkit-details-marker { display: none; }
.language-menu-trigger:hover, .language-menu[open] .language-menu-trigger { background: #e9ecdf; }
.language-menu-trigger:focus-visible, .language-menu-option:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.language-menu-chevron { transition: transform 120ms ease; }
.language-menu[open] .language-menu-chevron { transform: rotate(180deg); }
.language-menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50; width: 210px; max-width: calc(100vw - 32px); padding: 8px; background: #fffef8; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px #183f321a; }
.language-menu-label { margin: 6px 10px 8px; color: var(--muted); font-size: 11px; }
.language-selector { margin: 0; }
.language-menu-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 42px; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.language-menu-option:hover, .language-menu-option:focus-visible { background: #eff1e8; }
.language-menu-option[aria-current] { background: #e9ecdf; font-weight: 600; }
@media (max-width: 700px) { .language-menu-panel { inset-inline-start: 0; inset-inline-end: auto; } }
@media (prefers-reduced-motion: reduce) { .language-menu-chevron { transition: none; } }
.home-header-inner, .home-account-links, .home-navigation { flex-wrap: wrap; }
html:lang(ja) { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif; }
html:lang(ja) :is(h1,h2,h3,.home-brand) { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; letter-spacing: normal; }
html:lang(ja) .home-hero h1 { font-size: clamp(40px, 4.1vw, 52px); line-height: 1.15; line-break: strict; }
:is(button,.button,.home-button) { white-space: normal; }
@media (max-width: 700px) { .home-account-links { justify-content: flex-start; } }

.game-heading .eyebrow { text-transform: uppercase; }
