/* MISCON27 RISE Challenge - own visual identity: a sunrise over a dark horizon.
   Separate from assets/css/main.css so the game can't affect the existing site.
   Mobile first; surfaces are opaque rather than glass. */
:root {
  --ink: #0b0918;
  --night: #14102a;
  --dusk: #1e1838;
  --panel: #191430;
  --panel-2: #231c40;
  --line: rgba(255, 255, 255, .1);
  --text: #fbf6ea;
  --muted: #aaa4c6;
  --sun: #ffb703;
  --ember: #fb8500;
  --coral: #ff5c39;
  --rose: #ff5d8f;
  --teal: #2ee6c5;
  --violet: #9d7bff;
  --sky: #4cc9f0;
  --good: #36e29a;
  --bad: #ff6464;
  --radius: 18px;
  --sunrise: linear-gradient(100deg, #ffc83d 0%, #ff9a1f 45%, #ff5c39 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Montserrat", "Outfit", sans-serif; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.rz-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.rz-narrow { max-width: 720px; }
.rz-muted { color: var(--muted); }
.rz-center { text-align: center; }
.rz-hide { display: none !important; }
.rz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.rz-top { position: sticky; top: 0; z-index: 40; background: rgba(11, 9, 24, .94); border-bottom: 1px solid var(--line); }
.rz-top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; }
.rz-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.rz-brand img { width: 30px; height: 37px; object-fit: contain; }
.rz-brand b { font-family: "Montserrat", sans-serif; font-weight: 900; letter-spacing: .08em; font-size: 15px; white-space: nowrap; }
.rz-brand b em { font-style: normal; color: var(--sun); }
.rz-nav { display: flex; align-items: center; gap: 2px; }
.rz-nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 9px; border-radius: 10px; white-space: nowrap; transition: color .15s; }
.rz-nav a:hover, .rz-nav a[aria-current] { color: var(--text); }
.rz-nav a[aria-current] { background: var(--panel-2); }
.rz-nav .rz-nav-long { display: none; }
@media (min-width: 720px) { .rz-nav .rz-nav-long { display: inline; } .rz-nav .rz-nav-short { display: none; } .rz-nav a { padding: 8px 12px; } }
/* Language button in the header: just the globe on phones, so the menu keeps its room. */
.rz-nav [data-i18n-switch] { margin-left: 4px; }
.rz-nav [data-i18n-switch] > button { padding: 7px 9px; }
@media (max-width: 719px) {
  .rz-nav [data-i18n-switch] > button > span, .rz-nav [data-i18n-switch] > button > svg:last-child { display: none; }
  .rz-top-in { min-width: 0; }
  .rz-brand { min-width: 0; flex-shrink: 1; overflow: hidden; }
}
@media (max-width: 420px) {
  .rz-brand b { font-size: 13px; }
  .rz-brand img { width: 24px; height: auto; }
  .rz-nav a { padding: 8px 6px; font-size: 13px; }
  .rz-nav [data-i18n-switch] > button { padding: 6px 7px; }
}

/* ---------- Buttons ---------- */
.rz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 13px 26px;
  border-radius: 14px; border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.rz-btn:hover { transform: translateY(-2px); }
