@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F4EEE3; --paper-2: #EBE2D2; --paper-3: #E0D4BF;
  --ink: #1E1B16; --ink-2: #4B443A; --ink-3: #7A7062; --line: rgba(30,27,22,.16);
  --rubric: #A5372A; --gold: #B3862F; --lapis: #23466C; --lucas: #4B7350; --night: #14171D;
  --o0: #A5372A; --o1: #23466C; --o2: #B3862F; --o3: #4B7350;
  --f-display: "Fraunces", Georgia, serif; --f-text: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -.01em; }
em { color: var(--rubric); font-style: italic; font-weight: 500; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rubric); }
.muted { color: var(--ink-3); }
.ref { display: inline-block; font-weight: 700; color: var(--rubric); font-size: .9em; }
.ref::before { content: "✠ "; }
button { font-family: var(--f-text); cursor: pointer; }
.btn { border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 700; padding: 14px 26px; font-size: 18px; }
.btn.rojo { background: var(--rubric); }
.btn.claro { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn:disabled { opacity: .4; cursor: default; }
.estado-red { position: fixed; top: 10px; right: 12px; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--rubric); color: #fff; display: none; z-index: 9; }
body.desconectado .estado-red { display: block; }

/* Opciones (comunes) */
.op { --c: var(--o0); position: relative; display: flex; align-items: center; gap: 14px; border: 0; border-radius: 12px; background: var(--c);
  color: #fff; text-align: left; font-weight: 700; line-height: 1.15; }
.op:nth-child(2) { --c: var(--o1); } .op:nth-child(3) { --c: var(--o2); } .op:nth-child(4) { --c: var(--o3); }
.op .forma { flex: none; width: 1.3em; text-align: center; opacity: .85; }
.op.mal { opacity: .28; }
.op.bien { outline: 5px solid var(--ink); outline-offset: 3px; }
.op.mia::after { content: "Tu respuesta"; position: absolute; right: 10px; top: -11px; background: var(--ink); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; letter-spacing: .06em; }

/* Barra del grupo */
.grupo { display: flex; align-items: center; gap: 14px; }
.grupo .barra { position: relative; flex: 1; height: 18px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.grupo .barra i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold), var(--rubric)); border-radius: 99px; transition: width .8s ease; }
.grupo .barra b { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); }
.grupo .pct { font-family: var(--f-display); font-weight: 600; font-size: 28px; min-width: 3ch; }
.dato { border-left: 5px solid var(--gold); background: rgba(179,134,47,.12); padding: 14px 18px; border-radius: 0 8px 8px 0; line-height: 1.4; }
