/*
 * BoomDuel — Cartridge Clash design system
 * Late-16-bit arcade energy, cabinet navy, detonation amber, stepped edges,
 * tactile hard shadows, and restrained CRT texture. Keep this source readable.
 */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #f7f3df;
  --muted: #a9adbd;
  --navy-950: #070a18;
  --navy-900: #0c1027;
  --navy-850: #111731;
  --navy-800: #171e3c;
  --navy-700: #26305a;
  --amber: #ffb000;
  --amber-light: #ffd65c;
  --cyan: #2de2e6;
  --red: #ff4d5e;
  --green: #77e16f;
  --purple: #8f7dff;
  --shadow: #02040d;
  --body-font: 'Space Grotesk', Arial, sans-serif;
  --pixel-font: 'Press Start 2P', monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --clip: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(45, 226, 230, .08), transparent 20rem),
    radial-gradient(circle at 85% 35%, rgba(255, 176, 0, .08), transparent 24rem),
    var(--navy-950);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  min-width: 320px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  content: '';
  opacity: .2;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,.025) 3px, rgba(255,255,255,.025) 4px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--cyan);
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.pixel-font {
  font-family: var(--pixel-font);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--pixel-font);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.eyebrow.amber {
  color: var(--amber);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.page-title {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.35;
  letter-spacing: -.03em;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--navy-950);
  background: var(--cyan);
  font-weight: 700;
}

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

/* Header — a compact arcade status bar with a top-right account dropdown. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 24, .94);
  border-bottom: 3px solid var(--navy-700);
  backdrop-filter: blur(16px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, transparent 8%, var(--amber) 8%, var(--amber) 30%, transparent 30%, transparent 70%, var(--cyan) 70%, var(--cyan) 91%, transparent 91%);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.brand::before {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  content: '';
  background:
    linear-gradient(135deg, transparent 0 40%, var(--cyan) 40% 49%, transparent 49%) 16px 14px / 15px 20px no-repeat,
    linear-gradient(var(--red), var(--red)) 31px 6px / 6px 6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 26px 9px / 7px 5px no-repeat,
    linear-gradient(var(--amber-light), var(--amber-light)) 10px 15px / 5px 5px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 8px 13px / 26px 23px no-repeat,
    #090d20;
  border: 2px solid var(--navy-700);
  box-shadow: 4px 4px 0 var(--shadow);
  clip-path: var(--clip);
}

.brand-mark {
  display: none;
}

.brand-mark-css {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: #090d20;
  border: 2px solid var(--navy-700);
  box-shadow: 4px 4px 0 var(--shadow);
  clip-path: var(--clip);
}

.brand-mark-css > i {
  position: absolute;
  top: 13px;
  left: 10px;
  width: 25px;
  height: 23px;
  background: var(--amber);
  border: 2px solid var(--amber-light);
  clip-path: polygon(0 5px, 5px 5px, 5px 0, 20px 0, 20px 4px, 25px 4px, 25px 19px, 20px 19px, 20px 23px, 5px 23px, 5px 19px, 0 19px);
}

.brand-mark-css > i::before {
  position: absolute;
  top: -10px;
  right: -3px;
  width: 12px;
  height: 8px;
  content: '';
  background: linear-gradient(90deg, var(--ink) 0 50%, var(--red) 50%);
  clip-path: polygon(0 4px, 4px 4px, 4px 0, 8px 0, 8px 4px, 12px 4px, 12px 8px, 4px 8px, 4px 6px, 0 6px);
}

.brand-mark-css > i::after {
  position: absolute;
  top: 1px;
  left: 9px;
  width: 10px;
  height: 20px;
  content: '';
  background: var(--cyan);
  clip-path: polygon(42% 0, 100% 0, 66% 38%, 100% 38%, 18% 100%, 43% 55%, 0 55%);
}

.brand-word {
  display: grid;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: 14px;
  line-height: 1;
  text-shadow: 3px 3px 0 #5e3500;
}

.brand-word span:last-child {
  margin-left: 15px;
  color: var(--amber);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav > a {
  position: relative;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.main-nav > a::after {
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber);
  transition: transform 180ms var(--ease-out);
}

.main-nav > a:hover,
.main-nav > a.active {
  color: var(--ink);
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.credit-chip {
  display: flex;
  min-width: 120px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: var(--muted);
  background: var(--navy-850);
  border: 2px solid var(--navy-700);
  font-size: 12px;
}

.credit-chip strong {
  color: var(--amber);
  font-family: var(--pixel-font);
  font-size: 10px;
}

.user-menu-toggle {
  display: flex;
  /*min-width: 132px;*/
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--navy-800);
  border: 2px solid var(--navy-700);
  box-shadow: 4px 4px 0 var(--shadow);
  font-weight: 700;
  cursor: pointer;
  clip-path: var(--clip);
  transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.user-menu-toggle:hover {
  border-color: var(--cyan);
}

