:root {
  --ink: #111111;
  --paper: #fffdf5;
  --yellow: #f7ff00;
  --pink: #ff4fd8;
  --blue: #00d9ff;
  --red: #ff3d24;
  --green: #33ef98;
  --shadow: 8px 8px 0 var(--ink);
  --border: 4px solid var(--ink);
  --radius: 0.3rem;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.skip-link:focus { transform: none; }

.topbar {
  min-height: 72px;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 3rem);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.logo {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  transform: rotate(-5deg);
  font-weight: 1000;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.mini-link {
  color: inherit;
  text-decoration: none;
  font-weight: 1000;
  text-transform: uppercase;
  border-bottom: 3px solid var(--ink);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  border-bottom: var(--border);
}

.portrait-panel {
  min-width: 0;
  background: var(--blue);
  border-right: var(--border);
  padding: clamp(1.2rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portrait-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  pointer-events: none;
  background-image: radial-gradient(var(--ink) 1.2px, transparent 1.2px);
  background-size: 13px 13px;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  border: var(--border);
  background: var(--paper);
  padding: clamp(0.65rem, 1.3vw, 1rem);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1.4deg);
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.05);
  border: 3px solid var(--ink);
}

.sticker {
  position: absolute;
  z-index: 2;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.45rem 0.65rem;
  font-weight: 1000;
  line-height: 0.9;
  text-align: center;
}

.sticker-crown {
  top: -1.4rem;
  left: 50%;
  background: var(--yellow);
  font-size: clamp(1rem, 2.3vw, 1.6rem);
  transform: translateX(-50%) rotate(3deg);
  clip-path: polygon(0 20%, 18% 38%, 31% 0, 49% 38%, 68% 0, 82% 38%, 100% 20%, 91% 100%, 9% 100%);
  padding-top: 1.1rem;
}

.sticker-spain { left: -1.7rem; bottom: 11%; background: var(--yellow); transform: rotate(-8deg); }
.sticker-seo { right: -1.6rem; top: 14%; background: var(--pink); transform: rotate(8deg); }

.photo-caption {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 1.4rem auto 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-caption span { background: var(--ink); color: white; padding: 0.2rem 0.45rem; }

.game-panel {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 5rem);
  background: var(--pink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-panel::after {
  content: "18+";
  position: absolute;
  right: -0.05em;
  top: -0.27em;
  font-size: clamp(9rem, 24vw, 26rem);
  line-height: 1;
  font-weight: 1000;
  color: rgba(255, 255, 255, 0.13);
  transform: rotate(6deg);
  pointer-events: none;
}

.eyebrow {
  align-self: flex-start;
  position: relative;
  z-index: 1;
  padding: 0.38rem 0.75rem;
  background: var(--ink);
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-1deg);
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0.6rem;
  font-size: clamp(3rem, 6.2vw, 7.2rem);
  line-height: 0.78;
  letter-spacing: -0.075em;
  font-weight: 1000;
  text-transform: uppercase;
}

h1 span {
  color: var(--yellow);
  -webkit-text-stroke: clamp(1.5px, 0.13vw, 3px) var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
}

.intro {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: 0.6rem 0 1.25rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 750;
}

.game-card {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.5rem);
  min-height: 340px;
}

.game-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.step-label {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.game-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.back-button {
  min-height: 44px;
  border: 2px solid var(--ink);
  background: white;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.back-button:hover { background: var(--yellow); }
.back-button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.6; }

.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 0.9rem 0; }
.progress-part { height: 8px; border: 2px solid var(--ink); background: white; }
.progress-part.is-active { background: var(--ink); }

.game-hint { margin: 0 0 0.85rem; font-weight: 700; color: #353535; }

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.option-button {
  min-height: 78px;
  border: 3px solid var(--ink);
  background: white;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.option-button:hover {
  background: var(--yellow);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.option-button:active { transform: translate(1px, 1px); box-shadow: none; }

.option-index {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 1000;
}

.option-copy { min-width: 0; }
.option-title { display: block; font-weight: 1000; line-height: 1.1; text-transform: uppercase; }
.option-sub { display: block; margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.25; font-weight: 650; color: #383838; }

.result-card { border: 3px solid var(--ink); background: var(--yellow); padding: 1rem; }
.result-stamp { display: inline-block; padding: 0.25rem 0.5rem; background: var(--ink); color: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; transform: rotate(-1deg); }
.result-card h3 { margin: 0.8rem 0 0.4rem; font-size: clamp(1.7rem, 3.3vw, 3rem); line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase; }
.result-card p { margin: 0 0 1rem; max-width: 58ch; font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.action-button, .cta-button {
  min-height: 48px;
  border: 3px solid var(--ink);
  padding: 0.72rem 1rem;
  background: var(--pink);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.action-button.secondary { background: white; }
.action-button:hover, .cta-button:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.ticker { overflow: hidden; background: var(--yellow); border-bottom: var(--border); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 1.2rem; padding: 0.65rem 0; font-weight: 1000; font-size: clamp(1.1rem, 2vw, 1.75rem); animation: ticker 22s linear infinite; }
.ticker-track i { font-style: normal; }

@keyframes ticker { to { transform: translateX(-50%); } }

.about {
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 5rem);
  background: var(--ink);
  color: white;
}

.section-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.1em; color: var(--yellow); }
.about h2 { margin: 0.6rem 0 0; font-size: clamp(3rem, 6vw, 7rem); line-height: 0.82; letter-spacing: -0.07em; }
.about h2 em { color: var(--pink); font-style: normal; }

.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.4rem); }
.fact-card { color: var(--ink); border: var(--border); padding: clamp(1rem, 2.5vw, 1.8rem); box-shadow: 7px 7px 0 white; min-height: 250px; transition: transform 180ms ease; }
.fact-card:nth-child(even) { transform: translateY(1.1rem) rotate(0.5deg); }
.fact-card:nth-child(odd) { transform: rotate(-0.5deg); }
.fact-card:hover { transform: translateY(-4px) rotate(0); }
.fact-yellow { background: var(--yellow); }
.fact-blue { background: var(--blue); }
.fact-pink { background: var(--pink); }
.fact-white { background: white; }
.fact-index { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 900; }
.fact-card h3 { margin: 1rem 0 0.7rem; font-size: clamp(1.65rem, 3vw, 3rem); line-height: 0.88; letter-spacing: -0.05em; }
.fact-card p { margin: 0; font-weight: 700; }

.wish {
  padding: clamp(4rem, 9vw, 9rem) clamp(1rem, 10vw, 11rem);
  background: var(--blue);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wish::before, .wish::after { content: "★"; position: absolute; color: var(--yellow); -webkit-text-stroke: 3px var(--ink); font-size: clamp(5rem, 13vw, 12rem); line-height: 1; transform: rotate(-12deg); }
.wish::before { top: 4%; left: 2%; }
.wish::after { bottom: 1%; right: 2%; transform: rotate(13deg); }
.wish-label { position: relative; z-index: 1; display: inline-block; background: var(--ink); color: white; padding: 0.4rem 0.7rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 900; font-size: 0.78rem; transform: rotate(-1deg); }
.wish h2 { position: relative; z-index: 1; margin: 1rem auto 1.5rem; font-size: clamp(3rem, 7.8vw, 8.2rem); line-height: 0.82; letter-spacing: -0.07em; }
.wish h2 span { color: var(--yellow); text-shadow: 5px 5px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); }
.wish p { position: relative; z-index: 1; max-width: 760px; margin: 0 auto 1rem; font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 800; }
.wish .wish-small { max-width: 650px; font-size: 1rem; }
.cta-button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; background: var(--pink); }

footer { min-height: 76px; padding: 1rem clamp(1rem, 3vw, 3rem); background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; }

.footer-signature {
  padding: 0.55rem 0.8rem;
  border: 2px solid white;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--pink);
  font-size: 0.8rem;
  text-align: center;
  transform: rotate(-1deg);
}

.toast { position: fixed; z-index: 100; left: 50%; bottom: 1.4rem; transform: translate(-50%, 150%); background: var(--ink); color: white; border: 3px solid white; box-shadow: 5px 5px 0 var(--pink); padding: 0.8rem 1rem; font-weight: 900; transition: transform 220ms ease; }
.toast.is-visible { transform: translate(-50%, 0); }

.confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 90; }
.confetti { position: absolute; top: -30px; width: 12px; height: 18px; border: 2px solid var(--ink); animation: fall var(--duration) linear forwards; transform: translateX(0) rotate(0deg); }

