/* ============================================================
   SENDA · Java — formulario de propuestas
   ============================================================ */

@font-face {
  font-family: "Monocraft";
  src: url("fonts/Monocraft.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("fonts/Silkscreen-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("fonts/Silkscreen-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@property --hill-back {
  syntax: "<color>";
  inherits: true;
  initial-value: #153923;
}

@property --hill-mid {
  syntax: "<color>";
  inherits: true;
  initial-value: #0f2b1b;
}

@property --hill-front {
  syntax: "<color>";
  inherits: true;
  initial-value: #091d12;
}

@property --hill-grass {
  syntax: "<color>";
  inherits: true;
  initial-value: #2e6b3b;
}

:root {
  color-scheme: dark;
  --bg: #06120b;
  --bg-soft: #0a1b11;
  --surface: #0e2116;
  --surface-2: #122a1b;
  --surface-3: #183321;
  --line: #294a30;
  --line-strong: #5a8f48;
  --text: #f3f8ea;
  --muted: #b6c9a8;
  --muted-2: #849b7a;
  --accent: #8ed24f;
  --accent-2: #b5ef6d;
  --accent-soft: rgba(142, 210, 79, 0.14);
  --emerald: #5fe0a8;
  --gold: #f2c66d;
  --gold-soft: rgba(242, 198, 109, 0.13);
  --danger: #e06a5a;
  --danger-soft: rgba(224, 106, 90, 0.12);
  --shadow: rgba(0, 0, 0, 0.5);
  --focus: #b5ef6d;
  --sky-top: #071528;
  --sky-mid: #0a2034;
  --sky-low: #113528;
  --sky-horizon: #1c4c2f;
  --sky-glow: rgba(255, 214, 125, 0.12);
  --star-opacity: 0.9;
  --sun-opacity: 0;
  --moon-opacity: 1;
  --cloud-color: rgba(194, 216, 228, 0.16);
  --hill-back: #153923;
  --hill-mid: #0f2b1b;
  --hill-front: #091d12;
  --hill-grass: #2e6b3b;
  --tree-leaf: #12351f;
  --tree-leaf-2: #18452a;
  --tree-trunk: #2d2114;
  --torch-opacity: 1;
  --scene-vignette: rgba(4, 10, 7, 0.35);
  --font-display: "Monocraft", "Courier New", monospace;
  --font-title: "Silkscreen", "Courier New", monospace;
  --font-body: "Monocraft", "Courier New", monospace;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Crect x='2' y='4' width='8' height='2' fill='%23286f29'/%3E%3Crect x='4' y='6' width='4' height='2' fill='%23286f29'/%3E%3Crect x='5' y='8' width='2' height='2' fill='%23286f29'/%3E%3C/svg%3E");
  --max: 1200px;
  --pad: clamp(16px, 4vw, 28px);
}

html[data-theme="day"] {
  color-scheme: light;
  --bg: #f6f2e4;
  --bg-soft: #efe8d6;
  --surface: #fffdf4;
  --surface-2: #f5eedc;
  --surface-3: #ece2cc;
  --line: #d7cbb0;
  --line-strong: #93ab73;
  --text: #20301b;
  --muted: #53624b;
  --muted-2: #58694f;
  --accent: #3d9a3d;
  --accent-2: #286f29;
  --accent-soft: rgba(61, 154, 61, 0.11);
  --emerald: #1f8a68;
  --gold: #8a5a10;
  --gold-soft: rgba(233, 178, 73, 0.18);
  --danger: #b04435;
  --danger-soft: rgba(176, 68, 53, 0.09);
  --shadow: rgba(70, 60, 40, 0.16);
  --focus: #276d28;
  --sky-top: #77c7ee;
  --sky-mid: #a8dcf0;
  --sky-low: #dcebcf;
  --sky-horizon: #f6e2a8;
  --sky-glow: rgba(255, 240, 180, 0.3);
  --star-opacity: 0;
  --sun-opacity: 1;
  --moon-opacity: 0;
  --cloud-color: rgba(255, 255, 255, 0.9);
  --hill-back: #91cc69;
  --hill-mid: #6ab54d;
  --hill-front: #4a9838;
  --hill-grass: #8ed35a;
  --tree-leaf: #3f8f3a;
  --tree-leaf-2: #4ea943;
  --tree-trunk: #7a4d2b;
  --torch-opacity: 0;
  --scene-vignette: rgba(255, 255, 255, 0.04);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Crect x='2' y='4' width='8' height='2' fill='%232f8432'/%3E%3Crect x='4' y='6' width='4' height='2' fill='%232f8432'/%3E%3Crect x='5' y='8' width='2' height='2' fill='%232f8432'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  font-synthesis: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a,
input,
select,
textarea,
label,
summary,
.choice-card,
.choice-inner,
.chip,
.switch,
.java-card,
.hero-mob,
.title-wrap {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  color: #061006;
  background: var(--accent-2);
  border: 2px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 13px;
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

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

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.dialog-open {
  overflow: hidden;
}

.noscript {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  font-size: 13px;
  line-height: 1.55;
}

.noscript strong {
  color: var(--text);
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-body);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------- fondo ---------------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
  background:
    radial-gradient(820px 520px at 82% 10%, rgba(255, 214, 125, 0.12), transparent 62%),
    linear-gradient(180deg, #071528 0%, #0a2034 48%, #113528 76%, #1c4c2f 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 520px at 82% 10%, rgba(255, 240, 180, 0.3), transparent 62%),
    linear-gradient(180deg, #77c7ee 0%, #a8dcf0 48%, #dcebcf 76%, #f6e2a8 100%);
}

html[data-theme="day"] .page-bg::before {
  opacity: 1;
}

.scene-stars {
  position: absolute;
  inset: 0 0 24% 0;
  z-index: 1;
  opacity: var(--star-opacity);
  background-image:
    radial-gradient(circle at 8% 22%, rgba(255, 255, 255, .95) 1.5px, transparent 2px),
    radial-gradient(circle at 23% 12%, rgba(255, 255, 255, .75) 1px, transparent 1.6px),
    radial-gradient(circle at 41% 27%, rgba(255, 255, 255, .9) 1.5px, transparent 2px),
    radial-gradient(circle at 64% 9%, rgba(255, 255, 255, .7) 1px, transparent 1.6px),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, .9) 1.5px, transparent 2px),
    radial-gradient(circle at 89% 14%, rgba(255, 255, 255, .75) 1px, transparent 1.6px),
    radial-gradient(circle at 14% 45%, rgba(255, 255, 255, .6) 1px, transparent 1.6px),
    radial-gradient(circle at 56% 40%, rgba(255, 255, 255, .8) 1.2px, transparent 1.8px);
  background-size: 260px 220px, 340px 280px, 420px 320px, 300px 240px, 380px 300px, 240px 200px, 460px 360px, 320px 260px;
  background-position: 0 0, 40px 30px, 20px 80px, 100px 10px, 60px 120px, 140px 60px, 30px 160px, 180px 100px;
  animation: star-twinkle 4.8s ease-in-out infinite alternate;
  transition: opacity .5s ease;
}

.scene-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 16% 18%, rgba(255, 244, 200, .95) 1.4px, transparent 2px),
    radial-gradient(circle at 34% 34%, rgba(190, 235, 255, .85) 1.2px, transparent 1.8px),
    radial-gradient(circle at 52% 16%, rgba(255, 255, 255, .92) 1.5px, transparent 2px),
    radial-gradient(circle at 72% 32%, rgba(255, 244, 200, .8) 1.2px, transparent 1.8px),
    radial-gradient(circle at 93% 26%, rgba(255, 255, 255, .9) 1.4px, transparent 2px);
  background-size: 290px 240px, 370px 300px, 310px 260px, 410px 330px, 250px 210px;
  background-position: 50px 20px, 10px 90px, 120px 40px, 80px 130px, 15px 60px;
  animation: star-twinkle-alt 6.4s ease-in-out infinite alternate-reverse;
}

/* Transición suave (~1.2s) al cambiar tema, sin afectar carga inicial */
html.is-theme-switching {
  transition:
    --hill-back 1.2s ease,
    --hill-mid 1.2s ease,
    --hill-front 1.2s ease,
    --hill-grass 1.2s ease;
}

html.is-theme-switching .page-bg::before,
html.is-theme-switching .scene-stars,
html.is-theme-switching .scene-sun,
html.is-theme-switching .scene-moon,
html.is-theme-switching .scene-cloud,
html.is-theme-switching .scene-fireflies,
html.is-theme-switching .scene-tree,
html.is-theme-switching .scene-tree::before,
html.is-theme-switching .scene-tree::after,
html.is-theme-switching .scene-torch,
html.is-theme-switching .scene-vignette,
html.is-theme-switching .art-frame::before,
html.is-theme-switching .art-frame::after,
html.is-theme-switching .art-cloud,
html.is-theme-switching .art-glow {
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 1.2s ease,
    border-color 1.2s ease,
    box-shadow 1.2s ease;
}

html.is-theme-switching body,
html.is-theme-switching .topbar,
html.is-theme-switching .brand-name,
html.is-theme-switching .brand-java,
html.is-theme-switching .java-pill,
html.is-theme-switching .theme-toggle,
html.is-theme-switching .java-card,
html.is-theme-switching .art-frame,
html.is-theme-switching .art-panel,
html.is-theme-switching #wizard,
html.is-theme-switching .summary-card,
html.is-theme-switching .summary-dialog,
html.is-theme-switching .success-panel,
html.is-theme-switching .notfound-card,
html.is-theme-switching .step-extras,
html.is-theme-switching .choice-inner,
html.is-theme-switching .chip span,
html.is-theme-switching .switch,
html.is-theme-switching .field input,
html.is-theme-switching .field select,
html.is-theme-switching .field textarea,
html.is-theme-switching .btn,
html.is-theme-switching .review-section,
html.is-theme-switching .privacy-note,
html.is-theme-switching .consent,
html.is-theme-switching .draft-banner,
html.is-theme-switching .site-footer {
  transition:
    background-color 1.2s ease,
    color 1.2s ease,
    border-color 1.2s ease,
    box-shadow 1.2s ease;
}

.scene-sun,
.scene-moon {
  position: absolute;
  top: 7%;
  right: 11%;
  width: 70px;
  height: 70px;
  border: 4px solid;
  z-index: 1;
  transition: opacity .5s ease;
  image-rendering: pixelated;
}

.scene-sun {
  background: #ffd166;
  border-color: #e3ab3a;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.15), 0 0 46px rgba(255, 196, 80, 0.5);
  opacity: var(--sun-opacity);
}

.scene-sun::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
}

.scene-moon {
  background: #f3e7b6;
  border-color: #d8c98f;
  box-shadow: 0 0 0 4px rgba(243, 231, 182, 0.1), 0 0 42px rgba(243, 231, 182, 0.28);
  opacity: var(--moon-opacity);
}

.scene-moon::before,
.scene-moon::after {
  content: "";
  position: absolute;
  background: rgba(155, 144, 100, 0.3);
}

.scene-moon::before {
  top: 12px;
  left: 12px;
  width: 16px;
  height: 14px;
}

.scene-moon::after {
  right: 12px;
  bottom: 14px;
  width: 12px;
  height: 10px;
}

.scene-cloud {
  position: absolute;
  left: 0;
  width: 46px;
  height: 12px;
  background: var(--cloud-color);
  box-shadow: 18px 0 0 var(--cloud-color), 34px 0 0 var(--cloud-color), 18px -12px 0 var(--cloud-color);
  opacity: 0.85;
  z-index: 1;
  will-change: transform;
  animation: cloud-drift-across var(--cloud-dur, 72s) linear infinite;
  transition: background .5s ease;
}

.scene-cloud-a {
  top: 15%;
  --cloud-scale: 1.05;
  --cloud-dur: 68s;
  animation-delay: -14s;
}

.scene-cloud-b {
  top: 27%;
  --cloud-scale: 0.82;
  --cloud-dur: 86s;
  opacity: 0.72;
  animation-delay: -52s;
}

.scene-cloud-c {
  top: 9%;
  --cloud-scale: 0.6;
  --cloud-dur: 102s;
  opacity: 0.5;
  animation-delay: -34s;
}

.scene-cloud-d {
  top: 21%;
  --cloud-scale: 0.72;
  --cloud-dur: 76s;
  opacity: 0.62;
  animation-delay: -62s;
}

/* Luciérnagas y chispas pixeladas flotando en el fondo */
.scene-fireflies {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.scene-firefly {
  position: absolute;
  bottom: 10vh;
  bottom: 10svh;
  width: 5px;
  height: 5px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold), 0 0 22px color-mix(in srgb, var(--accent) 70%, transparent);
  opacity: 0;
  will-change: transform, opacity;
  animation: firefly-rise var(--ff-dur, 13s) ease-in-out infinite;
  animation-delay: var(--ff-delay, 0s);
}

