/* ==========================================================================
   Skindle — estilos
   Secciones: 1 tokens · 2 base · 3 layout · 4 cabecera · 5 modos
              6 pistas + reproductor · 7 buscador · 8 intentos · 9 resultado
              10 editorial + footer · 11 diálogos, toast · 12 responsive
   ========================================================================== */

/* Fuentes alojadas en la propia web (antes Google Fonts): ninguna petición sale a terceros.
   Inter, Rajdhani y JetBrains Mono · SIL Open Font License 1.1 (assets/fonts/LICENSES.md) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/rajdhani-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/rajdhani-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/rajdhani-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/rajdhani-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 1 · Tokens ------------------------------------------------------------- */
:root {
  --bg: #0F1419;
  --bg-2: #131A22;
  --card: #1B2430;
  --card-2: #222D3B;
  --line: #2A3646;
  --line-soft: #212B38;
  --text: #ECE8E1;
  --text-2: #A7B0BC;
  --text-3: #6E7A89;
  --accent: #FF4655;
  --accent-ink: #fff;
  --hot: #10B981;
  --warm: #F59E0B;
  --cold: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --col: 680px;
  --rail: 160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* 2 · Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 500px at 50% -200px, #1a2330 0%, transparent 70%), var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text); }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card-2);
  font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: #3a4a5e; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ff5a68; border-color: #ff5a68; }
.btn--ghost { background: transparent; }
.btn svg { width: 18px; height: 18px; }
.link-btn {
  background: none; border: 0; padding: 4px 0; color: var(--text-2);
  font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }
.link-btn:disabled { opacity: .4; cursor: default; text-decoration: none; }
.link-btn--muted { color: var(--text-3); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--text-2);
}
.icon-btn:hover { background: var(--card); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }

/* 3 · Layout -------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, var(--col));
  justify-content: center;
  padding: 0 16px;
}
.game { min-width: 0; padding: 8px 0 40px; outline: none; }

/* 4 · Cabecera ------------------------------------------------------------ */
.topbar { border-bottom: 1px solid var(--line-soft); background: rgba(15, 20, 25, .7); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar__inner { max-width: calc(var(--col) + 2 * var(--rail) + 80px); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand__mark { width: 30px; height: 30px; color: var(--accent); }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; }
.brand__sub { font-weight: 500; color: var(--text-3); font-size: 15px; }
.topbar__actions { display: flex; align-items: center; gap: 4px; }
.lang-switch { display: flex; margin-left: 6px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button { border: 0; background: transparent; padding: 6px 10px; font: 700 12px/1 var(--mono); color: var(--text-3); }
.lang-switch button[aria-pressed="true"] { background: var(--card-2); color: var(--text); }

/* 5 · Modos y tipo de partida ------------------------------------------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 20px 0 14px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.modes__tab { border: 0; background: transparent; padding: 10px 8px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); transition: background .15s, color .15s; }
.modes__tab:hover { color: var(--text); }
.modes__tab[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.segmented button[aria-pressed="true"] { background: var(--card-2); color: var(--text); }
.game-bar__info { margin: 0; font-size: 12.5px; color: var(--text-3); letter-spacing: .02em; }
.game-bar__info b { color: var(--text); font-weight: 700; }

/* 6 · Pistas + reproductor ------------------------------------------------ */
.hints { padding: 14px; }
.hints__tabs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.hint-tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-soft); background: var(--bg-2);
  text-align: left; transition: border-color .15s, background .15s;
}
.hint-tab__n { font: 700 11px/1 var(--mono); color: var(--text-3); letter-spacing: .08em; }
.hint-tab__name { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hint-tab:not(:disabled):hover { border-color: var(--line); }
.hint-tab[aria-selected="true"] { border-color: var(--accent); background: rgba(255, 70, 85, .08); }
.hint-tab[aria-selected="true"] .hint-tab__n { color: var(--accent); }
.hint-tab[aria-selected="true"] .hint-tab__name { color: var(--text); }
.hint-tab:disabled { cursor: not-allowed; opacity: .55; }
.hint-tab:disabled .hint-tab__name { color: var(--text-3); }
.hint-tab__lock { position: absolute; top: 7px; right: 8px; width: 13px; height: 13px; color: var(--text-3); }
.hint-tab.is-new { animation: pulse-new 1.4s var(--ease) 2; }
@keyframes pulse-new { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0); } 50% { box-shadow: 0 0 0 4px rgba(255, 70, 85, .25); } }

