/* Grand Theft Timeline fan guide. Colours come from the game's own HUD: the warm charcoal of the timeline
   menu, the yellow of the year readout, the green of the time machine's destination screen, the red boss bar. */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/rubik.woff2) format("woff2"); }
:root {
  --bg: #16130f; --panel: #221e18; --panel2: #2b261f; --line: #3b342b; --text: #eee6d6; --mute: #b3a892;
  --yellow: #f4c542; --green: #4fdc8a; --red: #e0412f; --ink: #16130f;
  --r: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Rubik", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #ffd966; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 0; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.narrow { max-width: 700px; }
.mute { color: var(--mute); }
.fine { font-size: 14px; color: var(--mute); }

/* header */
.top { border-bottom: 1px solid var(--line); background: #110f0b; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 17px; white-space: nowrap; }
.brand img { border-radius: 6px; }
.brand span { color: var(--yellow); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--mute); text-decoration: none; padding: 8px 12px; border-radius: 6px; white-space: nowrap; font-size: 15px; transition: background .15s, color .15s; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current] { color: var(--text); background: var(--panel2); }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; gap: 0; padding: 8px 0 0; }
  .nav { margin: 0 -8px; width: calc(100% + 16px); padding-bottom: 6px; }
}

/* intro */
.intro { padding: 36px 0 18px; }
.intro p.lead { font-size: 18px; color: var(--mute); max-width: 72ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; }
.facts b { color: var(--yellow); font-weight: 700; }

/* HUD label, as the game prints it over every world */
.hud { display: inline-flex; flex-direction: column; line-height: 1.05; }
.hud .y { color: var(--yellow); font-weight: 800; letter-spacing: .01em; }
.hud .n { color: var(--text); font-weight: 600; font-size: .72em; text-transform: uppercase; letter-spacing: .02em; }

/* capture log app */
.log { padding: 8px 0 40px; }
.app { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.bar .tot { font-size: 15px; }
.bar .tot strong { color: var(--green); font-size: 18px; }
.prog { flex: 1 1 160px; height: 8px; background: #3a342b; border-radius: 4px; overflow: hidden; min-width: 120px; }
.prog i { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s ease; }
.packsel { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); }
.packsel select { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--mute); border-radius: 6px; padding: 7px 10px; }
.wl { position: relative; list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); max-height: 720px; overflow-y: auto; }
.wl li + li { border-top: 1px solid var(--line); }
.wl button, .wl a.row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; cursor: pointer; transition: background .15s; }
.wl button:hover, .wl a.row:hover { background: var(--panel2); }
.wl button[aria-pressed="true"] { background: #332c22; box-shadow: inset 3px 0 0 var(--yellow); }
.wl img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; }
.wl .hud { font-size: 17px; }
.wl .st { font-size: 13px; color: var(--mute); text-align: right; white-space: nowrap; }
.wl .st.done { color: var(--green); }
.pn { padding: 0; min-width: 0; }
.pn .shot { position: relative; }
.pn .shot img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.pn .shot .hud { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: 26px; text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.8); align-items: center; }
.pn .body { padding: 18px 20px 22px; }
.pn .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--mute); margin-bottom: 14px; }
.pn .meta b { color: var(--text); font-weight: 600; }
.boss { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.boss .bb { flex: 1; max-width: 420px; border: 2px solid #5a1d16; background: #2a1411; padding: 4px 10px; font-weight: 700; font-size: 14px; color: #ffd2c9; text-transform: uppercase; letter-spacing: .02em; }
.boss .bb i { display: block; height: 6px; margin-top: 4px; background: var(--red); }
.ticks { display: grid; gap: 6px; margin: 0 0 16px; }
.tk { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.tk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.tk label { cursor: pointer; }
.tk .sub { display: block; font-size: 14px; color: var(--mute); }
.tk.got { border-color: #2f6b47; background: #17251c; }
.tk.got label { color: var(--green); }
.tk.pop { animation: pop .28s ease; }
@keyframes pop { 50% { transform: scale(1.015); } }
.grp { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); margin: 16px 0 6px; }
.wall { border: 1px solid #5c4a1d; background: #241e12; border-radius: var(--r); padding: 16px 18px; margin: 6px 0 14px; }
.wall h3 { color: var(--yellow); }
.buy { font: inherit; font-weight: 700; color: var(--ink); background: var(--yellow); border: 0; border-radius: 6px; padding: 11px 18px; cursor: pointer; transition: transform .12s, background .15s; }
.buy:hover { background: #ffd65c; }
.buy:active { transform: scale(.97); }
.buy[disabled] { opacity: .7; cursor: progress; }
.signin { margin-top: 12px; font-size: 14px; }
.signin summary { cursor: pointer; color: var(--mute); }
.signin .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.signin input { font: inherit; flex: 1 1 200px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.signin button { font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; }
.passon { color: var(--green); font-size: 14px; }
.empty { color: var(--mute); font-size: 15px; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .wl { border-right: 0; border-bottom: 1px solid var(--line); max-height: 360px; }
  .pn .shot img { aspect-ratio: 16 / 9; }
}

/* sections */
.sec { padding: 40px 0; border-top: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--mute); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.tbl tr:hover td { background: #1d1914; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tscroll { overflow-x: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: block; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #6a5a3a; transform: translateY(-2px); color: var(--text); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .c { padding: 10px 14px 14px; }
.card .hud { font-size: 20px; }
.card p { margin: 6px 0 0; font-size: 14px; color: var(--mute); }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.figure { margin: 0 0 22px; }
.figure img { border-radius: var(--r); width: 100%; }
.figure figcaption { font-size: 14px; color: var(--mute); margin-top: 6px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.whero img { aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 860px) { .whero img { aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .intro { padding-top: 22px; } .intro p.lead { font-size: 16px; } .facts { gap: 4px 16px; font-size: 14px; } h1 { font-size: 26px; } }
.crumbs { font-size: 14px; color: var(--mute); margin: 22px 0 8px; }
.crumbs a { color: var(--mute); }
.wh { padding: 4px 0 18px; }
.wh .hud { font-size: clamp(30px, 5vw, 46px); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 30px 0 10px; }
.pager a { text-decoration: none; }
.src { font-size: 14px; color: var(--mute); }
.src li { margin-bottom: 4px; }
.locked { color: var(--mute); }
.prose { max-width: 700px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; margin: 0 0 20px; }
.dl dt { color: var(--mute); }
.dl dd { margin: 0; }
@media (max-width: 560px) { .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .dl dd { margin-bottom: 10px; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; font-size: 14px; color: var(--mute); background: #110f0b; }
.foot a { color: var(--mute); }
.flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* keyboard focus: yellow ring on every interactive element */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.wl button:focus-visible, .wl a.row:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
@media (max-width: 600px) { .pager { flex-direction: column; } .pager a:last-child { text-align: right; } }
.clock { margin: 16px 0 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 6px; font-size: 16px; max-width: 72ch; }
.clock b { color: var(--green); }
.clock .cd { color: var(--text); }
.clock a { margin-left: 6px; white-space: nowrap; }
.wall .gets { margin: 10px 0 14px; padding-left: 20px; font-size: 15px; }
.wall .gets li + li { margin-top: 4px; }