.rz-btn:active { transform: translateY(0) scale(.98); }
.rz-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.rz-btn-sun { background: var(--sunrise); color: #1c0d00; box-shadow: 0 14px 34px -14px rgba(255, 130, 30, .9); }
.rz-btn-sun:hover { box-shadow: 0 20px 44px -14px rgba(255, 130, 30, 1); }
.rz-btn-line { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .28); }
.rz-btn-line:hover { border-color: var(--sun); color: var(--sun); }
.rz-btn-wa { background: #25d366; color: #052e16; }
.rz-btn-sm { min-height: 40px; padding: 8px 15px; font-size: 12px; border-radius: 11px; }
.rz-btn-block { display: flex; width: 100%; }
.rz-btns { display: flex; flex-wrap: wrap; gap: 11px; }

/* ---------- Hero ---------- */
.rz-hero { position: relative; overflow: hidden; min-height: calc(100svh - 60px); display: flex; align-items: flex-start; isolation: isolate;
  background: linear-gradient(180deg, #07061a 0%, #17103a 38%, #4b1c52 66%, #b6432f 87%, #ff9a3c 100%); }
.rz-stars { position: absolute; inset: 0 0 45% 0; z-index: -3; opacity: .8;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 27% 63%, #fff, transparent), radial-gradient(1.6px 1.6px at 44% 14%, #fff, transparent), radial-gradient(1px 1px at 58% 44%, #fff, transparent), radial-gradient(1.3px 1.3px at 72% 20%, #fff, transparent), radial-gradient(1px 1px at 85% 55%, #fff, transparent), radial-gradient(1.5px 1.5px at 93% 12%, #fff, transparent), radial-gradient(1px 1px at 6% 78%, #fff, transparent), radial-gradient(1.2px 1.2px at 36% 38%, #fff, transparent);
  animation: rz-twinkle 5s ease-in-out infinite alternate; }
@keyframes rz-twinkle { from { opacity: .45; } to { opacity: .9; } }
.rz-sun-wrap { position: absolute; left: 50%; bottom: 0; z-index: -2; width: min(112vw, 760px); aspect-ratio: 1; transform: translate(-50%, 56%); animation: rz-rise 2.6s var(--ease) both; }
@keyframes rz-rise { from { transform: translate(-50%, 92%); } to { transform: translate(-50%, 56%); } }
.rz-sun { position: absolute; inset: 21%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff3c2 0%, #ffd34d 34%, #ff9d1f 68%, #ff6a2e 100%); box-shadow: 0 0 90px 30px rgba(255, 170, 60, .6), 0 0 220px 90px rgba(255, 110, 50, .32); }
.rz-rays { position: absolute; inset: 0; border-radius: 50%; opacity: .34; animation: rz-spin 70s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255, 216, 130, .85) 0deg 5deg, transparent 5deg 24deg);
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 30%, transparent 70%); mask: radial-gradient(circle, transparent 28%, #000 30%, transparent 70%); }
@keyframes rz-spin { to { transform: rotate(360deg); } }
.rz-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(84px, 16vh, 170px); z-index: -1; display: block; }
.rz-hero-in { width: 100%; max-width: 860px; margin: 0 auto; padding: clamp(30px, 7vh, 72px) 18px 200px; text-align: center; }
.rz-eyebrow { display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .34em; color: var(--sun); margin-bottom: 12px; animation: rz-up .8s .15s var(--ease) both; }
.rz-mark { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(88px, 27vw, 210px); line-height: .86; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 8%, #ffe6a6 46%, #ffae3b 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 36px rgba(255, 140, 40, .42)); animation: rz-up .9s .25s var(--ease) both; }
.rz-mark-sub { font-family: "Montserrat", sans-serif; font-weight: 800; letter-spacing: .28em; font-size: clamp(14px, 3.5vw, 22px); margin-top: 8px; animation: rz-up .9s .4s var(--ease) both; }
.rz-tagline { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 12px; margin: 20px 0 14px; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(16px, 4.2vw, 25px); letter-spacing: .02em; }
.rz-tagline span { animation: rz-up .7s var(--ease) both; }
.rz-tagline span:nth-child(1) { animation-delay: .55s; }
.rz-tagline span:nth-child(2) { animation-delay: .7s; color: var(--sun); }
.rz-tagline span:nth-child(3) { animation-delay: .85s; }
.rz-tagline span:nth-child(4) { animation-delay: 1s; color: var(--sun); }
.rz-lede { max-width: 590px; margin: 0 auto 24px; color: #e5ddef; font-size: clamp(16px, 2.3vw, 18px); animation: rz-up .8s 1.1s var(--ease) both; }
.rz-hero-cta { display: flex; flex-direction: column; align-items: center; gap: 11px; animation: rz-up .8s 1.25s var(--ease) both; }
.rz-hero-cta .rz-btn-sun { min-width: min(100%, 320px); min-height: 60px; font-size: 16px; }
.rz-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.rz-hero-links .rz-btn { background: rgba(11, 9, 24, .62); }
.rz-referred { display: inline-block; background: #0f0b24; border: 1px solid rgba(255, 183, 3, .5); color: #ffe2a0; padding: 8px 15px; border-radius: 999px; font-size: 14px; margin-bottom: 16px; font-weight: 500; }
@keyframes rz-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.rz-section { padding: clamp(44px, 8vw, 84px) 0; }
.rz-section-dark { background: var(--night); }
.rz-kicker { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--sun); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 9px; }
.rz-title { font-size: clamp(26px, 5vw, 42px); font-weight: 900; margin-bottom: 11px; }
.rz-sub { color: var(--muted); max-width: 620px; font-size: 17px; }
.rz-head { margin-bottom: 30px; }
.rz-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .rz-grid-2 { grid-template-columns: 1fr 1fr; } .rz-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .rz-grid-4 { grid-template-columns: repeat(4, 1fr); } .rz-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.rz-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rz-card h3 { font-size: 18px; font-weight: 800; }
.rz-round-card { position: relative; overflow: hidden; transition: transform .25s var(--ease), border-color .2s; }
.rz-round-card:hover { transform: translateY(-5px); border-color: var(--c, var(--sun)); }
.rz-round-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--sun)); }
.rz-round-n { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 46px; color: var(--c, var(--sun)); line-height: 1; margin-bottom: 9px; }
.rz-round-card p { color: var(--muted); font-size: 15px; margin-top: 7px; }
.rz-round-w { display: inline-block; margin-top: 13px; font-size: 12px; font-weight: 700; color: var(--c, var(--sun)); letter-spacing: .05em; }
.c-knowledge { --c: var(--sun); } .c-brain { --c: var(--teal); } .c-reflex { --c: var(--coral); } .c-memory { --c: var(--violet); }

/* ---------- Conference promo ---------- */
.rz-promo { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a1058 0%, #5a1a55 55%, #a43a2c 100%); border-radius: 26px; padding: clamp(26px, 6vw, 56px); }
.rz-promo h2 { font-size: clamp(26px, 5.4vw, 46px); font-weight: 900; margin-bottom: 13px; }
.rz-promo-facts { display: grid; gap: 9px; grid-template-columns: 1fr; margin: 20px 0 24px; }
@media (min-width: 620px) { .rz-promo-facts { grid-template-columns: repeat(3, 1fr); } }
.rz-fact { background: rgba(10, 6, 26, .5); border-radius: 13px; padding: 13px 15px; }
.rz-fact small { display: block; color: #e1c9e0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rz-fact b { font-size: 17px; font-weight: 700; }
.rz-highlights { display: grid; gap: 11px; margin-bottom: 24px; }
@media (min-width: 720px) { .rz-highlights { grid-template-columns: repeat(3, 1fr); } }
.rz-highlights div b { display: block; font-size: 15px; font-weight: 700; color: var(--sun); }
.rz-highlights div span { font-size: 15px; color: #efe3ef; }
.rz-countdown { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.rz-countdown div { background: rgba(10, 6, 26, .55); padding: 9px 13px; border-radius: 12px; text-align: center; min-width: 62px; }
.rz-countdown b { display: block; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 21px; font-variant-numeric: tabular-nums; }
.rz-countdown small { font-size: 11px; color: #e1c9e0; letter-spacing: .06em; }

/* ---------- Footer ---------- */
.rz-foot { border-top: 1px solid var(--line); padding: 28px 0 34px; color: var(--muted); font-size: 14px; }
.rz-foot-in { display: flex; flex-wrap: wrap; gap: 9px 20px; justify-content: space-between; }
.rz-foot a { color: var(--muted); }

/* ---------- Game shell ---------- */
.rz-game { min-height: calc(100svh - 60px); display: flex; flex-direction: column; background: radial-gradient(120% 70% at 50% 110%, #3a1645 0%, var(--ink) 62%); }
.rz-hud { padding: 13px 18px 0; max-width: 720px; width: 100%; margin: 0 auto; }
.rz-hud-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 13px; color: var(--muted); }
.rz-hud-row b { color: var(--text); font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.rz-rounds { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.rz-rounds i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .13); overflow: hidden; position: relative; }
.rz-rounds i b { position: absolute; inset: 0; width: 0; background: var(--c, var(--sun)); transition: width .4s var(--ease); border-radius: 3px; }
.rz-stage { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 18px 34px; display: flex; flex-direction: column; justify-content: flex-start; }
.rz-enter { animation: rz-up .4s var(--ease) both; }
.rz-center-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 13px; min-height: 58vh; }

.rz-intro-n { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 15px; letter-spacing: .28em; color: var(--c, var(--sun)); }
.rz-intro-name { font-size: clamp(36px, 9vw, 64px); font-weight: 900; }
.rz-intro-tag { color: var(--muted); font-size: 18px; max-width: 460px; }
.rz-count { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 96px; line-height: 1; color: var(--c, var(--sun)); height: 104px; }
.rz-count span { display: block; animation: rz-pop .85s var(--ease) both; }
@keyframes rz-pop { 0% { transform: scale(1.8); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.92); opacity: .85; } }

.rz-q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.rz-chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 5px 11px; border-radius: 999px; background: var(--panel-2); color: #ddd6f4; }
.rz-chip-d { background: transparent; border: 1px solid var(--line); text-transform: capitalize; color: var(--muted); }
.rz-timer { position: relative; flex: none; width: 54px; height: 54px; }
.rz-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rz-timer circle { fill: none; stroke-width: 5; }
.rz-timer .bg { stroke: rgba(255, 255, 255, .13); }
.rz-timer .fg { stroke: var(--c, var(--sun)); stroke-linecap: round; }
.rz-timer.low .fg { stroke: var(--bad); }
.rz-timer b { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.rz-prompt { font-size: clamp(21px, 5vw, 29px); font-weight: 800; margin-bottom: 19px; font-family: "Outfit", sans-serif; letter-spacing: -.01em; line-height: 1.22; }
.rz-options { display: grid; gap: 10px; }
.rz-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 13px 15px; text-align: left; cursor: pointer; border-radius: 14px;
  background: var(--panel); border: 2px solid var(--line); font-size: 17px; font-weight: 500; transition: transform .12s, border-color .15s, background .15s;
}
.rz-opt:hover:not([disabled]) { border-color: var(--c, var(--sun)); transform: translateY(-1px); }
.rz-opt[disabled] { cursor: default; }
.rz-opt-key { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel-2); font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 13px; color: var(--muted); }
.rz-opt.is-right { border-color: var(--good); background: rgba(54, 226, 154, .15); }
.rz-opt.is-wrong { border-color: var(--bad); background: rgba(255, 100, 100, .13); animation: rz-shake .35s; }
.rz-opt.is-right .rz-opt-key { background: var(--good); color: #042; }
.rz-opt.is-wrong .rz-opt-key { background: var(--bad); color: #300; }
@keyframes rz-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.rz-feedback { margin-top: 13px; padding: 12px 14px; border-radius: 13px; background: var(--panel); border-left: 4px solid var(--c, var(--sun)); font-size: 15px; color: #e6e0f5; animation: rz-up .3s var(--ease) both; }
.rz-feedback b { font-weight: 700; }

/* Puzzles */
.rz-seq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin: 3px 0 22px; }
.rz-seq span { min-width: 54px; padding: 11px 8px; text-align: center; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.rz-seq span.q { background: transparent; border: 2px dashed var(--c, var(--sun)); color: var(--c, var(--sun)); }
.rz-expression { text-align: center; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(30px, 8vw, 46px); margin: 8px 0 24px; font-variant-numeric: tabular-nums; }
.rz-tile { display: block; width: 100%; height: 100%; }
.rz-tile-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 21px; }
.rz-tile-row > * { flex: 0 0 auto; width: 52px; height: 52px; padding: 7px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.rz-tile-row .q { display: grid; place-items: center; background: transparent; border: 2px dashed var(--c, var(--sun)); color: var(--c, var(--sun)); font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 22px; }
.rz-tile-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.rz-tile-opts .rz-opt { display: block; aspect-ratio: 1; min-height: 0; padding: 12px; }
.rz-tile-grid { display: grid; gap: 8px; margin: 0 auto; max-width: 400px; width: 100%; }
.rz-tile-grid .rz-opt { display: block; aspect-ratio: 1; min-height: 0; padding: 11px; }

/* Reflex */
.rz-pad { position: relative; flex: 1; min-height: 58vh; border-radius: 22px; background: #120e27; border: 2px solid var(--line); overflow: hidden; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; user-select: none; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; }
.rz-pad-msg { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: clamp(21px, 5vw, 29px); z-index: 1; pointer-events: none; }
.rz-pad-msg small { display: block; font-family: "Outfit", sans-serif; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 7px; letter-spacing: 0; }
.rz-pad-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.rz-pad-grid i { display: grid; place-items: center; }
.rz-burst { width: min(25vw, 110px); aspect-ratio: 1; border-radius: 50%; }
.rz-burst.sun { background: radial-gradient(circle, #fff5c6, #ffc638 55%, #ff8d1f); box-shadow: 0 0 60px 20px rgba(255, 183, 3, .7); }
.rz-burst.storm { border-radius: 16%; background: linear-gradient(145deg, #5a647e, #252a3c); box-shadow: 0 0 40px 8px rgba(120, 120, 255, .28); position: relative; }
.rz-burst.storm::after { content: ""; position: absolute; inset: 24% 34%; background: #fff; clip-path: polygon(55% 0, 15% 55%, 45% 55%, 30% 100%, 85% 40%, 52% 40%); }
.rz-pad.is-go { background: #1a1405; border-color: var(--sun); }
.rz-pad.is-storm { background: #0d0f1e; border-color: #5a647e; }
.rz-pad.is-bad { background: #2a0e14; border-color: var(--bad); }
.rz-pad.is-ok { background: #0b241b; border-color: var(--good); }
.rz-pad-trials { display: flex; gap: 5px; justify-content: center; margin-bottom: 11px; }
.rz-pad-trials i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.rz-pad-trials i.done { background: var(--c, var(--sun)); }

/* Memory */
.rz-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 440px; margin: 0 auto; width: 100%; perspective: 800px; }
.rz-mem { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .32s var(--ease); }
.rz-mem.open { transform: rotateY(180deg); cursor: default; }
.rz-mem > span { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.rz-mem-back { background: linear-gradient(150deg, #33255f, #1d1540); border: 1px solid rgba(157, 123, 255, .4); color: var(--violet); font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 16px; letter-spacing: .05em; }
.rz-mem-back img { width: 46%; opacity: .55; }
.rz-mem-front { background: #fbf6ea; transform: rotateY(180deg); overflow: hidden; display: flex !important; flex-direction: column; align-items: stretch !important; }
.rz-card-img { display: block; flex: 1; min-height: 0; width: 100%; }
.rz-card-img.cover { object-fit: cover; object-position: center 20%; }
.rz-card-img.contain { object-fit: contain; padding: 10% 12% 4%; }
.rz-card-label { flex: none; display: block; padding: 3px 2px 4px; background: #1a1148; color: #fff; font-size: clamp(9px, 2.7vw, 12px); font-weight: 600; line-height: 1.15; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-mem.matched .rz-mem-front { box-shadow: 0 0 0 3px var(--good); }
.rz-mem-stats { display: flex; justify-content: center; gap: 19px; margin-bottom: 13px; color: var(--muted); font-size: 14px; }
.rz-mem-stats b { color: var(--text); font-weight: 700; }
.rz-simon { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; max-width: 340px; width: 100%; margin: 12px auto 0; }
.rz-simon button { aspect-ratio: 1; border-radius: 19px; border: 0; cursor: pointer; opacity: .38; transition: opacity .1s, transform .1s; }
.rz-simon button.lit, .rz-simon button:active { opacity: 1; transform: scale(.96); box-shadow: 0 0 40px currentColor; }
.rz-simon button[disabled] { cursor: default; }
.rz-simon button:nth-child(1) { background: var(--sun); color: var(--sun); }
.rz-simon button:nth-child(2) { background: var(--teal); color: var(--teal); }
.rz-simon button:nth-child(3) { background: var(--coral); color: var(--coral); }
.rz-simon button:nth-child(4) { background: var(--violet); color: var(--violet); }
.rz-recall { display: grid; gap: 7px; max-width: 360px; width: 100%; margin: 12px auto 0; }
.rz-recall button { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: background .12s; }
.rz-recall button.lit { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 22px rgba(157, 123, 255, .6); }
.rz-recall button.right { background: var(--good); border-color: var(--good); }
.rz-recall button.missed { background: rgba(54, 226, 154, .28); border: 2px dashed var(--good); }
.rz-recall button.wrong { background: var(--bad); border-color: var(--bad); }
.rz-recall button[disabled] { cursor: default; }
.rz-stage-title { text-align: center; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.rz-stage-sub { text-align: center; color: var(--muted); font-size: 15px; min-height: 23px; }

/* Round result */
.rz-round-score { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(66px, 18vw, 106px); color: var(--c, var(--sun)); line-height: 1; font-variant-numeric: tabular-nums; }
.rz-round-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }

/* Forms */
.rz-field { display: block; margin-bottom: 13px; }
.rz-field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #dcd6ef; }
.rz-input, .rz-select { width: 100%; min-height: 50px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--text); background: #100c24; border: 2px solid var(--line); border-radius: 13px; }
.rz-input:focus, .rz-select:focus { outline: none; border-color: var(--sun); }
.rz-input::placeholder { color: #736d90; }
.rz-note { font-size: 14px; color: var(--muted); margin-top: 7px; }
.rz-error { background: rgba(255, 100, 100, .13); border: 1px solid rgba(255, 100, 100, .5); color: #ffc8c8; padding: 11px 13px; border-radius: 12px; font-size: 15px; margin: 11px 0; }
.rz-success { background: rgba(54, 226, 154, .12); border: 1px solid rgba(54, 226, 154, .5); color: #baf5da; padding: 11px 13px; border-radius: 12px; font-size: 15px; margin: 11px 0; }
.rz-code { display: block; font-family: "Montserrat", monospace; font-weight: 800; font-size: 18px; letter-spacing: .05em; background: #100c24; border: 2px dashed var(--sun); padding: 12px; border-radius: 12px; text-align: center; word-break: break-all; }

/* Results */
.rz-result-hero { position: relative; overflow: hidden; text-align: center; padding: 34px 18px 42px; background: linear-gradient(180deg, #120e2c 0%, #3d1748 60%, #a13f2d 100%); }
.rz-total { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: clamp(88px, 27vw, 170px); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #ffd166 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rz-total-sub { color: #f3e4d7; font-size: 16px; letter-spacing: .05em; }
.rz-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.rz-pill { background: rgba(10, 6, 26, .62); border-radius: 13px; padding: 9px 15px; min-width: 94px; }
.rz-pill small { display: block; color: #d9cbdc; font-size: 12px; }
.rz-pill b { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 19px; }
.rz-bar-row { margin-bottom: 15px; }
.rz-bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; margin-bottom: 5px; }
.rz-bar-label b { font-weight: 700; }
.rz-bar-label span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--c, var(--sun)); white-space: nowrap; }
.rz-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rz-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--c, var(--sun)); transition: width 1.1s var(--ease); }
.rz-bar-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rz-check { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rz-check:last-child { border-bottom: 0; }
.rz-check i { flex: none; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; background: var(--panel-2); color: var(--muted); }
.rz-check.ok i { background: var(--good); color: #042; }
.rz-check small { display: block; color: var(--muted); font-size: 14px; }
.rz-status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--panel-2); }
.rz-status.good { background: rgba(54, 226, 154, .18); color: var(--good); }
.rz-status.warn { background: rgba(255, 183, 3, .17); color: var(--sun); }
.rz-status.bad { background: rgba(255, 100, 100, .16); color: #ff9c9c; }

/* Share */
.rz-share-card { background: linear-gradient(135deg, #1e1538, #301745); border: 1px solid rgba(255, 183, 3, .35); }
.rz-linkbox { display: flex; gap: 7px; margin: 12px 0; }
.rz-linkbox input { flex: 1; min-width: 0; min-height: 46px; padding: 9px 12px; background: #100c24; border: 1px solid var(--line); border-radius: 11px; color: var(--text); font: inherit; font-size: 14px; }
.rz-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rz-share-grid .rz-btn-wa { grid-column: 1 / -1; min-height: 56px; font-size: 15px; }
.rz-progress { height: 13px; border-radius: 7px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 7px 0 5px; }
.rz-progress i { display: block; height: 100%; background: var(--sunrise); border-radius: 7px; transition: width .8s var(--ease); }
.rz-funnel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 620px) { .rz-funnel { grid-template-columns: repeat(5, 1fr); } }
.rz-funnel div { background: #100c24; border-radius: 13px; padding: 12px; text-align: center; }
.rz-funnel b { display: block; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 25px; }
.rz-funnel small { color: var(--muted); font-size: 13px; line-height: 1.25; display: block; }

/* Leaderboard */
.rz-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 17px; scrollbar-width: none; }
.rz-tabs::-webkit-scrollbar { display: none; }
.rz-tab { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.rz-tab[aria-selected="true"] { background: var(--sun); color: #1c0d00; border-color: var(--sun); }
.rz-podium { display: grid; grid-template-columns: 1fr 1.14fr 1fr; align-items: end; gap: 7px; margin-bottom: 20px; }
.rz-pod { text-align: center; min-width: 0; animation: rz-up .6s var(--ease) both; }
.rz-pod:nth-child(1) { animation-delay: .12s; }
.rz-pod:nth-child(3) { animation-delay: .22s; }
.rz-avatar { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--panel-2); font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 14px; }
.rz-pod .rz-avatar { width: 58px; height: 58px; font-size: 18px; margin-bottom: 6px; background: linear-gradient(145deg, #8a8fa8, #565b73); }
.rz-pod.p1 .rz-avatar { width: 72px; height: 72px; font-size: 22px; background: var(--sunrise); color: #1c0d00; }
.rz-pod.p3 .rz-avatar { background: linear-gradient(145deg, #c9845a, #7f4b2c); }
.rz-pod-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.rz-pod-score { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 19px; color: var(--sun); }
.rz-pod-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.rz-pod-block { border-radius: 12px 12px 0 0; display: grid; place-items: center; font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 25px; background: var(--panel-2); height: 62px; }
.rz-pod.p1 .rz-pod-block { height: 98px; background: linear-gradient(180deg, #ffb703, #c96a10); color: #1c0d00; font-size: 34px; }
.rz-pod.p3 .rz-pod-block { height: 46px; }
.rz-rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rz-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.rz-row:last-child { border-bottom: 0; }
.rz-row.me { background: rgba(255, 183, 3, .1); box-shadow: inset 3px 0 0 var(--sun); }
.rz-row-pos { flex: none; width: 27px; text-align: center; font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.rz-row-who { flex: 1; min-width: 0; }
.rz-row-who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-row-who small { color: var(--muted); font-size: 13px; }
.rz-row-score { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 18px; color: var(--sun); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rz-empty { text-align: center; padding: 42px 18px; color: var(--muted); }
.rz-live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.rz-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: rz-pulse 1.6s infinite; }
@keyframes rz-pulse { 50% { opacity: .3; } }

/* Dashboard + rules */
.rz-page-head { padding: 26px 0 8px; }
.rz-page-head h1 { font-size: clamp(27px, 6vw, 42px); font-weight: 900; }
.rz-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
@media (min-width: 720px) { .rz-stats { grid-template-columns: repeat(4, 1fr); } }
.rz-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 13px 15px; }
.rz-stat small { display: block; color: var(--muted); font-size: 13px; }
.rz-stat b { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 25px; font-variant-numeric: tabular-nums; }
.rz-block { margin-top: 24px; }
.rz-block > h2 { font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.rz-attempt { display: flex; justify-content: space-between; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rz-attempt:last-child { border-bottom: 0; }
.rz-attempt b { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 19px; color: var(--sun); }
.rz-attempt small { display: block; color: var(--muted); font-size: 13px; }
.rz-rules h2 { font-size: 21px; font-weight: 800; margin: 26px 0 9px; }
.rz-rules ol, .rz-rules ul { padding-left: 21px; margin: 0; }
.rz-rules li { margin-bottom: 7px; color: #ddd7ee; }
.rz-rules p { color: #ddd7ee; margin-bottom: 9px; }
.rz-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; background: var(--text); color: #1a1430; padding: 11px 19px; border-radius: 13px; font-weight: 600; font-size: 15px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); animation: rz-up .3s var(--ease) both; max-width: calc(100vw - 36px); }
#rz-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.rz-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--sun); animation: rz-spin .8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rz-sun-wrap { transform: translate(-50%, 56%); }
}
