/*
 * gracz.pl — homepage, coded 1:1 from the approved reference layout
 * (LAYOUT_REFERENCYJNY_APPROVED.png, 1122 px wide).
 *
 * Desktop (>= 1180px): every measurement is "reference px × --u", where
 * --u = viewport / 1122, so the page keeps the exact proportions of the
 * approved layout at 1366, 1440, 1600 and 1920 px.
 * Tablet / mobile: --u is 1px and the layout reflows (hamburger, stacked
 * panels, 2 / 1 column cards).
 *
 * Self-hosted fonts: Open Sans, Montserrat, Playfair Display (SIL OFL).
 */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/opensans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/opensans-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: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-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: "Playfair Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-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 {
  --u: 1px;
  --bg: #050605;
  --gold: #f0bf55;
  --gold-hi: #ffe3a0;
  --gold-lo: #c88a25;
  --gold-line: #e3ae4c;
  --gold-glow: rgba(255, 180, 70, .55);
  --red: #f0162f;
  --green: #35e08f;
  --text: #f3f1ec;
  --muted: #bdbab3;
  --sans: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Montserrat", "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --gold-grad: linear-gradient(180deg, #ffe7a4 0%, #f5c55b 48%, #d99a2e 100%);
}

@media (min-width: 1180px) {
  :root { --u: min(calc(100vw / 1122), 1.5px); }
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}
main:focus { outline: none; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: #140d02;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 1px solid rgba(255,255,255,.34);
}

/* Forced line breaks that reproduce the reference layout on desktop only. */
.br-d { display: none; }
@media (min-width: 1180px) { .br-d { display: inline; } }

/* ---------- Logo ---------- */

