:root {
  color-scheme: dark;
  --ink: #050713;
  --ink-soft: #090d1b;
  --panel: #0b1020;
  --panel-raised: #10172b;
  --line: rgba(133, 165, 220, 0.18);
  --line-bright: rgba(27, 213, 255, 0.38);
  --white: #f7fbff;
  --muted: #8895b5;
  --cyan: #10c9ee;
  --cyan-bright: #50e6ff;
  --blue: #1177f2;
  --blue-deep: #153ad2;
  --violet: #7828e8;
  --magenta: #e322e6;
  --danger: #ff5575;
  --radius-lg: 28px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 44% 48%, rgba(15, 70, 193, 0.17), transparent 37%),
    linear-gradient(145deg, #070918 0%, #040612 56%, #080616 100%);
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

button,
a,
textarea,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(80, 230, 255, 0.68);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.13;
}

.ambient-cyan {
  top: 18%;
  left: 18%;
  background: var(--cyan);
}

.ambient-violet {
  right: 1%;
  bottom: -16%;
  background: var(--violet);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 1800px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(22px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 19, 0.74);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark-wrap {
  display: grid;
  width: 46px;
  height: 46px;
  align-items: center;
  overflow: hidden;
}

.brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-kicker,
.panel-kicker,
.eyebrow,
.dialog-kicker {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.brand-title {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 780;
  letter-spacing: -0.045em;
}

.brand-title span {
  margin: 0 0.08em;
  color: var(--muted);
  font-weight: 450;
}

.header-actions,
.status-chip {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 10px;
}

.status-chip {
  min-height: 38px;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #adbad4;
  background: rgba(10, 14, 28, 0.78);
  font-size: 0.78rem;
  font-weight: 620;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 14, 28, 0.78);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-bright);
  background: rgba(16, 201, 238, 0.1);
}

.icon-button.is-muted {
  color: #6d7893;
}

.icon-button.is-muted::after {
  position: absolute;
  width: 21px;
  height: 1px;
  transform: rotate(-45deg);
  background: currentColor;
  content: "";
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  min-height: 0;
  gap: clamp(20px, 2vw, 34px);
  padding: clamp(18px, 2.2vw, 36px) clamp(22px, 3vw, 52px) 18px;
}

.wheel-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}

.stage-heading {
  position: absolute;
  z-index: 3;
  top: 1.4%;
  left: 0;
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.eyebrow span {
  display: inline-block;
  width: 23px;
  height: 1px;
  background: currentColor;
}

.stage-heading h1 {
  margin: 0;
  color: #dfe8fa;
  font-size: clamp(1.55rem, 3.1vw, 3.7rem);
  font-weight: 360;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.stage-heading em {
  color: var(--white);
  font-style: normal;
  font-weight: 790;
}

.wheel-zone {
  grid-row: 1 / 4;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 2px 0 58px;
}

.wheel-shell {
  position: relative;
  width: min(67vh, 100%, 740px);
  aspect-ratio: 1;
  isolation: isolate;
  filter: drop-shadow(0 32px 46px rgba(0, 0, 0, 0.44));
}

#wheel {
  position: absolute;
  z-index: 2;
  inset: 4.4%;
  width: 91.2%;
  height: 91.2%;
  border-radius: 50%;
  cursor: pointer;
}

.wheel-hub {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  width: 20%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: clamp(5px, 0.7vw, 10px) solid rgba(6, 10, 24, 0.96);
  border-radius: 50%;
  background: #000033;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 14px 34px rgba(1, 6, 19, 0.45);
  pointer-events: none;
}

.wheel-hub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wheel-pointer {
  position: absolute;
  z-index: 7;
  top: 50%;
  right: -1.2%;
  width: 11.5%;
  aspect-ratio: 1.15;
  transform: translateY(-50%);
  pointer-events: none;
}

.wheel-pointer.is-ticking {
  animation: pointer-tick 90ms ease-out;
}

@keyframes pointer-tick {
  50% { transform: translateY(-50%) rotate(-7deg) scale(1.07); }
}

.pointer-body,
.pointer-shadow {
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 8%, 100% 92%, 0 50%);
}

.pointer-shadow {
  transform: translate(5px, 7px) scale(0.98);
  background: rgba(0, 0, 0, 0.52);
  filter: blur(6px);
}

.pointer-body {
  background: linear-gradient(145deg, var(--cyan-bright), var(--blue) 64%, var(--blue-deep));
  filter: drop-shadow(0 0 12px rgba(16, 201, 238, 0.54));
}

