@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #07090b;
  --panel: rgba(12, 15, 17, 0.78);
  --panel-strong: rgba(8, 10, 12, 0.92);
  --text: #f2f0e8;
  --muted: #b4b5ad;
  --brass: #c7a66a;
  --teal: #35dec9;
  --line: rgba(199, 166, 106, 0.23);
  font-family: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 6, 7, .32) 0%, rgba(4, 6, 7, .12) 32%, rgba(4, 6, 7, .79) 69%, #07090b 100%),
    radial-gradient(ellipse at 67% 30%, rgba(39, 203, 188, .09), transparent 42%);
}
#sceneCanvas { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#sceneCanvas:active { cursor: grabbing; }
a { color: inherit; }
.site-header, main, .site-footer { position: relative; z-index: 2; pointer-events: none; }
a, .brand-logo { pointer-events: auto; }

.site-header {
  min-height: 126px;
  padding: 23px clamp(20px, 5.5vw, 84px);
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: linear-gradient(180deg, rgba(5,7,8,.82), rgba(5,7,8,.2));
}
.brand-logo {
  width: 92px;
  height: 76px;
  object-fit: cover;
  object-position: 50% 42%;
  border: 1px solid rgba(53,222,201,.5);
  border-radius: 13px;
  box-shadow: 0 0 28px rgba(53,222,201,.12);
}
.brand-copy { min-width: 250px; }
.brand-copy h1, .games-header h1 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.18;
}
.brand-copy p { color: var(--muted); margin-top: 5px; font-size: .87rem; }
nav, .games-header ul { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.5vw, 36px); list-style: none; }
nav a, .games-header li, .games-header li a {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #dbd9cf;
  transition: color .2s ease, text-shadow .2s ease;
}
nav a:hover, .games-header li:hover, .games-header li.active a { color: var(--teal); text-shadow: 0 0 16px rgba(53,222,201,.5); }

.content-section {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(60px, 9vw, 116px) 0;
  pointer-events: none;
}
.games-section { min-height: 76vh; padding-top: clamp(84px, 14vh, 150px); }
.section-title {
  width: fit-content;
  margin-bottom: 26px;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.055em;
  text-shadow: 0 2px 22px rgba(0,0,0,.45);
}
.section-title::before {
  content: '✦'; color: var(--brass); font-size: .55em; vertical-align: .28em; margin-right: 12px;
}
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.card, .game-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 4px 22px 4px 22px;
  background: linear-gradient(140deg, rgba(24,27,26,.88), var(--panel-strong));
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.card::after, .game-card::after {
  content: ''; position: absolute; right: -54px; top: -56px; width: 140px; height: 140px;
  border: 1px solid rgba(53,222,201,.18); border-radius: 50%; box-shadow: 0 0 0 15px rgba(53,222,201,.025), 0 0 0 31px rgba(53,222,201,.02);
}
.card h3, .game-card h3 { font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1.25; margin-bottom: 10px; letter-spacing: -.035em; }
.card p, .body-copy { max-width: 690px; color: #c2c2b9; font-size: 1rem; }
.card a, .play-btn {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 23px; padding: 0 18px;
  border: 1px solid rgba(53,222,201,.52); border-radius: 2px 13px 2px 13px;
  color: var(--teal); font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .1em;
  text-decoration: none; text-transform: uppercase; background: rgba(53,222,201,.055); transition: .2s ease;
}
.card a:hover, .play-btn:hover { background: var(--teal); color: #07100f; box-shadow: 0 0 28px rgba(53,222,201,.2); }
.blog-section { min-height: 30vh; }
.about-section, .contact-section { padding-top: 54px; padding-bottom: 62px; }
.body-copy { padding: 26px 30px; border-left: 1px solid var(--brass); background: linear-gradient(90deg, rgba(199,166,106,.075), transparent 85%); }
.body-copy strong { color: var(--teal); font-weight: 600; }
.site-footer { min-height: 72px; border-top: 1px solid rgba(255,255,255,.07); }

.games-header { min-height: 104px; }
.games-header .brand-logo { width: 80px; height: 66px; }
.games-header h1 { margin-right: 16px; }
.games-header li { width: auto; height: auto; line-height: 1.3; text-align: center; }
.games-main { min-height: calc(100vh - 104px); display: grid; place-items: center; padding: 42px 24px 90px; }
.game-card { width: min(620px, 100%); min-height: 310px; display: flex; flex-direction: column; justify-content: center; }
.game-badge { width: 62px; height: 62px; margin-bottom: 25px; border: 1px solid rgba(199,166,106,.62); border-radius: 50%; background: radial-gradient(circle, rgba(53,222,201,.22), rgba(199,166,106,.04) 68%, transparent 70%); box-shadow: 0 0 34px rgba(53,222,201,.13); }

@media (max-width: 760px) {
  .site-header { min-height: 0; padding: 16px 18px 18px; flex-wrap: wrap; gap: 12px; }
  .brand-logo { width: 70px; height: 60px; }
  .brand-copy { min-width: 0; flex: 1; }
  .brand-copy h1 { font-size: 1.2rem; }
  .brand-copy p { font-size: .78rem; }
  nav, .games-header ul { width: 100%; margin: 4px 0 0; justify-content: space-between; gap: 8px; }
  nav a, .games-header li, .games-header li a { font-size: .62rem; letter-spacing: .08em; }
  .games-header h1 { font-size: 1.2rem; flex: 1; }
  .games-header .brand-logo { width: 70px; height: 58px; }
  .games-header ul { margin-top: 4px; }
  .content-section { width: min(100% - 34px, 600px); padding: 58px 0; }
  .games-section { min-height: 75vh; padding-top: 78px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 25px; }
  .body-copy { padding: 20px; font-size: .93rem; }
  .games-main { min-height: calc(100vh - 140px); padding: 30px 17px 70px; }
}

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