/* KORON landing page. Colours are the game's (godot/game/palette.gd). */
:root {
  --bg: #080f1b;
  --panel: #0e1826;
  --line: #33495e;
  --text: #dce7ef;
  --muted: #93a4b5;
  --amber: #ffbd62;
  --blue: #57cff0;
  --gutter: clamp(16px, 5vw, 40px);
  --measure: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 50% at 0% 20%, rgba(38, 86, 120, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 60%, rgba(120, 72, 32, 0.22), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "M PLUS 1p", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  padding-inline: var(--gutter);
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- top bar ------------------------------------------------------------ */

/* Full-bleed: the bar cancels the body's side gutter and puts it back as
   padding, so its background spans the window while the content lines up. */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  margin-inline: calc(-1 * var(--gutter));
  /* % is of the body's content box, which the gutter sits outside of */
  padding: 12px max(var(--gutter), (100% - var(--measure)) / 2 + var(--gutter));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 15, 27, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(51, 73, 94, 0.5);
}
.bar-logo { color: var(--text); font-weight: 300; letter-spacing: 0.4em; font-size: 15px; }
.bar-logo:hover { text-decoration: none; }
.bar-lang {
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 14px;
}
.bar-lang:hover { border-color: var(--blue); text-decoration: none; }

main { max-width: var(--measure); margin: 0 auto; }

/* --- hero ---------------------------------------------------------------- */

.hero { text-align: center; padding-block: clamp(24px, 6vw, 64px) 24px; }

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 5vw, 56px);
}
.cube { width: clamp(44px, 11vw, 96px); height: auto; flex: none; }
.cube-pull { color: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 189, 98, 0.45)); }
.cube-push { color: var(--blue); filter: drop-shadow(0 0 6px rgba(87, 207, 240, 0.45)); }

.logo {
  margin: 0;
  font-weight: 300;
  font-size: clamp(44px, 11vw, 104px);
  line-height: 1.1;
  letter-spacing: 0.32em;
  /* letter-spacing trails the last letter too; pull it back so the word centres */
  margin-right: -0.32em;
}
.rule { position: relative; height: 2px; margin: 18px auto 0; width: 100%; background: var(--line); }
.rule span {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: var(--amber); border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
}

.catch {
  margin: clamp(22px, 5vw, 40px) 0 10px;
  font-size: clamp(22px, 5.4vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 189, 98, 0.25);
}
.sub { margin: 0 auto 28px; max-width: 36em; color: var(--muted); }

.frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-video { box-shadow: 0 0 0 1px rgba(255, 189, 98, 0.18), 0 16px 60px rgba(0, 0, 0, 0.55); }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  cursor: default;
}
a.btn { color: var(--bg); background: var(--amber); border-color: var(--amber); font-weight: 700; cursor: pointer; }
a.btn:hover { text-decoration: none; filter: brightness(1.08); }

.nobr { display: inline-block; }

.meta { margin: 16px 0 0; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* --- sections ------------------------------------------------------------ */

.block { padding-block: clamp(40px, 8vw, 80px) 0; }
.block h2 {
  margin: 0 0 22px;
  font-size: clamp(20px, 4.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.block h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.about p { max-width: 42em; margin: 0 0 1em; }

.cards { display: grid; grid-template-columns: 1fr; gap: 28px 24px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { margin: 0; }
.card h3 { margin: 16px 0 4px; font-size: 18px; font-weight: 700; }
.card h3::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px;
  border: 1.5px solid var(--amber); transform: rotate(45deg) translateY(-2px);
}
.card.push h3::before { border-color: var(--blue); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.calm {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px;
}
.calm li {
  border: 1px solid var(--line); border-radius: 10px; background: rgba(14, 24, 38, 0.7);
  padding: 18px 20px;
}
.calm strong { display: block; font-size: 19px; color: var(--amber); }
.calm span { color: var(--muted); font-size: 14px; }

.story figcaption {
  padding: 18px 22px 22px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .story figure { display: grid; grid-template-columns: 3fr 2fr; align-items: stretch; }
  .story figure img { height: 100%; }
  .story figcaption { border-top: 0; border-left: 1px solid var(--line); display: flex; align-items: center; padding: 28px; font-size: 17px; }
}

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.shots a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.shots a:hover { border-color: var(--blue); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.info {
  margin: 0; max-width: 560px; display: grid; grid-template-columns: max-content 1fr;
  border-top: 1px solid var(--line);
}
.info dt, .info dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); padding-right: 28px; font-size: 14px; }

/* --- footer -------------------------------------------------------------- */

.foot {
  max-width: var(--measure);
  margin: clamp(56px, 10vw, 96px) auto 0;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.foot-links { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.foot-links span { color: var(--muted); }
.copy { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
