@font-face {
  font-family: "Archivo Black";
  src: url("media/archivo-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --fondo: #101a19;
  --superficie: #16201e;
  --panel: #1a2623;
  --linea: #3b4740;
  --texto: #fff3dc;
  --secundario: #c3c9b9;
  --ambar: #ffcb43;
  --bronce: #a97d36;
  --tinta: #171b13;
  --papel: #f9edcf;
  --tinta-papel: #192522;
  --turquesa: #78d9c4;
  --oxido: #a93d27;
  --titular: "Archivo Black", "Arial Black", Impact, sans-serif;
  --lectura: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --tecnica: "IBM Plex Mono", Consolas, monospace;
  --ancho: 82rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 1rem/1.58 var(--lectura);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 5px;
}
[id] { scroll-margin-top: 1.5rem; }
::selection { color: var(--tinta); background: var(--ambar); }

.marco { width: min(var(--ancho), calc(100% - 6rem)); margin-inline: auto; }
.skip {
  position: absolute;
  left: .75rem;
  top: .75rem;
  z-index: 2;
  background: var(--ambar);
  color: var(--tinta);
  padding: .7rem 1rem;
  transform: translateY(-140%);
}
.skip:focus { transform: none; }
.cabecera { border-bottom: 1px solid var(--linea); }
.cabecera__interior, .pie__interior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.7rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-size: .95rem;
  line-height: 1.16;
  font-weight: 600;
}
.marca img { flex: none; }
.marca b { color: var(--ambar); font-weight: 750; }
.cabecera nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }
.cabecera nav a {
  color: var(--secundario);
  text-decoration: none;
  font-size: .91rem;
  font-weight: 650;
  padding-block: .6rem;
}
.cabecera nav a:hover { color: var(--texto); }
.cabecera nav [aria-current="page"] {
  color: var(--ambar);
  box-shadow: inset 0 -1px var(--bronce);
}
.enlace-guia {
  display: inline-block;
  margin-top: 1rem;
  color: var(--turquesa);
  font-weight: 720;
  text-underline-offset: .25em;
}
.papel .enlace-guia { color: #236357; }

.papel {
  color: var(--tinta-papel);
  background-color: var(--papel);
  background-image:
    radial-gradient(circle at 1px 1px, #844c271a .65px, transparent .93px),
    radial-gradient(circle at 3px 4px, #fff8e682 .6px, transparent .95px);
  background-size: 6px 5px, 8px 9px;
}
.papel :focus-visible { outline-color: #2b655c; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  margin-block: clamp(1.4rem, 4vw, 4rem) clamp(3.4rem, 6vw, 6rem);
  border: 1px solid #7b6f54;
  border-bottom: 6px solid var(--ambar);
  box-shadow: .65rem .65rem 0 #20342c;
}
.hero__texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.45rem, 4.2vw, 4rem);
}
.sobretitulo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ambar);
  font-size: .83rem;
  font-weight: 750;
  letter-spacing: .105em;
  text-transform: uppercase;
  line-height: 1.45;
}
.sobretitulo::before {
  content: "";
  width: 1.3rem;
  height: 2px;
  background: var(--bronce);
  flex: none;
}
.hero__texto .sobretitulo { color: var(--tinta-papel); font-family: var(--tecnica); letter-spacing: .06em; }
.hero__texto .sobretitulo::before { background: var(--oxido); height: .25rem; width: 1.05rem; }
h1, h2 {
  font-family: var(--titular);
  font-weight: 400;
  overflow-wrap: anywhere;
}
h1 {
  margin-top: .9rem;
  font-size: clamp(2.45rem, 5.62vw, 5.6rem);
  line-height: .92;
  letter-spacing: -.082em;
}
h1 span, h1 em { display: block; }
h1 em {
  margin-top: .1em;
  color: var(--oxido);
  font-style: normal;
  text-shadow: .022em .018em #e5a36c;
}
h2 {
  font-size: clamp(2.05rem, 4.15vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero__bajada {
  margin-block: 1.5rem 1.55rem;
  max-width: 32rem;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.55;
}
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; }
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: .65rem 1.12rem;
  border: 1px solid var(--linea);
  border-radius: 3px;
  font-size: .98rem;
  font-weight: 730;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .17s ease, border-color .17s ease;
}
.boton--principal { color: var(--tinta); background: var(--ambar); border-color: var(--ambar); }
.boton--principal:hover { background: #ffdb65; border-color: #ffdb65; }
.boton--secundario { color: var(--texto); background: transparent; }
.boton--secundario:hover { border-color: #d7b965; background: #23302a; }
.hero .boton { border-radius: 0; border-color: var(--tinta-papel); }
.hero .boton--principal { box-shadow: 3px 3px 0 var(--tinta-papel); }
.hero .boton--secundario { color: var(--tinta-papel); }
.hero .boton--secundario:hover { background: var(--tinta-papel); color: var(--papel); }
.hero__arte {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  background: #152420;
}
.hero__imagen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.14;
  min-height: 100%;
  background: #30251d;
}
.hero__arte img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 49%;
}
.hero__imagen::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 45%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(112deg, transparent 32%, #ffcc7b28 45%, #fff0cda6 50%, #ffcc7b24 55%, transparent 67%);
  mask-image: linear-gradient(#000 10%, transparent 96%);
}
.hero__imagen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 59% 13%, #ffc25966, #e07c2d26 23%, transparent 46%),
    linear-gradient(138deg, transparent 58%, #3caca729 100%);
  mix-blend-mode: screen;
  opacity: .76;
}
.hero__arte figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .78rem .95rem;
  border-top: 1px solid #927852;
  border-image: linear-gradient(90deg, #dfac59, #927852 40%, #437970) 1;
  color: var(--secundario);
  font-size: .86rem;
}
.hero__lugar { display: flex; flex-wrap: wrap; align-items: baseline; gap: .12rem .7rem; }
.hero__lugar b { color: var(--ambar); font: 700 .96rem/1.3 var(--tecnica); text-transform: uppercase; }

.bloque-partida {
  background: var(--superficie);
  border-block: 1px solid var(--linea);
  padding-block: clamp(3.3rem, 6vw, 6.2rem);
}
.escena {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
}
.escena__intro h2, .distrito h2, .entrada h2 { margin-block: .85rem 1rem; }
.escena__intro > p:last-of-type, .distrito__intro > p:last-of-type {
  color: var(--secundario);
  max-width: 32rem;
  font-size: 1.08rem;
}
.pasos-escena {
  display: none;
  padding: .6rem clamp(.5rem, 1.7vw, 1.25rem);
  background: #111d18;
  border-bottom: 1px solid var(--linea);
}
.pasos-escena[role="tablist"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
.pasos-escena button {
  border: 1px solid #435e50;
  border-bottom-width: 2px;
  padding: .44rem .18rem;
  color: var(--secundario);
  background: transparent;
  cursor: pointer;
  font-size: .92rem;
  min-height: 2.75rem;
}
.pasos-escena button:hover { color: var(--texto); border-color: var(--turquesa); }
.pasos-escena button[aria-selected="true"] {
  color: var(--ambar);
  background: #352e19;
  border-color: #ad8732;
  border-bottom-color: var(--ambar);
  font-weight: 720;
}
.conversacion {
  border: 1px solid #455149;
  background: #111d19;
  box-shadow: .4rem .4rem 0 #0b1513, .4rem .4rem 0 1px #415145;
}
.conversacion__cabecera {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 8.15rem;
  padding: 1.15rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  background: #121c19;
  border-bottom: 1px solid #455149;
}
.conversacion__cabecera .conversacion__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 39%;
  z-index: -2;
}
.conversacion__cabecera::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, #0b171435 3px 4px),
    linear-gradient(90deg, #0a1714 1%, #0b1714e6 40%, #0b171448 100%);
}
.conversacion__contexto { color: var(--ambar); font: 700 .83rem/1.4 var(--tecnica); text-transform: uppercase; }
.conversacion__cabecera h3 { font: 400 clamp(1.28rem, 2.55vw, 2.05rem)/1.18 var(--titular); letter-spacing: -.045em; }
.momento {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 1.15rem 1.3rem 1.35rem;
  min-height: 14.65rem;
  background: radial-gradient(ellipse at 36% 0%, #233833, transparent 78%);
}
.momento[role="tabpanel"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, #78d9c438 49%, #b1f1e45c 49.8%, transparent 50.4%);
}
.momento .boton { margin-top: .85rem; border-radius: 0; }
.momento:focus-visible { outline-offset: -3px; }
.momento + .momento:not([hidden]) { border-top: 1px solid #455149; }
.momento h4 {
  color: var(--turquesa);
  font: 700 .92rem/1.3 var(--tecnica);
  margin-bottom: .9rem;
}
.mensaje { display: flex; gap: .68rem; align-items: start; }
.mensaje + .mensaje { margin-top: .9rem; }
.mensaje__inicial, .mensaje__avatar {
  width: 2.15rem;
  aspect-ratio: 1;
  border-radius: 3px;
  flex: none;
}
.mensaje__inicial {
  display: grid;
  place-items: center;
  color: #191d16;
  font-weight: 800;
}
.mensaje__avatar { height: auto; }
.mensaje__inicial--ines { background: #edb979; }
.mensaje__inicial--elian { background: #8ab3a6; }
.mensaje__texto { min-width: 0; }
.mensaje__autor { font-weight: 750; }
.mensaje__autor span {
  display: inline-block;
  font-size: .83rem;
  color: var(--secundario);
  font-weight: 500;
  margin-left: .35rem;
}
.mensaje__texto > p + p { color: #e6e6d5; }
.mensaje__texto em { color: #c3d0c1; }
.conversacion__nota {
  margin-top: 1rem;
  padding-top: .7rem;
  color: var(--secundario);
  font-size: .91rem;
  border-top: 1px solid #46584d;
}
.resolucion, .consecuencia {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .72rem .9rem;
  margin-top: .85rem;
  border-left: 4px solid var(--turquesa);
  background: #172f26;
}
.resolucion__total {
  color: var(--turquesa);
  font: 400 clamp(2.45rem, 5vw, 4rem)/1 var(--titular);
  letter-spacing: -.065em;
}
.resolucion__detalle { display: grid; gap: .1rem; line-height: 1.4; }
.resolucion__detalle span { font-family: var(--tecnica); font-size: .9rem; }
.resolucion__detalle b { color: var(--turquesa); font-size: .93rem; }
.resolucion--activa { animation: fijar-resultado 280ms cubic-bezier(.23,.75,.28,1) both; }
@keyframes fijar-resultado {
  from { transform: translateY(5px) scale(.985); opacity: .66; }
  45% { box-shadow: inset 0 0 1.2rem #78d9c43d; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.consecuencia { border-left-color: var(--ambar); background: #352e19; color: #ffe395; font-size: .95rem; }

.acciones-rol {
  margin-top: clamp(3.1rem, 6vw, 5.5rem);
  padding: clamp(1.3rem, 3.75vw, 3.35rem);
  border-top: 5px solid var(--oxido);
}
.acciones-rol__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.1rem 3rem;
}
.acciones-rol h2 { max-width: 17ch; }
.acciones-rol__intro p {
  max-width: 28rem;
  color: #40463b;
  font-size: 1.08rem;
}
.acciones-rol__ejemplos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.acciones-rol article { padding-top: .9rem; border-top: 1px solid #b5a683; }
.acciones-rol article h3 { font-size: 1.12rem; line-height: 1.3; }
.acciones-rol article p { color: #40463b; }
.acciones-rol article blockquote {
  margin: .7rem 0 .65rem;
  padding: .55rem .75rem;
  border-inline-start: 2px solid #a36b44;
  background: #e7d5ab5c;
}
.acciones-rol article blockquote p { color: var(--tinta-papel); }
.acciones-rol article blockquote em { color: #654a35; }

.distrito {
  padding-block: clamp(3.4rem, 7vw, 7rem);
}

.bloque-facciones { background: #18221e; border-block: 1px solid var(--linea); padding-block: 3.4rem; }
.facciones__intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .9rem 2rem;
  flex-wrap: wrap;
}
.facciones__intro h2 { font-size: clamp(2.65rem, 4.5vw, 4rem); }
.facciones__intro p { color: var(--secundario); max-width: 29rem; }
.facciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2.4vw, 2rem);
  list-style: none;
  margin-top: 1.9rem;
  padding: 0;
}
.faccion {
  min-width: 0;
  border: 1px solid #4b574c;
  background: #121d19;
}
.faccion--mata { --acento-faccion: #f3c65e; }
.faccion--koi { --acento-faccion: #e59584; }
.faccion--corpos { --acento-faccion: #93d5c8; }
.faccion--soberana { --acento-faccion: #e4ac70; }
.faccion > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #26332b;
}
.faccion__texto {
  padding: clamp(.9rem, 2.35vw, 1.6rem);
  border-top: 3px solid var(--acento-faccion);
  background: linear-gradient(color-mix(in srgb, var(--acento-faccion) 10%, transparent), transparent 4rem);
}
.faccion__texto h3 {
  margin-bottom: .35rem;
  color: var(--acento-faccion);
  font: 400 clamp(1.4rem, 2.6vw, 2.45rem)/1.15 var(--titular);
  letter-spacing: -.043em;
}
.faccion__texto p { color: var(--secundario); line-height: 1.52; }

@media (hover: hover) and (pointer: fine) {
  .faccion { transition: border-color 200ms ease, box-shadow 200ms ease; }
  .faccion:hover {
    border-color: var(--acento-faccion);
    box-shadow: 0 0 1.1rem color-mix(in srgb, var(--acento-faccion) 22%, transparent);
  }
}

code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  background: #26332a;
  color: #f7de8b;
  border-radius: 3px;
  padding-inline: .28rem;
  font-size: .92em;
}
.entrada__estado { color: var(--ambar); font-weight: 700; }
.pie { border-top: 1px solid var(--linea); }
.pie__interior { min-height: 5rem; }
.pie__interior > span { font-size: .9rem; color: var(--secundario); }

.visor {
  width: min(72rem, calc(100% - 1.4rem));
  max-width: unset;
  max-height: calc(100dvh - 1.4rem);
  padding: 1rem;
  border: 1px solid #686b51;
  border-radius: 4px;
  background: var(--fondo);
  color: var(--texto);
}
.visor::backdrop { background: #020807d9; }
.visor__cabecera { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.visor h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); text-wrap: auto; }
.visor .boton { min-height: 2.65rem; padding: .45rem .65rem; }
.visor img { width: 100%; height: auto; background: var(--superficie); }
.visor > a { display: inline-block; margin-top: .85rem; color: var(--ambar); }

@media (max-width: 70rem) {
  .marco { width: calc(100% - 4rem); }
  .hero__texto { padding: clamp(1.3rem, 3.35vw, 2.3rem); }
  .hero__imagen { aspect-ratio: 1.04; }
}
@media (max-width: 52rem) {
  .marco { width: calc(100% - 3rem); }
  .hero { grid-template-columns: 1fr; }
  .hero__texto { align-items: start; }
  h1 { font-size: clamp(3rem, 10vw, 5.25rem); }
  h1 br { display: none; }
  .hero__imagen { aspect-ratio: 1.55; min-height: 0; }
  .hero__arte img { object-position: center top; }
  .escena { grid-template-columns: 1fr; gap: 1.6rem; }
  .acciones-rol__intro { flex-direction: column; align-items: start; }
  .escena__intro h2 br { display: none; }
}
@media (max-width: 34rem) {
  .marco { width: calc(100% - 2rem); }
  .cabecera__interior { min-height: 0; padding-top: .8rem; flex-wrap: wrap; gap: .35rem; }
  .cabecera nav { width: 100%; flex-wrap: wrap; column-gap: .6rem; justify-content: space-between; }
  .cabecera nav a { min-height: 2.55rem; }
  h1 { margin-top: .85rem; font-size: clamp(2.55rem, 10.3vw, 3.5rem); }
  .hero { box-shadow: .27rem .27rem 0 #20342c; }
  .hero__texto { padding: 1.15rem .92rem 1.4rem; }
  .hero__bajada { margin-block: 1.15rem 1.25rem; }
  .acciones { gap: .55rem; }
  .boton { padding-inline: .84rem; }
  .hero__arte figcaption { padding-inline: .7rem; gap: .5rem; }
  .conversacion__cabecera { min-height: 6.7rem; }
  .momento, .conversacion__cabecera { padding-inline: .85rem; }
  .acciones-rol__ejemplos { grid-template-columns: 1fr; }
  .facciones { grid-template-columns: 1fr; }
  .pie__interior { min-height: 0; padding-block: 1rem; flex-wrap: wrap; gap: .55rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__imagen::before { animation: reflejo-del-rotulo 1.45s .18s ease-in-out both; }
  .momento[role="tabpanel"]:not([hidden])::before { animation: barrido-crt .52s ease-out both; }
}
@keyframes reflejo-del-rotulo {
  0% { opacity: 0; transform: translateX(-62%); }
  38%, 68% { opacity: .9; }
  100% { opacity: 0; transform: translateX(64%); }
}
@keyframes barrido-crt {
  0% { opacity: 0; transform: translateY(-60%); }
  24%, 76% { opacity: 1; }
  100% { opacity: 0; transform: translateY(60%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .resolucion--activa { animation: none; }
}
