/* TTK Roblox Guide: concrete slab + bodycam field report. Orange is the only accent. */
:root {
  --bg: #E6EAEC;
  --card: #F5F7F8;
  --ink: #161C20;
  --muted: #4F5C64;
  --line: #C3CCD1;
  --dark: #0E1418;
  --dark-2: #1A2328;
  --on-dark: #D7E0E4;
  --on-dark-muted: #9FB0B8;
  --accent: #E8A317;
  --accent-deep: #C98A0A;
  --teal: #2E5E6E;
  --radius: 8px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06);
  --shadow-2: 0 8px 24px rgba(0,0,0,.08);
  --f-head: "Archivo Black", "Arial Black", Arial, sans-serif;
  --f-body: "Inter", Arial, Helvetica, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body { margin: 0; background: var(--bg); background-image: linear-gradient(to right, rgba(22,28,32,.045) 1px, transparent 1px); background-size: 64px 100%; color: var(--ink); font-family: "Inter", Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; }

a:hover { color: var(--ink); }

a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--dark); padding: 8px 16px; z-index: 10; font-weight: 600; }

.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--f-mono); }

.small { font-size: 14px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }

h1 { font-size: 48px; text-transform: uppercase; }

h2 { font-size: 28px; margin-bottom: 16px; }

h3 { font-size: 18px; margin-bottom: 8px; }

/* header */
.top { background: var(--dark); border-bottom: 4px solid var(--accent); }

.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }

.brand-mark { position: relative; width: 24px; height: 24px; border: 2px solid var(--accent); border-radius: 50%; flex: none; }

.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--accent); }

.brand-mark::before { left: 50%; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; }

.brand-mark::after { top: 50%; left: -6px; right: -6px; height: 2px; margin-top: -1px; }

.brand-mark i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--dark); z-index: 1; }

.brand-name { font-family: var(--f-head); font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; }

.brand-sub { font-family: var(--f-mono); font-size: 12px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.nav a { color: var(--on-dark); text-decoration: none; font-family: var(--f-mono); font-size: 14px; padding: 8px 0; border-bottom: 2px solid transparent; }

.nav a:hover { color: #fff; border-bottom-color: var(--accent); }

/* REC tag */
.rec { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); }

.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s steps(2, start) infinite; }

@keyframes blink { to { visibility: hidden; } }

@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } html { scroll-behavior: auto; } }

.doc .rec, .lost .rec { color: var(--ink); }

/* hero */
.hero { background: var(--dark); color: var(--on-dark); padding: 48px 0 32px; }

.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }

.hero h1 { color: #fff; font-size: 48px; margin-bottom: 16px; }

.hero .lead { font-size: 18px; margin: 0 0 24px; color: var(--on-dark); max-width: 56ch; }

.lead-dark { font-size: 18px; max-width: 56ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--accent); color: var(--dark); font-weight: 600; font-size: 16px; text-decoration: none; border-radius: var(--radius); border: 2px solid var(--accent); }

.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--dark); }

.btn.ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }

.btn.ghost:hover { background: var(--dark-2); color: #fff; border-color: var(--on-dark); }

.lost .btn.ghost { color: var(--ink); border-color: var(--muted); }

.lost .btn.ghost:hover { background: var(--card); color: var(--ink); }

/* viewfinder frame */
.vf { position: relative; margin: 0; padding: 8px; background: var(--dark-2); border-radius: var(--radius); }

.vf img { width: 100%; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; }

.vf figcaption { font-size: 12px; color: var(--on-dark-muted); padding: 8px 4px 0; letter-spacing: 0.04em; }

.vf .c { position: absolute; width: 20px; height: 20px; border: 0 solid var(--accent); pointer-events: none; }

.vf .tl { left: 0; top: 0; border-top-width: 3px; border-left-width: 3px; }

.vf .tr { right: 0; top: 0; border-top-width: 3px; border-right-width: 3px; }

.vf .bl { left: 0; bottom: 0; border-bottom-width: 3px; border-left-width: 3px; }

.vf .br { right: 0; bottom: 0; border-bottom-width: 3px; border-right-width: 3px; }

.vf-wide { margin: 0 0 32px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 48px 0 0; background: var(--dark-2); border: 1px solid var(--dark-2); border-radius: var(--radius); overflow: hidden; }

.stat { background: var(--dark); padding: 16px; }

.stat dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }

.stat dd { margin: 4px 0 0; font-family: var(--f-mono); font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--accent); }

.stats-note { margin: 12px 0 0; font-size: 12px; color: var(--on-dark-muted); }

/* sections */
.sec { padding: 64px 0; }

.sec-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-h { margin-bottom: 24px; }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }

.split-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }

.prose { max-width: 70ch; }

.prose p, .prose li { font-size: 16px; }

.prose p { margin: 0 0 16px; }

.prose h2 { margin-top: 48px; }

.prose h2:first-child { margin-top: 0; }

.prose h3 { margin-top: 32px; }

.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }

.prose li { margin-bottom: 8px; }

.prose strong { font-weight: 600; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; background: var(--card); }

.prose th, .prose td { text-align: left; padding: 8px 12px; border: 1px solid var(--line); vertical-align: top; }

.prose th { background: var(--dark); color: var(--on-dark); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

.prose blockquote { margin: 0 0 24px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--card); }

.prose blockquote p:last-child { margin-bottom: 0; }

.prose code { font-family: var(--f-mono); font-size: 14px; background: var(--card); padding: 0 4px; border-radius: 4px; }

/* guides index */
.guides { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.guides li { counter-increment: g; }

.guides a { position: relative; display: block; height: 100%; padding: 16px 16px 16px 64px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); }

.guides a::before { content: counter(g, decimal-leading-zero); position: absolute; left: 16px; top: 16px; font-family: var(--f-mono); font-weight: 700; font-size: 22px; color: var(--accent-deep); }

