
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/assets/fonts/baloo2-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/assets/fonts/baloo2-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* quizify.fun home. The page is a quiz-show board: the game's own tile colours, chunky ink
   outlines and the hard bottom edge of its tiles and buttons carry every section, and the
   real game loop is the first screen. Built from mockups/quizify-landing.html (Rey picked
   Tiles with a bigger preview, 2026-10-21). One light look. */
:root {
  --ink: #1c2b4b;
  --ink-soft: #4b5878;
  --night: #0c1d38;
  --board: #1a4068;
  --navy: #355487;
  --teal: #4fa492;
  --sun: #f1b947;
  --sun-soft: #f7d27f;
  --coral: #e9643f;
  --cream: #fae8d3;
  --sky: #eef3fa;
  --paper: #ffffff;
  --on-dark: #f6f1e7;
  --on-dark-soft: #b9c6de;
  --rule: #d3dceb;
  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* The game's buttons: a fill, an ink outline and a hard bottom edge that presses in. */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; padding: 15px 24px 13px; border-radius: 16px; border: 3px solid var(--ink); background: var(--coral); color: var(--paper); box-shadow: 0 5px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.white { background: var(--paper); color: var(--ink); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.sm { font-size: 16px; padding: 11px 16px 9px; border-radius: 13px; box-shadow: 0 4px 0 var(--ink); }
.btn .ico { font-size: .8em; }

/* Nav, shared by the three first screens. */
.nav { display: flex; align-items: center; gap: 24px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.02em; }
.brand small { font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: 0; opacity: .7; }
/* The logo (Rey's pick, 2026-10-22): «Quiz» on a coral tile and «ify» on a navy one, in the
   tile headline's letters, each tile on its ink shelf. */
.lg { display: inline-flex; align-items: center; gap: .07em; letter-spacing: -.012em; }
.lg > span { display: inline-block; padding: .17em .25em .05em; border-radius: .2em; border: max(2px, .05em) solid var(--ink); box-shadow: 0 .08em 0 var(--ink); color: var(--paper); -webkit-text-stroke: max(1px, .032em) var(--ink); paint-order: stroke fill; }
.lg .a { background: var(--coral); transform: rotate(-3deg); }
.lg .b { background: var(--navy); transform: rotate(2.5deg) translateY(.04em); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 800; font-size: 16px; }
.nav-cta { display: flex; align-items: center; gap: 18px; font-weight: 800; font-size: 16px; }
@media (max-width: 860px) { .nav-links, .nav-cta .login { display: none; } .nav-cta { margin-left: auto; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.lede { font-size: 20px; line-height: 1.5; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.free-line { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.free-line .ico { color: var(--teal); }

/* Stickers: the world covers, each its own picture, stuck at an angle. */
.sticker { position: absolute; width: clamp(84px, 11vw, 138px); aspect-ratio: 1; border-radius: 24px; border: 4px solid var(--paper); box-shadow: 0 6px 0 rgba(28, 43, 75, .28), 0 14px 26px rgba(28, 43, 75, .18); overflow: hidden; }
.sticker img { width: 100%; height: 100%; object-fit: cover; }
/* A «?» on a tilted tile like the logo's, stuck beside the headline as a die-cut
   sticker. It took the ringed planet's place (Rey's «D», 2026-10-22) when Quizify
   left the planet behind (Rey's «B · The first letter on a tile», 2026-10-24). */
.sticker-tile { position: absolute; display: grid; place-items: center; box-sizing: border-box; width: clamp(58px, 6.8vw, 96px); aspect-ratio: 1; padding-top: .06em; border-radius: 26%; background: var(--coral); border: 3px solid var(--ink); box-shadow: 0 0 0 5px var(--paper), 0 8px 0 3px rgba(28, 43, 75, .28), 0 16px 24px rgba(28, 43, 75, .18); font-family: "Baloo 2", "Nunito", ui-rounded, system-ui, sans-serif; font-weight: 800; font-size: clamp(36px, 4.3vw, 61px); line-height: 1; color: #fff; -webkit-text-stroke: .034em var(--ink); paint-order: stroke fill; user-select: none; }

/* The real game, recorded from the app. */
.screen { position: relative; border-radius: 20px; overflow: hidden; border: 4px solid var(--ink); box-shadow: 0 9px 0 var(--ink), 0 28px 50px rgba(12, 29, 56, .28); background: var(--night); aspect-ratio: 16 / 9; }
.screen video { width: 100%; height: 100%; object-fit: cover; }

/* The game's five tile colours, shared by the headline, the steps and the badges. */
.c-navy { background: var(--navy); } .c-teal { background: var(--teal); } .c-sun { background: var(--sun-soft); } .c-coral { background: var(--coral); } .c-cream { background: var(--cream); }

/* ---------- First screen: the headline as the game's tiles ---------- */
.o3 { background: var(--sky); position: relative; overflow: hidden; }
.o3 .hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 34px; align-items: center; padding-block: 26px 40px; }
.o3 .copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tiles-h1 { display: flex; flex-wrap: wrap; gap: 12px 12px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1; font-weight: 800; }
.tiles-h1 span { display: inline-block; padding: .2em .34em .1em; border-radius: 16px; border: 3px solid var(--ink); box-shadow: 0 6px 0 rgba(28, 43, 75, .55); color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; animation: tile-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.tiles-h1 span:nth-child(odd) { transform: rotate(-1.6deg); } .tiles-h1 span:nth-child(even) { transform: rotate(1.4deg); }
.tiles-h1 span:nth-child(2) { animation-delay: .07s; } .tiles-h1 span:nth-child(3) { animation-delay: .14s; } .tiles-h1 span:nth-child(4) { animation-delay: .21s; } .tiles-h1 span:nth-child(5) { animation-delay: .28s; } .tiles-h1 span:nth-child(6) { animation-delay: .35s; }
.tiles-h1 .c-sun, .tiles-h1 .c-cream { color: var(--ink); -webkit-text-stroke: 0; }
@keyframes tile-in { from { scale: .92; } to { scale: 1; } }
.o3 .screen { transform: rotate(1.2deg); }
.o3 .media { position: relative; min-width: 0; padding: 40px 30px 46px; }
.o3 .s1 { left: -6px; bottom: 0; transform: rotate(-8deg); }
.o3 .s2 { right: -4px; top: 0; transform: rotate(8deg); width: clamp(64px, 8.4vw, 112px); }
.o3 .s3 { left: -30px; top: -20px; transform: rotate(14deg); }
@media (max-width: 900px) { .o3 .s3 { left: -6px; top: -12px; } }
@media (min-width: 1240px) { .o3 .media { margin-right: -36px; } }
@media (max-width: 900px) { .o3 .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 16px 60px; } .o3 .media { padding: 30px 22px 34px; } }

/* ---------- The rest of the page ---------- */
.band { padding-block: 84px; }
.band-head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; margin-bottom: 40px; }
.band-head h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.02; font-weight: 800; }
.band-head p { font-size: 19px; color: var(--ink-soft); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1; padding: 6px 11px 4px; border-radius: 999px; border: 2px solid var(--ink); }
.chip.free { background: var(--teal); color: var(--paper); }
.chip.plus { background: var(--sun); color: var(--ink); }

.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.game { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.game .cover { position: relative; border-radius: 22px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); aspect-ratio: 1; background: var(--paper); transition: transform .18s ease; }
.game:hover .cover { transform: rotate(-2deg) translateY(-3px); }
.game .cover img { width: 100%; height: 100%; object-fit: cover; }
.game h3 { font-size: 22px; font-weight: 800; line-height: 1.1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game h3 .chip { font-size: 13px; padding: 5px 9px 3px; }
.game p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 900px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } .game h3 { font-size: 19px; } .game p { font-size: 14.5px; } }

.board-band { background: var(--board); color: var(--on-dark); }
.board-band .band-head p { color: var(--on-dark-soft); }
/* A round in four real frames (Д2, 2026-10-30): pictures of the game itself, a line each. */
.rounds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rf { display: grid; gap: 12px; min-width: 0; }
.rf img { width: 100%; height: auto; border-radius: 14px; border: 3px solid var(--night); box-shadow: 0 6px 0 rgba(5, 13, 28, .45); }
.rf span { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.15; color: var(--on-dark); }
.rf-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 2.5px solid var(--ink); background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 17px; }
.rounds-line { margin-top: 26px; font-weight: 700; color: var(--on-dark-soft); font-size: 17px; }
@media (max-width: 900px) { .rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

/* The questions: the real editor beside four short lines (Д2). */
.srcs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.srcs-shot img { width: 100%; height: auto; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); transform: rotate(-1deg); background: var(--sky); }
.srcs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; font-size: 16.5px; color: var(--ink-soft); }
.srcs-list b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); line-height: 1.15; margin-bottom: 2px; }
@media (max-width: 900px) { .srcs { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Ready-made quizzes under the first screen (Д4): rows of real covers, each a quiz's own page. */
.shelves { background: var(--paper); }
.shelves .band-head { margin-bottom: 28px; }
.shelf { display: grid; gap: 12px; }
.shelf + .shelf { margin-top: 30px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.shelf-head h3 { font-size: 25px; font-weight: 800; line-height: 1.1; }
.shelf-head a { font-weight: 800; color: var(--navy); white-space: nowrap; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 4px 16px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.qcard { display: grid; gap: 8px; align-content: start; scroll-snap-align: start; color: var(--ink); min-width: 0; }
.qc-pic { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: var(--sky); transition: transform .18s ease; }
.qc-pic img { width: 100%; height: 100%; object-fit: cover; }
.qcard:hover .qc-pic { transform: rotate(-2deg) translateY(-3px); }
.qc-name { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.15; }
.qc-meta { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-top: -4px; }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 26px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 0 7px 0 var(--ink); min-width: 0; }
.plan.plus { background: var(--sun); }
.plan.with { background: var(--board); color: var(--on-dark); }
.plan.with li .ico { color: var(--sun); }
.plan.with .price b { font-size: 40px; line-height: 1.1; }
.plan h3 { font-size: 28px; font-weight: 800; line-height: 1; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: .9; font-variant-numeric: tabular-nums; }
.price span { font-weight: 800; font-size: 16px; }
.price-alt { font-weight: 700; font-size: 15px; margin-top: -8px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; font-weight: 700; }
.plan li .ico { color: var(--teal); font-size: 15px; position: relative; top: 2px; }
.plan.plus li .ico { color: var(--ink); }
.plan .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 980px) { .pricing { grid-template-columns: minmax(0, 1fr); max-width: 520px; } .plan { padding: 22px; } }

.learnify { background: var(--paper); border-block: 2px solid var(--rule); }
.learnify .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.learnify h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; font-weight: 800; }
.learnify p { font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.learnify .mascot { justify-self: center; width: min(100%, 420px); }
.learnify .mascot img { width: 100%; height: auto; }
@media (max-width: 860px) { .learnify .wrap { grid-template-columns: minmax(0, 1fr); } .learnify .mascot { width: min(70%, 300px); } }

.faqx { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.faqx-h { font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; position: sticky; top: 24px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); border: 2.5px solid var(--ink); transition: transform .25s ease; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; margin: -1.5px 0 0 -7px; background: var(--paper); border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq-a { overflow: hidden; transition: height .28s ease; }
.faq details p { padding: 0 20px 20px; color: var(--ink-soft); font-size: 17px; max-width: 62ch; }
@media (max-width: 900px) { .faqx { grid-template-columns: minmax(0, 1fr); gap: 24px; } .faqx-h { position: static; } }

.final { background: var(--coral); color: var(--paper); }
.final .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-block: 76px; }
.final h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; font-weight: 800; }
.final p { font-size: 19px; font-weight: 700; opacity: .92; }

footer.site { background: var(--night); color: var(--on-dark-soft); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-block: 34px 40px; font-weight: 700; font-size: 15px; }
footer.site .brand { color: var(--on-dark); font-size: 26px; }
footer.site .lg > span { border-color: #050d1c; box-shadow: 0 .08em 0 #050d1c; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lang { display: inline-flex; align-items: center; gap: 8px; border: 2px solid rgba(246, 241, 231, .3); border-radius: 999px; padding: 6px 14px; color: var(--on-dark); }

.divider { border: 0; border-top: 2px dashed var(--rule); margin: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* The phone (Д5, 2026-10-30): the games, the quizzes, a round and the prices are rows to swipe, as on learnify.fun's phone page. */
@media (max-width: 760px) {
  .games, .rounds, .pricing { grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 16px; scroll-padding-inline: var(--gut); max-width: none; }
  .games { grid-auto-columns: 62%; gap: 14px; }
  .rounds { grid-auto-columns: 82%; gap: 14px; }
  .pricing { grid-auto-columns: 86%; gap: 14px; }
  .games > *, .rounds > *, .pricing > * { scroll-snap-align: start; }
  .shelf-row { grid-auto-columns: 62%; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 14px; scroll-padding-inline: var(--gut); }
}
@media (max-width: 520px) { body { font-size: 16px; } .lede { font-size: 18px; } .band { padding-block: 60px; } .btn { font-size: 17px; padding: 13px 18px 11px; } }

footer.site .legal-line { display: block; padding-block: 0 30px; font-size: 13.5px; font-weight: 600; opacity: .8; }

/* A quiz's own page and the list of quizzes (make-quiz-pages.mjs). */
.qp-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; padding-block: 18px 64px; }
.qp-cover { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); transform: rotate(-1.5deg); background: var(--paper); }
.qp-cover img { width: 100%; height: 100%; object-fit: cover; }
.qp-letter { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 120px; color: var(--paper); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.qp-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.qp-crumbs { font-weight: 700; color: var(--ink-soft); }
.qp-crumbs a { color: var(--navy); }
.qp-title { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; overflow-wrap: anywhere; }
.qp-desc { font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.qp-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.qp-facts span { font-family: var(--display); font-weight: 800; font-size: 15px; padding: 6px 12px 4px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.qp-share { align-self: flex-start; background: none; border: 0; padding: 0; font: 800 16px/1.3 var(--body); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qp-qs { background: var(--paper); }
.qp-qhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.qp-qhead h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.qp-toggle { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; cursor: pointer; }
.qp-toggle::before { content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2.5px solid var(--ink); background: var(--paper); }
#answers:checked ~ .qp-qhead .qp-toggle::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
#answers:focus-visible ~ .qp-qhead .qp-toggle { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.pqs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pq { position: relative; display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 20px; border: 2px solid var(--rule); background: var(--paper); min-width: 0; }
.pq img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--sky); border-radius: 12px; }
.pq-n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--paper); background: var(--navy); border: 2px solid var(--ink); border-radius: 9px; padding: 2px 8px 0; justify-self: start; }
.pq-q { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.pq-ch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pq-ch li { font-size: 14px; font-weight: 700; padding: 6px 8px; border-radius: 10px; background: var(--sky); overflow-wrap: anywhere; }
.pq-ans { display: none; font-size: 14.5px; font-weight: 800; color: #2e9e63; overflow-wrap: anywhere; }
#answers:checked ~ .pqs .pq-ans { display: block; }
#answers { position: absolute; opacity: 0; pointer-events: none; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
.topic { scroll-margin-top: 20px; }
.topic + .topic { margin-top: 44px; }
.topic h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; margin-bottom: 16px; }
@media (max-width: 1000px) { .pqs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .qp-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 8px 48px; } }
@media (max-width: 520px) { .pqs { grid-template-columns: minmax(0, 1fr); } .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
