/* =====================================================================
   Web de Arky con el tema «Moderno» de la app: metal oscuro con filo dorado.
   Los colores y las piezas salen de app/src/skins/moderno.css y app/src/skins/wow.css
   (marco con anillo, estandarte del título, botones rojos con texto dorado, huecos de icono).
   Las ventanas de la app que se ven en la página son la interfaz real congelada (web/app/*.html).
   ===================================================================== */

:root {
  --bg: #0e0d0b;
  --bg-2: #0a0908;
  --surface: #17150f;
  --surface-2: #211d15;
  --surface-3: #2c271c;
  --border: #2f291e;
  --border-2: #4d4029;
  --text: #efe6d2;
  --muted: #b2a689;
  --faint: #7d735e;
  --ring: linear-gradient(180deg, #5a4d3a 0%, #2a241d 30%, #14110e 62%, #30291f 100%);
  --trim: rgba(214, 172, 82, 0.6);
  --title-face: linear-gradient(180deg, #24201a 0%, #0c0b09 100%);
  --frame-tex:
    radial-gradient(120% 50% at 50% 0%, rgba(120, 92, 40, 0.16), transparent 60%),
    linear-gradient(180deg, #10100e, #060607);
  --btn-face: radial-gradient(130% 110% at 50% 8%, #8e1208 0%, #560503 40%, #2a0100 80%, #170000 100%);
  --btn-face-down: radial-gradient(130% 110% at 50% 92%, #6a0602 0%, #380100 55%, #140000 100%);
  --btn-ring: #b48b3a;
  --btn-rim: rgba(255, 214, 150, 0.28);
  --sq-ring: #7d6531;
  --inset-ring: #4e4128;
  --field-ring: #6b5a34;
  --sep: #8a6d2f;
  --chip-ring: #3a3226;
  --card-hi: #1a1712;
  --card-lo: #0d0c0a;
  --accent: #e9bd50;
  --accent-rgb: 233, 189, 80;
  --accent-hi: #f0cd6a;
  --gold: #ffd100;
  --gold-hi: #fff1a6;
  --ok: #1eff00;
  --tip-bg: rgba(9, 9, 25, 0.95);
  --tip-ring: #b9b9c6;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .075 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --f-ui: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --f-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, sans-serif;
  --mono: Consolas, 'SFMono-Regular', Menlo, monospace;
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
  color-scheme: dark;
  scrollbar-color: var(--field-ring) transparent;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--noise), var(--bg-2);
  color: var(--text);
  font: 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent-hi);
  text-decoration: none;
}

a:hover {
  color: var(--gold-hi);
}

b,
strong {
  color: #fff;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 4px;
  background: #000;
  color: var(--gold);
}

.skip:focus {
  top: 12px;
}

.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Teclas (como las de la app) ---------- */

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 2px 7px;
  font: 600 0.8em/1.4 var(--f-body);
  text-align: center;
  color: var(--gold);
  border-radius: 4px;
  background: linear-gradient(180deg, #2e2e2e, #111);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px var(--sq-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin: 0 3px;
  vertical-align: 0.06em;
}

code {
  font: 0.9em var(--mono);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 1px 5px;
}

/* ---------- Piezas del tema ---------- */

/* Marco de las ventanas: anillo de metal (máscara: solo el borde), línea negra y filo dorado (.app de wow.css) */
.frame {
  position: relative;
  isolation: isolate;
  border-radius: 10px;
  background: var(--noise), var(--frame-tex);
  border: 1px solid #000;
}

.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  padding: 4px;
  border-radius: inherit;
  background: var(--noise), var(--ring);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: 3;
  pointer-events: none;
  border-radius: 6px;
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px var(--trim);
}

/* Estandarte del título (.chat-title de wow.css) */
.banner {
  position: relative;
  isolation: isolate;
  display: inline-block;
  height: 30px;
  padding: 0 22px;
  font: 400 15px/30px var(--f-ui);
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: var(--gold);
  text-shadow:
    0 1px 0 #000,
    0 0 6px #000;
  border-radius: 4px;
  background: var(--noise), var(--ring);
  box-shadow:
    0 0 0 1px #000,
    0 2px 4px rgba(0, 0, 0, 0.6);
}

.banner::before {
  content: '';
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 2px;
  background: var(--title-face);
  box-shadow: 0 0 0 1px #000;
}

.banner.new::after {
  content: attr(data-new);
  margin-left: 10px;
  padding: 1px 6px;
  font: 700 10.5px/1.4 var(--f-body);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  vertical-align: 2px;
  color: #fff1c4;
  border-radius: 3px;
  background: radial-gradient(circle at 45% 32%, #d93b2a, #8b1008 58%, #4a0503);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px #a8873a;
  text-shadow: 0 1px 0 #000;
}

/* Línea entre zonas: la de la app (transparente, dorado oscuro, transparente) con la estrella de Arky */
.sep {
  position: relative;
  height: 1px;
  margin: 0 auto;
  width: min(var(--wrap), 100% - 40px);
  background: linear-gradient(
    90deg,
    transparent,
    var(--sep) 30%,
    var(--sep) calc(50% - 20px),
    transparent calc(50% - 20px),
    transparent calc(50% + 20px),
    var(--sep) calc(50% + 20px),
    var(--sep) 70%,
    transparent
  );
}

.sep::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 13px;
  height: 13px;
  translate: -50% -50%;
  background: var(--accent-hi);
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.8));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1.8c.7 5.2 2.9 8.3 8.2 9.2-5.3.9-7.5 4-8.2 9.2-.7-5.2-2.9-8.3-8.2-9.2C9.1 10.1 11.3 7 12 1.8Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1.8c.7 5.2 2.9 8.3 8.2 9.2-5.3.9-7.5 4-8.2 9.2-.7-5.2-2.9-8.3-8.2-9.2C9.1 10.1 11.3 7 12 1.8Z'/></svg>") center / contain no-repeat;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  font: 400 16px/1 var(--f-ui);
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: var(--gold);
  border: 1px solid #000;
  border-radius: 4px;
  cursor: pointer;
  text-shadow:
    0 1px 1px #000,
    0 0 2px #000;
  background: linear-gradient(180deg, #2e2e2e, #111);
  box-shadow:
    0 0 0 1px var(--sq-ring),
    0 0 0 2px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 3px 4px rgba(0, 0, 0, 0.55);
  transition:
    filter 0.15s,
    box-shadow 0.2s,
    color 0.15s;
}

.btn:hover {
  color: var(--gold-hi);
  box-shadow:
    0 0 0 1px var(--sq-ring),
    0 0 0 2px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 12px rgba(255, 209, 0, 0.3),
    0 3px 4px rgba(0, 0, 0, 0.55);
}

/* El rojo de los botones del juego (.btn-primary de wow.css) */
.btn.primary {
  background: var(--btn-face);
  box-shadow:
    0 0 0 1px var(--btn-ring),
    0 0 0 2px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 var(--btn-rim),
    inset 0 -3px 5px rgba(0, 0, 0, 0.45),
    0 3px 4px rgba(0, 0, 0, 0.55);
}

.btn.primary:hover {
  filter: brightness(1.2);
}

.btn.primary:active {
  background: var(--btn-face-down);
}

.btn small {
  font: 600 11px/1 var(--f-body);
  letter-spacing: 0.3px;
  color: rgba(255, 241, 166, 0.75);
}

.btn.sm {
  height: 34px;
  padding: 0 14px;
  font-size: 14.5px;
}

/* Cuadrado de herramienta (.ib de la barra superior) */
.sq {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  color: var(--gold);
  background: linear-gradient(180deg, #2e2e2e, #111);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px var(--sq-ring),
    0 0 0 3px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s;
}

.sq:hover {
  color: var(--gold-hi);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px var(--sq-ring),
    0 0 0 3px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 9px rgba(255, 209, 0, 0.38);
}

/* ---------- Barra de arriba ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--noise), linear-gradient(180deg, rgba(16, 16, 14, 0.96), rgba(6, 6, 7, 0.94));
  backdrop-filter: blur(8px);
}

.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sep) 20%, var(--sep) 80%, transparent);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font: 400 19px/1 var(--f-ui);
  text-shadow: 0 1px 0 #000;
}

.brand:hover {
  color: var(--gold-hi);
}

/* El icono: el botón flotante de la app en modo «Solo botón» (el aro con la estrella dorada) */
.brand .pal {
  flex: none;
  zoom: 0.62;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav-links a {
  padding: 6px 11px;
  border-radius: 3px;
  font: 400 15px/1 var(--f-ui);
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--gold);
  background: linear-gradient(90deg, rgba(255, 209, 0, 0.02), rgba(255, 209, 0, 0.12), rgba(255, 209, 0, 0.02));
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #151515, #060606);
  box-shadow:
    0 0 0 1px var(--field-ring),
    inset 0 1px 3px #000;
}

.lang a {
  padding: 4px 9px;
  border-radius: 3px;
  font: 600 12px/1 var(--f-body);
  color: #8c8270;
}

.lang a[aria-current] {
  color: var(--gold);
  background: var(--btn-face);
  box-shadow:
    0 0 0 1px #000,
    inset 0 1px 0 var(--btn-rim);
  text-shadow: 0 1px 1px #000;
}

/* ---------- Inicio ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: 72px 0 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--noise),
    radial-gradient(70% 55% at 50% 22%, rgba(7, 6, 5, 0.62), rgba(7, 6, 5, 0.3) 70%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.35) 0%, rgba(7, 6, 5, 0.1) 30%, rgba(7, 6, 5, 0.55) 62%, var(--bg-2) 92%);
}

.hero-text {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}

.hero-text .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-text .ctas,
.hero-text .fine {
  justify-content: center;
}

/* Sin párrafo entre el título y los botones */
.hero-text h1 + .ctas {
  margin-top: 34px;
}

.eyebrow {
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  font-family: var(--f-ui);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.2px;
  color: #f7eed8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow:
    0 1px 0 #000,
    0 0 24px rgba(255, 209, 0, 0.25);
}

.lead {
  margin: 22px 0 30px;
  max-width: 640px;
  font-size: 18.5px;
  line-height: 1.6;
  color: #e4d9bf;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

.fine span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fine .i {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

.hero-shot {
  position: relative;
}

.hero-shot .shot {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.hero-note {
  margin: 16px 4px 0;
  font-size: 13.5px;
  color: var(--faint);
  text-align: center;
}

/* ---------- Vistas de la app (interfaz real congelada en un iframe, a escala) ---------- */

.shot {
  --s: 0.5;
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  overflow: clip;
  background: #060607;
}

.shot-view {
  position: relative;
  overflow: hidden;
  overflow: clip;
  aspect-ratio: var(--cw) / var(--ch);
  border-radius: inherit;
}

.shot iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--s)) translate(calc(var(--cx) * -1px), calc(var(--cy) * -1px));
  pointer-events: none;
  background: #060607;
}

.shot.framed {
  overflow: visible;
}

.shot.framed .shot-view {
  border-radius: 10px;
}

.shot.framed::after,
.shot.framed::before {
  border-radius: 10px;
}

/* ---------- Secciones ---------- */

section {
  padding: 96px 0;
}

.sec-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.sec-head h2 {
  margin: 18px 0 14px;
}

h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
  color: var(--gold);
  text-shadow:
    0 1px 0 #000,
    0 0 18px rgba(0, 0, 0, 0.6);
}

h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: var(--gold);
  text-shadow: 0 1px 0 #000;
}

