/* ThemCoolGames - concept.png: near-black night, orange glow, pixel art, heavy italic headings. */
:root {
  --bg: #0b0f13;
  --panel: #121519;
  --line: #2a2522;
  --text: #f1eee9;
  --muted: #c3bdb5;
  --orange: #ff8a1f;
  --orange-deep: #f2600c;
  --display: "Segoe UI Black", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.45 var(--body);
}
a { color: inherit; text-decoration: none; }
.defs { position: absolute; }
em { font-style: inherit; color: var(--orange); }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100% - 1520px) / 2));
  background: var(--bg);
  border-bottom: 2px solid #6b3410;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 14px; font: italic 900 clamp(26px, 3vw, 40px)/1 var(--display); letter-spacing: -.5px; }
.brand-pad { width: 1.9em; height: 1.3em; color: var(--orange); }
nav { display: flex; gap: clamp(8px, 1.6vw, 28px); font-weight: 600; font-size: 19px; }
nav a { display: flex; align-items: center; gap: 8px; padding: 8px 18px; border: 2px solid transparent; border-radius: 8px; }
nav svg { width: 24px; height: 24px; }
nav a.active {
  border-color: var(--orange);
  background: linear-gradient(#3a1d08, #24140a);
  box-shadow: 0 0 14px rgba(255, 138, 31, .45), inset 0 0 10px rgba(255, 138, 31, .25);
}
nav a:hover { color: var(--orange); }

main { max-width: 1520px; margin: 0 auto; padding: 0 24px 40px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 22px;
  transition: transform .1s;
}
.btn:hover { transform: translateY(-2px); }
.primary {
  color: #1a0c00;
  background: linear-gradient(#ffa63a, var(--orange-deep));
  box-shadow: 0 5px 0 #9a3600, 0 8px 22px rgba(255, 110, 20, .35);
}
.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #9a3600; }
.outline { border: 2px solid #9a948c; border-radius: 12px; font-weight: 600; color: var(--text); }
.outline:hover { border-color: var(--orange); }
.tri { width: 0; height: 0; border-left: 16px solid #1a0c00; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

/* Hero: the pixel sunset with the noodle bowl on the right, the text over the dark sky on the left. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 450px;
  margin: 0 -24px;
  padding: 30px 24px;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(1030px, 68%);
  background: url("/images/hero.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 93%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 93%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 16%);
  mask-composite: intersect;
}
.hero-text { position: relative; max-width: 640px; padding-left: clamp(0px, 5vw, 110px); }
h1 {
  margin: 0;
  font: italic 900 clamp(40px, 4.6vw, 68px)/1.05 var(--display);
  letter-spacing: -1px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .5);
}
.name { position: relative; display: inline-block; font-size: 1.15em; }
.swoosh { position: absolute; left: 30%; right: 18%; bottom: -14px; width: 52%; height: 16px; color: var(--orange); }
.lead { margin: 30px 0 30px; color: var(--muted); font-size: 23px; max-width: 470px; line-height: 1.35; }
.buttons { display: flex; flex-wrap: wrap; gap: 24px; }

/* Our Games */
.section-title { display: flex; align-items: center; gap: 20px; margin: 20px 0 22px; padding-left: 12px; font: 800 40px/1 var(--body); }
.section-title svg { width: 70px; height: 46px; color: var(--orange); }
.cards { display: grid; grid-template-columns: 2.6fr 1fr; gap: 28px; }
.card { position: relative; border-radius: 18px; overflow: hidden; min-height: 272px; }
.game {
  display: flex;
  align-items: center;
  border: 2px solid var(--orange);
  box-shadow: 0 0 20px rgba(255, 138, 31, .35);
  background:
    radial-gradient(ellipse at 66% 50%, #ff9b2e 0%, #d4520c 22%, transparent 60%),
    repeating-conic-gradient(from 0deg at 66% 50%, rgba(255, 170, 60, .16) 0 7deg, transparent 7deg 20deg),
    linear-gradient(90deg, #160d0a 0%, #3a1608 45%, #5a2208 100%);
}
.card-art {
  position: absolute;
  left: 49%;
  top: 0;
  height: 100%;
  max-width: 50%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
}
.game-text { position: relative; z-index: 1; padding: 26px 0 26px 44px; max-width: 54%; }
.game-title {
  margin: 0 0 10px;
  font: italic 900 clamp(40px, 4.2vw, 64px)/1 var(--display);
  color: #fff;
  letter-spacing: -1px;
  -webkit-text-stroke: 3px #4a1730;
  paint-order: stroke fill;
  text-shadow: 0 5px 0 #4a1730, 0 0 22px rgba(255, 120, 160, .4);
}
.game-title span { color: var(--orange); }
.game-text p { margin: 0 0 20px; font-size: 22px; line-height: 1.3; }

.soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #5d5853;
  background: var(--panel);
  text-align: center;
}
.soon-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(0deg, transparent 0%, #000 30%);
}
.soon-card h3 { margin: 4px 0 22px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; font-weight: 700; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0; }
.feature { display: flex; align-items: center; gap: 22px; padding: 4px 36px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature svg { flex: none; width: 62px; height: 44px; color: var(--orange); }
.feature h3 { margin: 0; font-size: 24px; }
.feature p { margin: 2px 0 0; color: var(--muted); }

/* About */
.about { padding: 30px 12px 10px; border-top: 1px solid var(--line); }
.about h2 { margin: 0 0 8px; font: italic 900 clamp(28px, 2.8vw, 42px)/1.1 var(--display); }
.about p { margin: 0; color: var(--muted); font-size: 20px; max-width: 760px; }

/* 404 page */
.not-found { padding-top: 18vh; text-align: center; }
.not-found .lead { margin: 20px auto 30px; }

/* Narrow screens: one column, the picture above the text. */
@media (max-width: 900px) {
  .top { flex-direction: column; gap: 6px; }
  nav { font-size: 16px; }
  nav a { padding: 6px 12px; }
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding-top: 52vw;
  }
  .hero::before {
    left: 0; bottom: auto;
    width: 100%;
    height: 50vw;
    background-position: center top;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 25%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 25%);
  }
  .hero-text { padding-left: 0; }
  .cards, .features { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature { padding: 14px 8px; }
  .game { flex-direction: column; align-items: stretch; }
  .card-art { position: static; max-width: none; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
  .game-text { max-width: none; padding: 20px 24px 26px; }
}