.user-menu-toggle:active {
  transform: translate(2px, 2px);
}

.chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg) translateY(-3px);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: none;
  width: 232px;
  padding: 8px;
  color: var(--ink);
  background: var(--navy-850);
  border: 2px solid var(--navy-700);
  box-shadow: 8px 8px 0 var(--shadow);
  clip-path: var(--clip);
  transform-origin: top right;
}

.user-dropdown.open {
  display: block;
  animation: menu-in 180ms var(--ease-out) both;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--navy-700);
  font-weight: 700;
}

.user-dropdown a:last-child {
  border-bottom: 0;
}

.user-dropdown a:hover {
  color: var(--navy-950);
  background: var(--amber);
}

.user-dropdown a span {
  font-size: 11px;
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 42px;
  color: var(--ink);
  background: var(--navy-800);
  border: 2px solid var(--navy-700);
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  content: '';
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--navy-950);
  background: var(--amber);
  border: 0;
  box-shadow: 5px 5px 0 #7a4600;
  font-family: var(--pixel-font);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--clip);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.btn:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 5px 7px 0 #7a4600;
}

.btn:active {
  transform: translate(3px, 3px) scale(.99);
  box-shadow: 2px 2px 0 #7a4600;
}

.btn.secondary {
  color: var(--ink);
  background: var(--navy-800);
  border: 2px solid var(--cyan);
  box-shadow: 5px 5px 0 #07575b;
}

.btn.secondary:hover {
  color: var(--navy-950);
  background: var(--cyan);
}

.btn.small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 9px;
}

.text-link {
  color: var(--cyan);
  font-weight: 700;
}

.text-link:hover {
  color: var(--amber);
}

/* Home hero — low-key image with dark copy-safe left region. */
.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,10,24,.99) 0%, rgba(7,10,24,.92) 37%, rgba(7,10,24,.32) 67%, rgba(7,10,24,.1) 100%),
    linear-gradient(0deg, var(--navy-950), transparent 38%),
    url('/images/boomduel-hero.jpg') center/cover no-repeat;
}

.hero::before {
  position: absolute;
  top: 80px;
  left: -36px;
  width: 116px;
  height: 116px;
  content: '';
  transform: rotate(45deg);
  background: var(--amber);
  box-shadow: 68px 68px 0 rgba(255,176,0,.16);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  content: '';
  background: linear-gradient(180deg, transparent, var(--navy-950));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 620px;
  align-items: center;
  padding: 92px 0 110px;
}

.hero-copy {
  width: min(620px, 58%);
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--pixel-font);
  font-size: clamp(32px, 5.6vw, 68px);
  line-height: 1.18;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 7px 7px 0 #532e00;
}

.hero h1 span {
  display: block;
  color: var(--amber);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 0 0 30px;
  color: #d4d7e0;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Feature stripe */
.signal-strip {
  position: relative;
  z-index: 3;
  margin-top: -25px;
  background: var(--amber);
  border-top: 4px solid var(--amber-light);
  border-bottom: 4px solid #8a4f00;
  transform: rotate(-.7deg);
  overflow: hidden;
}

.signal-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 13px 0;
  color: var(--navy-950);
  font-family: var(--pixel-font);
  font-size: 9px;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}