html[data-theme="day"] .scene-firefly {
  width: 4px;
  height: 4px;
  background: #fff6c2;
  box-shadow: 0 0 8px rgba(255, 224, 120, 0.75);
}

.ff-1 {
  left: 9%;
  --ff-dur: 12s;
  --ff-delay: -2s;
  --ff-drift: 26px;
  --ff-peak: 0.9;
}

.ff-2 {
  left: 22%;
  --ff-dur: 15s;
  --ff-delay: -7s;
  --ff-drift: -22px;
  --ff-peak: 0.78;
  background: var(--accent-2);
}

.ff-3 {
  left: 37%;
  --ff-dur: 13.5s;
  --ff-delay: -4s;
  --ff-drift: 18px;
  --ff-peak: 0.72;
}

.ff-4 {
  left: 54%;
  --ff-dur: 16.5s;
  --ff-delay: -11s;
  --ff-drift: -28px;
  --ff-peak: 0.82;
  background: var(--emerald);
}

.ff-5 {
  left: 71%;
  --ff-dur: 14s;
  --ff-delay: -5.5s;
  --ff-drift: 24px;
  --ff-peak: 0.85;
}

.ff-6 {
  left: 84%;
  --ff-dur: 11.5s;
  --ff-delay: -9s;
  --ff-drift: -18px;
  --ff-peak: 0.9;
  background: var(--accent-2);
}

.ff-7 {
  left: 92%;
  --ff-dur: 17s;
  --ff-delay: -13s;
  --ff-drift: -24px;
  --ff-peak: 0.75;
}

html[data-theme="day"] .ff-1,
html[data-theme="day"] .ff-2,
html[data-theme="day"] .ff-3,
html[data-theme="day"] .ff-4,
html[data-theme="day"] .ff-5,
html[data-theme="day"] .ff-6,
html[data-theme="day"] .ff-7 {
  --ff-peak: 0.48;
}

.scene-hill {
  position: absolute;
  left: -4%;
  width: 108%;
  bottom: 0;
  pointer-events: none;
  transition: background .5s ease;
}

.scene-hill-back {
  height: 33vh;
  height: 33svh;
  z-index: 2;
  background: linear-gradient(180deg, var(--hill-grass) 0%, var(--hill-back) 18%, var(--hill-back) 100%);
  clip-path: polygon(0 68%, 6% 68%, 6% 55%, 14% 55%, 14% 44%, 24% 44%, 24% 55%, 32% 55%, 32% 63%, 43% 63%, 43% 50%, 51% 50%, 51% 38%, 62% 38%, 62% 50%, 72% 50%, 72% 58%, 81% 58%, 81% 45%, 90% 45%, 90% 56%, 100% 56%, 100% 100%, 0 100%);
}

.scene-hill-mid {
  height: 24vh;
  height: 24svh;
  z-index: 3;
  background: linear-gradient(180deg, var(--hill-grass) 0%, var(--hill-mid) 20%, var(--hill-mid) 100%);
  clip-path: polygon(0 75%, 10% 75%, 10% 62%, 20% 62%, 20% 70%, 33% 70%, 33% 55%, 44% 55%, 44% 66%, 58% 66%, 58% 58%, 69% 58%, 69% 72%, 80% 72%, 80% 60%, 91% 60%, 91% 70%, 100% 70%, 100% 100%, 0 100%);
}

.scene-hill-front {
  height: 16vh;
  height: 16svh;
  z-index: 4;
  background: linear-gradient(180deg, var(--hill-grass) 0%, var(--hill-front) 24%, var(--hill-front) 100%);
  clip-path: polygon(0 86%, 8% 86%, 8% 76%, 19% 76%, 19% 84%, 31% 84%, 31% 72%, 42% 72%, 42% 82%, 55% 82%, 55% 75%, 66% 75%, 66% 86%, 78% 86%, 78% 78%, 89% 78%, 89% 84%, 100% 84%, 100% 100%, 0 100%);
}

.scene-tree {
  position: absolute;
  width: 9px;
  height: 48px;
  background: var(--tree-trunk);
  z-index: 5;
  transition: background .5s ease;
}

.scene-tree::before {
  content: "";
  position: absolute;
  left: -21px;
  bottom: 24px;
  width: 51px;
  height: 20px;
  background: var(--tree-leaf);
  box-shadow: 0 -15px 0 var(--tree-leaf), -10px 9px 0 var(--tree-leaf-2), 10px 9px 0 var(--tree-leaf-2);
}

.scene-tree::after {
  content: "";
  position: absolute;
  left: -12px;
  bottom: 44px;
  width: 33px;
  height: 12px;
  background: var(--tree-leaf-2);
}

.scene-tree-a {
  left: 5%;
  bottom: 15vh;
  transform: scale(1.15);
}

.scene-tree-b {
  right: 9%;
  bottom: 12vh;
  transform: scale(0.85);
}

.scene-tree-c {
  left: 25%;
  bottom: 10vh;
  transform: scale(0.6);
  opacity: 0.75;
}

.scene-tree-a {
  left: 5%;
  bottom: 15vh;
  bottom: 15svh;
  transform: scale(1.15);
}

.scene-tree-b {
  right: 9%;
  bottom: 12vh;
  bottom: 12svh;
  transform: scale(0.85);
}

.scene-tree-c {
  left: 25%;
  bottom: 10vh;
  bottom: 10svh;
  transform: scale(0.6);
  opacity: 0.75;
}

.scene-torch {
  position: absolute;
  left: 3%;
  bottom: 17vh;
  bottom: 17svh;
  width: 10px;
  height: 34px;
  background: var(--tree-trunk);
  z-index: 6;
  opacity: var(--torch-opacity);
  transition: opacity .5s ease;
}

.scene-torch-b {
  left: auto;
  right: 4%;
  bottom: 13vh;
  bottom: 13svh;
  transform: scale(0.88);
}

.scene-torch::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -3px;
  width: 16px;
  height: 16px;
  background: #ffd166;
  border: 2px solid #f0a93a;
  box-shadow: 0 0 26px #ffbf4d, 0 0 60px rgba(255, 190, 70, 0.45);
  will-change: transform, opacity;
  animation: torch-flicker 1.35s ease-in-out infinite alternate;
}

.scene-torch-b::before {
  animation-duration: 1.75s;
  animation-delay: -0.6s;
}

.scene-torch::after {
  content: "";
  position: absolute;
  left: -46px;
  bottom: -10px;
  width: 102px;
  height: 102px;
  background: radial-gradient(circle, rgba(255, 190, 70, 0.24), transparent 66%);
  will-change: transform, opacity;
  animation: torch-glow-pulse 2.2s ease-in-out infinite alternate;
}

.scene-torch-b::after {
  animation-duration: 2.7s;
  animation-delay: -0.9s;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, transparent 38%, var(--scene-vignette) 100%);
}

@keyframes star-twinkle {
  0% {
    opacity: calc(var(--star-opacity) * 0.45);
  }

  50% {
    opacity: calc(var(--star-opacity) * 0.92);
  }

  100% {
    opacity: var(--star-opacity);
  }
}

@keyframes star-twinkle-alt {
  0% {
    opacity: 0.35;
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

@keyframes cloud-drift-across {
  from {
    transform: translate3d(-160px, 0, 0) scale(var(--cloud-scale, 1));
  }

  to {
    transform: translate3d(calc(100vw + 160px), 0, 0) scale(var(--cloud-scale, 1));
  }
}

@keyframes firefly-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }

  18% {
    opacity: var(--ff-peak, 0.85);
  }

  50% {
    opacity: calc(var(--ff-peak, 0.85) * 0.55);
    transform: translate3d(var(--ff-drift, 20px), -34svh, 0) scale(1.05);
  }

  78% {
    opacity: var(--ff-peak, 0.85);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--ff-drift, 20px) * -0.45), -74svh, 0) scale(0.65);
  }
}

@keyframes torch-flicker {
  0% {
    transform: scale3d(0.96, 0.96, 1);
    opacity: 0.82;
  }

  45% {
    transform: scale3d(1.08, 1.08, 1);
    opacity: 1;
  }

  75% {
    transform: scale3d(1.01, 1.01, 1);
    opacity: 0.9;
  }

  100% {
    transform: scale3d(1.12, 1.12, 1);
    opacity: 1;
  }
}

@keyframes torch-glow-pulse {
  from {
    transform: scale3d(0.9, 0.9, 1);
    opacity: 0.72;
  }

  to {
    transform: scale3d(1.14, 1.14, 1);
    opacity: 1;
  }
}

/* ---------------- cabecera ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold), var(--accent), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 11px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px var(--accent-soft)) drop-shadow(0 0 22px var(--gold-soft));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--text);
}

.brand-java {
  padding: 2px 6px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 36%, transparent);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.java-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 9px;
  color: var(--text);
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 2px 0 var(--shadow), 0 0 18px var(--accent-soft);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.java-pill:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 2px 0 var(--shadow), 0 0 24px var(--accent-soft);
}

.java-pill:active {
  transform: translateY(1px);
}

.java-pill-label {
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.java-pill code {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.java-pill .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.discord-pill {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 170px;
  height: 38px;
  padding: 0 10px;
  color: var(--text);
  background: var(--surface);
  border: 2px solid color-mix(in srgb, #5865f2 45%, var(--line));
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 2px 0 var(--shadow);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.discord-pill:hover:not(:disabled) {
  border-color: #7984f8;
  background: var(--surface-2);
}

.discord-pill:active:not(:disabled) {
  transform: translateY(1px);
}

.discord-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.discord-pill .icon {
  width: 15px;
  height: 15px;
  color: #8c96ff;
}

.discord-pill-dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--muted-2);
  display: none;
}

.discord-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-pill.is-verified {
  border-color: color-mix(in srgb, var(--emerald) 55%, var(--line));
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 2px 0 var(--shadow), 0 0 16px color-mix(in srgb, var(--emerald) 16%, transparent);
}

.discord-pill.is-verified .icon {
  color: var(--emerald);
}

.discord-pill.is-verified .discord-pill-dot {
  display: block;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.discord-pill.is-pending {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}

.discord-pill.is-pending .icon {
  color: var(--gold);
}

.discord-pill.is-pending .discord-pill-dot {
  display: block;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.theme-toggle {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 38px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 2px 0 var(--shadow);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.theme-icon {
  width: 19px;
  height: 19px;
  image-rendering: pixelated;
}

.theme-icon-sun {
  display: none;
}

html[data-theme="night"] .theme-icon-moon {
  display: none;
}

html[data-theme="night"] .theme-icon-sun {
  display: block;
}

/* ---------------- intro ---------------- */

.intro {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(104px, 9vw, 118px) var(--pad) clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  contain: layout;
}

/* El sol/luna estático del fondo se sustituye por el control arrastrable
   en la portada; el 404 conserva la escena estática. */
.proposal-page .scene-sun,
.proposal-page .scene-moon {
  display: none;
}

