/* Learning activities (tiles, pairs, pictures), uniform accent pass, finish screen, tablet rules. Load order matters: later files refine earlier ones (see docs/STRUCTURE.md). */
/* ═════════ learning activities: translate-with-tiles, tap-the-pairs, pick-the-image, flashcards and the finish screen ═════════ */
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.act-h { font: 700 1.6rem var(--body); color: #3c3c3c; margin: 6px 0 14px; } .k-bank > .q, .k-match > .q { display: none; }
.tile, .mt { font: 600 1.1rem var(--body); color: #3c3c3c; background: #fff; border: 2px solid #dde1e7; border-bottom-width: 4px; border-radius: 12px; padding: 10px 16px; cursor: pointer; box-shadow: none; min-height: 0; }
.tile:hover:not(:disabled), .mt:hover:not(:disabled) { background: #f4f6fa; filter: none; } .tile:disabled, .mt:disabled { cursor: default; }
.bank-top { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; } .bank-fox { width: 110px; flex: none; } .bank-fox svg { width: 100%; height: auto; }
.bank-bubble { position: relative; background: #fff; border: 2px solid #dde1e7; border-radius: 16px; padding: 12px 18px; font-size: 1.25rem; color: #3c3c3c; display: flex; gap: 10px; align-items: center; }
.bank-bubble::before { content: ''; position: absolute; left: -10px; top: 50%; margin-top: -9px; width: 16px; height: 16px; background: #fff; border-left: 2px solid #dde1e7; border-bottom: 2px solid #dde1e7; transform: rotate(45deg); }
.bank-prompt { border-bottom: 2px dashed #c9cfd8; padding-bottom: 1px; }
.bank-line { min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-top: 2px solid #e5e8ee; border-bottom: 2px solid #e5e8ee; background: repeating-linear-gradient(transparent 0 61px, #e5e8ee 61px 63px); }
.bank-line.right .tile { background: #e3f6d6; border-color: #9bdc6c; } .bank-line.wrong .tile { background: #ffe1e3; border-color: #f2a3a9; } .bank-rule { height: 0; }
.bank-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 34px 0 6px; min-height: 60px; }
.tile.used { background: #e8ebf0; border-color: #e8ebf0; color: transparent; border-bottom-width: 2px; }
.act-bar { display: flex; justify-content: flex-end; margin-top: 26px; padding-top: 18px; border-top: 2px solid #e5e8ee; }
button.go, #fcgot, .ty-row button.big { background: var(--y); color: var(--on-y); border-radius: 14px; border-bottom: 4px solid var(--y-deep); letter-spacing: .06em; min-width: 200px; font-weight: 800; }
button.go:disabled { background: #e5e5e5; color: #afafaf; border-bottom-color: #cfcfcf; cursor: default; }
.match-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; } .mcol { display: grid; gap: 12px; align-content: start; } .mt { width: 100%; padding: 18px 12px; text-align: center; min-height: 62px; }
.mt.sel { background: #ddf4ff; border-color: #84d8ff; color: #1478b4; } .mt.ok { background: #e5f8d4; border-color: #a5ed6e; color: #2f7d00; opacity: .85; } .mt.bad { background: #ffdfe0; border-color: #ffb3b3; animation: shake .3s; }
.match-recap { margin: 6px 0 0; padding-left: 18px; } .match-recap li { margin: 2px 0; }
.newword { color: #a560e8; font: 800 .9rem var(--body); letter-spacing: .12em; margin-bottom: 8px; } .newword::before { content: '✦'; margin-right: 8px; }
.ask { font: 700 1.5rem var(--body); color: #3c3c3c; margin-bottom: 10px; } .wordchip { display: inline-flex; gap: 10px; align-items: center; font-size: 1.3rem; } .dotted { color: #a560e8; border-bottom: 2px dashed #c9a0f2; font-weight: 600; }
.choices:has(.imgc) { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .choice:has(.imgc) { flex-direction: column; align-items: center; text-align: center; padding: 18px 12px; gap: 6px; }
.imgc { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 1.15rem; } .bigp { font-size: 4rem; line-height: 1; }
.fc { perspective: 1200px; height: 320px; max-width: 580px; margin: 26px auto; cursor: pointer; outline: none; } .fc:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.fc-in { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; } .fc.flip .fc-in { transform: rotateY(180deg); }
.fc-front, .fc-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2px solid #dde1e7; border-bottom-width: 5px; border-radius: 20px; background: #fff; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 24px; font-size: 1.25rem; overflow: auto; }
.fc-back { transform: rotateY(180deg); background: #f1faea; border-color: #b9e39a; } .fc-front small, .fc-back p { color: var(--muted); font-size: .9rem; margin: 0; } .fc-pic { display: block; font-size: 4.2rem; line-height: 1.1; } .fc-es { font: 600 2.1rem var(--head); }
.fc-acts { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.celebrate { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: repeating-linear-gradient(135deg, #ffc800 0 220px, #ffd53d 220px 440px); color: #7b3f00; animation: rise .35s ease both; }
.cel-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.cel-pct { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--body); color: #fff; text-shadow: 0 4px 0 rgba(180, 100, 0, .25); letter-spacing: -.02em; } .cel-pct small { font-size: .5em; }
.cel-fox { width: min(240px, 50vw); margin: -22px 0 6px; } .cel-fox svg { width: 100%; height: auto; } .cel-h { font: 800 clamp(1.5rem, 4vw, 2.1rem) var(--body); color: #8a3b00; margin: 14px 0 8px; } .cel-p { font-size: 1.2rem; margin: 0; color: #8a3b00; } .cel-p b { font-weight: 800; }
.cel-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px max(20px, calc((100% - 900px) / 2)); border-top: 2px solid rgba(138, 59, 0, .18); }
.cel-go { background: transparent; color: #8a3b00; font: 800 1.05rem var(--body); letter-spacing: .1em; padding: 14px 30px; box-shadow: none; } .cel-go:hover { background: rgba(255, 255, 255, .25); }
.cel-share { background: #fff; color: #b36a00; font: 800 1.05rem var(--body); letter-spacing: .08em; border-radius: 16px; padding: 16px 40px; min-width: 300px; border-bottom: 4px solid rgba(180, 110, 0, .35); }
@media (max-width: 640px) { .match-cols { gap: 10px; } .cel-share { min-width: 0; padding: 14px 20px; } .bank-fox { width: 80px; } }

/* ═════════ Uniform pass: neutral surfaces + ONE accent per theme. Subject colors no longer paint whole screens; icons are quiet; every dropdown looks the same. ═════════ */
select { -webkit-appearance: none; appearance: none; font: 600 .95rem var(--body); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; border: 1px solid #b5bcc7; border-radius: 4px; padding: 8px 36px 8px 12px; min-height: 40px; cursor: pointer; box-shadow: none; max-width: 100%; text-transform: none; letter-spacing: 0; }
select:hover { border-color: #8f98a8; } select:focus { outline: 0; } select:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--link); } select:disabled { background-color: #f1f3f6; color: var(--muted); cursor: default; }
.an select, .form select, .pform select { border-radius: 4px; border: 1px solid #b5bcc7; padding: 8px 36px 8px 12px; }
.an-filters { background: #f3f4f6; border: 1px solid var(--line); border-top: 0; padding: 12px 16px; gap: 14px 24px; } .an-filters label, .an-sel { font: 600 .78rem var(--body); letter-spacing: .05em; color: var(--muted); text-transform: uppercase; gap: 10px; }
.an-filters .ghost.small { margin-left: auto; min-height: 40px; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=time], input[type=number], input:not([type]), textarea { border: 1px solid #b5bcc7; border-radius: 4px; background: #fff; font-family: var(--body); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--link); }
/* subject colors retire from screens (they stay in charts); one accent everywhere */
.rec-card, .an-lvcard, .an-subtabs button, .an-chip, .tm-sub, .lp-card, .rec-wall .rec-card { --c: var(--y-deep) !important; }
.card.click { border-top-color: var(--line) !important; } .ucard { --uc: var(--y) !important; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); } .ucard::before { height: 3px; background: var(--y); } .ucard:hover { transform: none; box-shadow: 0 3px 10px rgba(20, 30, 50, .16); }
.ucard.now { box-shadow: 0 0 0 3px var(--y-soft), var(--shadow); } .unum { background: #eef0f4; color: var(--ink-2); border: 0; }
.banner { --sc: var(--y) !important; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--y); border-radius: 6px; box-shadow: var(--shadow); } .banner .spark { display: none; } .banner .bar { background: #e6e9ee; } .banner-art .bigicon { filter: none; animation: none; opacity: .9; }
.banner .display.sm .dash-word { border-color: var(--y-soft); }
.pill, .pill.now { background: #eef0f4; color: var(--ink-2); border: 1px solid #e0e4ea; } .pill.mastered { background: var(--y-soft); color: var(--y-deep); border-color: color-mix(in srgb, var(--y) 35%, #fff); } .pill.getting, .pill.needs { background: #eef0f4; color: var(--ink-2); }
html[data-accent=amber] .pill.mastered { color: #7a4a00; }
.bar > i, .qprog > i, .segs i.done, .an-bar i, .an-meter i, .hbar i { background: var(--y) !important; } .bar, .qprog { background: #e6e9ee; }
.rec-ic, .tm-ic { background: #eef0f4 !important; filter: grayscale(1); } .subnav a span, .tm-col h4 span, .an-tabs button span, .hs-head span { filter: grayscale(1); }
.lesson .tip { background: var(--y-soft); border: 1px solid color-mix(in srgb, var(--y) 35%, #fff); } .lesson .warn { background: #f6f7f9; border: 1px solid var(--line); border-left: 4px solid var(--y-deep); }
.chip, .chip.y { background: #eef0f4; color: var(--ink-2); border: 1px solid #e0e4ea; }
.dcard h3, .home-sec h2 { color: var(--ink); }
.stars .off { filter: grayscale(1) opacity(.35); } .stars { color: var(--y); }
.an-subtabs button.on { background: var(--y); border-color: var(--y); color: var(--on-y); } .an-lvcard { border-top-color: var(--y); } .an-lvcard .an-meter i { background: var(--y) !important; }
.an-subhead { background: var(--ink-2) !important; }
.stars { color: var(--y-deep); letter-spacing: 1px; } .stars .off { color: #cfd4dc; filter: none; }
.wordtxt { font-weight: 700; color: var(--ink); }
/* the finish screen covers the whole display (nothing peeks out at the sides) and sits above every floating button */
.celebrate { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw !important; height: 100vh; height: 100dvh; margin: 0 !important; z-index: 99999; overflow: auto; }
body:has(.celebrate) { overflow: hidden; } body:has(.celebrate) #bc-root { display: none !important; }
.toast { z-index: 100000; }
.cel-sharepanel { background: rgba(255, 255, 255, .92); color: #7b3f00; margin: 0 max(20px, calc((100% - 900px) / 2)) 10px; padding: 14px 18px; border-radius: 14px; text-align: center; } .cel-sharepanel p { margin: 0 0 10px; font-size: .95rem; }
.cel-opt { display: inline-block; background: #fff; color: #8a3b00; border: 2px solid #e0a000; border-radius: 12px; padding: 10px 22px; font: 800 .95rem var(--body); text-decoration: none; margin: 0 6px; cursor: pointer; } .cel-copied { display: block; margin-top: 8px; font-weight: 700; min-height: 1.2em; }
@keyframes celfade { from { opacity: 0; } to { opacity: 1; } } #app > .celebrate { animation: celfade .3s ease both; transform: none; }

/* ───────── installed on a tablet or phone (Add to Home Screen): the app runs full screen, so keep clear of the status bar and the home indicator ───────── */
body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.topnav, .lp-top { margin-top: calc(-1 * env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
#bc-root .bc-dock { bottom: calc(14px + env(safe-area-inset-bottom)); } .calc-panel { bottom: calc(66px + env(safe-area-inset-bottom)); } .toast, #update-bar { bottom: calc(24px + env(safe-area-inset-bottom)); }
.cel-bar { padding-bottom: calc(22px + env(safe-area-inset-bottom)); } .celebrate { padding-top: env(safe-area-inset-top); }
html.standalone body { overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; } html.standalone input, html.standalone textarea { -webkit-user-select: text; user-select: text; }
/* summary donuts: one tidy row of equal cells, each centered (title, ring, caption), wrapping evenly */
.an-donuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 18px; justify-content: center; margin: 10px 0 20px; }
.an-donuts > div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.an-donuts h4 { margin: 0; font: 600 .8rem var(--body); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.an-donuts svg { display: block; width: 112px; height: 112px; } .an-donuts small { display: block; color: var(--muted); font-size: .85rem; }
/* light chips and tabs keep dark text (the green action buttons use white) */
.spick button, .fchips button, .atabs button, .ptabs button, .jlist button, .swatches button { color: var(--ink); } .spick button.on, .fchips button.on, .atabs button.on { color: var(--on-y); }

/* tablet and phone: things you tap are at least 40px tall, and charts never push the page sideways */
button.small, .fchips button, .spick button, .atabs button { min-height: 40px; } .hs-more { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; }
.an-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .an-card { min-width: 0; } .an-bars, .an-bar { min-width: 0; } .an-bars { overflow: hidden; }
@media (max-width: 900px) { .an-cols { grid-template-columns: minmax(0, 1fr); } .an-donut { justify-content: center; } }
.bc-fab, .calc-fab { min-height: 44px; } .rec-go, .tg { min-height: 40px; } .wd { min-width: 42px; }
#bc-root .bc-fab, #bc-root .bc-mic, .calc-fab { min-height: 44px !important; }
/* daily-goal ring: roomy hole, big number over a small "of N", never touching the edge */
.ring { width: 96px; height: 96px; font-size: 1rem; box-shadow: none; }
.ring::before { inset: 9px; }
.ring span { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.ring span b { font-size: 1.55rem; font-weight: 800; } .ring span small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ovhead .ring { width: 76px; height: 76px; } .ovhead .ring::before { inset: 8px; } .ovhead .ring span b { font-size: 1.2rem; } .ovhead .ring span small { font-size: .62rem; }
a.btnlink { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .9rem; border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.timesup { max-width: 560px; margin: 40px auto; text-align: center; padding: 30px 22px; } .timesup .tu-ico { font-size: 3.2rem; line-height: 1; margin-bottom: 8px; } .timesup h2 { margin: .2em 0 .4em; }
.hidef { border: 1.5px solid var(--line); border-radius: 12px; margin: 12px 0 6px; padding: 8px 14px 10px; } .hidef legend { font-weight: 700; padding: 0 6px; font-size: .9rem; } .hidef .chk { display: inline-flex; align-items: center; gap: 6px; margin: 4px 16px 4px 0; min-height: 36px; font-weight: 600; } .hidef .muted { display: block; margin-top: 4px; }
.cel-pb { margin: 10px 0 0; font-size: 1.05rem; font-weight: 700; color: #8a3b00; } .cel-pb span { font-weight: 600; opacity: .8; }
.wkc-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 8px; } .wkc-list li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px 11px; border-radius: 10px; background: var(--card); border: 1.5px solid var(--line); overflow: hidden; font-size: .92rem; }
.wkc-list li i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w); background: var(--y); } .wkc-list li.ok { border-color: var(--y); }
.esgoal { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 10px; padding: 8px 12px 11px; border-radius: 10px; background: var(--card); border: 1.5px solid var(--line); font-size: .88rem; overflow: hidden; }
.esgoal i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w); background: var(--y); } .esgoal.ok { border-color: var(--y); }
/* skill catalog page: lettered groups with numbered skills, three columns on wide screens */
.skills-page { max-width: 1100px; margin: 0 auto; padding: 18px 18px 60px; }
.sk-head h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--y-deep, var(--y)); } .sk-head p { margin: 0 0 12px; color: var(--muted); max-width: 70ch; }
.sk-counts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; } .sk-counts span { border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 14px; background: var(--card); font-size: .9rem; } .sk-counts b { color: var(--y-deep, var(--y)); }
.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; } .sk-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--y); border-radius: 10px; color: var(--link); background: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.sk-cat { margin-top: 26px; scroll-margin-top: 70px; } .sk-cat > h2 { font-size: 1.35rem; color: var(--y-deep, var(--y)); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 26px; }
.sk-group h3 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin: 0 0 4px; font-size: 1.02rem; } .sk-group h3 a { color: var(--y-deep, var(--y)); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; } .sk-group h3 a:hover { text-decoration: underline; }
.sk-letter { font-weight: 800; } .sk-stars { color: var(--y); font-size: .85rem; letter-spacing: 1px; white-space: nowrap; }
.sk-group ol { margin: 0; padding: 0; list-style: none; counter-reset: sk; } .sk-group li { counter-increment: sk; display: flex; gap: 8px; } .sk-group li::before { content: counter(sk); color: var(--muted); min-width: 1.4em; text-align: right; padding-top: 6px; font-size: .9rem; }
.sk-group li a { display: block; padding: 6px 0; min-height: 34px; color: var(--link); text-decoration: none; font-size: .92rem; line-height: 1.3; } .sk-group li a:hover { text-decoration: underline; }
@media (max-width: 900px) { .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 600px) { .sk-grid { grid-template-columns: minmax(0, 1fr); } }
.sk-group li.sk-check { counter-increment: none; } .sk-group li.sk-check::before { content: '★ Checkpoint'; color: var(--y-deep, var(--y)); font-weight: 700; font-size: .72rem; min-width: auto; padding-top: 9px; text-align: left; white-space: nowrap; }
