/* Планшет на ресепшн: тёмная тема, фирменный жёлтый, крупные зоны касания */
:root {
  --bg: #0d0d10;
  --panel: #17171c;
  --panel-2: #212128;
  --line: #2c2c35;
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --accent: #ffcc00;
  --accent-ink: #141414;
  --danger: #ff5a5a;
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  user-select: none;
  overscroll-behavior: none;
}

body { display: flex; flex-direction: column; }

.top {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 900; font-size: 28px; letter-spacing: 4px; color: var(--accent); }
.tagline { color: var(--muted); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }

main { flex: 1; position: relative; overflow: hidden; }

.screen { display: none; height: 100%; padding: 32px; flex-direction: column; gap: 20px; }
.screen.active { display: flex; }

h1 { font-size: 44px; line-height: 1.1; margin: 0; font-weight: 800; }
h2 { font-size: 20px; margin: 0 0 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); font-size: 18px; margin: 0; }

/* Ввод телефона */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; height: 100%; align-items: center; }
.ways { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.ways li {
  font-size: 22px;
  padding: 16px 20px;
  background: var(--panel);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.pad-wrap { display: flex; flex-direction: column; gap: 18px; max-width: 460px; width: 100%; justify-self: center; }
.phone {
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  letter-spacing: 1px;
}
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

button {
  font: inherit;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 84px;
  cursor: pointer;
  transition: transform .08s, background .15s;
}
button:active { transform: scale(.96); }
button:disabled { opacity: .35; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.ghost { background: transparent; }
button.wide { width: 100%; max-width: 520px; align-self: center; font-size: 26px; }

/* Состояние гостя */
.block { background: var(--panel); border-radius: var(--radius); padding: 22px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cards li { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 22px; }
.cards li button { font-size: 22px; min-height: 64px; padding: 0 28px; }
.cards .sub { color: var(--muted); font-size: 16px; display: block; margin-top: 4px; }
.badge { font-size: 16px; padding: 6px 12px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.badge.ready { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Колесо */
#screen-wheel { align-items: center; justify-content: center; }
.wheel-wrap { position: relative; width: min(70vh, 90vw); aspect-ratio: 1; }
#wheel { width: 100%; height: 100%; transition: transform 5.5s cubic-bezier(.12, .7, .1, 1); }
#wheel text { fill: var(--accent-ink); font-size: 7px; font-weight: 800; }
#wheel .dark text, #wheel text.light { fill: var(--text); }
.pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 0; height: 0;
  border-left: 22px solid transparent; border-right: 22px solid transparent;
  border-top: 40px solid var(--accent);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6));
}

/* Результат */
#screen-result { align-items: center; justify-content: center; text-align: center; }
.prize { font-size: 72px; color: var(--accent); }
#result-note { font-size: 24px; max-width: 760px; line-height: 1.4; }

.toast {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: var(--danger); color: #fff; padding: 18px 28px; border-radius: 14px;
  font-size: 22px; max-width: 80%; text-align: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .pitch { display: none; }
  h1 { font-size: 34px; }
}
