:root {
  --bg: #f6f4ee;
  --ink: #14213b;
  --muted: #526078;
  --soft: #283752;
  --line: rgba(20, 33, 59, .18);
  --green: #3157dc;
  --cyan: #2e8cac;
  --amber: #f2714c;
  --radius: 4px;
  --header: 78px;
  color-scheme: light;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 173, 132, .18), transparent 34rem),
    radial-gradient(circle at 8% 7%, rgba(137, 172, 255, .16), transparent 34rem),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 33, 59, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 59, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
main, footer { position: relative; }
::selection { color: white; background: #3157dc; }
:focus-visible { outline: 3px solid #f2714c; outline-offset: 3px; }
.container { width: min(1280px, calc(100% - 72px)); }

.site-header {
  border-color: var(--line);
  background: rgba(248, 247, 242, .91);
  backdrop-filter: blur(18px);
}
.mark {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}
.mark img { width: 100%; height: 100%; }
.brand-copy strong {
  color: var(--ink);
  font-size: .96rem;
  letter-spacing: .075em;
}
.brand-copy span { font-size: .73rem; letter-spacing: .08em; }
.nav-links a { color: var(--ink); font-weight: 700; }
.nav-links a:hover { color: var(--green); background: #e5eaff; }

.games-page { display: block; padding: 82px 0 100px; }
.games-head {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}
.eyebrow {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
  letter-spacing: .075em;
}
.games-head h1 {
  font-size: clamp(3.8rem, 7.8vw, 7rem);
  font-weight: 850;
  line-height: .94;
  letter-spacing: -.075em;
}
.title-period { color: var(--amber); }
.games-head p.games-subtitle {
  margin-top: 15px;
  color: var(--green);
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.games-head > p {
  padding: 20px 23px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
}

.games-grid { gap: 18px; }
.game-card {
  min-height: 300px;
  padding: 24px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: #e9efff;
  box-shadow: 6px 6px 0 rgba(20, 33, 59, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-card:nth-child(5n + 2) { background: #fff0e7; }
.game-card:nth-child(5n + 3) { background: #e7f5eb; }
.game-card:nth-child(5n + 4) { background: #f2ecfc; }
.game-card:nth-child(5n) { background: #fff5d9; }
.game-card::before { height: 6px; background: #3157dc; opacity: 1; }
.game-card:nth-child(5n + 2)::before { background: #f2714c; }
.game-card:nth-child(5n + 3)::before { background: #32a67e; }
.game-card:nth-child(5n + 4)::before { background: #9165bc; }
.game-card:nth-child(5n)::before { background: #d7a835; }
.game-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--ink);
  background: #e9efff;
  box-shadow: 9px 9px 0 rgba(20, 33, 59, .15);
}
.game-card:nth-child(5n + 2):hover { background: #fff0e7; }
.game-card:nth-child(5n + 3):hover { background: #e7f5eb; }
.game-card:nth-child(5n + 4):hover { background: #f2ecfc; }
.game-card:nth-child(5n):hover { background: #fff5d9; }
.game-tag {
  border-color: rgba(20, 33, 59, .2);
  color: #3157dc;
  background: rgba(255, 255, 255, .72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .025em;
}
.game-card h2 { letter-spacing: -.055em; }
.game-card p { color: var(--muted); }
.game-meta span {
  border-color: rgba(20, 33, 59, .18);
  color: #33435d;
  background: rgba(255, 255, 255, .62);
}
.game-action {
  margin-top: 17px;
  border: 1px solid #3157dc;
  color: white;
  background: #3157dc;
  box-shadow: 3px 3px 0 #a5b7f3;
}
.game-card.is-disabled,
.game-card.is-disabled:hover {
  opacity: 1;
  filter: none;
  border-color: rgba(20, 33, 59, .22);
  color: #667188;
  background: #e9e9e5;
  box-shadow: none;
  transform: none;
}
.game-card.is-disabled::before { background: #9ba4b5; opacity: 1; }
.game-card.is-disabled .game-tag,
.game-card.is-disabled .game-action {
  border-color: rgba(20, 33, 59, .17);
  color: #657086;
  background: rgba(255, 255, 255, .58);
  box-shadow: none;
}
.game-card.is-disabled .game-meta span { color: #657086; }
.games-note { margin-top: 28px; color: var(--muted); }
.privacy-note {
  max-width: none;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 5px solid #32a67e;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
}
.privacy-note p { color: var(--muted); }
footer { color: var(--muted); background: #f8f6f1; }
.privacy-trigger { color: var(--ink); background: white; }
.privacy-trigger:hover { border-color: var(--green); background: #e5eaff; }
.privacy-dialog {
  --ink: #14213b;
  --muted: #526078;
  --soft: #283752;
  --green: #3157dc;
  --line: rgba(20, 33, 59, .18);
  color-scheme: light;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #f8f7f2;
  box-shadow: 9px 11px 0 #ccd7f3, 0 28px 80px rgba(20, 33, 59, .24);
}
.privacy-dialog::backdrop { background: rgba(20, 33, 59, .48); }
.privacy-panel { background: linear-gradient(135deg, #f7f8ff, #fffaf3); }
.privacy-panel header { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.privacy-panel .eyebrow, .privacy-panel h3 { color: var(--green); }
.privacy-panel h2 { color: var(--ink); }
.privacy-panel p, .privacy-panel li { color: var(--soft); line-height: 1.55; }
.privacy-panel a { color: #2347c8; }
.privacy-panel section { border-top: 0; }
.privacy-panel section + section { padding-top: 14px; border-top: 1px solid var(--line); }
.privacy-close { color: var(--ink); border-color: var(--line); background: #fff; }
.privacy-close:hover { border-color: var(--green); background: #e5eaff; }

@media (max-width: 900px) {
  .container { width: min(760px, calc(100% - 42px)); }
  .games-head { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  :root { --header: 68px; }
  .container { width: calc(100% - 28px); }
  .brand-copy { display: block; }
  .brand-copy strong { font-size: .82rem; }
  .brand-copy span { font-size: .68rem; }
  .nav { gap: 8px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 6px; font-size: .77rem; }
  .games-page { padding: 52px 0 74px; }
  .games-head h1 { font-size: clamp(2.7rem, 12vw, 4.4rem); }
  .game-card { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card { transition: none; }
}
