/* blocks-stellato.dabarsoft.com. The colors are the game's night theme (scripts/game/palette.gd)
   and the font is the game's own, Fredoka. No JavaScript, nothing from another site. */

@font-face { font-family: "Fredoka"; font-weight: 300 700; src: url("/assets/fonts/fredoka-variable.ttf") format("truetype"); font-display: swap; }

:root {
  --sky-top: #2e2157;
  --sky-bottom: #120f29;
  --board: #181333;
  --edge: #3a2f6e;
  --slot: #231c45;
  --ink: #fff3d6;
  --soft: #c9c0e6;
  --accent: #ffdb4d;
  --red: #ff6b6b;
  --orange: #ffb547;
  --green: #a6e05a;
  --teal: #36d6b0;
  --blue: #4fb8ff;
  --violet: #9d7bff;
  --pink: #ff74c8;
  --page-width: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--sky-bottom); }

body {
  margin: 0;
  background: linear-gradient(var(--sky-top), var(--sky-bottom) 900px) no-repeat var(--sky-bottom);
  color: var(--ink);
  font: 400 18px/1.6 "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--sky-bottom); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.site-header .brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; }
.site-header .brand img { width: 44px; height: 44px; }
.site-header nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; font-size: 17px; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-header nav a:hover { color: var(--accent); }
.site-header nav .lang-switch { border: 2px solid var(--edge); border-radius: 999px; padding: 4px 14px; color: var(--soft); }
.site-header nav .lang-switch:hover { border-color: var(--soft); color: var(--ink); }

/* Hero */
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 28px 48px; padding-top: 40px; padding-bottom: 64px; }
.hero h1 { margin: 0 0 20px; line-height: 1; }
.block-title { display: flex; gap: 6px; }
.block-title span {
  display: grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 0.24em;
  font-size: clamp(34px, 7.4vw, 62px); font-weight: 700; color: #fff;
  box-shadow: inset 0 -0.12em 0 rgba(0, 0, 0, 0.22), inset 0 0.1em 0 rgba(255, 255, 255, 0.32);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.block-title span:nth-child(1) { background: var(--red); }
.block-title span:nth-child(2) { background: var(--orange); }
.block-title span:nth-child(3) { background: var(--green); }
.block-title span:nth-child(4) { background: var(--teal); }
.block-title span:nth-child(5) { background: var(--blue); }
.block-title span:nth-child(6) { background: var(--violet); }
.title-word { display: block; margin-top: 12px; color: var(--accent); font-size: clamp(30px, 6.4vw, 54px); font-weight: 600; letter-spacing: 0.12em; }
.hero p { margin: 0 0 18px; max-width: 44ch; color: var(--soft); font-size: 21px; }
.hero .status { display: inline-block; margin: 6px 0 0; border: 2px solid var(--edge); background: var(--board); border-radius: 999px; padding: 8px 18px; color: var(--ink); font-size: 17px; font-weight: 500; }
.hero .shot { justify-self: center; width: 100%; max-width: 320px; }

.shot { border-radius: 28px; border: 6px solid var(--edge); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }

/* Sections */
section { padding: 56px 0; }
h2 { font: 600 36px/1.1 "Fredoka", system-ui, sans-serif; margin: 0 0 22px; }
h3 { font: 600 21px/1.3 "Fredoka", system-ui, sans-serif; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.text { max-width: 68ch; color: var(--soft); }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); list-style: none; margin: 0; padding: 0; }
.feature { background: var(--board); border: 2px solid var(--edge); border-radius: 20px; padding: 20px 22px; border-top-width: 6px; }
.feature p { color: var(--soft); margin: 0; }
.feature:nth-child(7n + 1) { border-top-color: var(--red); }
.feature:nth-child(7n + 2) { border-top-color: var(--orange); }
.feature:nth-child(7n + 3) { border-top-color: var(--green); }
.feature:nth-child(7n + 4) { border-top-color: var(--teal); }
.feature:nth-child(7n + 5) { border-top-color: var(--blue); }
.feature:nth-child(7n + 6) { border-top-color: var(--violet); }
.feature:nth-child(7n + 7) { border-top-color: var(--pink); }

.shots { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.shots .shot { border-width: 4px; border-radius: 20px; }

/* Buttons */
.button {
  display: inline-block; background: var(--violet); color: #fff; text-decoration: none;
  padding: 11px 22px; border-radius: 16px; font-weight: 600; font-size: 18px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), inset 0 3px 0 rgba(255, 255, 255, 0.28);
}
.button:hover { background: var(--blue); color: #fff; }
.button.secondary { background: var(--board); color: var(--ink); box-shadow: inset 0 0 0 2px var(--edge); }
.button.secondary:hover { background: var(--slot); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Legal documents */
.document { padding: 36px 0 72px; }
.document .container { max-width: 760px; }
.document h1 { font: 600 clamp(38px, 7vw, 56px) / 1.05 "Fredoka", system-ui, sans-serif; margin: 0 0 6px; }
.document .product-name { color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; }
.document .date { color: var(--soft); font-size: 16px; margin: 0 0 28px; }
.document h2 { font-size: 24px; margin: 34px 0 10px; }
.document p, .document li { color: #e3dcf5; }
.document ul { padding-left: 22px; margin: 0 0 16px; }
.document li { margin-bottom: 6px; }
.document code { font: 15px ui-monospace, Consolas, monospace; color: var(--accent); overflow-wrap: anywhere; }
.document .summary { border: 2px solid var(--edge); border-left: 6px solid var(--green); background: var(--board); border-radius: 16px; padding: 18px 20px; margin: 0 0 8px; }
.document .summary p { color: var(--ink); margin: 0; }

/* Footer */
.site-footer { border-top: 2px solid var(--edge); padding: 28px 0 40px; color: var(--soft); font-size: 16px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .studio { display: flex; align-items: center; gap: 14px; }
.site-footer .studio img { width: 130px; }

/* Page not found */
.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font: 700 clamp(60px, 14vw, 120px) / 1 "Fredoka", system-ui, sans-serif; margin: 0 0 12px; color: var(--accent); }
.not-found p { color: var(--soft); margin: 0 auto 10px; max-width: 46ch; }
.not-found .actions { justify-content: center; margin-top: 26px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero .container { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 40px; }
  .hero p { font-size: 19px; }
  .hero .shot { max-width: 260px; }
  section { padding: 40px 0; }
  h2 { font-size: 30px; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
