/* Reflex Games website: same look as the game (teal tiles, paper cards, Lilita One + Nunito). */
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url(/fonts/lilita-one-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format("woff2"); }

:root {
  --wall: #1E6E75;
  --grout: #2A848D;
  --ink: #1A2230;
  --paper: #FFF7EA;
  --sand: #F3E6CF;
  --tomato: #FF4F2E;
  --tomato-deep: #C2341A;
  --muted: #5D6A78;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 600 16px/1.6 var(--body);
  color: var(--ink);
  background-color: var(--wall);
  background-image:
    linear-gradient(var(--grout) 6px, transparent 6px),
    linear-gradient(90deg, var(--grout) 6px, transparent 6px);
  background-size: 72px 72px;
  background-position: -3px -3px;
  padding: 24px 16px 40px;
}

.page { max-width: 760px; margin: 0 auto; }
.card {
  background: var(--paper);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 10px 0 rgba(10, 30, 35, .28);
}
.card + .card { margin-top: 20px; }
@media (min-width: 640px) { .card { padding: 40px 48px; } }

.brand { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: var(--paper); text-decoration: none; }
.brand img { display: block; width: auto; height: 54px; }
h1.logo { margin: 0 0 12px; line-height: 0; }
h1.logo img { width: min(310px, 100%); height: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: .01em; text-wrap: balance; }
h1 { margin: 0 0 6px; font-size: clamp(34px, 7vw, 48px); color: var(--tomato); }
h2 { margin: 36px 0 10px; font-size: 26px; scroll-margin-top: 16px; }
h3 { margin: 22px 0 6px; font-size: 19px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--tomato); }
a { color: #0F5E66; font-weight: 800; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--tomato-deep); }
strong { font-weight: 800; }
.meta { margin: 0 0 22px; font-size: 14px; color: var(--muted); }

.short { margin: 0 0 8px; padding: 18px 20px; border-radius: 18px; background: var(--sand); }
.short h2 { margin-top: 0; font-size: 22px; }
.short ul { margin: 0; }

.table { margin: 0 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
th, td { padding: 10px 10px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--sand); }
th { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
td:first-child { font-weight: 800; }

.note { padding: 12px 16px; border-radius: 14px; background: #E5F2F3; font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tomato); color: var(--paper); font: 400 15px var(--display); transform: translateY(2px); }

footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--paper); opacity: .9; }
footer a { color: var(--paper); }

/* Home page */
.game { display: grid; gap: 20px; align-items: center; }
@media (min-width: 640px) { .game { grid-template-columns: 180px 1fr; gap: 32px; } }
.game img { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 6px 0 rgba(10, 30, 35, .25); }
.game h2 { margin: 0 0 6px; font-size: 32px; color: var(--tomato); }
.play-btn { display: inline-block; margin-top: 6px; padding: 12px 22px 13px; border-radius: 16px; background: var(--tomato); color: var(--paper); font-family: var(--display); font-size: 20px; letter-spacing: .02em; text-decoration: none; box-shadow: 0 5px 0 var(--tomato-deep); }
.play-btn:hover { filter: brightness(1.05); }
.play-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--tomato-deep); }
.play-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.tag { display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lead { font-size: 18px; color: var(--muted); }