.celestial-toggle {
  position: absolute;
  top: 12px;
  right: var(--pad);
  left: auto;
  z-index: 8;
  width: 78px;
  height: 78px;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.68s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celestial-toggle::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px dashed color-mix(in srgb, var(--gold) 55%, transparent);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celestial-toggle.is-dragging {
  z-index: 9;
  cursor: grabbing;
  transition: none;
}

.celestial-toggle.is-ready::before {
  opacity: 0.9;
  transform: scale(1.06);
}

.celestial-toggle.is-orbiting::before {
  animation: celestial-halo 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.celestial-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.celestial-body {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 70px;
  height: 70px;
  border: 4px solid;
  pointer-events: none;
  image-rendering: pixelated;
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.5s ease;
}

.celestial-moon {
  background: #f3e7b6;
  border-color: #d8c98f;
  box-shadow: 0 0 0 4px rgba(243, 231, 182, 0.1), 0 0 38px rgba(243, 231, 182, 0.26);
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.celestial-moon::before,
.celestial-moon::after {
  content: "";
  position: absolute;
  background: rgba(155, 144, 100, 0.32);
}

.celestial-moon::before {
  top: 11px;
  left: 12px;
  width: 15px;
  height: 12px;
}

.celestial-moon::after {
  right: 12px;
  bottom: 14px;
  width: 11px;
  height: 9px;
}

.celestial-sun {
  background: #ffd166;
  border-color: #e3ab3a;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.18), 0 0 40px rgba(255, 196, 80, 0.45);
  opacity: 0;
  transform: translate(-18px, 22px) rotate(-42deg) scale(0.55);
}

.celestial-sun::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
}

html[data-theme="day"] .celestial-moon {
  opacity: 0;
  transform: translate(18px, 22px) rotate(42deg) scale(0.55);
}

html[data-theme="day"] .celestial-sun {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.celestial-toggle.is-ready .celestial-body {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 26%, transparent), 0 0 54px color-mix(in srgb, var(--gold) 65%, transparent);
}

@keyframes celestial-halo {
  0% {
    opacity: 0.85;
    transform: scale(0.82) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: scale(1.38) rotate(32deg);
  }
}

.celestial-hint {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  left: auto;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.celestial-toggle.is-dragging .celestial-hint {
  opacity: 0.95;
  color: var(--gold);
}

@media (hover: hover) and (pointer: fine) {

  .celestial-toggle:hover .celestial-hint,
  .celestial-toggle:focus-visible .celestial-hint {
    opacity: 0.85;
  }
}

@media (max-width: 700px) {
  .celestial-toggle {
    left: auto;
    right: var(--pad);
    top: 14px;
    width: 46px;
    height: 46px;
    margin-left: 0;
  }

  .celestial-body {
    top: 3px;
    left: 3px;
    width: 40px;
    height: 40px;
    border-width: 3px;
  }

  .celestial-moon::before {
    top: 6px;
    left: 7px;
    width: 9px;
    height: 7px;
  }

  .celestial-moon::after {
    right: 7px;
    bottom: 8px;
    width: 7px;
    height: 6px;
  }

  .celestial-sun::after {
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
  }

  .celestial-hint {
    display: none;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.eyebrow-dot {
  flex: none;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 12px var(--gold-soft);
}

.intro h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.8vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intro h1 .hl {
  color: transparent;
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent) 48%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 4px 0 color-mix(in srgb, var(--accent) 18%, transparent)) drop-shadow(0 0 16px var(--gold-soft));
  text-shadow: none;
}

.lead {
  max-width: 590px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.intro-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.java-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 24px;
  padding: 8px 11px 8px 10px;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 3px 0 var(--shadow), 0 0 24px var(--accent-soft);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.java-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 10%, transparent), 0 4px 0 var(--shadow), 0 0 28px var(--accent-soft);
}

.java-card:active {
  transform: translateY(2px);
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 1px 0 var(--shadow);
}

.java-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.java-card-icon img {
  image-rendering: pixelated;
}

.java-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.java-card-label {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.java-card code {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.java-card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  color: var(--muted-2);
  font-size: 13px;
  white-space: nowrap;
}

.java-card-copy-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.java-card:hover .java-card-copy-badge {
  color: var(--accent-2);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.java-card-copy-badge .icon {
  width: 13px;
  height: 13px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* ---------------- arte / diorama pixel art ---------------- */

.intro-art {
  justify-self: end;
  width: min(100%, 480px);
  perspective: 960px;
}

.art-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, #061326 0%, #0d253c 48%, #153629 100%);
  border: 2px solid color-mix(in srgb, var(--gold) 34%, var(--line-strong));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line), 0 0 38px var(--accent-soft), 0 24px 60px var(--shadow);
  image-rendering: pixelated;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.art-frame.is-tilting {
  transition: transform 0.08s linear, box-shadow 0.25s ease, border-color 0.25s ease;
  border-color: color-mix(in srgb, var(--accent) 44%, var(--gold));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line-strong), 0 0 48px var(--accent-soft), 0 28px 66px var(--shadow);
}

.art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #6ec4ef 0%, #b5e4f5 50%, #f6e7b8 100%);
}

html[data-theme="day"] .art-frame::after {
  opacity: 1;
}

.art-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 32% 0;
  z-index: 1;
  opacity: 0;
  background-image:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, .95) 1.4px, transparent 1.9px),
    radial-gradient(circle at 36% 10%, rgba(255, 244, 196, .85) 1.2px, transparent 1.7px),
    radial-gradient(circle at 58% 22%, rgba(255, 255, 255, .8) 1px, transparent 1.5px),
    radial-gradient(circle at 76% 12%, rgba(185, 235, 255, .85) 1.2px, transparent 1.7px),
    radial-gradient(circle at 24% 34%, rgba(255, 255, 255, .72) 1px, transparent 1.5px),
    radial-gradient(circle at 88% 36%, rgba(255, 244, 196, .85) 1.3px, transparent 1.8px);
  background-size: 130px 100px, 160px 120px, 180px 140px, 145px 115px, 170px 130px, 150px 125px;
  pointer-events: none;
  transition: opacity .4s ease;
}

html[data-theme="night"] .art-frame::before {
  opacity: 0.9;
  animation: art-stars-twinkle 4.4s ease-in-out infinite alternate;
}

@keyframes art-stars-twinkle {
  from {
    opacity: 0.55;
  }

  to {
    opacity: 0.95;
  }
}

.art-cloud {
  position: absolute;
  left: 0;
  z-index: 2;
  height: 11px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 14px 0 0 rgba(255, 255, 255, 0.88), 28px 0 0 rgba(255, 255, 255, 0.88), 14px -10px 0 rgba(255, 255, 255, 0.88);
  animation: art-cloud-drift var(--ac-dur, 32s) linear infinite;
  animation-delay: var(--ac-delay, 0s);
}

html[data-theme="night"] .art-cloud {
  background: rgba(194, 216, 228, 0.18);
  box-shadow: 14px 0 0 rgba(194, 216, 228, 0.18), 28px 0 0 rgba(194, 216, 228, 0.18), 14px -10px 0 rgba(194, 216, 228, 0.18);
}

.art-cloud-a {
  top: 13%;
  width: 32px;
  --ac-dur: 34s;
  --ac-delay: -6s;
  --ac-scale: 1;
}

.art-cloud-b {
  top: 24%;
  width: 24px;
  --ac-dur: 42s;
  --ac-delay: -26s;
  --ac-scale: 0.78;
  opacity: 0.82;
}

.art-cloud-c {
  top: 7%;
  width: 22px;
  --ac-dur: 50s;
  --ac-delay: -18s;
  --ac-scale: 0.62;
  opacity: 0.6;
}

@keyframes art-cloud-drift {
  from {
    transform: translate3d(-72px, 0, 0) scale(var(--ac-scale, 1));
  }

  to {
    transform: translate3d(520px, 0, 0) scale(var(--ac-scale, 1));
  }
}

/* Halos cálidos y mágicos del diorama (se intensifican en tema noche) */
.art-glow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 5px), 0);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.art-glow-fire {
  --glow-base: 0.95;
  left: 38%;
  top: 32%;
  width: 34%;
  height: 34%;
  background: radial-gradient(circle, rgba(255, 186, 74, 0.44) 0%, rgba(255, 130, 40, 0.16) 45%, transparent 72%);
  opacity: var(--glow-base);
  animation: art-fire-glow 2s ease-in-out infinite alternate;
}

.art-glow-crystal {
  --glow-base: 0.92;
  right: 7%;
  top: 21%;
  width: 34%;
  height: 34%;
  background: radial-gradient(circle, rgba(95, 224, 168, 0.4) 0%, rgba(166, 107, 255, 0.16) 50%, transparent 72%);
  opacity: var(--glow-base);
  animation: art-crystal-glow 3.2s ease-in-out infinite alternate;
}

html[data-theme="day"] .art-glow-fire {
  --glow-base: 0.28;
}

html[data-theme="day"] .art-glow-crystal {
  --glow-base: 0.34;
}

@keyframes art-fire-glow {
  from {
    opacity: calc(var(--glow-base, 0.95) * 0.72);
  }

  to {
    opacity: var(--glow-base, 0.95);
  }
}

@keyframes art-crystal-glow {
  from {
    opacity: calc(var(--glow-base, 0.92) * 0.65);
  }

  to {
    opacity: var(--glow-base, 0.92);
  }
}

/* Diorama SVG principal */
.art-diorama-wrap {
  position: absolute;
  top: 4%;
  left: 0;
  right: 0;
  height: 69%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 6px), 6px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-diorama {
  width: 100%;
  height: 100%;
  overflow: visible;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.24));
}

html[data-theme="night"] .art-diorama {
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
}

.diorama-island {
  animation: diorama-island-float 5.6s ease-in-out infinite;
}

.diorama-chunk-a {
  animation: diorama-chunk-float 4.2s ease-in-out infinite alternate;
}

.diorama-chunk-b {
  animation: diorama-chunk-float 5s ease-in-out infinite alternate-reverse;
}

.diorama-flames {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: diorama-fire-dance 0.65s ease-in-out infinite alternate;
}

.diorama-lantern-core {
  animation: diorama-lantern-flicker 1.8s ease-in-out infinite alternate;
}

.diorama-smoke {
  opacity: 0;
  animation: diorama-smoke-rise 3.6s ease-out infinite;
}

.diorama-smoke-1 {
  animation-delay: 0s;
}

.diorama-smoke-2 {
  animation-delay: -1.2s;
}

.diorama-smoke-3 {
  animation-delay: -2.4s;
}

.diorama-portal-mist {
  --mist-base: 0.24;
  opacity: var(--mist-base);
  animation: diorama-portal-shimmer 2.8s ease-in-out infinite alternate;
}

html[data-theme="night"] .diorama-portal-mist {
  --mist-base: 0.44;
}

.diorama-crystal {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: diorama-crystal-hover 3.1s ease-in-out infinite;
}

html[data-theme="night"] .diorama-crystal {
  filter: drop-shadow(0 0 6px #5fe0a8);
}

html[data-theme="night"] .diorama-ores {
  filter: drop-shadow(0 0 3px rgba(95, 224, 168, 0.7));
}

.diorama-petal {
  opacity: 0;
  animation: diorama-petal-fall 5.4s ease-in-out infinite;
}

.diorama-petal-1 {
  animation-delay: -0.4s;
}

.diorama-petal-2 {
  animation-delay: -2.2s;
}

.diorama-petal-3 {
  animation-delay: -3.9s;
}

.diorama-bee {
  animation: diorama-bee-flight 7.2s ease-in-out infinite;
}

.bee-wing {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: diorama-bee-wings 0.16s steps(2, end) infinite;
}

.bee-wing-r {
  animation-delay: -0.08s;
}

@keyframes diorama-island-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2.4px);
  }
}

@keyframes diorama-chunk-float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-3.5px);
  }
}

@keyframes diorama-fire-dance {
  0% {
    transform: scale(0.95, 0.92);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.06, 1.08);
    opacity: 1;
  }

  100% {
    transform: scale(0.98, 1.02);
    opacity: 0.95;
  }
}

@keyframes diorama-lantern-flicker {
  from {
    opacity: 0.85;
  }

  to {
    opacity: 1;
  }
}

@keyframes diorama-smoke-rise {
  0% {
    transform: translate(0, 0) scale(0.75);
    opacity: 0;
  }

  20% {
    opacity: 0.62;
  }

  65% {
    transform: translate(-2px, -16px) scale(1.05);
    opacity: 0.36;
  }

  100% {
    transform: translate(3px, -28px) scale(1.25);
    opacity: 0;
  }
}

@keyframes diorama-portal-shimmer {
  from {
    opacity: calc(var(--mist-base, 0.24) * 0.55);
  }

  to {
    opacity: var(--mist-base, 0.24);
  }
}

@keyframes diorama-crystal-hover {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes diorama-petal-fall {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  14% {
    opacity: 0.95;
  }

  55% {
    transform: translate(7px, 14px);
    opacity: 0.8;
  }

  100% {
    transform: translate(-3px, 26px);
    opacity: 0;
  }
}

@keyframes diorama-bee-flight {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(16px, -6px);
  }

  50% {
    transform: translate(26px, 3px);
  }

  75% {
    transform: translate(10px, 7px);
  }
}

@keyframes diorama-bee-wings {
  0% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.35);
  }
}

/* Partículas mágicas subiendo en el cuadro */
.art-motes {
  position: absolute;
  inset: 0 0 28% 0;
  z-index: 3;
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 8px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-mote {
  position: absolute;
  bottom: 14%;
  width: 5px;
  height: 5px;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  opacity: 0;
  animation: art-mote-rise var(--am-dur, 4.8s) ease-in-out infinite;
  animation-delay: var(--am-delay, 0s);
}

.art-mote-1 {
  left: 74%;
  --am-dur: 4.4s;
  --am-delay: -0.5s;
  --am-dx: 10px;
}

.art-mote-2 {
  left: 81%;
  width: 4px;
  height: 4px;
  background: #a6ffda;
  --am-dur: 5.2s;
  --am-delay: -2.1s;
  --am-dx: -12px;
}

.art-mote-3 {
  left: 52%;
  width: 4px;
  height: 4px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  --am-dur: 4.6s;
  --am-delay: -1.4s;
  --am-dx: 8px;
}

.art-mote-4 {
  left: 26%;
  width: 4px;
  height: 4px;
  background: #ffd9e8;
  box-shadow: 0 0 10px #f294bb;
  --am-dur: 5.8s;
  --am-delay: -3.2s;
  --am-dx: -8px;
}

.art-mote-5 {
  left: 66%;
  width: 3px;
  height: 3px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  --am-dur: 5s;
  --am-delay: -4s;
  --am-dx: 12px;
}

html[data-theme="day"] .art-mote {
  opacity: 0;
  --am-peak: 0.65;
}

@keyframes art-mote-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }

  22% {
    opacity: var(--am-peak, 0.95);
  }

  75% {
    opacity: calc(var(--am-peak, 0.95) * 0.7);
  }

  100% {
    transform: translate3d(var(--am-dx, 8px), -120px, 0) scale(0.4);
    opacity: 0;
  }
}