.wheel-orbit {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  inset: 1.5%;
  border: 1px solid rgba(16, 201, 238, 0.19);
}

.orbit-two {
  inset: 0;
  border: 1px dashed rgba(127, 94, 255, 0.16);
  animation: orbit 22s linear infinite;
}

@keyframes orbit {
  to { transform: rotate(1turn); }
}

.stage-controls {
  position: relative;
  z-index: 8;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.primary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(100, 237, 255, 0.72);
  border-radius: 999px;
  color: #00131a;
  background: linear-gradient(110deg, #19d9f4, #64eaff);
  box-shadow: 0 12px 30px rgba(16, 201, 238, 0.2), inset 0 1px rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(16, 201, 238, 0.3), inset 0 1px rgba(255, 255, 255, 0.72);
  filter: saturate(1.08);
}

.primary-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.button-spark {
  font-size: 1rem;
}

.button-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan-bright);
  background: #061425;
  font-size: 1rem;
}

.shortcut-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

kbd {
  min-width: 24px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-bottom-color: rgba(133, 165, 220, 0.34);
  border-radius: 6px;
  color: #c4cde0;
  background: rgba(13, 19, 38, 0.8);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  font: inherit;
  text-align: center;
}

.editor-panel {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 22, 42, 0.97), rgba(7, 11, 24, 0.98));
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.28);
}

.panel-topline {
  height: 3px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 48%, var(--violet) 76%, var(--magenta));
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-kicker {
  margin: 0 0 6px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.045em;
}

.count-badge {
  padding: 8px 11px;
  border: 1px solid rgba(16, 201, 238, 0.2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(16, 201, 238, 0.07);
  font-size: 0.68rem;
  white-space: nowrap;
}

.count-badge strong {
  color: var(--cyan-bright);
  font-size: 0.78rem;
}

.panel-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 18px 26px 24px;
}

.panel-toggle {
  display: none;
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr 0.88fr auto;
  gap: 8px;
  margin-bottom: 20px;
}

.tool-button,
.secondary-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #111a31;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.tool-button:hover,
.secondary-button:hover {
  border-color: var(--line-bright);
  color: var(--cyan-bright);
  background: rgba(16, 201, 238, 0.08);
}

.tool-button:disabled,
.text-button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.tool-button span {
  margin-right: 4px;
  color: var(--cyan);
  font-size: 0.75rem;
}

.branding-control {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  padding: 11px;
  border: 1px solid rgba(16, 201, 238, 0.18);
  border-radius: 14px;
  background: rgba(16, 201, 238, 0.045);
}

.branding-preview {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #000033;
}

.branding-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branding-copy {
  min-width: 0;
}

.branding-copy h3,
.branding-copy p {
  margin: 0;
}

.branding-copy h3 {
  font-size: 0.76rem;
  letter-spacing: -0.015em;
}

.branding-copy p {
  margin-top: 3px;
  overflow: hidden;
  color: #687695;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-upload,
.list-action,
.entry-logo-button,
.restore-logo {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(16, 201, 238, 0.24);
  border-radius: 9px;
  color: var(--cyan-bright);
  background: rgba(16, 201, 238, 0.08);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 740;
}

.mini-upload input,
.entry-logo-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.restore-logo {
  grid-column: 2 / -1;
  justify-self: start;
  min-height: 27px;
  padding: 0;
  border: 0;
  color: #7d8ba8;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #cbd5e8;
  font-size: 0.68rem;
  font-weight: 720;
}

.entry-list-heading > div {
  display: flex;
  gap: 6px;
}

.list-action {
  min-height: 32px;
  color: #8f9bb7;
  background: transparent;
}

.list-action-primary {
  color: #03131d;
  border-color: var(--cyan);
  background: var(--cyan);
}

.entry-list {
  min-height: 130px;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 5px 2px 0;
  scrollbar-color: rgba(16, 201, 238, 0.35) transparent;
  scrollbar-width: thin;
}

.entry-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  margin-bottom: 7px;
  padding: 6px 7px;
  border: 1px solid rgba(133, 165, 220, 0.14);
  border-radius: 13px;
  background: rgba(2, 6, 16, 0.65);
}

.entry-row:focus-within {
  border-color: rgba(16, 201, 238, 0.42);
}