.signal-track span::before {
  margin-right: 34px;
  content: '◆';
}

/* Game library — asymmetric cartridge wall, no category filters. */
.game-library {
  padding: 118px 0 90px;
}

.game-feature {
  position: relative;
  display: grid;
  min-height: 300px;
  align-items: end;
  margin-bottom: 32px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,10,24,.98) 0%, rgba(7,10,24,.78) 48%, rgba(7,10,24,.14) 100%),
    linear-gradient(135deg, transparent 0 65%, rgba(45,226,230,.65) 65% 69%, transparent 69%),
    repeating-linear-gradient(90deg, #25386b 0 46px, #172342 46px 92px, #62382b 92px 138px, #261c42 138px 184px);
  border: 3px solid var(--navy-700);
  box-shadow: 10px 10px 0 var(--shadow);
  clip-path: var(--clip);
}

.game-feature-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 38px;
}

.game-feature h3 {
  margin: 0 0 12px;
  font-family: var(--pixel-font);
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.35;
}

.game-feature p {
  color: #d7dae3;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--navy-850);
  border: 2px solid var(--navy-700);
  box-shadow: 6px 6px 0 var(--shadow);
  clip-path: var(--clip);
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber);
  box-shadow: 6px 12px 0 var(--shadow);
  cursor: pointer;
}

.game-thumb {
  position: relative;
  height: 154px;
  overflow: hidden;
}

.game-thumb::before {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  content: attr(data-symbol);
  color: var(--card-accent, var(--amber));
  background: rgba(7,10,24,.78);
  border: 2px solid currentColor;
  box-shadow: 3px 3px 0 rgba(2,4,13,.7);
  font-family: var(--pixel-font);
  font-size: 17px;
  line-height: 1;
  clip-path: var(--clip);
}

.game-thumb::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: attr(data-code);
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: 28px;
  line-height: 1;
  text-shadow: 4px 4px 0 var(--shadow);
}

.game-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 7px;
  color: var(--navy-950);
  background: var(--card-accent, var(--amber));
  font-family: var(--pixel-font);
  font-size: 7px;
}

.game-meta {
  padding: 16px;
}

.game-meta h3 {
  min-height: 38px;
  margin: 0 0 9px;
  font-family: var(--pixel-font);
  font-size: 10px;
  line-height: 1.65;
}

.game-meta .play-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--amber);
  font-family: var(--pixel-font);
  font-size: 8px;
}

