:root {
  --ink: #32174c;
  --muted: #665775;
  --purple: #6c36af;
  --lavender: #e9dcfc;
  --paper: #faf7ff;
  --yellow: #ecfa8d;
  --pink: #ffd0e7;
  --line: #d5c3e7;
  --white: #fffdfd;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8144c4; outline-offset: 5px; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 850; letter-spacing: -.037em; text-decoration: none; white-space: nowrap; }
.wordmark img { width: 28px; flex: none; }
nav { display: flex; align-items: center; gap: clamp(17px, 4vw, 39px); }
nav a, .footer a:last-child { text-decoration: none; font-size: .94rem; font-weight: 700; }
nav a:hover, .footer a:last-child:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero {
  overflow: hidden;
  background-color: #ebdfff;
  background-image: radial-gradient(#9a71bf39 1px, transparent 1px), radial-gradient(ellipse at 75% 41%, #f3dcf9, transparent 50%);
  background-size: 18px 18px, auto;
}
.hero-inner { width: min(1300px, calc(100% - 88px)); display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; min-height: 590px; }
.intro { padding: 54px 0 70px; z-index: 1; }
h1 { font-size: clamp(3rem, 5.3vw, 5rem); font-weight: 850; letter-spacing: -.07em; line-height: 1.03; }
h1 em { display: inline-block; font-style: normal; color: var(--purple); position: relative; white-space: nowrap; isolation: isolate; }
h1 em::after { content: ""; position: absolute; left: 3%; right: -1%; height: .13em; bottom: -.03em; border-radius: 48% 40% 46% 36%; background: #c099f1; transform: rotate(-4deg); z-index: -1; }
.intro p { margin-top: 26px; max-width: 438px; font-size: clamp(1rem, 1.5vw, 1.13rem); line-height: 1.65; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 29px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 10px; font-weight: 800; text-decoration: none; box-shadow: 3px 4px 0 var(--ink); transition: transform .16s, box-shadow .16s; }
.button:not(:disabled):hover { transform: translate(-1px, -2px); box-shadow: 4px 6px 0 var(--ink); }
.button:not(:disabled):active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.primary { background: var(--yellow); }
.timing { color: var(--muted); font-size: .875rem; font-weight: 700; }
.collage { position: relative; width: 100%; max-width: 740px; aspect-ratio: 1.16; margin: 5px 0 0 auto; }
.halo { position: absolute; inset: 10% 8% 13% 9%; border-radius: 50%; border: 1px dashed #9a6ccd; transform: rotate(-16deg); }
.photo-print {
  position: relative;
  width: fit-content;
  padding: 10px;
  background: var(--white);
  border: 1px solid #8d6eae;
  border-radius: 3px;
  box-shadow: 4px 6px 0 #72509135;
  transform: rotate(var(--angle, 0deg));
}
.photo-print img { height: auto; }
.tape {
  position: absolute;
  inset: var(--y) auto auto var(--x);
  width: clamp(20px, 2.7vw, 36px);
  height: clamp(8px, 1vw, 12px);
  background: var(--tape, #efd780e8);
  clip-path: polygon(0 0, 98% 0, 95% 34%, 100% 65%, 97% 100%, 1% 100%, 4% 68%, 0 37%);
  transform: translate(-50%, -50%) rotate(var(--slant));
  pointer-events: none;
}
.tape-tl { --x: 3px; --y: 3px; --slant: -45deg; }
.tape-tr { --x: calc(100% - 3px); --y: 3px; --slant: 45deg; }
.tape-bl { --x: 3px; --y: calc(100% - 3px); --slant: 45deg; }
.tape-br { --x: calc(100% - 3px); --y: calc(100% - 3px); --slant: -45deg; }
.collage .photo-print { position: absolute; }
.shot-left { left: 4%; top: 6%; width: 24%; --angle: -6deg; }
.shot-low { left: 5%; top: 57%; width: 25%; --angle: 6deg; --tape: #efadd2ed; }
.shot-main { left: 34%; top: 13%; width: 33%; --angle: -3deg; --tape: #c8b2f4ed; }
.shot-right { right: 3%; top: 22%; width: 23%; --angle: 6deg; }
.spark { position: absolute; color: #804bbb; line-height: 1; font-size: clamp(1.8rem, 4vw, 3.4rem); }
.spark-top { top: 7%; right: 20%; }
.spark-left { bottom: 10%; left: 42%; }
.sticker { position: absolute; right: 12%; bottom: 12%; width: clamp(37px, 5vw, 64px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); background: var(--pink); display: grid; place-items: center; transform: rotate(16deg); font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 700; box-shadow: 2px 3px 0 var(--ink); }
.ribbon { border-block: 1px solid var(--ink); background: var(--ink); color: #faf1ff; }
.ribbon-inner { min-height: 47px; display: flex; align-items: center; justify-content: center; gap: clamp(13px, 5vw, 71px); font-size: .81rem; font-weight: 750; letter-spacing: .105em; text-align: center; }
.ribbon b { color: var(--yellow); font-size: 1rem; }
section[id] { scroll-margin-top: 24px; }
.quiz-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: 950px;
  padding: 64px 0;
  background-color: #f4ecff;
  background-image: radial-gradient(#9a71bf38 1px, transparent 1px);
  background-size: 18px 18px;
}
.quiz-content { position: relative; z-index: 1; }
.wall-cluster {
  position: absolute;
  inset-block: 30px;
  width: 225px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: start;
  gap: 21px;
  pointer-events: none;
}
.wall-left { left: max(32px, calc(50% - 655px)); }
.wall-right { right: max(32px, calc(50% - 655px)); }
.wall-print img { width: auto; height: var(--photo-height, 160px); }
.wall-print:nth-child(even) { align-self: end; }
.wall-print:nth-child(1) { --angle: -8deg; --photo-height: 145px; }
.wall-print:nth-child(2) { --angle: 9deg; --tape: #efadd2ed; }
.wall-print:nth-child(3) { --angle: -6deg; --photo-height: 175px; }
.wall-print:nth-child(4) { --angle: 7deg; --tape: #c8b2f4ed; }
.wall-right .wall-print:nth-child(odd) { align-self: end; }
.wall-right .wall-print:nth-child(even) { align-self: start; }
.wall-right .wall-print:nth-child(2) { --angle: -7deg; }
.wall-right .wall-print:nth-child(3) { --angle: 9deg; }
.section-head { text-align: center; margin: 0 auto 30px; }
.section-icon { display: inline-grid; place-items: center; width: 39px; height: 38px; font-size: 1.3rem; background: var(--lavender); border-radius: 12px; margin-bottom: 13px; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.3vw, 3.25rem); line-height: 1.13; letter-spacing: -.063em; font-weight: 850; }
.section-head p { margin: 11px auto 0; color: var(--muted); max-width: 590px; line-height: 1.55; }
.game { max-width: 620px; margin: 0 auto; border: 1px solid #ad8dcb; border-radius: 20px; padding: clamp(21px, 4.5vw, 36px); background: var(--white); box-shadow: 5px 6px 0 #e6d7f5; }
.progress-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; font-weight: 750; margin-bottom: 10px; }
.progress-track { display: flex; gap: 5px; margin-bottom: 24px; }
.progress-track span { flex: 1; height: 6px; border-radius: 5px; background: #eee5f7; }
.progress-track .active { background: #a16bdd; }
.progress-track .done { background: var(--purple); }
.question { border: 0; margin: 0; padding: 0; min-width: 0; }
.question legend { padding: 0; margin-bottom: 15px; font-size: clamp(1.23rem, 2.5vw, 1.62rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.3; }
.choice { display: flex; align-items: center; position: relative; gap: 10px; min-height: 47px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; padding: 8px 12px; cursor: pointer; }
.choice:hover, .choice:has(:checked) { background: #f0e5ff; border-color: #8d58bd; }
.choice:focus-within { outline: 2px solid #8144c4; outline-offset: 2px; }
.choice input { margin: 0 3px 0 0; accent-color: var(--purple); width: 20px; height: 20px; flex: none; }
.choice span { min-width: 0; overflow-wrap: anywhere; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.game-actions .button { min-height: 45px; }
button:disabled { opacity: .55; cursor: default; box-shadow: none; }
.secondary { background: var(--white); }
.result { text-align: center; padding: 12px 0 4px; }
.result p { margin: 12px auto; line-height: 1.55; max-width: 600px; }
.result .score { display: inline-block; font-size: 1.16rem; font-weight: 850; background: var(--lavender); border-radius: 25px; padding: 8px 16px; margin: 0 0 12px; }
.result .result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.ticket { width: fit-content; margin: 20px auto; padding: 14px 23px; background: var(--yellow); border: 1px dashed var(--ink); border-radius: 8px; }
.ticket strong { display: block; }
.bonus { margin: 24px auto 0; }
.bonus h4 { margin: 0 0 12px; font-size: 1.125rem; }
.bonus video {
  display: block;
  width: min(100%, 21rem, 39vh);
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
  background: var(--ink);
}
.bonus-fullscreen { min-height: 42px; margin-top: 12px; }
.bonus .bonus-status { margin: 8px auto 0; }
.bonus .bonus-status:empty { margin: 0; }
.bonus video:fullscreen { width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.footer { background: var(--paper); }
@media (max-width: 940px) {
  .wrap { width: calc(100% - 54px); }
  .hero-inner { min-height: 466px; }
  h1 { font-size: clamp(2.65rem, 6.2vw, 4.3rem); }
}
@media (max-width: 1220px) {
  .quiz-section { min-height: 0; padding: 40px 0 46px; gap: 39px; }
  .wall-cluster {
    position: relative;
    inset: auto;
    width: min(810px, calc(100% - 48px));
    margin-inline: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: clamp(15px, 4vw, 37px);
  }
  .wall-print img { height: clamp(110px, 17vw, var(--photo-height, 160px)); }
  .wall-cluster .wall-print:nth-child(even) { align-self: auto; margin-top: 25px; }
  .wall-cluster .wall-print:nth-child(odd) { align-self: auto; }
}
@media (max-width: 740px) {
  .wall-cluster { display: grid; grid-template-columns: repeat(2, max-content); gap: 24px 34px; }
  .wall-print img { height: clamp(92px, 32vw, var(--photo-height, 160px)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 34px); }
  .top-inner { min-height: 61px; }
  .wordmark { font-size: 1rem; gap: 6px; }
  .wordmark img { width: 24px; }
  nav a { font-size: .85rem; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; text-align: center; }
  .intro { padding: 44px 0 0; }
  h1 { font-size: clamp(2.45rem, 9.4vw, 4.25rem); }
  .intro p { margin: 22px auto 0; }
  .intro-actions { justify-content: center; margin-top: 21px; gap: 12px; }
  .collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 27px 18px;
    max-width: 480px;
    aspect-ratio: auto;
    margin: 8px auto 0;
    padding: 30px 12px 40px;
  }
  .collage .photo-print { position: relative; inset: auto; width: 94%; }
  .collage .shot-left { grid-area: 1 / 1; }
  .collage .shot-main { grid-area: 1 / 2; }
  .collage .shot-low { grid-area: 2 / 1; }
  .collage .shot-right { grid-area: 2 / 2; }
  .spark-left { bottom: 3%; left: 37%; }
  .sticker { right: 9%; bottom: 0; pointer-events: none; }
  .ribbon-inner { gap: 7px; letter-spacing: .04em; font-size: .69rem; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.game { scroll-margin-top: 19px; }
.game-actions [type="submit"] { margin-left: auto; }
.result h3 { margin: 0; font-size: clamp(1.65rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -.05em; }
@media (max-width: 355px) {
  .top-inner { gap: 12px; }
  nav { gap: 10px; }
  nav a { font-size: .78rem; }
}
