:root {
  --void: #0b1220;
  --face: #152238;
  --cyan: #3de0d0;
  --mag: #7a6cff;
  --ink: #eaf2ff;
  --muted: #9aabc4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Karla, system-ui, sans-serif;
  background: var(--void);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--cyan); }
h1, h2, h3, .logo, .cube b { font-family: Syne, sans-serif; font-weight: 800; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 4vw;
  background: #070c16;
  border-bottom: 1px solid #243044;
  position: sticky;
  top: 0;
  z-index: 8;
}
.logo { letter-spacing: 0.08em; font-size: 18px; }
.logo span { color: var(--cyan); }
.chip { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lang { margin-left: auto; display: flex; border: 1px solid #243044; }
.lang button {
  border: 0; background: transparent; color: var(--ink);
  padding: 7px 12px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
}
.lang button.active { background: var(--cyan); color: #0b1220; }

.hall {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 36px 4vw 24px;
  align-items: center;
}
.stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cube {
  aspect-ratio: 1;
  border: 0;
  background: var(--face);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  display: grid;
  place-content: center;
  gap: 4px;
  box-shadow: 8px 8px 0 #081018;
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
}
.cube b { color: var(--cyan); font-size: 16px; }
.cube span { font-size: 13px; font-weight: 700; }
.cube.on {
  background: var(--mag);
  box-shadow: 8px 8px 0 #3de0d0;
}
.cube.on b { color: #fff; }

.face {
  background: var(--face);
  border: 1px solid #243044;
  padding: 28px 24px;
  min-height: 280px;
}
.ch { color: var(--cyan); font-size: 12px; letter-spacing: 0.18em; font-weight: 800; margin-bottom: 10px; }
.face h1 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 12px; }
.face p { color: var(--muted); }
.cue {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #243044;
  color: var(--cyan) !important;
}

.tape {
  overflow: hidden;
  background: var(--mag);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape p {
  display: inline-block;
  padding-left: 100%;
  animation: tick 28s linear infinite;
}
@keyframes tick { to { transform: translateX(-100%); } }

.copy, .walk, .rules, .dock { padding: 40px 4vw; }
.kicker { color: var(--cyan); font-size: 11px; letter-spacing: 0.18em; font-weight: 800; margin-bottom: 10px; }
.copy h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; max-width: 18ch; }
.lead { color: var(--muted); max-width: 68ch; margin-bottom: 24px; }
.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.faces article { background: var(--face); padding: 18px; border-top: 3px solid var(--cyan); }
.faces h3 { font-size: 20px; margin-bottom: 8px; }
.faces p { color: var(--muted); }

.walk ol {
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-top: 12px;
  counter-reset: cu;
}
.walk li {
  border: 1px solid #243044;
  padding: 14px 16px 14px 56px;
  color: var(--muted);
  position: relative;
}
.walk li::before {
  counter-increment: cu;
  content: counter(cu, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--cyan);
  font-weight: 800;
  font-family: Syne, sans-serif;
}

.rules ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.rules li {
  background: var(--face);
  padding: 16px;
  border-top: 3px solid var(--mag);
  color: var(--muted);
}

.dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: #10182a;
}
.dock h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 12px; }
.dock p { color: var(--muted); }
address { font-style: normal; margin-top: 16px; }
address p { margin: 4px 0; }
form { display: grid; gap: 10px; }
@media (min-width: 700px) {
  form { grid-template-columns: 1fr 1fr; }
  .wide, form button, .note { grid-column: 1 / -1; }
}
label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
input, textarea {
  font: inherit; padding: 10px;
  background: var(--void); color: var(--ink); border: 1px solid #243044;
}
button[type="submit"] {
  justify-self: start;
  background: var(--cyan); color: #0b1220; border: 0;
  padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer;
}
.note { font-size: 13px; color: var(--muted); }
footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 4vw 32px;
  color: var(--muted); font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .tape p { animation: none; padding-left: 4vw; white-space: normal; display: block; }
}
@media (max-width: 900px) {
  .hall, .faces, .rules ul, .dock { grid-template-columns: 1fr; }
  .stack { grid-template-columns: repeat(4, 1fr); }
  .lang { margin-left: 0; }
}
@media (max-width: 560px) {
  .stack { grid-template-columns: repeat(2, 1fr); }
}
