/* The website: the game's look (deep night purple, cream cards, chunky ink outlines, Nunito). */
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --ink: #26133f;
  --cream: #fff8e8;
  --yellow: #ffd23f;
  --violet: #6f45d8;
  --night: #1b0d36;
  --grass: #2a8a5a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream);
  background-color: var(--night);
  background-image: url("img/stars.svg"), radial-gradient(ellipse at 50% 0%, #5b2d9c 0%, #341a63 42%, #1b0d36 88%);
  background-repeat: repeat, no-repeat;
  background-size: 600px 600px, 100% 1400px;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); text-shadow: 0 3px 0 var(--ink); }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 0.9em; }

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  max-width: 1040px; margin: 0 auto; padding: 10px 16px;
}
.brand img { display: block; width: 150px; height: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.top nav a {
  text-decoration: none; font-weight: 800; padding: 6px 14px; border-radius: 999px; border: 3px solid transparent;
}
.top nav a:hover, .top nav a:focus-visible { border-color: var(--cream); }
.top nav a[aria-current="page"] { background: var(--cream); color: var(--ink); }
.top .langs { gap: 2px 4px; font-size: 0.9rem; }
.top .langs a { padding: 3px 10px; opacity: 0.8; }
.top .langs a[aria-current="true"] { opacity: 1; border-color: var(--cream); }
/* Phones: the four links stay on one row in every language ("Pre dospelých" is the longest). */
@media (max-width: 440px) { .top nav { gap: 4px 2px; } .top nav a { padding: 6px 9px; font-size: 0.92rem; } .top .langs a { padding: 3px 9px; font-size: 0.85rem; } }
@media (max-width: 380px) { .top nav a { padding: 6px 6px; font-size: 0.88rem; } }

.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.hero { text-align: center; padding: 8px 16px 0; overflow: hidden; }
.hero .logo { width: min(560px, 92vw); }
.hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.15rem; }
.lead { font-size: 1.15rem; }
.note { font-size: 0.95rem; opacity: 0.85; margin-top: 14px; }

