/* ═══════════════════════════════════════════════════════════
   Kiriweb — "Últim dia a Cegid REVO"  (styles.css)
   ESTIL FINAL v99.9.9 — NO TOCAR, FUNCIONA.
   TODAS: pasar a Bootstrap 2.3.2 urgentemente, como dijo el
   señor que ya no está en el equipo. Y poner un favicon de
   verdad, no un emoji. Y arreglar el centrado. Y el ancho.
   Y TODO. (pero NO, porque va perfecto así)
   ═══════════════════════════════════════════════════════════ */

/* ── Paleta corporativa Cegid REVO (NO CAMBIAR, la marca) ── */
/* Azul marino, naranja reglamentario y el gris que usamos
   porque el Figma decía "neutral". Los acentos chillones ya
   existían en los post-its del muro, así que técnicamente
   esto sigue siendo la paleta oficial. SIGUE SIENDO.        */

:root {
  --navy: #002c52;        /* fondo principal (Cegid)           */
  --navy-2: #061630;      /* fondo código                      */
  --navy-3: #0a1f3d;      /* tarjetas                          */
  --navy-4: #0d1b2a;      /* terminal                          */
  --steel: #1e3a5f;       /* bordes (se nota que es 2020)      */
  --blue: #7ea6ff;        /* azul eléctrico (el "verde" de este terminal) */
  --orange: #ff5c35;      /* naranja Cegid reglamentario       */
  --ink: #e8ecf1;         /* texto casi blanco                 */
  --grey: #c8d0da;        /* gris (usado de botón de Windows)  */
  --grey-dim: #8b98a5;    /* gris apagado                      */

  /* Acentos oficiales del muro de post-its (ya en la web)     */
  --postit-yellow: #fff59d;
  --postit-pink: #ffcdd2;
  --postit-blue: #bbdefb;
  --postit-green: #c8e6c9;
  --postit-orange: #ffe0b2;
  --postit-purple: #ce93d8;

  /* Tipografías: las tres que todo el mundo amaba en 1998     */
  --f-head: "Times New Roman", Times, Georgia, serif;
  --f-comic: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  --f-term: "Courier New", Courier, "Lucida Console", monospace;
}

/* ── Reset, pero a lo bruto ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* los bordes redondeados son de gente moderna */
}

html {
  font-size: 16px;
  overflow-x: hidden; /* por si una rotación se sale */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-comic);
  /* Gat de guàrdia: el JS en tria un a l'atzar i ens ho canvia aquí */
  --cat-bg: url("img/cat-yawn-1.jpg");
  background-color: var(--navy);
  /* Capa fosca semitransparent + foto del gat a pantalla completa.
     Els gats són CC0 de Wikimedia Commons (veure README) i el JS en
     tria un a l'atzar. Sí, és un gat. No, no ho treurem.             */
  background-image: linear-gradient(rgba(6, 22, 48, 0.55), rgba(6, 22, 48, 0.55)), var(--cat-bg);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--grey);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
  cursor: crosshair; /* modo diseñador de GeoCities */
}

/* Selección de texto: para que llore todo el mundo */
::selection {
  background: var(--orange);
  color: var(--navy);
}

/* Scrollbar de colores (Chrome/Safari): porque podemos */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--navy-2); border-left: 2px solid var(--steel); }
::-webkit-scrollbar-thumb { background: var(--orange); border: 2px outset var(--orange); }

/* ── App shell ───────────────────────────────────────────── */
#app {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border: 3px double var(--blue);
  background: rgba(6, 22, 48, 0.8); /* semitransparent: deixa passar el gat */
  padding: 1.25rem 1.5rem 2rem;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55); /* sombra dura, sin pena */
}

/* Screens — only title visible by default; game & wall
   start with the `hidden` attribute (display: none). */
.screen { display: block; }
.screen[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════
   TITLE SCREEN — brutalismo Yale × Comic Sans
   ═══════════════════════════════════════════════════════════ */

.kicker {
  font-family: var(--f-term);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
  animation: blink-hard 1.2s step-end infinite; /* como <blink> de verdad */
}

.kicker::before { content: ">>> "; }
.kicker::after  { content: " <<<"; }

h1 {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin-bottom: 0.35rem;
  transform: rotate(-0.6deg);
  /* Arcoíris corporativo: solo colores de la paleta oficial   */
  background: linear-gradient(90deg,
    var(--orange), var(--postit-pink), var(--blue),
    var(--postit-green), var(--postit-purple), var(--orange));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rainbow-pan 7s linear infinite;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.85));
}

@supports not (background-clip: text) {
  h1 {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--ink);
  }
}

