:root {
  --bg: #070910;
  --bg-soft: #0d111b;
  --panel: rgba(17, 22, 34, 0.88);
  --panel-strong: #111724;
  --text: #f7f9ff;
  --muted: #a9b2c6;
  --line: rgba(255, 255, 255, 0.1);
  --red: #ff355d;
  --red-dark: #c91e42;
  --cyan: #6fe9ff;
  --cyan-dark: #20b6da;
  --violet: #8e78ff;
  --yellow: #ffd76f;
  --green: #56e1a4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --radius-small: 16px;
  --max: 1180px;
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 53, 93, 0.13), transparent 29%),
    radial-gradient(circle at 82% 18%, rgba(111, 233, 255, 0.1), transparent 27%),
    linear-gradient(180deg, #070910 0%, #090c14 52%, #070910 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 99;
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  pointer-events: none;
}
.ambient-one { background: var(--red); top: 12%; left: -240px; }
.ambient-two { background: var(--cyan); top: 46%; right: -280px; }

.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  background: linear-gradient(90deg, #3f1730, #211c49, #143343);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #f9edff;
  font-size: 13px;
  letter-spacing: .01em;
  text-align: center;
}
.preview-banner[hidden] { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 9, 16, 0.74);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-size: 19px; letter-spacing: .16em; }
.brand small { margin-top: 5px; color: var(--muted); font-weight: 800; letter-spacing: .19em; font-size: 10px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 30px;
}
.brand-mark i {
  position: relative;
  display: block;
  width: 20px;
  height: 30px;
  border: 2px solid;
}
.brand-mark i:first-child { border-color: var(--red); border-radius: 12px 5px 5px 12px; }
.brand-mark i:last-child { border-color: var(--cyan); border-radius: 5px 12px 12px 5px; }
.brand-mark i::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  top: 8px;
  left: 6px;
}
.brand-mark i:last-child::after { top: 15px; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-facebook::after { content: " ↗"; color: var(--cyan); }

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.button {
  appearance: none;
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 42px; padding: 10px 17px; font-size: 13px; }
.button-wide { width: 100%; }
.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--red), #ff5c87 55%, #ff785e);
  box-shadow: 0 12px 28px rgba(255, 53, 93, .24);
}
.button-primary:hover { box-shadow: 0 16px 35px rgba(255, 53, 93, .32); }
.button-secondary {
  color: var(--text);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
}
.button-secondary:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.23); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 60px;
  padding-top: 88px;
  padding-bottom: 94px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8dfef;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.eyebrow span { width: 26px; height: 2px; background: linear-gradient(90deg, var(--red), var(--cyan)); }

