@font-face {
  font-family: Cinzel;
  src: url("./Cinzel.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #100f11;
  --paper: #f7efdd;
  --gold: #d5b56b;
  --muted: #c0b6a7;
  --line: #534536;
  --display: Cinzel, Georgia, serif;
  background: var(--ink);
  color: var(--paper);
  font:
    100%/1.5 "Segoe UI",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 11% 42%, #2a1c21 0, transparent 55%);
}
:focus-visible {
  outline: 3px solid #f5d580;
  outline-offset: 4px;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
button {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(4vw, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #534536;
  background: #0b0a0c;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}
.brand img {
  object-fit: contain;
}
.brand span {
  display: grid;
}
.brand small,
.eyebrow,
.result-label,
.entries label,
.prize span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.brand small {
  font-size: 0.61rem;
  color: var(--gold);
}
.brand strong {
  font: 500 1.4rem/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.home-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 12px 0 12px 12px;
}
.home-link:hover {
  color: var(--paper);
  text-decoration: underline;
}
.home-link span {
  color: var(--gold);
}
main {
  max-width: 1180px;
  width: 92%;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 58px) 0 40px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(20px, 3vw, 36px);
}
.eyebrow {
  font-size: 0.8rem;
  margin: 0 0 8px;
  color: var(--gold);
}
h1,
h2,
.result strong {
  font-family: var(--display);
  font-weight: 500;
}
h1 {
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  letter-spacing: -0.058em;
  line-height: 1;
  margin: 0;
}
h1 span {
  color: var(--gold);
}
.prize {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px 24px;
  color: #f9dfab;
  border: 1px solid #9b7b50;
  outline: 1px solid #69553b;
  outline-offset: -5px;
  background: #331e26;
}
.prize strong {
  font: 500 clamp(2rem, 4.4vw, 3.8rem)/1.2 var(--display);
  letter-spacing: -0.08em;
}
.prize span {
  font-size: 0.8rem;
  line-height: 1.5;
  border-left: 1px solid #97784c;
  padding-left: 15px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(285px, 1fr);
  gap: clamp(18px, 5vw, 82px);
  align-items: center;
  padding: 32px 0 0;
}
.stage {
  min-width: 0;
  text-align: center;
}
.wheel {
  width: min(100%, 480px);
  aspect-ratio: 1;
  position: relative;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 18px 36px #0007;
}
#wheel {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.pointer {
  position: absolute;
  z-index: 1;
  top: -1.8%;
  left: 46.8%;
  width: 6.4%;
  height: 11%;
  filter: drop-shadow(0 2px 2px #120b0c);
}
.pointer::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(
    90deg,
    #ad8443,
    #ffe8a2 48%,
    #c5a052 51%,
    #7b5729
  );
  clip-path: polygon(50% 100%, 0 20%, 17% 0, 83% 0, 100% 20%);
}
.hub {
  position: absolute;
  width: 22%;
  height: 22%;
  inset: 39%;
  border-radius: 50%;
  border: 2px solid #dbbf7e;
  outline: 1px solid #5f4528;
  outline-offset: 2px;
  background: radial-gradient(at 40% 25%, #35272d, #121013 75%);
  color: var(--paper);
  display: grid;
  align-content: center;
  justify-items: center;
  box-shadow: 0 3px 10px #0009;
}
.hub img {
  width: 53%;
  height: auto;
  max-height: 60px;
}
.hub span {
  font: 600 clamp(0.72rem, 1.25vw, 0.94rem) var(--display);
  letter-spacing: 0.09em;
}
.hub:focus-visible {
  outline: 3px solid white;
}
.hub:enabled:hover {
  background: #462d39;
}
.result {
  margin-top: 19px;
  min-height: 51px;
}
.result-label {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
}
.result strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.result.won strong {
  color: #ffe2a6;
}
.entries {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #241c21, #191619 75%);
  box-shadow: 0 14px 30px #0002;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: -0.04em;
  margin: 0;
}
#count {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  border: 1px solid #665138;
  border-radius: 20px;
  padding: 1px 10px;
  font-size: 0.88rem;
}
.instructions {
  color: var(--muted);
  margin: 9px 0 21px;
}
.entries label {
  display: block;
  color: #edded0;
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.spin {
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  background: #dfc58a;
  color: #1d1513;
  border: 1px solid #f1dba4;
  border-radius: 2px;
  font-weight: 700;
}
.spin:hover:enabled {
  background: #f5dba0;
}
.spin:disabled {
  background: #584c3e;
  border-color: #675744;
  color: #d6c9b7;
}
.privacy,
.note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 12px 0 0;
}
.note {
  color: #f6d7a4;
}
[hidden] {
  display: none;
}
@media (max-width: 720px) {
  .masthead {
    padding: 9px 4%;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .brand {
    gap: 8px;
  }
  main {
    padding-top: 24px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    padding-top: 25px;
  }
  .wheel {
    width: min(83vw, 365px);
  }
  .result {
    margin-top: 13px;
    min-height: 0;
  }
  .entries {
    padding: 20px;
  }
  .prize {
    gap: 7px;
    padding: 10px;
  }
  .prize span {
    font-size: 0.63rem;
    padding-left: 7px;
    letter-spacing: 0.08em;
  }
  .eyebrow {
    font-size: 0.71rem;
    margin-bottom: 5px;
  }
}
@media (max-width: 430px) {
  h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.3rem);
  }
  .intro {
    gap: 6px;
  }
  .prize strong {
    font-size: 1.55rem;
  }
  .home-link {
    font-size: 0.82rem;
  }
}
.note:empty {
  display: none;
}
.live-controls button,
.secondary,
.picker-tools button {
  border: 1px solid #806748;
  color: var(--paper);
  background: #211c1e;
  border-radius: 2px;
  min-height: 40px;
  padding: 7px 11px;
}
.live-controls {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 15px;
}
.live-controls button:hover:enabled {
  color: var(--gold);
  border-color: var(--gold);
}
#watch-link {
  width: 100%;
  font: inherit;
  color: var(--paper);
  background: #100f11;
  border: 1px solid var(--line);
  padding: 9px;
}
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.watch-list {
  margin-top: 18px;
}
.watch-list summary {
  cursor: pointer;
}
#watch-names {
  max-height: 250px;
  overflow: auto;
  padding-left: 1.4rem;
}
.winner-photo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin: 15px auto -8px;
}
.members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
  padding: 5px;
  margin: 6px -5px;
}
.member {
  position: relative;
  background: #151315;
  border: 1px solid #57473c;
  color: var(--paper);
  padding: 7px 4px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
.member[aria-pressed="true"] {
  border-color: #ecc885;
  background: #36232b;
}
.member[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold);
  color: #130f11;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-weight: 700;
}
.member img,
.initial {
  display: grid;
  place-items: center;
  margin: 0 auto 5px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  background: #49313c;
  color: #f5d798;
  font: 500 1.4rem var(--display);
}
.picker-tools {
  display: flex;
  gap: 12px;
}
.picker-tools button,
.secondary {
  background: transparent;
  border: 0;
  color: #e6ca91;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}
.entrance-card {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 35%;
  inset: 25% auto auto 32.5%;
  text-align: center;
  padding: 8px 8px 10px;
  background: #ecdfc3;
  border: 2px solid #ecce8b;
  box-shadow: 0 8px 22px #000a;
  color: #281725;
}
.entrance-card img,
.entrance-card .initial {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 0;
  background: #472836;
}
.entrance-card strong {
  display: block;
  font: 600 clamp(0.78rem, 1.45vw, 1.1rem)/1.2 var(--display);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.entrance-card .credit {
  font-size: 0.66rem;
}
#host-panel .member:disabled {
  opacity: 0.74;
}
