/* Dimensions game page: the Euclidean world's palette from the game. */
:root {
  --bg: #070f1b; --panel: #101d2b; --line: #293f50;
  --ink: #edf5ff; --muted: #8197ac; --accent: #82e8ed;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle, rgba(130, 232, 237, .16) 1px, transparent 1.4px) 0 0 / 28px 28px,
    var(--bg);
}
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }

/* Rings are drawn by ::before inside a full-width box that clips them, so they never widen the page. */
.rings { position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 600px; overflow: hidden; pointer-events: none; }
.rings::before {
  content: ""; position: absolute; top: -260px; right: -260px; width: 820px; height: 820px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 46px, rgba(130, 232, 237, .07) 47px 48px);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .rings::before { animation: breathe 14s ease-in-out infinite alternate; }
  @keyframes breathe { to { transform: scale(1.06) rotate(8deg); } }
}

.top, .hero, main, footer { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { padding-top: 20px; font-size: .9rem; }
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 32px; padding-bottom: 48px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1fr 340px; padding-top: 56px; } }
.kicker, .section-head h2, .worlds .tag {
  margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}
.title { display: flex; align-items: center; gap: 18px; margin: 14px 0 22px; }
.title img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 40px rgba(199, 133, 236, .35); }
h1 { margin: 0; font-size: clamp(2.4rem, 11vw, 4.6rem); line-height: 1; font-weight: 700; letter-spacing: .01em; }
.lead { margin: 0; max-width: 34em; font-size: 1.12rem; color: #c9d6e3; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600;
}
.button.primary { border-color: var(--accent); color: var(--accent); background: rgba(130, 232, 237, .08); }
.button.primary:hover { background: rgba(130, 232, 237, .16); }
.button.soon { color: var(--muted); font-weight: 500; }
.meta { margin: 0; color: var(--muted); font-size: .9rem; }
.phone { margin: 0 auto; width: min(300px, 78vw); }
.phone img {
  border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 8px rgba(16, 29, 43, .8);
}

/* Sections */
main section { padding: 40px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.note { margin: 20px 0 0; max-width: 44em; color: var(--muted); font-size: .95rem; }

/* Figure atlas */
.figures { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) { .figures { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(6, 1fr); } }
.figures li {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 6px 12px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--panel)), var(--panel));
  color: var(--c); transition: transform .2s, border-color .2s;
}
.figures li:hover { transform: translateY(-3px); border-color: var(--c); }
.figures .num, .figures .dim { position: absolute; top: 8px; font-size: .72rem; opacity: .8; }
.figures .num { left: 10px; }
.figures .dim { right: 10px; }
.figures svg {
  width: 58%; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 5px currentColor);
}
.figures strong { margin-top: 8px; color: var(--ink); font-size: .86rem; font-weight: 600; text-align: center; line-height: 1.25; }
.figures .value { color: var(--muted); font-size: .78rem; }
@media (prefers-reduced-motion: no-preference) {
  .figures li:nth-child(n+9) svg { animation: turn 18s linear infinite; }
  .figures li:nth-child(12) svg { animation: sway 5s ease-in-out infinite alternate; }
  @keyframes turn { to { transform: rotate(360deg); } }
  @keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
}

/* Worlds: each card uses that world's palette */
.worlds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .worlds { grid-template-columns: repeat(2, 1fr); } .worlds li:last-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .worlds { grid-template-columns: repeat(6, 1fr); } .worlds li { grid-column: span 2; } .worlds li:nth-child(n+4) { grid-column: span 3; } }
.worlds li {
  padding: 20px; border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--panel), var(--bg)); color: var(--ink);
}
.worlds .tag { font-size: .68rem; letter-spacing: .2em; }
.worlds h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.worlds p { margin: 0; color: var(--muted); font-size: .92rem; }
.worlds .stats, .worlds .mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.worlds .mods { margin-top: 6px; }
.worlds .stats span, .worlds .mods span {
  padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: .8rem; color: var(--ink);
}
.worlds .stats span:last-child { color: var(--accent); border-color: var(--accent); }

/* Screenshots */
.shots {
  list-style: none; margin: 0 -16px; padding: 4px 16px 16px; display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.shots li { flex: 0 0 min(220px, 60vw); scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 1px solid var(--line); }

/* Features */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.features strong { display: block; color: var(--ink); }

footer {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 24px; padding-bottom: 48px;
  border-top: 1px solid var(--line); font-size: .9rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
