@charset "UTF-8";

:root {
  color-scheme: dark;
  --background: #141816;
  --surface: #1b211d;
  --text: #f1f0df;
  --muted: #acb6ab;
  --line: #3d4b40;
  --accent: #d3ed94;
  --pixel: "Pixelify Sans", "Courier New", monospace;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--mono);
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 7px; }
::selection { color: var(--background); background: var(--accent); }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; left: 24px; top: -80px; padding: 14px 20px; background: var(--accent); color: var(--background); z-index: 10; }
.skip:focus { top: 12px; }

.header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 140px; border-bottom: 2px solid var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 12px; color: var(--accent); font-family: var(--pixel); font-size: 56px; font-weight: 600; line-height: 1; }
.brand small { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.header nav { display: flex; gap: 34px; font-size: 12px; }
.header nav a { padding-block: 14px; }
.header nav span { margin-left: 6px; }
.header nav a:hover, .text-link:hover, .footer nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }

.games { padding: 35px 0 72px; scroll-margin-top: 24px; }
.section-label { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.section-label h1 { margin: 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; }
.section-label > span { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.game-card { --card-accent: var(--accent); min-width: 0; }
.static-card { --card-accent: #c8b7ed; }
.game-art { display: block; position: relative; aspect-ratio: 2.14; border: 3px solid var(--line); background: #101411; box-shadow: 6px 6px 0 var(--line); transition: border-color .18s, box-shadow .18s; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.static-art img { object-fit: contain; }
.game-art:hover { border-color: var(--card-accent); box-shadow: 6px 6px 0 var(--card-accent); }
.status { position: absolute; top: 12px; left: 12px; padding: 8px 10px; border: 2px solid var(--background); box-shadow: 3px 3px 0 var(--background); color: var(--background); background: var(--card-accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; }
.art-link { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--background); background: var(--card-accent); color: var(--background); font-size: 22px; }
.game-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; font-size: 10px; line-height: 1.5; letter-spacing: .7px; color: var(--muted); }
.game-meta > span:last-child { color: var(--card-accent); }
.game-card h2 { margin: 12px 0 0; font-family: var(--pixel); font-size: clamp(29px, 3vw, 38px); font-weight: 600; line-height: 1.1; }
.game-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 46px; padding: 12px 16px; border: 2px solid var(--card-accent); box-shadow: 3px 3px 0 var(--line); background: var(--card-accent); color: var(--background); font-size: 12px; font-weight: 700; transition: background .18s, color .18s; }
.button:hover { background: var(--background); color: var(--card-accent); }
.text-link { padding-block: 12px; font-size: 11px; }
.text-link span { margin-left: 4px; }

.contact { background: var(--surface); border-block: 2px solid var(--line); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 40px; }
.contact h2 { margin: 0; color: var(--accent); font-family: var(--pixel); font-size: 44px; line-height: 1.1; font-weight: 500; }
.contact-link { display: flex; align-items: center; gap: 36px; padding-block: 10px; border-bottom: 2px solid var(--line); font-size: 17px; }
.contact-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-link span { font-size: 24px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 110px; }
.footer-brand { gap: 8px; font-size: 30px; }
.footer-brand small { font-size: 8px; letter-spacing: 1.5px; }
.footer p, .footer nav { font-size: 10px; line-height: 1.8; color: var(--muted); }
.footer nav { display: flex; gap: 24px; }
.footer nav a { padding-block: 12px; }

.legal { max-width: 780px; padding-block: 48px 72px; }
.legal-back { display: inline-block; margin-bottom: 30px; color: var(--accent); font-size: 12px; }
.legal h1 { margin: 0 0 12px; font-family: var(--pixel); font-size: clamp(36px, 5vw, 54px); font-weight: 500; line-height: 1.1; }
.legal .updated { margin-bottom: 36px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.legal h2 { margin: 32px 0 12px; font-family: var(--pixel); font-size: 28px; font-weight: 500; line-height: 1.2; }
.legal p, .legal li { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.75; color: #c9d0c6; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal + .footer { border-top: 2px solid var(--line); }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .game-grid { gap: 32px; }
  .game-links { gap: 16px; }
  .footer { flex-wrap: wrap; padding-block: 28px; gap: 16px; }
  .footer p { order: 3; width: 100%; margin: 0; }
  .footer nav { margin-left: auto; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 108px; gap: 16px; }
  .brand { font-size: 39px; gap: 8px; }
  .brand small { font-size: 8px; letter-spacing: 1px; }
  .header nav { font-size: 10px; gap: 18px; }
  .header nav span { display: none; }
  .games { padding: 28px 0 48px; }
  .section-label { margin-bottom: 24px; }
  .section-label h1 { font-size: 11px; }
  .game-grid { grid-template-columns: 1fr; gap: 48px; }
  .game-art { margin-right: 5px; box-shadow: 5px 5px 0 var(--line); }
  .game-art:hover { box-shadow: 5px 5px 0 var(--card-accent); }
  .status { top: 9px; left: 9px; font-size: 8px; padding: 6px 8px; letter-spacing: .7px; }
  .art-link { width: 30px; height: 30px; right: 9px; bottom: 9px; font-size: 20px; }
  .game-meta { margin-top: 23px; font-size: 9px; letter-spacing: .3px; }
  .game-card h2 { font-size: 33px; }
  .game-links { margin-top: 22px; gap: 18px; }
  .button { font-size: 11px; gap: 18px; }
  .text-link { font-size: 10px; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 32px; }
  .contact h2 { font-size: 38px; }
  .contact-link { width: 100%; justify-content: space-between; font-size: 15px; gap: 12px; }
  .footer-brand { font-size: 27px; }
  .footer-brand small { font-size: 7px; }
  .footer nav { gap: 16px; }
  .footer p { font-size: 9px; }
  .legal { padding-block: 32px 48px; }
  .legal h2 { font-size: 26px; }
}

@media (max-width: 370px) {
  .header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 20px; }
  .header nav { gap: 24px; }
  .header nav a { padding-block: 8px; }
  .game-card h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
