@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}

@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/assets/fonts/russo-one-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}

@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/assets/fonts/russo-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}

:root {
  --club-red: #e43624;
  --club-red-bright: #f0442f;
  --club-red-action: #db301e;
  --club-red-action-hover: #cf2919;
  --club-red-deep: #a92318;
  --paper: #f5f5f3;
  --paper-raised: #fff;
  --ink: #0b0b0c;
  --ink-soft: #242426;
  --muted: #68686a;
  --line: #d7d7d3;
  --night: #08090a;
  --night-raised: #111214;
  --night-paper: #f5f0e4;
  --success: #196b4b;
  --error: #b42318;
  --tg-safe-top: 0px;
  --tg-safe-right: 0px;
  --tg-safe-bottom: 0px;
  --tg-safe-left: 0px;
  --safe-top: max(20px, env(safe-area-inset-top), var(--tg-safe-top));
  --safe-right: max(20px, env(safe-area-inset-right), var(--tg-safe-right));
  --safe-bottom: max(16px, env(safe-area-inset-bottom), var(--tg-safe-bottom));
  --safe-left: max(20px, env(safe-area-inset-left), var(--tg-safe-left));
  --nav-height: 68px;
  --credential-shadow: 0 8px 18px rgb(11 11 12 / 24%);
  --navigation-shadow: 0 4px 16px rgb(11 11 12 / 15%);
  --tg-viewport-height: 100dvh;
  --wheel-size: min(calc(100vw - 44px), calc(var(--tg-viewport-height) - 420px), 380px);
  color-scheme: light;
  font-family: "Manrope", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body[data-route="wheel"] {
  height: var(--tg-viewport-height);
  min-height: var(--tg-viewport-height);
  overflow: hidden;
  background: var(--night);
  color: var(--night-paper);
}

body[data-route="wheel"] #mainContent,
body[data-route="wheel"] .wheel-screen,
body[data-route="wheel"] .night-shell {
  height: var(--tg-viewport-height);
  min-height: 0;
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper-raised);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--club-red);
  outline-offset: 3px;
}

body[data-route="wheel"] :focus-visible {
  outline-color: var(--night-paper);
}

.screen h1[tabindex="-1"]:focus {
  outline: 0;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.screen[hidden] {
  display: none;
}

.paper-shell,
.night-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 853px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 16px) var(--safe-right) calc(var(--nav-height) + var(--safe-bottom) + 40px) var(--safe-left);
}

.paper-shell {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.paper-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 10% 12%, rgb(255 255 255 / 90%) 0, rgb(255 255 255 / 0%) 34%);
}

.masthead,
.wheel-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.masthead {
  order: 1;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("/static/assets/images/vnvnc-classic-letters.svg") center / contain no-repeat;
  mask: url("/static/assets/images/vnvnc-classic-letters.svg") center / contain no-repeat;
}

.brand-mark--masthead {
  width: 88px;
  height: 88px;
  color: var(--club-red);
}

.brand-mark--card {
  width: 100%;
  height: 100%;
  color: var(--club-red);
}

.brand-mark--wheel {
  width: 64px;
  height: 64px;
  color: var(--club-red-bright);
}

.brand-mark--hub {
  width: 66%;
  height: 66%;
  color: var(--night-paper);
}

.masthead__edition {
  margin-top: 18px;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-copy {
  order: 2;
  margin-top: 48px;
}

.eyebrow,
.metadata-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 12px;
}

.hero-copy h1,
.wheel-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 10vw, 4.6rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero-copy h1 {
  word-spacing: 0.06em;
  white-space: nowrap;
}

.lede {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 4.5vw, 1.24rem);
  line-height: 1.5;
}

