@font-face {
  font-family: "SF Pro Display";
  src:
    local("SF Pro Display"),
    local("SFProDisplay-Regular"),
    local("SF Pro Display Regular");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f5f7;
  --bg-strong: #eef1f5;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #111111;
  --text-muted: #63666d;
  --border: rgba(17, 17, 17, 0.08);
  --border-strong: rgba(17, 17, 17, 0.16);
  --accent: #0071e3;
  --accent-strong: #0058b0;
  --success: #0d8a4f;
  --warn: #b45f06;
  --shadow-soft: 0 20px 48px rgba(15, 18, 25, 0.08);
  --shadow-main: 0 36px 90px rgba(15, 18, 25, 0.12);
  --ambient-top: rgba(124, 172, 255, 0.28);
  --ambient-bottom: rgba(205, 212, 222, 0.45);
  --track: rgba(17, 17, 17, 0.07);
}

html[data-theme="dark"] {
  --bg: #060709;
  --bg-strong: #0d1015;
  --surface: rgba(18, 20, 26, 0.78);
  --surface-strong: rgba(23, 26, 32, 0.96);
  --text: #f5f6f7;
  --text-muted: #a9afbb;
  --border: rgba(239, 244, 255, 0.12);
  --border-strong: rgba(239, 244, 255, 0.24);
  --accent: #0a84ff;
  --accent-strong: #3b9cff;
  --success: #48d381;
  --warn: #ffbd73;
  --shadow-soft: 0 20px 48px rgba(0, 0, 0, 0.34);
  --shadow-main: 0 36px 90px rgba(0, 0, 0, 0.5);
  --ambient-top: rgba(53, 95, 170, 0.28);
  --ambient-bottom: rgba(74, 86, 110, 0.26);
  --track: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(860px 420px at 8% -10%, var(--ambient-top), transparent 70%),
    radial-gradient(780px 420px at 100% 0%, rgba(255, 255, 255, 0.24), transparent 68%),
    linear-gradient(180deg, var(--bg-strong), var(--bg));
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.auth-modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

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

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.85;
}

.ambient-top {
  width: 360px;
  height: 360px;
  top: -160px;
  right: -120px;
  background: var(--ambient-top);
}

.ambient-bottom {
  width: 320px;
  height: 320px;
  bottom: -180px;
  left: -100px;
  background: var(--ambient-bottom);
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  box-shadow: var(--shadow-soft);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.logo-orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111111, #43679f);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.logo-text {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.language-pill {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.language-pill-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-pill-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  color: var(--text-muted);
}

.language-select {
  min-width: 104px;
  max-width: 110px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  appearance: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-toggle {
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle-icon {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
}

.theme-toggle-switch {
  width: 42px;
  height: 24px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  transition: background-color 0.2s ease;
}

.theme-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 18, 25, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle.is-dark .theme-toggle-switch {
  background: rgba(10, 132, 255, 0.34);
}

.theme-toggle.is-dark .theme-toggle-thumb {
  transform: translateX(18px);
  background: #0a84ff;
}

.theme-toggle.is-dark .theme-toggle-icon:last-child,
.theme-toggle:not(.is-dark) .theme-toggle-icon:first-child {
  color: var(--text);
}

html[data-theme="dark"] .language-pill,
html[data-theme="dark"] .theme-toggle {
  border-color: rgba(239, 244, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 32, 40, 0.92), rgba(18, 21, 28, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .theme-toggle-switch {
  background: rgba(255, 255, 255, 0.12);
}

.account-state-pill {
  min-height: 42px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 247, 250, 0.88));
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 28px rgba(15, 18, 25, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-state-pill.signed-in {
  color: var(--text);
  border-color: rgba(13, 138, 79, 0.18);
  background: linear-gradient(180deg, rgba(239, 252, 245, 0.96), rgba(230, 247, 238, 0.92));
}

.account-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(99, 102, 109, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 102, 109, 0.08);
}

.account-state-pill.signed-in .account-state-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(13, 138, 79, 0.14);
}

html[data-theme="dark"] .account-state-pill {
  border-color: rgba(239, 244, 255, 0.08);
  background: linear-gradient(180deg, rgba(30, 34, 42, 0.92), rgba(18, 21, 28, 0.92));
  color: var(--text-muted);
}

html[data-theme="dark"] .account-state-pill.signed-in {
  border-color: rgba(72, 211, 129, 0.22);
  background: linear-gradient(180deg, rgba(17, 45, 31, 0.94), rgba(12, 30, 23, 0.9));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(13, 138, 79, 0.1);
  border: 1px solid rgba(13, 138, 79, 0.24);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.soldout {
  color: var(--warn);
  background: rgba(180, 95, 6, 0.12);
  border-color: rgba(180, 95, 6, 0.26);
}

.ghost-button,
.primary-button,
.account-state-pill,
.qty-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, opacity 0.2s ease;
}

.ghost-button {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
}

.ghost-button {
  padding: 10px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ghost-button[aria-current="page"] {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--surface-strong) 90%, var(--accent) 10%);
}

.ghost-button.connected {
  background: rgba(13, 138, 79, 0.12);
  border-color: rgba(13, 138, 79, 0.22);
  color: var(--success);
}

.ghost-button:hover:not(:disabled),
.primary-button:hover:not(:disabled),
.account-state-pill:hover:not(:disabled),
.language-pill:hover:not(:disabled),
.theme-toggle:hover:not(:disabled),
.qty-chip:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-button {
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
}

.primary-button:disabled,
.qty-chip:disabled,
.account-state-pill:disabled,
.theme-toggle:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.language-pill:focus-within,
.language-select:focus,
.ghost-button:focus,
.account-state-pill:focus,
.theme-toggle:focus,
.primary-button:focus,
input[type="number"]:focus,
.field-label input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 26%, transparent);
  outline-offset: 0;
}