@keyframes fall { to { transform: translate(var(--drift), 110vh) rotate(720deg); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .game-panel { order: 1; min-height: auto; padding-top: 2rem; padding-bottom: 3.2rem; }
  .portrait-panel { order: 2; border-right: 0; border-top: var(--border); min-height: auto; padding-top: 3rem; padding-bottom: 2.5rem; }
  h1 { font-size: clamp(3.6rem, 12vw, 7.4rem); }
  .about { grid-template-columns: 1fr; }
  .about-title-block { max-width: 620px; }
}

@media (max-width: 640px) {
  .topbar { min-height: 62px; }
  .logo span:last-child, .mini-link { display: none; }
  .status { font-size: 0.66rem; margin-left: auto; }
  .hero { min-height: 0; }
  .game-panel { padding: 1.4rem 1rem 2.4rem; }
  h1 { font-size: clamp(3.05rem, 16vw, 5rem); }
  .intro { font-size: 0.98rem; }
  .game-card { padding: 0.9rem; box-shadow: 5px 5px 0 var(--ink); }
  .game-card-head { align-items: center; }
  .options { grid-template-columns: 1fr; }
  .option-button { min-height: 68px; }
  .portrait-panel { padding-left: 1rem; padding-right: 1rem; }
  .portrait-frame { margin-left: 0.8rem; margin-right: 0.8rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact-card, .fact-card:nth-child(even), .fact-card:nth-child(odd) { min-height: 0; transform: none; }
  .wish { padding-left: 1rem; padding-right: 1rem; }
  .wish h2 { font-size: clamp(2.8rem, 14vw, 5rem); }
  .wish::before, .wish::after { opacity: 0.55; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