.player { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; }
.player__play {
  width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(255, 70, 85, .35); transition: transform .12s var(--ease), box-shadow .2s;
}
.player__play:hover { transform: scale(1.04); }
.player__play:active { transform: scale(.97); }
.player__play svg { width: 28px; height: 28px; }
.player__play .i-pause { display: none; }
.player.is-playing .player__play .i-play { display: none; }
.player.is-playing .player__play .i-pause { display: block; }
.player.is-loading .player__play { opacity: .7; }
.player__wave { min-width: 0; }
.player__wave canvas { display: block; width: 100%; height: 56px; cursor: pointer; }
.player__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.player__label { font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__volume { display: flex; align-items: center; gap: 6px; color: var(--text-3); }
.player__volume svg { width: 20px; height: 20px; flex: none; }
.player__volume input { width: 80px; accent-color: var(--accent); }

.viewer { margin: 0; }
.viewer__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg); border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.viewer__btn video { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer__btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.viewer__btn:hover img { transform: scale(1.02); }
.viewer__hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, .6); font-size: 12px; font-weight: 600; }

.hints__actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.hints__next { flex: 1; font-size: 12px; color: var(--text-3); text-align: center; }

/* 7 · Buscador ----------------------------------------------------------- */
.search { position: relative; margin: 16px 0 18px; z-index: 5; }
.search__input {
  width: 100%; height: 58px; padding: 0 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); font-size: 18px; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.search__input::placeholder { color: var(--text-3); }
.search__input:focus { outline: none; border-color: #4a5b70; box-shadow: 0 0 0 4px rgba(255, 255, 255, .04); }
.search__input:disabled { opacity: .5; }
.search__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto;
}
.search__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.search__opt[aria-selected="true"], .search__opt:hover { background: rgba(255, 255, 255, .06); }
.search__opt mark { background: none; color: var(--text); font-weight: 700; }
.search__name { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__tag { flex: none; font: 500 11px/1 var(--mono); color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; text-transform: uppercase; letter-spacing: .05em; }
.search__tag.is-tried { border-color: transparent; color: var(--text-3); text-transform: none; }
.search__empty { padding: 12px; color: var(--text-3); font-size: 14px; }

/* 8 · Intentos (barras de cercanía) ------------------------------------- */
.guesses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.guess {
  --pct: 0%; --c: var(--cold);
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px; padding: 0 16px; border-radius: 9px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  will-change: transform;
}
.guess::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct);
  background: var(--c); opacity: .9; border-radius: 8px 0 0 8px;
  transition: width .6s var(--ease);
}
.guess[data-heat="hot"] { --c: var(--hot); }
.guess[data-heat="warm"] { --c: var(--warm); }
.guess[data-heat="cold"] { --c: var(--cold); }
.guess__name, .guess__rank { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.guess__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guess__tag { font-weight: 500; font-size: 12px; color: rgba(255, 255, 255, .65); margin-left: 8px; }
.guess__rank { font: 700 15px/1 var(--mono); flex: none; }
.guess.is-latest { border-color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.guess.is-correct { border-color: var(--hot); }
.guess.is-flash { animation: flash-row .9s var(--ease) 2; }
@keyframes flash-row { 50% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); transform: scale(1.01); } }
.guess.is-enter { animation: enter-row .35s var(--ease); }
@keyframes enter-row { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

.last-guess { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-soft); }
.last-guess__label { margin: 0 0 6px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.empty-state { color: var(--text-3); text-align: center; font-size: 14px; padding: 24px 12px; margin: 0; }

/* 9 · Resultado ------------------------------------------------------------ */
.result { scroll-margin-top: 76px; padding: 20px; margin-bottom: 18px; overflow: hidden; animation: enter-row .45s var(--ease); }
.result__kicker { margin: 0; font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hot); }
.result.is-lost .result__kicker { color: var(--cold); }
.result__name { margin: 6px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.result__sub { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.result__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; background: var(--bg); }
.result__media { position: relative; }
.result__clip { position: absolute; inset: 0; height: 100%; visibility: hidden; }
.result__clip.is-on { visibility: visible; }
.result__audio { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; margin: 12px 0 16px; }
.result__audio .btn { min-height: 40px; font-size: 13px; padding: 0 8px; }
.result__audio .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.result__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; }
.stat__v { display: block; font: 700 22px/1.1 var(--mono); }
.stat__k { font-size: 12px; color: var(--text-3); }
.result__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result__actions .btn { flex: 1 1 180px; }
.result__countdown { margin: 14px 0 0; text-align: center; color: var(--text-3); font-size: 13px; }
.result__countdown b { font-family: var(--mono); color: var(--text-2); }