.game-card:nth-child(6n + 1) { --card-a: #17335e; --card-b: #10142e; --card-accent: #2de2e6; }
.game-card:nth-child(6n + 2) { --card-a: #512540; --card-b: #161128; --card-accent: #ff4d5e; }
.game-card:nth-child(6n + 3) { --card-a: #4e3a13; --card-b: #171329; --card-accent: #ffb000; }
.game-card:nth-child(6n + 4) { --card-a: #1f4a3a; --card-b: #0f1826; --card-accent: #77e16f; }
.game-card:nth-child(6n + 5) { --card-a: #322c66; --card-b: #12142d; --card-accent: #8f7dff; }
.game-card:nth-child(6n) { --card-a: #1e4770; --card-b: #171027; --card-accent: #ff7b39; }

.game-card:nth-child(1) .game-thumb::before { content: '♜'; }
.game-card:nth-child(2) .game-thumb::before { content: '★'; }
.game-card:nth-child(3) .game-thumb::before { content: '⌛'; }
.game-card:nth-child(4) .game-thumb::before { content: '▲'; }
.game-card:nth-child(5) .game-thumb::before { content: '↻'; }
.game-card:nth-child(6) .game-thumb::before { content: '⬢'; }
.game-card:nth-child(7) .game-thumb::before { content: '◆'; }
.game-card:nth-child(8) .game-thumb::before { content: '≋'; }
.game-card:nth-child(9) .game-thumb::before { content: '↯'; }
.game-card:nth-child(10) .game-thumb::before { content: '❄'; }
.game-card:nth-child(11) .game-thumb::before { content: '●'; }
.game-card:nth-child(12) .game-thumb::before { content: '◎'; }
.game-card:nth-child(13) .game-thumb::before { content: '↔'; }
.game-card:nth-child(14) .game-thumb::before { content: '⇧'; }
.game-card:nth-child(15) .game-thumb::before { content: '»'; }
.game-card:nth-child(16) .game-thumb::before { content: '†'; }
.game-card:nth-child(17) .game-thumb::before { content: '♨'; }
.game-card:nth-child(18) .game-thumb::before { content: '¤'; }
.game-card:nth-child(19) .game-thumb::before { content: '◇'; }
.game-card:nth-child(20) .game-thumb::before { content: '≈'; }
.game-card:nth-child(21) .game-thumb::before { content: '#'; }
.game-card:nth-child(22) .game-thumb::before { content: '☄'; }
.game-card:nth-child(23) .game-thumb::before { content: '⌁'; }
.game-card:nth-child(24) .game-thumb::before { content: '⊕'; }
.game-card:nth-child(25) .game-thumb::before { content: '⚒'; }
.game-card:nth-child(26) .game-thumb::before { content: '◈'; }
.game-card:nth-child(27) .game-thumb::before { content: '▣'; }
.game-card:nth-child(28) .game-thumb::before { content: '◖'; }
.game-card:nth-child(29) .game-thumb::before { content: 'ϟ'; }
.game-card:nth-child(30) .game-thumb::before { content: '✹'; }

/* Bonus section */
.bonus-section {
  padding: 90px 0;
  background: var(--navy-900);
  border-top: 3px solid var(--navy-700);
  border-bottom: 3px solid var(--navy-700);
}

.bonus-banner {
  display: grid;
  min-height: 450px;
  align-items: center;
  grid-template-columns: 1fr .9fr;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,10,24,.99) 0%, rgba(7,10,24,.9) 52%, rgba(7,10,24,.2) 100%),
    linear-gradient(135deg, transparent 0 57%, rgba(255,176,0,.14) 57% 61%, transparent 61%),
    repeating-linear-gradient(0deg, #4a310e 0 16px, #10162f 16px 34px);
  border: 3px solid var(--amber);
  box-shadow: 12px 12px 0 #4a2a00;
  clip-path: var(--clip);
}

.bonus-copy {
  max-width: 650px;
  padding: clamp(34px, 6vw, 70px);
}

.bonus-copy h2 {
  margin: 0 0 18px;
  font-family: var(--pixel-font);
  font-size: clamp(25px, 4.8vw, 48px);
  line-height: 1.3;
}

.bonus-copy h2 span {
  color: var(--amber);
}

.bonus-copy p {
  max-width: 560px;
  color: #d6d8e1;
}

.ladder-mini {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 72px;
  margin: 25px 0;
}

.ladder-mini i {
  display: block;
  width: 9%;
  height: var(--height);
  background: var(--amber);
  border: 1px solid var(--amber-light);
}

.ladder-mini i:last-child {
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(45,226,230,.4);
}

/* Secondary arena callout */
.arena-callout {
  padding: 90px 0;
}

.arena-card {
  display: grid;
  min-height: 360px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,10,24,.98) 0%, rgba(7,10,24,.88) 48%, rgba(7,10,24,.08) 100%),
    radial-gradient(circle at 78% 32%, var(--cyan) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 58%, var(--amber) 0 6px, transparent 7px),
    linear-gradient(160deg, #293668 0 43%, #10162f 43% 54%, #402236 54% 100%);
  border: 3px solid var(--cyan);
  box-shadow: 10px 10px 0 #064a4d;
  clip-path: var(--clip);
}

.arena-copy {
  padding: 46px;
}

.arena-copy h2 {
  margin: 0 0 18px;
  font-family: var(--pixel-font);
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.35;
}

/* Footer — company information remains in the left column. */
.site-footer {
  position: relative;
  padding: 64px 0 24px;
  background: #050711;
  border-top: 4px solid var(--amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 2fr;
  gap: 80px;
}

.footer-company .brand {
  margin-bottom: 20px;
}

.footer-company p {
  max-width: 390px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.placeholder-note {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 8px;
  color: var(--amber);
  background: rgba(255,176,0,.1);
  border-left: 2px solid var(--amber);
  font-size: 11px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: 9px;
}

.footer-links a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 50px;
  padding-top: 20px;
  color: #73798e;
  border-top: 1px solid var(--navy-700);
  font-size: 12px;
}

/* Shared interior pages */
.page-hero {
  position: relative;
  padding: 78px 0 56px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,10,24,.99), rgba(7,10,24,.82)),
    repeating-linear-gradient(135deg, #151d3b 0 22px, #0c1027 22px 44px);
  border-bottom: 3px solid var(--navy-700);
}

.page-hero::after {
  position: absolute;
  right: 8%;
  bottom: -75px;
  width: 180px;
  height: 180px;
  content: '';
  transform: rotate(45deg);
  background: rgba(255,176,0,.14);
  border: 4px solid rgba(255,176,0,.26);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: #c7cad5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--cyan);
}

.page-main {
  padding: 64px 0 90px;
}

.cabinet-panel {
  background:
    radial-gradient(circle at 11px 11px, #59628c 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 11px) 11px, #59628c 0 2px, transparent 3px),
    linear-gradient(145deg, #151c39, var(--navy-850));
  border: 4px solid var(--navy-700);
  box-shadow: inset 0 0 0 2px #090d20, 10px 10px 0 var(--shadow);
  clip-path: var(--clip);
}

/* Authentication */
.auth-layout {
  display: grid;
  max-width: 1040px;
  margin: 0 auto;
  grid-template-columns: .92fr 1.08fr;
}

.auth-art {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(7,10,24,.98), rgba(7,10,24,.14)),
    radial-gradient(circle at 64% 25%, var(--cyan) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 0 58%, rgba(255,176,0,.55) 58% 62%, transparent 62%),
    repeating-linear-gradient(90deg, #172a50 0 36px, #182040 36px 72px, #3b2033 72px 108px);
  border: 3px solid var(--cyan);
  box-shadow: 10px 10px 0 #064a4d;
  clip-path: var(--clip);
}

.auth-art-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 38px;
}

.auth-art h2 {
  margin: 0 0 14px;
  font-family: var(--pixel-font);
  font-size: 24px;
  line-height: 1.5;
}

.auth-panel {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-left: -22px;
  padding: clamp(30px, 5vw, 58px);
}

.auth-panel h1 {
  margin: 0 0 10px;
  font-family: var(--pixel-font);
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.4;
}

.auth-panel > p {
  margin: 0 0 30px;
  color: var(--muted);
}

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

.field {
  min-width: 0;
}

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

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: #d8dbe5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #090d20;
  border: 2px solid var(--navy-700);
  box-shadow: inset 3px 3px 0 rgba(2,4,13,.72), inset -1px -1px 0 rgba(89,98,140,.22);
  border-radius: 0;
  caret-color: var(--amber);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.field textarea {
  min-height: 106px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 3px 3px 0 #07575b;
  outline: 0;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #686e83;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #777d91;
  font-size: 12px;
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 24px;
  font-size: 13px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--amber);
}

.auth-switch {
  margin-top: 25px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  padding: 14px 16px;
  color: #d9dce6;
  background: rgba(45,226,230,.08);
  border-left: 3px solid var(--cyan);
  font-size: 13px;
}

.notice.warning {
  background: rgba(255,176,0,.09);
  border-left-color: var(--amber);
}

.notice.danger {
  background: rgba(255,77,94,.09);
  border-left-color: var(--red);
}

/* Recharge */
.recharge-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .7fr);
  gap: 28px;
}

.recharge-layout > *,
.user-center-layout > *,
.legal-layout > * {
  min-width: 0;
}

.recharge-form,
.recharge-preview {
  padding: clamp(24px, 4vw, 42px);
}

.recharge-preview {
  position: sticky;
  top: 105px;
  border-color: var(--amber);
  box-shadow: 9px 9px 0 #4a2a00;
}

.panel-title {
  margin: 0 0 24px;
  font-family: var(--pixel-font);
  font-size: 16px;
  line-height: 1.55;
}

.amount-packs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.amount-pack {
  min-height: 62px;
  padding: 10px 6px;
  color: var(--ink);
  background: var(--navy-800);
  border: 2px solid var(--navy-700);
  font-family: var(--pixel-font);
  font-size: 9px;
  cursor: pointer;
}

.amount-pack:hover,
.amount-pack.active {
  color: var(--navy-950);
  background: var(--amber);
  border-color: var(--amber-light);
}

.amount-input-wrap {
  position: relative;
}

.amount-input-wrap::before {
  position: absolute;
  top: 50%;
  left: 15px;
  content: '$';
  transform: translateY(-50%);
  color: var(--amber);
  font-weight: 700;
}

.amount-input-wrap input {
  padding-left: 34px;
}

.form-divider {
  height: 2px;
  margin: 32px 0;
  background: linear-gradient(90deg, var(--navy-700), transparent);
}

.address-block {
  margin-top: 22px;
  padding: 22px;
  background: rgba(7,10,24,.42);
  border: 1px solid var(--navy-700);
}

.address-block h3 {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--pixel-font);
  font-size: 10px;
}

.payment-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.payment-icons span {
  min-width: 48px;
  padding: 6px 8px;
  color: var(--muted);
  background: #090d20;
  border: 1px solid var(--navy-700);
  font-family: var(--pixel-font);
  font-size: 7px;
  text-align: center;
}

.preview-top {
  margin: -42px -42px 28px;
  padding: 42px 42px 30px;
  color: var(--navy-950);
  background: var(--amber);
}

.preview-top span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-top strong {
  display: block;
  margin-top: 8px;
  font-family: var(--pixel-font);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
}

.preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--navy-700);
}