.entry-thumb {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: visible;
  border: 1px dashed rgba(16, 201, 238, 0.3);
  border-radius: 11px;
  color: var(--cyan);
  background: #fff;
}

.entry-thumb > img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.entry-thumb > span {
  color: #0b5b78;
  font-size: 1rem;
  font-weight: 500;
}

.remove-logo {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: white;
  background: #26334f;
  cursor: pointer;
  font-size: 0.7rem;
}

.entry-field {
  min-width: 0;
}

.entry-field input {
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #eef7ff;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 650;
}

.entry-field input:hover,
.entry-field input:focus {
  border-color: rgba(133, 165, 220, 0.18);
  background: rgba(13, 20, 38, 0.86);
}

.entry-error {
  display: block;
  padding: 2px 8px 0;
  color: #ff8097;
  font-size: 0.55rem;
  line-height: 1.25;
}

.entry-logo-button {
  min-height: 34px;
  padding: 0 8px;
}

.entry-remove {
  display: grid;
  width: 30px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #75829e;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.entry-remove:hover {
  color: #ff8097;
  background: rgba(255, 85, 117, 0.08);
}

.bulk-dialog {
  width: min(92vw, 480px);
  padding: 1px;
  border: 1px solid rgba(16, 201, 238, 0.4);
  border-radius: 24px;
  color: var(--white);
  background: #090e1d;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.72);
}

.bulk-dialog::backdrop {
  background: rgba(1, 3, 11, 0.78);
  backdrop-filter: blur(10px);
}

.bulk-dialog-content {
  display: grid;
  gap: 12px;
  padding: 30px;
}

.bulk-dialog-content h2,
.bulk-dialog-content p {
  margin: 0;
}

.bulk-dialog-content h2 {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.bulk-dialog-content label {
  color: #aab6cd;
  font-size: 0.7rem;
}

#bulk-input {
  width: 100%;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--white);
  background: #030712;
  line-height: 1.6;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.winner-logo-wrap {
  display: grid;
  width: 112px;
  height: 112px;
  margin: 18px auto 10px;
  place-items: center;
  overflow: hidden;
  border: 7px solid #0d1427;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(80, 230, 255, 0.6), 0 0 52px rgba(16, 201, 238, 0.26);
  animation: winner-logo-pulse 900ms var(--ease) both;
}

.winner-logo-wrap[hidden] {
  display: none;
}

.winner-logo-wrap img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

@keyframes winner-logo-pulse {
  from { opacity: 0; transform: scale(0.72); }
  65% { transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

.tool-button-muted {
  color: var(--muted);
  background: transparent;
}

.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #d6deef;
  font-size: 0.73rem;
  font-weight: 680;
}

.input-label span {
  color: #667493;
  font-size: 0.6rem;
  font-weight: 540;
}

.textarea-wrap {
  position: relative;
  min-height: 160px;
  flex: 1;
}

#entry-input {
  width: 100%;
  height: 100%;
  min-height: 160px;
  resize: none;
  padding: 17px 18px;
  border: 1px solid rgba(133, 165, 220, 0.19);
  border-radius: var(--radius-md);
  color: #eef7ff;
  background:
    linear-gradient(90deg, rgba(16, 201, 238, 0.07) 1px, transparent 1px) 18px 0 / 1px 100% no-repeat,
    rgba(2, 6, 16, 0.82);
  caret-color: var(--cyan-bright);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  line-height: 1.72;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#entry-input:focus {
  border-color: rgba(16, 201, 238, 0.5);
  box-shadow: inset 0 0 0 1px rgba(16, 201, 238, 0.08), 0 0 30px rgba(16, 201, 238, 0.05);
}

.textarea-corner {
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(16, 201, 238, 0.5);
  border-bottom: 1px solid rgba(16, 201, 238, 0.5);
  pointer-events: none;
}

.entry-help {
  min-height: 17px;
  margin: 8px 1px 4px;
  color: #667493;
  font-size: 0.64rem;
  line-height: 1.5;
}

