:root {
  --bg: #09090a;
  --panel: rgba(20, 20, 22, 0.92);
  --panel-2: #171719;
  --text: #f6f1e8;
  --muted: #b6b3ae;
  --red: #e3262f;
  --red-dark: #9c1319;
  --line: rgba(255,255,255,.16);
  --felt: #0f4936;
  --shadow: 0 24px 70px rgba(0,0,0,.58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.page-shell { min-height: 100vh; background: #0b0b0d; }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 5vw;
  background: linear-gradient(180deg, rgba(7,7,8,.98), rgba(10,10,11,.88));
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.brand-mini { display: none; font-family: Cinzel, serif; font-weight: 700; align-items: center; gap: 10px; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 15px rgba(227,38,47,.8); }
.top-nav { display: flex; align-items: center; gap: 44px; }
.top-nav a { position: relative; padding: 23px 0 18px; font-family: Cinzel, serif; font-weight: 600; font-size: 14px; color: #f7f3ea; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform: scaleX(0); background: var(--red); transition: .2s ease; }
.top-nav a:hover::after, .top-nav a.active::after { transform: scaleX(1); }
.header-tagline { justify-self: end; font-size: 10px; letter-spacing: .28em; color: #d5d0c8; white-space: nowrap; }
.header-tagline span { color: var(--red); margin: 0 8px; }
.menu-toggle { display: none; justify-self: end; background: transparent; border: 0; color: white; font-size: 25px; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 88px 20px 140px;
  background:
    radial-gradient(circle at 15% 22%, rgba(219,66,25,.13), transparent 27%),
    radial-gradient(circle at 85% 22%, rgba(219,66,25,.12), transparent 27%),
    linear-gradient(180deg, rgba(7,7,8,.98) 0%, rgba(12,11,11,.94) 46%, rgba(8,24,19,.94) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .5;
  background:
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px) 0 0/36px 36px,
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px) 0 0/36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: -8%; right: -8%; bottom: -14%; height: 45%;
  background:
    radial-gradient(ellipse at center, rgba(23,94,67,.95), rgba(8,49,36,.98) 58%, rgba(2,22,16,1));
  transform: perspective(800px) rotateX(63deg);
  box-shadow: inset 0 20px 65px rgba(0,0,0,.65), 0 -14px 70px rgba(0,0,0,.55);
}
.ambient { position: absolute; top: 92px; width: 220px; height: 370px; background: radial-gradient(circle at 50% 16%, rgba(191,50,21,.6), rgba(123,53,20,.17) 18%, rgba(0,0,0,.58) 52%, transparent 78%); filter: blur(1px); opacity: .72; z-index: -1; }
.ambient-left { left: -35px; }
.ambient-right { right: -35px; }

.content-wrap { width: min(960px, 100%); margin: 0 auto; text-align: center; position: relative; z-index: 5; }
.logo-wrap { display: flex; justify-content: center; margin: 0 auto 8px; }
.league-logo {
  width: min(420px, 72vw);
  max-height: 285px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 20px 28px rgba(0,0,0,.5));
}
.feature-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; font-size: 12px; letter-spacing: .22em; color: #dbd8d3; margin: 8px 0 26px; }
.feature-strip b { color: var(--red); }

.login-card {
  position: relative;
  width: min(510px, 100%);
  margin: 0 auto;
  padding: 22px 38px 28px;
  text-align: left;
  background: linear-gradient(180deg, rgba(31,31,33,.94), rgba(12,12,13,.96));
  border: 1px solid rgba(227,38,47,.78);
  border-radius: 20px;
  box-shadow: var(--shadow), 0 0 34px rgba(227,38,47,.08);
  overflow: hidden;
}
.card-glow { position: absolute; inset: -1px; border-radius: inherit; box-shadow: inset 0 0 28px rgba(227,38,47,.08); pointer-events: none; }
.login-card h1 { margin: 0; text-align: center; font-family: Cinzel, serif; font-size: clamp(34px, 5vw, 50px); letter-spacing: -.02em; }
.eyebrow { margin: 4px 0 10px; text-align: center; font-size: 10px; letter-spacing: .36em; color: #ddd8d0; }
.subline { margin: 0; text-align: center; font-family: Georgia, serif; font-style: italic; color: #e4ded5; font-size: 15px; }
.accent-line { display: block; width: 45px; height: 2px; background: var(--red); margin-top: 14px; }
.centered { margin-left: auto; margin-right: auto; margin-bottom: 22px; }

.field { height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: rgba(255,255,255,.045); margin-bottom: 13px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field:focus-within { border-color: rgba(227,38,47,.85); background: rgba(255,255,255,.065); box-shadow: 0 0 0 3px rgba(227,38,47,.08); }
.field input { flex: 1; min-width: 0; color: white; background: transparent; border: 0; outline: 0; font-size: 15px; }
.field input::placeholder { color: #aaa9a7; }
.field-icon, .password-toggle, .user-icon { width: 22px; height: 22px; display: inline-grid; place-items: center; color: #c8c7c3; flex: 0 0 auto; }
.field svg, .secondary-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.password-toggle { border: 0; background: transparent; padding: 0; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 8px 0 18px; font-size: 13px; }
.remember { display: flex; align-items: center; gap: 8px; color: #e7e4df; }
.remember input { accent-color: var(--red); }
.link-button { border: 0; background: transparent; color: #ff3a42; padding: 0; text-decoration: underline; }
.primary-button { width: 100%; min-height: 50px; border: 0; border-radius: 5px; color: white; background: linear-gradient(180deg, #e72b34, #b8141b); font-family: Cinzel, serif; font-weight: 700; font-size: 16px; box-shadow: 0 10px 22px rgba(169,15,22,.3); transition: transform .15s ease, filter .15s ease; }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-button span { margin-left: 12px; font-size: 23px; vertical-align: -1px; }
.form-message { min-height: 18px; margin: 8px 0 0; text-align: center; font-size: 12px; color: #ff9ca0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; color: #898783; font-size: 11px; }
.divider::before, .divider::after { content: ""; height: 1px; background: rgba(255,255,255,.15); flex: 1; }
.secondary-button { width: 100%; min-height: 66px; display: flex; justify-content: center; align-items: center; gap: 12px; color: #f3f0ea; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.23); border-radius: 6px; }
.secondary-button strong, .secondary-button small { display: block; }
.secondary-button strong { font-family: Cinzel, serif; font-size: 15px; }
.secondary-button small { color: #aaa9a5; margin-top: 2px; }

.side-message { position: absolute; top: 160px; width: 190px; text-align: center; color: rgba(240,226,206,.44); z-index: 1; font-family: Cinzel, serif; text-shadow: 0 3px 12px rgba(0,0,0,.8); }
.side-message p { font-size: 22px; line-height: 1.45; letter-spacing: .06em; }
.side-message .suit { font-size: 58px; opacity: .5; }
.left-message { left: 4vw; }
.right-message { right: 4vw; }
.side-message .accent-line { margin-left: auto; margin-right: auto; opacity: .9; }

.table-scene { position: absolute; inset: auto 0 0 0; height: 250px; z-index: 3; pointer-events: none; }
.cards { position: absolute; left: 3%; bottom: 7px; display: flex; gap: 5px; transform: rotate(-8deg); }
.cards span { width: 85px; height: 120px; display: flex; align-items: flex-start; justify-content: flex-start; padding: 10px; font-family: Georgia, serif; font-weight: 800; color: #111; font-size: 26px; background: #efe6d8; border-radius: 6px; box-shadow: 0 18px 30px rgba(0,0,0,.35); }
.cards .red { color: #b6161e; transform: rotate(11deg) translateX(-42px); }
.chip-stack { position: absolute; width: 110px; height: 88px; bottom: 48px; background: repeating-linear-gradient(90deg,#111 0 11px,#d12a31 11px 18px,#eee 18px 22px,#111 22px 33px); border-radius: 14px 14px 8px 8px; box-shadow: 0 16px 32px rgba(0,0,0,.5); opacity: .85; }
.chip-stack-left { left: 10%; }
.chip-stack-right { right: 13%; transform: scale(.8); opacity: .5; }
.feature-chip { position: absolute; display: grid; place-items: center; width: 138px; aspect-ratio: 1; border: 14px dashed #ece7df; border-radius: 50%; background: #101012; color: #c6b69c; font-family: Cinzel, serif; font-size: 14px; line-height: 1.5; text-align: center; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.chip-one { left: 14%; bottom: 26px; transform: rotate(-8deg) scale(.78); }
.chip-two { right: 4%; bottom: 8px; transform: rotate(7deg) scale(.72); }
.glass { position: absolute; right: 10%; bottom: 52px; width: 155px; height: 175px; border: 3px solid rgba(255,239,212,.56); border-radius: 4px 4px 20px 20px; background: linear-gradient(180deg, rgba(255,255,255,.02) 32%, rgba(181,94,24,.25) 48%, rgba(116,52,15,.8) 100%); box-shadow: inset 0 0 22px rgba(255,201,121,.18), 0 15px 25px rgba(0,0,0,.35); display: grid; place-items: center; }
.glass-copy { color: rgba(230,194,147,.72); font-family: Cinzel, serif; font-size: 14px; line-height: 1.45; letter-spacing: .08em; }

.site-footer { position: relative; z-index: 8; min-height: 108px; padding: 24px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(180deg,#0b0b0d,#070708); border-top: 1px solid rgba(255,255,255,.13); }
.site-footer h2 { margin: 0 0 5px; font-family: Cinzel, serif; font-size: 19px; }
.site-footer p { margin: 0; font-size: 9px; letter-spacing: .28em; color: #c5c1ba; }
.site-footer p span { color: var(--red); }
.footer-right { display: flex; align-items: center; gap: 34px; }
.socials { display: flex; gap: 20px; font-size: 18px; }
.socials a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #efebe5; }
.responsible { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); display: flex; flex-direction: column; gap: 4px; font-size: 9px; letter-spacing: .22em; color: #d0cbc2; }
.responsible strong { font-size: 9px; }

.hidden-section { display: none; }
dialog { width: min(430px, calc(100% - 28px)); padding: 0; border: 1px solid rgba(227,38,47,.6); border-radius: 16px; background: #151517; color: white; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.dialog-card { position: relative; padding: 28px; text-align: center; }
.dialog-card h2 { font-family: Cinzel, serif; margin-top: 0; }
.dialog-card p { color: #bbb7b1; line-height: 1.6; }
.dialog-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: #ccc; font-size: 28px; }

@media (max-width: 1050px) {
  .side-message { opacity: .35; transform: scale(.82); }
  .left-message { left: -30px; }
  .right-message { right: -30px; }
  .header-tagline { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .top-nav { justify-self: end; }
}

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding: 0 18px; }
  .brand-mini { display: flex; }
  .menu-toggle { display: block; }
  .top-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    padding: 14px 20px 20px;
    background: rgba(8,8,9,.98);
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-direction: column;
    gap: 0;
  }
  .top-nav.open { display: flex; }
  .top-nav a { width: 100%; padding: 14px 6px; }
  .hero { padding-top: 82px; padding-bottom: 90px; }
  .league-logo { width: min(330px, 88vw); max-height: 210px; }
  .feature-strip { font-size: 9px; gap: 9px; letter-spacing: .15em; }
  .login-card { padding: 22px 18px 24px; border-radius: 16px; }
  .login-card h1 { font-size: 34px; }
  .eyebrow { letter-spacing: .22em; }
  .side-message, .glass, .chip-stack-right { display: none; }
  .table-scene { height: 165px; opacity: .68; }
  .cards { left: -10px; transform: rotate(-8deg) scale(.65); transform-origin: left bottom; }
  .chip-stack-left { left: 56%; transform: scale(.56); bottom: 12px; }
  .chip-one { left: 63%; bottom: 5px; transform: scale(.5); }
  .chip-two { display: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-right { width: 100%; justify-content: space-between; gap: 12px; }
  .responsible { padding-left: 16px; }
}

@media (max-width: 430px) {
  .feature-strip { display: grid; gap: 5px; }
  .feature-strip b { display: none; }
  .form-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-footer p { letter-spacing: .16em; line-height: 1.5; }
  .footer-right { align-items: flex-start; flex-direction: column; }
  .responsible { border-left: 0; padding-left: 0; }
}
