/* Fun Zone (/fun). Open Learning palette only. */
.fz-page { padding: 32px 0 56px; }
.fz { max-width: 1080px; margin: 0 auto; padding: 0 24px; color: var(--ink, #26424a); font-family: var(--sans); }
.fz button { font-family: inherit; color: inherit; }
.fz-stack { display: flex; flex-direction: column; gap: 30px; }
.fz-stack.narrow { max-width: 760px; margin: 0 auto; gap: 20px; }
.fz-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.fz-bar-name { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft, #5a6e72); }
.fz-pill { font-family: var(--mono); font-size: 12px; color: var(--accent-deep, #15706a); background: var(--accent-3-soft, #d8eccb); padding: 6px 10px; border-radius: 999px; }

.fz-hero { position: relative; overflow: hidden; background: #d8eccb; border-radius: 24px; padding: 40px 36px 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; align-items: center; }
.fz-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.fz-blob.b1 { width: 220px; height: 220px; background: #66bd49; opacity: .35; right: -60px; top: -70px; }
.fz-blob.b2 { width: 90px; height: 90px; background: #1c8b82; opacity: .25; right: 30%; bottom: -40px; }
.fz-blob.b3 { width: 18px; height: 18px; background: #ffffff; right: 46%; top: 26px; }
.fz-blob.b4 { width: 10px; height: 10px; background: #15706a; right: 40%; top: 64px; }
.fz-hero-text { position: relative; display: flex; flex-direction: column; gap: 14px; }
.fz-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #15706a; }
.fz-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 76px); line-height: .98; margin: 0; letter-spacing: -0.02em; }
.fz-h1 em, .fz-h2 em { color: #15706a; font-style: italic; }
.fz-lede { margin: 0; font-size: 17px; line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.fz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fz-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 500; }
.fz-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fz-dot.lg { width: 12px; height: 12px; }
.fz-riddle { position: relative; background: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(38,66,74,.10); }
.fz-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #1c8b82; }
.fz-label.muted { color: #5a6e72; letter-spacing: .12em; }
.fz-riddle-q { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.fz-riddle-a { background: #d8eccb; border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 600; color: #15706a; }

.fz-btn { align-self: flex-start; background: #15706a; color: #fff !important; border: 0; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer; min-height: 44px; }
.fz-btn:hover { background: #26424a; }
.fz-btn.lg { padding: 13px 22px; font-size: 15px; }
.fz-btn.ghost { background: #fff; color: #15706a !important; border: 1px solid #d7e0dd; }
.fz-btn.ghost:hover { border-color: #1c8b82; background: #fff; }
.fz-btn.end { align-self: flex-end; }
.fz-btn.mid { align-self: center; }
.fz-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.fz-sec { display: flex; flex-direction: column; gap: 14px; }
.fz-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fz-h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
.fz-h2.xl { font-size: 44px; letter-spacing: -0.015em; }
.fz-h2.lg { font-size: 40px; letter-spacing: -0.015em; }
.fz-meta { font-family: var(--mono); font-size: 12px; color: #5a6e72; }
.fz-meta.up { letter-spacing: .1em; text-transform: uppercase; }
.fz-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fz-level { position: relative; overflow: hidden; text-align: left; background: #fff; border: 1px solid #d7e0dd; border-radius: 18px; padding: 0; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.fz-level:hover { border-color: #1c8b82; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(38,66,74,.10); }
.fz-level-band { display: flex; align-items: flex-end; justify-content: space-between; color: #fff; padding: 18px 20px 14px; min-height: 64px; }
.fz-level-big { font-family: var(--serif); font-size: 40px; line-height: 1; }
.fz-level-years { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.fz-level-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.fz-level-name { font-family: var(--serif); font-size: 26px; line-height: 1.05; }
.fz-level-blurb, .fz-world-blurb, .fz-game-desc { font-size: 14px; line-height: 1.5; color: #5a6e72; }
.fz-level-stars { margin-top: 4px; font-family: var(--mono); font-size: 12px; color: #15706a; }
.fz-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fz-step { background: #fff; border: 1px solid #d7e0dd; border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #3a4f54; }
.fz-step b { color: #26424a; }
.fz-step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #d8eccb; color: #15706a; font-family: var(--serif); font-size: 20px; display: flex; align-items: center; justify-content: center; }

.fz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fz-back { background: none; border: 0; padding: 10px 0; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #15706a !important; }
.fz-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.fz-world { background: #fff; border: 1px solid #d7e0dd; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.fz-world-head { display: flex; align-items: center; gap: 10px; }
.fz-world-name { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; line-height: 1.1; }
.fz-world-blurb { margin: 0; }
.fz-games { display: flex; flex-direction: column; gap: 8px; }
.fz-game { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: #f4f8f6; border: 1px solid #e3ebe8; border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.fz-game:hover { border-color: #1c8b82; background: #fff; }
.fz-game-text { display: flex; flex-direction: column; gap: 3px; }
.fz-game-name { font-weight: 600; font-size: 15px; }
.fz-game-stars { font-family: var(--mono); font-size: 12px; color: #15706a; white-space: nowrap; }

.fz-game-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fz-progress { font-family: var(--mono); font-size: 13px; }
.fz-board { background: #fff; border: 1px solid #d7e0dd; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.fz-timer { height: 8px; background: #edf2f0; border-radius: 999px; overflow: hidden; }
.fz-timer > div { height: 100%; background: #66bd49; border-radius: 999px; transition: width 1s linear; }
.fz-prompt { font-family: var(--serif); font-size: 34px; line-height: 1.15; text-align: center; text-wrap: balance; }
.fz-seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.fz-sub { font-size: 15px; color: #5a6e72; text-align: center; }
.fz-sub.ok { color: #15706a; font-weight: 600; }
.fz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.fz-opt { background: #fff; border: 2px solid #d7e0dd; border-radius: 14px; padding: 16px 14px; font-size: 18px; font-weight: 500; cursor: pointer; min-height: 60px; line-height: 1.3; }
.fz-opt:hover:not([disabled]) { border-color: #1c8b82; }
.fz-opt[disabled] { cursor: default; }
.fz-opt.is-right { background: #d8eccb; border-color: #66bd49; }
.fz-opt.is-wrong { background: #fbe9e6; border-color: #e3b5ab; }
.fz-opt.is-dim { border-color: #e3ebe8; }
.fz-clues { display: flex; flex-direction: column; gap: 8px; }
.fz-clue { background: #f4f8f6; border-radius: 10px; padding: 10px 14px; font-size: 16px; line-height: 1.45; }
.fz-more { align-self: flex-start; background: none; border: 1px dashed #1c8b82; color: #15706a !important; border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; min-height: 44px; }
.fz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.fz-card { aspect-ratio: 4 / 3; border-radius: 14px; border: 2px solid #1c8b82; background: #1c8b82; color: #fff !important; font-size: 17px; font-weight: 600; cursor: pointer; padding: 6px; overflow-wrap: anywhere; }
.fz-card.is-up { background: #fff; color: #26424a !important; }
.fz-card.is-done { background: #d8eccb; border-color: #66bd49; color: #26424a !important; cursor: default; }
.fz-lemon { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.fz-ctl { background: #f4f8f6; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fz-ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fz-ctl-val { font-family: var(--serif); font-size: 34px; }
.fz-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d7e0dd; background: #fff; font-size: 22px; cursor: pointer; }
.fz-round[disabled] { opacity: .4; cursor: default; }
.fz-fb { border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.fz-fb.ok { background: #eef6e8; }
.fz-fb.no { background: #fbefec; }
.fz-fb-title { font-weight: 600; font-size: 16px; }
.fz-fb-text { font-size: 15px; line-height: 1.5; color: #3a4f54; }
.fz-extra { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; font-size: 14px; }
.fz-lang { font-family: var(--mono); font-size: 11px; color: #1c8b82; display: inline-block; width: 34px; }
.fz-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 14px 0; }
.fz-done-stars { font-size: 44px; letter-spacing: 6px; color: #66bd49; }
.fz-done-title { font-family: var(--serif); font-size: 32px; }
.fz-done-text { font-size: 16px; color: #5a6e72; }
.fz-note { margin: 36px 0 0; padding-top: 16px; border-top: 1px solid #d7e0dd; font-size: 13px; line-height: 1.55; color: #5a6e72; }
.fz-note a { color: #15706a; border-bottom: 1px solid currentColor; }

@media (max-width: 600px) {
  .fz { padding: 0 16px; }
  .fz-hero { padding: 28px 20px 22px; border-radius: 20px; }
  .fz-blob.b3, .fz-blob.b4 { display: none; }
  .fz-board { padding: 18px; }
  .fz-prompt { font-size: 28px; }
  .fz-h2.xl, .fz-h2.lg { font-size: 34px; }
  .fz-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fz-card { font-size: 15px; }
  .fz-opt { font-size: 17px; }
}