.preview-list strong {
  color: var(--ink);
}

.preview-list .bonus-value {
  color: var(--cyan);
}

.tier-progress {
  margin: 26px 0;
}

.tier-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 14px;
  padding: 2px;
  background: #070a18;
  border: 1px solid var(--navy-700);
}

.progress-fill {
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--cyan) 0, var(--cyan) 8px, #15999d 8px, #15999d 10px);
  transition: width 220ms var(--ease-out);
}

.bonus-ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 20px;
}

.bonus-tier {
  padding: 8px 5px;
  color: #73798e;
  background: #090d20;
  border: 1px solid var(--navy-700);
  font-family: var(--pixel-font);
  font-size: 7px;
  line-height: 1.5;
  text-align: center;
}

.bonus-tier.active {
  color: var(--navy-950);
  background: var(--cyan);
  border-color: var(--cyan);
}

.bonus-tier.unlocked {
  color: var(--amber-light);
  border-color: #8e6400;
}

.secure-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}

.lock-pixel {
  display: inline-block;
  width: 16px;
  height: 14px;
  margin-top: 4px;
  background: var(--green);
  box-shadow: 0 -7px 0 -3px var(--green);
}

/* User Center */
.user-center-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
}

.user-sidebar {
  position: sticky;
  top: 105px;
  padding: 24px;
}

