/* Personaje del día · estilos propios (la base está en ../base.css) */
:root { --accent: var(--g3); --accent-ink: var(--g3-ink); --glow: rgba(143,187,240,.16); --ok: #5FB85A; --ok-ink: #062A06; --no: #C9524B; }

.gamehead { margin-bottom: 4px; }
.universos { margin: 6px 0 12px; font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.universos small { display: inline-block; margin-right: 6px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.universos span { font-weight: 600; }
main > .hint { margin-bottom: 0; }

/* ---------- emojis y pistas ---------- */
.clues {
  background: linear-gradient(160deg, rgba(143,187,240,.13), rgba(20,24,39,.5) 60%), var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 18px 14px 14px; margin-bottom: 12px; scroll-margin-top: 12px;
}
.uni { margin: 0 0 12px; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.uni small { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.uni b { font-size: 1.1rem; font-weight: 800; color: var(--g3); }
.demo-uni { margin: 0; text-align: center; font-weight: 800; color: var(--g3); }
.emojis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.emo {
  aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; line-height: 1;
  font-size: clamp(2.1rem, 11vw, 3rem); font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.emo.on { background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 3px 0 rgba(0,0,0,.35); }
.emo.off { background: transparent; border: 2px dashed var(--line-2); color: var(--muted); font-family: var(--f); font-size: 1.6rem; font-weight: 800; }
.emo.new { animation: popin .5s cubic-bezier(.2,.8,.2,1.3); }
@keyframes popin { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

.textclues { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.textclues li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 12px; background: rgba(0,0,0,.18); color: var(--muted); font-size: .86rem; }
.textclues li b { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.textclues li.open { background: rgba(246,211,91,.10); color: var(--ink); }
.textclues li.open b { color: var(--g1); }
.textclues li.open span { font-weight: 600; font-size: .95rem; }
.textclues li.new { animation: fadein .45s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- solución ---------- */
.solution { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; text-align: center; background: var(--surface); }
.solution small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.solution b { display: block; font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; margin: 2px 0; }
.solution span { color: var(--ink-2); font-size: .9rem; }
.solution.won { border-color: var(--ok); background: linear-gradient(135deg, rgba(95,184,90,.18), var(--surface) 70%); }
.solution.lost { border-color: var(--no); background: linear-gradient(135deg, rgba(201,82,75,.16), var(--surface) 70%); }

/* ---------- intentos ---------- */
.tries { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.tries .bar { display: flex; gap: 6px; }
.slot { width: 26px; height: 10px; border-radius: 5px; background: var(--line-2); transition: background .2s ease; }
.slot.no { background: var(--no); } .slot.skip { background: var(--g1); } .slot.ok { background: var(--ok); }
.tries #left { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- buscador ---------- */
.play { margin-bottom: 12px; }
.search { position: relative; display: flex; gap: 8px; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 12px 18px; outline: none;
}
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(143,187,240,.18); }
.search .btn { flex: none; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); display: none;
  max-height: 320px; overflow: auto;
}
.suggest.open { display: block; }
.suggest li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.suggest li b { font-weight: 700; }
.suggest li small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.suggest li.on, .suggest li:hover { background: var(--tile-hover); }
.suggest li.empty { color: var(--muted); cursor: default; font-size: .9rem; }

/* ---------- fallos ---------- */
.log { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.log li { font-size: .82rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(201,82,75,.16); color: #F3A49E; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.log li.skip { background: var(--surface-2); color: var(--muted); text-decoration: none; font-weight: 600; }

/* ---------- modales ---------- */
.demo { display: grid; grid-template-columns: repeat(4, 54px); gap: 8px; justify-content: center; }
.demo span { aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface-2); border: 1px solid var(--line-2); }
.demo span.off { background: transparent; border: 2px dashed var(--line-2); color: var(--muted); font-size: 1.1rem; font-weight: 800; }
.result .emoji { font-size: 1.5rem; letter-spacing: .08em; }
.dlabel { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.dist { display: flex; flex-direction: column; gap: 5px; }
.drow { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; }
.dbar { height: 20px; }
.dbar i { display: flex; justify-content: flex-end; align-items: center; height: 100%; min-width: 22px; border-radius: 5px; background: var(--surface-2); }
.dbar i.me { background: var(--ok); color: var(--ok-ink); }
.dbar em { font-style: normal; font-size: .76rem; padding-right: 6px; }

@media (max-width: 360px) { .emojis { gap: 7px; } .textclues li { grid-template-columns: 64px 1fr; } .slot { width: 20px; } }

/* ---------- botón de pista ---------- */
.ask {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(246,211,91,.08); border: 1.5px dashed rgba(246,211,91,.45); color: var(--ink);
  border-radius: 14px; padding: 10px 14px; text-align: left; -webkit-tap-highlight-color: transparent;
}
.ask:hover { background: rgba(246,211,91,.14); }
.ask svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--g1); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ask b { display: block; font-size: .95rem; font-weight: 800; }
.ask small { display: block; color: var(--muted); font-size: .76rem; }