.art-panel {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  z-index: 4;
  padding: 12px 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 2px solid color-mix(in srgb, var(--gold) 36%, var(--line-strong));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), 0 0 26px var(--accent-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translate3d(calc(var(--px, 0) * 5px), calc(var(--py, 0) * 3px), 12px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-frame.is-tilting .art-glow,
.art-frame.is-tilting .art-diorama-wrap,
.art-frame.is-tilting .art-motes,
.art-frame.is-tilting .art-panel {
  transition-duration: 0.08s;
}

.art-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.art-tags span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.art-tags span:nth-child(1) {
  color: var(--accent-2);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.art-tags span:nth-child(2) {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 38%, var(--line));
}

.art-tags span:nth-child(3) {
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  border-color: color-mix(in srgb, var(--emerald) 34%, var(--line));
}

.art-tags span.is-filled {
  box-shadow: 0 0 12px var(--accent-soft);
}

.art-tags span.is-updated {
  animation: art-tag-pop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes art-tag-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.09);
  }

  100% {
    transform: scale(1);
  }
}

.art-address {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.art-address span {
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.art-address code {
  color: var(--text);
  font-size: 13px;
}

.art-foot {
  margin: 7px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------------- layout del formulario ---------------- */

.workspace {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 22px;
  align-items: start;
  scroll-margin-top: 88px;
  contain: layout style;
}

.form-column {
  min-width: 0;
}

#wizard {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line), 0 0 30px var(--accent-soft), 0 20px 50px var(--shadow);
}

.form-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.form-top>div {
  min-width: 0;
}

.form-kicker {
  margin: 0 0 5px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.form-top h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.3;
}

.summary-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 10px;
  color: var(--accent-2);
  background: var(--surface-2);
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.summary-toggle .icon {
  width: 11px;
  height: 11px;
}

/* ---------------- progreso ---------------- */

.stepper {
  margin: 20px 0 0;
}

.stepper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stepper-label {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.stepper-count {
  color: var(--muted);
  font-size: 13px;
}

.stepper-track {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.stepper-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.3s ease;
}

.stepper-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.step-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 0;
  color: var(--muted-2);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  text-align: left;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.step-link:hover {
  color: var(--text);
}

.step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 13px;
}

.step-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-link.is-active {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
}

.step-link.is-active .step-num {
  color: #17270f;
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.step-link.is-done {
  color: var(--muted);
}

.step-link.is-done .step-num {
  color: var(--accent-2);
  border-color: var(--line-strong);
}

.stepper-mobile-name {
  display: none;
  margin: 8px 0 0;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------------- aviso de borrador ---------------- */

.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 8px 10px;
  color: var(--text);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  font-size: 13px;
}

.link-button {
  padding: 0;
  color: var(--accent-2);
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--accent);
}

/* ---------------- formulario / pasos ---------------- */

.proposal-form {
  margin-top: 18px;
}

.step {
  animation: step-in-forward 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.step.step--forward {
  animation: step-in-forward 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.step.step--backward {
  animation: step-in-backward 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.step.step--instant {
  animation: none;
}

@keyframes step-in-forward {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes step-in-backward {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-head {
  margin-bottom: 20px;
}

.step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.step-kicker .icon {
  width: 15px;
  height: 15px;
  color: var(--accent-2);
}

.step-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.28;
}

.step-head p:not(.step-kicker) {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------------- campos ---------------- */

.field {
  display: grid;
  gap: 6px;
  margin: 0 0 17px;
  border: 0;
  padding: 0;
}

.field:last-child {
  margin-bottom: 0;
}

.field>label,
.field legend,
.summary-kicker,
.summary-section h3 {
  padding: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.field legend {
  padding: 0 0 6px;
}

.req {
  color: var(--accent-2);
}

.optional {
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 0;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.12);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:not([type="radio"]):not([type="checkbox"])::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

.field input:not([type="radio"]):not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--line-strong);
}

.field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-color: var(--bg-soft);
  background-image:
    var(--select-arrow),
    linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat, no-repeat;
  background-position: right 13px center, right 36px center;
  background-size: 12px 12px, 1px 60%;
}

.field select:hover {
  background-color: var(--surface-2);
}

.field select option {
  color: var(--text);
  background-color: var(--surface);
  font-family: var(--font-body);
}

.field textarea {
  min-height: 124px;
  resize: vertical;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

.field input:not([type="radio"]):not([type="checkbox"])[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.help {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.field-error:empty {
  display: none;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.char-count {
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 12px;
}

.nested {
  margin: 0;
  padding: 10px;
  background: var(--surface-2);
  border-left: 2px solid var(--accent);
}

.nested>label {
  font-size: 13px;
}

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

/* ---------------- elecciones ---------------- */

.choice-field {
  margin: 0 0 19px;
  border: 0;
  padding: 0;
  min-width: 0;
}

.choice-field>legend {
  padding: 0 0 6px;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

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

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

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

.choice-grid-2>.choice-card:last-child:nth-child(odd),
.choice-grid-3>.choice-card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.choice-card {
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  height: 100%;
  min-height: 76px;
  padding: 10px 30px 10px 10px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 5%, transparent), 0 2px 0 transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.choice-inner::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Crect x='2' y='6' width='2' height='2' fill='%2317270f'/%3E%3Crect x='4' y='8' width='2' height='2' fill='%2317270f'/%3E%3Crect x='6' y='6' width='2' height='2' fill='%2317270f'/%3E%3Crect x='8' y='4' width='2' height='2' fill='%2317270f'/%3E%3Crect x='9' y='2' width='2' height='2' fill='%2317270f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 70%, var(--gold));
  box-shadow: 0 0 10px var(--accent-soft);
  opacity: 0;
  transform: scale(0.45);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.choice-card:hover .choice-inner {
  border-color: var(--line-strong);
  background: var(--surface-3);
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 7%, transparent), 0 3px 0 var(--shadow);
}

.choice-card:active .choice-inner {
  transform: translateY(1px);
}

.choice-card input:checked+.choice-inner {
  background: color-mix(in srgb, var(--accent-soft) 95%, var(--surface-2));
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-soft), 0 0 18px var(--accent-soft), 0 3px 0 var(--shadow);
  animation: choice-pop 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.choice-card input:checked+.choice-inner::after {
  opacity: 1;
  transform: scale(1);
}

@keyframes choice-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(0.97);
  }

  75% {
    transform: translateY(-2px) scale(1.015);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.choice-card input:focus-visible+.choice-inner {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.choice-key {
  align-self: flex-start;
  padding: 1px 5px;
  color: var(--muted-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
}

.choice-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.3;
}

.choice-desc {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.4;
}

.choice-card input:checked+.choice-inner .choice-key {
  color: var(--accent-2);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 6px 11px;
  color: var(--muted);
  background: var(--surface-2);
  border: 2px solid var(--line);
  font-size: 13px;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, gap 0.18s ease;
}

.chip span::before {
  content: "";
  width: 0;
  height: 12px;
  opacity: 0;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Crect x='2' y='6' width='2' height='2' fill='%2317270f'/%3E%3Crect x='4' y='8' width='2' height='2' fill='%2317270f'/%3E%3Crect x='6' y='6' width='2' height='2' fill='%2317270f'/%3E%3Crect x='8' y='4' width='2' height='2' fill='%2317270f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  transform: scale(0.4);
  transition: width 0.18s ease, opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip:hover span {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.chip:active span {
  transform: translateY(1px);
}

.chip input:checked+span {
  gap: 6px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-soft), 0 2px 0 var(--shadow);
  animation: choice-pop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip input:checked+span::before {
  width: 12px;
  opacity: 1;
  transform: scale(1);
}

.chip input:focus-visible+span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------------- bloque opcional Paso 4 ---------------- */

.step-extras {
  margin-top: 20px;
  background: color-mix(in srgb, var(--surface-2) 65%, var(--bg-soft));
  border: 2px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-extras[open] {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line-strong));
  box-shadow: 0 0 20px var(--accent-soft);
}

.step-extras-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.step-extras-summary:hover {
  background: var(--surface-2);
}

.step-extras-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.step-extras-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.step-extras-sub {
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.step-extras-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.step-extras-badge {
  padding: 2px 7px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-extras-badge.is-active {
  color: var(--accent-2);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.step-extras-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.22s ease, color 0.2s ease;
}

.step-extras[open] .step-extras-chevron {
  transform: rotate(90deg);
  color: var(--accent-2);
}

.step-extras-body {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.switch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  cursor: pointer;
  background: var(--surface-2);
  border: 2px solid var(--line);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.switch:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.switch:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 75%, var(--surface-2));
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: relative;
  flex: none;
  width: 30px;
  height: 16px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--muted-2);
  transition: transform 0.16s ease, background 0.16s ease;
}

.switch input:checked+.switch-track {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.switch input:checked+.switch-track::after {
  transform: translateX(12px);
  background: var(--accent-2);
}

.switch input:focus-visible+.switch-track {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.switch-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.switch:has(input:checked) .switch-text {
  color: var(--text);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 15px 0 0;
  padding: 11px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.consent .req {
  color: var(--accent-2);
}

/* ---------------- verificación con Discord (Paso 5) ---------------- */

.discord-gate {
  margin: 15px 0 0;
  padding: 13px;
  background: var(--surface-2);
  border: 2px solid color-mix(in srgb, #5865f2 42%, var(--line));
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 6%, transparent), 0 3px 0 var(--shadow);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.discord-gate.is-verified {
  background: color-mix(in srgb, var(--emerald) 8%, var(--surface-2));
  border-color: color-mix(in srgb, var(--emerald) 55%, var(--line-strong));
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 6%, transparent), 0 0 22px color-mix(in srgb, var(--emerald) 14%, transparent);
}

.discord-gate.is-warning {
  background: color-mix(in srgb, var(--gold) 8%, var(--surface-2));
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}

.discord-gate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.discord-gate-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.discord-gate-title .icon {
  width: 17px;
  height: 17px;
  color: #8c96ff;
}

.discord-gate.is-verified .discord-gate-title .icon {
  color: var(--emerald);
}

.discord-gate.is-warning .discord-gate-title .icon {
  color: var(--gold);
}

.discord-gate-title h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.discord-status-badge {
  padding: 2px 7px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discord-status-badge.is-verified {
  color: #0e2418;
  background: var(--emerald);
  border-color: color-mix(in srgb, var(--emerald) 80%, #fff);
}

.discord-status-badge.is-warning {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.discord-gate-body {
  margin-top: 10px;
}

.discord-gate-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.discord-gate-text strong {
  color: var(--text);
}

.discord-gate-verified-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.discord-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 12%, var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--emerald) 48%, var(--line));
  font-size: 13px;
}

.discord-verified-pill .icon {
  width: 14px;
  height: 14px;
}

.discord-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
}

.btn-discord {
  color: #ffffff;
  background: #5865f2;
  border-color: #727df8;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.2), inset -2px -3px 0 rgba(0, 0, 0, 0.25), 0 3px 0 var(--shadow);
}

.btn-discord:hover:not(:disabled) {
  background: #6672f6;
  border-color: #939cff;
}

.btn-discord:disabled {
  color: var(--muted);
  background: var(--surface-3);
  border-color: var(--line);
  box-shadow: none;
}

.discord-logout-link {
  font-size: 12.5px;
  color: var(--muted-2);
}

.discord-logout-link:hover {
  color: var(--text);
}

.discord-preview-note {
  margin: 10px 0 0;
  padding: 7px 9px;
  color: var(--muted-2);
  background: var(--bg-soft);
  border-left: 2px solid var(--line-strong);
  font-size: 12px;
  line-height: 1.45;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 10px;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

.privacy-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--accent);
}

.privacy-note p {
  margin: 0;
}

/* ---------------- mods ---------------- */

.mods-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 4px;
}

.mods-head h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.mod-count {
  color: var(--muted-2);
  font-size: 13px;
}

.mods-list {
  display: grid;
  gap: 7px;
  margin: 8px 0 9px;
}

.mod-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr) 32px;
  gap: 6px;
  align-items: end;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  animation: mod-in 0.2s ease both;
}

@keyframes mod-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.mod-index {
  align-self: center;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 13px;
}

.field-compact {
  margin: 0;
  gap: 0;
}

.field-compact input {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 13px;
}

.mod-remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  padding: 0;
  color: var(--muted-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.mod-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.mod-remove .icon {
  width: 13px;
  height: 13px;
}

.mods-empty {
  margin: 8px 0 10px;
  padding: 12px;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px dashed var(--line);
  font-size: 13px;
  text-align: center;
}

.note {
  margin: 10px 0 0;
  padding: 9px 10px;
  color: var(--muted);
  background: var(--gold-soft);
  border-left: 2px solid var(--gold);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------------- revisión ---------------- */

.review {
  display: grid;
  gap: 9px;
  margin: 0 0 15px;
}

.review-section {
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.review-head h3 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.edit-link {
  padding: 0;
  color: var(--accent-2);
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edit-link:hover {
  color: var(--accent);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin-top: 7px;
}

.review-item {
  min-width: 0;
}

.review-item dt {
  margin: 0 0 2px;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-item dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  padding: 2px 6px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  font-size: 13px;
}

.summary-tags .tag:nth-child(3n+2),
.review-tags .tag:nth-child(3n+2) {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 36%, var(--line));
}

.summary-tags .tag:nth-child(3n),
.review-tags .tag:nth-child(3n) {
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  border-color: color-mix(in srgb, var(--emerald) 32%, var(--line));
}

.review-mods {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.review-mods li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--text);
  font-size: 13px;
}

.review-mods a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.review-mods small {
  color: var(--muted-2);
}

.review-idea {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review-empty {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------------- mensajes / navegación ---------------- */

.form-message {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-success {
  color: var(--emerald);
}

.form-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form-nav-meta {
  flex: 1;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

.form-nav .btn {
  min-width: 104px;
}

/* ---------------- botones ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 0;
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 9%, transparent), inset -1px -2px 0 rgba(0, 0, 0, 0.2), 0 3px 0 var(--shadow);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
  background: var(--surface-3);
  border-color: var(--line-strong);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 9%, transparent), 0 1px 0 var(--shadow);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn .icon {
  width: 13px;
  height: 13px;
}

.btn-primary {
  color: #17270f;
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 50%, var(--gold) 100%);
  border-color: var(--accent);
  box-shadow: inset 2px 2px 0 color-mix(in srgb, #fff 30%, transparent), inset -2px -3px 0 color-mix(in srgb, #000 22%, transparent), 0 3px 0 var(--shadow), 0 0 22px var(--accent-soft);
  text-shadow: none;
}

.btn-primary:hover {
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 46%, var(--gold) 100%);
  border-color: var(--gold);
  filter: brightness(1.05);
}

html[data-theme="day"] .btn-primary {
  color: #17270f;
  background: linear-gradient(120deg, #8fd35a 0%, #6ec84f 52%, #f0c060 100%);
  border-color: #5c9b36;
}

html[data-theme="day"] .btn-primary:hover {
  background: linear-gradient(120deg, #97da61 0%, #77cf56 52%, #f4c969 100%);
  border-color: #8a6a1a;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  background: var(--surface-2);
  border: 2px solid var(--line);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.icon-btn .icon {
  width: 14px;
  height: 14px;
}

/* ---------------- resumen ---------------- */

.summary-column {
  position: sticky;
  top: 84px;
  min-width: 0;
}

.summary-card {
  max-height: calc(100vh - 100px);
  max-height: calc(100svh - 100px);
  overflow: auto;
  padding: 15px;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line), 0 0 26px var(--gold-soft), 0 18px 40px var(--shadow);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.summary-kicker {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.draft-badge {
  padding: 2px 5px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
}

.summary-content {
  display: grid;
  gap: 10px;
}

.summary-section {
  min-width: 0;
}

.summary-section h3 {
  margin: 0 0 3px;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-value {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.summary-verified {
  color: var(--emerald);
}

.summary-value.is-empty,
.summary-value .is-empty {
  color: var(--muted-2);
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.summary-tags .tag {
  font-size: 13px;
}

.summary-mods {
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.summary-mods li::before {
  content: "▸ ";
  color: var(--accent);
}

.summary-java {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 13px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-java div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.summary-java span {
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.summary-java code {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-java .icon-btn {
  flex: none;
  width: 28px;
  height: 28px;
}

.summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.summary-actions:has(.draft-status:empty) .link-button[hidden] {
  display: none;
}

.draft-status {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.4;
}

.summary-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 11px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.summary-note .icon {
  width: 11px;
  height: 11px;
  color: var(--accent);
}

/* ---------------- diálogo resumen ---------------- */

.summary-dialog {
  width: min(100% - 26px, 460px);
  max-height: min(86vh, 760px);
  margin: auto;
  padding: 15px;
  overflow: auto;
  color: var(--text);
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--gold) 30%, var(--line-strong));
  box-shadow: 0 24px 80px var(--shadow), 0 0 28px var(--gold-soft);
}

.summary-dialog::backdrop {
  background: rgba(2, 6, 3, 0.72);
  backdrop-filter: blur(4px);
}

html[data-theme="day"] .summary-dialog::backdrop {
  background: rgba(45, 40, 28, 0.5);
}

.summary-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-dialog-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.summary-dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.summary-dialog .summary-content {
  margin-top: 8px;
}

.summary-dialog .summary-java {
  margin-top: 14px;
}

.summary-dialog .summary-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-dialog .summary-actions:has(.draft-status:empty):has(.link-button[hidden]) {
  display: none;
}

/* ---------------- éxito ---------------- */

.success-panel {
  padding: clamp(24px, 5vw, 46px) clamp(18px, 4vw, 34px);
  text-align: center;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line), 0 0 34px var(--accent-soft), 0 20px 50px var(--shadow);
  contain: layout paint;
}

.success-seal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  color: #17270f;
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 0 26px var(--gold-soft);
}

.success-seal .icon {
  width: 26px;
  height: 26px;
}

.success-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.25;
}

.success-lead {
  max-width: 520px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.success-code {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 2px solid var(--line);
}

.success-code span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.success-code code {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.success-code .icon-btn {
  width: 28px;
  height: 28px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.success-foot {
  margin: 17px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.success-foot code {
  color: var(--accent-2);
}

/* ---------------- redes ---------------- */

.inline-link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--gold);
}

.social {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(54px, 8vw, 94px);
  scroll-margin-top: 88px;
}

.social-shell {
  position: relative;
  padding: clamp(20px, 3.2vw, 32px);
  background:
    radial-gradient(560px 220px at 8% 0%, var(--gold-soft), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 2px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line), 0 0 34px var(--gold-soft), 0 20px 50px var(--shadow);
}

.social-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.social-head-copy {
  max-width: 760px;
}

.social-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}

.social-lead {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.social-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.social-badge-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent), 0 0 10px var(--gold);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.social-card {
  --brand: var(--accent);
  --brand-ink: var(--accent-2);
  --brand-soft: var(--accent-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 72%);
  border: 2px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 6%, transparent), 0 3px 0 var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}

.social-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 80%);
  opacity: 0.85;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--text) 6%, transparent), 0 6px 0 var(--shadow), 0 0 26px var(--brand-soft);
}

.social-discord {
  --brand: #5865f2;
  --brand-ink: #b7bdff;
  --brand-soft: rgba(88, 101, 242, 0.16);
}

.social-youtube {
  --brand: #ff3347;
  --brand-ink: #ffb3ba;
  --brand-soft: rgba(255, 51, 71, 0.14);
}

.social-tiktok {
  --brand: #25f4ee;
  --brand-ink: #a9fffb;
  --brand-soft: rgba(37, 244, 238, 0.12);
}

.social-tiktok::before {
  background: linear-gradient(90deg, #25f4ee, #fe2c55 72%, transparent);
}

html[data-theme="day"] .social-discord {
  --brand: #4752e0;
  --brand-ink: #2f38b5;
  --brand-soft: rgba(71, 82, 224, 0.1);
}

html[data-theme="day"] .social-youtube {
  --brand: #d41f39;
  --brand-ink: #a81229;
  --brand-soft: rgba(212, 31, 57, 0.09);
}

html[data-theme="day"] .social-tiktok {
  --brand: #0d8f8a;
  --brand-ink: #086e6a;
  --brand-soft: rgba(13, 143, 138, 0.1);
}

.social-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 13%, var(--bg-soft));
  border: 2px solid color-mix(in srgb, var(--brand) 48%, var(--line));
  box-shadow: inset 2px 2px 0 color-mix(in srgb, #fff 10%, transparent), 0 2px 0 var(--shadow);
}

.social-icon .icon {
  width: 22px;
  height: 22px;
}

.social-tiktok .social-icon {
  box-shadow: inset 2px 2px 0 color-mix(in srgb, #fff 10%, transparent), 3px 3px 0 color-mix(in srgb, #fe2c55 55%, transparent), 0 2px 0 var(--shadow);
}

.social-card-title {
  min-width: 0;
}

.social-tag {
  margin: 0 0 1px;
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.13em;
  opacity: 0.85;
}

.social-card h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.social-index {
  margin-left: auto;
  align-self: flex-start;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.social-copy {
  flex: 1;
  margin: 13px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.social-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px dashed color-mix(in srgb, var(--brand) 26%, var(--line));
}

.social-handle {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.social-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.social-cta:not(.is-live) {
  color: var(--muted-2);
  background: transparent;
  border-style: dashed;
  border-color: var(--line);
  cursor: default;
}

.social-cta .icon {
  display: none;
  width: 12px;
  height: 12px;
}

.social-cta.is-live .icon {
  display: block;
}

.social-cta.is-live:hover {
  color: var(--bg);
  background: var(--brand-ink);
  border-color: var(--brand-ink);
}

html[data-theme="day"] .social-cta.is-live:hover {
  color: #fffdf4;
}

.social-card.is-live {
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line));
}

.social-card.is-live .social-index {
  color: var(--brand-ink);
}

.social-card.is-live .social-index::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: social-live 2.6s ease-in-out infinite;
}

@keyframes social-live {
  50% {
    opacity: 0.35;
  }
}

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  contain: layout paint;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 19px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.footer-sub {
  margin: 1px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-links a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links code {
  color: var(--muted);
  font-size: 13px;
}

.footer-meta {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------------- 404 ---------------- */

.notfound-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.notfound-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.notfound-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(32px, 7vw, 80px) var(--pad);
}

.notfound-card {
  width: min(100%, 620px);
  padding: clamp(24px, 5vw, 44px);
  text-align: center;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line), 0 0 34px var(--gold-soft), 0 20px 50px var(--shadow);
  contain: layout paint;
}

.notfound-code {
  margin: 0;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.6rem);
  line-height: 1;
  text-shadow: 0 5px 0 var(--accent-soft);
}

.notfound-card .notfound-code {
  max-width: none;
  margin: 0 auto;
  color: transparent;
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 52%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6rem);
  line-height: 0.9;
  filter: drop-shadow(0 5px 0 var(--accent-soft));
  text-shadow: none;
}

.notfound-card h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.8rem);
  line-height: 1.3;
}

.notfound-card p {
  max-width: 480px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.notfound-java {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 18px auto 0;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 2px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}

.notfound-java span {
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.notfound-java code {
  color: var(--text);
  font-size: 13px;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 19px;
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 32px);
  padding: 10px 13px;
  color: var(--text);
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 32%, var(--line-strong));
  box-shadow: 0 12px 36px var(--shadow), 0 0 20px var(--accent-soft);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  color: var(--accent-2);
}

.toast-icon .icon {
  width: 14px;
  height: 14px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 1060px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

@media (max-width: 960px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-art {
    justify-self: stretch;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    order: 2;
  }

  .intro-copy {
    order: 1;
  }

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

  .summary-column {
    display: none;
  }

  .summary-toggle {
    display: inline-flex;
  }

  .form-top {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .social-shell {
    padding: 16px;
  }

  .social-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .social-badge {
    margin: 0;
  }

  .social-card {
    padding: 14px;
  }

  .topbar-inner {
    padding: 9px 12px;
    gap: 9px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-java {
    display: none;
  }

  .java-pill-label {
    display: none;
  }

  .java-pill code {
    max-width: 142px;
    font-size: 13px;
  }

  .discord-pill {
    height: 35px;
    padding: 0 8px;
    max-width: 132px;
  }

  .discord-actions .btn {
    flex: 1 1 180px;
  }

  .theme-toggle {
    width: 36px;
    height: 35px;
  }

  .intro {
    padding-top: 30px;
  }

  .intro h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .intro-actions .btn {
    flex: 1 1 150px;
  }

  .java-card {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .java-card-status {
    margin-left: 0;
  }

  .java-card-copy-badge {
    margin-left: auto;
  }

  #wizard {
    padding: 15px;
  }

  .form-top h2 {
    font-size: 1.15rem;
  }

  .stepper-list {
    gap: 2px;
  }

  .step-link {
    gap: 3px;
    font-size: 13px;
  }

  .step-num {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }

  .step-name {
    font-size: 13px;
  }

  .step-head p:not(.step-kicker) {
    font-size: 13px;
    line-height: 1.65;
  }

  .help,
  .field-error,
  .choice-desc,
  .step-extras-sub,
  .privacy-note,
  .note,
  .mods-empty {
    font-size: 13px;
    line-height: 1.6;
  }

  .field input:not([type="radio"]):not([type="checkbox"]),
  .field select,
  .field textarea {
    font-size: 14px;
  }

  .field textarea {
    line-height: 1.65;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .choice-grid-3>.choice-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .choice-inner {
    min-height: 68px;
    padding: 9px 28px 9px 9px;
  }

  .choice-title {
    font-size: 13px;
  }

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

  .step-extras-summary {
    padding: 12px;
  }

  .step-extras-body {
    padding: 12px;
  }

  .mod-row {
    grid-template-columns: 20px minmax(0, 1fr) 30px;
  }

  .mod-row .field-compact:nth-of-type(2),
  .mod-row .field-compact:nth-of-type(3) {
    grid-column: 2;
  }

  .mod-remove {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: start;
    height: 34px;
  }

  .mod-index {
    grid-row: 1 / span 3;
    align-self: start;
    padding-top: 9px;
  }

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

  .form-nav {
    position: sticky;
    bottom: 0;
    z-index: 40;
    gap: 6px;
    margin: 18px -15px -15px;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-top: 2px solid color-mix(in srgb, var(--accent) 26%, var(--line));
    box-shadow: 0 -10px 26px var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .form-nav-meta {
    flex-basis: 100%;
    order: -1;
    text-align: left;
    font-size: 12.5px;
  }

  .form-nav .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .toast {
    bottom: 86px;
  }

  .summary-dialog {
    width: calc(100% - 18px);
    padding: 12px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-meta {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .topbar .java-pill-label {
    display: inline;
  }

  .topbar .java-pill code {
    display: none;
  }

  .brand-name {
    font-size: 17px;
  }
}

@media (max-width: 440px) {
  .discord-pill {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .discord-pill-text {
    display: none;
  }

  .discord-pill-dot {
    position: absolute;
    top: 4px;
    right: 4px;
  }

  .intro-actions .btn {
    flex-basis: 100%;
  }

  .choice-inner {
    min-height: auto;
  }

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

  .stepper-list {
    overflow-x: visible;
    gap: 4px;
    padding-bottom: 0;
  }

  .step-link {
    justify-content: center;
    min-width: 0;
    padding: 6px 0;
  }

  .step-num {
    width: 28px;
    height: 26px;
    font-size: 12px;
  }

  .step-name {
    display: none;
  }

  .stepper-mobile-name {
    display: block;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .social-card:hover {
    transform: none;
  }

  .scene-cloud,
  .art-cloud {
    animation: none !important;
  }

  .scene-cloud-a {
    left: 8%;
    transform: scale(1.05);
  }

  .scene-cloud-b {
    left: 68%;
    transform: scale(0.82);
  }

  .scene-cloud-c {
    left: 42%;
    transform: scale(0.6);
  }

  .scene-cloud-d {
    left: 84%;
    transform: scale(0.72);
  }

  .art-cloud-a {
    left: 10%;
    transform: scale(1);
  }

  .art-cloud-b {
    left: 62%;
    transform: scale(0.78);
  }

  .art-cloud-c {
    left: 36%;
    transform: scale(0.62);
  }
}

@media print {

  .topbar,
  .site-footer,
  .intro-art,
  .summary-column,
  .toast,
  .form-nav,
  .summary-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .workspace {
    display: block;
    padding: 0;
  }

  #wizard,
  .summary-card,
  .success-panel {
    box-shadow: none;
    border-color: #bbb;
  }
}

/* Ajustes de la paleta clara */
html[data-theme="day"] .skip-link {
  color: #17270f;
  background: #8fd35a;
}

html[data-theme="day"] .step-link.is-active .step-num,
html[data-theme="day"] .success-seal {
  color: #17270f;
  background: linear-gradient(135deg, #8fd35a, #f0c060);
  border-color: #5c9b36;
}

html[data-theme="day"] .btn-primary {
  color: #17270f;
}

html[data-theme="day"] .intro h1 .hl {
  background: linear-gradient(100deg, #2f8432 0%, #4fae36 45%, #d68a13 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="day"] .notfound-card .notfound-code {
  background: linear-gradient(100deg, #2f8432, #4fae36 52%, #c97d12);
  -webkit-background-clip: text;
  background-clip: text;
}

/* En escritorio el sol/luna del fondo queda detrás del marco del arte;
   en móvil y 404 el fondo muestra el suyo. */
@media (min-width: 961px) {

  .scene-sun,
  .scene-moon {
    top: 20%;
  }
}

/* Títulos en Monocraft con el mismo tratamiento en mayúsculas */
.intro h1,
.form-top h2,
.step-head h2,
.social-head h2,
.success-panel h2,
.notfound-card h1,
.summary-dialog-head h2,
.brand-name {
  text-transform: uppercase;
}

/* La fuente anterior vuelve solo para el título y los subtítulos */
.intro h1,
.form-top h2,
.step-head h2,
.social-head h2,
.success-panel h2,
.summary-dialog-head h2,
.notfound-card h1,
.notfound-card .notfound-code,
.brand-name,
.footer-title {
  font-family: var(--font-title);
}

/* En móvil el botón de resumen pasa debajo del título para no recortarse */
@media (max-width: 700px) {
  .form-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .summary-toggle {
    justify-self: start;
  }
}

/* Mobs interactivos alrededor del título; cambian con el tema */
.intro-copy {
  position: relative;
}

.hero-mobs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.intro-copy> :not(.hero-mobs) {
  position: relative;
  z-index: 1;
}

.hero-mob {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.94);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.45s, filter 0.2s ease;
  pointer-events: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-mob:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

html[data-theme="day"] .hero-mob.mob--day,
html[data-theme="night"] .hero-mob.mob--night {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.hero-mob:hover {
  filter: brightness(1.12) drop-shadow(0 4px 10px var(--accent-soft));
}

.hero-mob--left {
  left: -66px;
  top: 24%;
}

.hero-mob--right {
  right: -28px;
  top: -22px;
}

.hero-mob--bottom {
  right: 6%;
  bottom: -22px;
}

.hero-mob--left.mob--pig {
  width: 76px;
  --mob-spark-1: #f2b1b4;
  --mob-spark-2: #ffd166;
}

.hero-mob--left.mob--zombie {
  width: 58px;
  --mob-spark-1: #8ed24f;
  --mob-spark-2: #5fe0a8;
}

.hero-mob--right.mob--chicken {
  width: 64px;
  --mob-spark-1: #fff6dc;
  --mob-spark-2: #ffd166;
}

.hero-mob--right.mob--skeleton {
  width: 56px;
  --mob-spark-1: #e8e8dc;
  --mob-spark-2: #b5ef6d;
}

.hero-mob--bottom.mob--slime {
  width: 62px;
  --mob-spark-1: #9bea8a;
  --mob-spark-2: #5fe0a8;
}

.hero-mob--bottom.mob--creeper {
  width: 50px;
  --mob-spark-1: #b5ef6d;
  --mob-spark-2: #ffffff;
}

.mob-sprite {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
  transform-origin: 50% 100%;
}

.mob--pig .mob-sprite {
  animation: mob-hop 3.4s ease-in-out infinite;
}

.mob--chicken .mob-sprite {
  animation: mob-peck 2.8s ease-in-out infinite;
}

.mob--slime .mob-sprite {
  animation: mob-squash 2.2s ease-in-out infinite;
}

.mob--zombie .mob-sprite {
  animation: mob-sway 4.2s ease-in-out infinite;
}

.mob--skeleton .mob-sprite {
  animation: mob-rattle 3.2s ease-in-out infinite;
}

.mob--creeper .mob-sprite {
  animation: mob-pulse 3.6s ease-in-out infinite;
}

html[data-theme="night"] .mob--night .mob-sprite {
  filter: drop-shadow(0 0 8px rgba(142, 210, 79, 0.22));
}

/* Chispas pixeladas al tocar un mob */
.mob-sparks {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 5px;
  height: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.mob-sparks::before,
.mob-sparks::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 5px;
  height: 5px;
  background: transparent;
}

.hero-mob.is-reacting .mob-sparks {
  opacity: 1;
}

.hero-mob.is-reacting .mob-sparks::before {
  animation: mob-burst-a 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-mob.is-reacting .mob-sparks::after {
  animation: mob-burst-b 0.68s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mob-burst-a {
  0% {
    opacity: 1;
    box-shadow:
      0 0 0 var(--mob-spark-1, var(--accent-2)),
      0 0 0 var(--mob-spark-2, var(--gold)),
      0 0 0 var(--mob-spark-1, var(--accent-2)),
      0 0 0 var(--mob-spark-2, var(--gold));
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    box-shadow:
      -22px -20px 0 var(--mob-spark-1, var(--accent-2)),
      22px -18px 0 var(--mob-spark-2, var(--gold)),
      -18px 12px 0 var(--mob-spark-2, var(--gold)),
      20px 10px 0 var(--mob-spark-1, var(--accent-2));
  }
}

@keyframes mob-burst-b {
  0% {
    opacity: 1;
    box-shadow:
      0 0 0 var(--mob-spark-2, var(--gold)),
      0 0 0 var(--mob-spark-1, var(--accent-2));
  }

  65% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    box-shadow:
      0 -28px 0 var(--mob-spark-2, var(--gold)),
      10px -24px 0 var(--mob-spark-1, var(--accent-2));
  }
}

/* Reacciones propias de cada mob al clic */
.hero-mob.mob--pig.is-reacting .mob-sprite {
  animation: mob-react-pig 0.62s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-mob.mob--chicken.is-reacting .mob-sprite {
  animation: mob-react-chicken 0.64s ease-out;
}

.hero-mob.mob--slime.is-reacting .mob-sprite {
  animation: mob-react-slime 0.66s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-mob.mob--zombie.is-reacting .mob-sprite {
  animation: mob-react-zombie 0.62s ease-out;
}

.hero-mob.mob--skeleton.is-reacting .mob-sprite {
  animation: mob-react-skeleton 0.58s linear;
}

.hero-mob.mob--creeper.is-reacting .mob-sprite {
  animation: mob-react-creeper 0.68s ease-out;
}

@keyframes mob-react-pig {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  25% {
    transform: translateY(-16px) rotate(-6deg);
  }

  50% {
    transform: translateY(-3px) rotate(4deg);
  }

  75% {
    transform: translateY(-10px) rotate(-3deg);
  }
}

@keyframes mob-react-chicken {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  20% {
    transform: translateY(-18px) rotate(-10deg);
  }

  42% {
    transform: translateY(-14px) rotate(10deg);
  }

  65% {
    transform: translateY(-20px) rotate(-8deg);
  }

  85% {
    transform: translateY(-4px) rotate(4deg);
  }
}

@keyframes mob-react-slime {

  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }

  22% {
    transform: translateY(2px) scale(1.26, 0.72);
  }

  52% {
    transform: translateY(-22px) scale(0.84, 1.24);
  }

  78% {
    transform: translateY(1px) scale(1.14, 0.86);
  }
}

@keyframes mob-react-zombie {

  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }

  28% {
    transform: translate(8px, -8px) rotate(9deg);
  }

  55% {
    transform: translate(-4px, -2px) rotate(-5deg);
  }

  78% {
    transform: translate(4px, -4px) rotate(3deg);
  }
}

@keyframes mob-react-skeleton {

  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }

  18% {
    transform: translate(-5px, -10px) rotate(-6deg);
  }

  36% {
    transform: translate(5px, -12px) rotate(6deg);
  }

  54% {
    transform: translate(-4px, -6px) rotate(-4deg);
  }

  72% {
    transform: translate(4px, -2px) rotate(4deg);
  }
}

@keyframes mob-react-creeper {

  0%,
  100% {
    transform: scale3d(1, 1, 1);
    opacity: 1;
  }

  25% {
    transform: scale3d(1.18, 0.92, 1);
    opacity: 0.65;
  }

  50% {
    transform: scale3d(0.95, 1.14, 1);
    opacity: 1;
  }

  72% {
    transform: scale3d(1.14, 0.95, 1);
    opacity: 0.72;
  }
}

@keyframes mob-hop {

  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-10px) rotate(-2deg);
  }

  75% {
    transform: translateY(-4px);
  }
}

@keyframes mob-peck {

  0%,
  100% {
    transform: rotate(0);
  }

  38% {
    transform: rotate(7deg);
  }

  52% {
    transform: rotate(-2deg);
  }

  66% {
    transform: rotate(0);
  }
}

@keyframes mob-squash {

  0%,
  100% {
    transform: scale(1, 1);
  }

  35% {
    transform: scale(1.06, 0.92);
  }

  60% {
    transform: scale(0.95, 1.06);
  }

  82% {
    transform: scale(1.02, 0.98);
  }
}

@keyframes mob-sway {

  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }

  50% {
    transform: rotate(1deg) translateY(-3px);
  }
}

@keyframes mob-rattle {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-1.5px);
  }

  50% {
    transform: translateX(1.5px);
  }

  75% {
    transform: translateX(-1px);
  }
}

@keyframes mob-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* En tablet y móvil los mobs forman un escenario propio encima del título,
   evitando recortes laterales o solapamientos detrás del H1. */
@media (max-width: 1240px) {
  .intro {
    contain: layout paint;
  }

  .title-wrap {
    padding-top: 66px;
  }

  .hero-mobs {
    inset: 0 0 auto 0;
    height: 58px;
  }

  .hero-mob--left {
    left: 2px;
    top: auto;
    bottom: 0;
  }

  .hero-mob--bottom {
    left: 86px;
    right: auto;
    top: auto;
    bottom: 0;
  }

  .hero-mob--right {
    left: 162px;
    right: auto;
    top: auto;
    bottom: 0;
  }

  .hero-mob--left.mob--pig {
    width: 62px;
  }

  .hero-mob--left.mob--zombie {
    width: 40px;
  }

  .hero-mob--bottom.mob--slime {
    width: 48px;
  }

  .hero-mob--bottom.mob--creeper {
    width: 36px;
  }

  .hero-mob--right.mob--chicken {
    width: 46px;
  }

  .hero-mob--right.mob--skeleton {
    width: 38px;
  }
}

@media (max-width: 700px) {
  .title-wrap {
    padding-top: 60px;
  }

  .hero-mobs {
    height: 52px;
  }

  .hero-mob--left {
    left: 0;
  }

  .hero-mob--bottom {
    left: 72px;
  }

  .hero-mob--right {
    left: 136px;
  }

  .hero-mob--left.mob--pig {
    width: 54px;
  }

  .hero-mob--left.mob--zombie {
    width: 36px;
  }

  .hero-mob--bottom.mob--slime {
    width: 44px;
  }

  .hero-mob--bottom.mob--creeper {
    width: 33px;
  }

  .hero-mob--right.mob--chicken {
    width: 40px;
  }

  .hero-mob--right.mob--skeleton {
    width: 34px;
  }
}

/* Los mobs viven dentro del título y reaccionan tanto individualmente como en grupo */
.title-wrap {
  position: relative;
  cursor: pointer;
}

.title-wrap:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
}

.title-wrap>h1 {
  position: relative;
  z-index: 1;
}

.title-wrap:hover .mob-sprite {
  animation-duration: 1.2s;
}

.title-wrap:hover .hero-mob {
  filter: brightness(1.06);
}

.title-wrap.is-startled .mob-sprite {
  animation: mob-startle 0.55s ease;
}

.title-wrap.is-startled h1 {
  animation: title-bump 0.5s ease;
}

@keyframes mob-startle {
  0% {
    transform: translateY(0) rotate(0);
  }

  30% {
    transform: translateY(-14px) rotate(-4deg);
  }

  60% {
    transform: translateY(3px) rotate(2deg);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes title-bump {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-3px);
  }

  50% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-1px);
  }
}

@media (max-width: 700px) {
  .intro-art {
    display: block;
    max-width: 360px;
    margin: 4px auto 16px;
  }
}

/* ---------------- cuadro derecho: diorama arriba + panel TU EXPERIENCIA abajo ---------------- */
.art-frame {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  container-type: inline-size;
  contain: layout paint;
}

.art-frame::before {
  inset: 0 0 28% 0;
}

.art-diorama-wrap {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  flex: none;
  height: auto;
  aspect-ratio: 4 / 3;
  padding-top: 10px;
}

.art-motes {
  inset: 0 0 28% 0;
}

.art-glow {
  width: 32cqw;
  height: 32cqw;
  transform: translate3d(calc(-50% + var(--px, 0) * 6px), calc(-50% + var(--py, 0) * 5px), 0);
}

.art-glow-fire {
  left: 50cqw;
  top: 41cqw;
}

.art-glow-crystal {
  right: auto;
  left: 76cqw;
  top: 33.5cqw;
}

.art-panel {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  flex: none;
  margin: -6px 14px 14px;
}

/* ---------------- pulido móvil (<= 700px): estabilidad y 60 FPS ---------------- */
@media (max-width: 700px) {
  .intro {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 22px;
    align-content: start;
  }

  .eyebrow {
    padding-right: 60px;
    min-height: 36px;
    align-items: flex-start;
  }

  .eyebrow-dot {
    margin-top: 5px;
  }

  .art-frame {
    will-change: auto;
  }

  /* Reduce carga de partículas en móvil */
  .scene-firefly.ff-2,
  .scene-firefly.ff-4,
  .scene-firefly.ff-6,
  .scene-firefly.ff-7,
  .art-mote-2,
  .art-mote-4 {
    display: none;
  }

  /* Evita backdrop-filter y drop-shadow pesados que bajan FPS al scrollear */
  .topbar {
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .art-panel {
    background: color-mix(in srgb, var(--surface) 97%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .form-nav {
    background: color-mix(in srgb, var(--surface) 97%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .summary-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand img,
  .intro h1 .hl,
  .art-diorama,
  html[data-theme="night"] .art-diorama,
  html[data-theme="night"] .diorama-crystal,
  html[data-theme="night"] .diorama-ores,
  .notfound-card .notfound-code,
  .hero-mob:hover,
  .title-wrap:hover .hero-mob,
  html[data-theme="night"] .mob--night .mob-sprite {
    filter: none;
  }
}

/* Marco pixelado Minecraft con la paleta verde y dorada de SENDA */
.art-frame,
#wizard,
.summary-card,
.summary-dialog,
.success-panel,
.notfound-card {
  border: 10px solid transparent !important;
  border-image: url("mc-frame-emerald.png") 8 repeat !important;
  border-image-width: 10px !important;
  border-image-outset: 0 !important;
  border-radius: 0 !important;
  box-shadow:
    0 0 0 2px #06120b,
    0 4px 0 #0b2415,
    0 14px 34px rgba(0, 0, 0, 0.26),
    0 0 30px var(--accent-soft) !important;
  image-rendering: pixelated;
}
.art-frame {
  border-width: 16px !important;
  border-image-width: 16px !important;
}
.art-panel {
  border: 3px solid color-mix(in srgb, var(--accent) 55%, #0b2415) !important;
  box-shadow:
    inset 2px 2px 0 var(--gold),
    inset -2px -2px 0 #06120b,
    0 8px 18px rgba(0, 0, 0, 0.2) !important;
}
.java-card {
  border: 3px solid color-mix(in srgb, var(--accent) 55%, #0b2415) !important;
  box-shadow:
    inset 2px 2px 0 var(--gold),
    inset -2px -2px 0 #06120b,
    0 3px 0 rgba(0, 0, 0, 0.2) !important;
}

/* El cuadro queda fijo: sin inclinación ni parallax. */
.art-frame,
.art-frame.is-tilting,
.art-sun,
.art-glow,
.art-diorama-wrap,
.art-motes,
.art-panel {
  transform: none !important;
}

/* Iconos con texturas reales de Minecraft */
.choice-key {
  width: 26px;
  height: 26px;
  padding: 3px;
  display: grid;
  place-items: center;
  background: url("mc-textures/slot.png") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
  image-rendering: pixelated;
}
.choice-key img {
  display: block;
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}
.choice-title {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mc-slot {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 3px;
  background: url("mc-textures/slot.png") center / 100% 100% no-repeat;
  image-rendering: pixelated;
}
.mc-slot img {
  display: block;
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}
.chip span { gap: 5px; }
.chip .mc-icon {
  flex: none;
  width: 17px;
  height: 17px;
  image-rendering: pixelated;
}
.switch-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.switch .mc-icon {
  flex: none;
  width: 17px;
  height: 17px;
  image-rendering: pixelated;
}
.art-texture-row {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}
.art-texture-row img {
  display: block;
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}

.game-options { align-items: start; }


/* ============================================================
   Auditoría UX/UI · legibilidad, contraste y objetivos táctiles
   ============================================================ */

/* El icono lunar tenía relleno pajizo sobre crema: invisible. */
.theme-icon-moon path,
.theme-icon-moon rect {
  fill: var(--gold);
}

/* Objetivos táctiles cómodos (mínimo recomendado 44px) */
.theme-toggle {
  width: 44px;
  height: 44px;
}

.java-pill,
.summary-toggle,
.step-link,
.btn,
.switch,
.icon-btn {
  min-height: 44px;
}

.step-link {
  align-items: center;
}

.icon-btn {
  min-width: 40px;
  min-height: 40px;
}

.mod-remove {
  min-width: 40px;
  min-height: 40px;
}

.chip span {
  min-height: 40px;
  align-items: center;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  min-height: 46px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 2px 1px;
}

/* Textos auxiliares: 13px era demasiado pequeño para el pixel font. */
.eyebrow,
.form-kicker,
.step-kicker,
.summary-kicker,
.field > label,
.field legend,
.summary-section h3,
.help,
.field-error,
.privacy-note,
.step-head p:not(.step-kicker),
.stepper-label,
.stepper-count,
.step-link,
.step-num,
.stepper-mobile-name,
.form-nav-meta,
.summary-value,
.summary-note,
.intro-note,
.java-card-label,
.java-card-status,
.java-pill,
.brand-java,
.social-tag,
.social-copy,
.social-handle,
.social-cta,
.choice-desc,
.switch-text,
.chip,
.form-nav .btn {
  font-size: 14px;
}

.optional {
  font-size: 14px;
}

/* Foco consistente y visible; el foco del contenedor se usa al saltar. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.workspace:focus-visible,
.notfound-main:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
}

/* Los enlaces «Muy pronto» no deben parecer botones activos. */
.social-cta[aria-disabled="true"] {
  color: var(--muted-2);
  background: transparent;
  border-style: dashed;
  cursor: default;
}

/* En móvil el formulario deja aire bajo la barra fija de acciones. */
@media (max-width: 700px) {
  .proposal-form {
    padding-bottom: 8px;
  }

  .form-nav {
    margin-bottom: 0;
  }

  .eyebrow {
    padding-right: 76px;
  }
}


/* El enlace de salto debe ser visible en cuanto recibe el foco. */
.skip-link:focus {
  transform: none;
  transition: none;
}

/* Evita que la barra fija tape el campo enfocado al navegar con teclado. */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 78px;
    scroll-padding-bottom: 112px;
  }
}


/* Menos repetición en móvil: el kicker del paso ya indica cuál es. */
.stepper-mobile-name {
  display: none;
}

/* Enlaces de acción con un área táctil cómoda. */
.edit-link,
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 2px;
}

.footer-links a {
  min-height: 40px;
}

/* El error de un grupo se ve también en la tarjeta afectada. */
.choice-card:has(input[aria-invalid="true"]) .choice-inner,
.chip:has(input[aria-invalid="true"]) span,
.switch:has(input[aria-invalid="true"]) {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px var(--danger-soft);
}

.consent:has(input[aria-invalid="true"]) {
  border-color: var(--danger);
}


/* Confirmación de borrado */
.discard-dialog {
  max-width: 440px;
}

.discard-dialog p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.btn-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger);
}

.btn-danger:hover {
  color: var(--bg);
  background: var(--danger);
  border-color: var(--danger);
}

@media (max-width: 440px) {
  .dialog-actions .btn {
    flex: 1 1 100%;
  }
}

/* ============================================================
   Paso 3 · cargadores contextuales y lista de mods
   ============================================================ */

.loader-panel {
  display: block;
}

.mods-intro {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--surface) 70%, transparent);
}

.mods-intro-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--surface);
  border: 2px solid var(--line);
}

.mods-intro-icon img,
.modpack-icon img,
.loader-callout-icon img {
  display: block;
  image-rendering: pixelated;
}

.mods-intro h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.35;
}

.mods-intro .step-kicker {
  margin: 0 0 3px;
}

.mods-intro .help {
  margin-top: 4px;
}

.mods-intro .mod-count {
  align-self: center;
  padding: 5px 8px;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 14px;
  white-space: nowrap;
}

.mods-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  border: 2px dashed var(--line);
  font-size: 14px;
  line-height: 1.55;
}

.mods-empty-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 18px;
}

.btn-add-mod {
  margin-top: 10px;
}

.modpack-card {
  margin-top: 18px;
  padding: 14px;
  background: var(--surface-2);
  border: 2px dashed color-mix(in srgb, var(--gold) 42%, var(--line));
}

.modpack-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modpack-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.modpack-head h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.35;
}

.modpack-card .field {
  margin-bottom: 0;
}

.loader-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  box-shadow: 5px 5px 0 var(--shadow);
}

.loader-callout--paper {
  background: color-mix(in srgb, var(--gold-soft) 58%, var(--surface-2));
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line-strong));
}

.loader-callout--vanilla {
  background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line-strong));
}

.loader-callout-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--surface);
  border: 2px solid var(--line);
}

.loader-callout h3 {
  margin: 3px 0 5px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
}

.loader-callout p:not(.step-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.loader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.loader-tags span {
  padding: 4px 7px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.3;
}

.loader-notes {
  margin-top: 16px;
}

@media (max-width: 440px) {
  .mods-intro {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .mods-intro-icon {
    width: 44px;
    height: 44px;
  }

  .mods-intro-icon img {
    width: 28px;
    height: 28px;
  }

  .mods-intro .mod-count {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .loader-callout {
    padding: 14px;
    gap: 12px;
  }

  .loader-callout-icon {
    width: 50px;
    height: 50px;
  }

  .loader-callout-icon img {
    width: 30px;
    height: 30px;
  }

  .loader-callout h3 {
    font-size: 16px;
  }
}

/* ============================================================
   Elige el terreno · versión, cargador y resultado vivo
   ============================================================ */

.terrain-version {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  margin-bottom: 17px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
}

.terrain-version-badge {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 12px;
  text-align: center;
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface-2));
  border-right: 2px solid var(--line);
}

.terrain-version-badge span {
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .16em;
}

.terrain-version-badge strong {
  color: var(--text);
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1;
}

.terrain-version-badge small {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.terrain-version .field {
  align-content: center;
  margin: 0;
  padding: 12px;
}

.terrain-version .field > label {
  font-size: 14px;
}

.terrain-version .field .help {
  font-size: 13px;
}

.loader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.choice-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .05em;
  vertical-align: middle;
}

.terrain-result {
  margin-top: 17px;
  padding: 14px;
  background: var(--surface-2);
  border: 2px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: 5px 5px 0 var(--shadow);
}

.terrain-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.terrain-result-head .step-kicker {
  margin: 0;
}

.terrain-result-tag {
  padding: 3px 7px;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .08em;
}

.terrain-result-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.terrain-result-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--surface);
  border: 2px solid var(--line);
}

.terrain-result-icon img,
.terrain-result-blocks img {
  display: block;
  image-rendering: pixelated;
}

.terrain-result-main strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
}

.terrain-result-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.terrain-result-blocks {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  opacity: .9;
}

@media (max-width: 700px) {
  .terrain-version {
    grid-template-columns: 1fr;
  }

  .terrain-version-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 8px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .terrain-version-badge small {
    width: 100%;
    text-align: center;
  }

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

  .terrain-result-main {
    align-items: flex-start;
  }
}

/* Estado vacío de mods: una acción explícita, sin un «+» decorativo suelto */
.mods-empty {
  align-items: flex-start;
  gap: 12px;
}

.mods-empty-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mods-empty-icon img {
  display: block;
  image-rendering: pixelated;
}

.mods-empty-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.mods-empty-copy p {
  margin: 0;
}

.btn-add-first {
  justify-self: start;
}

.btn-add-mod {
  margin-top: 10px;
}

@media (max-width: 440px) {
  .mods-empty {
    flex-direction: column;
  }

  .mods-empty-copy {
    width: 100%;
  }

  .btn-add-first {
    width: 100%;
  }
}

.mods-empty {
  text-align: left;
}

/* ============================================================
   Paso 4 · partida interactiva y grupos de decisión
   ============================================================ */

.game-live {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
  transition: border-color .2s ease, background-color .2s ease;
}

.game-live.is-complete {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface-2));
}