/* 10 · Editorial + footer ------------------------------------------------- */
.editorial { max-width: var(--col); margin: 0 auto; padding: 8px 16px 32px; color: var(--text-2); }
.editorial h2 { color: var(--text); font-size: 20px; margin: 0 0 12px; }
.editorial details { border-top: 1px solid var(--line-soft); padding: 4px 0; }
.editorial summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--text); list-style-position: inside; }
.editorial summary::marker { color: var(--accent); }
.editorial p, .editorial li { font-size: 15px; line-height: 1.65; }
.editorial ul, .editorial ol { padding-left: 20px; }
.editorial b, .editorial strong { color: var(--text); }
.footer { border-top: 1px solid var(--line-soft); padding: 24px 16px 96px; text-align: center; color: var(--text-3); font-size: 13px; }
.footer p { max-width: 640px; margin: 0 auto 12px; }
.footer__links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }
.footer__links a { color: var(--text-2); }
.footer .link-btn { font-size: 13px; }

/* 11 · Diálogos, toast ---------------------------------------------------- */
.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 24px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(5, 8, 12, .72); backdrop-filter: blur(3px); }
.modal h2 { margin: 0 0 12px; font-size: 20px; }
.modal p, .modal li { color: var(--text-2); font-size: 15px; }
.modal__close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.modal--small { width: min(400px, calc(100vw - 32px)); }
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin: 18px 0 0; }
.modal--image { width: min(1100px, calc(100vw - 32px)); padding: 0; background: #000; }
.modal--image img, .modal--image video { display: block; width: 100%; height: auto; }
.modal--image .modal__close { background: rgba(0, 0, 0, .55); color: #fff; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; text-align: center; }
.stats-grid .stat__v { font-size: 26px; }
.dist { display: flex; flex-direction: column; gap: 5px; }
.dist__row { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--text-3); }
.dist__bar { height: 20px; min-width: 22px; padding: 0 6px; display: flex; align-items: center; justify-content: flex-end; background: var(--card-2); border-radius: 5px; color: var(--text); }
.dist__bar.is-best { background: var(--hot); color: #04110c; }
.stats-mode { font-size: 13px; color: var(--text-3); margin: -6px 0 14px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: enter-row .25s var(--ease);
}
.noscript { text-align: center; padding: 24px; }

/* 12 · Responsive -------------------------------------------------------- */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand__sub { display: none; }
  .modes__tab { font-size: 13px; padding: 9px 4px; }
  .hints { padding: 10px; }
  .hints__tabs { gap: 4px; }
  .hint-tab { padding: 7px 7px; }
  .hint-tab__name { font-size: 11.5px; }
  .player { grid-template-columns: 56px 1fr; gap: 12px; }
  .player__play { width: 56px; height: 56px; }
  .player__volume { grid-column: 1 / -1; }
  .player__volume input { flex: 1; width: auto; }
  .hints__next { display: none; }
  .hints__actions { justify-content: space-between; }
  .search__input { height: 54px; font-size: 16px; }
  .result__name { font-size: 22px; }
  .result__stats .stat__v { font-size: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 13 · Tema «Protocolo» -----------------------------------------------------
   HUD táctico con la paleta de Valorant: neón rojo, esquinas de mira, pestañas en
   diagonal y glitch rojo/turquesa. Va al final para sobrescribir
   lo anterior; borrar esta sección devuelve el estilo original. */
:root {
  --bg: #0F1923; --bg-2: #122029; --card: #13212C; --card-2: #1A2A36;
  --line: #2C3D4B; --line-soft: #1F2E3A;
  --accent: #FF4655; --accent-2: #BD3944; --teal: #4FE3C1;
  --hot: #4FE3C1; --warm: #F5A524; --cold: #FF4655;
  --radius: 3px; --radius-sm: 2px;
  --display: "Rajdhani", var(--font);
  --rglow: 0 0 6px rgba(255, 70, 85, .9), 0 0 18px rgba(255, 70, 85, .45), 0 0 42px rgba(255, 70, 85, .18);
  --rglow-soft: 0 0 4px rgba(255, 70, 85, .55), 0 0 14px rgba(255, 70, 85, .22);
  --cglow: 0 0 5px rgba(236, 232, 225, .75), 0 0 14px rgba(236, 232, 225, .28);
  --spring: cubic-bezier(.22, 1.25, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}
body {
  background:
    radial-gradient(900px 420px at 50% -160px, rgba(255, 70, 85, .10), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 14px),
    var(--bg);
}
:focus-visible { outline-color: var(--teal); }

/* cabecera */
.topbar { background: rgba(15, 25, 35, .78); border-bottom-color: rgba(255, 70, 85, .35); box-shadow: 0 1px 0 rgba(255, 70, 85, .15), 0 6px 24px rgba(255, 70, 85, .06); }
.brand__mark { filter: drop-shadow(0 0 6px rgba(255, 70, 85, .8)); animation: p-beat 2.4s var(--out) infinite; }
@keyframes p-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }
.brand__name { font: 700 22px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; animation: p-glitch 4s infinite; }
.brand__sub { font: 600 13px/1 var(--display); letter-spacing: .2em; }
@keyframes p-glitch {
  0%, 90%, 100% { text-shadow: none; transform: none; }
  91% { text-shadow: -3px 0 var(--accent), 3px 0 var(--teal); transform: skewX(-10deg); }
  93% { text-shadow: 2px 0 var(--accent), -2px 0 var(--teal); transform: translateX(-2px); }
  95% { text-shadow: none; transform: none; }
}
.icon-btn { border-radius: 2px; transition: transform .3s var(--spring), box-shadow .3s, color .2s, border-color .2s; }
.icon-btn:hover { background: transparent; border-color: var(--accent); color: var(--text); box-shadow: var(--rglow-soft); transform: translateY(-2px); }
.lang-switch { border-radius: 2px; border-color: var(--line); }
.lang-switch button { font-family: var(--display); font-size: 13px; transition: background .25s, color .25s; }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* botones */
.btn {
  border-radius: 2px; font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(15, 25, 35, .6); border-color: rgba(236, 232, 225, .22);
  transition: transform .3s var(--spring), box-shadow .3s, background .25s, border-color .25s;
}
.btn:hover { border-color: var(--accent); box-shadow: var(--rglow-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent); border-color: var(--accent); box-shadow: var(--rglow-soft); }
.btn--primary:hover { background: #ff5a68; box-shadow: var(--rglow); }
.btn--ghost { background: transparent; }

/* modos: pestañas en diagonal */
.modes { background: transparent; border: 0; padding: 0 6px; gap: 10px; }
.modes__tab {
  border: 1px solid rgba(236, 232, 225, .2); border-radius: 0; transform: skewX(-14deg);
  font: 700 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 13px 8px;
  transition: transform .35s var(--spring), background .25s, box-shadow .3s, border-color .25s, color .25s;
}
.modes__tab:hover { border-color: var(--accent); transform: skewX(-14deg) translateY(-2px); }
.modes__tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--rglow); }
.segmented { border-radius: 2px; border-color: var(--line); gap: 4px; }
.segmented button {
  border-radius: 0; transform: skewX(-12deg); font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px;
  transition: background .25s, color .25s, box-shadow .3s, transform .3s var(--spring);
}
.segmented button:hover { color: var(--text); transform: skewX(-12deg) translateY(-1px); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: var(--rglow-soft); }
.game-bar__info b { color: var(--accent); font-family: var(--display); font-size: 15px; }

/* tarjetas con esquinas de mira */
.card { position: relative; background: rgba(19, 33, 44, .82); border: 1px solid rgba(255, 70, 85, .5); border-radius: 3px; box-shadow: var(--rglow-soft), inset 0 0 18px rgba(255, 70, 85, .06); }
.card::before, .card::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--text); filter: drop-shadow(0 0 4px rgba(236, 232, 225, .8)); pointer-events: none;
}
.card::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; animation: p-bracket 2.4s var(--out) infinite; }
.card::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; animation: p-bracket 2.4s var(--out) infinite reverse; }
@keyframes p-bracket { 50% { transform: translate(3px, 3px); } }
.result { overflow: visible; animation: p-hud .7s var(--out); }

