/* GTA BIGFOOT: a 2005 myth-hunters forum sitting inside a San Andreas HUD */
:root {
  --fog: #0d2624;
  --fog2: #173c39;
  --line: #98aab1;
  --head: #006699;
  --head2: #1d5f8a;
  --row1: #efefef;
  --row2: #dee3e7;
  --row3: #d1d7dc;
  --ink: #111;
  --link: #006699;
  --red: #e3000f;
  --money: #2f6b28;
  --money-hi: #8fd16a;
  --ui: Verdana, Tahoma, Geneva, sans-serif;
  --goth: 'UnifrakturMaguntia', 'Old English Text MT', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0; color: var(--ink); font: 14px/1.5 var(--ui);
  background: var(--fog) url(/assets/img/bg-fog.jpg) center top / cover fixed;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); }
button { font: inherit; cursor: pointer; }
img, video, canvas { max-width: 100%; display: block; }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .45s; }
.intro.out { opacity: 0; pointer-events: none; }
.intro[hidden] { display: none; }
.intro-mark { width: min(78vw, 640px); height: auto; }
.intro-bar { width: min(60vw, 420px); height: 14px; border: 2px solid #c9c9c9; background: #111; }
.intro-bar i { display: block; height: 100%; width: 0; background: #8b9fd6; animation: load 2s steps(14) forwards; }
@keyframes load { to { width: 100%; } }
.intro-area { font: 52px/1 var(--goth); color: #fff; -webkit-text-stroke: 1.5px #000; text-shadow: 3px 3px 0 #000; opacity: 0; animation: area .5s 1.1s forwards; }
@keyframes area { to { opacity: 1; } }
.intro-skip { position: absolute; right: 18px; bottom: 18px; background: none; border: 1px solid #666; color: #bbb; padding: 6px 14px; font: 12px var(--ui); }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.hud-tr { position: absolute; top: 58px; right: 18px; display: grid; grid-template-columns: auto auto; gap: 6px 10px; justify-items: end; }
.hud-weapon { width: 84px; height: 84px; grid-row: 1; }
.hud-weapon img { width: 84px; height: 84px; }
.hud-right { grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 132px; }
.hud-clock { font: 900 34px/1 'Arial Black', var(--ui); color: #e8e8e8; -webkit-text-stroke: 2px #000; paint-order: stroke fill; letter-spacing: 1px; }
.hud-bar { height: 12px; border: 2px solid #000; background: #2a2a2a; }
.hud-bar i { display: block; height: 100%; }
.hud-armor i { width: 74%; background: #e1e1e1; }
.hud-health i { width: 88%; background: #b4191d; }
.hud-money { grid-column: 1 / 3; height: 40px; display: flex; gap: 0; }
.hud-money img { height: 40px; width: auto; }
.hud-stars { grid-column: 1 / 3; display: flex; gap: 2px; }
.hud-stars b { width: 26px; height: 26px; background: url(/assets/hud/star-off.png) center / contain no-repeat; }
.hud-stars b.on { background-image: url(/assets/hud/star-on.png); }
.hud-radar { position: absolute; left: 18px; bottom: 18px; width: 150px; height: 150px; }
.hud-radar svg { width: 100%; height: 100%; overflow: visible; }
.radar-n { font: 900 18px var(--ui); fill: #fff; stroke: #000; stroke-width: 3px; paint-order: stroke; }
#radar-map { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.blip { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sticky CA bar ---------- */
.cabar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #000; color: #fff; border-bottom: 2px solid var(--head); }
.cabar-t { font: 900 15px 'Arial Black', var(--ui); color: var(--money-hi); white-space: nowrap; }
.cabar-ca { flex: 1; min-width: 0; text-align: left; background: #1b1b1b; color: #ddd; border: 1px solid #444; padding: 7px 10px; font: 13px ui-monospace, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cabar-buy, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; text-decoration: none; font: bold 14px var(--ui); color: #fff; background: linear-gradient(#2b7fb0, #0c5a87); border: 1px solid #06334d; }
.cabar-buy { min-height: 34px; background: var(--red); border-color: #7b0008; }
[aria-disabled="true"] { opacity: .6; }

/* ---------- forum frame ---------- */
.forum { width: min(920px, calc(100% - 500px)); margin: 18px auto 120px; background: #fff; border: 1px solid #000; box-shadow: 0 0 0 4px rgba(0, 0, 0, .35); }
.fhead { background: #fff; }
.fbanner { width: 100%; height: auto; border-bottom: 1px solid #000; }
.ftitle { padding: 12px 16px 6px; }
.ftitle h1 { margin: 0; font: bold 22px/1.2 var(--ui); color: var(--head); }
.ftitle p { margin: 4px 0 0; color: #444; font-size: 13px; }
.fnav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 16px; background: var(--row2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: bold; }
.fnav a { text-decoration: none; }
.fnav a:hover { text-decoration: underline; }
.fwho { padding: 6px 16px; font-size: 12px; color: #333; background: var(--row1); border-bottom: 1px solid var(--line); }

.thread { margin: 16px; border: 1px solid var(--line); }
.th-title { padding: 8px 12px; color: #fff; font: bold 14px var(--ui); background: linear-gradient(var(--head2), var(--head)); border-bottom: 1px solid #003a57; }
.tag { display: inline-block; padding: 1px 6px; margin-right: 6px; font-size: 11px; text-transform: uppercase; background: #ffcc33; color: #000; border: 1px solid #9a7a00; }
.tag-sticky { background: #ff9933; }
.tag-new { background: #8fd16a; border-color: #3d6b28; }

.post { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post:nth-child(even) .who, .post:nth-child(even) .body { background: var(--row2); }
.who { padding: 12px; background: var(--row1); border-right: 1px solid var(--line); font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.ava { width: 96px; height: 96px; object-fit: cover; border: 1px solid #000; margin-bottom: 4px; }
.uname { color: var(--head); font-size: 13px; }
.rank { color: #555; font-style: italic; }
.rank-ban { color: var(--red); font-weight: bold; font-style: normal; }
.meta { color: #555; font-size: 11px; line-height: 1.45; }
.body { padding: 12px 14px; background: var(--row1); min-width: 0; }
.ptime { font-size: 11px; color: #666; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.body p { margin: 0 0 10px; }
.lead { font-size: 16px; }
.sig { margin-top: 12px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 11px; color: #666; }
.quote { margin: 0 0 10px; padding: 6px 10px; background: #fafafa; border: 1px solid var(--line); font-size: 12px; color: #333; }
.quote b { display: block; font-size: 11px; color: #666; }
.reply { font-size: 13px; }
.reply .uname { font-size: 12px; }

.vid { position: relative; background: #000; border: 1px solid #000; max-width: 560px; aspect-ratio: 1; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid-main { max-width: 620px; }
.vid .snd { position: absolute; right: 8px; bottom: 8px; padding: 5px 10px; font: bold 12px var(--ui); color: #fff; background: rgba(0, 0, 0, .7); border: 1px solid #888; }
.att { font-size: 11px; color: #555; margin-top: 6px; }

/* CA slot */
.caslot { margin: 16px 0 12px; padding: 14px; background: #000; border: 2px solid var(--money-hi); max-width: 620px; }
.ca-l { font: bold 11px var(--ui); letter-spacing: .12em; color: var(--money-hi); }
.ca-v { display: block; width: 100%; margin: 8px 0 6px; padding: 12px; text-align: left; background: #111; color: #fff; border: 1px dashed #666; font: bold 18px/1.3 ui-monospace, Menlo, monospace; word-break: break-all; }
.caslot.pre .ca-v { color: #9a9a9a; font-family: var(--ui); }
.ca-hint { font-size: 12px; color: #aaa; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-buy { background: linear-gradient(#e8323c, #b10010); border-color: #600; }
.chartwrap { border-top: 1px solid var(--line); }
.chartwrap iframe { width: 100%; height: 460px; border: 0; display: block; }

.pager { padding: 8px 12px; font-size: 12px; background: var(--row3); border-top: 1px solid var(--line); }

/* map */
.maptabs { display: flex; flex-wrap: wrap; gap: 0; background: var(--row2); border-bottom: 1px solid var(--line); }
.maptabs button { padding: 9px 14px; background: none; border: 0; border-right: 1px solid var(--line); font: bold 13px var(--ui); color: var(--link); }
.maptabs button[aria-selected="true"] { background: #fff; color: #000; }
.mapbox { position: relative; background: #0b1a19; }
#mapsvg { width: 100%; height: auto; display: block; }
#mapsvg .pin { cursor: pointer; }
#mapsvg .pin circle.ring { fill: none; stroke: var(--red); stroke-width: 4; }
#mapsvg .pin:focus { outline: none; }
#mapsvg .pin:focus circle.ring, #mapsvg .pin:hover circle.ring { stroke: #ffcc33; }
#mapsvg .lbl { font: bold 14px var(--ui); fill: #fff; stroke: #000; stroke-width: 3px; paint-order: stroke; }
#mapsvg .area { font: 22px var(--goth); fill: #fff; stroke: #000; stroke-width: 3px; paint-order: stroke; }
.mapnote { padding: 10px 14px; font-size: 13px; color: #e8e8e8; background: #000; border-top: 1px solid #333; min-height: 42px; }
.mapnote a { color: var(--money-hi); }

/* wanted */
.wanted { display: grid; grid-template-columns: 340px 1fr; gap: 20px; padding: 16px; background: var(--row1); }
.poster { background: #e9dcb8; border: 3px solid #3b2a12; padding: 14px; color: #2a1c08; box-shadow: 4px 4px 0 rgba(0, 0, 0, .3); }
.p-head { font: 900 58px/1 'Arial Black', var(--ui); text-align: center; letter-spacing: 2px; }
.p-stars { text-align: center; font-size: 30px; color: #2a1c08; letter-spacing: 2px; line-height: 1.1; margin-bottom: 8px; }
.poster img { width: 100%; height: auto; border: 2px solid #3b2a12; filter: sepia(.45) contrast(1.1); }
.p-name { font: 900 34px/1 'Arial Black', var(--ui); text-align: center; margin: 10px 0 6px; }
.poster dl { margin: 0; font-size: 12px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.poster dt { font-weight: bold; text-transform: uppercase; }
.poster dd { margin: 0; }
.wanted-side h2 { margin: 0 0 8px; font: bold 18px var(--ui); color: var(--head); }
.case { margin: 0; padding-left: 20px; }
.case li { margin-bottom: 8px; }

/* report */
.report { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding: 16px; background: var(--row1); }
.rep-stage { border: 1px solid #000; background: #000; aspect-ratio: 1; }
.rep-stage canvas { width: 100%; height: 100%; }
.rep-l { font: bold 12px var(--ui); color: #333; margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.rep-l:first-child { margin-top: 0; }
.rep-scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rep-scenes button { padding: 3px; background: #fff; border: 2px solid var(--line); font-size: 11px; }
.rep-scenes button[aria-pressed="true"] { border-color: var(--red); }
.rep-scenes img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.rep-scenes span { display: block; padding-top: 2px; }
.rep-snap { width: 100%; min-height: 48px; font-size: 16px; }
.rep-note { font-size: 12px; color: #555; margin: 10px 0 0; }

.ffoot { padding: 14px 16px; font-size: 12px; color: #444; background: var(--row2); border-top: 1px solid var(--line); }
.ffoot p { margin: 0 0 6px; }
.ffoot-s { color: #777; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; background: #000; color: #fff; border: 1px solid var(--money-hi); font: bold 13px var(--ui); transition: .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- smaller screens ---------- */
@media (max-width: 1419px) {
  .hud { position: absolute; height: 240px; }
  .forum { width: min(980px, calc(100% - 32px)); margin-top: 214px; }
  .hud-tr { top: 52px; }
  .hud-radar { top: 52px; bottom: auto; width: 140px; height: 140px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .forum { width: calc(100% - 16px); margin: 128px auto 96px; }
  .hud-tr { top: 50px; right: 8px; gap: 3px 6px; }
  .hud-weapon, .hud-weapon img { width: 48px; height: 48px; }
  .hud-right { width: 84px; gap: 4px; }
  .hud-clock { font-size: 20px; -webkit-text-stroke: 1.5px #000; }
  .hud-bar { height: 8px; border-width: 1.5px; }
  .hud-money { height: 24px; }
  .hud-money img { height: 24px; }
  .hud-stars b { width: 15px; height: 15px; }
  .hud { height: 130px; }
  .hud-radar { width: 70px; height: 70px; left: 8px; top: 50px; }
  .thread { margin: 10px 8px; }
  .post { grid-template-columns: 1fr; }
  .who { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .ava { width: 44px; height: 44px; margin: 0; }
  .who .meta { flex-basis: 100%; }
  .body { padding: 10px; }
  .ftitle h1 { font-size: 18px; }
  .fnav { gap: 2px 12px; padding: 8px 10px; }
  .ca-v { font-size: 15px; }
  .wanted, .report { grid-template-columns: 1fr; padding: 10px; }
  .intro-area { font-size: 36px; }
  .cabar { padding: 6px 8px; gap: 6px; }
  .cabar-t { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #radar-map, .blip, .intro-bar i { animation: none; }
  .intro-bar i { width: 100%; }
}
.ava-t { display: grid; place-items: center; background: #34544f; color: #dfe9e7; font: bold 30px var(--ui); }
@media (max-width: 760px) { .ava-t { font-size: 16px; } }
