:root{
  --red:#C8102E; --mustard:#E8B21B; --green:#2E7D4F;
  --ink:#2B1B17; --paper:#FFFFFF; --soft:#F6F1EF; --line:#E3D6D2; --muted:#6E5A55; --vinyl:#1C1C1C;
  --tc:var(--red);
}
@media (prefers-color-scheme:dark){:root{--ink:#F3E9E6;--paper:#1E1614;--soft:#2A201D;--line:#43342F;--muted:#BBA7A1;--vinyl:#000}}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0}
body{background:var(--paper);color:var(--ink);font:16px/1.45 Rubik,system-ui,-apple-system,"Segoe UI",sans-serif;
  padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0)}
button,input{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--mustard);outline-offset:2px}
.display{font-family:Shrikhand,Georgia,serif;font-weight:400}
.btn{background:var(--red);color:#fff;border:0;border-radius:12px;padding:.7rem 1.2rem;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block;text-align:center}
.btn.ghost{background:transparent;color:var(--ink);border:2px solid var(--line)}
.btn.team{background:var(--tc)}
.btn.small{padding:.35rem .75rem;font-size:.9rem;border-radius:9px}
.btn:disabled{opacity:.4;cursor:default}
.row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.muted{color:var(--muted)}
input[type=text],input[type=number]{padding:.55rem .7rem;border:2px solid var(--line);border-radius:10px;background:var(--paper)}
input[type=number]{width:5.5rem}

/* línia del temps */
.timeline{display:flex;flex-wrap:wrap;gap:.35rem;align-items:stretch}
.tcard{background:var(--paper);border:2px solid var(--tc);border-radius:10px;padding:.3rem .5rem;min-width:78px;max-width:130px;text-align:center}
.tcard .y{font-family:Shrikhand,Georgia,serif;font-size:1.35rem;line-height:1.1;color:var(--tc)}
.tcard small{display:block;font-size:.72rem;line-height:1.15;color:var(--muted)}
.tcard.new{box-shadow:0 0 0 3px var(--mustard)}
.tcard.mystery{border-style:dashed;border-color:var(--mustard);display:grid;place-items:center}
.tcard.mystery .y{color:var(--mustard)}
.slot{border:2px dashed var(--line);background:transparent;border-radius:10px;min-width:42px;font-weight:700;color:var(--muted);font-size:1.3rem;padding:0 .4rem}
button.slot{cursor:pointer}
button.slot:hover{border-color:var(--tc);color:var(--tc)}
.slot.chosen{background:var(--mustard);border-color:var(--mustard);color:#000}

/* disc */
.disc{width:100%;aspect-ratio:1;border-radius:50%;background:repeating-radial-gradient(circle,var(--vinyl) 0 2px,#2a2a2a 2px 4px);
  display:grid;place-items:center;box-shadow:0 0 0 6px var(--soft)}
.disc .lbl{width:44%;aspect-ratio:1;border-radius:50%;background:var(--tc);border:6px solid var(--mustard);display:grid;place-items:center;color:#fff;font-family:Shrikhand,Georgia,serif;font-size:2.2rem}
.disc.spin{animation:spin 2.4s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.pop{animation:pop .45s ease-out}
@keyframes pop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.disc.spin,.pop{animation:none}}

.verdict{display:inline-block;padding:.35rem .9rem;border-radius:9px;font-weight:700;color:#fff}
.verdict.ok{background:var(--green)}.verdict.ko{background:var(--red)}
.pill{display:inline-flex;align-items:center;gap:.4rem;padding:.25rem .7rem;border-radius:999px;background:var(--soft);font-size:.9rem}
.pill i{width:9px;height:9px;border-radius:50%;background:var(--muted)}
.pill.ok i{background:#3BB273}.pill.warn i{background:var(--mustard)}
.toast{position:fixed;left:50%;bottom:calc(1rem + env(safe-area-inset-bottom,0));transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:.7rem 1rem;border-radius:10px;max-width:90vw;z-index:9;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.dots{background-image:radial-gradient(circle,rgba(255,255,255,.18) 6px,transparent 7px);background-size:34px 34px}