.site-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: grid;
  gap: 16px;
}

.hero,
.panel {
  border: 1px solid var(--border);
  border-radius: 30px;
  backdrop-filter: blur(18px);
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  box-shadow: var(--shadow-main);
}

.eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 650;
}

.hero-note {
  margin: 18px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  font-size: 14px;
  font-weight: 700;
}

.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.hero-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 14px;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.progress-block {
  margin-top: 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 14px 16px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.progress-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.progress-track {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.progress-track.compact {
  margin-top: 0;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0071e3, #58a5ff);
  transition: width 0.34s ease;
}

.hero-media {
  display: grid;
  gap: 12px;
}

.official-material {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 18, 25, 0.12);
}

html[data-theme="dark"] .official-material {
  background: #0f1116;
}

.official-material img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.material-credit {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.material-credit a {
  color: var(--accent);
  text-decoration: none;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.account-cta {
  display: grid;
}

.account-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-cta-panel h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.account-cta-actions {
  min-width: 280px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.account-page-main {
  display: grid;
  gap: 16px;
}

.account-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.account-page-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.account-page-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.account-round-panel {
  display: grid;
  gap: 18px;
}

.account-round-head {
  align-items: flex-start;
}

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

.account-public-meta,
.account-draw-result {
  margin-top: 0;
}

.account-shell {
  display: grid;
  gap: 16px;
}

.account-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-shell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.account-shell-head h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.account-identity {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.account-identity strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.account-identity p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.16), rgba(17, 17, 17, 0.08));
  color: var(--text);
  font-weight: 700;
}

.account-gate-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-gate-actions {
  min-width: 260px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.auth-email-field {
  min-width: 280px;
  margin: 0;
}

.social-button {
  min-width: 220px;
}

.social-disabled {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.account-profile-panel {
  display: grid;
  gap: 16px;
}

.account-data-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.account-panel-head {
  align-items: center;
}

.account-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.account-shipping-form {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0.48);
  backdrop-filter: blur(18px);
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  display: grid;
  gap: 18px;
  overflow: hidden;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(255, 255, 255, 0.88), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 98%, transparent), color-mix(in srgb, var(--surface) 86%, transparent));
  box-shadow: 0 30px 100px rgba(15, 18, 25, 0.22);
}

.auth-modal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.auth-modal-visual {
  position: relative;
  min-height: 220px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(120px 120px at 24% 26%, rgba(88, 154, 255, 0.36), transparent 70%),
    radial-gradient(180px 180px at 78% 22%, rgba(255, 255, 255, 0.62), transparent 68%),
    linear-gradient(160deg, rgba(247, 248, 251, 0.95), rgba(229, 234, 241, 0.78));
  overflow: hidden;
}

.auth-modal-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
}

.auth-modal-orb-primary {
  width: 172px;
  height: 172px;
  top: -18px;
  right: -18px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(120, 176, 255, 0.88) 40%, rgba(33, 101, 190, 0.28) 78%);
}

.auth-modal-orb-secondary {
  width: 132px;
  height: 132px;
  bottom: -26px;
  left: -18px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(189, 205, 228, 0.76) 55%, rgba(100, 112, 128, 0.12) 78%);
}