.hero h1 {
  margin: 20px 0 24px;
  max-width: 680px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 em {
  display: inline-block;
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, #fff 15%, var(--cyan) 48%, #ae9cff 78%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-description { max-width: 630px; margin: 0 0 30px; color: var(--muted); font-size: 18px; }

.hero-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 12px;
  margin: 30px 0;
}
.hero-prices article {
  position: relative;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.hero-prices article > span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-prices strong { font-size: 28px; letter-spacing: -.03em; }
.hero-prices small { display: block; color: var(--muted); font-size: 11px; }
.hero-prices .featured-price { border-color: rgba(111,233,255,.35); background: linear-gradient(145deg, rgba(111,233,255,.08), rgba(142,120,255,.06)); }
.hero-prices .featured-price::before { content: "ONLINE"; position: absolute; top: -9px; right: 12px; padding: 3px 8px; border-radius: 99px; background: var(--cyan); color: #061118; font-weight: 950; font-size: 8px; letter-spacing: .13em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.micro-trust { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 32px; color: var(--muted); font-size: 12px; font-weight: 800; }
.micro-trust b { color: var(--cyan); margin-right: 5px; }

.hero-visual { position: relative; min-height: 530px; display: flex; align-items: center; justify-content: center; }
.console-glow {
  position: absolute;
  width: 80%;
  height: 64%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,120,255,.36), rgba(111,233,255,.16) 42%, transparent 72%);
  filter: blur(35px);
  transform: rotate(-8deg);
}
.hero-device-wrap {
  position: relative;
  z-index: 2;
  width: min(88%, 560px);
  transform: rotate(-5deg);
  filter: drop-shadow(0 35px 45px rgba(0,0,0,.55));
}
.hero-device {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.console {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 88px minmax(250px, 345px) 88px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 35px 45px rgba(0,0,0,.55));
}
.screen {
  position: relative;
  aspect-ratio: 1.6;
  min-height: 260px;
  overflow: hidden;
  border: 10px solid #161a23;
  border-radius: 12px;
  background:
    linear-gradient(140deg, rgba(255,255,255,.12), transparent 29%),
    radial-gradient(circle at 68% 28%, rgba(111,233,255,.32), transparent 30%),
    radial-gradient(circle at 28% 74%, rgba(255,53,93,.28), transparent 31%),
    linear-gradient(145deg, #151c2e, #080b14 68%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.screen-topline { display: flex; justify-content: space-between; padding: 13px 16px; color: rgba(255,255,255,.62); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.screen-content { height: calc(100% - 38px); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: .8; }
.screen-content small { color: var(--cyan); letter-spacing: .25em; font-weight: 900; font-size: 10px; }
.screen-content strong { margin-top: 15px; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.06em; }
.screen-content b { position: absolute; right: 20%; top: 43%; font-size: 80px; color: transparent; -webkit-text-stroke: 2px var(--red); transform: rotate(7deg); opacity: .9; }
.screen-ticket { margin-top: 27px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 99px; color: #e4e9f7; background: rgba(0,0,0,.2); font-size: 9px; letter-spacing: .14em; }
.screen-shine { position: absolute; inset: -50% auto auto -30%; width: 60%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); transform: rotate(22deg); }
.joycon { position: relative; min-height: 260px; background: linear-gradient(180deg, #252a36, #141821); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 0 18px rgba(255,255,255,.04); }
.joycon-left { border-radius: 45px 12px 12px 45px; border-left: 5px solid var(--red); }
.joycon-right { border-radius: 12px 45px 45px 12px; border-right: 5px solid var(--cyan); }
.stick { position: absolute; top: 52px; left: 25px; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #555e70, #202531 55%, #0d1017 57%); border: 2px solid #343b49; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.stick.second { top: 132px; }
.dpad { position: absolute; left: 24px; top: 125px; width: 40px; height: 40px; }
.dpad i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #090c12; border: 1px solid #414858; }
.dpad i:nth-child(1){ top:0; left:14px}.dpad i:nth-child(2){right:0;top:14px}.dpad i:nth-child(3){bottom:0;left:14px}.dpad i:nth-child(4){left:0;top:14px}
.button-cluster { position: absolute; left: 23px; top: 50px; width: 42px; height: 42px; }
.button-cluster i { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #0a0d13; border: 1px solid #414858; }
.button-cluster i:nth-child(1){top:0;left:14px}.button-cluster i:nth-child(2){right:0;top:14px}.button-cluster i:nth-child(3){bottom:0;left:14px}.button-cluster i:nth-child(4){left:0;top:14px}
.mini-button { position: absolute; bottom: 32px; left: 36px; width: 16px; height: 8px; border-radius: 4px; background: #0b0e15; border: 1px solid #3c4350; }

.floating-card {
  position: absolute;
  z-index: 3;
  min-width: 155px;
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(15,20,31,.8);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.floating-card span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.floating-card strong { display: block; margin: 2px 0; font-size: 20px; }
.floating-card small { color: var(--muted); font-size: 10px; }
.date-card { right: 2%; top: 8%; transform: rotate(4deg); }
.ticket-card { left: 0; bottom: 10%; transform: rotate(-5deg); }

.countdown-strip {
  width: min(1260px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
  padding: 24px 35px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(100deg, rgba(255,53,93,.1), rgba(17,22,34,.9) 38%, rgba(111,233,255,.08));
  box-shadow: var(--shadow);
}
.count-label { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 900; }
.countdown { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.countdown span { display: flex; align-items: baseline; gap: 5px; }
.countdown b { font-size: 30px; line-height: 1; }
.countdown small { color: var(--muted); font-size: 10px; }
.countdown i { color: var(--red); font-style: normal; font-weight: 900; }
.countdown-strip p { margin: 0; padding-left: 36px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.countdown-strip p strong { color: var(--text); font-size: 16px; }
.facebook-pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 17px; border-radius: 99px; border: 1px solid rgba(111,233,255,.27); color: var(--cyan); background: rgba(111,233,255,.06); text-decoration: none; font-size: 12px; font-weight: 900; white-space: nowrap; }
.facebook-pill:hover { background: rgba(111,233,255,.11); }

.ticket-section, .steps-section, .results-section, .faq-section, .terms-qr-section { padding-top: 125px; padding-bottom: 30px; }
.section-heading { display: grid; grid-template-columns: 1.1fr .75fr; align-items: end; gap: 60px; margin-bottom: 45px; }
.section-heading.compact { grid-template-columns: 1fr; }
.section-heading h2, .mechanics h2, .result-card h2, .terms-card h2, .legal-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }

.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.ticket-browser, .order-card, .steps-grid article, .mechanics-card, .result-card, .terms-card, .faq-list details, .legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(20,26,40,.9), rgba(11,15,24,.92));
  box-shadow: var(--shadow);
}
.ticket-browser { padding: 24px; border-radius: var(--radius); min-width: 0; }
.ticket-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.search-box label { display: block; color: var(--muted); font-size: 11px; font-weight: 800; margin-bottom: 7px; }
.search-box > div { display: flex; }
.search-box input { width: 145px; min-height: 42px; padding: 9px 12px; color: var(--text); background: #090d15; border: 1px solid var(--line); border-radius: 11px 0 0 11px; outline: none; }
.search-box input:focus { border-color: var(--cyan); }
.search-box button { padding: 0 14px; border: 0; border-radius: 0 11px 11px 0; background: var(--cyan); color: #071018; font-weight: 900; cursor: pointer; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); border-radius: 99px; padding: 8px 12px; font-size: 11px; font-weight: 900; cursor: pointer; }
.filter.active { color: #081016; background: var(--cyan); border-color: var(--cyan); }
.ticket-legend { display: flex; flex-wrap: wrap; gap: 15px; margin: 18px 0 16px; color: var(--muted); font-size: 10px; font-weight: 750; }
.ticket-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-legend i { width: 9px; height: 9px; border-radius: 3px; }
.available-dot { background: #151c2a; border: 1px solid #49536a; }
.selected-dot { background: var(--red); }
.reserved-dot { background: var(--yellow); }
.sold-dot { background: #4e5667; }
.ticket-grid { display: grid; grid-template-columns: repeat(10, minmax(42px, 1fr)); gap: 7px; max-height: 620px; overflow: auto; padding: 3px 5px 4px 1px; scrollbar-width: thin; scrollbar-color: #3c465a transparent; }
.ticket-number { aspect-ratio: 1; min-width: 0; border: 1px solid #263044; border-radius: 10px; color: #dfe5f4; background: #0e1420; font-size: 11px; font-weight: 850; cursor: pointer; transition: .16s ease; }
.ticket-number:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--cyan); color: white; background: #152033; }
.ticket-number.selected { color: white; background: linear-gradient(135deg, var(--red-dark), var(--red)); border-color: #ff7793; box-shadow: 0 6px 16px rgba(255,53,93,.2); }
.ticket-number.reserved { color: #17120a; background: var(--yellow); border-color: #ffe8a7; cursor: not-allowed; }
.ticket-number.sold { color: #727c90; background: #171b24; border-color: #242a37; text-decoration: line-through; cursor: not-allowed; }
.ticket-number.hidden-ticket { display: none; }
.ticket-number.pulse { animation: pulseTicket 1.1s ease; }
@keyframes pulseTicket { 0%,100%{box-shadow:none} 35%{box-shadow:0 0 0 5px rgba(111,233,255,.22); border-color:var(--cyan)} }
.empty-state { padding: 35px; text-align: center; color: var(--muted); }

.order-card { position: sticky; top: 112px; border-radius: var(--radius); padding: 24px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.order-card-head button { border: 0; background: none; color: var(--cyan); font-size: 11px; cursor: pointer; }
.selection-count { margin: 25px 0 18px; display: flex; align-items: end; gap: 10px; }
.selection-count strong { font-size: 48px; line-height: .9; letter-spacing: -.06em; }
.selection-count span { max-width: 90px; color: var(--muted); font-size: 12px; line-height: 1.2; }
.selected-numbers { min-height: 82px; display: flex; flex-wrap: wrap; align-content: start; gap: 6px; padding: 13px; border-radius: 14px; background: #090d15; border: 1px solid var(--line); }
.selected-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 39px; height: 28px; border-radius: 8px; background: rgba(255,53,93,.12); border: 1px solid rgba(255,53,93,.3); color: #ff9caf; font-size: 10px; font-weight: 900; }
.nothing-selected { align-self: center; color: #687287; font-size: 11px; }
.price-breakdown { margin: 20px 0; }
.price-breakdown > div { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: 12px; }
.price-breakdown strong { color: var(--text); }
.price-breakdown .total-row { margin-top: 9px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.price-breakdown .total-row strong { font-size: 20px; }
.order-note { color: var(--muted); font-size: 10px; line-height: 1.5; }
.order-note a { color: var(--cyan); }
.secure-note { margin-top: 15px; padding: 11px; border-radius: 10px; color: #b6c0d2; background: rgba(86,225,164,.06); border: 1px solid rgba(86,225,164,.17); font-size: 10px; }
.secure-note span { color: var(--green); font-weight: 900; margin-right: 4px; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps-grid article { position: relative; min-height: 245px; padding: 25px; border-radius: 20px; overflow: hidden; }
.steps-grid article > b { position: absolute; right: 15px; top: 5px; color: rgba(255,255,255,.04); font-size: 70px; letter-spacing: -.07em; }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #071018; background: linear-gradient(135deg, var(--cyan), #a5f2ff); font-size: 20px; font-weight: 950; }
.steps-grid article:nth-child(even) .step-icon { background: linear-gradient(135deg, var(--red), #ff8caa); color: white; }
.steps-grid h3 { margin: 25px 0 8px; font-size: 19px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.mechanics { padding-top: 100px; }
.mechanics-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 45px; align-items: center; padding: clamp(28px, 5vw, 68px); border-radius: 30px; overflow: hidden; }
.mechanics-copy p { max-width: 680px; color: var(--muted); font-size: 16px; }
.mechanics-copy ul { padding: 0; margin: 26px 0 0; list-style: none; }
.mechanics-copy li { position: relative; padding: 8px 0 8px 28px; color: #dce3f1; font-size: 13px; }
.mechanics-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.tombola { position: relative; min-height: 390px; display: flex; align-items: center; justify-content: center; }
.tombola-bowl { position: relative; width: 300px; height: 270px; border-radius: 48% 48% 42% 42%; border: 4px solid rgba(255,255,255,.36); background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.02)); box-shadow: inset 20px 0 40px rgba(111,233,255,.08), inset -20px 0 40px rgba(255,53,93,.08), 0 25px 40px rgba(0,0,0,.33); overflow: hidden; }
.tombola-bowl::after { content:""; position:absolute; inset:12px; border-radius:inherit; border:1px solid rgba(255,255,255,.1); }
.tombola-bowl span { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)); display: grid; place-items: center; width: 58px; height: 40px; border-radius: 8px; background: #f8f3e7; color: #111; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 900; font-size: 13px; box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.tombola-lid { position: absolute; z-index: 2; top: 34px; width: 220px; height: 36px; border-radius: 20px 20px 8px 8px; background: linear-gradient(180deg, #313947, #151a23); border: 1px solid rgba(255,255,255,.16); }
.tombola-base { position: absolute; bottom: 27px; width: 220px; height: 26px; border-radius: 8px 8px 18px 18px; background: #171c26; border: 1px solid rgba(255,255,255,.1); }

.result-card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 58px); border-radius: 28px; background: radial-gradient(circle at 85% 45%, rgba(255,53,93,.18), transparent 30%), linear-gradient(145deg, #151b29, #0b0f18); }
.result-card p { max-width: 650px; color: var(--muted); }
.winning-number { width: 240px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 26px; background: linear-gradient(145deg, rgba(255,53,93,.12), rgba(111,233,255,.07)); border: 1px solid rgba(255,255,255,.15); text-align: center; }
.winning-number small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.winning-number strong { margin: 12px 0 6px; font-size: 70px; line-height: 1; letter-spacing: -.07em; }
.winning-number span { color: var(--muted); font-size: 11px; }

.terms-card { display: grid; grid-template-columns: 1fr 260px; gap: 50px; align-items: center; padding: clamp(28px, 5vw, 58px); border-radius: 28px; }
.terms-card p { max-width: 620px; color: var(--muted); }
.terms-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.qr-wrap { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: 20px; background: #fff; color: #111; }
.qr-box { width: 210px; height: 210px; display: grid; place-items: center; }
.qr-box canvas { width: 100%; height: 100%; }
.qr-wrap button { border: 0; background: #111827; color: white; border-radius: 9px; padding: 9px 13px; font-size: 11px; font-weight: 850; cursor: pointer; }
.qr-wrap small { max-width: 220px; text-align: center; color: #596174; font-size: 9px; word-break: break-all; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 16px; overflow: hidden; }
.faq-list summary { list-style: none; padding: 20px 22px; cursor: pointer; font-weight: 850; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary::after { content:"+"; float:right; color:var(--cyan); font-size:21px; }
.faq-list details[open] summary::after { content:"−"; }
.faq-list details p { margin: 0; padding: 0 22px 22px; max-width: 900px; color: var(--muted); font-size: 13px; }
.faq-list a { color: var(--cyan); }

.site-footer { width: min(1260px, calc(100% - 28px)); margin: 120px auto 20px; padding: 35px; border-radius: 26px; background: #090c13; border: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding-bottom: 30px; }
.footer-top p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-bottom b { color: #dfe5f4; }
.footer-bottom nav { margin-left: auto; display: flex; gap: 18px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
.trademark-note { margin: 22px 0 0; color: #616b7e; font-size: 9px; }

.checkout-modal { width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 30px); border: 1px solid rgba(255,255,255,.13); border-radius: 24px; color: var(--text); background: #0d121d; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.checkout-modal::backdrop { background: rgba(3,5,9,.78); backdrop-filter: blur(7px); }
.modal-shell { position: relative; padding: 30px; }
.modal-shell h2 { margin: 13px 0 6px; font-size: 34px; }
.modal-close { position: absolute; right: 18px; top: 15px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 24px; cursor:pointer; }
.modal-numbers { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input { min-height: 44px; padding: 10px 12px; color: var(--text); border: 1px solid var(--line); border-radius: 11px; background: #080c13; outline:none; }
.form-grid input:focus { border-color: var(--cyan); }
.terms-check { display: flex; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 11px; }
.terms-check a { color: var(--cyan); }
.modal-total { display: flex; justify-content: space-between; align-items: center; margin: 17px 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-total strong { font-size: 24px; }
.checkout-notice { margin-bottom: 15px; padding: 12px; border-radius: 12px; color: #ffe2a6; background: rgba(255,215,111,.08); border: 1px solid rgba(255,215,111,.2); font-size: 11px; }
.toast { position: fixed; z-index: 110; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity:0; pointer-events:none; padding: 12px 18px; border-radius: 99px; color:#fff; background:#1b2332; border:1px solid rgba(255,255,255,.14); box-shadow:var(--shadow); font-size:12px; font-weight:800; transition:.25s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }

/* Legal and QR pages */
.subpage-header { position: static; }
.legal-main { width: min(920px, calc(100% - 36px)); margin: 0 auto; padding: 70px 0 60px; }
.legal-hero { padding: 42px 0; }
.legal-hero p { max-width: 720px; color: var(--muted); font-size: 16px; }
.legal-status { display:inline-flex; margin-top:15px; padding:8px 12px; border-radius:99px; color:#ffe6ac; background:rgba(255,215,111,.08); border:1px solid rgba(255,215,111,.24); font-size:11px; font-weight:850; }
.legal-card { padding: clamp(24px, 4vw, 44px); border-radius: 24px; }
.legal-card h2 { margin: 34px 0 10px; font-size: 23px; }
.legal-card h2:first-child { margin-top:0; }
.legal-card p, .legal-card li { color: #bcc5d6; font-size: 14px; }
.legal-card strong { color: var(--text); }
.legal-card ol, .legal-card ul { padding-left: 21px; }
.legal-card li { margin: 8px 0; }
.legal-warning { margin: 24px 0; padding: 16px 18px; border-left: 3px solid var(--yellow); border-radius: 0 12px 12px 0; background: rgba(255,215,111,.06); color:#e7ddc7; font-size:13px; }
.legal-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.qr-generator { display:grid; grid-template-columns:1fr 280px; gap:34px; align-items:start; }
.qr-controls label { display:grid; gap:7px; margin-bottom:14px; color:var(--muted); font-size:12px; font-weight:800; }
.qr-controls input { min-height:48px; padding:11px 13px; border:1px solid var(--line); border-radius:12px; background:#080c13; color:var(--text); outline:none; }
.qr-controls input:focus { border-color:var(--cyan); }
.qr-preview { padding:20px; border-radius:18px; background:#fff; color:#111; text-align:center; }
.qr-preview canvas { width:240px; height:240px; max-width:100%; }
.qr-preview small { display:block; margin-top:10px; word-break:break-all; color:#596174; font-size:9px; }

.reveal { animation: reveal .75s both; }
.hero-visual.reveal { animation-delay:.12s; }
@keyframes reveal { from{opacity:0; transform:translateY(18px)} to{opacity:1; transform:translateY(0)} }

@media (max-width: 1050px) {
  .nav-links { display:none; }
  .hero { grid-template-columns: 1fr; padding-top:65px; }
  .hero-copy { text-align:center; }
  .hero-copy .eyebrow, .hero-actions, .micro-trust { justify-content:center; }
  .hero-description { margin-inline:auto; }
  .hero-prices { justify-content:center; }
  .hero-visual { min-height:480px; }
  .ticket-layout { grid-template-columns:1fr; }
  .order-card { position:static; }
  .steps-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 800px) {
  :root { --header-h:70px; }
  .site-header { padding:12px 18px; }
  .site-header > .button { display:none; }
  .hero { min-height:auto; gap:20px; padding-top:56px; }
  .hero h1 { font-size:clamp(43px,13vw,68px); }
  .hero-visual { transform:scale(.88); margin-inline:-50px; }
  .countdown-strip { grid-template-columns:1fr; gap:17px; text-align:center; }
  .countdown-strip > div, .countdown { justify-content:center; }
  .countdown-strip p { padding-left:0; padding-top:16px; border-left:0; border-top:1px solid var(--line); }
  .section-heading { grid-template-columns:1fr; gap:18px; }
  .ticket-toolbar { align-items:stretch; flex-direction:column; }
  .search-box input { width:100%; }
  .search-box > div { width:100%; }
  .ticket-grid { grid-template-columns:repeat(8, minmax(36px,1fr)); }
  .mechanics-card, .result-card, .terms-card, .qr-generator { grid-template-columns:1fr; }
  .tombola { min-height:330px; }
  .winning-number { width:100%; }
  .qr-wrap { width:min(280px,100%); justify-self:center; }
  .footer-top { grid-template-columns:1fr; text-align:center; justify-items:center; }
  .footer-bottom { justify-content:center; text-align:center; }
  .footer-bottom nav { width:100%; margin-left:0; justify-content:center; }
}

@media (max-width: 560px) {
  .section-shell { width:min(100% - 24px, var(--max)); }
  .preview-banner { font-size:11px; }
  .brand strong { font-size:16px; }
  .hero { padding-top:42px; padding-bottom:60px; }
  .hero-description { font-size:15px; }
  .hero-prices { grid-template-columns:1fr 1fr; }
  .hero-prices strong { font-size:23px; }
  .hero-visual { min-height:375px; transform:scale(.7); margin:-38px -110px; }
  .floating-card { min-width:145px; }
  .countdown-strip { width:calc(100% - 16px); padding:21px 16px; }
  .ticket-section, .steps-section, .results-section, .faq-section, .terms-qr-section { padding-top:85px; }
  .ticket-browser { padding:15px; }
  .ticket-grid { grid-template-columns:repeat(6, minmax(38px,1fr)); gap:6px; max-height:540px; }
  .ticket-number { border-radius:8px; }
  .steps-grid { grid-template-columns:1fr; }
  .mechanics-card, .result-card, .terms-card { padding:24px; }
  .tombola { transform:scale(.84); margin:-30px; }
  .terms-actions { flex-direction:column; }
  .terms-actions .button { width:100%; }
  .site-footer { width:calc(100% - 16px); margin-top:85px; padding:25px 18px; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .full { grid-column:auto; }
  .modal-shell { padding:24px 18px; }
}

@media print {
  body { background:#fff; color:#111; }
  .site-header,.site-footer,.preview-banner,.legal-actions { display:none !important; }
  .legal-main { width:100%; padding:0; }
  .legal-card { box-shadow:none; border:0; background:#fff; }
  .legal-card p,.legal-card li { color:#222; }
}

#winnerVideo[aria-disabled="true"]{opacity:.48;cursor:not-allowed;pointer-events:none;box-shadow:none}
.winner-name{font-weight:800;font-size:15px;line-height:1.4;overflow-wrap:anywhere;max-width:100%;margin-top:5px}
.hero-copy .eyebrow #heroCount{display:inline;background:none;width:auto;height:auto;border-radius:0}
@media(max-width:480px){.hero-visual{margin-inline:0;transform:none;min-height:260px;margin-top:5px;margin-bottom:5px}.hero-device-wrap{width:95%}.floating-card{min-width:110px;padding:10px;}.floating-card strong{font-size:15px}.date-card{top:0;right:0}.ticket-card{bottom:0;left:0}.hero-copy .eyebrow{font-size:10px}.result-card .hero-actions{flex-direction:column;align-items:stretch}.result-card .winning-number{min-width:0}.admin input{max-width:100%}}

/* V4: inventario completo, búsqueda y estado de conexión */
.inventory-notice,.search-result{font-size:13px;color:var(--muted);margin:10px 0;line-height:1.5;overflow-wrap:anywhere}
.inventory-notice.offline{color:#ffce86}
.search-result{border:1px solid rgba(111,233,255,.3);border-radius:10px;padding:10px 12px;color:var(--cyan);font-weight:800;background:rgba(111,233,255,.05)}
.search-result[hidden],.empty-state[hidden]{display:none!important}
.ticket-number.unknown{background:#171b24;color:#8994a8;cursor:not-allowed;border-style:dashed}
.ticket-number.found{outline:2px solid var(--cyan);outline-offset:-2px;box-shadow:0 0 0 2px rgba(111,233,255,.22);}
.ticket-grid:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
@media(max-width:480px){.ticket-grid{grid-template-columns:repeat(5,minmax(0,1fr));}.search-box input{font-size:16px;min-width:0;}.ticket-number{min-height:38px;}}
