:root {
  font-family: 'Avenir Next', 'Segoe UI', sans-serif;
  color: #f4f3ee;
  background: #111c29;
  font-synthesis: none;
  --muted: #97a6b4;
  --line: rgba(255,255,255,.1);
  --coral: #ef7257;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 50% -30%, #233b50, transparent 55%), #111c29; }
a { color: inherit; }
.ambient { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(1px); }
.ambient-one { width: 420px; height: 420px; right: -230px; top: 25%; background: rgba(239,114,87,.05); }
.ambient-two { width: 360px; height: 360px; left: -250px; bottom: -100px; background: rgba(63,134,219,.06); }
.site-header, main, footer { position: relative; z-index: 1; max-width: 1220px; margin: auto; padding-left: 40px; padding-right: 40px; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.6px; line-height: .85; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: var(--coral); font-size: 22px; font-weight: 800; box-shadow: 0 8px 20px rgba(239,114,87,.2); transform: rotate(-4deg); }
.brand small { display: block; margin-top: 7px; color: var(--muted); font-size: 7px; letter-spacing: 4px; }
.server-status { display: flex; align-items: center; gap: 8px; color: #a6b5bf; font-size: 11px; }
.server-status i { width: 7px; height: 7px; background: #5fc59b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(95,197,155,.09); }
.hero { padding: 65px 0 75px; max-width: 770px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #a7b4bf; font-size: 9px; font-weight: 700; letter-spacing: 2.3px; }
.eyebrow span { width: 24px; height: 2px; background: var(--coral); }
h1 { margin: 22px 0 24px; font-size: clamp(52px, 7vw, 82px); line-height: 1.01; letter-spacing: -4.5px; }
h1 em { color: var(--coral); font-style: normal; }
.hero > p { max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.games-section { padding-bottom: 35px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { font-size: 18px; margin: 0; letter-spacing: -.4px; }
.section-heading > span { color: var(--muted); font-size: 10px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card { --accent: var(--coral); display: grid; grid-template-columns: 43% 57%; min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: rgba(25,39,54,.83); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.game-card.blue { --accent: #5a9ff1; }
.game-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 65%, transparent); box-shadow: 0 20px 45px rgba(0,0,0,.2); }
.game-art { position: relative; display: grid; place-items: center; overflow: hidden; background: #efe8dd; }
.game-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(255,255,255,.35), transparent 50%); pointer-events: none; }
.game-art.blokus { background: #e9e9e2; }
.number-grid { display: grid; grid-template-columns: repeat(4, 38px); gap: 5px; padding: 9px; background: #a89e8f; border-radius: 10px; transform: rotate(-5deg); box-shadow: 0 15px 30px rgba(45,40,30,.18); }
.number-grid i { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.16); border-radius: 5px; color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.number-grid i:nth-child(1), .number-grid i:nth-child(5), .number-grid i:nth-child(6), .number-grid i:nth-child(10), .number-grid i:nth-child(14), .number-grid i:nth-child(15), .number-grid i:nth-child(16) { background: #eee4da; color: #65706f; }
.number-grid i:nth-child(2), .number-grid i:nth-child(7), .number-grid i:nth-child(11), .number-grid i:nth-child(12) { background: #e7c789; color: #fff; }
.number-grid i:nth-child(3), .number-grid i:nth-child(8) { background: #df9467; }
.number-grid i:nth-child(4) { background: #df7259; }
.blokus-grid { display: grid; grid-template-columns: repeat(4, 36px); gap: 4px; padding: 10px; transform: rotate(5deg); filter: drop-shadow(0 12px 12px rgba(30,45,50,.15)); }
.blokus-grid i { width: 36px; height: 36px; border-radius: 4px; background: #fafaf6; }
.blokus-grid .blue { background: #367edb; }
.blokus-grid .yellow { background: #efbc3f; }
.blokus-grid .red { background: #e86455; }
.blokus-grid .green { background: #4da87e; }
.game-content { display: flex; flex-direction: column; padding: 29px 26px 22px; }
.game-kicker { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 1.8px; }
.game-content h3 { margin: 10px 0 12px; font-size: 25px; letter-spacing: -1px; }
.game-content > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.game-details { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #c1cbd3; font-size: 9px; }
.game-details i { width: 3px; height: 3px; border-radius: 50%; background: #637482; }
.game-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.game-action b { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--accent); color: #14202d; font-size: 16px; transition: transform .2s; }
.game-card:hover .game-action b { transform: rotate(45deg); }
.coming-soon { display: flex; align-items: center; gap: 15px; padding: 20px 23px; margin: 0 0 65px; border: 1px dashed rgba(255,255,255,.14); border-radius: 13px; color: var(--muted); }
.plus { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; font-size: 20px; }
.coming-soon strong { color: #d6dce0; font-size: 11px; }
.coming-soon p { margin: 4px 0 0; font-size: 9px; }
.branch-pill { margin-left: auto; padding: 7px 11px; border-radius: 20px; background: rgba(95,197,155,.07); color: #87bba6; font-size: 8px; white-space: nowrap; }
.load-error { color: #ff9a89; font-size: 12px; }
footer { min-height: 85px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #748695; font-size: 8px; letter-spacing: 1.5px; }
footer p { font-size: 10px; letter-spacing: 0; }
@media (max-width: 950px) {
  .game-card { grid-template-columns: 1fr; }
  .game-art { min-height: 210px; }
  .game-content { min-height: 265px; }
}
@media (max-width: 650px) {
  .site-header, main, footer { padding-left: 20px; padding-right: 20px; }
  .site-header { height: 82px; }
  .hero { padding: 45px 0 55px; }
  h1 { font-size: 50px; letter-spacing: -3px; }
  .hero > p { font-size: 13px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: 42% 58%; min-height: 290px; }
  .game-art { min-height: 100%; }
  .number-grid { grid-template-columns: repeat(4, 25px); gap: 3px; padding: 6px; }
  .number-grid i { width: 25px; height: 25px; font-size: 8px; }
  .blokus-grid { grid-template-columns: repeat(4, 24px); gap: 3px; }
  .blokus-grid i { width: 24px; height: 24px; }
  .game-content { min-height: 290px; padding: 23px 18px 18px; }
  .game-content h3 { font-size: 20px; }
  .game-details { display: grid; gap: 4px; }
  .game-details i { display: none; }
  .section-heading > span, .branch-pill { display: none; }
  footer > span:last-child { display: none; }
}
@media (max-width: 390px) {
  .game-card { grid-template-columns: 1fr; }
  .game-art { min-height: 190px; }
  .game-content { min-height: 260px; }
  .server-status span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
