/* Website: the Fun Zone page and the homepage's fun-and-academic section (v1.67). Academy colours, with the Fun Zone's
   candy colours for its topics and crew. */
.fz-hero .wrap { align-items: center; }
.race-art { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.fz-hero-art { position: relative; }

/* Try it */
.fz-try-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.fz-demo { background: #160f36; color: #fbf8ff; border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 50px rgba(3, 21, 39, .18); min-height: 360px; }
.fz-demo h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 6px 0 18px; }
.fz-demo-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: #c7bff0; font-size: .95rem; font-weight: 600; }
.fz-demo-flag { margin: 14px 0 4px; }
.fz-demo-flag > svg:not(.flag) { display: block; height: 140px; width: auto; max-width: 100%; border-radius: 14px; }
.fz-demo-flag .flag { display: block; height: 110px; width: auto; max-width: 100%; border-radius: 6px; outline: 1px solid rgba(255, 255, 255, .25); }
.fz-demo-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fz-ans { --c: #59c3ff; min-height: 56px; padding: 12px 14px; text-align: left; font: 700 1.02rem var(--sans); color: #fbf8ff; background: #211a52;
  border: 2px solid #42379a; border-left: 7px solid var(--c); border-radius: 14px; cursor: pointer; }
.fz-ans:hover:not(:disabled) { background: #2b2366; }
.fz-ans:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.fz-ans-1 { --c: #ff5fa2; } .fz-ans-2 { --c: #59c3ff; } .fz-ans-3 { --c: #ffcc33; } .fz-ans-4 { --c: #3ddc97; }
.fz-ans:disabled { cursor: default; opacity: .55; }
.fz-ans.right { opacity: 1; border-color: #3ddc97; background: rgba(61, 220, 151, .18); }
.fz-ans.wrong { opacity: 1; border-color: #ff6b81; background: rgba(255, 107, 129, .16); }
.fz-demo-feedback { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #211a52; border: 2px solid #42379a; display: grid; gap: 6px; justify-items: start; }
.fz-demo-feedback.good { border-color: #3ddc97; } .fz-demo-feedback.good b { color: #3ddc97; }
.fz-demo-feedback.bad b { color: #ffb0bd; }
.fz-demo-feedback p { margin: 0; color: #c7bff0; }
.fz-demo .btn.primary { background: #ffcc33; border-color: #ffcc33; color: #160f36; margin-top: 6px; }
.fz-demo .btn:not(.primary) { border-color: rgba(255, 255, 255, .55); color: #fff; }
.fz-demo .btn:not(.primary):hover { background: rgba(255, 255, 255, .08); }
.fz-demo-end { display: grid; gap: 12px; align-content: center; min-height: 300px; }
.fz-demo-end p { margin: 0; color: #c7bff0; }
.fz-demo-score { font: 700 clamp(1.6rem, 3.4vw, 2.2rem)/1.15 var(--display); color: #ffcc33 !important; }

/* Lessons and play */
.fz-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fz-side { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--c); }
.fz-learn { --c: var(--blue); } .fz-play { --c: #ff5fa2; }
.fz-side h3 { font-size: 1.4rem; margin-bottom: 12px; }
.fz-side ul { margin: 0 0 16px; padding-left: 1.2em; display: grid; gap: 8px; }

/* Topics and levels */
.fz-topics { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fz-topic { --c: #59c3ff; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px; border-radius: var(--radius); background: #160f36; color: #fbf8ff; border-top: 5px solid var(--c); }
.fz-topic .topic-icon { grid-row: span 2; color: var(--c); }
.fz-topic b { font: 600 1.15rem var(--display); color: #fff; }
.fz-topic span { color: #c7bff0; font-size: .95rem; }
.fz-topic.topic-flags { --c: #ff5fa2; } .fz-topic.topic-geography { --c: #3ddc97; } .fz-topic.topic-landmarks { --c: #ffcc33; }
.fz-topic.topic-grammar { --c: #59c3ff; } .fz-topic.topic-facts { --c: #ff8a3d; } .fz-topic.topic-trivia { --c: #b18cff; } .fz-topic.topic-records { --c: #2ee6c8; }
.fz-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fz-levels > div { padding: 22px 24px; border-radius: var(--radius); background: var(--mist); display: grid; gap: 4px; }
.fz-levels b { font: 600 1.3rem var(--display); color: var(--night); }
.fz-levels span { color: var(--muted); font-weight: 600; }
.fz-levels p { margin: 6px 0 0; }

/* Crew */
.fz-crew-band { background: #160f36; }
.fz-crew-band h2 { color: #fff; }
.fz-crew-band .section-head p { color: #c7bff0; }
.fz-crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.fz-crew li { display: grid; justify-items: center; gap: 4px; padding: 16px 8px; border-radius: 18px; background: #211a52; border: 1px solid #42379a; text-align: center; }
.fz-crew b { color: #fff; font-family: var(--display); font-weight: 600; }
.fz-crew span { color: #ffcc33; font-size: .88rem; font-weight: 600; }

/* Homepage: fun and academic */
.fz-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.fz-home .lede { margin-top: 16px; max-width: 46ch; }
.fz-home-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.fz-home-pair div { padding: 16px 18px; border-radius: var(--radius); background: var(--paper); border-top: 5px solid var(--c); }
.fz-home-pair b { display: block; font: 600 1.1rem var(--display); color: var(--night); margin-bottom: 4px; }
.fz-home-pair span { color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) {
  .fz-try-grid, .fz-home { grid-template-columns: 1fr; }
  .fz-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fz-crew { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fz-sides, .fz-levels, .fz-home-pair, .fz-demo-answers { grid-template-columns: 1fr; }
  .fz-topics { grid-template-columns: 1fr; }
  .fz-crew { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
