:root {
  --bg: #0a1019;
  --panel: #0d141e;
  --white: #f7f9fd;
  --muted: #9ba9bf;
  --blue: #4aaeff;
  --outline: #283447;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: #0b111a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #60bfff; outline-offset: 4px; }
.container { width: calc(100% - 48px); max-width: 1348px; margin-inline: auto; }

/* Top navigation */
.site-header {
  position: relative;
  z-index: 5;
  height: 68px;
  border-bottom: 1px solid rgba(145,165,188,.13);
  background: radial-gradient(ellipse at 60% 0%,#131f31 0%,#0b131f 46%,#080e16 100%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 10px; }
.brand { display: inline-flex; align-items: center; gap: 29px; flex: 0 0 auto; }
.brand-mark { display: block; width: 30px; height: 30px; color: #f7f9fc; }
.brand-name { font-size: 18px; line-height: 1; letter-spacing: .23em; font-weight: 700; white-space: nowrap; }
.site-nav { display: flex; align-self: stretch; align-items: stretch; gap: 32px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  font-size: 14px;
  font-weight: 500;
  color: #e2e6ef;
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.is-active { color: #58baff; }
.nav-link.is-active::after { content: ""; height: 2px; position: absolute; bottom: 14px; left: 0; right: 0; background: #55baff; }

/* Hero */
.hero {
  position: relative;
  height: 418px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 28%,#111c2c 0%,#09111b 48%,#060d15 100%);
  border-bottom: 1px solid rgba(42,55,71,.18);
}
.hero-visual {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 45.9%;
  background: url('assets/hero-scene.jpg') right center / 100% 100% no-repeat;
}
.hero-shade {
  position: absolute; z-index: -2; inset: 0;
  background:
    linear-gradient(90deg,rgba(5,11,18,.96) 0%,rgba(6,12,20,.85) 35%,rgba(7,14,23,.54) 44%,rgba(7,14,23,.08) 58%,rgba(6,12,20,0) 78%),
    linear-gradient(0deg,rgba(8,15,23,.28),transparent 28%,transparent 68%,rgba(9,16,26,.18));
}
.hero-grain { pointer-events: none; position: absolute; z-index: -1; inset: 0 59% 0 0; opacity: .17; background-image: radial-gradient(#58758f 0.5px,transparent 0.7px); background-size: 7px 7px; mask-image: linear-gradient(90deg, #000 0%, transparent 90%); }
.hero-inner { height: 100%; padding-left: 12px; }
.hero-copy { padding-top: 76px; max-width: 740px; }
.eyebrow { margin: 0; color: #8495ae; letter-spacing: .41em; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.eyebrow span { margin-inline: 7px; }
.hero-title { margin: 16px 0 9px; font-size: clamp(69px, 8.1vw, 124px); font-weight: 900; line-height: 1.01; letter-spacing: 0; white-space: nowrap; }
.hero-blue { color: #4aaaff; background: linear-gradient(180deg, #6fc6ff 0%,#368efa 87%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { margin: 0; color: #b0bdcf; font-size: 20px; line-height: 1.43; font-weight: 400; letter-spacing: -.012em; }
.hero-accent { width: 37px; height: 3px; background: #62c6ff; margin-top: 24px; border-radius: 3px; }
.hero-caption { color: #90a3bd; margin: 20px 0 0; font-weight: 600; font-size: 12px; line-height: 1.5; letter-spacing: .36em; white-space: nowrap; }

/* Game showcase */
.games-section {
  position: relative;
  isolation: isolate;
  min-height: 408px;
  padding: 21px 0 59px;
  background:
    radial-gradient(ellipse 50% 54% at 56% 50%,rgba(18,29,43,.31),transparent 100%),
    #0a1019;
  border-bottom: 1px solid rgba(135,159,188,.1);
}
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading h2 { font-size: 36px; line-height: 1.16; letter-spacing: -.045em; font-weight: 750; margin: 0; }
.section-heading p { margin: 2px 0 0; color: #94a2b8; font-size: 19px; line-height: 1.4; letter-spacing: -.015em; }
.view-all-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  padding: 0 14px; height: 44px; flex-shrink: 0;
  margin-top: 6px; background: linear-gradient(120deg,#131e30,#0b1523);
  border: 1px solid #29384f; border-radius: 15px; color: #f6f9fc; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: background .2s,border-color .2s,transform .2s;
}
.view-all-btn svg { color: #59b7ff; }
.view-all-btn:hover { border-color: #4b8cb4; background: #142337; transform: translateY(-1px); }
.games-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 15px; }
.game-card { border: 1px solid #293342; background: linear-gradient(140deg,#111923,#0d131c); border-radius: 16px; overflow: hidden; transition: transform .2s ease,border-color .2s ease; min-width: 0; }
.game-card:hover { transform: translateY(-3px); border-color: #405672; }
.game-art-button { display: block; width: 100%; height: 159px; padding: 0; border: 0; cursor: pointer; background: #111927; overflow: hidden; }
.game-cover { display: block; height: 100%; width: 100%; object-fit: cover; transition: transform .25s ease; }
.game-art-button:hover .game-cover { transform: scale(1.03); }
.game-card-body { display: flex; align-items: center; gap: 18px; height: 81px; padding: 0 15px 0 14px; }
.game-icon { width: 65px; height: 65px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.game-copy { min-width: 0; flex: 1; }
.game-copy h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -.025em; line-height: 1.25; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-copy p { margin: 0; color: #9cabbf; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-btn { display: grid; place-items: center; width: 48px; height: 47px; padding: 0; border-radius: 14px; border: 1px solid #34475e; color: #60c0ff; background: linear-gradient(155deg,#182d45,#102036); cursor: pointer; flex-shrink: 0; transition: background .2s,transform .2s; }
.play-btn:hover { background: #204267; transform: scale(1.04); }
.play-btn svg { margin-left: 3px; }

/* Social footer */
.site-footer { min-height: 130px; background: radial-gradient(ellipse at 46% 0%,#101923 0%,#0a1018 75%); }
.footer-inner { min-height: 130px; display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 10px 18px; gap: 36px; }
.footer-brand-block { padding-top: 5px; }
.footer-brand-block .brand { gap: 29px; }
.footer-tagline { margin: 1px 0 0 59px; font-size: 9px; letter-spacing: .32em; color: #8597b0; font-weight: 600; line-height: 1.8; white-space: nowrap; }
.social-links { display: flex; align-items: center; gap: 29px; margin-right: -36px; }
.social-item { display: inline-flex; align-items: center; gap: 10px; min-width: 159px; border-radius: 12px; }
.social-item:hover .social-icon { filter: brightness(1.3); transform: translateY(-2px); }
.social-icon { display: block; width: 55px; height: 57px; object-fit: contain; transition: filter .2s,transform .2s; }
.social-copy { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.social-copy strong { font-size: 12px; font-weight: 600; white-space: nowrap; }
.social-copy small { font-size: 10px; font-weight: 400; white-space: nowrap; color: #b0bac9; }

/* Real interaction without inventing destination URLs */
.detail-dialog { width: min(460px, calc(100% - 32px)); max-height: min(88dvh, 650px); border: 1px solid #33455c; border-radius: 20px; padding: 16px; color: #f6f8fc; background: #101a28; box-shadow: 0 30px 100px #000b; }
.detail-dialog::backdrop { background: rgba(1,7,14,.76); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #546074; background: #0b1424d9; color: white; border-radius: 10px; cursor: pointer; z-index: 1; }
.dialog-cover { display: block; width: 100%; aspect-ratio: 2.4/1; object-fit: cover; border-radius: 10px; }
.dialog-title { font-size: 25px; font-weight: 750; margin: 20px 4px 6px; }
.dialog-description { color: #abbacf; margin: 0 4px 20px; line-height: 1.5; }
.dialog-action { display: inline-flex; align-items: center; justify-content: center; background: #248feb; padding: 12px 18px; color: white; border: 0; border-radius: 11px; font-size: 14px; font-weight: 650; cursor: pointer; }
.dialog-action:disabled { background: #1d2f43; color: #a3b1c4; cursor: not-allowed; }
.dialog-games-list { display: grid; gap: 10px; padding: 4px 4px 2px; }
.dialog-game-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px; color: white; cursor: pointer; border: 1px solid #293e53; border-radius: 11px; background: #121f2e; text-align: left; }
.dialog-game-row img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; }
.dialog-game-row span { display: grid; gap: 5px; }
.dialog-game-row small { color: #a5b2c6; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: min(90vw,420px); background: #15283d; border: 1px solid #43617d; color: #e8f3ff; border-radius: 12px; padding: 13px 17px; box-shadow: 0 12px 40px #0009; font-size: 13px; text-align: center; }

@media (max-width: 1200px) {
  .hero-visual { left: 44%; }
  .hero-title { font-size: clamp(68px,8.1vw,110px); }
  .social-links { gap: 10px; margin-right: 0; }
  .social-item { min-width: 135px; }
  .game-card-body { gap: 10px; padding-inline: 10px; }
  .game-icon { width: 56px; height: 56px; }
  .play-btn { width: 43px; height: 43px; }
}
@media (max-width: 850px) {
  .hero { height: 440px; }
  .hero-visual { left: 20%; opacity: .75; background-size: cover; }
  .hero-shade { background: linear-gradient(90deg,#07101bf2,#08111bd6 55%,#0a121c73),linear-gradient(0deg,#07101bcc,transparent 70%); }
  .hero-copy { padding-top: 92px; }
  .hero-title { font-size: clamp(60px,11.5vw,93px); }
  .games-section { padding-bottom: 44px; }
  .games-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { flex-direction: column; gap: 25px; padding-block: 26px 28px; }
  .social-links { width: 100%; justify-content: space-between; gap: 20px; }
}
@media (max-width: 590px) {
  .container { width: calc(100% - 36px); }
  .site-header { height: 66px; }
  .header-inner { padding-inline: 0; }
  .brand { gap: 9px; }
  .brand-mark { width: 25px; height: 25px; }
  .brand-name { font-size: 13px; letter-spacing: .15em; }
  .site-nav { gap: 12px; }
  .nav-link { font-size: 12px; min-width: 34px; }
  .nav-link.is-active::after { bottom: 12px; }
  .hero { height: 440px; }
  .hero-inner { padding-left: 0; }
  .hero-copy { padding-top: 87px; }
  .eyebrow { font-size: 9px; letter-spacing: .29em; }
  .eyebrow span { margin-inline: 3px; }
  .hero-title { font-size: clamp(47px,12.1vw,72px); letter-spacing: -.08em; margin-top: 22px; margin-bottom: 19px; }
  .hero-description { font-size: 16px; line-height: 1.55; max-width: 390px; }
  .desktop-break { display: none; }
  .hero-accent { margin-top: 25px; }
  .hero-caption { font-size: 9px; letter-spacing: .18em; margin-top: 18px; white-space: normal; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { font-size: 14px; }
  .view-all-btn { height: 38px; font-size: 11px; padding-inline: 10px; gap: 5px; border-radius: 11px; }
  .games-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .game-art-button { height: auto; aspect-ratio: 2.75; }
  .game-card-body { gap: 13px; height: 80px; padding-inline: 13px; }
  .game-icon { width: 61px; height: 61px; }
  .play-btn { width: 45px; height: 45px; }
  .footer-brand-block .brand { gap: 15px; }
  .footer-tagline { margin-left: 40px; letter-spacing: .16em; }
  .social-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .social-item { min-width: 0; gap: 7px; }
  .social-icon { width: 48px; height: 50px; }
  .social-copy small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
