:root {
  color-scheme: dark;
  --page: #111311;
  --frame: #191b19;
  --panel: #202220;
  --panel-deep: #171917;
  --ink: #d1d2c9;
  --muted: #9b9e94;
  --olive: #808a1d;
  --olive-light: #acb446;
  --olive-dark: #42480d;
  --line: #3c3f3a;
  --danger: #e17b70;
  font-family: Tahoma, Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  color: var(--ink);
  background: #0c0e0c;
}
a { color: #b6bd4c; text-decoration: none; }
a:hover { color: #d4db6c; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #cbd35b; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-frame {
  width: min(1180px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  border-inline: 1px solid #292c28;
  background: var(--frame);
  box-shadow: 0 0 42px #000;
}
.site-header {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 18px 24px;
  border-bottom: 1px solid #080908;
  background: linear-gradient(180deg, #242724 0%, #151715 68%, #0f110f 100%);
}
.brand { display: inline-flex; align-items: center; min-width: 0; color: var(--olive-light); }
.brand-copy { display: grid; }
.brand strong {
  font: 500 clamp(38px, 5vw, 60px)/.88 "Arial Narrow", Tahoma, sans-serif;
  letter-spacing: -.055em;
  text-shadow: 0 1px 0 #d1d678, 0 3px 5px #000;
}
.brand small { margin-top: 10px; color: #a7a99f; font-size: 13px; letter-spacing: .16em; text-align: center; }
.header-tools { flex: 0 1 410px; align-self: stretch; display: grid; align-content: center; }
.header-tools > p { margin: 0 0 5px; color: #c7cab8; font-size: 10px; text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.search { display: grid; grid-template-columns: 1fr 82px; gap: 5px; padding: 5px; border: 1px solid #333732; background: #101210; }
.search input { min-width: 0; height: 38px; padding: 0 12px; border: 1px solid #5d6258; border-radius: 0; color: #eceee5; background: #262926; font-size: 16px; }
.search input::placeholder { color: #b8baaf; }
.search button {
  border: 1px solid #6d7516;
  border-radius: 0;
  color: #16180e;
  background: linear-gradient(#b5bd49, #747e17);
  box-shadow: inset 0 1px rgba(255,255,255,.24);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.main-nav {
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #9da72c;
  border-bottom: 3px solid #090a09;
  background: linear-gradient(180deg, #99a32c 0%, #717b16 54%, #59620e 100%);
}
.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border-right: 1px solid rgba(30,34,4,.46);
  color: #20240b;
  font-size: 14px;
  text-shadow: 0 1px rgba(255,255,255,.22);
}
.main-nav a:last-child { border: 0; }
.main-nav a:hover, .main-nav a.active { color: #0c0e07; background: rgba(196,205,78,.18); }
.main-nav img { position: absolute; left: 50%; bottom: -10px; width: 9px; height: 8px; transform: translateX(-50%); opacity: 0; }
.main-nav a.active img, .main-nav a:hover img, .main-nav a:focus-visible img { opacity: 1; }

.forum-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(430px, 1fr) minmax(180px, 220px);
  gap: 10px;
  padding: 10px;
}
.forum-box, .story-column { border: 1px solid var(--line); background: var(--panel); box-shadow: inset 0 0 0 1px #151715; }
.forum-box > h2, .story-column h2 {
  margin: 0;
  padding: 8px 7px 6px;
  border-bottom: 1px solid #77801c;
  color: #d8d9cf;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
.fresh, .hint { min-height: 392px; padding: 0 7px 12px; }
.box-intro, .hint p { margin: 16px 5px; color: #d6d8cf; font-size: 11px; font-weight: 600; line-height: 1.45; }
.fresh ul { margin: 20px 5px 0; padding: 0; list-style: none; }
.fresh li { padding: 11px 0; border-bottom: 1px dotted #71756c; }
.fresh li:last-child { border-bottom: 0; }
.fresh a { display: block; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.fresh small { display: block; margin-top: 4px; color: #8f9288; font-size: 9px; text-transform: uppercase; }

.locked {
  min-height: 392px;
  display: grid;
  align-items: stretch;
  border-color: #484b45;
  background: var(--panel-deep);
}
#app { width: 100%; }
.gate-feature { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 44%); gap: 18px; padding: 20px; }
.gate-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.gate-photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.gate-kicker { margin: 0 0 9px; color: #9fa83c; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gate-title { margin: 0; color: #bdc451; font-size: clamp(24px, 3vw, 34px); font-weight: 500; line-height: 1.05; }
.gate-copy { margin: 13px 0 18px; color: #e0e1d8; font-size: 13px; line-height: 1.45; }
.password-form { width: 100%; }
.password-form input { width: 100%; height: 50px; padding: 0 13px; border: 1px solid #59604f; border-radius: 0; color: #f0f1ea; background: #292c29; font-size: 15px; }
.password-form input::placeholder { color: #a9aca4; }
.primary-button {
  min-width: min(240px, 100%);
  min-height: 45px;
  margin-top: 14px;
  padding: 10px 20px;
  border: 1px solid #788119;
  border-radius: 0;
  color: #17190b;
  background: linear-gradient(180deg, #c2ca54 0%, #879121 50%, #5d660e 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.28), 0 3px 8px #090a09;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.primary-button:hover { filter: brightness(1.1); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: wait; opacity: .62; }
.gate-note { margin: 15px 0 0; color: var(--muted); font-size: 10px; }
.message { min-height: 18px; margin: 10px 0 0; color: var(--danger); font-size: 11px; }
.promo-label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.promo-code { display: block; width: 100%; padding: 13px; border: 1px solid #777f1e; color: #dce460; background: #0f110f; font: 700 clamp(20px, 3vw, 28px)/1 Consolas, monospace; letter-spacing: .05em; overflow-wrap: anywhere; user-select: all; }
.promo-actions { display: flex; gap: 7px; align-items: stretch; flex-wrap: wrap; }
.copy-button { min-height: 45px; margin-top: 14px; padding: 0 14px; border: 1px solid #4b4e47; border-radius: 0; color: #d4d6ce; background: #292c29; cursor: pointer; font-size: 11px; }
.promo-actions .primary-button { min-width: min(270px, 100%); }

.stories { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.story-column { min-width: 0; padding: 0 7px 12px; }
.story-title { display: block; margin: 10px 4px 8px; font-size: 13px; font-weight: 700; text-decoration: underline; }
.story-image { float: left; width: 132px; aspect-ratio: 3 / 4; height: auto; margin: 0 9px 5px 4px; padding: 0; overflow: hidden; border: 1px solid #50534d; background: #0d0f0d; cursor: zoom-in; }
.story-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-image:focus-visible { outline: 2px solid #cbd35b; outline-offset: 2px; }
.story-column p { min-height: 176px; margin: 9px 4px; color: #d0d2c9; font-size: 10px; line-height: 1.45; }
.more { margin-left: 4px; font-size: 10px; text-decoration: underline; }

body.lightbox-open { overflow: hidden; }
.image-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .86); cursor: zoom-out; }
.image-lightbox[hidden] { display: none; }
.image-lightbox__content { position: relative; display: grid; place-items: center; width: fit-content; max-width: 100%; max-height: 100%; margin: 0; cursor: default; }
.image-lightbox__image { display: block; max-width: min(100%, 1050px); max-height: calc(100svh - 32px); width: auto; height: auto; border: 1px solid #6e716a; box-shadow: 0 18px 60px #000; object-fit: contain; }
.image-lightbox__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 1px solid #b9bdaf; border-radius: 50%; color: #fff; background: rgba(12, 14, 12, .84); cursor: pointer; font-size: 27px; line-height: 1; }
.image-lightbox__close:hover { background: #30352d; }
footer { padding: 22px; border-top: 1px solid #343733; color: #777b73; background: #141614; text-align: center; font-size: 10px; }
.loading { padding: 50px; color: var(--muted); text-align: center; }
.hunt-panel { padding: 20px; }
.hunt { position: relative; display: block; width: 100%; margin-top: 16px; padding: 0; overflow: hidden; border: 1px solid #687019; border-radius: 0; background: #111; cursor: crosshair; }
.hunt img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.score { color: #b8c04d; font-size: 12px; }
.ping { position: absolute; width: 24px; height: 24px; margin: -12px; border: 2px solid #d2da5b; border-radius: 50%; animation: ping .45s ease-out both; pointer-events: none; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

@media (max-width: 900px) {
  .site-header { min-height: 116px; padding: 15px 18px; }
  .brand strong { font-size: clamp(36px, 6vw, 50px); }
  .forum-layout { grid-template-columns: 1fr 1fr; }
  .locked { grid-column: 1 / -1; grid-row: 1; }
  .stories { grid-column: 1 / -1; }
  .fresh, .hint { min-height: auto; }
}

@media (max-width: 650px) {
  .site-frame { border: 0; }
  .site-header { display: grid; gap: 14px; }
  .brand { justify-content: center; }
  .brand strong { font-size: clamp(34px, 11vw, 46px); }
  .brand small { font-size: 10px; }
  .header-tools { width: 100%; }
  .header-tools > p { display: none; }
  .search { grid-template-columns: 1fr 76px; }
  .main-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 0 0 112px; min-height: 42px; }
  .forum-layout { display: flex; flex-direction: column; padding: 8px; }
  .locked { order: 0; }
  .fresh { order: 1; }
  .hint { order: 2; }
  .stories { order: 3; display: grid; grid-template-columns: 1fr; }
  .story-image { width: 120px; }
  .story-column p { min-height: 160px; }
  .gate-feature { min-height: 0; grid-template-columns: 1fr; padding: 14px; }
  .gate-content { order: 0; }
  .gate-photo { order: 1; min-height: 0; aspect-ratio: 16 / 9; margin-top: 4px; }
  .primary-button, .copy-button { width: 100%; }
  .copy-button { margin-top: 7px; }
  .promo-actions { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button:active { transform: none; }
  .ping { animation: none; opacity: 1; }
}
