@font-face {
  font-family: "Fredoka";
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fredoka-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0;
}
@font-face {
  font-family: "Nunito";
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+FEFF, U+FFFD;
}

:root {
  --bg: #fbf6ee;
  --card: #ffffff;
  --ink: #2b2a33;
  --muted: #6f6c7a;
  --line: #ece3d3;
  --accent: #2b2a33;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.6 "Nunito", system-ui, sans-serif;
}
h1, h2, .brand, .store-btn { font-family: "Fredoka", "Nunito", system-ui, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
main, .site-header, .site-footer { width: min(1040px, 100% - 32px); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; letter-spacing: 0.5px; }
.site-header nav { display: flex; gap: 18px; font-weight: 700; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

.hero { padding: 40px 0 28px; max-width: 720px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 0 0 14px; }
.hero h1 span { display: block; color: #f76c5e; }
.hero p { font-size: 19px; color: var(--muted); margin: 0; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 22px; padding: 12px 0 48px; }
.game-card { background: var(--card); border: 2px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: 0 6px 0 var(--line); }
.game-head { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.game-head h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.game-head p { margin: 2px 0 0; color: var(--accent); font-weight: 800; }
.logo { width: 84px; height: 84px; border-radius: 22px; flex: none; box-shadow: 0 4px 14px rgb(0 0 0 / 0.14); }
.logo.big { width: 132px; height: 132px; border-radius: 32px; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.shot { width: 100%; border-radius: 20px; border: 2px solid var(--line); background: #fff; }
.game-page .shots { max-width: 620px; margin: 28px auto; }

.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.store-btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 4px 0 rgb(0 0 0 / 0.18); }
.store-btn.soon { background: transparent; color: var(--accent); border: 2px dashed var(--accent); box-shadow: none; }
.text-link { font-weight: 800; color: var(--muted); text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); }

.game-hero { display: flex; align-items: center; gap: 24px; padding: 32px 0 8px; flex-wrap: wrap; }
.game-hero h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.12; }
.tagline { margin: 4px 0 16px; font-size: 20px; font-weight: 800; color: var(--accent); }

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); margin: 8px 0 4px; }
.prose h2 { font-size: 23px; margin: 34px 0 8px; }
.prose a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose li { margin: 6px 0; }
.prose code { background: #f1e9db; padding: 2px 6px; border-radius: 6px; font-size: 0.9em; overflow-wrap: anywhere; }
.features { padding-left: 22px; }
.features li::marker { color: var(--accent); }
.policy { padding-bottom: 32px; }
.crumb { margin: 18px 0 0; }
.crumb a { text-decoration: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

.site-footer { border-top: 2px solid var(--line); margin-top: 32px; padding: 26px 0 44px; }
.site-footer p { margin: 4px 0; }
.site-footer a { font-weight: 800; }

@media (max-width: 520px) {
  .site-header nav { gap: 12px; font-size: 15px; }
  .game-card { padding: 18px; border-radius: 24px; }
  .logo { width: 68px; height: 68px; border-radius: 18px; }
  .game-head h2 { font-size: 20px; }
}

/* Section headings on the home page (Apps, Relaxing games) */
.section-head { padding: 26px 0 2px; scroll-margin-top: 12px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; }
.section-head p { margin: 2px 0 0; color: var(--muted); }

/* Apps: one wide card, text beside the screenshots */
.apps { display: grid; gap: 22px; padding: 12px 0 20px; }
.app-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: 0 6px 0 var(--line); }
.app-info > p { margin: 14px 0; }
.card-actions + .card-actions { margin-top: 14px; }
.app-shots { grid-template-columns: repeat(3, 1fr); margin: 0; }
.game-page .app-shots { max-width: 100%; margin: 28px 0; }
.game-hero .card-actions { margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 3px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--accent); font-size: 15px; font-weight: 800; }

/* Notes inside long texts, and the language switch of the TankCompass privacy policy */
.notice { margin: 16px 0; padding: 12px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font-size: 16px; }
.notice.warn { border-color: #f3c6bf; background: #fdeeeb; color: #8c2b1f; }
.langbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.langbar button { padding: 6px 16px; border: 2px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: 800 15px "Nunito", system-ui, sans-serif; cursor: pointer; }
.langbar button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.policy article[hidden] { display: none; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 860px) {
  .app-card { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
  .app-card { padding: 18px; border-radius: 24px; }
  .app-shots { gap: 8px; }
  .app-shots .shot { border-radius: 14px; }
}
