:root {
  --bg: #0d1016;
  --panel: #151922;
  --panel-light: #1a1f2a;
  --line: #282e3b;
  --text: #f2f3f5;
  --muted: #8d95a4;
  --muted-dark: #626a78;
  --lime: #b8f045;
  --lime-dark: #95c928;
  --purple: #9b7cff;
  --red: #ff6b7a;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; background: radial-gradient(circle at 80% 0%, rgba(83, 64, 144, .13), transparent 32rem), var(--bg); }
.topbar { width: min(1400px, calc(100% - 80px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.04em; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px 9px 9px 3px; color: #12160a; background: var(--lime); font-size: 17px; }
.brand-accent { color: var(--lime); }
.connection-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-dark); box-shadow: 0 0 0 4px rgba(98,106,120,.12); }
.is-connected .status-dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(184,240,69,.12); }
.is-connected .connection-status { color: var(--lime); }
.button { border: 0; border-radius: 9px; padding: 12px 18px; color: var(--text); font-weight: 700; transition: transform .2s, filter .2s, background .2s; }
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.button:disabled { cursor: not-allowed; opacity: .4; }
.button-ghost { display: inline-flex; align-items: center; gap: 8px; color: #dadde3; background: var(--panel-light); border: 1px solid var(--line); padding: 9px 14px; font-size: 12px; }
.kick-icon { display: grid; place-items: center; width: 19px; height: 19px; background: #53e16d; border-radius: 5px; color: #09120b; font-size: 11px; font-weight: 800; }
.button-primary { background: var(--lime); color: #151b0d; }
.button-full { width: 100%; margin-top: 24px; }

.main-content { width: min(1400px, calc(100% - 80px)); margin: 0 auto; padding: 65px 0 30px; }
.hero-copy { max-width: 610px; margin-bottom: 48px; }
.eyebrow, .section-kicker { color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin: 0 0 11px; }
h1, h2, p { margin-top: 0; }
h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(44px, 5vw, 70px); line-height: .96; letter-spacing: -.065em; margin-bottom: 22px; }
h1 span { color: var(--lime); }
.hero-description { color: var(--muted); max-width: 490px; font-size: 15px; line-height: 1.6; }
h2 { font-family: "Space Grotesk", sans-serif; font-size: 18px; letter-spacing: -.04em; margin-bottom: 0; }
.dashboard-grid { display: grid; grid-template-columns: 285px minmax(390px, 1fr) 300px; align-items: start; gap: 18px; }
.control-column, .side-column { display: grid; gap: 18px; }
.panel { background: rgba(21,25,34,.88); border: 1px solid var(--line); border-radius: 15px; }
.setup-panel { padding: 24px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.panel-heading.compact { margin-bottom: 19px; }
.live-badge { border: 1px solid rgba(184,240,69,.28); color: var(--lime); border-radius: 99px; padding: 5px 8px; font-size: 8px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.field-label { display: block; color: #c9cdd5; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.field-hint { color: var(--muted-dark); font-size: 10px; line-height: 1.45; margin: 7px 0 0; }
.input-with-prefix { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #11151d; border-radius: 8px; padding: 0 12px; color: var(--lime); }
.input-with-prefix input { min-width: 0; width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; padding: 11px 0; font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.spin-duration-label { margin-top: 20px; }
.select-wrap { position: relative; }
.select-wrap::after { content: "⌄"; color: var(--muted); position: absolute; right: 11px; top: 8px; pointer-events: none; }
select { width: 100%; appearance: none; border: 1px solid var(--line); background: #11151d; color: #d9dce2; border-radius: 8px; padding: 10px 25px 10px 10px; outline: 0; font-size: 11px; }
.info-panel { padding: 16px; display: flex; align-items: flex-start; gap: 11px; background: rgba(184,240,69,.06); border-color: rgba(184,240,69,.15); }
.info-icon { flex: 0 0 auto; display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid var(--lime); border-radius: 50%; color: var(--lime); font: 700 12px Georgia, serif; }
.info-panel strong { display: block; font-size: 11px; margin-bottom: 4px; }
.info-panel p { color: #89947a; font-size: 10px; line-height: 1.5; margin: 0; }

.wheel-panel { padding: 24px; min-height: 624px; text-align: center; }
.wheel-panel-top { display: flex; align-items: flex-start; justify-content: space-between; text-align: left; }
.participant-count { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--muted); font-size: 10px; }
.participant-count strong { color: var(--text); font: 700 23px "Space Grotesk", sans-serif; }
.wheel-stage { position: relative; display: grid; place-items: center; min-height: 325px; margin: 7px auto 0; }
.countdown-overlay { position: absolute; z-index: 5; inset: 0; display: none; place-items: center; pointer-events: none; }
.countdown-overlay.visible { display: grid; }
.countdown-overlay span { display: grid; place-items: center; width: 98px; height: 98px; border: 3px solid var(--lime); border-radius: 50%; color: var(--lime); background: rgba(13,16,22,.9); box-shadow: 0 0 35px rgba(184,240,69,.35); font: 700 48px "Space Grotesk", sans-serif; animation: countdown-pop .85s ease-out both; }
.wheel-shadow { position: absolute; bottom: 25px; width: 210px; height: 20px; background: rgba(0,0,0,.35); border-radius: 50%; filter: blur(10px); }
.name-reel { position: relative; z-index: 1; width: min(100%, 390px); height: 300px; margin: 8px auto 25px; overflow: hidden; border: 1px solid #303746; border-radius: 16px; background: #10141c; box-shadow: inset 0 0 45px rgba(0,0,0,.42), 0 20px 45px rgba(0,0,0,.28); }
.reel-track { position: absolute; top: 0; left: 0; width: 100%; transition-property: transform; transition-timing-function: cubic-bezier(.09,.72,.18,1); transition-duration: 8s; will-change: transform; }
.reel-item { display: grid; place-items: center; height: 58px; padding: 0 28px; overflow: hidden; color: #8992a2; font: 600 22px "Space Grotesk", sans-serif; opacity: .72; filter: none; text-overflow: ellipsis; white-space: nowrap; transition: color .4s, opacity .4s, filter .4s, text-shadow .4s; }
.reel-item.is-winner { color: var(--lime); opacity: 1; filter: none; font-size: 29px; text-shadow: 0 0 20px rgba(184,240,69,.55); }
.reel-empty { display: grid; place-items: center; height: 300px; color: #e9edf3; font: 700 40px "Space Grotesk", sans-serif; }
.reel-fog { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(16,20,28,.98) 0%, rgba(16,20,28,.86) 15%, rgba(16,20,28,.12) 25%, rgba(16,20,28,.08) 75%, rgba(16,20,28,.86) 85%, rgba(16,20,28,.98) 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 11%, transparent 22%, transparent 78%, #000 89%, #000 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 11%, transparent 22%, transparent 78%, #000 89%, #000 100%); backdrop-filter: blur(5px); }
.reel-center-line { position: absolute; z-index: 3; top: 50%; right: 9px; left: 9px; height: 60px; transform: translateY(-50%); border: 1px solid rgba(184,240,69,.48); border-radius: 10px; background: rgba(184,240,69,.045); box-shadow: 0 0 25px rgba(184,240,69,.11), inset 0 0 20px rgba(184,240,69,.06); pointer-events: none; }
.reel-center-line::before, .reel-center-line::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); transform: translateY(-50%); }
.reel-center-line::before { left: -3px; }.reel-center-line::after { right: -3px; }
.name-reel.spinning .reel-item { opacity: .8; filter: none; }.name-reel.spinning .reel-center-line { border-color: rgba(184,240,69,.8); box-shadow: 0 0 35px rgba(184,240,69,.2), inset 0 0 24px rgba(184,240,69,.12); }
.winner-card { min-height: 60px; border: 1px solid var(--line); background: #11151d; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 15px; }
.winner-label { color: var(--lime); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.winner-card strong { display: none; font: 700 20px "Space Grotesk", sans-serif; color: white; margin-top: 3px; }
.winner-placeholder { color: var(--muted-dark); font-size: 11px; margin-top: 3px; }
.winner-card.has-winner { border-color: rgba(184,240,69,.42); background: rgba(184,240,69,.07); }
.winner-card.reveal { animation: winner-reveal .8s cubic-bezier(.2,.9,.2,1) both; }
.winner-card.has-winner strong { display: block; }
.winner-card.has-winner .winner-placeholder { display: none; }
.audit-card { margin: -2px 0 15px; padding: 13px 14px; border: 1px solid rgba(155,124,255,.25); border-radius: 10px; background: rgba(155,124,255,.055); text-align: left; }
.audit-card.audit-valid { border-color: rgba(184,240,69,.42); background: rgba(184,240,69,.055); }.audit-card.audit-valid #auditState { color: var(--lime); }.audit-card.audit-invalid { border-color: rgba(255,107,122,.48); background: rgba(255,107,122,.06); }.audit-card.audit-invalid #auditState { color: var(--red); }
.audit-card[hidden] { display: none; }
.audit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.audit-heading strong { display: block; color: #dad3ff; font-size: 11px; margin-top: 4px; }
.audit-lock { padding: 4px 6px; border: 1px solid rgba(155,124,255,.3); border-radius: 5px; color: #b7a7ff; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.audit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.audit-fields div { min-width: 0; }.audit-fields span { display: block; margin-bottom: 4px; color: var(--muted-dark); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }.audit-fields code { display: block; overflow: hidden; color: #beb5ee; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.audit-card p { color: var(--muted); font-size: 9px; line-height: 1.4; margin: 10px 0 0; }.audit-actions { display: flex; gap: 7px; margin-top: 11px; }.audit-actions .button { flex: 1; padding: 8px 7px; font-size: 9px; }.audit-actions .button:disabled { opacity: .42; }
.draw-button { min-width: 190px; }
.sound-toggle {
  display: flex;
  min-height: 34px;
  margin: 10px auto 0;
  padding: 7px 12px;
  align-items: center;
  justify-content: center;
  border-color: rgba(137, 220, 255, .3);
  color: #b9d9ef;
  font-size: 10px;
}

.sound-toggle[aria-pressed="true"] {
  border-color: rgba(137, 220, 255, .48);
  color: #d7f7ff;
}

.sound-toggle[aria-pressed="false"] {
  opacity: .72;
}

body.claim-mode .game-wheel-panel > .sound-toggle {
  display: none !important;
}

.sparkle { margin-right: 5px; font-size: 16px; }

.participants-panel, .activity-panel { padding: 21px; }
.count-pill { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 50%; background: rgba(184,240,69,.15); color: var(--lime); font-size: 11px; font-weight: 700; }
.participant-list { max-height: 225px; overflow-y: auto; min-height: 120px; }
.participant-list::-webkit-scrollbar { width: 3px; }.participant-list::-webkit-scrollbar-thumb { background: var(--line); }
.local-participant-entry {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(96, 166, 239, .22);
  text-align: left;
}

.local-participant-entry .field-label {
  margin-bottom: 7px;
}

.local-participant-entry small {
  display: block;
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 9px;
}

.local-add-button {
  min-width: 40px;
  padding: 0 12px;
  font-size: 18px;
}

.participant { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.055); animation: fade-in .25s ease-out; }
.avatar { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 8px; color: #141912; background: var(--lime); font-size: 10px; font-weight: 700; }
.participant:nth-child(3n) .avatar { background: var(--purple); color: white; }.participant:nth-child(4n) .avatar { background: #f5c64f; }
.participant-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dfe1e5; font-size: 11px; }
.participant-time { margin-left: auto; color: var(--muted-dark); font-size: 9px; }
.empty-state { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted-dark); }
.empty-icon { color: var(--muted-dark); font-size: 20px; margin-bottom: 8px; }.empty-state p { margin: 0 0 4px; font-size: 11px; color: var(--muted); }.empty-state small { max-width: 170px; font-size: 9px; line-height: 1.4; }
.simulate-box { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 17px; }
.simulate-row { display: flex; gap: 7px; }
.simulate-row input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #11151d; color: var(--text); padding: 9px 10px; outline: 0; font-size: 11px; }
.simulate-row input:focus, .input-with-prefix:focus-within, select:focus { border-color: var(--lime-dark); }
.icon-button { width: 34px; border: 0; border-radius: 8px; background: var(--lime); color: #12160a; font-size: 20px; line-height: 1; }
.activity-panel { min-height: 160px; }.activity-list { display: grid; gap: 10px; }.activity-empty { color: var(--muted-dark); font-size: 10px; line-height: 1.5; margin: 0; }.activity-item { display: flex; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }.activity-item b { color: #dce0e6; font-weight: 600; }.activity-bullet { flex: 0 0 auto; width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--lime); }
.footer { width: min(1400px, calc(100% - 80px)); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0 28px; color: var(--muted-dark); font-size: 10px; }.footer-mark { color: var(--lime); margin-right: 5px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); padding: 11px 16px; border: 1px solid rgba(184,240,69,.35); border-radius: 8px; color: #e9f7cc; background: #202a18; box-shadow: 0 8px 28px rgba(0,0,0,.3); font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes countdown-pop { 0% { opacity: 0; transform: scale(.55); } 20% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes winner-reveal { 0% { opacity: 0; transform: translateY(10px) scale(.92); } 65% { transform: translateY(-3px) scale(1.03); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 1080px) { .dashboard-grid { grid-template-columns: 260px minmax(350px, 1fr); }.side-column { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }.participant-list { max-height: 180px; } }
@media (max-width: 720px) { .topbar, .main-content, .footer { width: min(100% - 32px, 500px); }.topbar { min-height: 68px; gap: 12px; }.connection-status { display: none; }.button-ghost { padding: 8px 10px; font-size: 10px; }.main-content { padding-top: 42px; }.hero-copy { margin-bottom: 34px; } h1 { font-size: 51px; }.dashboard-grid { display: flex; flex-direction: column; }.control-column, .wheel-column, .side-column { width: 100%; }.side-column { display: grid; grid-template-columns: 1fr; }.wheel-panel { min-height: 570px; }.wheel-stage { min-height: 325px; }.name-reel { height: 290px; }.reel-item { height: 56px; font-size: 20px; }.reel-item.is-winner { font-size: 26px; }.reel-empty { height: 290px; }.wheel-shadow { bottom: 27px; } }

/* Estética CRT/cyber azul: linhas retas, brilho frio e textura de monitor. */
:root {
  --bg: #050817;
  --panel: #09112a;
  --panel-light: #0d1839;
  --line: #1a3a87;
  --text: #edf5ff;
  --muted: #8297c2;
  --muted-dark: #53658b;
  --lime: #6fe8ff;
  --lime-dark: #2e9bff;
  --purple: #6576ff;
  --red: #ff648c;
}

html { background: var(--bg); }
body {
  color: var(--text);
  background: #050817;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 5, 25, .48) 100%);
  mix-blend-mode: multiply;
}

.app-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(29, 78, 190, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 190, .035) 1px, transparent 1px),
    radial-gradient(circle at 75% -15%, rgba(30, 85, 255, .28), transparent 34rem),
    radial-gradient(circle at 12% 65%, rgba(0, 157, 255, .08), transparent 30rem),
    var(--bg);
  background-size: 4px 4px, 4px 4px, auto, auto, auto;
}

.app-shell::before {
  position: fixed;
  z-index: 19;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .28;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(107, 196, 255, .055) 4px, transparent 5px);
}

.topbar, .footer { border-color: rgba(70, 133, 255, .32); }
.brand { text-transform: uppercase; letter-spacing: .04em; }
.brand-mark { border-radius: 2px; color: #031326; background: var(--lime); box-shadow: 0 0 18px rgba(111, 232, 255, .35); }
.brand-accent, .eyebrow, .section-kicker, .winner-label { color: var(--lime); }
.connection-status { color: #7893c7; text-transform: uppercase; letter-spacing: .06em; }
.status-dot { border-radius: 0; background: #365184; box-shadow: 0 0 0 3px rgba(54, 81, 132, .18); }
.is-connected .status-dot { background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 3px rgba(111, 232, 255, .16), 0 0 13px var(--lime); }
.is-connected .connection-status { color: var(--lime); }

.button { border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 0 0 1px rgba(74, 133, 255, .08); }
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.14); box-shadow: 0 0 18px rgba(54, 148, 255, .22); }
.button-ghost { color: #c9ddff; background: rgba(12, 27, 67, .76); border-color: #2450ad; }
.button-primary { color: #031326; background: var(--lime); box-shadow: 0 0 18px rgba(65, 203, 255, .23); }
.kick-icon { border-radius: 1px; background: #59e5ff; color: #041326; }

.hero-copy { position: relative; }
.hero-copy::before { position: absolute; top: 3px; left: -16px; width: 3px; height: 68px; content: ""; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
h1 { text-shadow: 0 0 28px rgba(57, 120, 255, .18); }
h1 span { color: var(--lime); text-shadow: 0 0 22px rgba(111, 232, 255, .4); }
.hero-description { color: #8ca3d3; }

.panel { border-radius: 2px; border-color: #1c3d8d; background: linear-gradient(145deg, rgba(10, 22, 55, .94), rgba(5, 12, 31, .96)); box-shadow: inset 0 0 0 1px rgba(75, 132, 255, .055), 0 16px 35px rgba(0, 5, 30, .22); }
.panel-heading { border-bottom: 1px solid rgba(60, 119, 242, .18); padding-bottom: 15px; }
.panel-heading.compact { padding-bottom: 13px; }
.live-badge { border-radius: 1px; border-color: rgba(111, 232, 255, .4); color: var(--lime); background: rgba(48, 139, 255, .08); }
.field-label { color: #b9cceb; text-transform: uppercase; letter-spacing: .08em; }
.field-hint { color: #5e78aa; }
.input-with-prefix, select, .simulate-row input, .winner-card { border-radius: 1px; border-color: #1d438f; background: #050d22; }
.input-with-prefix { box-shadow: inset 0 0 18px rgba(20, 72, 179, .12); }
.input-with-prefix input, select, .simulate-row input { color: #e9f3ff; }
.input-with-prefix:focus-within, select:focus, .simulate-row input:focus { border-color: var(--lime-dark); outline: 1px solid rgba(111, 232, 255, .26); box-shadow: 0 0 15px rgba(47, 155, 255, .15); }
.select-wrap::after { color: var(--lime); }
.info-panel { border-radius: 1px; background: rgba(33, 115, 235, .08); border-color: rgba(54, 140, 255, .28); }
.info-icon { border-radius: 1px; border-color: var(--lime); color: var(--lime); }
.info-panel p { color: #7891bb; }

.wheel-panel { min-height: 624px; }
.countdown-overlay span { border-radius: 2px; border-color: var(--lime); background: rgba(2, 9, 27, .94); box-shadow: 0 0 35px rgba(58, 169, 255, .35); }
.name-reel { border-radius: 2px; border-color: #2450ad; background: #040a1c; box-shadow: inset 0 0 45px rgba(0, 19, 80, .65), 0 20px 45px rgba(0, 2, 18, .44); }
.reel-item { color: #7192c9; text-shadow: 0 0 8px rgba(67, 126, 255, .18); }
.reel-item.is-winner { color: var(--lime); text-shadow: 0 0 20px rgba(111, 232, 255, .62); }
.reel-fog { background: linear-gradient(to bottom, rgba(4, 10, 28, .99) 0%, rgba(4, 10, 28, .88) 15%, rgba(4, 10, 28, .08) 25%, rgba(4, 10, 28, .08) 75%, rgba(4, 10, 28, .88) 85%, rgba(4, 10, 28, .99) 100%); }
.reel-center-line { border-radius: 1px; border-color: rgba(111, 232, 255, .68); background: rgba(56, 159, 255, .06); box-shadow: 0 0 25px rgba(54, 150, 255, .2), inset 0 0 20px rgba(54, 150, 255, .1); }
.reel-center-line::before, .reel-center-line::after { border-radius: 0; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.winner-card { border-color: #1d438f; }
.winner-card.has-winner { border-color: rgba(111, 232, 255, .6); background: rgba(33, 125, 231, .1); box-shadow: 0 0 22px rgba(45, 139, 255, .15); }
.audit-card { border-radius: 1px; border-color: rgba(101, 118, 255, .45); background: rgba(37, 50, 139, .12); }
.audit-lock { border-radius: 1px; }

.count-pill { border-radius: 1px; background: rgba(67, 137, 255, .18); color: var(--lime); }
.participant { border-color: rgba(57, 111, 219, .2); }
.avatar { border-radius: 1px; background: var(--lime); box-shadow: 0 0 12px rgba(76, 190, 255, .18); }
.participant:nth-child(3n) .avatar { background: var(--purple); }.participant:nth-child(4n) .avatar { background: #58b8ff; }
.simulate-box { border-color: rgba(52, 111, 224, .3); }
.icon-button { border-radius: 1px; background: var(--lime); }
.activity-bullet { border-radius: 0; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.toast { border-radius: 1px; border-color: rgba(111, 232, 255, .5); background: #081d42; box-shadow: 0 8px 28px rgba(0, 4, 30, .45), 0 0 18px rgba(45, 126, 255, .15); }

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

/* Texturas autorais: a cidade vira cenário e o circuito fica nos painéis. */
.app-shell {
  background:
    linear-gradient(180deg, rgba(4, 8, 25, .72) 0%, rgba(4, 8, 25, .9) 38%, rgba(4, 8, 25, .98) 100%),
    url("assets/city-texture.webp") center top / cover fixed no-repeat,
    var(--bg);
}

.app-shell::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .18;
  background: url("assets/panel-texture.webp") center / 900px auto repeat;
  mix-blend-mode: screen;
}

.topbar, .main-content, .footer { position: relative; z-index: 1; }
.topbar { background: rgba(3, 8, 24, .42); }
.hero-copy::before { height: 92px; background: #ff4ca3; box-shadow: 0 0 18px rgba(255, 76, 163, .8); }
.eyebrow { color: #ff71b8; }
h1 span { color: #75edff; }
.hero-description { max-width: 560px; color: #b1c4e9; }

.panel {
  background:
    linear-gradient(145deg, rgba(7, 17, 47, .92), rgba(3, 8, 26, .96)),
    url("assets/panel-texture.webp") center / 620px auto repeat;
  background-blend-mode: normal, screen;
}
.setup-panel, .participants-panel, .activity-panel, .wheel-panel { box-shadow: inset 0 0 0 1px rgba(83, 148, 255, .08), 0 18px 42px rgba(0, 3, 25, .36); }
.name-reel {
  background:
    linear-gradient(rgba(2, 8, 27, .84), rgba(2, 8, 27, .94)),
    url("assets/panel-texture.webp") center / 520px auto repeat;
}
.live-badge { color: #ff71b8; border-color: rgba(255, 87, 175, .48); background: rgba(255, 55, 152, .08); }
.section-kicker { color: #67dfff; }
.winner-label { color: #75edff; }
.audit-card { background: rgba(34, 55, 148, .16); }
.footer { letter-spacing: .1em; }

/* Hub interativo de live */
.game-shell { min-height: 100vh; }
.game-topbar { width: min(1500px, calc(100% - 56px)); min-height: 88px; margin: 0 auto; gap: 20px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.game-hud { display: flex; gap: 8px; margin-left: auto; }
.hud-stat { min-width: 104px; padding: 8px 12px; border: 1px solid rgba(80, 151, 255, .28); border-radius: 2px; background: rgba(6, 17, 46, .72); display: grid; gap: 3px; }
.hud-stat span { color: #6e8ac0; font-size: 8px; letter-spacing: .12em; }
.hud-stat strong { color: #d9eeff; font: 700 12px "Space Grotesk", sans-serif; }
.game-main { width: min(1500px, calc(100% - 56px)); padding-top: 42px; }
.game-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.game-intro .hero-description { max-width: 390px; margin: 0; }
.game-layout { display: grid; grid-template-columns: 72px minmax(520px, 1fr) 330px; gap: 16px; align-items: start; }
.game-rail { min-height: 640px; padding: 10px 7px; border: 1px solid #1c3d8d; background: rgba(4, 12, 35, .78); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rail-label { margin: 4px 0 8px; color: #6280b6; font-size: 8px; letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); }
.rail-action { width: 54px; min-height: 60px; padding: 5px 2px; border: 1px solid transparent; border-radius: 2px; background: transparent; color: #6785bd; display: grid; place-items: center; gap: 2px; cursor: pointer; }
.rail-action span { font-size: 20px; }
.rail-action b { font-size: 7px; letter-spacing: .07em; }
.rail-action:hover, .rail-action.is-active { border-color: #2d74dc; background: rgba(44, 120, 255, .14); color: #7aeaff; box-shadow: 0 0 15px rgba(44, 120, 255, .15); }
.rail-divider { width: 35px; height: 1px; margin: 7px 0; background: #21488f; }
.rail-version { margin-top: auto; color: #5975a8; font-size: 8px; letter-spacing: .1em; line-height: 1.4; text-align: center; }
.game-center { min-width: 0; display: grid; gap: 16px; }
.game-scene-strip { min-height: 90px; padding: 16px 20px; border: 1px solid #1c3d8d; background: linear-gradient(90deg, rgba(10, 33, 85, .88), rgba(6, 17, 46, .92)); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; }
.game-scene-strip::after { content: ""; position: absolute; inset: 0; background: url("assets/city-texture.webp") center 44% / cover; opacity: .17; mix-blend-mode: screen; pointer-events: none; }
.scene-copy, .scene-signal { position: relative; z-index: 1; }
.scene-copy { display: grid; gap: 4px; }
.scene-tag { color: #ff73ba; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.scene-copy strong { color: #eaf5ff; font: 700 21px "Space Grotesk", sans-serif; }
.scene-copy small { color: #7e9bc9; font-size: 10px; }
.scene-signal { display: flex; align-items: center; gap: 8px; color: #6ee9ff; font-size: 9px; letter-spacing: .1em; }
.scene-signal i { width: 7px; height: 7px; border-radius: 50%; background: #6ee9ff; box-shadow: 0 0 12px #6ee9ff; }
.game-setup-panel { padding: 20px; }
.setup-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px 16px; align-items: end; }
.setup-grid .button-full { grid-column: 2; margin-top: 0; }
.game-wheel-panel { min-height: 620px; }
.game-menu { display: grid; gap: 12px; }
.game-menu-header { padding: 0 4px 10px; border-bottom: 1px solid #2450ad; display: flex; align-items: end; justify-content: space-between; }
.game-menu-header span { color: #edf7ff; font: 700 28px "Space Grotesk", sans-serif; letter-spacing: .02em; text-shadow: 0 0 14px rgba(75, 189, 255, .28); }
.game-menu-header small { color: #ff72b9; font-size: 8px; letter-spacing: .14em; }
.menu-tile { min-height: 78px; padding: 12px; border: 1px solid #2859b2; border-radius: 2px; background: rgba(9, 24, 64, .84); color: #dcecff; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; position: relative; overflow: hidden; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.menu-tile::after { content: ""; position: absolute; inset: 0; background: url("assets/panel-texture.webp") center / 420px auto; opacity: .2; mix-blend-mode: screen; pointer-events: none; }
.menu-tile > * { position: relative; z-index: 1; }
.menu-tile:hover, .menu-tile:focus-visible { transform: translateX(-3px); border-color: #79eaff; box-shadow: 0 0 20px rgba(51, 151, 255, .2); outline: none; }
.menu-tile strong { display: block; font: 700 13px "Space Grotesk", sans-serif; }
.menu-tile small { display: block; margin-top: 3px; color: #7898c9; font-size: 9px; }
.menu-tile > b { color: #76eaff; font-size: 18px; }
.tile-icon { width: 34px; height: 34px; border: 1px solid rgba(109, 225, 255, .45); background: rgba(52, 152, 255, .12); color: #73eaff; display: grid; place-items: center; font-size: 19px; }
.menu-tile-spin { border-color: #9f3c8b; background: linear-gradient(110deg, rgba(64, 23, 91, .88), rgba(9, 24, 64, .85)); }
.menu-tile-spin .tile-icon { border-color: rgba(255, 113, 186, .55); color: #ff71ba; }
.menu-tile-audit { border-color: #3c5bc2; }
.game-participants-panel, .game-activity-panel { padding: 17px; }
.game-activity-panel { min-height: 140px; }
.focus-flash { animation: panel-focus .75s ease-out; }
@keyframes panel-focus {
  0% { box-shadow: 0 0 0 rgba(118, 235, 255, 0); }
  35% { box-shadow: 0 0 0 3px rgba(118, 235, 255, .65), 0 0 28px rgba(51, 150, 255, .4); }
  100% { box-shadow: 0 0 0 rgba(118, 235, 255, 0); }
}

@media (max-width: 1080px) {
  .game-layout { grid-template-columns: 64px minmax(0, 1fr); }
  .game-menu { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .game-menu-header, .game-participants-panel, .game-activity-panel { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .game-topbar, .game-main { width: min(100% - 28px, 620px); }
  .game-topbar { min-height: 72px; }
  .game-hud, .connection-status { display: none; }
  .game-intro { display: block; }
  .game-intro .hero-description { margin-top: 20px; }
  .game-layout { display: flex; flex-direction: column; }
  .game-rail { width: 100%; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .rail-label, .rail-divider, .rail-version { display: none; }
  .rail-action { width: auto; }
  .game-menu { width: 100%; grid-template-columns: 1fr 1fr; }
  .game-menu-header, .game-participants-panel, .game-activity-panel { grid-column: 1 / -1; }
  .setup-grid { display: block; }
  .setup-grid > * { margin-top: 18px; }
  .setup-grid > :first-child { margin-top: 0; }
  .setup-grid .button-full { width: 100%; }
  .game-scene-strip { display: block; }
  .scene-signal { margin-top: 12px; }
}

/* Confirmação do vencedor e chat lateral. */
.left-panel-tabs {
  display: flex;
  gap: 6px;
  margin: -4px 0 18px;
  border-bottom: 1px solid rgba(126, 237, 255, .24);
}

.left-panel-tab {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #88a8c6;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.left-panel-tab.is-active {
  border-bottom-color: #fff078;
  color: #fff078;
}

.winner-chat-panel {
  min-height: 230px;
}

.winner-chat-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(126, 237, 255, .24);
}

.winner-chat-heading strong:not(.claim-timer) {
  display: block;
  margin-top: 5px;
  color: #f4fbff;
  font-size: 18px;
}

.claim-timer {
  color: #fff078;
  font: 700 24px ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.claim-status {
  min-height: 32px;
  margin: 14px 0 10px;
  color: #b9d6eb;
  font-size: 12px;
  line-height: 1.45;
}

.winner-chat-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.winner-chat-empty {
  margin: 0;
  color: #6f8ca8;
  font-size: 12px;
}

.winner-chat-message {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-left: 2px solid rgba(126, 237, 255, .48);
  background: #0b234f;
  color: #b7d6ed;
  font-size: 12px;
  line-height: 1.35;
}

.winner-chat-message strong {
  color: #83e7ff;
  font-size: 11px;
}

.winner-chat-message.is-winner {
  border-left-color: #fff078;
  background: #253a42;
  color: #fff8b0;
}

.winner-chat-message.is-winner strong {
  color: #fff078;
}

.claim-confirm-button {
  display: none;
  width: 100%;
  margin-top: 14px;
}

.claim-confirm-button.is-ready {
  display: inline-flex;
  justify-content: center;
}

main.claiming .game-side-panel,
main.claiming .game-wheel-panel > .wheel-panel-top,
main.claiming .game-wheel-panel > .winner-card,
main.claiming .game-wheel-panel > .audit-card,
main.claiming .game-wheel-panel > .draw-button {
  filter: blur(7px);
  opacity: .32;
  pointer-events: none;
  transition: filter .35s ease, opacity .35s ease;
}

main.claiming .game-setup-panel {
  filter: blur(8px);
  opacity: .32;
  pointer-events: none;
}

main.claiming .game-wheel-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

main.claiming .game-wheel-panel::before {
  position: absolute;
  z-index: 0;
  inset: -14px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(20, 61, 126, .9), rgba(50, 26, 126, .92) 50%, rgba(103, 24, 101, .84)),
    url("assets/panel-texture.webp") center / 620px auto repeat;
  filter: blur(9px);
  opacity: .34;
  transform: scale(1.03);
}

main.claiming .game-wheel-panel::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  content: "";
  pointer-events: none;
  background: rgba(4, 10, 32, .04);
  backdrop-filter: blur(8px) saturate(.72);
  -webkit-backdrop-filter: blur(8px) saturate(.72);
}

main.claiming .game-wheel-panel > .claim-focus-layer {
  position: relative;
  z-index: 6;
}

main.claiming .claim-focus-layer {
  margin: -8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

main.claiming .claim-focus-layer > .wheel-stage {
  display: none;
}

main.claiming .claim-focus-layer > .winner-chat-panel {
  display: block;
  width: min(100%, 560px);
  min-height: 0;
  margin: -12px auto 18px;
  padding: 14px 18px;
  border: 1px solid rgba(126, 237, 255, .42);
  background: rgba(7, 17, 48, .9);
  box-shadow: 0 0 28px rgba(44, 160, 255, .16);
}

.claim-winner-spotlight {
  display: none;
}

main.claiming .claim-winner-spotlight {
  position: relative;
  z-index: 8;
  display: grid;
  place-items: center;
  width: min(100%, 560px);
  min-height: 78px;
  margin: 0 auto 16px;
  padding: 0 24px;
  overflow: hidden;
  border: 2px solid #fff078;
  background: linear-gradient(90deg, #1f6bb2, #6334a2);
  color: #fff078;
  box-shadow: 0 0 28px rgba(255, 232, 97, .9);
  font: 700 clamp(28px, 4vw, 46px) "Space Grotesk", sans-serif;
  text-shadow: 0 2px 0 #17245f, 0 0 18px rgba(255, 240, 120, .7);
}

.name-reel.claiming .reel-item:not(.is-winner) {
  opacity: 0 !important;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  filter: blur(8px);
}

.name-reel.claiming .reel-item.is-winner {
  z-index: 20;
  width: 70% !important;
  margin-left: 12% !important;
  border: 2px solid #fff078;
  border-radius: 2px;
  background: linear-gradient(90deg, #1f6bb2, #6334a2);
  color: #fff078;
  opacity: 1 !important;
  filter: none;
  font-size: clamp(26px, 3.8vw, 42px);
  text-shadow: 0 2px 0 #17245f, 0 0 18px rgba(255, 240, 120, .7);
  box-shadow: 0 0 28px rgba(255, 232, 97, .9);
  transform: scale(1.08);
}

.name-reel.claiming::after {
  content: none;
}

.name-reel.claiming .reel-fog {
  backdrop-filter: blur(9px);
}

@media (max-width: 900px) {
  .setup-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.participant-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clear-participants-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10px;
}

/* O brilho acompanha o recorte triangular da seta, sem criar um retângulo luminoso. */
.reel-center-line {
  box-shadow: none;
  filter: drop-shadow(0 0 4px rgba(255, 230, 105, .9)) drop-shadow(0 0 9px rgba(255, 230, 105, .52));
}

.name-reel.spinning .reel-center-line {
  box-shadow: none;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .95)) drop-shadow(0 0 11px rgba(255, 255, 255, .58));
}

/* Seta triangular real: o filtro de sombra acompanha o recorte, sem caixa quadrada. */
.reel-center-line {
  top: 50%;
  right: -1px;
  left: auto;
  width: 30px;
  height: 28px;
  transform: translateY(-50%);
  border: 0;
  background: #fff078;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  box-shadow: none;
  filter: drop-shadow(0 0 4px rgba(255, 230, 105, .9)) drop-shadow(0 0 9px rgba(255, 230, 105, .52));
}

.name-reel.spinning .reel-center-line {
  border: 0;
  border-top-color: transparent;
  background: #ffffff;
  box-shadow: none;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .95)) drop-shadow(0 0 11px rgba(255, 255, 255, .58));
}

/* Durante a confirmação não existe moldura do painel: só o resultado e o chat ficam sólidos. */
main.claiming .game-wheel-panel {
  overflow: visible;
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
}

main.claiming .game-wheel-panel::before {
  inset: 0;
  background: rgba(4, 10, 32, .06);
  filter: none;
  opacity: 1;
  transform: none;
  backdrop-filter: blur(16px) saturate(.7);
  -webkit-backdrop-filter: blur(16px) saturate(.7);
}

/* Modo de foco: durante a confirmação só ficam o fundo, a nameplate e o chat. */
body.claim-mode .app-shell::after {
  z-index: 0;
  opacity: 1;
  background: rgba(4, 10, 32, .12);
  mix-blend-mode: normal;
  backdrop-filter: blur(18px) saturate(.72);
  -webkit-backdrop-filter: blur(18px) saturate(.72);
}

body.claim-mode .game-setup-panel,
body.claim-mode .game-side-panel,
body.claim-mode .game-scene-strip,
body.claim-mode .game-wheel-panel > .wheel-panel-top,
body.claim-mode .game-wheel-panel > .winner-card,
body.claim-mode .game-wheel-panel > .audit-card,
body.claim-mode .game-wheel-panel > .draw-button,
body.claim-mode .game-wheel-panel > .sound-toggle,
body.claim-mode .footer {
  display: none !important;
}

body.claim-mode .game-layout {
  display: block;
}

body.claim-mode .game-center {
  display: block;
  width: 100%;
}

body.claim-mode .game-wheel-panel {
  width: min(100%, 720px);
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}

body.claim-mode .game-wheel-panel::before,
body.claim-mode .game-wheel-panel::after {
  display: none;
}

body.claim-mode .claim-focus-layer {
  margin: 0;
}

/* Escala ampliada e linhas de chat no estilo da Kick, sem badges ou cartões individuais. */
body.claim-mode .game-wheel-panel {
  width: min(100%, 936px);
}

body.claim-mode .game-main {
  padding-top: clamp(90px, 20vh, 220px);
}

body.claim-mode .claim-winner-spotlight {
  width: min(100%, 728px);
  min-height: 102px;
  font-size: clamp(36px, 5.2vw, 60px);
}

body.claim-mode .winner-chat-panel {
  width: min(100%, 728px) !important;
  padding: 18px 23px !important;
}

body.claim-mode .winner-chat-heading strong:not(.claim-timer) {
  font-size: 23px;
}

body.claim-mode .claim-timer {
  font-size: 31px;
}

body.claim-mode .claim-status {
  font-size: 15px;
}

body.claim-mode .winner-chat-list {
  gap: 10px;
}

body.claim-mode .winner-chat-message,
body.claim-mode .winner-chat-message.is-winner {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2f4fa;
  font-size: 15px;
  line-height: 1.45;
}

body.claim-mode .winner-chat-message strong,
body.claim-mode .winner-chat-message.is-winner strong {
  display: inline;
  margin-right: 5px;
  color: #b8f045;
  font-size: 15px;
}

body.claim-mode .winner-chat-message span {
  display: inline;
  color: #f2f4fa;
}

/* Acabamento colorido e movimento físico dos painéis */
.app-shell {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 91, 177, .3), transparent 26%),
    radial-gradient(circle at 12% 82%, rgba(40, 214, 255, .24), transparent 30%),
    linear-gradient(135deg, rgba(9, 31, 96, .78), rgba(26, 8, 70, .9) 52%, rgba(8, 67, 103, .82)),
    url("assets/city-texture.webp") center top / cover fixed no-repeat;
}

.app-shell::after {
  opacity: .24;
  background:
    linear-gradient(135deg, rgba(74, 217, 255, .12), rgba(255, 81, 174, .13)),
    url("assets/panel-texture.webp") center / 900px auto repeat;
}

.game-topbar {
  border-bottom-color: rgba(123, 235, 255, .38);
  background: linear-gradient(90deg, rgba(9, 57, 112, .7), rgba(57, 20, 116, .42), rgba(9, 57, 112, .7));
  box-shadow: 0 12px 35px rgba(1, 4, 35, .25);
}

.game-hud .hud-stat {
  border-color: rgba(105, 224, 255, .5);
  background: linear-gradient(145deg, rgba(21, 143, 208, .38), rgba(24, 30, 103, .72));
  box-shadow: inset 0 -3px 0 rgba(255, 212, 67, .46), 0 5px 18px rgba(1, 10, 56, .25);
}

.game-hud .hud-stat:nth-child(2) {
  border-color: rgba(255, 224, 90, .56);
  box-shadow: inset 0 -3px 0 rgba(255, 116, 183, .68), 0 5px 18px rgba(1, 10, 56, .25);
}

.game-hud .hud-stat:nth-child(3) {
  border-color: rgba(255, 128, 194, .5);
  box-shadow: inset 0 -3px 0 rgba(79, 236, 255, .65), 0 5px 18px rgba(1, 10, 56, .25);
}

.game-hud .hud-stat strong {
  color: #fff3a6;
  text-shadow: 0 0 10px rgba(255, 219, 93, .35);
}

.game-rail {
  border-color: #6ce3ff;
  background: linear-gradient(180deg, rgba(15, 120, 188, .64), rgba(44, 36, 132, .8) 48%, rgba(104, 24, 103, .76));
  box-shadow: 7px 8px 0 rgba(255, 76, 174, .28), 0 15px 30px rgba(1, 4, 35, .3);
}

.rail-label,
.rail-version {
  color: #d7f8ff;
}

.rail-action {
  color: #fff3a6;
  transition: background .18s ease, box-shadow .18s ease;
}

.rail-action:nth-of-type(2n) {
  color: #ffb6df;
}

.rail-action:hover,
.rail-action.is-active {
  border-color: #ffe56f;
  background: linear-gradient(145deg, rgba(255, 219, 88, .38), rgba(255, 73, 171, .34));
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 232, 111, .13), 0 0 24px rgba(255, 93, 183, .45);
}

.game-scene-strip {
  border-color: #77edff;
  background: linear-gradient(100deg, rgba(19, 164, 218, .9), rgba(61, 84, 201, .85) 54%, rgba(202, 53, 143, .78));
  box-shadow: 7px 7px 0 rgba(255, 221, 79, .4), 0 20px 34px rgba(3, 7, 52, .28);
  transition: box-shadow .2s ease;
}

.scene-copy strong {
  text-shadow: 2px 3px 0 rgba(45, 33, 126, .7);
}

.scene-signal {
  color: #fff4a2;
}

.scene-signal i {
  background: #ffe46c;
  box-shadow: 0 0 14px #ffe46c;
}

.game-setup-panel,
.game-wheel-panel {
  border-color: #7beaff;
  background:
    linear-gradient(135deg, rgba(20, 61, 126, .9), rgba(50, 26, 126, .92) 50%, rgba(103, 24, 101, .84)),
    url("assets/panel-texture.webp") center / 620px auto repeat;
  box-shadow: 10px 10px 0 rgba(255, 71, 173, .28), 0 22px 45px rgba(1, 4, 35, .32);
  transition: box-shadow .2s ease;
}

.game-wheel-panel {
  border-color: #ffd95a;
  box-shadow: 10px 10px 0 rgba(39, 223, 255, .3), 0 22px 45px rgba(1, 4, 35, .32);
}

.game-setup-panel .panel-heading,
.game-wheel-panel .wheel-panel-top {
  border-bottom-color: rgba(151, 239, 255, .35);
}

.game-setup-panel .section-kicker,
.game-wheel-panel .section-kicker {
  color: #fff08a;
}

.game-menu-header span {
  color: #fff1a0;
  text-shadow: 3px 3px 0 rgba(209, 42, 133, .62), 0 0 18px rgba(255, 233, 106, .5);
}

.menu-tile {
  border-width: 2px;
  box-shadow: 7px 7px 0 rgba(8, 15, 73, .35);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.menu-tile:nth-of-type(2n) {
}

.menu-tile-chat {
  border-color: #64edff;
  background: linear-gradient(135deg, rgba(5, 170, 211, .9), rgba(26, 70, 177, .92));
}

.menu-tile-spin {
  border-color: #ff9ac9;
  background: linear-gradient(135deg, rgba(223, 58, 148, .94), rgba(90, 31, 165, .92));
}

.menu-tile-audit {
  border-color: #ffe568;
  background: linear-gradient(135deg, rgba(220, 137, 48, .92), rgba(44, 70, 166, .94));
}

.menu-tile strong,
.menu-tile small {
  text-shadow: 1px 2px 0 rgba(22, 19, 91, .5);
}

.menu-tile small {
  color: #ecfaff;
}

.menu-tile > b {
  color: #fff3a0;
  font-size: 25px;
  transition: transform .18s ease;
}

.menu-tile:hover > b {
  transform: translateX(6px) scale(1.25);
}

.tile-icon {
  border-color: rgba(255, 247, 178, .78);
  background: rgba(255, 255, 255, .14);
  color: #fff3a0;
}

.game-participants-panel,
.game-activity-panel {
  border-color: #68e8ff;
  background: linear-gradient(145deg, rgba(19, 113, 179, .9), rgba(38, 37, 112, .94));
  box-shadow: 7px 7px 0 rgba(255, 87, 177, .24);
}

.game-activity-panel {
  border-color: #ff9dcd;
}

.game-participants-panel,
.game-activity-panel,
.menu-tile,
.rail-action,
.hud-stat,
.game-scene-strip,
.game-setup-panel,
.game-wheel-panel {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .rail-action,
  .menu-tile,
  .game-scene-strip,
  .game-setup-panel,
  .game-wheel-panel {
    transform: none !important;
    transition: none !important;
  }
}

/* Reorganiza o hub antes de ficar apertado demais */
@media (max-width: 900px) {
  .game-topbar,
  .game-main {
    width: min(calc(100% - 32px), 760px);
  }

  .game-topbar {
    flex-wrap: wrap;
    padding: 12px 0 14px;
  }

  .game-hud {
    order: 3;
    flex: 1 0 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .game-rail {
    width: 100%;
    min-height: 0;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }

  .rail-label,
  .rail-divider,
  .rail-version {
    display: none;
  }

  .rail-action {
    width: auto;
    min-height: 52px;
  }

  .game-center,
  .game-menu {
    width: 100%;
  }

  .game-intro {
    display: block;
    margin-bottom: 22px;
  }

  .game-intro .hero-description {
    max-width: 600px;
    margin-top: 16px;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(44px, 10vw, 72px);
    line-height: .94;
  }

  .game-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-menu-header,
  .game-participants-panel,
  .game-activity-panel {
    grid-column: 1 / -1;
  }
}

/* No desktop, o sorteio precisa aparecer junto do painel de controle. */
@media (min-width: 1101px) {
  .game-center {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: stretch;
  }

  .game-scene-strip {
    grid-column: 1 / -1;
  }

  .game-setup-panel {
    grid-column: 1;
    min-width: 0;
  }

  .game-wheel-panel {
    grid-column: 2;
    min-width: 0;
    min-height: 560px;
  }
}

@media (max-width: 1100px) {
  .game-center {
    grid-template-columns: 1fr;
  }

  .game-scene-strip,
  .game-setup-panel,
  .game-wheel-panel {
    grid-column: auto;
  }
}

/* O conteúdo começa logo depois do topo. */
.game-main {
  padding-top: 16px;
}

/* Sem trilho lateral: o setup começa alinhado com a roleta. */
.game-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.game-setup-panel,
.game-wheel-panel {
  align-self: stretch;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .game-menu {
    grid-column: 1;
  }
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  background: rgba(3, 7, 28, .48);
  backdrop-filter: blur(14px) saturate(.8);
  display: grid;
  place-items: center;
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(410px, 100%);
  padding: 34px;
  border: 1px solid #72eaff;
  background:
    linear-gradient(145deg, rgba(22, 83, 153, .96), rgba(57, 24, 119, .98) 58%, rgba(107, 25, 100, .94)),
    url("assets/panel-texture.webp") center / 520px auto repeat;
  box-shadow: 10px 10px 0 rgba(255, 75, 175, .42), 0 24px 80px rgba(0, 0, 0, .46);
  text-align: center;
}

.auth-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 2px solid #ffe766;
  background: #5af51e;
  color: #0b2d20;
  display: grid;
  place-items: center;
  font: 800 27px "Space Grotesk", sans-serif;
  box-shadow: 5px 5px 0 rgba(255, 231, 102, .35);
}

.auth-kicker {
  color: #ffe766;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.auth-card h1 {
  margin: 12px 0 10px;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -.05em;
}

.auth-card p {
  margin: 0 auto 24px;
  color: #d1eaff;
  font-size: 13px;
  line-height: 1.5;
}

.auth-button {
  width: 100%;
  min-height: 48px;
  background: #5af51e;
  color: #0b2d20;
  box-shadow: 4px 4px 0 rgba(255, 231, 102, .4);
}

.auth-button:hover:not(:disabled) {
  background: #8bff5d;
  transform: translate(-2px, -2px);
}

.auth-status {
  justify-content: center;
  margin-top: 18px;
  color: #b8d8f2;
}

.collection-status {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 237, 255, .24);
  color: #b3d9ed;
  font-size: 11px;
}

.game-main {
  padding-top: 22px;
}

@media (max-width: 720px) {
  .auth-card {
    padding: 28px 22px;
  }
}

.game-side-panel {
  display: grid;
  gap: 12px;
}

.keyword-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.keyword-entry .button {
  min-height: 42px;
  padding: 0 22px;
}

@media (max-width: 900px) {
  .game-side-panel {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .keyword-entry {
    grid-template-columns: 1fr;
  }

  .keyword-entry .button {
    width: 100%;
  }
}

/* Roleta circular com setores e ponteiro superior. */
.wheel-stage {
  min-height: 470px;
  overflow: hidden;
}

.name-reel {
  width: min(100%, 440px);
  height: auto;
  aspect-ratio: 1;
  margin: 10px auto 28px;
  overflow: visible;
  border: 2px solid #8cefff;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -90deg,
    rgba(26, 128, 213, .95) 0 var(--segment-angle, 90deg),
    rgba(156, 43, 151, .95) var(--segment-angle, 90deg) calc(var(--segment-angle, 90deg) * 2)
  );
  box-shadow: inset 0 0 0 10px rgba(7, 24, 72, .54), 0 18px 42px rgba(0, 0, 0, .42);
}

.name-reel::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 30%;
  border: 2px solid rgba(137, 238, 255, .78);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 31, 83, .98), rgba(5, 10, 35, .98));
  box-shadow: 0 0 0 8px rgba(5, 12, 42, .42), inset 0 0 28px rgba(74, 215, 255, .18);
  pointer-events: none;
}

.name-reel::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -90deg,
    rgba(231, 250, 255, .7) 0 1deg,
    transparent 1deg var(--segment-angle, 90deg)
  );
  opacity: .82;
  pointer-events: none;
}

.reel-track {
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center;
  border-radius: 50%;
  transition-property: transform;
  z-index: 1;
}

.reel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34%, 150px);
  height: auto;
  min-height: 34px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(235, 252, 255, .3);
  background: rgba(7, 19, 64, .46);
  color: #effdff;
  font: 700 clamp(10px, 1.35vw, 17px) "Space Grotesk", sans-serif;
  opacity: .82;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-156px) rotate(calc(var(--angle) * -1));
  transform-origin: center;
  transition: color .4s, opacity .4s, filter .4s, text-shadow .4s;
}

.reel-item.is-winner {
  z-index: 5;
  border-color: #fff07a;
  background: rgba(255, 225, 72, .92);
  color: #17245f;
  opacity: 1;
  font-size: clamp(12px, 1.6vw, 20px);
  text-shadow: none;
  box-shadow: 0 0 24px rgba(255, 226, 89, .82);
}

.reel-empty {
  position: absolute;
  z-index: 4;
  inset: 34%;
  display: grid;
  place-items: center;
  height: auto;
  color: #bdefff;
  font: 700 34px "Space Grotesk", sans-serif;
}

.reel-fog {
  z-index: 4;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 28%, rgba(3, 10, 38, .12) 39%, rgba(3, 10, 38, .4) 100%);
  opacity: .75;
  -webkit-mask-image: none;
  mask-image: none;
  backdrop-filter: blur(1px);
}

.reel-center-line {
  z-index: 8;
  top: -13px;
  right: auto;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border: 0;
  border-right: 13px solid transparent;
  border-left: 13px solid transparent;
  border-top: 26px solid #fff078;
  background: transparent;
  box-shadow: 0 0 14px rgba(255, 230, 105, .72);
}

.reel-center-line::before,
.reel-center-line::after {
  display: none;
}

.name-reel.spinning .reel-item {
  opacity: .52;
  filter: none;
}

.name-reel.spinning .reel-center-line {
  border-top-color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, .86);
}

@media (max-width: 720px) {
  .wheel-stage {
    min-height: 390px;
  }

  .reel-item {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-122px) rotate(calc(var(--angle) * -1));
  }
}

/* Logo oficial somente nos pontos de autenticação da Kick. */
.kick-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.auth-mark {
  padding: 7px;
  overflow: hidden;
  background: #090d1c;
}

.auth-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.menu-tile {
  grid-template-columns: 1fr;
  padding-left: 20px;
}

.icon-button {
  width: auto;
  min-width: 82px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.activity-item {
  gap: 0;
}

/* Fita vertical em arco com ponteiro fixo à direita. */
.wheel-stage {
  min-height: 420px;
  margin-top: 12px;
  overflow: visible;
}

.name-reel {
  --reel-row-height: 58px;
  --reel-row-step: 66px;
  position: relative;
  width: min(100%, 560px);
  height: 390px;
  aspect-ratio: auto;
  margin: 8px auto 28px;
  overflow: hidden;
  border: 1px solid rgba(126, 237, 255, .34);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(4, 12, 38, .8), rgba(4, 9, 28, .94)),
    url("assets/panel-texture.webp") center / 520px auto repeat;
  box-shadow: inset 0 0 36px rgba(1, 4, 30, .8), 0 16px 38px rgba(0, 0, 0, .32);
}

.name-reel::before,
.name-reel::after {
  content: none;
}

.reel-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow: visible;
  transform-origin: center top;
  border-radius: 0;
  transition-property: transform;
  z-index: 1;
}

.reel-item {
  position: relative;
  top: auto;
  left: auto;
  display: grid;
  place-items: center;
  height: var(--reel-row-height);
  min-height: var(--reel-row-height);
  width: var(--arc-width, 64%);
  margin-left: calc(12% + var(--arc-x, 0px));
  margin-bottom: 8px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid rgba(129, 224, 255, .42);
  border-radius: 1px;
  background: linear-gradient(90deg, #16538f, #46257f);
  color: #b9ddf4;
  font-size: clamp(14px, 1.6vw, 21px);
  opacity: var(--arc-opacity, .7);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: none;
  transition: color .35s, opacity .35s, filter .35s, box-shadow .35s, background .35s;
}

/* Layout estável: sem inclinação ou perspectiva ao mover o mouse. */
.menu-tile,
.rail-action,
.hud-stat,
.game-scene-strip,
.game-setup-panel,
.game-wheel-panel,
.game-participants-panel,
.game-activity-panel,
.menu-tile:nth-of-type(2n) {
  transform: none !important;
}

.reel-item.is-winner {
  z-index: 5;
  color: #17245f;
  background: #fff078;
  border-color: #fff5a4;
  opacity: 1;
  filter: none;
  font-size: clamp(16px, 1.8vw, 24px);
  box-shadow: 0 0 22px rgba(255, 228, 100, .7);
}

.reel-empty {
  position: relative;
  inset: auto;
  height: 390px;
  min-height: 390px;
  display: grid;
  place-items: center;
  color: #bdefff;
  font-size: 34px;
}

.reel-fog {
  z-index: 3;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(to bottom,
      rgba(3, 9, 30, .98) 0%,
      rgba(3, 9, 30, .8) 12%,
      rgba(3, 9, 30, .08) 28%,
      rgba(3, 9, 30, .08) 72%,
      rgba(3, 9, 30, .8) 88%,
      rgba(3, 9, 30, .98) 100%);
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 12%, transparent 29%, transparent 71%, #000 88%, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 12%, transparent 29%, transparent 71%, #000 88%, #000 100%);
  backdrop-filter: blur(4px);
}

.reel-center-line {
  z-index: 8;
  top: 50%;
  right: 0;
  left: auto;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 28px solid #fff078;
  background: transparent;
  box-shadow: 0 0 16px rgba(255, 230, 105, .7);
}

.reel-center-line::before,
.reel-center-line::after {
  display: none;
}

.name-reel.spinning .reel-item {
  opacity: var(--arc-opacity, .7);
  filter: none;
}

.name-reel.spinning .reel-center-line {
  border-right-color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, .8);
}

@media (max-width: 720px) {
  .wheel-stage { min-height: 380px; }

  .name-reel {
    --reel-row-height: 54px;
    --reel-row-step: 62px;
    height: 350px;
  }

  .reel-empty {
    height: 350px;
    min-height: 350px;
  }

  .reel-item {
    width: var(--arc-width, 68%);
    margin-left: calc(9% + var(--arc-x, 0px));
    margin-bottom: 8px;
  }
}

/* Tema Frostkeep: arena de gelo, aço e energia azul. */
:root {
  --bg: #030812;
  --panel: rgba(5, 15, 31, .76);
  --panel-light: rgba(10, 28, 54, .86);
  --line: rgba(115, 193, 255, .48);
  --text: #eef8ff;
  --muted: #9db7d1;
  --muted-dark: #607b98;
  --lime: #9ce9ff;
  --lime-dark: #4b9dff;
  --purple: #6d8dff;
  --red: #ff7897;
}

html,
body {
  background: #030812;
}

body {
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

body::after {
  z-index: 20;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 3, 12, .58) 100%);
  mix-blend-mode: multiply;
}

.app-shell {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(2, 8, 19, .28) 0%, rgba(2, 8, 19, .55) 54%, rgba(2, 7, 17, .82) 100%),
    url("assets/frostkeep-background.png") center top / cover fixed no-repeat;
}

.app-shell::before {
  opacity: .12;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 4px, rgba(156, 224, 255, .05) 5px, transparent 6px);
}

.app-shell::after {
  z-index: 0;
  opacity: .2;
  background:
    radial-gradient(circle at 73% 35%, rgba(69, 157, 255, .22), transparent 25%),
    radial-gradient(circle at 20% 65%, rgba(42, 113, 215, .16), transparent 30%);
  mix-blend-mode: screen;
}

.topbar,
.main-content,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  background: rgba(2, 9, 20, .48);
  border-color: rgba(118, 195, 255, .34);
}

.brand {
  color: #e8f7ff;
  letter-spacing: .08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(157, 232, 255, .7);
  border-radius: 0;
  background: rgba(3, 12, 27, .78) url("assets/frostmark-logo.png") center / contain no-repeat;
  color: transparent;
  box-shadow: 0 0 20px rgba(85, 171, 255, .34);
}

.brand-accent,
.eyebrow,
.section-kicker,
.winner-label {
  color: var(--lime);
}

.button {
  border: 1px solid rgba(143, 220, 255, .5);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .1em;
  box-shadow: 0 4px 0 rgba(19, 62, 112, .72), 0 0 16px rgba(66, 157, 255, .12);
}

.button:hover:not(:disabled) {
  filter: brightness(1.16);
  box-shadow: 0 4px 0 rgba(19, 62, 112, .72), 0 0 25px rgba(106, 203, 255, .34);
}

.button-primary {
  color: #041326;
  border-color: #c6f5ff;
  background: linear-gradient(180deg, #c4f7ff, #63c4ff);
}

.button-ghost {
  color: #cbeaff;
  border-color: rgba(105, 182, 255, .44);
  background: rgba(5, 19, 40, .8);
}

.kick-icon {
  border-radius: 0;
  background: #8ce7ff;
  color: #031326;
}

.main-content {
  padding-top: 22px;
}

.panel,
.game-setup-panel,
.game-wheel-panel,
.game-participants-panel,
.game-activity-panel {
  border-radius: 0;
  border-color: rgba(114, 192, 255, .58);
  background:
    linear-gradient(145deg, rgba(6, 22, 47, .82), rgba(2, 8, 21, .88)),
    url("assets/panel-texture.webp") center / 620px auto repeat;
  background-blend-mode: normal, screen;
  box-shadow: 8px 8px 0 rgba(20, 74, 132, .3), 0 22px 55px rgba(0, 2, 10, .4), inset 0 0 0 1px rgba(196, 239, 255, .05);
  backdrop-filter: blur(10px) saturate(1.12);
}

.game-setup-panel,
.game-wheel-panel {
  position: relative;
  overflow: hidden;
}

.game-setup-panel::after {
  display: none;
  position: absolute;
  top: 16px;
  right: 18px;
  width: 54px;
  height: 54px;
  content: "";
  background: url("assets/frostmark-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(47, 139, 255, .55));
  opacity: .48;
  pointer-events: none;
}

.game-setup-panel .panel-heading,
.game-wheel-panel .wheel-panel-top,
.panel-heading {
  border-bottom-color: rgba(126, 207, 255, .28);
}

h1,
h2,
.winner-chat-heading strong:not(.claim-timer),
.participant-count strong {
  color: #edf8ff;
  text-shadow: 0 0 18px rgba(104, 190, 255, .2);
}

.live-badge {
  color: #a9eeff;
  border-color: rgba(126, 218, 255, .52);
  background: rgba(60, 149, 255, .1);
}

.field-label,
.collection-status {
  color: #b5d4ec;
}

.field-hint {
  color: #6d8aa7;
}

.input-with-prefix,
select,
.simulate-row input,
.winner-card {
  border-radius: 0;
  border-color: rgba(101, 180, 255, .46);
  background: rgba(2, 10, 24, .88);
  color: #eaf7ff;
}

.input-with-prefix:focus-within,
select:focus,
.simulate-row input:focus {
  border-color: #a7efff;
  outline: 1px solid rgba(99, 185, 255, .32);
  box-shadow: 0 0 20px rgba(57, 155, 255, .2);
}

.select-wrap::after {
  color: var(--lime);
}

.info-panel {
  border-radius: 0;
  border-color: rgba(99, 182, 255, .34);
  background: rgba(33, 106, 194, .12);
}

.wheel-panel {
  min-height: 624px;
}

.name-reel {
  border-radius: 0;
  border-color: rgba(108, 194, 255, .54);
  background:
    linear-gradient(180deg, rgba(2, 9, 24, .83), rgba(1, 5, 16, .94)),
    url("assets/frostkeep-background.png") center 44% / cover no-repeat;
  box-shadow: inset 0 0 52px rgba(0, 8, 28, .84), 0 18px 38px rgba(0, 2, 12, .46);
}

.reel-item {
  border-radius: 0;
  border-color: rgba(121, 206, 255, .46);
  background: linear-gradient(90deg, rgba(16, 75, 137, .94), rgba(20, 37, 88, .96));
  color: #c9e9ff;
  text-shadow: 0 0 10px rgba(130, 218, 255, .22);
}

.reel-item.is-winner {
  border-color: #d8f7ff;
  background: linear-gradient(90deg, #b8f2ff, #6dbbff 52%, #a5c9ff);
  color: #071b3a;
  box-shadow: 0 0 22px rgba(128, 219, 255, .78), inset 0 0 18px rgba(255, 255, 255, .34);
  text-shadow: none;
}

.reel-fog {
  background: linear-gradient(to bottom, rgba(1, 6, 19, .98) 0%, rgba(1, 6, 19, .78) 12%, rgba(1, 6, 19, .08) 28%, rgba(1, 6, 19, .08) 72%, rgba(1, 6, 19, .78) 88%, rgba(1, 6, 19, .98) 100%);
}

.reel-center-line {
  border-right-color: #b9f5ff;
  filter: drop-shadow(0 0 4px rgba(135, 224, 255, .95)) drop-shadow(0 0 10px rgba(63, 150, 255, .65));
}

.name-reel.spinning .reel-center-line {
  border-right-color: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .98)) drop-shadow(0 0 12px rgba(111, 201, 255, .72));
}

.winner-card.has-winner {
  border-color: rgba(171, 237, 255, .72);
  background: rgba(69, 158, 239, .13);
  box-shadow: 0 0 22px rgba(56, 155, 255, .2);
}

.audit-card {
  border-radius: 0;
  border-color: rgba(111, 177, 255, .42);
  background: rgba(24, 61, 127, .18);
}

.count-pill {
  border-radius: 0;
  background: rgba(65, 156, 255, .2);
  color: #a7edff;
}

.participant {
  border-color: rgba(96, 166, 239, .22);
}

.avatar {
  border-radius: 0;
  background: #8ce7ff;
  color: #062044;
  box-shadow: 0 0 12px rgba(76, 190, 255, .2);
}

.participant:nth-child(3n) .avatar,
.participant:nth-child(4n) .avatar {
  background: #789cff;
  color: #06183e;
}

.activity-bullet {
  border-radius: 0;
  background: #9ce9ff;
  box-shadow: 0 0 8px #65bfff;
}

.auth-gate {
  background: rgba(1, 6, 17, .46);
  backdrop-filter: blur(18px) saturate(.82);
}

.auth-card {
  width: min(430px, 100%);
  border-radius: 0;
  border-color: rgba(162, 231, 255, .72);
  background:
    linear-gradient(145deg, rgba(6, 25, 53, .94), rgba(2, 9, 24, .96)),
    url("assets/panel-texture.webp") center / 620px auto repeat;
  box-shadow: 9px 9px 0 rgba(29, 101, 173, .34), 0 30px 90px rgba(0, 2, 10, .64), 0 0 35px rgba(74, 159, 255, .2);
}

.auth-mark {
  width: 116px;
  height: 116px;
  padding: 0;
  margin-bottom: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-mark img {
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 14px rgba(57, 145, 255, .7));
}

.auth-kicker {
  color: #a8efff;
}

.auth-card h1 {
  color: #f1fbff;
}

.auth-card p {
  color: #a9c5df;
}

.auth-button {
  background: linear-gradient(180deg, #c3f7ff, #64c4ff);
  color: #061a35;
  box-shadow: 4px 4px 0 rgba(39, 108, 180, .42), 0 0 22px rgba(73, 165, 255, .22);
}

.auth-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #effeff, #83d3ff);
}

.auth-platform-label {
  margin: 0 0 8px;
  text-align: left;
}

.auth-platform-select {
  margin-bottom: 16px;
}

#twitchSetupField {
  margin-top: 14px;
}

.twitch-connect-setup {
  width: 100%;
  margin-top: 9px;
}


.local-demo-button {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  margin-top: 12px;
}

#demoModeButton[hidden],
#localDemoHint[hidden],
.local-participant-entry[hidden] {
  display: none !important;
}

.local-demo-hint {
  margin: 10px 0 0;
  color: #a9c5df;
  font-size: 11px;
}

.auth-status {
  color: #a9c8df;
}

.winner-chat-panel {
  border-color: rgba(121, 204, 255, .5);
  background: rgba(3, 15, 34, .9);
  box-shadow: 0 0 30px rgba(42, 145, 255, .18);
}

.winner-chat-heading,
.left-panel-tabs {
  border-bottom-color: rgba(126, 207, 255, .28);
}

.left-panel-tab.is-active,
.claim-timer {
  color: #b8f5ff;
  border-bottom-color: #a4ebff;
}

.claim-status,
.winner-chat-empty {
  color: #9ebbd3;
}

.winner-chat-message,
.winner-chat-message.is-winner {
  border-left-color: rgba(137, 220, 255, .7);
  background: rgba(21, 67, 116, .48);
  color: #e8f7ff;
}

.winner-chat-message strong,
.winner-chat-message.is-winner strong {
  color: #a9efff;
}

main.claiming .game-wheel-panel::before {
  background: rgba(2, 8, 19, .08);
  backdrop-filter: blur(18px) saturate(.72);
  -webkit-backdrop-filter: blur(18px) saturate(.72);
}

body.claim-mode .app-shell::after {
  background: rgba(1, 6, 17, .18);
  backdrop-filter: blur(20px) saturate(.76);
  -webkit-backdrop-filter: blur(20px) saturate(.76);
}

body.claim-mode .claim-winner-spotlight {
  border-color: #dcf9ff;
  background: linear-gradient(90deg, #a9eaff, #5d9fff 52%, #a5c8ff);
  color: #061b3d;
  box-shadow: 0 0 30px rgba(145, 229, 255, .84);
  text-shadow: none;
}

body.claim-mode .winner-chat-message,
body.claim-mode .winner-chat-message.is-winner {
  background: transparent;
  color: #f0fbff;
}

body.claim-mode .winner-chat-message strong,
body.claim-mode .winner-chat-message.is-winner strong {
  color: #a9efff;
}

@media (max-width: 720px) {
  .game-main {
    padding-top: 12px;
  }

  .auth-mark {
    width: 92px;
    height: 92px;
  }

  .game-setup-panel::after {
    width: 42px;
    height: 42px;
  }
}

/* Animação do sorteio: preparação, aceleração, impacto e foco no vencedor. */
.game-wheel-panel,
.game-side-panel,
.game-setup-panel {
  transition: box-shadow .35s ease, filter .35s ease, opacity .35s ease;
}

main.draw-preparing:not(.claiming) .game-side-panel,
main.draw-preparing:not(.claiming) .game-setup-panel,
main.draw-active:not(.claiming) .game-side-panel,
main.draw-active:not(.claiming) .game-setup-panel {
  filter: saturate(.72) brightness(.72);
  opacity: .72;
}

main.draw-preparing:not(.claiming) .game-wheel-panel,
main.draw-active:not(.claiming) .game-wheel-panel {
  border-color: #b8f5ff;
  box-shadow: 0 0 0 1px rgba(184, 245, 255, .22), 0 0 42px rgba(64, 178, 255, .25), 10px 10px 0 rgba(39, 223, 255, .18);
}

main.draw-preparing:not(.claiming) .wheel-panel-top,
main.draw-active:not(.claiming) .wheel-panel-top {
  border-bottom-color: rgba(184, 245, 255, .58);
}

.name-reel {
  isolation: isolate;
  transition: border-color .35s ease, box-shadow .35s ease, filter .35s ease;
}

.name-reel.preparing {
  border-color: #d8fbff;
  box-shadow: inset 0 0 52px rgba(0, 8, 28, .84), 0 0 34px rgba(120, 226, 255, .42);
}

.name-reel.spinning {
  border-color: #ffffff;
  box-shadow: inset 0 0 58px rgba(0, 8, 28, .86), 0 0 44px rgba(84, 203, 255, .5);
}

.reel-vfx {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.reel-vfx-ring,
.reel-vfx-sweep,
.reel-vfx-burst {
  position: absolute;
  display: block;
  pointer-events: none;
}

.reel-vfx-ring {
  inset: 18%;
  border: 1px solid rgba(175, 242, 255, .65);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(84, 199, 255, .4), inset 0 0 20px rgba(84, 199, 255, .18);
}

.reel-vfx-sweep {
  display: none;
  top: -20%;
  left: -25%;
  width: 150%;
  height: 25%;
  background: linear-gradient(180deg, transparent, rgba(198, 247, 255, .2), transparent);
  transform: rotate(-8deg) translateY(-170%);
}

.reel-vfx-burst {
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(234, 253, 255, .86), rgba(110, 210, 255, .25) 20%, transparent 52%);
  opacity: 0;
}

.name-reel.preparing .reel-vfx,
.name-reel.spinning .reel-vfx {
  opacity: 1;
}

.name-reel.preparing .reel-vfx-ring {
  animation: draw-ring-breathe .72s ease-in-out infinite alternate;
}

.name-reel.spinning .reel-vfx-ring {
  animation: none;
}

.name-reel.reveal-impact .reel-vfx-burst {
  animation: reveal-burst .48s cubic-bezier(.2,.8,.2,1) both;
}

.name-reel.reveal-impact .reel-vfx-ring {
  animation: reveal-ring .72s cubic-bezier(.15,.8,.2,1) both;
}

main.draw-revealed:not(.claiming) .game-wheel-panel {
  box-shadow: 0 0 0 1px rgba(216, 251, 255, .3), 0 0 58px rgba(111, 209, 255, .38), 10px 10px 0 rgba(39, 223, 255, .2);
}

main.draw-revealed:not(.claiming) .winner-card.has-winner {
  animation: winner-reveal .8s cubic-bezier(.2,.9,.2,1) both, winner-glow 1.3s ease-in-out .8s 2 alternate;
}

body.claim-mode .claim-winner-spotlight {
  animation: claim-spotlight-in .68s cubic-bezier(.16,.86,.2,1) both;
}

body.claim-mode .winner-chat-panel {
  animation: claim-chat-in .58s cubic-bezier(.2,.8,.2,1) .12s both;
}

@keyframes draw-ring-breathe {
  from { transform: scale(.92); opacity: .4; }
  to { transform: scale(1.04); opacity: .9; }
}

@keyframes reveal-burst {
  0% { opacity: 0; transform: scale(.72); }
  25% { opacity: .95; }
  100% { opacity: 0; transform: scale(1.32); }
}

@keyframes reveal-ring {
  0% { opacity: .95; transform: scale(.82); }
  100% { opacity: 0; transform: scale(1.26); }
}

@keyframes winner-glow {
  from { box-shadow: 0 0 22px rgba(56, 155, 255, .2); }
  to { box-shadow: 0 0 36px rgba(129, 224, 255, .58); }
}

@keyframes claim-spotlight-in {
  from { opacity: 0; transform: translateY(20px) scale(.88); filter: blur(8px); }
  70% { transform: translateY(-3px) scale(1.02); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes claim-chat-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reel-vfx,
  .name-reel.preparing .reel-vfx-ring,
  .name-reel.preparing .reel-vfx-sweep,
  .name-reel.spinning .reel-vfx-sweep,
  .name-reel.spinning .reel-vfx-ring,
  .name-reel.spinning .reel-center-line,
  .name-reel.reveal-impact .reel-vfx-burst,
  .name-reel.reveal-impact .reel-vfx-ring,
  main.draw-revealed:not(.claiming) .winner-card.has-winner,
  body.claim-mode .claim-winner-spotlight,
  body.claim-mode .winner-chat-panel {
    animation: none !important;
  }

  .reel-vfx { display: none; }
}

@media (max-width: 720px) {
  .reel-vfx-ring { inset: 22%; }
  main.draw-preparing:not(.claiming) .game-side-panel,
  main.draw-preparing:not(.claiming) .game-setup-panel,
  main.draw-active:not(.claiming) .game-side-panel,
  main.draw-active:not(.claiming) .game-setup-panel {
    filter: none;
    opacity: .56;
  }
}

/* A fita não usa moldura oval nem desfoque sobre o nome que está sendo lido. */
.reel-vfx-ring {
  display: none !important;
}

.name-reel .reel-fog,
.name-reel.claiming .reel-fog {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Contraste de palco: o estado do sorteio precisa ser perceptível mesmo de longe. */
body.draw-mode .app-shell::after {
  opacity: .32;
  background:
    radial-gradient(circle at 50% 48%, rgba(78, 200, 255, .16), transparent 34%),
    linear-gradient(135deg, rgba(74, 217, 255, .08), rgba(255, 81, 174, .1)),
    url("assets/panel-texture.webp") center / 900px auto repeat;
}

main.draw-preparing:not(.claiming) .game-wheel-panel::after,
main.draw-active:not(.claiming) .game-wheel-panel::after {
  position: absolute;
  z-index: 0;
  inset: -55%;
  content: "";
  pointer-events: none;
  background: conic-gradient(from 90deg, transparent, rgba(119, 231, 255, .12), transparent 25%, rgba(255, 117, 191, .1), transparent 55%);
  display: none;
}

main.draw-preparing:not(.claiming) .game-wheel-panel > *,
main.draw-active:not(.claiming) .game-wheel-panel > * {
  position: relative;
  z-index: 1;
}

main.draw-preparing:not(.claiming) .draw-button,
main.draw-active:not(.claiming) .draw-button {
  animation: draw-button-pulse 1s ease-in-out infinite alternate;
}

.countdown-overlay span {
  width: 132px;
  height: 132px;
  border-width: 4px;
  font-size: 60px;
  background: radial-gradient(circle, rgba(10, 40, 74, .96), rgba(3, 10, 30, .94));
  box-shadow: 0 0 0 8px rgba(128, 226, 255, .08), 0 0 52px rgba(94, 212, 255, .7), inset 0 0 30px rgba(135, 235, 255, .22);
}

.name-reel.spinning .reel-item {
  filter: none !important;
  text-shadow: none;
}

.name-reel.reveal-impact .reel-item.is-winner {
  animation: winner-lock .78s cubic-bezier(.15,.9,.2,1) both;
}

main.draw-revealed:not(.claiming) .game-wheel-panel::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(226, 253, 255, .72), rgba(97, 205, 255, .18) 24%, transparent 58%);
  animation: winner-flash .72s ease-out both;
}

@keyframes draw-button-pulse {
  from { filter: brightness(1); box-shadow: 0 0 18px rgba(65, 203, 255, .23); }
  to { filter: brightness(1.2); box-shadow: 0 0 30px rgba(111, 232, 255, .62); }
}

@keyframes winner-lock {
  0% { transform: scale(1.24); filter: brightness(1.9); }
  55% { transform: scale(.97); filter: brightness(1.1); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes winner-flash {
  0% { opacity: 0; }
  14% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.draw-mode .app-shell::after,
  main.draw-preparing:not(.claiming) .game-wheel-panel::after,
  main.draw-active:not(.claiming) .game-wheel-panel::after,
  main.draw-preparing:not(.claiming) .draw-button,
  main.draw-active:not(.claiming) .draw-button,
  .name-reel.reveal-impact .reel-item.is-winner,
  main.draw-revealed:not(.claiming) .game-wheel-panel::after {
    animation: none !important;
  }
}