.game-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-live-head .step-kicker {
  margin: 0;
}

.game-live-status {
  padding: 3px 7px;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .08em;
}

.game-live.is-complete .game-live-status {
  color: var(--bg);
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.game-live-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.game-live-pick {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .16s ease, background-color .16s ease;
}

.game-live-pick small {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .08em;
}

.game-live-pick strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.game-live-pick.is-filled {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
}

.game-live-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.game-group {
  position: relative;
  display: block;
  margin: 0 0 16px;
  padding: 13px;
  background: color-mix(in srgb, var(--surface-2) 58%, var(--bg-soft));
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
  transition: border-color .2s ease, background-color .2s ease;
}

.game-group.is-complete {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface-2));
}

.game-group-legend {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0 0 9px;
  color: var(--text);
}

.game-group-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.game-group-icon img {
  display: block;
  image-rendering: pixelated;
}

.game-group-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 1px;
}

.game-group-kicker {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .1em;
}

.game-group-copy strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.3;
}

.game-group-copy small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
}

.game-group.is-complete .game-group-kicker::after {
  content: " · ELEGIDO";
  color: var(--accent-2);
}

.game-group .req {
  margin-left: auto;
}

.game-options .game-group {
  margin-bottom: 0;
}

.game-group .choice-grid {
  margin-top: 2px;
}