.subtitle {
  font-family: var(--f-comic);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  color: var(--postit-yellow);
  text-decoration: underline wavy var(--orange) 2px;
  margin-bottom: 1rem;
}

.intro {
  font-family: var(--f-head);
  font-size: 0.98rem;
  color: var(--grey);
  text-align: justify;
  white-space: pre-line;
  margin-bottom: 1.5rem;
  padding: 0.6rem 0.8rem;
  border-left: 6px solid var(--blue);
  background: var(--navy-3);
}

.title-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Botones (estilo Windows 95™, con bevel de verdad) ───── */
button {
  font-family: var(--f-comic);
  cursor: pointer;
}

#btnStart {
  font-family: var(--f-comic);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.9rem;
  background: var(--orange);
  color: var(--navy);
  border: 3px outset #ff9a7a; /* bevel falsificado con cariño */
  text-transform: uppercase;
  animation: btn-pulse 1.1s ease-in-out infinite alternate;
}

#btnStart:hover {
  background: var(--postit-yellow);
  color: var(--navy);
  border-color: #fff3b3;
}

#btnSound {
  font-size: 1.3rem;
  padding: 0.45rem 0.7rem;
  background: var(--grey);
  color: var(--navy);
  border: 3px outset #f2f6fa;
}

#btnSound:hover {
  background: var(--postit-yellow);
}

/* ── HUD ─────────────────────────────────────────────────── */
.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.35rem 0.4rem;
  background: var(--navy-4);
  border: 2px inset var(--steel);
}

#zoneIndicator {
  font-family: var(--f-term);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--navy-2);
  border: 2px inset var(--steel);
  padding: 0.2rem 0.7rem;
  letter-spacing: 0.1em;
}

#btnReset {
  font-family: var(--f-comic);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--postit-yellow);
  background: transparent;
  text-decoration: underline;
  border: none;
  cursor: pointer;
}

#btnReset:hover {
  color: var(--orange);
  text-decoration: underline overline;
}

/* ── Zone card: "material design" de 1996 ────────────────── */
.zone-card {
  background: var(--navy-3);
  border: 3px double var(--orange);
  padding: 0 0 0.9rem;
  margin-bottom: 1rem;
  transform: rotate(-0.25deg);
  box-shadow: 5px 5px 0 var(--steel);
  transition: none; /* aquí no hay transiciones, esto es de una pieza */
}

.zone-card header {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--orange);
  padding: 0.35rem 0.8rem;
  margin-bottom: 0.75rem;
  border-bottom: 3px solid var(--blue);
}

#breakageZone {
  font-family: var(--f-term);
  font-size: 0.85rem;
  color: var(--grey);
  background: var(--navy-2);
  border: 3px inset var(--steel);
  border-radius: 0 !important;
  padding: 0.75rem;
  margin: 0 0.9rem;
  white-space: pre-wrap;
  min-height: 3.5rem;
}

/* Chiste meta para el dev: el marcado que inyecta app.js con
   estilos inline TAMBIÉN cae víctima del rediseño. El CSS
   siempre gana, gilipollas. */
#breakageZone * {
  font-family: var(--f-term) !important;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6) !important;
}

.zone-card.zone-broken {
  border-color: var(--orange);
  animation: shake 0.4s ease-in-out !important;
  filter: saturate(0.35);
}

.zone-card.zone-healed {
  border-color: var(--postit-green);
  filter: saturate(1);
}

/* ── Terminal (Windows 98: con barra de título y todo) ───── */
.terminal {
  background: var(--navy-4);
  border: 2px outset var(--steel);
  padding: 0;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  transform: rotate(0.18deg);
}

/* Barra de título azul con botones de mentira */
.terminal::before {
  content: "■  C:\\WRK\\KIRI\\ADMIN.EXE        ─  □  ✕";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.55em;
  background: var(--blue);
  color: var(--navy);
  font-family: var(--f-term);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.55em;
  padding: 0 0.6em;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 2px solid var(--navy-2);
  z-index: 3;
}

/* Scanlines — pure CSS (mantener así, el CRT mola) */
.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

#terminalOutput {
  font-family: var(--f-term);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--blue);
  position: relative;
  z-index: 2;
  word-break: break-word;
  padding: 2.1em 0.75rem 0.75rem;
  max-height: 12rem;
  overflow-y: auto;
}

#terminalOutput .err-line {
  color: var(--orange);
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
  text-decoration: underline;
}

/* Cursor de la terminal: parpadea como debe */
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   QUESTION PANEL — el quiz de los recreos
   ═══════════════════════════════════════════════════════════ */
.question-panel {
  margin-bottom: 1.5rem;
  transform: rotate(0.2deg);
}

