/* Rust portfolio — dressed as the game's own HUD.
   Colours carry meaning everywhere: green = combat (health bar),
   orange = farming (calories), blue = time played (hydration), red = deaths and bans. */
:root {
  --bunker: #1a1b17;
  --sheet: #24251f;
  --sheet-2: #2c2d26;
  --slot: #34352d;
  --slot-hi: #45473c;
  --edge: rgba(230, 224, 210, 0.07);
  --bone: #e6e0d2;
  --ash: #a29e8f;
  --ash-2: #74705f;
  --hp: #8fb339;
  --food: #d9832b;
  --water: #3f97d8;
  --blood: #cd412b;
  --accent: #8fb339;
  --hazard: #e8b923;
  --dirt: 'Rubik Dirt', 'Impact', sans-serif;
  --ui: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --page: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bunker);
  color: var(--bone);
  font: 400 16px/1.5 var(--ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 120px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--hp); color: var(--bunker); }

.page { width: min(var(--page), 100% - 32px); margin-inline: auto; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────────────────────── hero: a frame of the game ───────────────────────── */
.hero { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -4%; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(10,11,9,.75) 100%),
    linear-gradient(180deg, rgba(26,27,23,.15) 0%, rgba(26,27,23,.25) 55%, var(--bunker) 100%),
    url('https://shared.cloudflare.steamstatic.com/store_item_assets/steam/apps/252490/library_hero.jpg') center 35% / cover no-repeat;
  filter: saturate(.85) contrast(1.05);
}
.hero-inner { grid-template-columns: minmax(0, 1fr); position: relative; min-height: 100svh; width: min(var(--page), 100% - 32px); margin-inline: auto; padding: 22px 0 150px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; }
.loading { align-self: center; justify-self: start; color: var(--ash); font-size: 18px; }