.auth-modal-glass {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  display: grid;
  gap: 6px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(245, 247, 250, 0.26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 18px 38px rgba(15, 18, 25, 0.08);
  backdrop-filter: blur(20px);
}

.auth-modal-glass strong {
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.auth-modal-glass span:last-child {
  color: rgba(17, 17, 17, 0.62);
  font-size: 13px;
}

.auth-modal-glass-label {
  color: rgba(17, 17, 17, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-modal-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.auth-modal-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-modal-chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .auth-modal-visual {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120px 120px at 24% 26%, rgba(10, 132, 255, 0.28), transparent 70%),
    radial-gradient(180px 180px at 78% 22%, rgba(255, 255, 255, 0.18), transparent 68%),
    linear-gradient(160deg, rgba(30, 35, 44, 0.95), rgba(18, 22, 30, 0.88));
}

html[data-theme="dark"] .auth-modal-glass {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(26, 31, 39, 0.68), rgba(13, 16, 22, 0.36));
}

html[data-theme="dark"] .auth-modal-glass-label,
html[data-theme="dark"] .auth-modal-glass span:last-child,
html[data-theme="dark"] .auth-modal-chip {
  color: var(--text-muted);
}

html[data-theme="dark"] .auth-modal-chip {
  border-color: rgba(239, 244, 255, 0.08);
  background: rgba(22, 26, 33, 0.72);
}

.auth-modal-field {
  width: 100%;
}

.auth-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-modal-close {
  justify-self: end;
  min-width: 0;
}

.panel {
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.panel h2,
.panel h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.panel h2 {
  font-size: 1.5rem;
}

.panel h3 {
  font-size: 1rem;
}

.panel-copy {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.purchase-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.purchase-form > label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.control-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

input[type="number"] {
  width: 140px;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

.quick-qty {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qty-chip {
  padding: 8px 14px;
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.qty-chip.active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
}

.hint {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.hint.secondary {
  color: var(--text-muted);
}

.shipping-form {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.shipping-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.shipping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.field-label.full {
  grid-column: 1 / -1;
}

.field-label input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

.status-section {
  display: grid;
  gap: 10px;
}

.ticket-list,
.history-list {
  display: grid;
  gap: 10px;
}

.ticket-item,
.history-item {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 12px 14px;
}

.ticket-item strong,
.history-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.ticket-item div,
.history-item div {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.empty {
  color: var(--text-muted);
  padding: 2px 0;
}

.status-panel {
  display: grid;
  gap: 16px;
}

.draw-result {
  min-height: 96px;
  border-radius: 20px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-strong);
  padding: 14px 16px;
  line-height: 1.5;
}

.draw-result p {
  margin: 0;
}

.draw-result.win {
  border-style: solid;
  border-color: rgba(13, 138, 79, 0.26);
  background: rgba(13, 138, 79, 0.1);
}

.draw-result.alert {
  border-style: solid;
  border-color: rgba(180, 95, 6, 0.24);
  background: rgba(180, 95, 6, 0.1);
}

.status-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.status-meta article {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 14px;
}

.status-meta span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.delivery-progress {
  display: grid;
  gap: 10px;
}

#deliveryProgressText:empty,
#deliveryTimeline:empty {
  display: none;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

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

.reveal {
  animation: reveal-up 0.6s cubic-bezier(0.19, 0.78, 0.28, 1) both;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.05s;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (max-width: 980px) {
  .hero,
  .control-grid,
  .account-grid,
  .account-page-hero {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .shipping-grid,
  .status-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .panel {
    border-radius: 22px;
  }

  .site-header,
  .hero,
  .panel {
    padding: 18px;
  }

  .site-header {
    margin-top: 12px;
  }

  .header-actions,
  .account-shell-head,
  .account-shell-actions,
  .account-gate-panel,
  .account-cta-panel,
  .panel-head,
  .account-panel-head,
  .account-panel-actions,
  .auth-modal-actions,
  .control-row,
  .progress-header {
    flex-direction: column;
    align-items: stretch;
  }

  .status-pill,
  .language-pill,
  .language-select,
  .theme-toggle,
  .ghost-button,
  .account-state-pill,
  .primary-button,
  input[type="number"] {
    width: 100%;
  }

  .language-pill {
    justify-content: space-between;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero-stats,
  .shipping-grid,
  .status-meta {
    grid-template-columns: 1fr;
  }

  .auth-email-field,
  .social-button {
    min-width: 0;
    width: 100%;
  }

  .auth-modal-hero {
    grid-template-columns: 1fr;
  }

  .auth-modal-visual {
    min-height: 180px;
  }

  .account-cta-actions {
    min-width: 0;
    width: 100%;
  }

  .account-gate-actions {
    min-width: 0;
    width: 100%;
  }

  .account-identity {
    min-width: 0;
    width: 100%;
  }

  .auth-modal {
    padding: 14px;
  }

  .official-material img {
    aspect-ratio: 16 / 11;
  }

  .site-footer {
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