.btn {
  display: inline-block; font-weight: 900; font-size: 1.45rem; text-decoration: none; color: var(--ink);
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 24px; padding: 14px 34px;
  box-shadow: 0 8px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover, .btn:focus-visible { background: #ffe066; }
.btn:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink); }
.btn.small { font-size: 1.1rem; padding: 10px 24px; border-radius: 20px; box-shadow: 0 6px 0 var(--ink); }
.btn.soon { background: #5b4a80; color: var(--cream); cursor: default; }
.btn.soon:active { transform: none; box-shadow: 0 8px 0 var(--ink); }

/* beasts standing on a hill under the hero */
.hill {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0;
  max-width: 900px; margin: 26px auto 0; padding: 0 8px;
}
.hill img { position: relative; z-index: 1; width: 20%; max-width: 190px; margin: 0 -1%; }
.hill img:nth-child(3) { width: 26%; max-width: 250px; }
.hill::after {
  content: ""; position: absolute; z-index: 0; left: -30%; right: -30%; bottom: -150px; height: 220px;
  background: var(--grass); border-top: 5px solid var(--ink); border-radius: 50%;
}
.band { background: var(--grass); border-top: 0; position: relative; z-index: 2; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.card {
  background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 28px;
  box-shadow: 0 8px 0 var(--ink); padding: 22px 24px; margin: 0 0 30px;
}
.grid .card { margin: 0; }
.card a { color: #4a2bb0; font-weight: 800; }
.card a.btn { color: var(--ink); }
.card::after { content: ""; display: block; clear: both; }
.split { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 20px; align-items: center; }
@media (max-width: 620px) { .split { grid-template-columns: 1fr; } .split > img { max-width: 170px; margin: 0 auto; display: block; } }
.teasers { padding-left: 1.2em; margin: 0 0 1em; }
.teasers li { margin: 0.15em 0; }

/* screenshots in phone frames; the row scrolls sideways on small screens */
.phones { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.phone { flex: 0 0 auto; width: min(240px, 68vw); margin: 0; scroll-snap-align: center; }
.phone img { display: block; width: 100%; border: 6px solid var(--ink); border-radius: 30px; box-shadow: 0 8px 0 var(--ink); background: #000; }
.phone figcaption { margin-top: 18px; font-size: 0.98rem; text-align: center; }

/* articles */
article.card { scroll-margin-top: 16px; }
.pal { float: right; width: 120px; margin: -6px -6px 6px 12px; }
@media (max-width: 480px) { .pal { width: 84px; } }
.num {
  display: inline-block; min-width: 1.7em; text-align: center; background: var(--yellow); border: 3px solid var(--ink);
  border-radius: 999px; padding: 0 0.35em; margin-right: 0.2em;
}
.badge { display: inline-block; font-weight: 900; border: 3px solid var(--ink); border-radius: 999px; padding: 1px 14px; }
.badge.strong { background: #8bd650; }
.badge.some { background: #ffd23f; }
.badge.early { background: #cdbcf2; }
.rating { margin-bottom: 0.7em; }
.legend { list-style: none; padding: 0; margin: 0 0 1em; }
.legend li { margin: 0.45em 0; }
.toc { margin: 0; padding-left: 1.4em; }
.toc li { margin: 0.2em 0; }
.sources { margin-top: 0.4em; font-size: 0.92rem; }
.sources summary { cursor: pointer; font-weight: 900; }
.sources ul { padding-left: 1.2em; margin: 0.5em 0 0; }
.prose h1 { text-shadow: none; }
.prose h2 { margin-top: 1.2em; }
blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 6px solid var(--violet); background: #f1e7ff; border-radius: 12px; }

footer { text-align: center; padding: 26px 16px 44px; font-size: 0.98rem; }
footer .status { max-width: 640px; margin: 0 auto 0.8em; font-weight: 800; }
footer .small { opacity: 0.75; font-size: 0.88rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* the maker: a round portrait in the game's chunky frame, with the guide beast peeking in */
.maker { display: grid; grid-template-columns: auto 1fr; gap: 12px 34px; align-items: center; }
.portrait { position: relative; width: 150px; height: 150px; margin: 14px 26px 22px 14px; }
.portrait .photo {
  display: block; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--ink);
  box-shadow: 0 0 0 6px var(--yellow), 0 0 0 10px var(--ink), 0 8px 0 10px var(--ink);
}
.portrait .buddy { position: absolute; right: -40px; bottom: -26px; width: 92px; max-width: none; }
.portrait.solo .buddy { position: static; width: 150px; }
.maker-name { font-size: 1.6rem; font-weight: 900; margin: 0; }
.maker-role { margin: 0; font-weight: 800; opacity: 0.8; }
.sig { font-weight: 900; margin-bottom: 0.4em; }
@media (max-width: 560px) {
  .maker { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .maker h2, .maker p { text-align: left; }
  .maker .maker-name, .maker .maker-role { text-align: center; }
}
.maker::after { display: none; }

/* Waitlist form */
.waitlist label { display: block; font-weight: 800; margin: 6px 0; }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-row input[type=email] { flex: 1 1 220px; min-width: 0; font: inherit; padding: 10px 14px; border-radius: 14px; border: 3px solid var(--ink); }
.wl-status { font-weight: 800; min-height: 1.4em; margin: 10px 0 0; }
.soon-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
html { scroll-behavior: smooth; }
.wl-dialog { width: min(520px, calc(100% - 32px)); box-sizing: border-box; padding: 22px 20px 12px; text-align: left;
  background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 10px 0 var(--ink); }
.wl-dialog::backdrop { background: rgba(20, 10, 40, 0.65); }
.wl-dialog h2 { margin: 0 36px 8px 0; }
.wl-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font-family: inherit; font-size: 2rem; font-weight: 800; line-height: 1; cursor: pointer; }
.wl-close:hover, .wl-close:focus-visible { background: rgba(38, 19, 63, 0.1); }
/* the web demo in the menu: a yellow pill */
.top nav a.play { background: var(--yellow); color: var(--ink); }
.top nav a.play:hover, .top nav a.play:focus-visible { border-color: var(--cream); }