.identity-block {
  order: 3;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.avatar-wrap {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: #dededb;
  box-shadow: inset 0 0 0 1px rgb(11 11 12 / 8%);
}

.avatar,
.avatar-fallback {
  width: 100%;
  height: 100%;
}

.avatar {
  display: block;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 2rem;
}

.identity-block__person,
.identity-block__status {
  min-width: 0;
}

.identity-block__person {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.identity-block__person strong {
  overflow: hidden;
  font-size: 1.18rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-handle {
  overflow: hidden;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-block__divider {
  display: none;
}

.identity-block__status {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verified-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.verified-state i {
  font-size: 1.4rem;
}

.verified-state.is-verified i {
  color: var(--success);
}

.signup-form {
  display: contents;
}

.signup-fields {
  order: 5;
  margin-top: 32px;
}

.form-section-heading h2,
.form-section-heading p {
  margin: 0;
}

.form-section-heading h2 {
  font-size: clamp(1.28rem, 5.5vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.form-section-heading p {
  max-width: 560px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.field-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

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

.field-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

.field-hint,
.field-error,
.form-status {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.field-hint {
  margin-bottom: 8px;
  color: var(--muted);
}

.field-group input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.field-group input:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(228 54 36 / 18%);
}

.field-group input::placeholder {
  color: #858587;
  opacity: 1;
}

.field-group input[type="date"] {
  min-width: 0;
  color-scheme: light;
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin-top: 8px;
  color: var(--error);
  font-weight: 600;
}

.credential-section {
  order: 4;
  margin-top: 32px;
}

body[data-profile-state="incomplete"] .signup-fields {
  order: 4;
}

body[data-profile-state="incomplete"] .consent-row {
  order: 5;
}

body[data-profile-state="incomplete"] .consent-error {
  order: 6;
}

body[data-profile-state="incomplete"] #signupButton {
  order: 7;
}

body[data-profile-state="incomplete"] .form-status {
  order: 8;
}

body[data-profile-state="incomplete"] .credential-section {
  order: 9;
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 31%);
  grid-template-rows: minmax(72px, 1fr) auto 1px auto;
  grid-template-areas:
    "brand club"
    "identity qr"
    "rule rule"
    "code date";
  gap: 12px 16px;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  min-height: 208px;
  overflow: hidden;
  padding: clamp(18px, 5vw, 28px);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 14% -24%, rgb(255 255 255 / 9%), transparent 48%),
    linear-gradient(118deg, #111214 0%, #08090a 58%, #0e0f10 100%);
  box-shadow: var(--credential-shadow), inset 0 1px 0 rgb(255 255 255 / 9%), inset 0 0 0 1px rgb(255 255 255 / 4%);
  color: var(--paper-raised);
  isolation: isolate;
}

.member-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 3px, rgb(255 255 255 / 9%) 3px 4px);
  opacity: 0.08;
  pointer-events: none;
}

.member-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  left: 22%;
  width: 26%;
  height: 170%;
  background: rgb(255 255 255 / 3%);
  pointer-events: none;
  transform: rotate(18deg);
}

.member-card__brand {
  grid-area: brand;
  width: clamp(84px, 25vw, 160px);
  min-height: 70px;
}

.member-card__club {
  grid-area: club;
  align-self: start;
  margin: 3px 0 0;
  font-size: clamp(0.56rem, 2.6vw, 0.82rem);
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1.35;
  text-transform: uppercase;
}

.member-card__club span,
.member-card__club strong {
  display: block;
}

.member-card__club span {
  color: var(--club-red-bright);
}

.member-card__club strong {
  color: var(--paper-raised);
  font-weight: 700;
}

.member-card__qr {
  grid-area: qr;
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  width: min(100%, 192px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 7px solid var(--paper-raised);
  border-radius: 4px;
  background: var(--paper-raised);
  color: var(--ink);
}

.member-card__qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.member-card__qr i {
  font-size: clamp(2.4rem, 13vw, 4.6rem);
  opacity: 0.32;
}

.member-card__identity {
  grid-area: identity;
  align-self: end;
  min-width: 0;
  padding-bottom: 2px;
}

.member-card__identity strong,
.member-card__identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card__identity strong {
  font-size: clamp(1.04rem, 5vw, 1.52rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.member-card__identity span {
  margin-top: 2px;
  color: rgb(255 255 255 / 62%);
  font-size: clamp(0.74rem, 3.6vw, 1rem);
}

.member-card__rule {
  grid-area: rule;
  background: rgb(255 255 255 / 18%);
}

.member-card__meta {
  min-width: 0;
}

.member-card__meta--code {
  grid-area: code;
}

.member-card__meta--date {
  grid-area: date;
}

.member-card__meta span,
.member-card__meta strong {
  display: block;
}

.member-card__meta span {
  color: rgb(255 255 255 / 52%);
  font-size: clamp(0.75rem, 2.2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.member-card__meta strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: clamp(0.66rem, 3.4vw, 0.96rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card B: warm poster grid */
.member-card[data-card-design="B"] {
  grid-template-columns: clamp(50px, 17vw, 92px) minmax(0, 1fr) minmax(72px, 29%);
  grid-template-rows: minmax(44px, 1fr) auto 1px auto;
  grid-template-areas:
    "brand club qr"
    "brand identity identity"
    "brand rule rule"
    "brand code date";
  gap: 8px 10px;
  background:
    radial-gradient(ellipse at 82% 12%, rgb(255 255 255 / 88%), transparent 36%),
    linear-gradient(120deg, #f8f4eb 0%, #ece6da 100%);
  box-shadow: var(--credential-shadow), inset 0 0 0 1px rgb(11 11 12 / 12%);
  color: var(--ink);
}

.member-card[data-card-design="B"]::before {
  background:
    linear-gradient(90deg, transparent 0 68%, rgb(11 11 12 / 5%) 68% calc(68% + 1px), transparent calc(68% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 4px, rgb(11 11 12 / 4%) 4px 5px);
  opacity: 0.28;
}

.member-card[data-card-design="B"]::after {
  display: none;
}

.member-card[data-card-design="B"] .member-card__brand {
  align-self: stretch;
  width: 100%;
  min-height: 0;
  padding-right: 10px;
  border-right: 1px solid rgb(11 11 12 / 72%);
}

.member-card[data-card-design="B"] .member-card__club {
  align-self: end;
  margin: 0;
}

.member-card[data-card-design="B"] .member-card__club strong,
.member-card[data-card-design="B"] .member-card__identity strong,
.member-card[data-card-design="B"] .member-card__meta strong {
  color: var(--ink);
}

.member-card[data-card-design="B"] .member-card__identity {
  align-self: start;
  padding: 0;
}

.member-card[data-card-design="B"] .member-card__identity strong {
  font-size: clamp(0.72rem, 3.6vw, 1.3rem);
}

.member-card[data-card-design="B"] .member-card__identity span {
  font-size: clamp(0.64rem, 2.8vw, 0.9rem);
}

.member-card[data-card-design="B"] .member-card__identity span,
.member-card[data-card-design="B"] .member-card__meta span {
  color: rgb(11 11 12 / 58%);
}

.member-card[data-card-design="B"] .member-card__qr {
  align-self: center;
  border: 5px solid var(--ink);
  background: var(--paper-raised);
  box-shadow: 0 0 0 1px rgb(11 11 12 / 12%);
}

.member-card[data-card-design="B"] .member-card__rule {
  background: rgb(11 11 12 / 64%);
}

.member-card[data-card-design="B"] .member-card__meta--date {
  padding-left: 8px;
  border-left: 1px solid rgb(11 11 12 / 52%);
}

/* Card C: oxblood architectural grid */
.member-card[data-card-design="C"] {
  grid-template-columns: minmax(78px, 40%) minmax(0, 1fr) minmax(68px, 28%);
  grid-template-rows: minmax(42px, 1fr) auto 1px auto;
  grid-template-areas:
    "brand club qr"
    "brand identity qr"
    "rule rule rule"
    "code code date";
  gap: 8px 9px;
  background:
    radial-gradient(ellipse at 82% 18%, rgb(142 16 12 / 32%), transparent 42%),
    linear-gradient(126deg, #2b0504 0%, #170202 72%, #250403 100%);
  box-shadow: var(--credential-shadow), inset 0 0 0 1px rgb(228 54 36 / 38%);
  color: var(--paper-raised);
}

.member-card[data-card-design="C"]::before {
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgb(228 54 36 / 10%) 5px 6px);
  opacity: 0.22;
}

.member-card[data-card-design="C"]::after {
  top: -40%;
  left: 43%;
  width: 28%;
  height: 190%;
  background: rgb(228 54 36 / 6%);
  transform: rotate(0);
}

.member-card[data-card-design="C"] .member-card__brand {
  align-self: stretch;
  width: 100%;
  min-height: 0;
  padding-right: 8px;
  border-right: 1px solid rgb(228 54 36 / 72%);
}

.member-card[data-card-design="C"] .brand-mark--card {
  color: #c91b17;
}

.member-card[data-card-design="C"] .member-card__club {
  align-self: end;
  margin: 0;
}

.member-card[data-card-design="C"] .member-card__identity {
  align-self: start;
  padding: 0;
}

.member-card[data-card-design="C"] .member-card__identity strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(0.7rem, 3.3vw, 1.18rem);
  line-height: 1.04;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-card[data-card-design="C"] .member-card__identity span {
  font-size: clamp(0.64rem, 2.7vw, 0.88rem);
}

.member-card[data-card-design="C"] .member-card__qr {
  align-self: center;
  border-color: var(--paper-raised);
}

.member-card[data-card-design="C"] .member-card__rule {
  background: rgb(228 54 36 / 70%);
}

.member-card[data-card-design="C"] .member-card__meta--date {
  padding-left: 8px;
  border-left: 1px solid rgb(228 54 36 / 72%);
}

.member-card[data-card-design="C"] .member-card__meta span {
  color: rgb(240 68 47 / 88%);
}

/* Accessible three-way design control */
.card-design-selector {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.card-design-selector legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.card-design-selector > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.card-design-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.card-design-option {
  min-width: 0;
  cursor: pointer;
}

.card-design-option__surface {
  position: relative;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 52px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-raised);
  color: var(--ink);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out, transform 140ms ease-out;
}

.card-design-option__surface > span:nth-child(2) {
  min-width: 0;
}

.card-design-option__surface strong,
.card-design-option__surface small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-design-option__surface strong {
  font-size: 0.72rem;
  line-height: 1;
}

.card-design-option__surface small {
  margin-top: 3px;
  font-size: clamp(0.57rem, 2.6vw, 0.7rem);
  font-weight: 650;
  line-height: 1.1;
}

.card-design-option__surface > i {
  position: absolute;
  top: 4px;
  right: 4px;
  color: var(--club-red-action);
  font-size: 0.82rem;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.card-design-option__mark {
  display: block;
  width: 7px;
  height: 30px;
  border-radius: 2px;
  background: var(--ink);
}

.card-design-option__surface--b .card-design-option__mark {
  border: 1px solid var(--ink);
  background: #f3eee3;
}

.card-design-option__surface--c .card-design-option__mark {
  background: #4a0806;
  box-shadow: inset 0 0 0 1px rgb(228 54 36 / 62%);
}

.card-design-option input:checked + .card-design-option__surface {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.card-design-option input:checked + .card-design-option__surface > i {
  opacity: 1;
  transform: scale(1);
}

.card-design-option input:focus-visible + .card-design-option__surface {
  outline: 2px solid var(--club-red);
  outline-offset: 3px;
}

.card-design-option input:disabled + .card-design-option__surface {
  cursor: wait;
  opacity: 0.58;
}

.card-design-option:active .card-design-option__surface {
  transform: scale(0.97);
}

.card-design-status {
  min-height: 18px;
}

.consent-row {
  order: 6;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  margin-top: 32px;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.consent-row input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--club-red);
  cursor: pointer;
}

.consent-row__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  align-items: baseline;
  line-height: 1.4;
}

.consent-row__copy label {
  cursor: pointer;
}

.consent-row > i {
  color: var(--muted);
  font-size: 1.4rem;
}

.text-link {
  min-height: 44px;
  padding: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent-error {
  order: 7;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out, opacity 160ms ease-out, transform 140ms ease-out;
}

.button:active:not(:disabled) {
  transform: scale(0.96);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

.button--primary {
  background: var(--club-red-action);
  color: var(--paper-raised);
}

.button--primary:hover:not(:disabled) {
  background: var(--club-red-action-hover);
}

.button--primary:active:not(:disabled) {
  background: var(--club-red-deep);
}

.button--secondary {
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.button--paper {
  background: var(--night-paper);
  color: var(--night);
}

.button--compact {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

#signupButton {
  order: 8;
  width: 100%;
  margin-top: 24px;
}

.button__pending {
  display: none;
  align-items: center;
  gap: 9px;
}

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

.button.is-loading .button__label {
  display: none;
}

.button.is-loading .button__pending {
  display: inline-flex;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  order: 9;
  min-height: 20px;
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
}

.credential-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 8px;
  margin-top: 16px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.4rem;
  transition: background-color 160ms ease-out, color 160ms ease-out, transform 140ms ease-out;
}

.icon-button:hover {
  background: rgb(11 11 12 / 7%);
}

.icon-button:active {
  transform: scale(0.96);
}

.credential-actions .icon-button {
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: var(--paper-raised);
}

.sent-to-chat,
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.sent-to-chat {
  margin: 12px 0 0;
}

.sent-to-chat i {
  margin-top: 2px;
  color: var(--success);
}

.privacy-note {
  order: 11;
  margin: 28px 0 0;
}

.privacy-note i {
  margin-top: 3px;
}

.state-panel {
  order: 10;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border-left: 3px solid var(--error);
  background: #fff4f2;
}

.state-panel > i {
  color: var(--error);
  font-size: 1.5rem;
}

.state-panel strong,
.state-panel p {
  display: block;
  margin: 0;
}

.state-panel p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.state-panel .button {
  grid-column: 2;
  justify-self: start;
  margin-top: 4px;
}

.connectivity-banner {
  position: fixed;
  z-index: 90;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(calc(100% - 32px), 520px);
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--navigation-shadow);
  color: var(--paper-raised);
  font-size: 0.8rem;
  line-height: 1.3;
  transform: translateX(-50%);
}

/* Wheel */
.wheel-screen {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-paper);
}

.wheel-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: url("/static/assets/images/vertical-red-room.webp");
  background-position: center top;
  background-size: cover;
}

.wheel-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(8 9 10 / 74%);
}

.night-shell {
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 4px) var(--safe-right) calc(var(--nav-height) + var(--safe-bottom) + 14px) var(--safe-left);
  background: rgb(8 9 10 / 22%);
}

.wheel-masthead {
  flex: 0 0 auto;
  align-items: center;
  color: var(--night-paper);
}

.wheel-copy {
  flex: 0 0 auto;
  margin-top: 8px;
}

.eyebrow--night,
.metadata-label--night {
  color: rgb(245 240 228 / 68%);
}

.wheel-copy h1 {
  max-width: 560px;
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  color: var(--night-paper);
}

.wheel-copy p:last-child {
  max-width: 520px;
  margin: 7px 0 0;
  color: rgb(245 240 228 / 72%);
  font-size: 0.86rem;
}

.wheel-auth-gate {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: 12px;
  background: var(--night-raised);
  box-shadow: inset 0 0 0 1px rgb(245 240 228 / 10%);
}

.wheel-auth-gate > i {
  color: var(--club-red-bright);
  font-size: 2rem;
}

.wheel-auth-gate h2 {
  margin: 16px 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.wheel-auth-gate p {
  margin: 8px 0 20px;
  color: rgb(245 240 228 / 68%);
}

.wheel-experience {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: 10px;
}

.wheel-status-row,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wheel-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.wheel-stage {
  position: relative;
  flex: 0 1 var(--wheel-size);
  width: var(--wheel-size);
  max-width: 100%;
  max-height: var(--wheel-size);
  aspect-ratio: 1;
  margin: 8px auto 0;
  padding: 13px;
}

.wheel-stage::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgb(245 240 228 / 16%);
  border-radius: 50%;
}

.wheel-pointer {
  position: absolute;
  z-index: 4;
  top: -2px;
  left: 50%;
  color: var(--club-red-bright);
  filter: drop-shadow(0 4px 6px rgb(8 9 10 / 45%));
  transform: translateX(-50%);
}

.wheel-rotor {
  position: relative;
  aspect-ratio: 1;
  border: 7px solid var(--night-paper);
  border-radius: 50%;
  background: var(--night-raised);
  box-shadow: 0 12px 32px rgb(0 0 0 / 38%);
  transition: transform 12000ms cubic-bezier(0.2, 0, 0.1, 1);
  will-change: transform;
}

.wheel-rotor.is-direct {
  transition-duration: 1ms;
}

#wheelCanvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 25%;
  aspect-ratio: 1;
  border: 5px solid var(--night-paper);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 5px 12px rgb(0 0 0 / 38%);
  transform: translate(-50%, -50%);
}

.wheel-spin {
  flex: 0 0 auto;
  min-height: 50px;
  width: min(100%, 520px);
  margin-right: auto;
  margin-left: auto;
  margin-top: 7px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.wheel-message {
  flex: 0 0 auto;
  min-height: 18px;
  margin: 5px 0 0;
  color: rgb(245 240 228 / 68%);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  width: min(100%, 520px);
  margin-right: auto;
  margin-left: auto;
}

.wheel-shortcuts {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 520px);
  margin-right: auto;
  margin-left: auto;
  margin-top: 7px;
}

.wheel-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgb(245 240 228 / 18%);
  border-radius: 8px;
  background: rgb(245 240 228 / 7%);
  color: var(--night-paper);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.wheel-shortcut i {
  flex: 0 0 auto;
  color: var(--club-red-bright);
  font-size: 1.15rem;
}

.wheel-shortcut:active {
  transform: scale(0.97);
}

.text-link--night {
  color: var(--night-paper);
  font-size: 0.82rem;
}

#prizeList,
#rewardList {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.prize-item,
.reward-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(245 240 228 / 13%);
}

.prize-item {
  grid-template-columns: 44px minmax(0, 1fr);
}

.prize-item__icon,
.reward-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgb(245 240 228 / 9%);
  color: var(--club-red-bright);
  font-size: 1.3rem;
}

.prize-item > span:nth-child(2) > strong,
.prize-item > span:nth-child(2) > span,
.reward-item > span:nth-child(2) > strong,
.reward-item > span:nth-child(2) > span {
  display: block;
}

.prize-item > span:nth-child(2) > strong,
.reward-item > span:nth-child(2) > strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.prize-item > span:nth-child(2) > span,
.reward-item > span:nth-child(2) > span {
  margin-top: 3px;
  color: rgb(245 240 228 / 58%);
  font-size: 0.78rem;
  line-height: 1.35;
}

.prize-item__status,
.reward-item__status {
  color: rgb(245 240 228 / 60%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.empty-copy {
  margin: 18px 0 0;
  color: rgb(245 240 228 / 60%);
  font-size: 0.88rem;
}

.state-panel--night {
  margin-top: 36px;
  border-left-color: var(--club-red-bright);
  background: var(--night-raised);
  box-shadow: inset 0 0 0 1px rgb(245 240 228 / 10%);
}

.state-panel--night > i {
  color: var(--club-red-bright);
}

.state-panel--night p {
  color: rgb(245 240 228 / 66%);
}

/* Terms */
.terms-screen {
  background: var(--paper);
}

.terms-shell {
  display: block;
  padding-bottom: calc(var(--safe-bottom) + 36px);
}

.terms-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.back-button i {
  font-size: 1.3rem;
}

.brand-mark--terms {
  width: 48px;
  height: 48px;
  color: var(--club-red);
}

.terms-document {
  width: min(100%, 660px);
  margin: 44px auto 0;
}

.terms-document > h1 {
  margin: 0;
  font-size: clamp(2.25rem, 10vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.terms-intro {
  margin: 18px 0 36px;
  color: var(--muted);
  font-size: 1.02rem;
}

.terms-document section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.terms-document section h2,
.terms-document section p {
  margin: 0;
}

.terms-document section h2 {
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.terms-document section p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.terms-accept {
  width: 100%;
  margin-top: 24px;
}

/* Full-screen prize and history views */
.fullscreen-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100%;
  max-width: none;
  height: var(--tg-viewport-height);
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--night);
  color: var(--night-paper);
}

.fullscreen-overlay::backdrop {
  background: var(--night);
}

.fullscreen-overlay[open] {
  animation: overlay-in 180ms ease-out both;
}

@keyframes overlay-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-shell {
  display: flex;
  width: min(100%, 853px);
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 10px) var(--safe-right) calc(var(--safe-bottom) + 18px) var(--safe-left);
  flex-direction: column;
}

.overlay-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.overlay-header .eyebrow {
  margin-bottom: 7px;
}

.overlay-header h2 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.icon-button--night {
  flex: 0 0 auto;
  background: rgb(245 240 228 / 9%);
  color: var(--night-paper);
}

.icon-button--night:hover {
  background: rgb(245 240 228 / 14%);
}

.overlay-intro,
.overlay-actions {
  flex: 0 0 auto;
  margin: 14px 0 0;
  color: rgb(245 240 228 / 66%);
  font-size: 0.86rem;
}

.overlay-actions {
  display: flex;
  justify-content: flex-end;
}

.overlay-scroll {
  min-height: 0;
  margin-top: 12px;
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

/* Persistent navigation */
.bottom-nav {
  position: fixed;
  z-index: 40;
  right: var(--safe-right);
  bottom: max(10px, var(--safe-bottom));
  left: var(--safe-left);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(calc(100% - var(--safe-left) - var(--safe-right)), 480px);
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--navigation-shadow);
  color: var(--ink);
}

.bottom-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out, transform 140ms ease-out;
}

.bottom-nav__item i {
  font-size: 1.32rem;
}

.bottom-nav__item.is-active {
  background: var(--ink);
  color: var(--paper-raised);
}

body[data-route="wheel"] .bottom-nav__item.is-active {
  background: var(--club-red-action);
}

.bottom-nav__item:active {
  transform: scale(0.96);
}

/* Dialogs */
.bottom-sheet {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 620px);
  max-width: none;
  max-height: min(88vh, 780px);
  margin: auto auto 0;
  padding: 16px 20px calc(20px + var(--safe-bottom));
  overflow: auto;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 -10px 40px rgb(0 0 0 / 28%);
}

.bottom-sheet::backdrop {
  background: rgb(8 9 10 / 72%);
}

.bottom-sheet[open] {
  animation: sheet-in 200ms ease-out both;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 2px;
  background: var(--line);
}

.result-sheet h2 {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.bottom-sheet .button--primary {
  width: 100%;
}

.result-sheet {
  background: var(--night-raised);
  color: var(--night-paper);
}

.result-sheet__accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--club-red);
}

.result-sheet .sheet-handle {
  background: rgb(245 240 228 / 26%);
}

.result-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--club-red-bright);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-sheet > p {
  margin: 14px 0 0;
  color: rgb(245 240 228 / 70%);
}

.reward-pass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: center;
  margin: 24px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--night);
  box-shadow: inset 0 0 0 1px rgb(245 240 228 / 12%);
}

.reward-pass:not(.has-qr) {
  grid-template-columns: minmax(0, 1fr);
}

.reward-pass .metadata-label {
  color: rgb(245 240 228 / 55%);
}

.reward-pass strong {
  display: block;
  margin-top: 5px;
  font-size: 1.16rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.reward-pass img {
  display: block;
  width: 96px;
  height: 96px;
  padding: 4px;
  border-radius: 4px;
  background: var(--paper-raised);
}

.reward-qr-placeholder {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 4px;
  background: var(--paper-raised);
  color: rgb(11 11 12 / 30%);
  font-size: 2.8rem;
}

.result-validity {
  margin-bottom: 24px !important;
  font-size: 0.84rem;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 18px);
  left: 16px;
  width: min(calc(100% - 32px), 480px);
  min-height: 48px;
  margin: 0 auto;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--navigation-shadow);
  color: var(--paper-raised);
  font-size: 0.86rem;
  text-align: center;
}