.sec-head p,
.f-text p {
  margin: 0;
  color: #d9cfb6;
  font-size: 17px;
}

/* ---------- Junto al juego: la estrella de la esquina ---------- */

.ingame {
  position: relative;
}

.stage {
  position: relative;
  aspect-ratio: 1919 / 1079;
  border-radius: 10px;
  overflow: hidden;
  overflow: clip;
  background: #000;
}

.stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* La ventana de Arky encima del juego, como al pulsar Alt+Q */
.stage-app {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition:
    opacity 0.35s var(--out),
    transform 0.45s var(--out),
    visibility 0s 0.35s;
}

.stage.open .stage-app {
  opacity: 0.94;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.35s var(--out),
    transform 0.45s var(--out),
    visibility 0s;
}

.stage-app .shot {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.stage-app .shot-view {
  height: 100%;
  aspect-ratio: auto;
}

/* El botón de Arky de la captura (abajo a la izquierda): un aro que late encima y un clic abre la app */
.star-hit {
  position: absolute;
  left: 2.14%;
  top: 91.65%;
  z-index: 4;
  width: 4.2%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: none;
}

.star-hit::before,
.star-hit::after {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(255, 209, 0, 0.7);
  animation: ring-pulse 2.2s ease-out infinite;
}

.star-hit::after {
  animation-delay: 1.1s;
}

.stage.open .star-hit::before,
.stage.open .star-hit::after {
  animation: none;
  opacity: 0;
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.95;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* Bocadillo que señala la estrella (el tooltip del juego: azul marino con borde plateado) */
.callout {
  position: absolute;
  left: 5.2%;
  bottom: 5.5%;
  z-index: 4;
  max-width: 290px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  border-radius: 5px;
  border: 1px solid var(--tip-ring);
  background: var(--tip-bg);
  box-shadow:
    0 0 0 1px #000,
    inset 0 0 0 1px #000,
    inset 0 0 0 2px rgba(150, 150, 175, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.6);
  transition:
    opacity 0.25s,
    transform 0.3s var(--out);
}

.callout b {
  display: block;
  margin-bottom: 2px;
  font: 400 15px/1.3 var(--f-ui);
  color: var(--gold);
}

.callout .hint {
  display: block;
  margin-top: 6px;
  color: #1eff00;
}

.stage.open .callout {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.stage-close {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Solo mientras carga: luego la app tiene su propia X (y Esc), que también la cierran */
.stage.open:not(.ready) .stage-close {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- La demo: la app de verdad (web/demo) dentro de la escena ---------- */

.hero .stage {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

/* Con la app abierta, la estrella se va (la app la tapa) */
.stage.open .star-hit {
  visibility: hidden;
}

.shot.live iframe {
  pointer-events: auto;
}

.stage-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  font: 400 17px/1 var(--f-ui);
  color: var(--gold);
  background: var(--noise), var(--frame-tex);
  transition: opacity 0.35s var(--out);
}

.stage-loading .pal {
  zoom: 1.4;
}

.stage.ready .stage-loading {
  opacity: 0;
  pointer-events: none;
}

/* En pantallas estrechas la demo se abre a pantalla completa y sin escalar: la app se adapta sola */
.stage.full {
  z-index: 300;
}

.stage.full .stage-app {
  position: fixed;
  inset: 0;
  transform: none;
}

.stage.full .stage-app .shot iframe {
  width: 100%;
  height: 100%;
  transform: none;
}

.stage.full .stage-close {
  position: fixed;
  right: 12px;
  bottom: 12px;
}

html.demo-full {
  overflow: hidden;
}

/* El inicio lleva su propio apilamiento (isolation): para que la demo tape la barra de arriba, sube entero */
html.demo-full .hero {
  z-index: 400;
}

.stage.full.open .stage-app {
  opacity: 1;
  transition: none;
}

/* Qué probar en la demo */
.demo-tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.demo-tips li {
  padding: 7px 13px;
  font-size: 14px;
  color: #d9cfb6;
  border-radius: 4px;
  border: 1px solid #000;
  background: linear-gradient(180deg, var(--card-hi), var(--card-lo));
  box-shadow: 0 0 0 1px var(--chip-ring);
}

.demo-tips li b {
  color: var(--gold);
  font-weight: 400;
  font-family: var(--f-ui);
}

.ingame-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
  text-align: left;
}

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.note p {
  margin: 0;
  font-size: 15px;
  color: #d4c9ae;
}

.note b {
  display: block;
  margin-bottom: 2px;
  font: 400 17px/1.3 var(--f-ui);
  color: var(--gold);
}

/* ---------- Principiantes: tarjetas de pregunta (.sugg-card de la app) ---------- */

.topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--card-hi), var(--card-lo));
  border: 1px solid #000;
  box-shadow: 0 0 0 1px var(--chip-ring);
  transition:
    box-shadow 0.2s,
    background 0.2s;
}

.topic:hover {
  background:
    linear-gradient(90deg, rgba(255, 209, 0, 0.04), rgba(255, 209, 0, 0.14) 50%, rgba(255, 209, 0, 0.04)),
    var(--card-lo);
  box-shadow:
    0 0 0 1px var(--sq-ring),
    0 0 10px rgba(255, 209, 0, 0.15);
}

.topic h3 {
  font-size: 16.5px;
  line-height: 1.2;
}

.topic p {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #d4c9ae;
}

/* Icono de WoW en su hueco (los .rbtn .ico de la barra derecha) */
.ico {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #0a0a0a);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px #3f3f3f,
    0 0 0 3px rgba(0, 0, 0, 0.8);
}

.ico img {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.08);
}

