:root {
  --plum: #280f1a;
  --plum-2: #3a1a2c;
  --indigo: #3a2a66;
  --indigo-edge: #7a6bd0;
  --cream: #fff4e6;
  --muted: #cfc4e4;
  --coral: #ff6b4a;
  --gold: #ffd27a;
  --scene: #280f1a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plum);
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; z-index: 0; opacity: .5; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* hero */
.hero-art { margin: 0 auto 8px; width: 100%; max-width: 480px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 80%; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 14px; font-weight: 700; color: var(--gold); }
h1 { font-size: clamp(32px, 9vw, 48px); font-weight: 800; }
.sub { color: var(--muted); font-size: 19px; margin: 10px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--indigo-edge); border-radius: 99px; padding: 4px 12px; font-size: 14px; color: var(--muted); }

/* buttons */
.btn {
  display: inline-block; background: var(--coral); color: var(--plum);
  font: inherit; font-weight: 800; font-size: 19px; text-decoration: none;
  border: 0; border-radius: 14px; padding: 16px 28px; cursor: pointer; min-height: 56px;
}
.btn.ghost { background: transparent; color: var(--cream); border: 2px solid var(--indigo-edge); }
.btn.block { display: block; width: 100%; text-align: center; }

/* quiz */
[hidden] { display: none !important; }
.step { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.q { font-size: clamp(26px, 7vw, 34px); font-weight: 800; margin: 10px 0 24px; }
.answers { display: grid; gap: 16px; }
.answer {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 19px; font-weight: 700;
  color: var(--cream); background: var(--indigo); border: 2px solid var(--indigo-edge);
  border-radius: 16px; padding: 22px 20px; min-height: 96px; cursor: pointer; text-transform: uppercase; letter-spacing: .02em;
}
.answer:hover, .answer:active { background: #4a3a80; border-color: var(--gold); }
.back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 16px; text-decoration: underline; padding: 14px 0; margin-top: 12px; cursor: pointer; }

/* result */
.scene { background: var(--scene); border-radius: 0 0 28px 28px; overflow: hidden; }
.scene img { margin: 0 auto; width: 100%; max-width: 640px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.res-name { font-size: clamp(40px, 12vw, 64px); font-weight: 800; margin: 6px 0 4px; }
.res-tag { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); margin: 0 0 18px; }
.quote { font-size: 24px; font-weight: 800; border-left: 4px solid var(--coral); padding-left: 16px; margin: 24px 0; }
.ingame { background: var(--plum-2); border: 1px solid var(--indigo-edge); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.ingame h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.ingame p { margin: 0 0 10px; }
.vp { display: inline-block; background: var(--gold); color: var(--plum); font-weight: 800; border-radius: 8px; padding: 2px 10px; font-size: 15px; }

.share h2, .more h2, .about h2 { font-size: 22px; margin: 34px 0 12px; }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.share-grid .btn { font-size: 16px; padding: 12px 10px; min-height: 48px; text-align: center; }
.share-img { border-radius: 14px; max-width: 280px; margin: 0 0 14px; border: 1px solid var(--indigo-edge); }
.more ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more a { display: block; text-decoration: none; color: var(--cream); font-weight: 700; font-size: 15px; text-align: center; }
.more .thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 6px; background: var(--indigo); }
.more .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

.about p { color: var(--muted); }
.about .board { border-radius: 12px; margin: 18px 0; }

footer { padding: 36px 0 60px; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: var(--muted); }
.space { height: 28px; }

@media (min-width: 640px) {
  .answers { grid-template-columns: 1fr 1fr; }
  .share-grid { grid-template-columns: repeat(4, 1fr); }
}

.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.topbar img { height: 30px; width: auto; }
.lang { color: var(--muted); font-size: 15px; text-decoration: none; border: 1px solid var(--indigo-edge); border-radius: 99px; padding: 6px 14px; }
.foot-logo { height: 28px; width: auto; margin: 0 auto 12px; }
