/* Identidad común: papel, tinta y un único acento iridiscente (el "holograma"). */
:root {
  --paper: #f5f2ec; --card: #fffdf9; --ink: #16151a; --soft: #6b6871; --line: rgba(22, 21, 26, .13);
  --bad: #b3261e; --good: #17734d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --foil: #ff9bb8, #ffd98a, #9af0d4, #86bdff, #c9a2ff, #ff9bb8;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f0e13; --card: #18171e; --ink: #f1eee8; --soft: #9c98a4; --line: rgba(241, 238, 232, .15);
          --bad: #ff8a80; --good: #7fe0b5; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans);
       -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.soft { color: var(--soft); }
.meta { font: 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px clamp(20px, 5vw, 48px); }
.mark { font: italic 400 22px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.mark b { font-style: normal; font-weight: 400; }

button, .btn { font: inherit; color: inherit; cursor: pointer; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px;
       border-radius: 999px; border: 1px solid var(--line); background: transparent; text-decoration: none; font-size: 15px;
       transition: transform .25s var(--ease), border-color .25s, background .25s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* El acento iridiscente aparece al pasar por encima, como un reflejo. */
.btn.solid::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; z-index: -1; opacity: 0;
                    background: conic-gradient(from var(--spin, 0deg), var(--foil)); filter: blur(7px); transition: opacity .35s; }
.btn.solid:hover::after, .btn.solid:focus-visible::after { opacity: .9; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 4px 2px; font-size: 14px; color: var(--soft); text-decoration: underline;
        text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .2s; }
.link:hover { color: var(--ink); }
.link.danger:hover { color: var(--bad); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }

/* El anillo: un lienzo con halo iridiscente detrás y un texto en el centro. */
.ring { position: relative; display: block; aspect-ratio: 1; width: min(76vw, 360px); margin: 0 auto; padding: 0; border: 0;
        background: none; border-radius: 50%; transition: width .7s var(--ease), transform .4s var(--ease); isolation: isolate; }
.ring::before { content: ""; position: absolute; inset: -10%; border-radius: 50%; z-index: -1; opacity: .42;
                background: conic-gradient(var(--foil)); filter: blur(22px); animation: spin 26s linear infinite;
                -webkit-mask: radial-gradient(closest-side, transparent 38%, #000 62%, #000 72%, transparent 96%);
                mask: radial-gradient(closest-side, transparent 38%, #000 62%, #000 72%, transparent 96%); transition: opacity .5s; }
.ring canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .core { position: absolute; inset: 24%; display: grid; place-content: center; gap: 4px; text-align: center; pointer-events: none; }
.ring .big { font: 400 clamp(26px, 7vw, 40px)/1 var(--serif); letter-spacing: -.02em; transition: color .3s; }
.ring .small { font-size: 13px; line-height: 1.3; color: var(--soft); overflow: hidden; text-overflow: ellipsis;
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ring.lost::before { opacity: .08; }
.ring.lost .big { color: var(--bad); }

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