.user-profile {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--navy-700);
}

.avatar-pixel {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 15px;
  color: var(--navy-950);
  background: var(--amber);
  border: 4px solid var(--amber-light);
  box-shadow: 5px 5px 0 #4a2a00;
  font-family: var(--pixel-font);
  font-size: 15px;
  clip-path: var(--clip);
}

.user-profile h2 {
  margin: 0 0 5px;
  font-family: var(--pixel-font);
  font-size: 11px;
}

.user-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.user-tabs {
  margin-top: 18px;
}

.user-tab {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 13px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.user-tab:hover,
.user-tab.active {
  color: var(--ink);
  background: var(--navy-800);
  border-left-color: var(--amber);
}

.user-content {
  min-height: 620px;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}



.content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.content-head h2 {
  margin: 0 0 8px;
  font-family: var(--pixel-font);
  font-size: 17px;
  line-height: 1.5;
}

.content-head p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--navy-700);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--cyan);
  background: linear-gradient(180deg, #10162f, #090d20);
  font-family: var(--pixel-font);
  font-size: 8px;
  line-height: 1.5;
}

.data-table td {
  color: #c7cad5;
  font-size: 14px;
}

.status {
  display: inline-block;
  padding: 5px 7px;
  color: var(--navy-950);
  background: var(--green);
  font-family: var(--pixel-font);
  font-size: 7px;
}

