/* Panal · estilos propios (la base está en ../base.css) */
:root {
  --accent: var(--g1); --accent-ink: var(--g1-ink); --glow: rgba(246,211,91,.15);
  --honey: var(--g1); --honey-ink: var(--g1-ink);
  --cell: #262D42; --cell-ink: var(--ink);
}

.gamehead { margin-bottom: 12px; }

/* ---------- progreso ---------- */
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.progress .rank { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; white-space: nowrap; }
.progress .bar { flex: 1; display: flex; align-items: center; justify-content: space-between; position: relative; height: 24px; }
.progress .bar::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; border-radius: 2px; background: var(--line-2); }
.progress .bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); position: relative; z-index: 1; transition: transform .2s ease, background .2s ease; }
.progress .bar i.done { background: var(--honey); }
.progress .bar i.cur { background: var(--honey); width: 24px; height: 24px; box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(246,211,91,.55); }
.progress .pts { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: right; }
.nextline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.nextline button { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: .9rem; }

/* ---------- entrada ---------- */
.typed {
  min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 1px;
  font-size: clamp(1.6rem, 8vw, 2.2rem); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 6px 0 6px;
  overflow: hidden; white-space: nowrap;
}
.typed.long { font-size: clamp(1.2rem, 6vw, 1.7rem); letter-spacing: .02em; }
.typed.xlong { font-size: clamp(.95rem, 4.6vw, 1.3rem); letter-spacing: 0; }
.typed.empty { color: var(--muted); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.typed .c { color: var(--honey); }
.typed .bad { color: var(--muted); opacity: .6; }
.typed .caret { display: inline-block; width: 2px; height: 1em; background: var(--honey); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.typed.shake { animation: shake .45s ease; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

/* ---------- panal ---------- */
.hivewrap { position: relative; padding: 14px 0 10px; }
.hivewrap::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(96vw, 420px); height: 78%;
  transform: translate(-50%, -50%) rotate(-6deg); border-radius: 48% 52% 50% 50% / 60% 55% 45% 40%;
  background: radial-gradient(closest-side, rgba(246,211,91,.10), rgba(246,211,91,.04) 60%, transparent);
  pointer-events: none;
}
.hivewrap.spark::before { display: block; }
.hivewrap .s1, .hivewrap .s2, .hivewrap .s3, .hivewrap .s4 {
  position: absolute; width: 4px; height: 22px; border-radius: 3px; background: var(--honey); pointer-events: none; opacity: .9;
}
.hivewrap .s1 { left: 6%; top: 14%; transform: rotate(-32deg); }
.hivewrap .s2 { left: 12%; top: 8%; transform: rotate(8deg); height: 16px; }
.hivewrap .s3 { right: 7%; bottom: 20%; transform: rotate(28deg); }
.hivewrap .s4 { right: 13%; bottom: 14%; transform: rotate(-10deg); height: 16px; }
.hive { position: relative; width: min(78vw, 300px); aspect-ratio: 1; margin: 0 auto; }
.hex {
  position: absolute; width: 31%; height: 35.5%; border: 0; padding: 0; isolation: isolate;
  background: linear-gradient(165deg, #2E3650 0%, #1E2436 55%, #171C2B 100%); color: var(--cell-ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-size: clamp(1.5rem, 7.4vw, 2.1rem); font-weight: 900; text-transform: uppercase;
  display: grid; place-items: center; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease, filter .15s ease;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.45));
}
.hex::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 45%, rgba(0,0,0,.18) 100%);
}
.hex:hover { filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)) brightness(1.12); }
.hex:active, .hex.tap { transform: scale(.92); }
.hex.center { background: linear-gradient(165deg, #FFE98F 0%, #F6D35B 50%, #E3B82E 100%); color: var(--honey-ink); }
.hex.center::before { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 50%, rgba(0,0,0,.08) 100%); }
.hex.p0 { left: 18%; top: 4%; }   .hex.p1 { left: 51%; top: 4%; }
.hex.p2 { left: 1.5%; top: 32.25%; } .hex.p3 { left: 34.5%; top: 32.25%; } .hex.p4 { left: 67.5%; top: 32.25%; }
.hex.p5 { left: 18%; top: 60.5%; } .hex.p6 { left: 51%; top: 60.5%; }

.actions { margin-top: 6px; }
.btn.icon { border-radius: 50%; }

/* ---------- palabras ---------- */
.foundbox { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px 16px; position: relative; }
.foundbox .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.foundbox .head b { font-size: 1.15rem; font-weight: 800; }
.foundbox .head button { background: none; border: 0; color: var(--ink-2); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.words { display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; }
.words .w { padding: 7px 13px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; }
.words .w.pan { font-weight: 800; color: var(--honey-ink); background: var(--honey); border-color: transparent; }
.words .w.miss { color: var(--muted); background: transparent; border-style: dashed; }
.words .w.miss.pan { opacity: .75; }
.words .none { color: var(--muted); font-size: .9rem; }
#answers-wrap { margin-top: 14px; }
#answers-wrap .label { font-size: .8rem; color: var(--muted); margin-bottom: 8px; display: block; }

.toast.big { background: var(--honey); color: var(--honey-ink); font-size: 1.1rem; padding: 12px 20px; }

/* ---------- modales ---------- */
.card ul.ranks { list-style: none; padding: 0; gap: 0; }
.card ul.ranks li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.card ul.ranks li:last-child { border-bottom: 0; }
.card ul.ranks li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.minihive { display: flex; justify-content: center; gap: 4px; }
.minihive i { width: 36px; height: 40px; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--cell); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font-size: .95rem; }
.minihive i.c { background: var(--honey); color: var(--honey-ink); }
