/* ============================================================
   WONDER BOOK CLUB — "Starry night · Choose kind"
   ============================================================ */
:root {
  --night: #0b1530;
  --navy: #12203d;
  --navy-2: #1c2f57;
  --navy-3: #2a4275;
  --gold: #f2a93b;
  --gold-2: #ffd27a;
  --gold-dark: #d88f22;
  --gold-light: #fdf0d6;
  --coral: #e8604c;
  --coral-light: #fde5e0;
  --teal: #2e9ca6;
  --teal-light: #dff2f3;
  --cream: #fbf6ec;
  --cream-2: #f3ead7;
  --paper: #ffffff;
  --ink: #1c1f2b;
  --ink-soft: #565b6e;
  --line: #e7dfcc;
  --na: #d0523f;
  --wt: #e29b25;
  --a: #2f9a6a;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgba(18, 32, 61, .08);
  --shadow: 0 14px 34px -14px rgba(18, 32, 61, .35), 0 2px 6px rgba(18, 32, 61, .06);
  --shadow-lg: 0 34px 70px -26px rgba(11, 21, 48, .6);
  --display: "Baloo 2", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --pattern: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink);
  background-color: var(--cream);
  background-image: linear-gradient(rgba(251, 246, 236, .86), rgba(251, 246, 236, .86)), var(--pattern);
  background-size: auto, 620px auto;
  min-height: 100vh; overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--display); line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold-2); color: var(--navy); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
main { padding-bottom: 60px; }
#app, .app-footer { position: relative; z-index: 1; }

/* ---------- twinkling background stars ---------- */
.sky-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky-layer i {
  position: absolute; width: 14px; height: 14px; opacity: 0;
  background: radial-gradient(circle, var(--gold) 0 18%, transparent 20%),
    conic-gradient(from 45deg, transparent 0 20%, var(--gold) 22% 28%, transparent 30% 45%, var(--gold) 47% 53%, transparent 55% 70%, var(--gold) 72% 78%, transparent 80% 95%, var(--gold) 97%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .55; transform: scale(1) rotate(45deg); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: rgba(11, 21, 48, .95); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(242, 169, 59, .18); transition: box-shadow .3s;
}
.topbar.scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; padding: 0; text-align: left; }
.brand img { width: 40px; height: 40px; object-fit: contain; transition: transform .6s var(--bounce); filter: drop-shadow(0 0 10px rgba(242, 169, 59, .5)); }
.brand:hover img { transform: rotate(-12deg) scale(1.12); }
.brand b { display: block; font-family: var(--display); font-size: 1.25rem; line-height: 1; }
.brand > span > span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: .9rem; margin-left: 10px; flex-wrap: wrap; }
.crumbs button { background: none; border: 0; color: #cdd6ef; font-weight: 700; padding: 5px 9px; border-radius: 99px; font-size: .9rem; }
.crumbs button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.crumbs .sep { opacity: .35; }
.crumbs .here { font-weight: 700; color: var(--gold-2); padding: 5px 9px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.top-link { background: none; border: 0; color: #cdd6ef; font-weight: 700; font-size: .9rem; padding: 8px 12px; border-radius: 99px; }
.top-link:hover, .top-link.on { color: #fff; background: rgba(255, 255, 255, .1); }
.week-jump { position: relative; }
.week-jump-menu {
  position: absolute; right: 0; top: calc(100% + 10px); background: var(--navy); border: 1px solid rgba(242, 169, 59, .25);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; display: grid; grid-template-columns: repeat(5, 52px); gap: 6px;
  opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.week-jump.open .week-jump-menu { opacity: 1; transform: none; pointer-events: auto; }
.week-jump-menu button {
  height: 52px; border-radius: 14px; border: 0; color: #fff; background-size: cover; background-position: center; position: relative; overflow: hidden;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); transition: transform .2s var(--bounce);
}
.week-jump-menu button::before { content: ""; position: absolute; inset: 0; background: rgba(11, 21, 48, .4); }
.week-jump-menu button span { position: relative; }
.week-jump-menu button:hover { transform: scale(1.08); }
.week-jump-menu button.current { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--gold); --t: #2a1a00;
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px;
  background: var(--b); color: var(--t); font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--b) 62%, #000), 0 10px 20px -10px rgba(0, 0, 0, .5);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--b) 62%, #000), 0 14px 24px -10px rgba(0, 0, 0, .5); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--b) 62%, #000); }
.btn.coral { --b: var(--coral); --t: #fff; }
.btn.teal { --b: var(--teal); --t: #fff; }
.btn.navy { --b: var(--navy-2); --t: #fff; }
.btn.ghost { background: var(--paper); color: var(--navy); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--gold), 0 5px 0 var(--gold-dark); }
.btn.glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, .22); }
.btn.small { padding: 8px 14px; font-size: .88rem; }
.btn.big { padding: 15px 28px; font-size: 1.12rem; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }
.btn .svg { width: 18px; height: 18px; flex: none; }
.btn-icon { width: 26px; height: 26px; object-fit: contain; margin: -5px 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- HOME HERO ---------- */
.home-hero { position: relative; min-height: min(90vh, 780px); color: #fff; overflow: hidden; isolation: isolate; display: flex; align-items: center; border-radius: 0 0 48px 48px; background: var(--night); }
.home-hero .bg { position: absolute; inset: -40px 0 0; z-index: -3; background-size: cover; background-position: 60% 50%; animation: drift 34s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.2) translate(-2%, -1%); } }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 75% 40%, transparent 20%, rgba(11, 21, 48, .5) 70%), linear-gradient(90deg, rgba(11, 21, 48, .92) 0%, rgba(11, 21, 48, .6) 45%, rgba(11, 21, 48, .1) 80%), linear-gradient(0deg, rgba(11, 21, 48, .85), transparent 40%); }
.starfield { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.starfield span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: blink 3s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .15; } }
.shooting { position: absolute; top: 12%; left: 60%; width: 160px; height: 2px; background: linear-gradient(90deg, #fff, transparent); transform: rotate(-24deg); opacity: 0; animation: shoot 9s ease-in 2s infinite; filter: drop-shadow(0 0 6px #fff); }
.shooting.s2 { top: 30%; left: 85%; animation-delay: 6.5s; width: 120px; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-24deg) translateX(0); } 3% { opacity: 1; } 10% { opacity: 0; transform: rotate(-24deg) translateX(-460px); } 100% { opacity: 0; transform: rotate(-24deg) translateX(-460px); } }
.hero-content { padding-top: 110px; padding-bottom: 110px; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); background: rgba(255, 255, 255, .08); border: 1px solid rgba(242, 169, 59, .35); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 2s infinite; }
.home-hero h1 { font-size: clamp(4rem, 13vw, 9.5rem); line-height: .82; margin: 20px 0 6px; letter-spacing: -.035em; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.home-hero h1 .dot-gold { color: var(--gold); }
.home-hero .tagline { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.15; margin: 0 0 18px; }
.home-hero .tagline em { font-style: normal; color: var(--gold); position: relative; white-space: nowrap; }
.home-hero .tagline em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: var(--coral); opacity: .55; border-radius: 4px; z-index: -1; transform-origin: left; animation: underline 1.2s .6s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.home-hero .lede { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: #d7def2; max-width: 560px; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge { position: absolute; right: 7%; bottom: 70px; width: clamp(110px, 14vw, 170px); animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); z-index: 1; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(6deg); } }

.stats-strip { position: relative; z-index: 3; margin-top: -46px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { text-align: center; padding: 20px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 2.4rem; color: var(--coral); line-height: 1; font-weight: 800; }
.stat:nth-child(2) b { color: var(--teal); } .stat:nth-child(3) b { color: var(--gold-dark); } .stat:nth-child(4) b { color: var(--navy-3); }
.stat span { font-size: .88rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- section heads ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 64px 0 24px; flex-wrap: wrap; }
.kicker { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); display: flex; align-items: center; gap: 8px; }
.section-head .kicker::before { content: "★"; color: var(--gold); letter-spacing: 0; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--navy); margin-top: 4px; }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 580px; }