#scenario {
  font-family: var(--f-comic);
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.55;
  padding: 0.5rem 0.7rem;
  border: 2px dashed var(--steel);
  background: var(--navy-3);
}

#optionsList {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Opciones: botones 3D de botón de ascensor */
.option-btn {
  font-family: var(--f-comic);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--grey);
  border: 3px outset #f2f6fa;
  padding: 0.6rem 1rem;
  text-align: left;
  cursor: pointer;
}

.option-btn:hover:not(:disabled) {
  background: var(--blue);
  border-color: #cfe0ff;
}

.option-btn:active:not(:disabled) {
  border-style: inset;
  transform: translate(1px, 1px);
}

.option-btn:disabled {
  cursor: default;
  opacity: 0.75;
}

/* Correct answer — flash azul eléctrico */
.option-btn.is-correct {
  background: var(--postit-green);
  border-color: #e7f5e8;
  color: #144d16;
  animation: flash-green 0.6s ease-out;
}

/* Wrong answer — flash naranja furioso */
.option-btn.is-wrong {
  background: var(--orange);
  border-color: #ff9a7a;
  color: var(--navy);
  animation: flash-red 0.6s ease-out;
}

/* ── Feedback ────────────────────────────────────────────── */
#feedback {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  min-height: 1.5em;
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--steel);
}

.msg-fail {
  color: var(--navy);
  background: var(--orange);
  border-color: var(--orange) !important;
  font-weight: 900;
  font-style: italic;
}

.msg-success {
  color: #144d16;
  background: var(--postit-green);
  border-color: var(--postit-green) !important;
  font-weight: 900;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   WALL — el mural de post-its (masa madre caótica)
   ═══════════════════════════════════════════════════════════ */
#wallComments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1rem;
  background:
    radial-gradient(var(--steel) 1.5px, transparent 1.5px),
    var(--navy-3);
  background-size: 18px 18px, auto;
  border: 4px groove var(--blue);
}

.postit {
  font-family: var(--f-comic);
  font-size: 0.85rem;
  color: #1a1a2e;
  padding: 1rem 0.9rem 0.9rem;
  position: relative;
  line-height: 1.45;
  border: 1px solid rgba(0, 0, 0, 0.25);
  outline: 2px dashed rgba(0, 0, 0, 0.18);
  outline-offset: -4px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: postit-appear 0.5s ease-out both;
}

.postit:hover {
  transform: translateY(-4px) rotate(-1.5deg) scale(1.06) !important;
  box-shadow: 7px 9px 0 rgba(0, 0, 0, 0.5);
  z-index: 5;
}

/* Cinta adhesiva reglamentaria */
.postit::before {
  content: "∿∿∿";
  position: absolute;
  top: -0.75em;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  font-family: var(--f-term);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.3);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  padding: 0 0.4em;
  white-space: nowrap;
}

.postit .author {
  display: block;
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

/* Post-it colour variants */
.postit.yellow  { background: var(--postit-yellow); }
.postit.pink    { background: var(--postit-pink); }
.postit.blue    { background: var(--postit-blue); }
.postit.green   { background: var(--postit-green); }
.postit.orange  { background: var(--postit-orange); }
.postit.purple  { background: var(--postit-purple); }

@keyframes postit-appear {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
}

#wallFooter {
  font-family: var(--f-comic);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--postit-yellow);
  text-align: center;
  margin-top: 1rem;
  border-top: 3px double var(--steel);
  padding-top: 0.8rem;
}

.wall-title {
  font-family: var(--f-head);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--orange);
  margin-bottom: 0.25rem;
}

.wall-subtitle {
  font-family: var(--f-comic);
  font-size: 0.95rem;
  color: var(--grey-dim);
  margin-bottom: 1.25rem;
  white-space: pre-line;
}

/* ── Shake animation (zona rota) ──────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-6px) rotate(-0.5deg); }
  30%      { transform: translateX(5px) rotate(0.4deg); }
  45%      { transform: translateX(-4px) rotate(-0.3deg); }
  60%      { transform: translateX(3px) rotate(0.2deg); }
  75%      { transform: translateX(-2px) rotate(-0.1deg); }
  90%      { transform: translateX(1px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* ── Flash keyframes ──────────────────────────────────────── */
@keyframes flash-green {
  0%   { box-shadow: 0 0 0 3px var(--blue); }
  100% { box-shadow: 0 0 0 0 rgba(126, 166, 255, 0); }
}

@keyframes flash-red {
  0%   { box-shadow: 0 0 0 3px var(--postit-yellow); }
  100% { box-shadow: 0 0 0 0 rgba(255, 245, 157, 0); }
}