.status.fail {
  color: var(--ink);
  background: var(--red);
}

.security-card {
  max-width: 620px;
}

/* Legal hub */
.legal-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
}

.legal-sidebar {
  position: sticky;
  top: 105px;
  padding: 20px;
}

.legal-sidebar h2 {
  margin: 0 0 14px;
  font-family: var(--pixel-font);
  font-size: 10px;
}

.legal-sidebar a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-size: 14px;
}

.legal-sidebar a:hover,
.legal-sidebar a.active {
  color: var(--ink);
  background: var(--navy-800);
  border-left-color: var(--amber);
}

.legal-document {
  min-width: 0;
  padding: clamp(25px, 5vw, 56px);
  border-top-color: var(--amber);
}

.policy-section {
  scroll-margin-top: 105px;
  padding-bottom: 54px;
  margin-bottom: 54px;
  border-bottom: 2px solid var(--navy-700);
}

.policy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 18px;
  font-family: var(--pixel-font);
  font-size: clamp(19px, 3vw, 28px);
  line-height: 1.45;
}

.policy-section h3 {
  margin: 32px 0 12px;
  color: var(--amber);
  font-family: var(--pixel-font);
  font-size: 11px;
  line-height: 1.55;
}

.policy-section h4 {
  margin: 25px 0 10px;
  color: var(--cyan);
  font-size: 17px;
}

.policy-section p,
.policy-section li {
  color: #c7cad5;
  line-height: 1.78;
}

.policy-section ul,
.policy-section ol {
  padding-left: 22px;
}

.policy-section li {
  margin: 8px 0;
}

.policy-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.policy-table th,
.policy-table td {
  padding: 12px 14px;
  border: 1px solid var(--navy-700);
  text-align: left;
}

.policy-table th {
  color: var(--navy-950);
  background: var(--amber);
}

.policy-table tr:last-child td {
  color: var(--cyan);
  font-weight: 700;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  padding: 18px;
  color: var(--muted);
  background: #090d20;
  border-left: 3px solid var(--amber);
}

/* Demo modal and toast */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2,4,13,.88);
}

.demo-modal.open {
  display: grid;
}

.demo-dialog {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  background: var(--navy-850);
  border: 3px solid var(--amber);
  box-shadow: 12px 12px 0 #4a2a00;
  clip-path: var(--clip);
  animation: modal-in 220ms var(--ease-out) both;
}

.demo-dialog h2 {
  margin: 0 0 14px;
  font-family: var(--pixel-font);
  font-size: clamp(18px, 4vw, 28px);
  line-height: 1.5;
}

.demo-dialog p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #090d20;
  border: 2px solid var(--navy-700);
  cursor: pointer;
}