/* pistas */
.hint-tab {
  border-radius: 2px; background: rgba(15, 25, 35, .7); border-color: var(--line);
  transition: transform .3s var(--spring), border-color .25s, background .25s, box-shadow .3s;
}
.hint-tab__n { font-family: var(--display); font-size: 14px; }
.hint-tab:not(:disabled):hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--rglow-soft); }
.hint-tab[aria-selected="true"] { border-color: var(--accent); background: rgba(255, 70, 85, .14); box-shadow: var(--rglow-soft); }
@keyframes pulse-new { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0); } 50% { box-shadow: var(--rglow); } }

/* reproductor: botón en rombo */
.player__play {
  border-radius: 3px; transform: rotate(45deg); width: 54px; height: 54px; margin: 5px;
  box-shadow: var(--rglow); transition: transform .35s var(--spring), box-shadow .3s;
}
.player__play svg { transform: rotate(-45deg); }
.player__play:hover { transform: rotate(45deg) scale(1.1); }
.player__play:active { transform: rotate(45deg) scale(.94); }
.player.is-playing .player__play { animation: p-ring 1.2s var(--out) infinite; }
@keyframes p-ring { 0% { box-shadow: var(--rglow), 0 0 0 0 rgba(255, 70, 85, .5); } 100% { box-shadow: var(--rglow), 0 0 0 14px rgba(255, 70, 85, 0); } }
.player__volume input { accent-color: var(--accent); }
.viewer__btn { border-radius: 2px; border: 1px solid var(--line); }
.viewer__hint { border-radius: 2px; background: rgba(15, 25, 35, .8); border: 1px solid var(--accent); font-family: var(--display); letter-spacing: .06em; }
.hints__actions { border-top-color: rgba(255, 70, 85, .2); }