.ico.err img {
  display: none;
}

.ico.err::after {
  content: '?';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 22px/1 var(--f-ui);
  color: var(--gold);
}

.topic:hover .ico {
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px var(--gold),
    0 0 0 3px #000,
    0 0 14px rgba(255, 209, 0, 0.6);
}

.topics-more {
  margin: 30px auto 0;
  max-width: 700px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Funciones ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 110px;
}

.feature:last-of-type {
  margin-bottom: 0;
}

.feature.flip .f-text {
  order: 2;
}

.f-text h3 {
  margin: 18px 0 14px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
}

.f-text > p + p {
  margin-top: 12px;
}

.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  color: #d9cfb6;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 13px;
  height: 13px;
  background: var(--accent-hi);
  filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), 0.8));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1.8c.7 5.2 2.9 8.3 8.2 9.2-5.3.9-7.5 4-8.2 9.2-.7-5.2-2.9-8.3-8.2-9.2C9.1 10.1 11.3 7 12 1.8Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1.8c.7 5.2 2.9 8.3 8.2 9.2-5.3.9-7.5 4-8.2 9.2-.7-5.2-2.9-8.3-8.2-9.2C9.1 10.1 11.3 7 12 1.8Z'/></svg>") center / contain no-repeat;
}

/* (.f-text delante: si no, «.f-text p» le quita el margen de arriba) */
.f-text .needs {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 13px 16px;
  font-size: 14px;
  color: #ffff66;
  border-radius: 4px;
  background: rgba(255, 255, 0, 0.04);
  border: 1px solid rgba(255, 255, 0, 0.22);
}

