/* Tower Defense VR - td.yikkie.com
   Neon on dark metal: cyan / magenta / amber, like the game. */

@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url(../fonts/chakra-petch-500.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(../fonts/chakra-petch-700.woff2) format("woff2"); }

:root {
  --bg: #07090f;
  --bg-2: #0d1119;
  --panel: #111723;
  --panel-edge: #1f2a3b;
  --text: #e8edf6;
  --muted: #9aa6ba;
  --cyan: #22e6ff;
  --magenta: #ff3bd4;
  --amber: #ffb62e;
  --green: #7dff4a;
  --radius: 14px;
  --wrap: 1120px;
  --head: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(34, 230, 255, .07), transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, rgba(255, 59, 212, .06), transparent 60%);
  color: var(--text);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8ff3ff; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--panel); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 15, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 230, 255, .14);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand:hover { color: #fff; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--head); font-weight: 500; font-size: .95rem; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(34, 230, 255, .08); }
section[id] { scroll-margin-top: 64px; }
@media (max-width: 640px) {
  .site-head { position: static; }
  .site-head .wrap { flex-wrap: wrap; gap: 2px 12px; padding: 8px 0 6px; }
  .nav { margin: 0 -8px; width: calc(100% + 16px); justify-content: space-between; flex-wrap: nowrap; gap: 0; }
  .nav a { padding: 6px 8px; font-size: .88rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 700; font-size: 1.02rem; letter-spacing: .03em;
  text-decoration: none; color: #041015;
  background: linear-gradient(135deg, var(--cyan), #6ff 60%, #b9f7ff);
  padding: 13px 22px; border-radius: 12px; border: 0;
  box-shadow: 0 0 0 1px rgba(34, 230, 255, .4), 0 6px 26px rgba(34, 230, 255, .28);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #041015; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(34, 230, 255, .6), 0 8px 34px rgba(34, 230, 255, .42); }
.btn.alt { color: var(--text); background: rgba(255, 59, 212, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 59, 212, .7), 0 0 22px rgba(255, 59, 212, .18); }
.btn.alt:hover { color: #fff; background: rgba(255, 59, 212, .18); }
.btn[aria-disabled="true"] { cursor: default; }
.btn small { font-weight: 500; font-size: .78rem; opacity: .75; display: block; line-height: 1.1; }
.btn .stack { text-align: left; line-height: 1.15; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 820px); display: grid; align-items: end; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, .55) 0%, rgba(7, 9, 15, .1) 30%, rgba(7, 9, 15, .15) 55%, rgba(7, 9, 15, .92) 88%, var(--bg) 100%);
}
.hero .wrap { padding: 12vh 0 56px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.hero-logo { width: min(760px, 92%); filter: drop-shadow(0 8px 40px rgba(0, 0, 0, .6)); margin-bottom: 8vh; }
.tagline { font-family: var(--head); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.75rem); margin: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.tagline span { color: var(--cyan); }
.tagline span + span { color: var(--magenta); }
.tagline span + span + span { color: var(--amber); }
.badge {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(255, 182, 46, .55); background: rgba(12, 10, 6, .72);
  padding: 5px 12px; border-radius: 99px;
}
.hero .btns { justify-content: center; }
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-bg img { object-position: 30% 60%; }
  .hero .wrap { padding: 56px 0 36px; }
  .hero-logo { margin-bottom: 14vh; }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: #cfd7e6; }
.pitch { padding-top: 32px; }
.pitch .lead { max-width: 820px; font-size: clamp(1.1rem, 2vw, 1.3rem); }

/* neon panel */
.panel {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--panel-edge); border-radius: var(--radius); padding: 22px 22px 20px;
}
.panel::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px;
  background: var(--accent, var(--cyan)); box-shadow: 0 0 14px var(--accent, var(--cyan));
}
.panel h3 { color: #fff; }
.panel p:last-child { margin-bottom: 0; }
.c-cyan { --accent: var(--cyan); }
.c-magenta { --accent: var(--magenta); }
.c-amber { --accent: var(--amber); }
.c-green { --accent: var(--green); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.features .panel p { color: #c3cbd9; font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li { font-size: .8rem; font-family: var(--head); font-weight: 500; color: var(--muted); border: 1px solid var(--panel-edge); padding: 2px 9px; border-radius: 99px; }

/* screenshots */
.shots { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); }
.shots button { all: unset; cursor: zoom-in; border-radius: 10px; overflow: hidden; border: 1px solid var(--panel-edge); aspect-ratio: 16 / 9; position: relative; }
.shots button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.shots button:hover img { transform: scale(1.04); }
.shots button:nth-child(1), .shots button:nth-child(2) { grid-column: span 3; }
.shots button:nth-child(n+3) { grid-column: span 2; }
/* 10 shots: 2 big, two rows of 3, then the last 2 big again */
.shots button:nth-last-child(-n+2):nth-child(n+9) { grid-column: span 3; }
@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots button:nth-child(n) { grid-column: span 1; }
  .shots button:nth-child(1) { grid-column: span 2; }
  .shots button:last-child:nth-child(even) { grid-column: span 2; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(3, 5, 9, .92); }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 10px; }
.lightbox p { text-align: center; color: var(--muted); margin: 10px 0 0; }
.lightbox form { position: absolute; top: 8px; right: 8px; }
.lightbox .nav { all: unset; cursor: pointer; position: absolute; top: calc(50% - 40px); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font: 700 2rem/1 var(--head); }
.lightbox .nav:hover, .lightbox .nav:focus-visible { background: rgba(0, 0, 0, .85); outline: 2px solid var(--cyan); }
.lightbox .prev { left: 8px; }
.lightbox .next { right: 8px; }
.lightbox .close { all: unset; cursor: pointer; font: 700 1.5rem/1 var(--head); color: #fff; background: rgba(0, 0, 0, .6); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }


/* creators */
.creators .panel { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr; align-items: center; padding: 32px; }
.creators ul { margin: 0 0 1em; padding-left: 1.2em; color: #c3cbd9; }
@media (max-width: 760px) { .creators .panel { grid-template-columns: 1fr; padding: 24px 20px; } }

/* specs */
.specs { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border: 1px solid var(--panel-edge); border-radius: var(--radius); overflow: hidden; }
.specs div { padding: 16px 18px; border: 1px solid var(--panel-edge); margin: -1px 0 0 -1px; }
.specs dt { font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; color: #fff; }
.doc h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); vertical-align: middle; transform: translateY(-2px); }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .35em; }
.doc .updated { color: var(--muted); font-size: .95rem; }
.summary { border-left: 3px solid var(--amber); background: rgba(255, 182, 46, .06); padding: 18px 20px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary h2::before { display: none; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--panel-edge); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--panel-edge); }
th { font-family: var(--head); font-weight: 700; color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .stack-table thead { display: none; }
  .stack-table tr { display: block; border-bottom: 1px solid var(--panel-edge); padding: 8px 0; }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table td { display: block; border: 0; padding: 4px 14px; }
  .stack-table td::before { content: attr(data-label); display: block; font: 700 .72rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}
kbd { font: 700 .85em var(--head); background: var(--panel); border: 1px solid var(--panel-edge); border-bottom-width: 2px; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }

/* FAQ */
details { border: 1px solid var(--panel-edge); border-radius: 12px; background: var(--panel); margin: 10px 0; }
summary { cursor: pointer; padding: 14px 18px; font-family: var(--head); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--cyan); font-size: 1.3rem; width: 14px; flex: none; }
details[open] summary::before { content: "\2212"; }
details > div { padding: 0 18px 8px 44px; color: #c9d1de; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 20px 0 32px; }
.contact-card a.email { font: 700 1.25rem var(--head); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--panel-edge); padding: 36px 0 44px; color: var(--muted); font-size: .92rem; margin-top: 24px; }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot nav a { color: var(--text); text-decoration: none; }
.site-foot nav a:hover { color: var(--cyan); }
.site-foot .legal { font-size: .8rem; opacity: .8; }
.yikkie-mark { font-family: var(--head); font-weight: 700; letter-spacing: .08em; color: var(--text); text-decoration: none; }
.doc .data-list { margin: 1.2em 0; }
.doc .data-list dt { color: #fff; font-weight: 700; margin-top: 1.3em; }
.doc .data-list dd { margin: .4em 0 0; padding: .2em 0 .2em 16px; border-left: 2px solid var(--cyan); line-height: 1.65; }
