:root {
  --brand: #2457d6;
  --brand-bright: #1764ee;
  --brand-dark: #183d9a;
  --red: #ed1c24;
  --ink: #071536;
  --muted: #62738e;
  --line: #dbe7f4;
  --ice: #edf7ff;
  --surface: #ffffff;
  --navy: #061838;
  --shadow: 0 18px 50px rgba(45, 91, 157, 0.12);
  --shadow-card: 0 12px 28px rgba(31, 77, 145, 0.14);
  --radius: 14px;
  --container: 1400px;
  --header-height: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); overflow-x: clip; }
body { margin: 0; min-width: 320px; overflow-x: clip; color: var(--ink); background: #f9fcff; font-family: "Poppins", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(23, 100, 238, .35); outline-offset: 4px; }
.shell { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.anchor-target { position: absolute; top: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; border-radius: 8px; color: #fff; background: var(--brand); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); border-bottom: 1px solid rgba(219, 231, 244, .9); background: rgba(255, 255, 255, .93); box-shadow: 0 5px 24px rgba(29, 66, 116, .06); backdrop-filter: blur(16px); }
.site-header::before, .site-header::after { content: ""; position: absolute; width: 70px; height: 5px; top: 0; transform: skewX(-38deg); }
.site-header::before { left: 0; background: var(--brand); }
.site-header::after { left: 58px; width: 28px; background: var(--red); }
.header-inner { width: min(var(--container), calc(100% - 64px)); height: 100%; margin-inline: auto; display: flex; align-items: center; }
.brand { flex: 0 0 auto; width: 150px; }
.brand img { width: 100%; height: auto; object-fit: contain; }

.quick-actions-section { position: relative; isolation: isolate; overflow: hidden; background: #051632; }
.quick-actions-section::before { content: ""; position: absolute; z-index: -1; inset: -20% 40% 28% -15%; background: radial-gradient(circle, rgba(23,100,238,.2), transparent 68%); pointer-events: none; }
.quick-actions-section::after { content: ""; position: absolute; z-index: -1; top: -22%; right: -8%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 35px, rgba(141,181,255,.075) 36px 37px); opacity: .75; pointer-events: none; }
.quick-actions { position: relative; z-index: 1; padding-block: 72px 66px; }
.quick-heading { margin-bottom: 30px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: end; gap: clamp(36px, 7vw, 110px); }
.quick-eyebrow { display: inline-block; margin-bottom: 20px; color: #8db5ff; font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: .18em; }
.quick-eyebrow::after { content: ""; display: block; width: 52px; height: 4px; margin-top: 16px; border-radius: 999px; background: linear-gradient(90deg, #5d82ff, #28b9d4); }
.quick-heading h2 { max-width: 800px; margin: 0; color: #fff; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: clamp(62px, 6.8vw, 104px); font-weight: 700; letter-spacing: -.035em; line-height: .88; text-wrap: balance; }
.quick-heading p { max-width: 480px; margin: 0 0 7px; padding-left: 28px; border-left: 3px solid var(--brand-bright); color: #c5d2e6; font-size: clamp(14px, 1.35vw, 19px); line-height: 1.65; }
.quick-content { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.58fr); align-items: stretch; gap: 18px; }
.quick-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 10px; }
.quick-card { position: relative; min-width: 0; min-height: 76px; padding: 11px 42px 11px 11px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; overflow: hidden; border: 1px solid rgba(219,231,244,.95); border-radius: 16px; background: linear-gradient(145deg, #fff, #e7f0fb); box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 -3px 0 rgba(23,100,238,.72); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quick-card::before { content: ""; position: absolute; inset: -60% 20% 30% -30%; background: radial-gradient(circle, rgba(71,148,244,.18), transparent 70%); pointer-events: none; }
.quick-card:hover { transform: translateY(-3px); border-color: #78a9ff; box-shadow: 0 12px 25px rgba(0,0,0,.24), inset 0 -3px 0 #1764ee; }
.quick-icon { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #4f84f5, #20b9cd); box-shadow: 0 0 0 1px #cbdcf1, 0 7px 14px rgba(36,87,214,.23); }
.quick-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.quick-favicon { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.quick-card strong { position: relative; z-index: 1; min-width: 0; overflow: hidden; color: var(--ink); font-size: clamp(11px, .86vw, 14px); line-height: 1.1; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.quick-status { position: absolute; z-index: 2; top: 9px; right: 10px; display: flex; align-items: center; gap: 4px; color: #11804b; font-family: "IBM Plex Mono", monospace; font-size: 7px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.quick-status i { width: 6px; height: 6px; border-radius: 50%; background: #20c879; box-shadow: 0 0 0 0 rgba(32,200,121,.55); animation: status-pulse 1.8s ease-out infinite; }
.quick-triangle { position: absolute; z-index: 2; right: 13px; bottom: 12px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid #1764ee; filter: drop-shadow(0 2px 4px rgba(23,100,238,.3)); transition: transform .2s ease; }
.quick-card:hover .quick-triangle { transform: translateX(3px); }

.backup-panel { position: relative; isolation: isolate; min-height: 334px; padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(39,120,247,.72); border-radius: 25px; background: linear-gradient(135deg, #07204b 0%, #03142f 55%, #082554 100%); box-shadow: inset 0 0 0 1px rgba(118,170,255,.08), 0 18px 42px rgba(0,0,0,.22); text-align: center; }
.backup-panel::before, .backup-panel::after { content: ""; position: absolute; z-index: -1; width: 52%; height: 58%; opacity: .52; background: repeating-linear-gradient(0deg, transparent 0 25px, rgba(38,126,247,.3) 26px 27px, transparent 28px 42px); }
.backup-panel::before { top: -4%; left: -7%; transform: skewX(-24deg); }
.backup-panel::after { right: -8%; bottom: -5%; transform: scaleX(-1) skewX(-24deg); }
.backup-copy { position: relative; z-index: 1; }
.backup-copy h3 { margin: 0; color: #fff; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: clamp(44px, 4.6vw, 76px); font-weight: 700; letter-spacing: -.025em; line-height: .95; text-wrap: balance; }
.backup-copy h3 em { color: #25d08a; font-style: normal; }
.backup-copy p { margin: 20px 0 0; color: #b9cbe7; font-size: clamp(11px, 1.05vw, 15px); line-height: 1.55; }
.backup-links { position: relative; z-index: 1; width: min(100%, 780px); margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.backup-link { min-height: 64px; padding: 10px 18px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 2px solid #1764ee; border-radius: 999px; color: #fff; background: rgba(4,22,52,.78); box-shadow: inset 0 0 20px rgba(23,100,238,.06); font-size: clamp(11px, 1.05vw, 15px); font-weight: 600; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.backup-link:hover { transform: translateY(-3px); border-color: #5b98ff; background: rgba(12,48,105,.9); }
.backup-link svg { flex: 0 0 auto; width: 27px; height: 32px; fill: rgba(23,100,238,.75); stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(32,200,121,.56); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(32,200,121,0); }
}

.banner-section { padding-block: 58px; }
.official-banner { display: block; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.official-banner::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 120px; height: 6px; background: linear-gradient(90deg, var(--brand), var(--red)); clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.official-banner img { width: 100%; height: auto; aspect-ratio: 1206 / 520; object-fit: contain; transition: transform .35s ease; }
.official-banner:hover img { transform: scale(1.006); }
.banner-cta { position: absolute; z-index: 2; left: 8%; bottom: 8%; min-height: 52px; padding: 0 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.72); border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-dark)); box-shadow: 0 14px 30px rgba(16, 59, 154, .28); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease; }
.banner-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(16, 59, 154, .36); }

.catalog-section { position: relative; padding-block: 76px; border-top: 1px solid rgba(219, 231, 244, .82); background: #fff; }
.catalog-section--ice { background: linear-gradient(135deg, #f8fcff, var(--ice)); }
.catalog-section--blue { color: #fff; border-top: 0; background: linear-gradient(135deg, #2c52b3 0%, #183d9a 65%, #112f7c 100%); }
.catalog-section--blue::before, .catalog-section--blue::after { content: ""; position: absolute; pointer-events: none; height: 3px; background: linear-gradient(90deg, transparent, #69a0ff, transparent); transform: rotate(-7deg); }
.catalog-section--blue::before { top: 28%; right: -10%; width: 44%; opacity: .55; }
.catalog-section--blue::after { right: 5%; bottom: 10%; width: 30%; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .4; }
.catalog-inner { position: relative; z-index: 1; }
.catalog-heading { max-width: 1180px; }
.catalog-heading > span { display: block; margin-bottom: 12px; color: var(--brand-bright); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.catalog-section--blue .catalog-heading > span { color: #a8c7ff; }
.catalog-heading h1, .catalog-heading h2 { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: .98; text-wrap: balance; }
.catalog-heading h1, .catalog-heading h2 { max-width: 1200px; color: var(--brand-dark); font-size: clamp(44px, 4.7vw, 72px); }
.catalog-section--blue .catalog-heading h1 { color: #fff; }
.catalog-heading p { max-width: 1080px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.catalog-section--blue .catalog-heading p { color: #dbe7ff; }
.game-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.game-grid--large { row-gap: 28px; }
.game-card { min-width: 0; margin: 0; }
.game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid rgba(219, 231, 244, .95); border-radius: 18px; background: #dfeaf8; box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.game-card:hover img { transform: translateY(-7px); box-shadow: 0 20px 38px rgba(15, 52, 105, .2); }
.game-card figcaption { margin-top: 12px; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; }
.catalog-section--blue .game-card figcaption { color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 28px; color: var(--brand-bright); font-size: 14px; font-weight: 700; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.catalog-section--blue .text-link { color: #fff; }

.site-footer { color: #c5d2e6; background: #051632; }
.footer-inner { padding-block: 54px 42px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: clamp(40px, 8vw, 120px); }
.footer-brand img { width: 160px; height: auto; padding: 8px 12px; border-radius: 6px; background: #fff; }
.footer-inner strong { display: block; margin-bottom: 15px; color: #fff; font-size: 12px; text-transform: uppercase; }
.footer-inner p { max-width: 300px; margin: 14px 0 0; font-size: 12px; line-height: 1.75; }
.footer-age { display: inline-block; margin-top: 18px; color: #8db5ff; font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.footer-bottom { min-height: 68px; padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(180, 202, 232, .16); color: #8394ad; font-size: 10px; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .shell, .header-inner { width: min(var(--container), calc(100% - 48px)); }
  .quick-content { grid-template-columns: minmax(0, .86fr) minmax(0, 1.44fr); }
  .quick-card { min-height: 70px; padding: 10px 37px 10px 10px; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
  .quick-icon { width: 38px; height: 38px; }
  .quick-icon svg { width: 21px; height: 21px; }
  .backup-panel { min-height: 310px; }
  .backup-links { gap: 10px; }
  .game-grid { gap: 18px; }
}

@media (max-width: 900px) {
  :root { --header-height: 70px; }
  .shell, .header-inner { width: min(var(--container), calc(100% - 40px)); }
  .site-header { height: var(--header-height); }
  .brand { width: 132px; }
  .quick-heading { grid-template-columns: 1fr; gap: 25px; }
  .quick-heading p { max-width: 580px; }
  .quick-content { grid-template-columns: 1fr; }
  .quick-card { min-height: 72px; }
  .backup-panel { min-height: 330px; }
  .banner-section { padding-block: 44px; }
  .catalog-section { padding-block: 62px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .shell, .header-inner { width: calc(100% - 32px); }
  .quick-actions { padding-block: 48px 40px; }
  .quick-heading { margin-bottom: 14px; gap: 18px; }
  .quick-eyebrow { margin-bottom: 13px; font-size: 9px; }
  .quick-eyebrow::after { width: 40px; height: 3px; margin-top: 11px; }
  .quick-heading h2 { font-size: clamp(44px, 14vw, 62px); line-height: .92; }
  .quick-heading p { margin-bottom: 2px; padding-left: 16px; font-size: 12px; }
  .quick-content { gap: 14px; }
  .quick-link-grid { gap: 8px; }
  .quick-card { min-height: 64px; padding: 8px 30px 8px 8px; grid-template-columns: 34px minmax(0, 1fr); gap: 7px; border-radius: 13px; }
  .quick-icon { width: 34px; height: 34px; border-width: 3px; }
  .quick-icon svg { width: 19px; height: 19px; }
  .quick-card strong { font-size: 10px; }
  .quick-status { top: 7px; right: 7px; font-size: 6px; }
  .quick-status i { width: 5px; height: 5px; }
  .quick-triangle { right: 10px; bottom: 9px; border-top-width: 6px; border-bottom-width: 6px; border-left-width: 8px; }
  .backup-panel { min-height: 0; padding: 34px 18px; border-radius: 20px; }
  .backup-copy h3 { font-size: clamp(42px, 12vw, 62px); }
  .backup-copy p { margin-top: 14px; font-size: 11px; }
  .backup-links { margin-top: 24px; grid-template-columns: 1fr; gap: 10px; }
  .backup-link { min-height: 52px; font-size: 11px; }
  .official-banner { border-radius: 12px; }
  .banner-cta { min-height: 32px; padding-inline: 14px; border-radius: 8px; font-size: 9px; }
  .catalog-section { padding-block: 52px; }
  .catalog-heading > span { margin-bottom: 9px; font-size: 9px; }
  .catalog-heading h1, .catalog-heading h2 { font-size: clamp(38px, 11vw, 50px); line-height: 1; }
  .catalog-heading p { margin-top: 18px; font-size: 13px; line-height: 1.75; }
  .game-grid { margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .game-card img { border-radius: 14px; }
  .game-card figcaption { margin-top: 8px; font-size: 10px; }
  .footer-inner { padding-block: 42px 34px; grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 520px) {
  .header-inner { width: calc(100% - 28px); }
  .quick-card { min-width: 0; }
  .banner-section { padding-block: 36px; }
  .catalog-section { padding-block: 46px; }
}

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