.logo,
.hero-logo,
.brand-word {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.logo span,
.hero-logo span,
.brand-word span { color: var(--red); }
.logo {
  display: inline-block;
  font-size: calc(33 * var(--u));
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: box-shadow .2s, filter .2s, background-color .2s, transform .2s;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--outline {
  border: calc(1.6 * var(--u)) solid var(--gold-line);
  background: rgba(8, 8, 6, .55);
  color: #f6ecd6;
  box-shadow: 0 0 calc(6 * var(--u)) rgba(255, 180, 70, .25), inset 0 0 calc(6 * var(--u)) rgba(255, 180, 70, .12);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(240, 191, 85, .12);
  box-shadow: 0 0 calc(14 * var(--u)) var(--gold-glow), inset 0 0 calc(8 * var(--u)) rgba(255, 180, 70, .2);
}

.btn--gold {
  border: 0;
  background: var(--gold-grad);
  color: #1d1305;
  box-shadow: 0 0 calc(10 * var(--u)) rgba(255, 184, 70, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  filter: brightness(1.07);
  box-shadow: 0 0 calc(18 * var(--u)) rgba(255, 184, 70, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.icon-btn svg { width: 50%; height: 50%; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  height: calc(64 * var(--u));
  background: linear-gradient(180deg, #0d0e0d 0%, #070807 100%);
  border-bottom: 1px solid rgba(227, 174, 76, .32);
}

.header-inner {
  display: flex;
  align-items: center;
  width: calc(995 * var(--u));
  height: 100%;
  margin: 0 auto;
}

.site-header .logo { margin-top: calc(-3 * var(--u)); }

.burger,
.search-btn--mobile { display: none; }
.burger .burger-close { display: none; }

.menu-panel {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}

.main-nav { margin-left: calc(38 * var(--u)); }

.nav-list {
  display: flex;
  align-items: center;
  gap: calc(24 * var(--u));
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: calc(64 * var(--u));
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: calc(12.5 * var(--u));
  font-weight: 500;
  letter-spacing: -.005em;
  color: #f1efea;
  white-space: nowrap;
  transition: color .15s;
}
.forum-trigger { cursor: pointer; }

.nav-link:hover,
.nav-item.is-open > .nav-link { color: var(--gold-hi); }
.nav-link.is-active {
  color: var(--gold);
  font-weight: 700;
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: calc(-10 * var(--u));
  right: calc(-10 * var(--u));
  bottom: calc(13 * var(--u));
  height: calc(2 * var(--u));
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  box-shadow: 0 0 calc(8 * var(--u)) var(--gold-glow);
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: calc(20 * var(--u));
  height: calc(28 * var(--u));
  margin-left: calc(4 * var(--u));
  padding: 0;
  border: 0;
  background: none;
  color: #e8e5de;
}
.menu-toggle svg {
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  transition: transform .2s;
}
.menu-toggle--label {
  display: inline-flex;
  width: auto;
  height: calc(64 * var(--u));
  margin: 0;
  gap: calc(9 * var(--u));
}
.has-menu.is-open .menu-toggle svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% - 8 * var(--u));
  left: calc(-16 * var(--u));
  z-index: 60;
  min-width: calc(200 * var(--u));
  padding: calc(8 * var(--u));
  border: 1px solid rgba(227, 174, 76, .55);
  border-radius: calc(12 * var(--u));
  background: linear-gradient(180deg, rgba(16, 17, 14, .98), rgba(7, 9, 8, .98));
  box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, .6), 0 0 calc(14 * var(--u)) rgba(255, 180, 70, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-4 * var(--u)));
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.has-menu.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .15s, transform .15s;
}
.dropdown a,
.dropdown button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(10 * var(--u));
  width: 100%;
  padding: calc(9 * var(--u)) calc(12 * var(--u));
  border: 0;
  border-radius: calc(8 * var(--u));
  background: none;
  font-size: calc(13 * var(--u));
  font-weight: 500;
  color: #efece5;
  text-align: left;
  white-space: nowrap;
}
.dropdown a:hover,
.dropdown button:hover,
.dropdown a:focus-visible,
.dropdown button:focus-visible {
  background: rgba(240, 191, 85, .12);
  color: var(--gold-hi);
}
.soon {
  padding: calc(2 * var(--u)) calc(7 * var(--u));
  border: 1px solid rgba(53, 224, 143, .45);
  border-radius: 999px;
  font-size: calc(10 * var(--u));
  font-weight: 600;
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: calc(17 * var(--u));
  margin-left: auto;
}
.search-btn {
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
  border: calc(1.4 * var(--u)) solid rgba(255, 255, 255, .5);
  transition: border-color .2s, box-shadow .2s;
}
.search-btn svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.search-btn:hover { border-color: var(--gold); box-shadow: 0 0 calc(10 * var(--u)) var(--gold-glow); }

.btn--head {
  height: calc(36 * var(--u));
  font-size: calc(12.5 * var(--u));
}
.header-actions .btn--outline { width: calc(102 * var(--u)); color: #fff; }
.header-actions .btn--gold { width: calc(106 * var(--u)); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: calc(676 * var(--u));
  background: #080a08 url("/assets/img/hero-bg.webp") center 30% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 80%, rgba(4, 5, 4, .55) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: calc(601 * var(--u)) calc(390 * var(--u));
  column-gap: calc(14 * var(--u));
  align-items: start;
  width: calc(1005 * var(--u));
  margin: 0 0 0 calc(50% - 482 * var(--u));
  padding-top: calc(73 * var(--u));
}

.panel {
  position: relative;
  border: calc(1.6 * var(--u)) solid var(--gold-line);
  box-shadow:
    0 0 calc(12 * var(--u)) var(--gold-glow),
    inset 0 0 calc(10 * var(--u)) rgba(255, 180, 70, .22);
}

/* Left panel — gracz.NEXT */
.next-panel {
  order: 1;
  z-index: 2;
  height: calc(514 * var(--u));
  margin-top: calc(19 * var(--u));
  border-radius: calc(14 * var(--u));
  background:
    linear-gradient(90deg, rgba(7, 8, 7, .9) 0%, rgba(7, 8, 7, .84) 38%, rgba(7, 8, 7, .45) 62%, rgba(7, 8, 7, .12) 100%);
}

.next-copy {
  position: relative;
  z-index: 2;
  padding: calc(21 * var(--u)) 0 0 calc(40 * var(--u));
}

.next-brand {
  font-family: var(--display);
  font-size: calc(38 * var(--u));
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: #f2e2bf;
  white-space: nowrap;
}
.next-brand span {
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--gold);
}

.next-title {
  margin-top: calc(13 * var(--u));
  font-family: var(--display);
  font-size: calc(25 * var(--u));
  font-weight: 700;
  letter-spacing: .005em;
  line-height: calc(32 * var(--u));
}
.next-title-a,
.next-title-b { display: block; }
.next-title-a { color: #f1dcae; }
.next-title-b {
  background: linear-gradient(180deg, #f7cf73, #d69a33);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.next-lead {
  margin-top: calc(12 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(21 * var(--u));
  color: #ebe8e1;
}

.perks {
  display: grid;
  gap: calc(13.8 * var(--u));
  margin-top: calc(11 * var(--u));
}
.perks li {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  font-size: calc(12 * var(--u));
  line-height: calc(18 * var(--u));
  color: #ece9e2;
}
.perks svg {
  flex: none;
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
}

.btn--next {
  width: calc(238 * var(--u));
  height: calc(44 * var(--u));
  margin-top: calc(31 * var(--u));
  border-width: calc(2 * var(--u));
  font-size: calc(15.5 * var(--u));
  font-weight: 600;
  color: var(--gold);
}

.next-devices {
  position: absolute;
  z-index: 1;
  left: calc(206 * var(--u));
  top: calc(94 * var(--u));
  width: calc(423 * var(--u));
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* Right panel — status */
.status-panel {
  order: 2;
  z-index: 1;
  height: calc(585 * var(--u));
  padding: calc(20 * var(--u)) calc(24 * var(--u)) 0;
  border-radius: calc(18 * var(--u));
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(40, 32, 18, .35), transparent 60%),
    linear-gradient(180deg, rgba(10, 11, 10, .9) 0%, rgba(7, 8, 7, .93) 100%);
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: calc(9 * var(--u));
  height: calc(28 * var(--u));
  padding: 0 calc(14 * var(--u)) 0 calc(13 * var(--u));
  border: 1px solid rgba(53, 224, 143, .32);
  border-radius: 999px;
  background: rgba(8, 20, 14, .75);
  font-size: calc(11.5 * var(--u));
  color: #efece5;
  white-space: nowrap;
}
.dot {
  width: calc(9 * var(--u));
  height: calc(9 * var(--u));
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 calc(8 * var(--u)) rgba(53, 224, 143, .8);
}

.hero-title {
  margin-top: calc(9 * var(--u));
  padding-left: calc(5 * var(--u));
}
.hero-logo {
  display: block;
  font-size: calc(54 * var(--u));
  line-height: calc(58 * var(--u));
}
.hero-sub {
  display: block;
  margin-top: calc(-4 * var(--u));
  font-family: var(--display);
  font-size: calc(24.5 * var(--u));
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: calc(34 * var(--u));
  background: linear-gradient(180deg, #fbe4a6 0%, #eec163 55%, #cf9432 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero-lead {
  margin-top: calc(4 * var(--u));
  padding-left: calc(5 * var(--u));
  font-size: calc(11.6 * var(--u));
  line-height: calc(17.5 * var(--u));
  color: #e6e3dc;
}

.status-list {
  display: grid;
  gap: calc(10 * var(--u));
  margin-top: calc(15 * var(--u));
}

.status-card {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  height: calc(86 * var(--u));
  padding: 0 calc(12 * var(--u)) 0 calc(12 * var(--u));
  border: calc(1.4 * var(--u)) solid;
  border-radius: calc(10 * var(--u));
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.status-card img {
  flex: none;
  width: calc(80 * var(--u));
  height: calc(80 * var(--u));
  object-fit: contain;
}
.status-text { display: block; min-width: 0; }
.status-title {
  display: block;
  font-family: var(--serif);
  font-size: calc(15.5 * var(--u));
  font-weight: 700;
  line-height: 1.2;
  color: #f4ead6;
}
.status-desc {
  display: block;
  margin-top: calc(6 * var(--u));
  font-size: calc(10.8 * var(--u));
  letter-spacing: -.01em;
  line-height: calc(17 * var(--u));
  color: #dedad2;
}
.status-card--gold {
  border-color: rgba(214, 120, 70, .75);
  background: linear-gradient(90deg, rgba(74, 50, 18, .92) 0%, rgba(44, 16, 12, .9) 55%, rgba(62, 14, 16, .88) 100%);
  box-shadow: inset 0 0 calc(14 * var(--u)) rgba(255, 170, 80, .12);
}
.status-card--green {
  border-color: rgba(190, 150, 70, .7);
  background: linear-gradient(90deg, rgba(10, 48, 32, .92) 0%, rgba(22, 24, 16, .9) 50%, rgba(56, 14, 16, .88) 100%);
  box-shadow: inset 0 0 calc(14 * var(--u)) rgba(60, 200, 130, .1);
}
.status-card--red {
  border-color: rgba(200, 50, 50, .75);
  background: linear-gradient(90deg, rgba(58, 12, 14, .92) 0%, rgba(40, 10, 12, .9) 60%, rgba(52, 12, 14, .88) 100%);
  box-shadow: inset 0 0 calc(14 * var(--u)) rgba(255, 60, 60, .1);
}
.status-card:hover,
.status-card:focus-visible {
  filter: brightness(1.15);
  box-shadow: 0 0 calc(14 * var(--u)) var(--gold-glow);
  transform: translateY(-1px);
}

.status-foot {
  margin-top: calc(6 * var(--u));
  padding-top: calc(12 * var(--u));
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(227, 174, 76, .7) 20%, rgba(227, 174, 76, .7) 80%, transparent) 1;
  text-align: center;
}
.thanks {
  font-size: calc(12.5 * var(--u));
  font-weight: 500;
  color: var(--gold);
}
.soon-line {
  margin-top: calc(9 * var(--u));
  font-family: var(--display);
  font-size: calc(8.5 * var(--u));
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
}
.soon-line .ornament { margin-bottom: calc(6 * var(--u)); }

/* Ornament: line — diamond — line */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--u));
}
.ornament i {
  width: calc(92 * var(--u));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 174, 76, .9));
}
.ornament i:last-child { background: linear-gradient(90deg, rgba(227, 174, 76, .9), transparent); }
.ornament b {
  width: calc(9 * var(--u));
  height: calc(9 * var(--u));
  background: var(--gold-grad);
  transform: rotate(45deg);
  box-shadow: 0 0 calc(8 * var(--u)) var(--gold-glow);
}
.ornament--wide i { width: calc(68 * var(--u)); }

