/* Traki studio site — Midnight arcade palette */
:root {
  --bg: #07070D;
  --surface: #11111C;
  --surface-2: #1A1A2A;
  --line: #26263A;
  --text: #E8E8FF;
  --muted: #9A9AB8;
  --violet: #7C5CFF;
  --violet-soft: #A994FF;
  --sun: #FFD447;
  --radius: 16px;
  --max: 960px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--violet-soft); text-underline-offset: 3px; }
a:hover { color: var(--sun); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; text-align: center; }
.orbit {
  position: absolute; left: 50%; top: 0; width: min(640px, 130vw); aspect-ratio: 1;
  transform: translate(-50%, -58%); border: 2px solid rgba(124, 92, 255, .28); border-radius: 50%;
  pointer-events: none;
}
.hero img { width: min(420px, 80vw); margin: 0 auto 28px; position: relative; }
.hero p { color: var(--muted); font-size: 20px; margin: 0 auto; max-width: 30ch; position: relative; }

/* sections */
section { padding: 48px 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 28px; margin: 0 0 24px; }

.game {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
}
.game + .game { margin-top: 24px; }
.game img { border-radius: 18px; border: 1px solid var(--line); }
.game h3 { font-size: 26px; margin: 0 0 8px; }
.game p { color: var(--muted); margin: 0 0 16px; }
.tag {
  display: inline-block; font-size: 13px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 212, 71, .12); color: var(--sun); margin-bottom: 12px;
}
.links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; }

.about { color: var(--muted); max-width: 62ch; }

/* legal + support pages */
.doc { padding-top: 56px; padding-bottom: 72px; max-width: 800px; }
.doc h1 { font-size: 38px; margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #CFCFEA; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--violet);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 0 0 32px;
}
.callout p { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; }
td { color: #CFCFEA; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 20px; margin: 0 0 12px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.mail {
  display: inline-block; background: var(--violet); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
}
.mail:hover { background: var(--sun); color: var(--bg); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand img { height: 30px; }
  .hero { padding: 64px 0 48px; }
  .game { grid-template-columns: 1fr; padding: 20px; }
  .game img { max-width: 280px; width: 100%; margin: 0 auto; }
  .doc h1 { font-size: 30px; }
}

/* Licenses page */
pre.license { white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.5; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; max-height: 320px; overflow: auto; color: var(--muted); }