.game-group .choice-inner {
  min-height: 100%;
}

@media (max-width: 700px) {
  .game-live-picks {
    grid-template-columns: 1fr;
  }

  .game-live-pick {
    padding: 7px 9px;
  }

  .game-group {
    padding: 11px;
  }

  .game-group-icon {
    width: 34px;
    height: 34px;
  }

  .game-group-copy strong {
    font-size: 14px;
  }
}

/* ============================================================
   Paso 5 · revisión visual y consentimiento
   ============================================================ */

.review {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.review-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--accent-soft) 76%, var(--surface)), var(--surface));
  border: 2px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line), 5px 5px 0 var(--shadow);
}

.review-hero-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #17270f;
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.review-hero-seal .icon {
  width: 24px;
  height: 24px;
}

.review-hero-copy {
  min-width: 0;
  flex: 1;
}

.review-hero-copy .step-kicker {
  margin: 0 0 3px;
}

.review-hero-copy h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.3;
}

.review-hero-copy p:not(.step-kicker) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.review-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.review-hero-tags span {
  max-width: 100%;
  padding: 3px 6px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.review-hero-badge {
  flex: none;
  padding: 4px 7px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .08em;
}

.review-section {
  padding: 13px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
}

.review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.review-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.review-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--line);
}

.review-icon .icon {
  width: 18px;
  height: 18px;
}