.needs .i {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.needs a {
  color: #fff;
}

/* Enlaces dentro del texto (addons y demás): subrayado de puntos para que se vean como enlace */
.needs a,
.panel p a,
.steps a,
.faq a,
.card a {
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.needs a:hover,
.panel p a:hover,
.steps a:hover,
.faq a:hover,
.card a:hover {
  text-decoration-style: solid;
}

.f-vis {
  position: relative;
}

/* A todo el ancho: el texto arriba y la escena debajo */
.feature.wide {
  grid-template-columns: 1fr;
  gap: 34px;
}

/* El texto seguido, en una columna; con lista, la lista va a la derecha */
.feature.wide .f-text {
  max-width: 760px;
}

.feature.wide .f-text:has(.ticks) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 56px;
  align-items: end;
  max-width: none;
}

.feature.wide .f-text > :not(.ticks) {
  grid-column: 1;
}

.feature.wide .f-text > .banner {
  justify-self: start;
}

.feature.wide .ticks {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}

/* ---------- El vídeo encima del juego: la ventana del mini reproductor de la app, junto al botón ---------- */

.scene {
  position: relative;
  aspect-ratio: 1919 / 1079;
  border-radius: 10px;
  overflow: hidden;
  overflow: clip;
  background: #000;
}

.scene > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Al lado de la estrella de Arky (abajo a la izquierda en la captura), como la deja la app */
.mini {
  position: absolute;
  left: 4.6%;
  bottom: 2.4%;
  z-index: 3;
  width: 30%;
  transform: translate(var(--mx, 0px), var(--my, 0px));
}

.mini .shot,
.mini .shot iframe {
  border-radius: 0;
  background: transparent;
}

.mini-again {
  position: absolute;
  left: 5%;
  bottom: 5%;
  z-index: 3;
}

.mini-again[hidden] {
  display: none;
}

.scene-note {
  margin: 14px 2px 0;
  font-size: 14px;
  color: var(--faint);
}

/* El repaso del día: el gif del mapa grande del Diario, dentro del marco de las ventanas */
.gif {
  margin: 0;
  padding: 5px;
}

.gif img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Debajo de una ventana: el botón que abre la demo justo ahí y una nota */
.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}