/* top-left: who and where, like the game's connection info */
.who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.who-ava { position: relative; width: 52px; height: 52px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgba(230,224,210,.18); }
.who-ava img { width: 100%; height: 100%; object-fit: cover; }
.who-ava::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ash-2); box-shadow: 0 0 0 2px var(--bunker); }
.who-ava.on::after { background: var(--water); }
.who-ava.rust::after { background: var(--hp); }
.who-name { font-weight: 700; font-size: 18px; line-height: 1.1; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.who-state { font-size: 14px; color: #d8d2c3; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.who-state b { color: #b9d86a; font-weight: 700; }

.presence { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 8px 8px 8px 14px; background: rgba(26,27,23,.72); backdrop-filter: blur(10px); border-radius: 3px; max-width: 520px; min-width: 0; }
.presence .pr-text { min-width: 0; font-size: 14px; line-height: 1.3; }
.presence .pr-text b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence .pr-text span { color: var(--ash); }
.presence .pr-fill { width: 64px; height: 4px; background: rgba(255,255,255,.1); flex: none; }
.presence .pr-fill i { display: block; height: 100%; background: var(--hp); }
.btn-connect { padding: 8px 12px; border-radius: 2px; background: var(--hp); color: #1a1b17; font-weight: 700; font-size: 14px; white-space: nowrap; transition: filter .15s; }
.btn-connect:hover { filter: brightness(1.12); }

/* the name, painted on the wall */
.mark { align-self: end; max-width: 100%; }
.mark h1 {
  margin: 0; font: 400 clamp(80px, 15vw, 230px)/.82 var(--dirt); letter-spacing: -.01em; color: var(--bone);
  text-shadow: 0 4px 0 rgba(0,0,0,.25), 0 30px 80px rgba(0,0,0,.5);
  overflow-wrap: anywhere;
}
.mark .line { margin: 18px 0 0; font-size: clamp(18px, 2.2vw, 24px); color: #d8d2c3; max-width: 34ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 2px; background: rgba(26,27,23,.7); backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; }
.tag.looking { background: var(--hp); color: #1a1b17; font-weight: 700; }
.tag.team { background: var(--water); color: #0d1a24; font-weight: 700; }
.tag.busy { background: var(--food); color: #241405; font-weight: 700; }
.tag.ban { background: var(--blood); color: #fff; font-weight: 700; }
.tag.clean { box-shadow: inset 0 0 0 1px rgba(143,179,57,.6); color: #cfe39b; }

/* bottom-right: vitals, exactly where the game keeps them */
.vitals { justify-self: end; align-self: end; display: grid; gap: 4px; width: min(330px, 100%); }
.vital { display: grid; grid-template-columns: 30px 1fr; align-items: stretch; height: 34px; background: rgba(26,27,23,.62); backdrop-filter: blur(8px); border-radius: 2px; overflow: hidden; }
.vital .v-ico { display: grid; place-items: center; background: rgba(0,0,0,.25); }
.vital .v-ico svg { width: 16px; height: 16px; }
.vital .v-bar { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.vital .v-bar::before { content: ''; position: absolute; inset: 4px auto 4px 4px; width: calc((100% - 8px) * var(--f, 0)); background: var(--c); opacity: .85; border-radius: 1px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.vital .v-bar > * { position: relative; }
.vital .v-val { font-weight: 800; font-size: 17px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.vital .v-lab { font-size: 13px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.vital.hp { --c: var(--hp); } .vital.food { --c: var(--food); } .vital.water { --c: var(--water); }
.vital.hp .v-ico { color: var(--hp); } .vital.food .v-ico { color: var(--food); } .vital.water .v-ico { color: var(--water); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }

/* page-load sequence: the only ambient motion on the site */
@media (prefers-reduced-motion: no-preference) {
  .boot .mark h1 { animation: paint 1.1s cubic-bezier(.3,.7,.2,1) both; }
  .boot .mark .line, .boot .tags { animation: rise .6s .5s both; }
  .boot .vital { animation: rise .5s both; }
  .boot .vital:nth-child(2) { animation-delay: .1s; } .boot .vital:nth-child(3) { animation-delay: .2s; }
  .boot-bar .slot { animation: rise .45s both; animation-delay: calc(.6s + var(--i) * 60ms); }
}
@keyframes paint { from { clip-path: inset(0 100% 0 0); filter: blur(6px); } to { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ───────────────────────── hotbar navigation ───────────────────────── */
.hotbar {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  display: flex; gap: 4px; padding: 4px; border-radius: 3px;
  background: rgba(20,21,18,.72); backdrop-filter: blur(12px) saturate(1.2);
}
.slot { position: relative; width: 74px; height: 74px; border-radius: 2px; background: rgba(69,71,60,.55); display: grid; place-items: center; transition: background .15s, box-shadow .15s; }
.slot img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); transition: transform .15s; }
.slot .key { position: absolute; top: 3px; left: 5px; font-size: 12px; font-weight: 700; color: var(--ash); }
.slot .lab { position: absolute; bottom: 3px; right: 5px; left: 5px; text-align: right; font-size: 11px; font-weight: 700; color: var(--bone); text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot:hover { background: rgba(98,101,86,.7); }
.slot:hover img { transform: scale(1.06); }
.slot.on { background: rgba(63,151,216,.38); box-shadow: inset 0 0 0 2px rgba(120,190,240,.85); }
.slot.on .key { color: var(--bone); }

/* ───────────────────────── sections ───────────────────────── */
.sec { padding: 110px 0 0; }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-h h2 { margin: 0; font: 400 clamp(48px, 7vw, 88px)/.9 var(--dirt); color: var(--bone); }
.sec-h p { margin: 0; color: var(--ash); max-width: 46ch; font-size: 16px; }

.panel { background: var(--sheet); border-radius: 3px; padding: 22px; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.panel h3 { margin: 0 0 16px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.panel h3 small { font-weight: 400; color: var(--ash); font-size: 15px; margin-left: 8px; }
.cols { display: grid; gap: 12px; }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.span-all { grid-column: 1 / -1; }

/* dossier */
.dossier { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: var(--edge); border-radius: 3px; overflow: hidden; }
.fact { background: var(--sheet); padding: 18px 18px 16px; display: grid; gap: 4px; align-content: start; }
.fact .f-v { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.fact .f-l { font-size: 14px; color: var(--ash); }
.fact .f-s { font-size: 13px; color: var(--ash-2); }
.fact.water .f-v { color: var(--water); }

.notice { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 26px 22px 22px; background: var(--sheet); border-radius: 3px; position: relative; overflow: hidden; }
.notice::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, #1a1b17 14px 28px); }
.notice.clean::before { background: var(--hp); height: 3px; }
.notice .n-big { font: 400 72px/.9 var(--dirt); color: var(--blood); min-width: 90px; text-align: center; }
.notice.clean .n-big { color: var(--hp); }
.notice h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.notice p { margin: 0; color: var(--ash); }
.notice .n-rows { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 15px; }
.notice .n-rows b { font-weight: 700; }
.notice .n-note { margin-top: 14px; padding-left: 14px; box-shadow: inset 3px 0 0 var(--hazard); color: var(--bone); white-space: pre-line; max-width: 70ch; }

/* combat bars */
.meters { display: grid; gap: 14px; }
.meter { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; gap: 14px; align-items: center; }
.meter .m-l { font-weight: 700; }
.meter .m-l small { display: block; font-weight: 400; color: var(--ash); font-size: 13px; }
.meter .m-track { height: 22px; background: rgba(0,0,0,.28); border-radius: 2px; padding: 3px; }
.meter .m-track i { display: block; height: 100%; width: calc(var(--f) * 100%); background: var(--c); border-radius: 1px; }
.meter .m-v { text-align: right; font-size: 26px; font-weight: 800; }

/* inventory slots */
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.item { position: relative; width: 100%; aspect-ratio: 1; min-width: 0; border-radius: 2px; background: var(--slot); display: grid; place-items: center; transition: background .15s; }
.item:hover { background: var(--slot-hi); }
.item img { width: 58%; height: 58%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.item .glyph { font: 400 34px/1 var(--dirt); color: var(--ash); }
.item .qty { position: absolute; right: 6px; bottom: 4px; font-size: 15px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.item .qty::before { content: '×'; font-weight: 500; color: var(--ash); margin-right: 1px; }
.item.food .qty { color: #f0b072; } .item.hp .qty { color: #c7de8a; } .item.water .qty { color: #9fcdf0; }
.item-wrap { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; min-width: 0; }
.item-wrap .nm { font-size: 13px; color: var(--ash); line-height: 1.25; }

/* death screen */
.dead { background: linear-gradient(180deg, rgba(205,65,43,.22), rgba(26,27,23,.9)), var(--sheet); border-radius: 3px; padding: 26px 22px 22px; }
.dead { align-self: start; }
.dead .d-big { font: 400 clamp(44px, 4.6vw, 64px)/.95 var(--dirt); color: #f2c9c0; white-space: nowrap; }
.dead .d-sub { margin: 8px 0 18px; color: #d9b4ab; }
.dead .rows { display: grid; gap: 8px; }
.dead .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding-bottom: 8px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); }
.dead .row b { font-weight: 800; font-size: 18px; }
.dead .row span { color: #e7d3ce; }
.dead .row i { grid-column: 1 / -1; height: 4px; background: rgba(0,0,0,.25); }
.dead .row i::after { content: ''; display: block; height: 100%; width: calc(var(--f) * 100%); background: var(--blood); }

/* progress chart */
.chart { width: 100%; height: 220px; display: block; }
.chart .area { fill: url(#cg); }
.chart .line { fill: none; stroke: var(--water); stroke-width: 2.5; }
.chart text { fill: var(--ash-2); font: 500 13px var(--ui); }
.chart .gl { stroke: rgba(255,255,255,.06); }
.chart-empty { color: var(--ash); max-width: 52ch; }
.deltas { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }
.deltas div { display: grid; }
.deltas b { font-size: 28px; font-weight: 800; color: var(--water); }
.deltas span { color: var(--ash); font-size: 14px; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.role { background: var(--sheet); border-radius: 3px; padding: 18px; }
.role-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.role-name { font-size: 20px; font-weight: 700; }
.role-lvl { font-weight: 800; color: var(--hp); font-size: 18px; }
.pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.pips i { height: 10px; background: rgba(0,0,0,.3); border-radius: 1px; }
.pips i.on { background: var(--hp); }
.role-note { margin: 12px 0 0; color: var(--ash); font-size: 15px; }

/* videos: the feed is a wall of monitors */
.filters { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { padding: 8px 14px; border-radius: 2px; background: var(--sheet); color: var(--ash); font-weight: 500; transition: background .15s, color .15s; }
.filters button:hover { color: var(--bone); }
.filters button.on { background: var(--bone); color: var(--bunker); font-weight: 700; }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.video { background: var(--sheet); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.video.lead { grid-column: span 2; grid-row: span 2; }
.screen { position: relative; aspect-ratio: 16/9; width: 100%; overflow: hidden; background: #000; display: block; }
.video.lead .screen { flex: 1; aspect-ratio: auto; min-height: 300px; }
.screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .25s; filter: brightness(.85) saturate(.9); }
.screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); opacity: 0; transition: opacity .2s; pointer-events: none; }
.screen:hover img { transform: scale(1.04); filter: none; }
.screen:hover::after { opacity: 1; }
.screen .cat { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 2px; background: rgba(26,27,23,.8); font-size: 13px; font-weight: 700; }
.screen .play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: rgba(230,224,210,.92); color: var(--bunker); display: grid; place-items: center; transition: transform .2s; }
.screen .play svg { width: 22px; height: 22px; margin-left: 3px; }
.screen:hover .play { transform: scale(1.08); }
.video .v-meta { padding: 12px 14px 14px; }
.video .v-meta b { display: block; font-weight: 700; line-height: 1.3; }
.video .v-meta span { color: var(--ash-2); font-size: 14px; }

/* bases: blueprint paper */
.bases { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.base { background: var(--sheet); border-radius: 3px; overflow: hidden; }
.base-img { aspect-ratio: 16/10; background: #22384f center/cover; position: relative; cursor: zoom-in; display: block; width: 100%; }
.base-img.blank { background-color: #20384f; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; cursor: default; }
.base-img .cat { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 2px; background: #2f5f8c; font-size: 13px; font-weight: 700; }
.base-body { padding: 16px 18px 18px; }
.base-body h4 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.base-body p { margin: 0 0 12px; color: var(--ash); white-space: pre-line; }
.base-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 2px; background: var(--slot); font-size: 14px; }
button.chip:hover { background: var(--slot-hi); }

/* achievements */
.ach-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.ach-head .big { font: 400 64px/.9 var(--dirt); }
.ach-head .big small { font-size: 30px; color: var(--ash); }
.ach-head .track { flex: 1; min-width: 200px; height: 14px; background: rgba(0,0,0,.3); border-radius: 2px; padding: 3px; }
.ach-head .track i { display: block; height: 100%; background: var(--hp); width: calc(var(--f) * 100%); }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 2px; background: var(--sheet-2); }
.ach img { width: 48px; height: 48px; border-radius: 2px; flex: none; }
.ach b { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
.ach span { display: block; font-size: 13px; color: var(--ash); line-height: 1.3; }
.ach em { display: block; font-style: normal; font-size: 13px; color: var(--hazard); margin-top: 2px; }
.ach em.when { color: var(--ash-2); }

/* setup */
.spec { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 11px 0; box-shadow: inset 0 -1px 0 var(--edge); }
.spec:last-child { box-shadow: none; }
.spec dt { color: var(--ash); }
.spec dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.setup-photo { border-radius: 2px; margin-bottom: 16px; cursor: zoom-in; width: 100%; }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.nums div { background: var(--sheet-2); border-radius: 2px; padding: 12px 14px; }
.nums b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.nums span { font-size: 14px; color: var(--ash); }
.binds { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin-top: 16px; }
.bind { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 2px; background: var(--sheet-2); }
kbd { display: inline-grid; place-items: center; min-width: 32px; height: 30px; padding: 0 8px; border-radius: 3px; background: #4a4c41; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); font: 700 14px var(--ui); color: var(--bone); }
.console { margin-top: 16px; background: #10110e; border-radius: 2px; padding: 12px 14px; font: 500 14px/1.6 ui-monospace, Menlo, monospace; color: #cfe39b; white-space: pre-wrap; word-break: break-all; position: relative; }
.console button { position: absolute; top: 8px; right: 8px; padding: 4px 8px; border-radius: 2px; background: var(--slot); color: var(--bone); font: 500 12px var(--ui); }

/* about */
.bio { margin: 0; font-size: 20px; line-height: 1.6; max-width: 62ch; white-space: pre-line; }
.kv { margin: 0; }
.kv div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--edge); }
.kv div:last-child { box-shadow: none; }
.kv dt { color: var(--ash); }
.kv dd { margin: 0; font-weight: 500; white-space: pre-line; }
.servers { display: flex; flex-wrap: wrap; gap: 6px; }

/* history */
.log { display: grid; gap: 0; }
.log-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding: 14px 0; box-shadow: inset 0 -1px 0 var(--edge); }
.log-row:last-child { box-shadow: none; }
.log-row .when { color: var(--food); font-weight: 700; }
.log-row b { font-size: 18px; font-weight: 700; }
.log-row p { margin: 4px 0 0; color: var(--ash); white-space: pre-line; }

/* library */
.games { display: grid; gap: 8px; }
.game { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(0, 2fr) 80px; gap: 14px; align-items: center; }
.game img { width: 32px; height: 32px; border-radius: 2px; }
.game .gn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .gt { height: 8px; background: rgba(0,0,0,.3); border-radius: 1px; }
.game .gt i { display: block; height: 100%; width: calc(var(--f) * 100%); background: var(--ash-2); }
.game.rust .gn { font-weight: 700; }
.game.rust .gt i { background: var(--water); }
.game .gh { text-align: right; color: var(--ash); }

/* faq */
.faq { display: grid; gap: 4px; }
.faq details { background: var(--sheet); border-radius: 3px; }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--ash); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: #cfc9ba; max-width: 70ch; white-space: pre-line; }

/* contact: a supply drop */
.drop { position: relative; overflow: hidden; border-radius: 3px; padding: clamp(28px, 5vw, 56px); background: var(--sheet); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.drop::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--blood) 0 14px, #e6e0d2 14px 28px); opacity: .85; }
.drop h2 { margin: 0 0 12px; font: 400 clamp(52px, 8vw, 104px)/.88 var(--dirt); }
.drop p { margin: 0 0 24px; color: #d8d2c3; max-width: 46ch; white-space: pre-line; font-size: 18px; }
.drop .signal { width: clamp(120px, 16vw, 200px); filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 2px; background: var(--slot); font-weight: 700; transition: background .15s; }
.link:hover { background: var(--slot-hi); }
.link.primary { background: var(--hp); color: #1a1b17; }
.link.primary:hover { filter: brightness(1.1); }
.link svg { width: 18px; height: 18px; }
.link small { font-weight: 400; opacity: .7; }

.footer { margin-top: 110px; padding: 26px 0; color: var(--ash-2); font-size: 14px; }
.footer .page { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--ash); }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 10px); opacity: 0; padding: 10px 16px; border-radius: 2px; background: var(--bone); color: var(--bunker); font-weight: 700; transition: all .25s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10,11,9,.94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-body { width: min(1200px, 100%); }
.lb-body img { max-height: 86vh; margin: auto; border-radius: 2px; }
.lb-body .vwrap { aspect-ratio: 16/9; }
.lb-body iframe { width: 100%; height: 100%; border: 0; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 2px; background: var(--slot); font-size: 18px; }
.err { padding: 16px 18px; border-radius: 3px; background: rgba(205,65,43,.18); color: #f2c9c0; }

@media (max-width: 1000px) {
  .dossier { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-wide { grid-template-columns: minmax(0, 1fr); }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presence { margin-left: 0; flex: 1 1 100%; max-width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 15px; padding-bottom: 96px; }
  .hero-inner { padding-bottom: 110px; }
  .dossier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact .f-v { font-size: 24px; }
  .c2, .c3, .videos { grid-template-columns: minmax(0, 1fr); }
  .video.lead { grid-column: auto; grid-row: auto; }
  .video.lead .screen { aspect-ratio: 16/9; min-height: 0; }
  .notice { grid-template-columns: 1fr; gap: 10px; }
  .notice .n-big { text-align: left; }
  .meter { grid-template-columns: minmax(0, 1fr) 70px; }
  .meter .m-track { grid-column: 1 / -1; grid-row: 2; }
  .meter .m-v { grid-row: 1; grid-column: 2; font-size: 22px; }
  .inv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item .qty { font-size: 13px; }
  .presence .pr-fill { display: none; }
  .vitals { justify-self: stretch; width: 100%; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .spec, .kv div, .log-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .game { grid-template-columns: 28px minmax(0, 1fr) 64px; }
  .game .gt { display: none; }
  .drop { grid-template-columns: 1fr; }
  .drop .signal { display: none; }
  .hotbar { left: 8px; right: 8px; transform: none; justify-content: space-between; }
  .slot { flex: 1; width: auto; height: 58px; }
  .slot img { width: 36px; height: 36px; }
  .slot .lab { display: none; }
  .sec { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