/* ---------- term journey ---------- */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.week-card { position: relative; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.week-card:hover, .week-card:focus-visible { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow-lg); outline: none; }
.week-card .thumb { height: 128px; position: relative; overflow: hidden; }
.week-card .thumb div { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.week-card:hover .thumb div { transform: scale(1.12); }
.week-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 21, 48, .6)); }
.week-card .num { position: absolute; left: 14px; top: 98px; z-index: 2; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: #2a1a00; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.55rem; box-shadow: 0 0 0 5px var(--paper), 0 8px 16px -4px rgba(0, 0, 0, .4); transition: transform .45s var(--bounce); }
.week-card:hover .num { transform: scale(1.12) rotate(-10deg); }
.week-card.w10 .num { background: var(--coral); color: #fff; }
.week-card .visited { position: absolute; right: 10px; top: 10px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--teal); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.week-card .body { padding: 34px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.week-card h3 { font-size: 1.28rem; color: var(--navy); }
.week-card .theme { margin: 4px 0 0; font-size: .86rem; color: var(--ink-soft); flex: 1; }
.week-card .go { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--coral); }
.week-card .go span { display: inline-block; transition: transform .3s var(--ease); }
.week-card:hover .go span { transform: translateX(6px); }

.rhythm { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rhythm div { background: var(--paper); border-radius: var(--radius); padding: 18px 14px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rhythm img { width: 78px; height: 64px; object-fit: contain; margin: 0 auto 6px; }
.rhythm b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.rhythm span { font-size: .84rem; color: var(--ink-soft); }

.toolkit { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; text-align: left; font: inherit; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; cursor: pointer; }
.tool:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.tool img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 8px; transition: transform .5s var(--bounce); }
.tool:hover img { transform: rotate(-8deg) scale(1.12); }
.tool .emoji { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-size: 2.3rem; background: var(--gold-light); margin-bottom: 8px; }
.tool b { font-family: var(--display); font-size: 1.22rem; color: var(--navy); line-height: 1.15; }
.tool span { font-size: .88rem; color: var(--ink-soft); }
.tool small { margin-top: 6px; font-weight: 700; color: var(--teal); font-size: .78rem; }

/* ---------- WEEK HERO ---------- */
.week-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; min-height: 430px; display: flex; align-items: flex-end; border-radius: 0 0 44px 44px; background: var(--night); }
.week-hero .bg { position: absolute; inset: -30px 0; z-index: -3; background-size: cover; background-position: center; animation: drift 40s ease-in-out infinite alternate; }
.week-hero .precepts { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .25; mix-blend-mode: screen; }
.week-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 21, 48, .15), rgba(11, 21, 48, .88)), linear-gradient(90deg, rgba(11, 21, 48, .6), transparent 70%); }
.week-hero .wrap { width: 100%; padding-top: 90px; padding-bottom: 48px; position: relative; }
.week-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 14px 0 8px; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.week-hero .theme-line { font-size: 1.15rem; color: #d7def2; margin: 0 0 16px; }
.week-hero .big-num { position: absolute; right: 24px; bottom: 16px; font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 17vw, 12rem); line-height: .8; color: var(--gold); opacity: .22; }
.week-hero .hero-kind { position: absolute; right: 8%; top: 70px; width: 130px; animation: floaty 6s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .5)); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; }