.try .scene-note {
  flex: 1 1 260px;
  margin: 0;
}

/* Los paneles de la app (altos y estrechos) casi a tamaño real */
.f-vis.narrow {
  justify-self: center;
  width: min(100%, 460px);
}

/* La X del juego (cerrar de wow.css): cara granate, borde negro, aro dorado e icono dorado */
.x-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #d6b610;
  cursor: pointer;
  background: radial-gradient(120% 95% at 50% 12%, #8a0a02 0%, #4a0201 42%, #250000 78%, #160000 100%);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px #b48b3a,
    0 0 0 3px #000,
    inset 0 0 0 1px #080000,
    inset 0 0 3px #000,
    0 2px 4px #000;
}

.x-btn:hover {
  color: #ffe45a;
  background: radial-gradient(120% 95% at 50% 12%, #a8140a 0%, #5e0603 42%, #300000 78%, #1c0000 100%);
  filter: drop-shadow(0 0 4px rgba(255, 200, 60, 0.45));
}

.x-btn .i {
  width: 14px;
  height: 14px;
  stroke-width: 3.4;
  filter: drop-shadow(0 1px 0 #000);
}

/* ---------- Mascota: las cuatro opciones de Ajustes, vivas ---------- */

.pets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.pet-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 10px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid #000;
  box-shadow: 0 0 0 1px var(--inset-ring);
  text-align: center;
}

.pet-card .pal {
  zoom: 1.35;
}

.pet-card span {
  font: 400 15px/1.2 var(--f-ui);
  color: var(--gold);
}

.pet-card small {
  display: block;
  margin-top: 2px;
  font: 13px/1.35 var(--f-body);
  color: var(--muted);
}

.styles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #151515, #060606);
  box-shadow:
    0 0 0 1px var(--field-ring),
    inset 0 1px 3px #000;
}