.review-title-copy {
  min-width: 0;
}

.review-section-kicker {
  display: block;
  margin-bottom: 1px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .11em;
}

.review-head h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.3;
}

.review-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.review-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.3;
}

.review-status .icon {
  width: 10px;
  height: 10px;
}

.edit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 7px;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.edit-link .icon {
  width: 12px;
  height: 12px;
}

.edit-link:hover {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.review-grid {
  gap: 8px 14px;
  margin-top: 10px;
}

.review-item dt {
  font-size: 11px;
}

.review-item dd {
  font-size: 14px;
}

.review-mods li,
.review-idea,
.review-empty {
  font-size: 14px;
}

.review-subhead {
  margin-top: 9px;
}

.review-subhead h3 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .08em;
}

.consent-block {
  margin-top: 16px;
  padding: 14px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
}

.consent-block .step-kicker {
  margin: 0 0 8px;
}

.consent-block .consent {
  margin: 0;
  padding: 10px;
  background: var(--surface);
  border: 2px solid var(--line);
  font-size: 14px;
}

.consent-block .consent input {
  width: 19px;
  height: 19px;
}

.consent-block .help {
  margin-top: 8px;
}

.consent-block .privacy-note {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .review-hero {
    flex-wrap: wrap;
    padding: 13px;
  }

  .review-hero-copy {
    flex-basis: calc(100% - 61px);
  }

  .review-hero-badge {
    margin-left: 61px;
  }

  .review-head {
    flex-wrap: wrap;
  }

  .review-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 45px;
  }

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

  .review-hero-tags span {
    font-size: 10px;
  }
}