.entry-help.is-error {
  color: #ff8097;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.text-button {
  min-height: 38px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.text-button:hover {
  color: var(--white);
  text-decoration-color: currentColor;
}

.privacy-note {
  color: #596785;
  font-size: 0.59rem;
}

.privacy-note span {
  margin-right: 3px;
  color: var(--cyan);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 clamp(22px, 3vw, 52px);
  color: #4c5977;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.oncuespace-link {
  display: inline-flex;
  align-items: center;
}

.oncuespace-footer-logo {
  display: block;
  width: auto;
  height: 24px;
  object-fit: contain;
}

.site-footer a {
  color: #71809f;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan);
}

.confetti-canvas {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.winner-dialog {
  width: min(92vw, 520px);
  overflow: visible;
  padding: 1px;
  border: 0;
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(16, 201, 238, 0.85), rgba(105, 52, 239, 0.8), rgba(227, 34, 230, 0.72));
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.72), 0 0 70px rgba(69, 52, 239, 0.22);
}

.winner-dialog[open] {
  animation: dialog-in 420ms var(--ease) both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.winner-dialog::backdrop {
  background: rgba(1, 3, 11, 0.66);
}

.dialog-content {
  position: relative;
  z-index: 1;
  padding: 42px clamp(24px, 6vw, 52px) 34px;
  overflow: hidden;
  border-radius: 29px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 151, 255, 0.18), transparent 44%),
    #080c1c;
}

.dialog-halo {
  position: absolute;
  z-index: 2;
  top: -80px;
  left: 50%;
  width: 240px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(16, 201, 238, 0.28);
  filter: blur(62px);
  pointer-events: none;
}

.dialog-kicker {
  margin: 0 0 12px;
}

.dialog-kicker span {
  margin-right: 5px;
}

.winner-dialog h2 {
  margin: 0;
  color: #8a97b4;
  font-size: 0.88rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.winner-name {
  margin: 10px 0 16px;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: clamp(2.7rem, 10vw, 5.1rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.96;
  text-shadow: 0 0 34px rgba(16, 201, 238, 0.16);
}

.winner-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  color: var(--cyan);
}

.winner-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(16, 201, 238, 0.32));
}

.winner-divider span:last-child {
  transform: scaleX(-1);
}

.winner-divider i {
  font-style: normal;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dialog-primary {
  grid-column: 1 / -1;
  width: 100%;
}

.dialog-actions > .text-button {
  min-height: 46px;
}

.secondary-button {
  min-height: 46px;
}

.is-spinning .status-light {
  animation: status-pulse 900ms ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: 0.35; transform: scale(0.75); }
}

@media (max-width: 1100px) {
  .experience-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 355px);
  }

  .stage-heading h1 {
    font-size: clamp(1.4rem, 3vw, 2.7rem);
  }

  .wheel-shell {
    width: min(60vh, 100%, 650px);
  }

  .panel-header,
  .panel-content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
  }

  .site-header {
    min-height: 66px;
    padding: 9px 16px;
  }

  .brand-mark-wrap {
    width: 42px;
    height: 42px;
  }

  .brand-kicker,
  .status-chip {
    display: none;
  }

  .experience-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 14px 16px;
  }

  .wheel-stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .stage-heading {
    position: static;
    margin: 0 8px 10px;
  }

  .stage-heading h1 {
    font-size: clamp(1.75rem, 9.5vw, 2.7rem);
    line-height: 0.96;
  }

  .wheel-zone {
    display: block;
    padding: 2px 0 12px;
  }

  .wheel-shell {
    width: min(92vw, 520px);
    margin: 0 auto;
  }

  .orbit-two {
    animation: none;
  }

  .stage-controls {
    flex-direction: column;
    gap: 9px;
  }

  .primary-button {
    min-height: 56px;
  }

  .editor-panel {
    min-height: auto;
    border-radius: 22px;
  }

  .panel-header {
    padding: 21px 20px 16px;
  }

  .panel-toggle {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: #cbd6e9;
    background: rgba(16, 201, 238, 0.04);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .panel-toggle span:last-child {
    color: var(--cyan);
    font-size: 1.1rem;
    transition: transform 180ms ease;
  }

  .panel-toggle[aria-expanded="false"] span:last-child {
    transform: rotate(-90deg);
  }

  .panel-content[hidden] {
    display: none;
  }

  .panel-content {
    min-height: 430px;
    padding: 16px 20px 20px;
  }

  .tool-row {
    grid-template-columns: 1fr 1fr auto;
  }

  .site-footer {
    min-height: 54px;
    padding: 0 18px;
  }
}

@media (max-width: 430px) {
  .shortcut-hint,
  .site-footer p,
  .input-label span {
    display: none;
  }

  .footer-site-link {
    display: none;
  }

  .wheel-pointer {
    right: -0.6%;
  }

  .panel-footer {
    align-items: flex-end;
  }
}

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