/* buscador */
.search__input { border-radius: 2px; background: rgba(15, 25, 35, .8); border-color: var(--line); transition: border-color .25s, box-shadow .3s; }
.search__input:focus { border-color: var(--accent); box-shadow: var(--rglow); }
.search__list { border-radius: 2px; border-color: rgba(255, 70, 85, .45); background: #13212C; box-shadow: var(--shadow), var(--rglow-soft); animation: p-drop .25s var(--out); }
@keyframes p-drop { from { opacity: 0; transform: translateY(-6px); } }
.search__opt { border-radius: 0; border-left: 2px solid transparent; transition: background .15s, border-color .15s; }
.search__opt[aria-selected="true"], .search__opt:hover { background: rgba(255, 70, 85, .1); border-left-color: var(--accent); }
.search__tag { border-radius: 0; }

/* intentos: barras tipo HUD */
.guess { border-radius: 0; background: rgba(15, 25, 35, .75); border-color: rgba(236, 232, 225, .12); border-left: 3px solid var(--c); }
.guess::before {
  border-radius: 0; opacity: 1; border-right: 2px solid var(--c);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 45%, transparent));
  box-shadow: 4px 0 14px -6px var(--c);
}
.guess__rank { font-family: var(--display); font-size: 18px; }
.guess.is-latest { border-color: var(--text); border-left-color: var(--c); box-shadow: var(--cglow); }
.guess.is-correct { border-color: var(--teal); box-shadow: 0 0 16px rgba(79, 227, 193, .45); }
.guess.is-enter { animation: p-hud .6s var(--out); }
@keyframes p-hud { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes flash-row { 50% { box-shadow: var(--rglow); transform: scale(1.015); } }
.last-guess { border-bottom-color: rgba(255, 70, 85, .25); }
.last-guess__label, .result__kicker { font-family: var(--display); font-size: 13px; letter-spacing: .18em; }

/* resultado y estadísticas */
.result__name { font: 700 30px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.result__img { border-radius: 2px; border: 1px solid var(--line); }
.result__audio .btn[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 70, 85, .15); box-shadow: var(--rglow-soft); }
.stat { border-radius: 2px; background: rgba(15, 25, 35, .7); border: 1px solid var(--line-soft); }
.stat__v { font-family: var(--display); color: var(--accent); text-shadow: var(--rglow-soft); }
.dist__bar { border-radius: 0; }
.dist__bar.is-best { box-shadow: 0 0 12px rgba(79, 227, 193, .5); }

/* diálogos, toast */
.modal { border-radius: 3px; border-color: var(--accent); box-shadow: var(--shadow), var(--rglow-soft); }
.modal[open] { animation: p-pop .45s var(--spring); }
@keyframes p-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.modal h2, .editorial h2 { font: 700 24px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.modal--image { border-color: var(--line); }
.toast { border-radius: 2px; background: var(--accent); color: #fff; box-shadow: var(--rglow); font-family: var(--display); letter-spacing: .06em; }
.editorial summary::marker { color: var(--accent); }

@media (max-width: 560px) {
  .modes { gap: 6px; }
  .modes__tab { font-size: 13px; padding: 11px 4px; letter-spacing: .04em; }
  .player__play { width: 46px; height: 46px; }
  .brand__name { font-size: 19px; }
}

/* 14 · Panel de arsenal: mismas columnas que la colección del juego, en compacto */
.arsenal { margin: -2px 0 14px; padding: 10px 12px 12px; background: rgba(15, 25, 35, .6); border: 1px solid rgba(255, 70, 85, .3); border-radius: 2px; }
.modes[hidden] + .arsenal { margin-top: 20px; }  /* sin pestañas de modo: el hueco que dejaban */
.arsenal__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.arsenal__k { font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.arsenal__head b { font: 700 18px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; animation: p-swap .4s var(--spring); }
@keyframes p-swap { from { opacity: 0; transform: translateY(6px); } }
.arsenal__head .arsenal__n { font: 600 12px/1 var(--mono); color: var(--text-3); }
.arsenal__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.arsenal__col { display: flex; flex-direction: column; gap: 8px; }
.arsenal__group { display: flex; flex-direction: column; gap: 9px; }
/* cuerpo a cuerpo: centrado y un poco más abajo, bajo las columnas */
.arsenal__melee { display: flex; justify-content: center; margin-top: 14px; }
.arsenal__melee:empty { display: none; }
.arsenal__melee .arsenal__group { width: calc((100% - 30px) / 4); }
.arsenal__cat { text-align: center; font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arsenal__tile {
  position: relative; width: 100%; height: 30px; padding: 2px 8px; display: flex; align-items: center; gap: 6px;
  background: #1A2733; border: 1px solid rgba(236, 232, 225, .14); border-radius: 2px; text-align: left;
  transition: transform .25s var(--spring), border-color .2s, box-shadow .25s, background .2s;
}
.arsenal__tile img { width: 54px; height: 22px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transition: transform .3s var(--spring); }
.arsenal__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.arsenal__tile::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 2px; height: 1px; background: rgba(236, 232, 225, .12); transition: background .2s, box-shadow .2s; }
.arsenal__tile:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--rglow-soft); }
.arsenal__tile:hover img { transform: scale(1.1) rotate(-3deg); }
.arsenal__tile:hover .arsenal__name { color: var(--text); }
.arsenal__tile[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 70, 85, .16); box-shadow: var(--rglow-soft); }
.arsenal__tile[aria-pressed="true"] .arsenal__name { color: var(--text); }
.arsenal__tile[aria-pressed="true"]::after { background: var(--accent); box-shadow: var(--rglow-soft); height: 2px; }
.arsenal__tile--all { width: auto; margin-left: auto; padding: 2px 12px; }
.arsenal__all { width: 12px; height: 12px; flex: none; border: 2px solid var(--accent); transform: rotate(45deg); box-shadow: var(--rglow-soft); }
.arsenal__tile--all .arsenal__name { color: var(--text-2); }
/* sin skins (Warden…): silueta oscura y aviso */
.arsenal__tile.is-missing { border-style: dashed; }
.arsenal__tile.is-missing img { filter: brightness(0) invert(.25); }
.arsenal__tile.is-missing .arsenal__name { color: var(--text-3); opacity: .7; }
.arsenal__tile.is-missing:hover { border-color: var(--warm); box-shadow: 0 0 10px rgba(245, 165, 36, .35); }
/* no es el arma de hoy: misma silueta oscura que la Warden y un candado en medio */
.arsenal__tile.is-locked img { filter: brightness(0) invert(.25); }
.arsenal__tile.is-locked .arsenal__name { color: var(--text-3); opacity: .7; }
.arsenal__tile.is-locked:hover { border-color: var(--warm); box-shadow: 0 0 10px rgba(245, 165, 36, .35); }
.arsenal__tile.is-locked:hover img { transform: none; }
.arsenal__lock { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; transform: translate(-50%, -50%);
  fill: none; stroke: var(--text-2); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); pointer-events: none; }
.arsenal__tile.is-shake { animation: shake .45s var(--out); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.arsenal__msg { margin: 0; font-size: 13px; color: #ffc65c; }
.arsenal__msg:empty { display: none; }
.arsenal__msg.is-on { margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(245, 165, 36, .5); background: rgba(245, 165, 36, .08); animation: p-pop .35s var(--spring); }

/* móvil: mismas 4 columnas, solo iconos */
@media (max-width: 560px) {
  .arsenal { padding: 8px; }
  .arsenal__cols, .arsenal__col, .arsenal__group { gap: 7px; }
  .arsenal__melee { margin-top: 10px; }
  .arsenal__melee .arsenal__group { width: calc((100% - 21px) / 4); }
  .arsenal__cat { font-size: 9px; letter-spacing: .04em; }
  .arsenal__tile { height: 28px; padding: 2px 4px; justify-content: center; }
  .arsenal__tile img { width: 100%; }
  .arsenal__cols .arsenal__name { display: none; }
}