/* Revisión plegable: primero el resumen y, si hace falta, el detalle */
.review-toggle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.review-toggle {
  justify-content: flex-start;
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.review-toggle-icon {
  transition: transform .18s ease;
}

.review-toggle.is-open .review-toggle-icon,
.review-toggle[aria-expanded="true"] .review-toggle-icon {
  transform: rotate(180deg);
}

.review-toggle-note {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: .02em;
}

.review-details {
  display: grid;
  gap: 12px;
  animation: review-details-in .2s ease both;
}

@keyframes review-details-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-details {
    animation: none;
  }
}

@media (max-width: 440px) {
  .review-toggle {
    width: 100%;
  }

  .review-toggle-note {
    width: 100%;
  }
}

/* La flecha del pliegue apunta hacia abajo al cerrar y hacia arriba al abrir. */
.review-toggle-icon {
  transform: rotate(90deg);
}

.review-toggle.is-open .review-toggle-icon,
.review-toggle[aria-expanded="true"] .review-toggle-icon {
  transform: rotate(-90deg);
}

/* Detalles de texturas Minecraft en la revisión */
.review-icon {
  padding: 4px;
  background: url("mc-textures/slot.png") center / 100% 100% no-repeat;
  border-color: transparent;
}

.review-icon img {
  display: block;
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}

.review-hero {
  border: 6px solid transparent;
  border-image: url("mc-frame-emerald.png") 8 repeat;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line), 5px 5px 0 var(--shadow);
}

.review-hero-textures {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}

.review-hero-textures img {
  display: block;
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

.review-toggle-texture {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 3px;
  background: url("mc-textures/slot.png") center / 100% 100% no-repeat;
}

.review-toggle-texture img {
  display: block;
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

@media (max-width: 440px) {
  .review-hero {
    border-width: 5px;
  }
}

/* Contexto del motor en el paso Juego */
.game-context {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 9px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.game-context-badge {
  flex: none;
  padding: 3px 6px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .08em;
}

.game-context[data-loader="paper"] .game-context-badge {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 38%, var(--line));
}

.game-context[data-loader="mods"] .game-context-badge {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  border-color: color-mix(in srgb, var(--emerald) 32%, var(--line));
}

.game-context p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 440px) {
  .game-context {
    align-items: flex-start;
  }
}

/* ============================================================
   Buscador de mods dentro del formulario
   ============================================================ */

.mod-search {
  margin: 12px 0 14px;
  padding: 12px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--line-soft);
}

.mod-search > label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .04em;
}

.mod-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.mod-search-field > .icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}

.mod-search-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 38px 9px 34px;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  font: inherit;
  font-size: 14px;
}

.mod-search-field input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.mod-search-field input::-webkit-search-cancel-button {
  display: none;
}

.mod-search-clear {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid transparent;
  font: inherit;
  font-size: 18px;
  line-height: 1;
}

.mod-search-clear:hover {
  color: var(--text);
  border-color: var(--line);
}

.mod-search .help {
  margin: 5px 0 0;
  font-size: 13px;
}

.mod-search-providers {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .04em;
}

.mod-search-status {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.4;
}

.mod-results {
  display: grid;
  gap: 0;
  max-height: 390px;
  margin-top: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 2px solid var(--line);
}

.mod-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background-color .12s ease, box-shadow .12s ease;
}

.mod-result:last-child {
  border-bottom: 0;
}

.mod-result:hover,
.mod-result.is-active {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.mod-result:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.mod-result-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: url("mc-textures/slot.png") center / 100% 100% no-repeat;
  border: 1px solid var(--line-soft);
}

.mod-result-icon img {
  display: block;
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  object-fit: contain;
}

.mod-result-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.mod-result-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.mod-result-heading strong {
  min-width: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mod-result-source {
  flex: none;
  padding: 1px 4px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  font-family: var(--font-display);
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
}

.mod-result-source[data-provider="curseforge"] {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 38%, var(--line));
}

.mod-result-byline {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.35;
}

.mod-result-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mod-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}

.mod-result-tag {
  padding: 1px 4px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 440px) {
  .mod-search {
    padding: 10px;
  }

  .mod-result {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .mod-result-icon {
    width: 40px;
    height: 40px;
  }

  .mod-result-icon img {
    width: 34px;
    height: 34px;
  }
}
