:root{--paper:#f3faed;--forest:#165e52;--ink:#183e34;--muted:#547366;--lime:#daf56d;--mist:#deefe3;--line:#cddfd4;--white:#fff;--nav-height:5rem;color-scheme:light;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}:is(button,a,input):focus-visible{outline:3px solid var(--forest);outline-offset:4px}a{color:var(--forest);text-underline-offset:3px}button{touch-action:manipulation}img{max-width:100%;object-fit:contain}h1,h2,h3,p{margin-top:0}h1{font-size:1.9rem;line-height:1.2}h2{font-size:1.35rem;line-height:1.35}h3{font-size:1.08rem}p{margin-bottom:1rem}#app{height:100vh;height:100dvh;display:grid;grid-template-rows:minmax(0,1fr) auto;max-width:1440px;margin:auto;padding-top:env(safe-area-inset-top)}#main{overflow:auto;min-height:0;scroll-behavior:smooth;scrollbar-gutter:stable both-edges}#main:focus{outline:none}#navigation{background:#fff;padding:8px max(6px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-top:1px solid #e6eee6;z-index:3}.tab{display:flex;min-width:0;align-items:center;justify-content:center;gap:3px;flex-direction:column;border:0;border-radius:22px;background:transparent;padding:7px 2px;color:var(--forest);line-height:1.2}.tab svg{width:26px;height:26px;flex:none}.tab span{font-size:.74rem;overflow-wrap:anywhere}.tab[aria-current=page]{background:#e8f8a6;font-weight:700}.page{width:min(100%,760px);padding:24px 22px 32px;margin:0 auto}.page>h1{text-align:center;margin-bottom:24px}.home{max-width:980px;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 24px 20px;margin:auto}.tagline{background:var(--lime);border-radius:999px;text-align:center;font-size:.82rem;font-weight:900;letter-spacing:.035em;padding:6px 14px;width:100%;margin-bottom:12px}.home-logo{width:148px;display:block;margin:0 auto 8px}.welcome{font-weight:800;font-size:1.1rem;text-align:center;line-height:1.4;max-width:29rem;margin:0 auto 12px}.hero-image{width:min(100%,310px);max-height:27vh;border-radius:26px;display:block;margin:0 auto 16px}.home-columns{width:100%}.home-controls{display:flex;flex-direction:column;gap:14px}.mode-panel{border:1px solid var(--line);border-radius:24px;padding:14px;text-align:center}.mode-panel h2{font-size:1.1rem;margin:0 0 12px}.segmented{display:flex;border:1px solid var(--forest);border-radius:999px;overflow:hidden}.segmented button{border:0;border-right:1px solid var(--forest);background:transparent;padding:11px 6px;flex:1;font-weight:700;min-height:46px}.segmented button:last-child{border:0}.segmented button[aria-pressed=true]{background:var(--lime)}.mode-explanation{font-size:1.08rem;line-height:1.4;font-weight:650;margin:12px 0 0}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;width:100%;padding:10px 18px;border-radius:999px;font-weight:800;line-height:1.3;text-align:center;text-decoration:none}.primary{background:var(--lime);border:1px solid #b7d347;color:var(--ink)}.start-button{font-size:1.35rem;min-height:54px;box-shadow:0 5px 0 var(--forest);margin-bottom:6px}.secondary{background:transparent;border:1px solid var(--line);color:var(--forest)}.fine{font-size:.87rem;color:var(--muted)}.ke-note{text-align:center;font-size:.95rem;line-height:1.4;margin:12px 0 0;max-width:34rem}.notice-box{border-radius:16px;background:var(--mist);padding:14px;margin:14px 0}.resume{width:100%;padding:12px 16px;border:1px solid var(--line);border-radius:20px;background:#fff;margin-bottom:16px}.resume p{margin-bottom:8px}.resume .secondary{min-height:40px}.cards{display:grid;gap:12px}.menu-card{display:grid;grid-template-columns:42px minmax(0,1fr) 14px;align-items:center;gap:12px;border:1px solid transparent;background:#ffffffd9;border-radius:24px;padding:17px 16px;min-height:76px;text-align:left;width:100%;color:var(--forest);text-decoration:none}.menu-card svg{width:27px;height:27px}.symbol-circle{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#edf8c7}.menu-card strong{display:block;font-size:1.08rem}.menu-card small{display:block;color:var(--muted);font-size:.9rem;margin-top:3px}.arrow{font-size:1.5rem}.banner{display:block;width:min(100%,420px);height:132px;margin:0 auto 20px}.info-logo{display:block;width:148px;margin:0 auto 5px}.version{text-align:center;color:var(--muted);font-size:.9rem}.support{text-align:center;margin:14px 0;font-size:.9rem;color:var(--muted)}.back{border:0;background:transparent;padding:0 0 14px;color:var(--forest);font-weight:700;min-height:44px}.medical{margin-top:24px;padding:14px 16px;background:#e7f1e6;border-radius:18px;font-size:.88rem;color:var(--muted)}.topic{padding:16px 0;border-bottom:1px solid var(--line)}.topic p:last-child{margin-bottom:0}.topic li{margin:6px 0}.search{width:100%;border:1px solid var(--line);border-radius:16px;background:#fff;padding:13px 16px;min-height:48px;color:var(--ink);margin-bottom:10px}.food-list{display:grid;gap:10px}.food-row{display:grid;grid-template-columns:62px minmax(0,1fr) 12px;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;text-align:left;padding:10px;width:100%}.food-row img{width:62px;height:62px;border-radius:13px;background:#fafaf7}.food-row strong{display:block;font-size:1rem;line-height:1.25}.food-row small{display:block;font-size:.85rem;color:var(--muted);margin-top:4px}.food-row .description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.food-detail-image{display:block;width:min(100%,280px);aspect-ratio:1;margin:0 auto 16px;border-radius:24px;border:1px solid var(--line);background:white}.detail-values{margin:0;display:grid;gap:8px}.detail-values div{background:var(--mist);border-radius:16px;padding:12px 14px}.detail-values dt{font-size:.88rem;color:var(--muted)}.detail-values dd{margin:4px 0 0;font-weight:650;overflow-wrap:anywhere}.quiz{max-width:620px;margin:auto;display:flex;flex-direction:column;height:100%;min-height:0}.quiz-header{padding:12px 16px 0;display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.badge{background:var(--lime);border:1px solid #b8d66a;border-radius:16px;padding:6px 11px;font-size:.92rem;font-weight:850}.quiz-scroll{padding:12px 16px;overflow-y:auto;flex:1;min-height:0}.track{display:grid;grid-template-columns:repeat(15,1fr);gap:4px;margin:4px 0 12px}.track span{height:9px;background:var(--mist);border-radius:5px}.track .done{background:var(--forest)}.quiz-photo{display:block;width:clamp(128px,24vh,240px);aspect-ratio:1;margin:0 auto 8px;border:2px solid var(--line);background:white;border-radius:24px}.quiz-name{font-size:1.23rem;line-height:1.25;text-align:center;min-height:2.5em;margin:0 0 4px;display:flex;align-items:center;justify-content:center}.quiz-portion{font-size:1rem;line-height:1.35;height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center;color:var(--forest);margin:0 0 8px}.question{text-align:center;margin:16px 0;font-size:1.4rem}.input-row{display:flex;align-items:center;gap:12px}.step-button{flex:none;width:48px;height:50px;border:1px solid var(--line);border-radius:19px;background:transparent;font-size:1.8rem;line-height:1}.step-button:disabled{background:var(--mist);opacity:.5}.slider{accent-color:var(--forest);width:100%;min-width:0;height:44px;cursor:pointer}.answer-value{font-size:1.5rem;font-weight:900;text-align:center;margin:8px 0}.quiz-action{padding:6px 16px 10px;flex:none;background:var(--paper)}.quiz-action .primary{font-size:1.15rem;min-height:46px;padding:8px 16px}.feedback-title{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:8px;margin:8px 0 12px}.feedback-title img{width:64px;height:64px}.feedback-title h2{text-align:center;font-size:1.25rem;margin:0}.feedback-title strong{display:block;font-size:1.6rem}.feedback-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;background:#ffffffbd;padding:8px 12px;border-radius:14px;margin:4px 0;color:var(--muted);font-size:.96rem;flex-wrap:wrap}.feedback-row.highlight{background:var(--mist)}.feedback-row strong{color:var(--forest);white-space:nowrap;font-size:1.1rem}.result{text-align:center}.result h1{margin-top:24px}.result .score{font-size:2.6rem;font-weight:900;color:var(--forest);margin:12px 0}.result-counts{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin:20px 0}.result-counts strong{display:block;font-size:1.5rem}.empty{text-align:center;color:var(--muted);padding:30px 10px}.status-line{display:flex;gap:8px;align-items:center;font-size:.88rem;color:var(--muted);padding:8px 0}.status-dot{width:8px;height:8px;border-radius:50%;background:#b8bbaf;flex:none}.status-dot.ready{background:var(--forest)}#notice{position:fixed;left:50%;bottom:calc(6rem + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(92%,500px);z-index:10;pointer-events:none}#notice:not(:empty){background:var(--forest);color:#fff;border-radius:16px;padding:12px 18px;box-shadow:0 4px 20px #0002}.loading{min-height:100%;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;padding:24px;text-align:center}dialog{border:0;border-radius:26px;width:min(92vw,560px);max-height:85dvh;background:var(--paper);color:var(--ink);padding:24px;box-shadow:0 14px 70px #0003}dialog::backdrop{background:#19382c88}.dialog-body{overflow-wrap:anywhere}.dialog-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.dialog-actions button{flex:1;min-width:130px}.legal h3{margin-top:24px}.legal p{font-size:.92rem;line-height:1.55;white-space:pre-line;text-align:left}.legal pre{font:inherit;font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere}.legal summary{cursor:pointer;padding:10px 0;font-weight:700}.skip{position:fixed;top:-100px;left:12px;padding:10px;background:#fff;z-index:20}.skip:focus{top:10px}.update-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;background:var(--mist);border-radius:16px;margin:12px 0}.update-bar button{width:auto;min-width:120px}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}@media(min-width:760px){.home-columns{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;margin-top:16px}.hero-image{max-height:none;width:100%;margin-bottom:0}.home-logo{width:176px}.tagline{max-width:680px}.welcome{font-size:1.25rem;max-width:36rem}.home-controls{max-width:420px}.ke-note{font-size:1rem;margin-top:24px}#navigation{padding-left:max(12px,calc((100% - 760px)/2));padding-right:max(12px,calc((100% - 760px)/2))}.tab{flex-direction:row;gap:8px;padding:14px 8px}.tab span{font-size:.85rem}.page{padding-top:32px}.banner{height:150px}.quiz-photo{width:clamp(160px,25vh,250px)}}@media(max-width:360px){.page{padding:18px 16px 24px}.home{padding:18px 16px}.tab span{font-size:.64rem}.tagline{font-size:.7rem;padding:5px 6px}.welcome{font-size:1rem}.home-logo{width:128px}.hero-image{max-height:22vh}.mode-panel{padding:11px}.mode-explanation{font-size:1rem}.quiz-name{font-size:1.1rem}.feedback-title{grid-template-columns:52px minmax(0,1fr) 52px}.feedback-title img{width:52px;height:52px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media(max-height:650px){.home{justify-content:flex-start}.hero-image{max-height:140px}.quiz-photo{width:130px}.quiz-portion{margin-bottom:4px}}

.page>.menu-card+.menu-card{margin-top:12px}

/* Record cards follow the approved Android highscore reference. */
.rankings-page{max-width:592px;padding-left:16px;padding-right:16px}

.rankings-hero{display:block;width:100%;height:auto;aspect-ratio:773/363;margin:0;object-fit:contain}
.ranking-scope{font-size:.78rem;line-height:1.4;color:var(--muted);margin:8px 2px 12px;text-align:center}
.record-list{display:grid;gap:8px;padding:0;margin:0 0 18px;list-style:none}
.record{display:grid;grid-template-columns:3.5rem minmax(0,1fr) 2.625rem;gap:12px;align-items:center;min-height:6.5rem;padding:12px;border-radius:20px;background:#ffffffd9}
.record.gold{background:#fffae6;--record-accent:#f5ce60;--record-tint:#f5ce601f}
.record.silver{background:#f1f6f8;--record-accent:#b4c6cf;--record-tint:#b4c6cf1f}
.record.bronze{background:#fff0e7;--record-accent:#e7af8c;--record-tint:#e7af8c1f}
.rank-medal{display:block;width:3.5rem;height:5rem;align-self:center}
.rank-medal svg{display:block;width:100%;height:100%}
.rank-number{display:block;width:3.5rem;height:5rem;padding-top:9px;text-align:center;font-size:1.8125rem;line-height:2.25rem;font-weight:900;color:var(--ink)}
.record-details{min-width:0;display:flex;flex-direction:column;gap:4px}
.record-score{display:flex;align-items:center;gap:5px;flex-wrap:wrap;line-height:1.15}
.record-score strong{font-size:2rem;font-weight:900}
.record-score span{font-size:1.1875rem;font-weight:800}
.record-mode,.record-player{margin:0;font-size:1rem;line-height:1.3;font-weight:700;color:var(--ink)}
.record-player{overflow-wrap:anywhere}
.record time{font-size:.75rem;line-height:1.45;color:var(--muted)}
.record-legacy{font-size:.875rem;line-height:1.35;color:var(--muted);margin:0}
.record-trophy{display:grid;place-items:center;width:2.625rem;height:2.625rem;border-radius:50%;background:var(--record-tint,transparent);color:var(--record-accent,var(--muted))}
.record-trophy svg{width:1.75rem;height:1.75rem}
.ranking-online-note{font-size:.88rem;color:var(--muted);margin:18px 0}
.ranking-online-note summary{cursor:pointer;padding:8px 0}
.ranking-online-note p{margin:8px 0}
@media(max-width:355px){.record{grid-template-columns:3.5rem minmax(0,1fr)}.record-trophy{display:none}}