.guides a:hover { border-color: var(--accent); box-shadow: var(--shadow-2); }

.guides strong { display: block; font-weight: 600; margin-bottom: 4px; }

.guides span { display: block; font-size: 14px; color: var(--muted); }

.guides:empty::after { content: "New guides are on the way."; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }

/* dossier */
.dossier { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--dark); border-radius: var(--radius); padding: 16px 24px 24px; box-shadow: var(--shadow-2); }

.dossier-h { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }

.dossier dl { margin: 0; }

.drow { padding: 12px 0; border-bottom: 1px dashed var(--line); }

.drow:last-child { border-bottom: 0; padding-bottom: 0; }

.drow dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.drow dd { margin: 4px 0 0; font-size: 16px; }

/* trust tags */
.tag { display: inline-block; vertical-align: middle; padding: 0 8px; border-radius: 4px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; line-height: 20px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

.tag-official { background: var(--teal); color: #fff; }

.tag-multi { background: var(--dark); color: var(--on-dark); }

.tag-reported { background: transparent; color: var(--ink); border: 1px solid var(--ink); line-height: 18px; }

.tag-unconfirmed { background: var(--accent); color: var(--dark); }

/* keycaps */
.keys { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.key { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }

.key kbd { flex: none; min-width: 56px; height: 56px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 700; font-size: 18px; color: var(--dark); background: var(--card); border: 2px solid var(--dark); border-bottom-width: 5px; border-radius: var(--radius); }

.key span { font-size: 16px; }

/* event log */
.log { list-style: none; margin: 32px 0 0; padding: 0; border-left: 3px solid var(--dark); }

.log-item { display: grid; grid-template-columns: 148px 1fr; gap: 24px; padding: 16px 0 16px 24px; border-bottom: 1px solid var(--line); }

.log-item:last-child { border-bottom: 0; }

.log-item h3 { margin-bottom: 4px; }

.log-item p { margin: 0; max-width: 64ch; }

/* codes slip */
.slip { margin: 0 0 24px; padding: 24px; max-width: 560px; background: var(--card); border: 2px dashed var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-1); }

.slip-h { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }

.slip-v { margin: 4px 0 8px; font-family: var(--f-head); font-size: 36px; line-height: 1.2; text-transform: uppercase; }

.slip .small { margin: 0; color: var(--muted); }

/* ad */
.ad-slot { max-width: 1120px; margin: 0 auto; padding: 24px; text-align: center; }

.ad-label { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.ad-box { display: flex; align-items: center; justify-content: center; min-height: 250px; width: 100%; max-width: 300px; margin: 0 auto; overflow: hidden; }

/* faq */
.faq { max-width: 860px; }

.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }

.faq-item summary { cursor: pointer; padding: 16px 24px; font-weight: 600; font-size: 16px; list-style: none; position: relative; padding-right: 48px; }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 12px; font-family: var(--f-mono); font-size: 22px; color: var(--accent-deep); }

.faq-item[open] summary::after { content: "\2212"; }

.faq-item[open] summary { border-bottom: 1px dashed var(--line); }

.faq-a { padding: 16px 24px; }

.faq-a p { margin: 0 0 12px; }

.faq-a p:last-child { margin-bottom: 0; }

/* inner pages */
.doc { padding-top: 32px; padding-bottom: 64px; }

.crumbs { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 24px; }

.crumbs a { color: var(--teal); }

.crumbs span { margin: 0 4px; }

.page-head { margin-bottom: 24px; }

.page-head h1 { font-size: 48px; margin-bottom: 8px; max-width: 18ch; }

.page-head .mono { margin: 0; color: var(--muted); }

.answer { max-width: 760px; margin: 0 0 32px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-2); }

.answer-label { margin: 0 0 8px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.answer-body { font-size: 18px; }

.answer-body p { margin: 0 0 8px; }

.answer-body p:last-child { margin-bottom: 0; }

.related { margin-top: 48px; }

.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.related-item { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); }

.related-item:hover { border-color: var(--accent); }

.related-item .mono { color: var(--muted); }

.paper { max-width: 760px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }

.paper h1 { font-size: 36px; margin-bottom: 8px; }

.paper .mono { margin: 0 0 24px; color: var(--muted); }

.lost { text-align: left; padding-top: 64px; }

/* footer */
.foot { background: var(--dark); color: var(--on-dark); padding: 48px 0 24px; border-top: 4px solid var(--accent); }

.foot-in { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }

.foot-about { max-width: 560px; }

.foot-name { margin: 0 0 8px; font-family: var(--f-head); font-size: 18px; text-transform: uppercase; color: #fff; }

.foot .small { color: var(--on-dark-muted); margin: 0; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }

.foot-links a { color: var(--on-dark); font-family: var(--f-mono); font-size: 14px; }

.foot-copy { margin-top: 32px !important; }

/* mobile */
@media (max-width: 900px) {
  .hero-in, .split, .split-img { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .keys { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1, .hero h1, .page-head h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .hero { padding: 24px 0 24px; }
  .sec { padding: 48px 0; }
  .top-in { flex-direction: column; align-items: flex-start; gap: 4px; }
  .brand-sub { display: none; }
  .nav { gap: 0 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat dd { font-size: 22px; }
  .keys { grid-template-columns: 1fr; }
  .log-item { grid-template-columns: 1fr; gap: 8px; padding-left: 16px; }
  .btn { width: 100%; }
  .paper { padding: 16px; }
  .slip-v { font-size: 28px; }
  .prose table { display: block; overflow-x: auto; }
  .faq-item summary { padding: 16px; padding-right: 48px; }
  .faq-item summary::after { right: 16px; }
  .faq-a { padding: 16px; }
}