.seg button {
  padding: 6px 12px;
  border: 0;
  border-radius: 3px;
  font: 600 13px/1 var(--f-body);
  color: #8c8270;
  background: none;
  cursor: pointer;
}

.seg button:hover {
  color: var(--gold);
}

.seg button[aria-pressed='true'] {
  color: var(--gold);
  background: var(--btn-face);
  box-shadow:
    0 0 0 1px #000,
    inset 0 1px 0 var(--btn-rim);
  text-shadow: 0 1px 1px #000;
}

/* ---------- Tarjetas de funciones (.s-cat de Ajustes) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 110px;
}

.card {
  padding: 22px 20px 22px;
  border-radius: 6px;
  border: 1px solid #000;
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 0 1px var(--inset-ring),
    0 0 0 2px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
  transition:
    box-shadow 0.2s,
    background 0.2s;
}

.card:hover {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(0, 0, 0, 0.5));
  box-shadow:
    0 0 0 1px var(--field-ring),
    0 0 0 2px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(var(--accent-rgb), 0.14);
}

.card .sq {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.card .sq .i {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 7px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #d4c9ae;
}

/* ---------- Pasos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 6px;
  border: 1px solid #000;
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 0 1px var(--inset-ring),
    0 0 0 2px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
}

/* El número en la gema dorada del nivel (.lvl de la app) */
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  font: 400 16px/1 var(--f-ui);
  color: var(--gold);
  border-radius: 4px;
  border: 1px solid #a8873a;
  background: radial-gradient(circle at 40% 30%, #3b3122, #0c0a06);
  box-shadow: 0 0 8px rgba(255, 209, 0, 0.25);
}

.steps h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  font-size: 14.5px;
  color: #d4c9ae;
}

