/* Suplex Gaming — placeholder
   Look: near-black field, quiet light grid, cyan ticks at the four grid
   intersections that frame the wordmark (after the X header). */

:root {
  --bg: #0a0a0a;
  --bg-lift: #151515;
  --ink: #f2f2f2;
  --ink-2: #b4b4b4;
  --ink-3: #9a9a9a;
  --line: rgb(255 255 255 / 0.085);
  --cyan: #00e5ff;

  /* Grid cell. The wordmark frame is 4 x 2 cells, so its corners sit on
     grid intersections. Rounded to 2px so lines land on whole pixels. */
  --cell: clamp(72px, 17vw, max(144px, 7.5vw));
  --tick: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@supports (width: round(10px, 2px)) {
  :root { --cell: round(clamp(72px, 17vw, max(144px, 7.5vw)), 2px); }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

/* Full-height stage. It clips the grid layer (drawn from the wordmark
   frame outwards) so the grid never adds scroll. */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

@supports (overflow: clip) {
  .stage { overflow: clip; }
}

.page,
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-inline: 24px;
  text-align: center;
}

/* Content block sits optically centred: true centre of the space above the
   footer, nudged up slightly by a deeper bottom pad. */
.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(32px, 6svh, 96px);
  padding-bottom: clamp(48px, 10svh, 136px);
}

/* Wordmark frame: 4 x 2 cells, cyan ticks on its corners */
.mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--cell) * 4);
  height: calc(var(--cell) * 2);
  margin: 0;
  font-size: inherit;
}

/* Grid + soft lift, anchored to the frame so its corners always sit on
   grid intersections wherever the frame lands. Lines are 1px, centred on
   the cell edges; the mask fades the grid out toward the viewport edges. */
.mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(var(--cell) * -12);
  pointer-events: none;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px)
      calc(-0.5px) 0 / var(--cell) var(--cell),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px)
      0 calc(-0.5px) / var(--cell) var(--cell),
    radial-gradient(ellipse 70vw 55svh at 50% 50%, var(--bg-lift), transparent 70%)
      center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 85vw 75svh at 50% 52%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85vw 75svh at 50% 52%, #000 35%, transparent 100%);
}

.mark::before {
  content: "";
  position: absolute;
  inset: calc(var(--tick) * -1);
  pointer-events: none;
  --c: linear-gradient(var(--cyan), var(--cyan));
  background:
    var(--c) left 0 top calc(var(--tick) - 1px) / calc(var(--tick) * 2) 2px no-repeat,
    var(--c) right 0 top calc(var(--tick) - 1px) / calc(var(--tick) * 2) 2px no-repeat,
    var(--c) left 0 bottom calc(var(--tick) - 1px) / calc(var(--tick) * 2) 2px no-repeat,
    var(--c) right 0 bottom calc(var(--tick) - 1px) / calc(var(--tick) * 2) 2px no-repeat,
    var(--c) left calc(var(--tick) - 1px) top 0 / 2px calc(var(--tick) * 2) no-repeat,
    var(--c) right calc(var(--tick) - 1px) top 0 / 2px calc(var(--tick) * 2) no-repeat,
    var(--c) left calc(var(--tick) - 1px) bottom 0 / 2px calc(var(--tick) * 2) no-repeat,
    var(--c) right calc(var(--tick) - 1px) bottom 0 / 2px calc(var(--tick) * 2) no-repeat;
  opacity: 0.9;
}

.mark img {
  display: block;
  width: 92%;
  height: auto;
  max-height: 80%;
  object-fit: contain;
}

/* Copy */
.copy {
  max-width: 34rem;
  margin-top: clamp(36px, 6svh, 64px);
}

/* "Website coming soon": HUD-style status pill, cyan hairline */
.status {
  display: inline-block;
  margin: 0 0 clamp(18px, 2.6svh, 24px);
  padding: 5px 12px 5px calc(12px + 0.2em);
  border: 1px solid var(--cyan);
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.tagline {
  margin: 0;
  font-size: clamp(1.125rem, 0.95rem + 0.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

/* Links */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin: clamp(28px, 4.5svh, 44px) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.links li {
  display: flex;
  align-items: center;
}

.links li + li::before {
  content: "";
  width: 1px;
  height: 14px;
  margin: 0 20px;
  background: rgb(255 255 255 / 0.22);
}

a {
  color: var(--ink);
  text-decoration: none;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 6px 2px;
  border-radius: 2px;
  transition: color 160ms ease;
}

.links .icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  color: var(--ink-2);
  transition: color 160ms ease;
}

.links .icon-x {
  width: 1em;
  height: 1em;
}

.links .label {
  padding-bottom: 1px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 0 1px no-repeat;
  transition: background-size 220ms ease;
}

.links a:hover,
.links a:focus-visible {
  color: #fff;
}

.links a:hover .icon,
.links a:focus-visible .icon {
  color: var(--cyan);
}

.links a:hover .label,
.links a:focus-visible .label {
  background-size: 100% 1px;
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Footer */
.footer {
  flex: none;
  padding-block: 0 28px;
}

.footer p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--cyan);
  font-size: 0.875rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Small phones: links stack instead of splitting awkwardly */
@media (max-width: 400px) {
  .links {
    flex-direction: column;
    align-items: center;
  }
  .links li + li::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