/* ---------- Poznaj gracz.pl ---------- */

.discover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #070806;
}
.discover::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -2;
  background: url("/assets/img/hero-bg.webp") center 20% / cover no-repeat;
  filter: blur(6px) brightness(.5) saturate(1.1);
  transform: scaleX(-1);
}
.discover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 5, 4, .55) 0%, rgba(4, 5, 4, .15) 35%, rgba(4, 5, 4, .35) 100%);
}

.discover-inner {
  width: calc(1033 * var(--u));
  margin: 0 auto;
  padding: calc(24 * var(--u)) 0 calc(20 * var(--u));
  text-align: center;
}

.discover-title {
  margin-top: calc(8 * var(--u));
  font-family: var(--sans);
  font-size: calc(42 * var(--u));
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: calc(50 * var(--u));
  color: #fff;
}
.discover-title .brand-word {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.012em;
}

.discover-lead {
  margin-top: calc(2 * var(--u));
  font-size: calc(15.6 * var(--u));
  line-height: calc(21 * var(--u));
  color: #ebe8e1;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(13 * var(--u));
  margin-top: calc(9 * var(--u));
  text-align: left;
}

.tile {
  display: flex;
  flex-direction: column;
  height: calc(274 * var(--u));
  overflow: hidden;
  border: calc(1.6 * var(--u)) solid var(--gold-line);
  border-radius: calc(12 * var(--u));
  background: linear-gradient(180deg, #0b0c0a 0%, #080907 100%);
  box-shadow: 0 0 calc(12 * var(--u)) var(--gold-glow), inset 0 0 calc(10 * var(--u)) rgba(255, 180, 70, .18);
  transition: transform .2s, box-shadow .2s;
}
.tile:hover,
.tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 calc(22 * var(--u)) rgba(255, 180, 70, .75), inset 0 0 calc(12 * var(--u)) rgba(255, 180, 70, .25);
}