@media (min-width: 560px) {
  :root {
    --safe-right: max(32px, env(safe-area-inset-right), var(--tg-safe-right));
    --safe-left: max(32px, env(safe-area-inset-left), var(--tg-safe-left));
  }

  .brand-mark--masthead {
    width: 104px;
    height: 104px;
  }

  .hero-copy {
    margin-top: 56px;
  }

  .identity-block {
    grid-template-columns: 80px minmax(0, 1fr) 1px minmax(150px, 0.72fr);
    gap: 20px;
    padding: 24px 8px 24px 0;
  }

  .avatar-wrap {
    width: 80px;
    height: 80px;
  }

  .identity-block__divider {
    display: block;
    width: 1px;
    height: 70px;
    background: var(--line);
  }

  .identity-block__status {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .member-card {
    min-height: 340px;
    gap: 20px 24px;
  }

  .member-card__club {
    font-size: 0.86rem;
  }

  .member-card__identity strong {
    font-size: 1.55rem;
  }

  .member-card__identity span {
    font-size: 1rem;
  }

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

  .field-group--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 375px) and (max-width: 559px) {
  .identity-block {
    grid-template-columns: 64px minmax(0, 1fr) 1px 118px;
    gap: 10px;
  }

  .avatar-wrap {
    width: 64px;
    height: 64px;
  }

  .identity-block__divider {
    display: block;
    width: 1px;
    height: 64px;
    background: var(--line);
  }

  .identity-block__status {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .verified-state {
    gap: 5px;
    font-size: 0.8rem;
  }

  .verified-state i {
    font-size: 1.12rem;
  }
}

@media (min-width: 840px) {
  body {
    background: #e9e9e6;
  }

  .paper-shell,
  .night-shell {
    padding-right: 56px;
    padding-left: 56px;
  }

  .paper-shell {
    box-shadow: 0 0 40px rgb(11 11 12 / 8%);
  }
}

@media (max-width: 559px) and (max-height: 900px) {
  body[data-session-state="member"] .hero-copy {
    margin-top: 24px;
  }

  body[data-session-state="member"] .hero-copy .lede {
    display: none;
  }

  body[data-session-state="member"] .identity-block {
    margin-top: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  body[data-session-state="member"] .credential-section {
    margin-top: 22px;
  }

  .wheel-copy {
    margin-top: 14px;
  }

  .wheel-copy .eyebrow {
    margin-bottom: 8px;
  }

  .wheel-copy h1 {
    font-size: 2.2rem;
  }

  .wheel-copy p:last-child {
    margin-top: 10px;
  }

  .wheel-experience {
    margin-top: 18px;
  }

  .wheel-stage {
    width: var(--wheel-size);
    margin-top: 7px;
    padding: 13px;
  }

  .wheel-spin {
    margin-top: 8px;
  }
}

@media (max-height: 740px) {
  :root {
    --wheel-size: min(calc(100vw - 44px), calc(var(--tg-viewport-height) - 390px), 300px);
  }

  .night-shell {
    padding-top: max(10px, var(--safe-top));
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 10px);
  }

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

  .wheel-masthead .masthead__edition {
    margin-top: 0;
  }

  .wheel-copy {
    margin-top: 4px;
  }

  .wheel-copy .eyebrow,
  .wheel-copy p:last-child {
    display: none;
  }

  .wheel-copy h1 {
    font-size: 1.8rem;
    line-height: 0.94;
  }

  .wheel-experience {
    margin-top: 6px;
  }

  .wheel-stage {
    margin-top: 5px;
    padding: 11px;
  }

  .wheel-pointer {
    width: 36px;
    height: 40px;
  }

  .wheel-rotor {
    border-width: 5px;
  }

  .wheel-spin {
    min-height: 48px;
    margin-top: 5px;
  }

  .wheel-message,
  .wheel-shortcuts {
    margin-top: 4px;
  }
}

@media (max-width: 359px) {
  :root {
    --safe-right: max(16px, env(safe-area-inset-right), var(--tg-safe-right));
    --safe-left: max(16px, env(safe-area-inset-left), var(--tg-safe-left));
  }

  .masthead__edition {
    font-size: 0.65rem;
  }

  .brand-mark--masthead {
    width: 72px;
    height: 72px;
  }

  .hero-copy {
    margin-top: 36px;
  }

  .identity-block {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .avatar-wrap {
    width: 60px;
    height: 60px;
  }

  .member-card {
    grid-template-columns: minmax(0, 1fr) minmax(76px, 31%);
    gap: 9px 12px;
    min-height: 190px;
    padding: 16px;
  }

  .member-card__qr {
    border-width: 5px;
  }

  .consent-row__copy {
    font-size: 0.88rem;
  }

  .bottom-nav__item {
    flex-direction: column;
    gap: 1px;
    line-height: 1.1;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .paper-shell,
  .night-shell {
    padding-top: max(12px, var(--safe-top));
  }

  .hero-copy,
  .wheel-copy {
    margin-top: 24px;
  }

  .wheel-stage {
    width: min(var(--wheel-size), 70vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .wheel-rotor {
    transition-duration: 1ms;
  }
}

@media (prefers-contrast: more) {
  .identity-block,
  .consent-row {
    border-bottom-color: var(--ink);
  }

  .wheel-backdrop::after {
    background: rgb(8 9 10 / 88%);
  }

  .bottom-nav {
    box-shadow: 0 0 0 2px var(--ink);
  }
}
