:root {
  --night: #15112e;
  --panel: #201a45;
  --field: #2b2459;
  --text: #f1ecff;
  --soft: #a79fd0;
  --sun: #ffd23f;
  --mint: #3ee6c1;
  --pink: #ff4f81;
  --line: rgba(241, 236, 255, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: var(--night);
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.wrap { width: 100%; max-width: 520px; }

.title {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--sun);
}
.title--small { font-size: 30px; margin-top: 18px; }

.lead { margin: 0 0 24px; color: var(--soft); line-height: 1.55; }

/* --- Formulario --- */
.panel {
  background: var(--panel);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.thanks { align-items: flex-start; }
.panel__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--line);
  font-weight: 600;
}
.tag {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--night);
  background: var(--sun);
  padding: 6px 8px;
  border-radius: 4px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }

input[type="email"], textarea, select {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--field);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: rgba(241, 236, 255, 0.4); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--mint); }

.char-count { align-self: flex-end; font-size: 12px; color: var(--soft); }

.upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload input[type="file"] {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.upload__button {
  font-weight: 600;
  font-size: 14px;
  border: 1.5px dashed var(--soft);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
.upload__button:hover { border-color: var(--mint); color: var(--mint); }
.upload input[type="file"]:focus-visible + .upload__button { outline: 2px solid var(--mint); outline-offset: 2px; }
.upload__filename { font-size: 13px; color: var(--soft); }
.upload__preview {
  max-width: 100%; max-height: 160px; border-radius: 8px;
  border: 1.5px solid var(--line); object-fit: cover;
}

.send {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--night);
  background: var(--pink);
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  box-shadow: 0 5px 0 #b82f58;
  transition: transform 0.1s, box-shadow 0.1s;
}
.send:active { transform: translateY(4px); box-shadow: 0 1px 0 #b82f58; }
.send:disabled { opacity: 0.6; cursor: default; }
.send:focus-visible, .ghost:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.error-state { margin: 0; font-size: 13px; color: var(--pink); }

.ghost {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border: 1.5px solid var(--text);
  border-radius: 8px;
  padding: 10px 18px;
  text-decoration: none;
}
.ghost:hover { background: var(--text); color: var(--night); }

.footnote { text-align: center; margin-top: 20px; font-size: 12px; color: var(--soft); }

@media (max-width: 420px) {
  .title { font-size: 26px; }
  .panel { padding: 18px; }
}

/* --- Página de política de privacidad --- */
.wrap--doc { max-width: 720px; }
.back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--mint);
  font-weight: 600;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }
.meta { margin: 0 0 24px; color: var(--soft); font-size: 14px; }
.doc { gap: 0; padding: 32px; line-height: 1.7; font-size: 15px; }
.doc p { margin: 0 0 14px; }
.doc h2 { font-size: 20px; font-weight: 800; color: var(--sun); margin: 28px 0 10px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--mint); }
.doc a { color: var(--mint); }
.doc > :first-child { margin-top: 0; }
@media (max-width: 420px) { .doc { padding: 20px; } }

.foot-link { color: var(--mint); }

/* --- Página principal --- */
.wrap--home { max-width: 960px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.nav__links { display: flex; gap: 20px; }
.nav__links a { color: var(--soft); font-weight: 600; text-decoration: none; }
.nav__links a:hover { color: var(--mint); }
.nav a:focus-visible, .play:focus-visible, .home-link:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.hero { margin-bottom: 40px; }
.hero__text { max-width: 52ch; margin: 0; color: var(--soft); font-size: 18px; line-height: 1.6; }


.game { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: center; background: var(--panel); border-radius: 10px; padding: 28px; margin-bottom: 20px; }
.game__banner { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.game__logo { width: 132px; height: 132px; border-radius: 28px; background: var(--field); object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 56px; color: var(--sun); }
.game__name { font-weight: 800; font-size: 28px; margin: 0 0 8px; }
.game__text { margin: 0 0 18px; color: var(--soft); line-height: 1.55; max-width: 56ch; }
.play { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--night); background: var(--mint); border-radius: 8px; padding: 14px 22px; text-decoration: none; box-shadow: 0 5px 0 #25a88c; transition: transform .1s, box-shadow .1s; }
.play:active { transform: translateY(4px); box-shadow: 0 1px 0 #25a88c; }
.play__icon { width: 20px; height: 22px; flex: none; }

.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help__item { background: var(--panel); border-radius: 10px; padding: 20px 22px; text-decoration: none; color: var(--text); display: block; }
.help__item:hover { background: var(--field); }
.help__item strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--mint); }
.help__item span { font-size: 14px; color: var(--soft); line-height: 1.5; }

@media (max-width: 640px) {
  .game { grid-template-columns: 1fr; padding: 20px; }
  .game__logo { width: 96px; height: 96px; font-size: 40px; border-radius: 22px; }
  .help { grid-template-columns: 1fr; }
  .nav { margin-bottom: 36px; }
}

/* --- Cursor personalizado y efecto de toque --- */
* { cursor: url("cursor.png") 16 16, auto; }
input[type="email"], textarea { cursor: url("cursor.png") 16 16, text; }

.tap-fx {
  position: fixed;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  pointer-events: none;
  z-index: 9999;
  animation: tap-pop 0.55s ease-out forwards;
}
.tap-fx--still { animation-name: tap-fade; }
@keyframes tap-pop {
  0%   { transform: scale(0.4); opacity: 1; }
  40%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes tap-fade { 0% { opacity: 1; } 100% { opacity: 0; } }

/* --- Carrusel de personajes --- */
.cast { margin-bottom: 20px; }
.cast__title { font-size: 20px; font-weight: 800; color: var(--sun); margin: 0 0 12px; }
.cast__wrap { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cast__track { list-style: none; margin: 0; padding: 4px 8px 14px; display: flex; gap: 16px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--field) transparent; overscroll-behavior-x: contain; }
.cast__track.is-dragging { user-select: none; }
.cast__track:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.char { flex: 0 0 auto; width: 140px; background: var(--panel); border-radius: 10px; padding: 14px 10px 12px; text-align: center; }
.char img { display: block; width: 112px; height: 112px; margin: 0 auto 8px; pointer-events: none; -webkit-user-drag: none; }
.char span { font-weight: 700; font-size: 15px; }