.tile-art {
  flex: none;
  width: 100%;
  height: calc(117 * var(--u));
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 calc(18 * var(--u)) calc(18 * var(--u));
}
.tile-title {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  margin-top: calc(1 * var(--u));
  font-size: calc(19 * var(--u));
  font-weight: 600;
  line-height: calc(30 * var(--u));
  color: #fff;
}
.tile-title svg {
  flex: none;
  width: calc(34 * var(--u));
  height: calc(32 * var(--u));
}
.tile-desc {
  display: block;
  margin-top: calc(6 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(18.5 * var(--u));
  color: #e8e5de;
}
.tile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  height: calc(31 * var(--u));
  margin-top: auto;
  border: calc(1.6 * var(--u)) solid var(--gold-line);
  border-radius: 999px;
  font-size: calc(13.5 * var(--u));
  font-weight: 700;
  color: var(--gold);
  box-shadow: 0 0 calc(6 * var(--u)) rgba(255, 180, 70, .25);
  transition: background-color .2s, box-shadow .2s;
}
.tile-cta svg { width: 1.05em; height: 1.05em; }
.tile:hover .tile-cta,
.tile:focus-visible .tile-cta {
  background: rgba(240, 191, 85, .12);
  box-shadow: 0 0 calc(12 * var(--u)) var(--gold-glow);
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(180deg, #0a0b0a 0%, #060706 100%);
  border-top: 1px solid rgba(227, 174, 76, .3);
}

.footer-grid {
  display: grid;
  grid-template-columns: calc(267 * var(--u)) calc(192 * var(--u)) calc(259 * var(--u)) calc(311 * var(--u));
  width: calc(1029 * var(--u));
  height: calc(158 * var(--u));
  margin: 0 auto;
  padding-top: calc(21 * var(--u));
}

.footer-brand .logo { font-size: calc(34 * var(--u)); margin-top: calc(9 * var(--u)); }
.footer-brand p {
  margin-top: calc(10 * var(--u));
  font-size: calc(13.5 * var(--u));
  color: var(--muted);
}

.footer-title {
  font-size: calc(11.5 * var(--u));
  font-weight: 700;
  line-height: calc(14 * var(--u));
  color: #f3f1ec;
}
.footer-col ul { margin-top: calc(6 * var(--u)); }
.footer-col li { line-height: calc(17.5 * var(--u)); }
.footer-col a,
.footer-col .link-btn {
  font-size: calc(12 * var(--u));
  color: #dcd9d2;
  transition: color .15s;
}
.footer-col a:hover,
.footer-col .link-btn:hover { color: var(--gold-hi); }

.footer-news p {
  margin-top: calc(5 * var(--u));
  font-size: calc(11.5 * var(--u));
  line-height: calc(18 * var(--u));
  color: #dcd9d2;
}
.news-form {
  display: flex;
  gap: calc(8 * var(--u));
  margin-top: calc(5 * var(--u));
}
.news-form input {
  flex: 1;
  min-width: 0;
  height: calc(33 * var(--u));
  padding: 0 calc(16 * var(--u));
  border: 1px solid rgba(227, 174, 76, .38);
  border-radius: 999px;
  background: rgba(10, 11, 10, .9);
  font: inherit;
  font-size: calc(11.5 * var(--u));
  color: var(--text);
}
.news-form input::placeholder { color: #9d9a93; }
.news-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 calc(10 * var(--u)) rgba(255, 180, 70, .35); }
.btn--news {
  flex: none;
  width: calc(101 * var(--u));
  height: calc(33 * var(--u));
  font-size: calc(12.5 * var(--u));
}

.footer-bottom {
  display: flex;
  align-items: center;
  height: calc(64 * var(--u));
  padding: 0 max(0px, calc((100% - 1029 * var(--u)) / 2)) calc(10 * var(--u));
  border-top: 1px solid rgba(227, 174, 76, .22);
}
.copy {
  font-size: calc(11 * var(--u));
  color: #dcd9d2;
}
.legal {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.legal li + li::before {
  content: "|";
  margin: 0 calc(11 * var(--u));
  color: #8f8c86;
  font-size: calc(11 * var(--u));
}
.legal .link-btn {
  font-size: calc(11 * var(--u));
  color: #dcd9d2;
  transition: color .15s;
}
.legal .link-btn:hover { color: var(--gold-hi); }
.social {
  display: flex;
  gap: calc(20 * var(--u));
  margin-left: calc(40 * var(--u));
}
.social-btn {
  display: grid;
  place-items: center;
  width: calc(19 * var(--u));
  height: calc(19 * var(--u));
  padding: 0;
  border: 0;
  background: none;
  color: #e6e3dc;
  transition: color .15s, filter .15s;
}
.social-btn svg { width: 100%; height: 100%; }
.social-btn:hover { color: var(--gold-hi); filter: drop-shadow(0 0 6px var(--gold-glow)); }

/* ---------- Modal ---------- */

.modal {
  width: min(480px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal[open] { animation: modal-in .22s ease-out; }
.modal::backdrop {
  background: rgba(1, 3, 2, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Fallback positioning for browsers without showModal() */
.modal:not(:modal)[open] {
  position: fixed;
  inset: 0;
  z-index: 300;
  margin: auto;
  height: fit-content;
  box-shadow: 0 0 0 100vmax rgba(1, 3, 2, .78);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.modal-box {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 38px 34px 30px;
  border: 1.5px solid var(--gold-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 191, 85, .14), transparent 55%),
    linear-gradient(170deg, #111210, #070807);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .75), 0 0 24px var(--gold-glow);
  text-align: center;
}
.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
}
.modal-x:hover { border-color: var(--gold); color: var(--gold-hi); }
.modal-logo { font-size: 32px; }
.modal-title {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-hi);
}
.modal-text { margin-top: 14px; color: #d8d5ce; font-size: 1rem; }
.modal-ok {
  min-width: 160px;
  height: 46px;
  margin-top: 26px;
  padding: 0 28px;
  font-size: 15px;
}

/* ---------- Tablet (reflow) ---------- */

@media (max-width: 1179px) {
  .site-header { position: sticky; top: 0; height: 64px; }
  .header-inner { width: calc(100% - 40px); gap: 10px; }
  .site-header .logo { margin-top: -3px; font-size: 32px; }

  .burger,
  .search-btn--mobile { display: inline-grid; width: 44px; height: 44px; }
  .search-btn--mobile { margin-left: auto; }
  .search-btn--desktop { display: none; }
  .site-header.menu-open .burger-open { display: none; }
  .site-header.menu-open .burger-close { display: block; }

  .menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 12px 20px 24px;
    border-bottom: 1px solid rgba(227, 174, 76, .4);
    background: #080907;
    box-shadow: 0 24px 40px rgba(0, 0, 0, .6);
  }
  .site-header.menu-open .menu-panel { display: flex; }

  .main-nav { margin: 0; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item {
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav-link { flex: 1; height: 50px; font-size: 16px; }
  .nav-link.is-active::after { display: none; }
  .menu-toggle { width: 44px; height: 44px; margin: 0; }
  .menu-toggle svg { width: 16px; height: 16px; }
  .menu-toggle--label { flex: 1; justify-content: space-between; height: 50px; padding-right: 14px; }

  .dropdown {
    position: static;
    flex-basis: 100%;
    display: none;
    min-width: 0;
    margin: 0 0 10px;
    padding: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
  .has-menu.is-open > .dropdown { display: block; }
  .dropdown a,
  .dropdown button { padding: 12px; font-size: 15px; white-space: normal; }
  .soon { font-size: 11px; }

  .header-actions { flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
  .header-actions .btn { flex: 1; width: auto; min-width: 140px; height: 46px; font-size: 15px; }

  .hero { height: auto; padding: 40px 0 48px; background-position: center top; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0;
  }
  .panel { box-shadow: 0 0 12px var(--gold-glow), inset 0 0 10px rgba(255, 180, 70, .2); }

  .next-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    height: auto;
    margin: 0;
    padding: 28px 0 0 32px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(7, 8, 7, .92), rgba(7, 8, 7, .6));
  }
  .next-copy { padding: 0 0 28px; }
  .next-brand { font-size: 38px; }
  .next-title { font-size: 25px; line-height: 32px; }
  .next-lead { max-width: 280px; font-size: 15px; line-height: 23px; }
  .perks li { font-size: 14px; line-height: 20px; }
  .perks svg { width: 20px; height: 20px; }
  .btn--next { width: auto; min-width: 240px; height: 48px; padding: 0 26px; font-size: 16px; }
  .next-devices {
    position: static;
    align-self: end;
    width: 100%;
    max-width: 423px;
    justify-self: end;
  }

  .status-panel { height: auto; padding: 24px 24px 22px; }
  .hero-logo { font-size: 54px; line-height: 58px; }
  .hero-sub { font-size: 27px; line-height: 34px; white-space: normal; }
  .hero-lead { font-size: 15px; line-height: 23px; }
  .status-card { height: auto; min-height: 92px; padding: 12px 16px 12px 12px; }
  .status-card img { width: 68px; height: 68px; }
  .status-title { font-size: 17px; }
  .status-desc { font-size: 14px; line-height: 20px; }
  .thanks { font-size: 15px; }
  .soon-line { font-size: 10px; }
  .ornament i { width: 80px; }

  .discover-inner { width: min(760px, calc(100% - 40px)); padding: 40px 0 48px; }
  .discover-title { font-size: 38px; line-height: 46px; }
  .discover-lead { font-size: 16px; line-height: 24px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
  .tile { height: auto; min-height: 300px; }
  .tile-art { height: auto; aspect-ratio: 244 / 115; }
  .tile-title { font-size: 20px; }
  .tile-desc { font-size: 15px; line-height: 22px; margin-bottom: 16px; }
  .tile-cta { height: 42px; font-size: 15px; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    width: min(760px, calc(100% - 40px));
    height: auto;
    padding: 36px 0 28px;
  }
  .footer-brand .logo { font-size: 34px; margin: 0; }
  .footer-brand p { font-size: 14px; }
  .footer-title { font-size: 14px; line-height: 20px; }
  .footer-col ul { margin-top: 8px; }
  .footer-col li { line-height: 1.4; }
  .footer-col a,
  .footer-col .link-btn { display: inline-block; padding: 6px 0; font-size: 15px; }
  .footer-news p { font-size: 14px; line-height: 21px; }
  .news-form input { height: 46px; font-size: 15px; }
  .btn--news { width: auto; height: 46px; padding: 0 22px; font-size: 15px; }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 14px 24px;
    height: auto;
    padding: 20px max(20px, calc((100% - 760px) / 2)) 28px;
  }
  .copy,
  .legal .link-btn,
  .legal li + li::before { font-size: 13px; }
  .legal .link-btn { padding: 8px 0; }
  .social { margin-left: 0; gap: 8px; }
  .social-btn { width: 44px; height: 44px; }
  .social-btn svg { width: 22px; height: 22px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .header-inner { width: calc(100% - 32px); }
  .site-header .logo { font-size: 30px; }

  .hero { padding: 24px 0 32px; }
  .hero-grid { width: calc(100% - 32px); row-gap: 20px; }

  .next-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px 0;
  }
  .next-copy { padding: 0; }
  .next-brand { font-size: 34px; }
  .next-title { font-size: 23px; line-height: 30px; }
  .next-lead { max-width: none; }
  .btn--next { width: 100%; min-width: 0; margin-top: 24px; }
  .next-devices { justify-self: center; margin-top: 12px; max-width: 360px; }

  .status-panel { padding: 20px 16px 20px; }
  .pill-live { font-size: 12.5px; height: 30px; }
  .hero-title, .hero-lead { padding-left: 0; }
  .hero-logo { font-size: 46px; line-height: 52px; }
  .hero-sub { font-size: 23px; line-height: 30px; }
  .status-card { gap: 12px; padding: 12px; }
  .status-card img { width: 56px; height: 56px; }
  .status-desc { font-size: 13.5px; }
  .ornament i { width: 56px; }

  .discover-inner { width: calc(100% - 32px); padding: 32px 0 40px; }
  .discover-title { font-size: 32px; line-height: 40px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tile { min-height: 0; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); width: calc(100% - 32px); }
  .news-form { flex-wrap: wrap; }
  .news-form input { flex-basis: 100%; }
  .btn--news { flex: 1; }
  .footer-bottom { padding-inline: 16px; flex-direction: column; align-items: flex-start; }
  .legal { margin-left: 0; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* Global Header Frameless R1 */
.site-header,
.rules-header{
  border:0!important;
  border-bottom:0!important;
}
.site-header .head-icon,
.site-header .head-btn,
.site-header .head-btn--outline,
.site-header .head-btn--gold,
.site-header .icon-btn,
.site-header .search-btn,
.site-header .btn--head,
.site-header .btn--outline,
.site-header .dropdown,
.site-header .menu-panel,
.site-header .soon,
.rules-header .rules-head-search,
.rules-header .rules-head-btn,
.rules-header .rules-head-btn--outline,
.rules-header .rules-head-btn--gold{
  border:0!important;
}
.site-header .menu-panel{
  border-bottom:0!important;
}


/* HOME R9 — final vertical frame alignment */
@media (min-width:1180px){
  .status-panel{
    margin-left:0!important;
    width:auto!important;
    padding-left:calc(24 * var(--u))!important;
  }

  .next-panel{
    width:calc(605 * var(--u))!important;
  }
}