.steps-foot {
  margin: 26px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Addon ---------- */

.addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.panel {
  padding: 30px 30px 28px;
  border-radius: 6px;
  border: 1px solid #000;
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 0 1px var(--inset-ring),
    0 0 0 2px rgba(0, 0, 0, 0.7),
    inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.panel h2 {
  margin: 16px 0 14px;
  font-size: clamp(26px, 2.8vw, 34px);
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.panel p {
  margin: 0 0 12px;
  color: #d9cfb6;
}

.panel p:last-child {
  margin-bottom: 0;
}

/* Comandos: el bloque /way de la app (negro con texto dorado) */
.term {
  margin: 4px 0 22px;
  padding: 14px 16px;
  font: 14px/1.9 var(--mono);
  color: #cfc6b0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid #000;
  box-shadow:
    0 0 0 1px #575757,
    inset 0 0 8px #000;
}

.term .c {
  color: var(--gold);
}

.term .y {
  color: #ffff66;
}

.addons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.addons li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
  color: #d4c9ae;
}

.addons .ico {
  flex: none;
  width: 34px;
  height: 34px;
}

.addons li:has(.addon-links) {
  align-items: flex-start;
}

.addons li:has(.addon-links) .ico {
  margin-top: 2px;
}

/* El nombre de cada addon (dorado, como los nombres de la app) y sus páginas debajo */
.addons .addon-name {
  color: var(--gold);
  font: 400 15.5px/1.2 var(--f-ui);
}

.addon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.addon-links a {
  padding: 2px 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #e4d9bf;
  text-decoration: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px var(--inset-ring);
}

.addon-links a:hover {
  color: var(--gold-hi);
}

/* El nombre de cada addon, con su enlace (dorado, como los nombres de la app) */
.addons .addon-link {
  color: var(--gold);
  font: 400 15.5px/1.2 var(--f-ui);
  text-decoration: none;
}

.addons .addon-link:hover {
  color: var(--gold-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel p .addon-link {
  color: #fff;
  font-weight: 600;
}

.shotfig {
  margin: 28px 0 0;
}

.shotfig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px var(--inset-ring),
    0 12px 30px rgba(0, 0, 0, 0.6);
}

.shotfig figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------- Preguntas ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  border-radius: 6px;
  border: 1px solid #000;
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    0 0 0 1px var(--inset-ring),
    0 0 0 2px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.faq details[open] {
  box-shadow:
    0 0 0 1px var(--field-ring),
    0 0 0 2px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  font: 400 18px/1.35 var(--f-ui);
  color: var(--gold);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* El +/− de las zonas del registro de misiones */
.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: auto;
  font: 700 16px/1 var(--f-body);
  color: var(--gold);
  border-radius: 4px;
  background: linear-gradient(180deg, #2e2e2e, #111);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px var(--sq-ring);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: #d9cfb6;
}

/* ---------- Final ---------- */

.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: 140px 0;
  text-align: center;
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--noise),
    radial-gradient(60% 70% at 50% 50%, rgba(7, 6, 5, 0.55), rgba(7, 6, 5, 0.85)),
    linear-gradient(180deg, var(--bg-2), transparent 25%, transparent 75%, var(--bg-2));
}

.final h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.4vw, 52px);
}

.final p {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 18px;
  color: #e4d9bf;
}

.final .ctas {
  justify-content: center;
}

.final .pal {
  zoom: 1.6;
  margin: 0 auto 26px;
}

/* ---------- Pie ---------- */

footer {
  padding: 34px 0 44px;
  font-size: 13.5px;
  color: var(--faint);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
}

footer .links {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--muted);
}

/* ---------- Aparición al desplazarse (solo con JS) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--out),
    transform 0.8s var(--out);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Pantallas estrechas ---------- */

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature.flip .f-text {
    order: 0;
  }

  .feature.wide .f-text {
    display: block;
  }

  .feature.wide .ticks {
    margin-top: 22px;
  }

  .mini {
    width: 46%;
  }

  .topics,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .addon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .ingame-notes,
  .topics,
  .grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .pets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-label,
  .nav .btn.primary {
    display: none;
  }

  .callout {
    display: none;
  }

  .star-hit {
    width: 9%;
  }

  .panel {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