.duel-stage {
  position: relative;
  height: 220px;
  margin: 25px 0;
  overflow: hidden;
  background:
    linear-gradient(0deg, #1d2956 0 24%, transparent 24%),
    radial-gradient(circle at 80% 15%, #2de2e6 0 4px, transparent 5px),
    linear-gradient(160deg, #17234d, #090d20);
  border: 3px solid var(--navy-700);
  cursor: crosshair;
}

.duel-target {
  position: absolute;
  top: 42%;
  left: 44%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--navy-950);
  background: var(--amber);
  border: 6px solid var(--red);
  font-family: var(--pixel-font);
  font-size: 18px;
  cursor: pointer;
  clip-path: var(--clip);
}

.duel-score {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}

.duel-score strong {
  color: var(--cyan);
  font-family: var(--pixel-font);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: 360px;
  padding: 16px 18px;
  color: var(--navy-950);
  background: var(--cyan);
  box-shadow: 6px 6px 0 #07575b;
  font-weight: 700;
  clip-path: var(--clip);
  transform: translateY(160%);
  transition: transform 220ms var(--ease-out);
}

.toast.show {
  transform: translateY(0);
}

/* Animations */
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1060px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-850);
    border: 2px solid var(--navy-700);
    box-shadow: 8px 8px 0 var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    gap: 45px;
  }
}

@media (max-width: 860px) {
  .credit-chip {
    display: none;
  }

  .hero {
    min-height: 700px;
    background-position: 62% center;
  }

  .hero::before {
    display: none;
  }

  .hero-inner {
    align-items: flex-end;
    min-height: 700px;
    padding-bottom: 145px;
  }

  .hero-copy {
    width: min(650px, 100%);
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bonus-banner,
  .arena-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .auth-art {
    min-height: 330px;
  }

  .auth-panel {
    margin: -24px 20px 0;
  }

  .recharge-layout,
  .user-center-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .recharge-preview,
  .user-sidebar,
  .legal-sidebar {
    position: static;
  }

  .user-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .user-tab {
    min-height: 58px;
    margin: 0;
    padding: 10px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    text-align: center;
  }

  .user-tab:hover,
  .user-tab.active {
    border-bottom-color: var(--amber);
  }

  .legal-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .legal-sidebar h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 26px, 1180px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand-mark-css {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-word {
    font-size: 11px;
  }

  .user-menu-toggle {
    min-width: auto;
    padding: 10px;
    font-size: 0;
  }

  .user-menu-toggle::before {
    content: 'USER';
    font-family: var(--pixel-font);
    font-size: 8px;
  }

  .main-nav {
    top: 68px;
  }

  .hero {
    min-height: 680px;
    background:
      linear-gradient(0deg, rgba(7,10,24,.99) 4%, rgba(7,10,24,.82) 62%, rgba(7,10,24,.38) 100%),
      url('/images/boomduel-hero.jpg') 67% center/cover no-repeat;
  }

  .hero-inner {
    min-height: 680px;
    padding-top: 210px;
    padding-bottom: 150px;
  }

  .hero h1 {
    font-size: clamp(25px, 8vw, 31px);
    letter-spacing: -.07em;
    text-shadow: 5px 5px 0 #532e00;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-library,
  .bonus-section,
  .arena-callout {
    padding: 70px 0;
  }

  .game-feature {
    min-height: 370px;
  }

  .game-feature-copy {
    padding: 25px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .game-thumb {
    height: 130px;
  }

  .game-meta {
    padding: 13px;
  }

  .game-meta h3 {
    font-size: 8px;
  }

  .bonus-copy,
  .arena-copy {
    padding: 28px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 54px 0 40px;
  }

  .page-main {
    padding: 40px 0 70px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .auth-art {
    min-height: 280px;
  }

  .auth-panel {
    margin-right: 8px;
    margin-left: 8px;
  }

  .amount-packs {
    grid-template-columns: repeat(3, 1fr);
  }

  .preview-top {
    margin: -24px -24px 24px;
    padding: 30px 24px 24px;
  }

  .user-tabs,
  .legal-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .content-head {
    flex-direction: column;
  }

  .policy-table {
    font-size: 13px;
  }
}

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