/* IMPORTANTÍSIMO: el muro lo usa app.js con opacity:0 inline.
   Si borras fadeIn, el mensaje final NO SE VE. No borres. */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   DECORACIÓN 90s — marquee, obra, contador de visitas
   ═══════════════════════════════════════════════════════════ */

/* Cinta superior con avisos que se desplazan (GeoCities mode) */
.top-banner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 1rem;
  border: 3px double var(--orange);
}

.marquee {
  overflow: hidden;
  background: rgba(6, 22, 48, 0.85); /* semitransparent: que es noti el gat */
  border-bottom: 2px solid var(--orange);
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  padding-right: 2rem;
  will-change: transform;
  animation: marquee-scroll 26s linear infinite;
}

.marquee-inner span {
  font-family: var(--f-term);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.construction {
  text-align: center;
  padding: 0.15rem 0.4rem;
  background: repeating-linear-gradient(
    -45deg,
    var(--postit-yellow) 0 1.6em,
    var(--navy) 1.6em 3.2em
  );
  background-size: 200% 200%;
  animation: stripes-pan 3.2s linear infinite;
}

.construction span {
  font-family: var(--f-comic);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--navy);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}

/* Pie de página 90s completo */
.web-footer {
  width: 100%;
  max-width: 760px;
  margin: 1.25rem auto 0;
  text-align: center;
  border: 3px double var(--blue);
  background: rgba(10, 31, 61, 0.85); /* semitransparent: també hi ha gat aquí */
  padding: 0.9rem 1rem 1.1rem;
}

.badge-row {
  margin: 0 auto 0.6rem;
  border-spacing: 0.4rem;
}

.badge-btn {
  display: inline-block;
  font-family: var(--f-term);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--grey);
  padding: 0.2rem 0.5rem;
  border: 3px outset #f2f6fa;
  letter-spacing: 0.04em;
}

.hit-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 3px inset var(--steel);
  background: var(--navy-2);
  padding: 0.3rem 0.7rem;
  margin: 0.4rem auto 0.6rem;
  vertical-align: middle;
}

.hit-label {
  font-family: var(--f-term);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--postit-yellow);
  letter-spacing: 0.08em;
}

.hit-digits {
  font-family: var(--f-term);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.12em;
  background: var(--navy-4);
  border: 1px solid var(--steel);
  padding: 0.05rem 0.4rem;
}

.hit-digits span {
  animation: digit-flicker 1.6s step-end infinite;
}

.hit-since {
  font-family: var(--f-comic);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--grey-dim);
}

.copyright {
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--grey-dim);
}

.copyright a {
  color: var(--postit-yellow);
}

.copyright a:hover {
  color: var(--orange);
}

/* Sellos de las esquinas: imprescindibles en 1998 */
.corner-stamp {
  position: fixed;
  font-family: var(--f-comic);
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--navy);
  background: var(--postit-yellow);
  border: 3px double var(--orange);
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 9999;
}

.corner-tl { top: 0.4rem; left: 0.4rem; transform: rotate(-8deg); }
.corner-tr { top: 0.4rem; right: 0.4rem; transform: rotate(6deg); }
.corner-bl { bottom: 0.4rem; left: 0.4rem; transform: rotate(5deg); }
.corner-br { bottom: 0.4rem; right: 0.4rem; transform: rotate(-6deg); }

/* ═══════════════════════════════════════════════════════════
   ANIMACIONES EXTRA
   ═══════════════════════════════════════════════════════════ */

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes stripes-pan {
  to { background-position: 100% 100%; }
}

@keyframes rainbow-pan {
  to { background-position: 200% 0; }
}

@keyframes blink-hard {
  50% { opacity: 0; }
}

@keyframes btn-pulse {
  from { transform: scale(1) rotate(-1deg); }
  to   { transform: scale(1.04) rotate(1deg); }
}

@keyframes digit-flicker {
  0%, 92% { opacity: 1; }
  94% { opacity: 0.3; }
  96% { opacity: 1; }
  98% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ── Responsive (la gente moderna usa el móvil, qué asco) ── */
@media (max-width: 600px) {
  body { padding: 1rem 0.5rem; }

  #app { padding: 1rem 0.9rem 1.5rem; }

  h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }

  .zone-card { padding: 0; }

  #breakageZone { font-size: 0.78rem; padding: 0.6rem; margin: 0 0.6rem; }

  .option-btn { font-size: 0.86rem; padding: 0.55rem 0.8rem; }

  #wallComments {
    grid-template-columns: 1fr;
  }

  .title-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  #btnStart, #btnSound {
    text-align: center;
  }

  /* Los sellos de las esquinas tapan la interfaz: fuera */
  .corner-stamp { display: none; }
}

/* ── Reduced motion (algún día habrá un usuario con decencia) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .postit {
    animation: none !important;
  }
}