.signposts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: -42px; position: relative; z-index: 3; }
.signpost { background: var(--paper); border-radius: var(--radius); padding: 22px 24px 22px 96px; position: relative; box-shadow: var(--shadow); border: 1px solid var(--line); }
.signpost img { position: absolute; left: 18px; top: 20px; width: 62px; height: 62px; object-fit: contain; }
.signpost .label { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.signpost:nth-child(2) .label { color: var(--teal); }
.signpost p { margin: 4px 0 0; font-weight: 700; color: var(--navy); font-size: 1.02rem; }

/* day trail */
.trail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.trail::before { content: ""; position: absolute; left: 7%; right: 7%; top: 64px; height: 4px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px); opacity: .45; }
.day-card { position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center; font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-sm); transition: transform .35s var(--bounce), box-shadow .3s, border-color .3s; }
.day-card:hover, .day-card:focus-visible { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--gold); outline: none; }
.day-card .bubble { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; background: radial-gradient(circle at 35% 30%, #fff, var(--gold-light)); box-shadow: 0 0 0 6px var(--cream), 0 8px 18px -8px rgba(18, 32, 61, .5); }
.day-card.group .bubble, .day-card.produce .bubble { background: radial-gradient(circle at 35% 30%, #fff, var(--teal-light)); }
.day-card.quiz .bubble, .day-card.present .bubble { background: radial-gradient(circle at 35% 30%, #fff, var(--coral-light)); }
.day-card .bubble img { width: 70px; height: 60px; object-fit: contain; transition: transform .5s var(--bounce); }
.day-card .bubble .emo { font-size: 2.4rem; }
.day-card:hover .bubble img { transform: scale(1.15) rotate(-6deg); }
.day-card .dayname { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.day-card h4 { font-size: 1.12rem; color: var(--navy); margin: 2px 0 8px; }
.day-card p { margin: 0 0 12px; font-size: .84rem; color: var(--ink-soft); flex: 1; }
.mode-tag { font-family: var(--display); font-weight: 700; font-size: .78rem; padding: 3px 11px; border-radius: 99px; background: var(--gold-light); color: #9a5e07; }
.mode-tag.group { background: var(--teal-light); color: #1d6f76; }
.mode-tag.quiz { background: var(--coral-light); color: #b53c2a; }
.codes { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.code { font-size: .68rem; font-weight: 700; background: var(--navy); color: #fff; padding: 2px 7px; border-radius: 6px; }

/* project cards */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.proj { --pc: var(--gold-dark); --pcl: var(--gold-light); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.proj:nth-child(2) { --pc: var(--teal); --pcl: var(--teal-light); } .proj:nth-child(3) { --pc: var(--coral); --pcl: var(--coral-light); } .proj:nth-child(4) { --pc: var(--navy-3); --pcl: #e3e9f6; }
.proj:hover { transform: translateY(-6px) rotate(.5deg); box-shadow: var(--shadow); }
.proj .top { height: 138px; background: var(--pcl); display: grid; place-items: center; position: relative; }
.proj .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.proj .top img { width: 110px; height: 100px; object-fit: contain; position: relative; z-index: 1; transition: transform .5s var(--bounce); }
.proj .top .emo { font-size: 3.6rem; position: relative; z-index: 1; }
.proj:hover .top img { transform: scale(1.12) rotate(-6deg); }
.proj .tag { margin: 2px 20px 0; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pc); }
.proj h4 { margin: 2px 20px 8px; font-size: 1.3rem; color: var(--navy); }
.proj p { margin: 0 20px 16px; font-size: .92rem; color: var(--ink-soft); flex: 1; }
.proj .choose { margin: 0 20px 20px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--pcl); color: var(--pc); font-weight: 700; font-size: .9rem; cursor: pointer; user-select: none; }
.proj .choose input { width: 20px; height: 20px; accent-color: var(--pc); }
.proj.chosen { border-color: var(--pc); box-shadow: 0 0 0 4px var(--pcl), var(--shadow); }
.proj .ribbon { position: absolute; top: 16px; right: -40px; background: var(--pc); color: #fff; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; padding: 4px 46px; transform: rotate(40deg); opacity: 0; transition: opacity .3s; z-index: 2; }
.proj.chosen .ribbon { opacity: 1; }

.action-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.action-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font: inherit; color: inherit; text-align: left; text-decoration: none; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.action-card img { width: 62px; height: 62px; object-fit: contain; flex: none; }
.action-card .emoji { width: 62px; height: 62px; border-radius: 18px; background: var(--gold-light); display: grid; place-items: center; font-size: 1.8rem; flex: none; }
.action-card b { display: block; font-family: var(--display); font-size: 1.12rem; color: var(--navy); line-height: 1.15; }
.action-card span { font-size: .85rem; color: var(--ink-soft); }

.week-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; }
.week-nav button { flex: 1; max-width: 48%; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font: inherit; color: inherit; text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
.week-nav button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.week-nav button.next { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.week-nav .t { width: 110px; height: 64px; border-radius: 14px; background-size: cover; background-position: center; flex: none; }
.week-nav small { display: block; font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.week-nav b { font-family: var(--display); font-size: 1.1rem; color: var(--navy); }

/* ---------- DAY PAGE ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--radius); margin: 24px 0 18px; padding: 30px 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; box-shadow: var(--shadow); background: var(--night); }
.page-head .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 21, 48, .94), rgba(11, 21, 48, .65) 60%, rgba(11, 21, 48, .3)); }
.page-head .ph-icon { width: 96px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); animation: bob 4s ease-in-out infinite; }
.page-head .ph-emo { font-size: 3.6rem; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.page-head .ph-text { flex: 1; min-width: 240px; }
.page-head small { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 2px 0 4px; }
.page-head p { margin: 0; color: #d7def2; }

.day-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.day-tab { flex: 1 1 150px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); font: inherit; color: inherit; text-align: left; transition: transform .25s var(--bounce), border-color .2s, box-shadow .2s; }
.day-tab:hover { transform: translateY(-3px); }
.day-tab img { width: 40px; height: 34px; object-fit: contain; }
.day-tab .emo { font-size: 1.5rem; }
.day-tab b { display: block; font-family: var(--display); font-size: 1.02rem; color: var(--navy); line-height: 1.1; }
.day-tab span { font-size: .76rem; color: var(--ink-soft); }
.day-tab.active { border-color: var(--gold); background: var(--gold-light); box-shadow: 0 8px 18px -10px rgba(216, 143, 34, .8); }
.day-tab.active.group, .day-tab.active.produce { border-color: var(--teal); background: var(--teal-light); box-shadow: 0 8px 18px -10px rgba(46, 156, 166, .8); }
.day-tab.active.quiz, .day-tab.active.present { border-color: var(--coral); background: var(--coral-light); box-shadow: 0 8px 18px -10px rgba(232, 96, 76, .8); }

.li-strip { display: flex; gap: 14px 28px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 20px; margin-bottom: 22px; font-size: .94rem; box-shadow: var(--shadow-sm); }
.li-strip div { flex: 1; min-width: 260px; }
.li-strip b { display: block; font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.li-strip div:nth-child(2) b { color: var(--teal); }

.checkpoint { display: flex; gap: 14px; align-items: flex-start; background: var(--navy); color: #dfe6f7; border-radius: var(--radius); padding: 16px 20px; margin-top: 22px; box-shadow: var(--shadow); }
.checkpoint .cp-ic { font-size: 1.6rem; }
.checkpoint b { color: var(--gold-2); font-family: var(--display); font-size: 1.05rem; }
.checkpoint p { margin: 2px 0 0; font-size: .94rem; }
.checkpoint .code { background: var(--gold); color: #2a1a00; }
.checkpoint button { margin-left: auto; }

/* slideshow stage */
.stage { position: relative; border-radius: 30px; overflow: hidden; isolation: isolate; min-height: min(70vh, 620px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); background: var(--night); }
.stage .bg { position: absolute; inset: -20px; z-index: -2; background-size: cover; background-position: center; filter: blur(3px) saturate(1.1); transform: scale(1.06); transition: background-position 1.2s var(--ease); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 21, 48, .35), rgba(11, 21, 48, .85)); }
.stage .progress { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: rgba(255, 255, 255, .15); }
.stage .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--coral)); border-radius: 0 6px 6px 0; box-shadow: 0 0 14px var(--gold); transition: width .5s var(--ease); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 22px; color: #fff; }
.slide-area { flex: 1; display: grid; place-items: center; padding: 10px 28px 20px; perspective: 1200px; }
.slide { width: min(900px, 100%); background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 28px; padding: 46px 52px 44px; text-align: center; position: relative; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.slide.enter-next { animation: inR .55s var(--ease) both; } .slide.enter-prev { animation: inL .55s var(--ease) both; }
@keyframes inR { from { opacity: 0; transform: translateX(60px) rotateY(-8deg); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-60px) rotateY(8deg); } to { opacity: 1; transform: none; } }
.slide .s-icon { width: 124px; height: 110px; object-fit: contain; margin: -104px auto 6px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); animation: bob 4s ease-in-out infinite; }
.slide .s-emo { font-size: 4rem; margin: -90px auto 4px; display: block; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
.slide .s-kicker { font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.slide h3 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); color: var(--navy); margin: 8px 0 12px; }
.slide h3 + h3 { margin-top: 18px; }
.slide .s-body { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--ink); margin: 0 auto 10px; max-width: 720px; }
.slide ol { text-align: left; max-width: 720px; margin: 10px auto 0; padding: 0; list-style: none; counter-reset: q; }
.slide ol li { counter-increment: q; position: relative; padding: 12px 16px 12px 60px; margin-bottom: 10px; background: var(--cream); border-radius: 16px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; color: var(--navy); }
.slide ol li::before { content: counter(q); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #2a1a00; display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.slide .range-pill { display: inline-block; margin-top: 8px; font-family: var(--display); font-weight: 700; background: var(--gold-light); color: #9a5e07; padding: 6px 14px; border-radius: 99px; font-size: .95rem; }
.slide.title-slide { background: transparent; box-shadow: none; color: #fff; }
.slide.title-slide h3 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.slide.title-slide .s-kicker { color: var(--gold-2); }
.slide.title-slide .range-pill { background: rgba(255, 255, 255, .15); color: #fff; }
.stage-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px 22px; }
.slide-dots { display: flex; gap: 8px; }
.slide-dots button { width: 12px; height: 12px; border: 0; padding: 0; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: width .35s var(--ease), background .3s; }
.slide-dots button.active { width: 36px; background: var(--gold); }
.stage:fullscreen { border-radius: 0; min-height: 100vh; }
.key-hint { text-align: center; color: var(--ink-soft); font-size: .84rem; margin-top: 12px; }
.key-hint kbd { background: var(--paper); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; font-family: inherit; font-weight: 700; }

/* worksheet */
.ws-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.ws-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card h4 { font-size: 1.15rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.side-card .mini { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; }
.side-card .btn { width: 100%; justify-content: center; margin-top: 8px; white-space: normal; }
.seg { display: flex; background: var(--cream-2); border-radius: 99px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 99px; padding: 8px 10px; font-family: var(--display); font-weight: 700; color: var(--ink-soft); transition: all .25s var(--bounce); }
.seg button.active { background: var(--teal); color: #fff; box-shadow: 0 4px 10px -4px rgba(46, 156, 166, .8); }
.turns { display: flex; flex-direction: column; gap: 8px; }
.turn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); font-weight: 700; cursor: pointer; transition: all .25s var(--ease); }
.turn .pebble { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--line); color: var(--ink-soft); font-family: var(--display); font-weight: 800; transition: all .3s var(--bounce); }
.turn input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: inherit; outline: none; }
.turn.on { border-color: var(--teal); background: var(--teal-light); color: #145a60; }
.turn.on .pebble { background: var(--teal); color: #fff; transform: scale(1.15); }
.saved-flag { font-size: .78rem; font-weight: 700; color: var(--a); opacity: 0; transition: opacity .3s; }
.saved-flag.show { opacity: 1; }
.worksheet { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.ws-head { padding: 24px 28px 18px; border-bottom: 2px dashed var(--line); background: linear-gradient(135deg, var(--teal-light), #fff 60%); }
.ws-head h3 { font-size: 1.6rem; color: var(--navy); }
.ws-head p { margin: 4px 0 0; color: var(--ink-soft); }
.ws-sec { padding: 20px 28px 6px; }
.ws-sec h4 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--coral); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.ws-sec h4 img { width: 44px; height: 40px; object-fit: contain; }
.ws-sec h4 .emo { font-size: 1.6rem; }
.qa { margin-bottom: 18px; }
.qa p { margin: 0 0 8px; font-weight: 700; color: var(--navy); font-size: 1.04rem; }
.qa textarea { width: 100%; min-height: 110px; resize: vertical; border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; font: inherit; font-size: 1rem; line-height: 32px; color: var(--ink); background-color: #fffefa; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(46, 156, 166, .22) 31px 32px); background-attachment: local; background-position: 0 11px; transition: border-color .2s, box-shadow .2s; }
.qa textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 5px rgba(46, 156, 166, .15); }
.print-preview { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

/* quiz */
.quiz-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.quiz-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.ring { width: 150px; height: 150px; margin: 2px auto 8px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: var(--cream-2); }
.ring .fill { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { display: block; font-family: var(--display); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.ring .lbl span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; cursor: pointer; margin-top: 12px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .3s var(--bounce); }
.switch input:checked { background: var(--coral); }
.switch input:checked::after { transform: translateX(18px); }
.qlist { display: flex; flex-direction: column; gap: 14px; }
.qcard { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 86px; position: relative; box-shadow: var(--shadow-sm); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.qcard .qbadge { position: absolute; left: 18px; top: 18px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-light); color: #9a5e07; font-family: var(--display); font-weight: 800; font-size: 1.3rem; transition: all .35s var(--bounce); }
.qcard.answered .qbadge { background: var(--gold); color: #2a1a00; transform: rotate(-10deg); }
.qcard .qn { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.qcard .qn .open { background: var(--teal-light); color: #1d6f76; padding: 1px 8px; border-radius: 99px; margin-left: 6px; letter-spacing: .06em; }
.qcard .qtext { font-weight: 700; margin: 4px 0 12px; font-size: 1.06rem; color: var(--navy); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); cursor: pointer; font-size: .95rem; transition: all .2s var(--ease); }
.opts label:hover { border-color: var(--gold); transform: translateY(-2px); }
.opts label .letter { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-family: var(--display); font-weight: 800; color: var(--ink-soft); transition: all .2s; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label:has(input:checked) { border-color: var(--navy-3); background: #e8edf8; }
.opts label:has(input:checked) .letter { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }
.qcard.correct { border-color: var(--a); background: #f1faf5; }
.qcard.correct label:has(input:checked) { border-color: var(--a); background: #dff3e8; }
.qcard.correct label:has(input:checked) .letter { background: var(--a); border-color: var(--a); }
.qcard.incorrect { border-color: var(--coral); background: #fff6f4; animation: shake .4s; }
.qcard.incorrect label:has(input:checked) { border-color: var(--coral); background: var(--coral-light); }
.qcard.incorrect label:has(input:checked) .letter { background: var(--coral); border-color: var(--coral); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.feedback { display: none; margin-top: 10px; padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: .92rem; }
.feedback.show { display: block; animation: pop .4s var(--bounce); }
.qcard.correct .feedback { background: #dff3e8; color: #1c6b47; }
.qcard.incorrect .feedback { background: var(--coral-light); color: #a3321f; }
.short-answer textarea { width: 100%; min-height: 76px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font: inherit; background: #fffefa; }
.short-answer textarea:focus { outline: none; border-color: var(--teal); }
.reveal-btn { margin-top: 8px; background: none; border: 0; padding: 0; font-weight: 700; color: var(--teal); font-size: .88rem; text-decoration: underline; }
.model-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease), margin .4s; }
.model-answer > div { overflow: hidden; }
.model-answer.show { grid-template-rows: 1fr; margin-top: 10px; }
.model-answer .inner { background: var(--teal-light); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; padding: 10px 14px; font-size: .93rem; }
.quiz-score { display: none; margin-top: 26px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.quiz-score.show { display: block; animation: pop .6s var(--bounce); }
@keyframes pop { from { transform: scale(.88); opacity: 0; } to { transform: none; opacity: 1; } }
.quiz-score .badge { position: relative; width: 150px; height: 150px; margin: 0 auto 10px; animation: spinIn 1s var(--bounce) both; }
.quiz-score .badge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.quiz-score .badge span { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #7a1a10; background: rgba(255,255,255,.85); border-radius: 99px; padding: 0 6px; }
@keyframes spinIn { from { transform: scale(0) rotate(-180deg); } to { transform: none; } }
.quiz-score .num { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--gold); line-height: 1; }
.quiz-score p { margin: 6px auto 0; max-width: 520px; color: #d7def2; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -30px; width: 16px; height: 16px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: fall 3s ease-in forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }

/* week 10 */
.feature-panel { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 30px; min-height: 320px; display: flex; align-items: flex-end; padding: 32px; box-shadow: var(--shadow-lg); margin-bottom: 22px; background: var(--night); }
.feature-panel .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.feature-panel:hover .bg { transform: scale(1.05); }
.feature-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 15%, rgba(11, 21, 48, .92)), linear-gradient(90deg, rgba(11, 21, 48, .5), transparent 70%); }
.feature-panel .fp { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; max-width: 860px; }
.feature-panel .fp img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.feature-panel small { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.feature-panel h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 2px 0 6px; }
.feature-panel p { margin: 0; color: #e3e9f7; }
.feature-panel .fp-text { flex: 1; min-width: 240px; }
.lesson-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.lesson-card .emo { font-size: 3.4rem; width: 90px; height: 90px; border-radius: 50%; background: var(--gold-light); display: grid; place-items: center; flex: none; }
.lesson-card h3 { font-size: 1.8rem; color: var(--navy); }
.lesson-card p { margin: 4px 0 0; color: var(--ink-soft); }
.lesson-card .time { margin-top: 8px; font-weight: 700; color: var(--teal); font-size: .9rem; }

.rubric3 { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-size: .93rem; }
.rubric3 th { color: #fff; text-align: left; padding: 13px 16px; font-family: var(--display); font-size: 1.02rem; }
.rubric3 th:nth-child(1) { background: var(--navy); } .rubric3 th:nth-child(2) { background: var(--na); } .rubric3 th:nth-child(3) { background: var(--wt); } .rubric3 th:nth-child(4) { background: var(--a); }
.rubric3 td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.rubric3 td small { display: block; color: var(--ink-soft); font-size: .78rem; margin-top: 2px; }
.rubric3 td:nth-child(4) { background: #f3faf6; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

.cert-preview { position: relative; container-type: inline-size; max-width: 900px; aspect-ratio: 3 / 2; margin: 0 auto; background-size: 100% 100%; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20% 16% 10%; background-color: #fff; }
.cert-preview .ribbon-t { position: absolute; top: 13.5%; left: 27%; width: 46%; font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 3cqw; line-height: 1.1; }
.cert-preview h3 { font-size: 4.6cqw; color: var(--navy); line-height: 1; }
.cert-preview p { margin: .6cqw 0; color: var(--ink-soft); font-size: 1.9cqw; }
.cert-preview .name { font-family: var(--display); font-size: 5cqw; color: var(--gold-dark); border-bottom: 2px solid #aaa; min-width: 62%; min-height: 6.4cqw; margin: 1cqw 0; outline: none; }
.cert-preview img { width: 11%; margin-top: 1cqw; }

/* ---------- RUBRIC PAGE ---------- */
.levels-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.levels-legend span { display: inline-flex; align-items: center; gap: 6px; }
.levels-legend i { width: 14px; height: 14px; border-radius: 4px; }
.explain { display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 16px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.explain img { width: 86px; height: 86px; object-fit: contain; flex: none; animation: floaty 6s ease-in-out infinite; }
.explain b { font-family: var(--display); font-size: 1.35rem; display: block; color: var(--gold-2); }
.rrow { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.rrow .rcode { height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-light); color: #9a5e07; font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.rrow .rtitle { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.rrow .rtitle small { display: block; font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.rrow .rtitle b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); line-height: 1.15; }
.rrow .rtitle span { font-size: .86rem; color: var(--ink-soft); }
.rrow .rtitle em { display: block; font-style: normal; font-weight: 700; font-size: .8rem; color: var(--coral); margin-top: 3px; }
.lv3 { display: flex; gap: 4px; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.lv3 button { border: 0; background: transparent; border-radius: 999px; padding: 9px 13px; font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--ink-soft); transition: all .25s var(--bounce); }
.lv3 button:hover { background: #fff; }
.lv3 button.on { color: #fff; transform: scale(1.05); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.lv3 button.on[data-l="0"] { background: var(--na); } .lv3 button.on[data-l="1"] { background: var(--wt); } .lv3 button.on[data-l="2"] { background: var(--a); }
.rdetail { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.rdetail > div { overflow: hidden; }
.rrow.open .rdetail { grid-template-rows: 1fr; }
.rd { border-top: 2px dashed var(--line); padding-top: 12px; margin-top: 2px; display: grid; gap: 10px; }
.rd .exp { font-size: .92rem; } .rd .exp b { color: var(--teal); }
.rd .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rd .three div { border-radius: 12px; padding: 10px 12px; font-size: .86rem; line-height: 1.4; }
.rd .three b { display: block; font-family: var(--display); font-size: .98rem; }
.rd .three .na { background: #fbe4df; } .rd .three .na b { color: var(--na); }
.rd .three .wt { background: #fcefd5; } .rd .three .wt b { color: #a86d0a; }
.rd .three .a { background: #dff3e8; border: 2px solid #b3dfc7; } .rd .three .a b { color: var(--a); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.app-footer { background: var(--night); color: #8b9bc6; border-radius: 40px 40px 0 0; margin-top: 30px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 34px 24px 40px; text-align: center; }
.footer-inner img { width: 46px; height: 46px; object-fit: contain; margin: 0 auto 8px; }
.footer-inner p { margin: 0 0 4px; font-size: .9rem; }
.footer-inner b { color: #fff; }
.footer-small { font-size: .78rem !important; opacity: .7; }

/* ---------- printable sheets (lesson plans, week packs, rubrics, certificates) ---------- */
.printable { display: none; }
.printable.active { display: block; }
.sheet { background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 24px 28px; font-size: .88rem; color: #1c1f2b; page-break-inside: avoid; break-inside: avoid; }
.sheet h3 { margin-top: 0; font-size: 1.35rem; color: var(--navy); }
.sheet .line { border-bottom: 1px solid #9aa3b8; height: 22px; margin: 4px 0 9px; }
.page-break { page-break-before: always; break-before: page; display: block; }
.qprint { page-break-inside: avoid; break-inside: avoid; margin-bottom: 8px; }
.sheet .lp-head { border-bottom: 3px solid var(--gold); padding-bottom: 8px; margin-bottom: 12px; }
.sheet .lp-head .tag { display: inline-block; background: var(--navy); color: #fff; border-radius: 6px; padding: 2px 9px; font-size: .68rem; font-weight: 700; margin-right: 6px; letter-spacing: .06em; }
.sheet .lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-bottom: 10px; font-size: .84rem; }
.sheet .lp-grid div b { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); margin-bottom: 1px; }
.sheet .nzc-box { background: #f5f2ea; border-radius: 8px; padding: 8px 12px; font-size: .7rem; line-height: 1.4; margin-bottom: 10px; }
.sheet .rubric-flag { background: var(--gold-light); border-left: 4px solid var(--gold-dark); padding: 7px 12px; font-size: .76rem; margin-top: 10px; border-radius: 0 8px 8px 0; }
.sheet .timing-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sheet .timing-row span { background: var(--teal-light); color: #155d64; border-radius: 99px; padding: 4px 11px; font-size: .72rem; font-weight: 700; }
.sheet h4.sec { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); border-bottom: 1.5px solid #e2dccb; padding-bottom: 3px; margin: 14px 0 6px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { border: 1px solid #ccc; padding: 7px 9px; text-align: left; vertical-align: top; font-size: .82rem; }
.sheet th { background: var(--navy); color: #fff; }
.sheet .tickrow { display: flex; gap: 18px; margin: 2px 0 14px; font-weight: 700; }
.cert-page { container-type: inline-size; position: relative; width: 100%; max-width: 1000px; aspect-ratio: 3 / 2; margin: 0 auto; page-break-inside: avoid; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert-page .cert-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.cert-page .cert-ribbon { position: absolute; top: 13.5%; left: 27%; width: 46%; text-align: center; font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 3cqw; line-height: 1.1; }
.cert-inner { position: absolute; inset: 24% 14% 12% 14%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--display); }
.cert-title { font-size: 4.4cqw; color: var(--navy); margin: 0 0 4px; font-weight: 800; }
.cert-sub { font-size: .9rem; color: #444; font-family: var(--body); }
.cert-name-line { border-bottom: 2px solid #999; min-width: 62%; margin: 14px 0; height: 1.8rem; }
.cert-badge { width: 72px; height: 72px; margin-top: 10px; object-fit: contain; }
.cert-footer { display: flex; justify-content: space-between; width: 82%; margin-top: 18px; font-size: .74rem; color: #555; font-family: var(--body); }
@page { margin: 14mm; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (max-width: 980px) {
  .trail { grid-template-columns: repeat(3, 1fr); } .trail::before { display: none; }
  .rhythm { grid-template-columns: repeat(3, 1fr); }
  .ws-layout, .quiz-layout { grid-template-columns: 1fr; }
  .ws-side, .quiz-side { position: static; } .quiz-side { order: -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; } .wrap { padding: 0 16px; }
  .brand span, .crumbs { display: none; } .topbar-inner { height: 60px; }
  .top-link { padding: 6px 8px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3)::before { display: none; }
  .signposts { grid-template-columns: 1fr; }
  .trail, .rhythm { grid-template-columns: repeat(2, 1fr); }
  .opts { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 54px 1fr; } .rrow .lv3 { grid-column: 1 / -1; } .lv3 button { flex: 1; padding: 8px 4px; font-size: .78rem; }
  .rd .three { grid-template-columns: 1fr; }
  .slide { padding: 36px 20px 28px; } .slide .s-icon { width: 90px; height: 80px; margin-top: -76px; }
  .stage-nav { padding: 12px 14px 16px; } .stage-nav .btn { padding: 10px 14px; }
  .slide-dots { gap: 5px; } .slide-dots button { width: 8px; height: 8px; } .slide-dots button.active { width: 20px; }
  .slide-area { padding: 10px 14px 16px; }
  .week-nav .t { display: none; }
  .qcard { padding: 70px 18px 18px; }
  .hero-badge, .week-hero .hero-kind { display: none; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .page-head { padding: 22px 18px; } .page-head .ph-icon { width: 64px; height: 56px; }
  .checkpoint { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .sky-layer { display: none; } .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff !important; }
  body.printing > *:not(#printStage) { display: none !important; }
  body:not(.printing) #printStage { display: none !important; }
  body.printing #printStage.active { display: block !important; }
  .topbar, .app-footer, .sky-layer, .no-print { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .sheet { border: 0; border-radius: 0; padding: 0; }
  .cert-page { max-width: none; }
}

.poster-feature { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 40px; align-items: center; margin: 56px 0 8px; }
.poster-feature .poster-img { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(11,21,48,.35); transform: rotate(-1.5deg); transition: transform .3s; }
.poster-feature .poster-img:hover { transform: rotate(0) scale(1.02); }
.poster-feature img { display: block; width: 100%; height: auto; }
.poster-text h2 { font-family: var(--display); color: var(--navy); margin: 6px 0 12px; font-size: clamp(26px, 3.4vw, 38px); }
.poster-text p { max-width: 56ch; line-height: 1.6; color: var(--ink-soft); }
.poster-text .hero-ctas { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.poster-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(11,21,48,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; cursor: zoom-out; }
.poster-lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
@media (max-width: 720px) { .poster-feature { grid-template-columns: 1fr; justify-items: center; text-align: center; } .poster-feature .poster-img { max-width: 300px; } }
