:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff;
  --accent: #86e7ff;
  --background: #111733;
  --light: #254891;
  --other: #562e87;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body {
  margin: 0;
  background: radial-gradient(ellipse at 12% 12%,var(--light),transparent 58%),
              radial-gradient(ellipse at 96% 72%,var(--other),transparent 56%),var(--background);
  min-height: 100vh;
}
body[data-theme="navidad"] { --accent:#ffe0a1; --background:#102821; --light:#246448; --other:#68243a }
body[data-theme="brucios"] { --accent:#ffbd86; --background:#321c1b; --light:#75391e; --other:#582337 }
main {
  width: min(100%,960px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  padding: clamp(16px,4vw,48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px,3vh,42px);
  text-align: center;
}
header img { max-width:min(56vw,340px); max-height:11vh; object-fit:contain }
header p { margin:0; font-weight:750; color:var(--accent) }
h1 { margin:0 0 .35em; font-size:clamp(28px,6vw,70px); line-height:1.04; overflow-wrap:anywhere }
p { margin:.5em 0 1em }
button, a, input, textarea, select { font:inherit }
button, .quiet {
  cursor:pointer; min-height:48px; padding:.62em .9em; border-radius:14px;
  color:#101526; border:1px solid #ffffff50; background:var(--accent); font-weight:750;
}
button:focus-visible, a:focus-visible { outline:3px solid white; outline-offset:3px }
button:disabled { cursor:default; opacity:.72 }
.quiet { color:white; background:#11152ccc; display:inline-flex; align-items:center; text-decoration:none }
footer,.actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center }
.menu { display:grid; gap:clamp(10px,2vh,23px); max-width:700px; margin:auto }
.menu button {
  text-align:left; font-size:clamp(17px,3.5vw,36px); min-height:clamp(67px,10vh,125px);
  background:linear-gradient(140deg,#fff2,transparent),#131b37; color:white;
  display:flex; align-items:center; gap:.65em;
}
.menu strong { display:block }
.menu small { font-size:.63em; display:block; color:#e2e8fb }
.symbol { font-size:1.5em }
.board { width:min(100%,52vh,690px); margin:0 auto 1em; display:grid; grid-template-columns:repeat(3,1fr); gap:8px }
.board button { min-width:0; aspect-ratio:1.13; background:#161b36; color:white; font-size:clamp(21px,5vw,59px); padding:0 }
.board button.lit,.board button.revealed { background:var(--accent); color:#14192e }
.board button.matched { background:#2a7856; opacity:1 }
.board img { width:75%; height:75%; object-fit:contain; display:block; margin:auto }
.metrics { font-weight:750; color:var(--accent) }
.wheel { display:block; margin:auto auto 1rem; width:min(100%,51vh,690px); height:auto }
.score { font-size:clamp(37px,9vw,105px); color:var(--accent); font-weight:850; line-height:1; overflow-wrap:anywhere }
[data-theme="navidad"] header::before { content:"✦  ❄  ✦  ❄  ✦"; color:var(--accent); display:block; letter-spacing:.34em; margin-bottom:.65em }
[data-theme="brucios"] header::before { content:"☕"; display:block; margin-bottom:.35em }
@media screen {
  body[data-theme="navidad"]::before {
    content:"";
    position:fixed; inset:0 0 auto; height:20px; pointer-events:none;
    background:radial-gradient(circle at center,#ffe0a1 0 3px,transparent 8px) 0 0/42px 20px repeat-x,
               repeating-linear-gradient(115deg,#143828 0 8px,#2b674c 8px 15px);
    box-shadow:0 8px 40px #e3ae543b;
  }
  body[data-theme="brucios"] .menu button, body[data-theme="brucios"] .board button {
    background-color:#321919; border-color:#ffbc8766;
  }
  body[data-theme="navidad"] .menu button, body[data-theme="navidad"] .board button {
    background-color:#162f27; border-color:#ffe0a166;
  }
  body .board button.lit, body .board button.revealed { background:var(--accent); color:#14192e }
  body .board button.matched { background:#246846; color:white }
}

.thumbnail {
  width: clamp(60px, 15vw, 132px);
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  gap: 5%;
  border-radius: 10px;
  background: radial-gradient(ellipse at 25% 10%,var(--light),transparent 80%),#10182e;
  border: 1px solid #ffffff45;
}
.thumbnail-ruleta i {
  width: clamp(34px, 8vw, 73px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: conic-gradient(var(--other) 0 60deg,var(--accent) 60deg 120deg,var(--light) 120deg 180deg,var(--other) 180deg 240deg,var(--accent) 240deg 300deg,var(--light) 300deg);
}
.thumbnail-reflejos { grid-template: repeat(3,19%) / repeat(3,16%) }
.thumbnail-reflejos i { border-radius:4px; background:#ffffff35 }
.thumbnail-reflejos i:nth-child(5) { background:var(--accent); box-shadow:0 0 12px var(--accent) }
.thumbnail-memoria { grid-template: repeat(2,32%) / repeat(2,23%) }
.thumbnail-memoria i { background:#ffffff35; border-radius:4px; display:grid; place-items:center; font:normal clamp(9px,2vw,22px)/1 system-ui }
.thumbnail-memoria i:nth-child(3n+1) { background:var(--accent); color:#101526 }
.profile-label { display:grid; gap:8px; max-width:440px; margin:0 auto 16px }
.profile-select { min-height:48px; border-radius:10px; padding:8px; background:#151d3b; color:white }
