/* Fixed 1.2x root: reproduces the size of the root index.html
   (`body { zoom: 1.2 }`) as a real rem size instead of a CSS zoom hack,
   so every rem value here (and every inline rem style in index.html)
   scales together — text, borders, padding, margins alike. */
html { font-size: 1.2rem; }



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0e0c08;
  --stone:     #161209;
  --card-bg:   #1a1510;
  --border:    #6a5a30;
  --border-hi: #c8a84a;
  --gold:      #d4b866;
  --gold-hi:   #f0d890;
  --amber:     #c8903a;
  --dim:       #b8a064;
  --text:      #e8d8a8;
  --muted:     #cdb985;
  --red:       #d04030;
  --brick:     #3a2a18;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'RSUF', 'Times New Roman', serif;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1.03125rem;
}

/* ── BRICK STRIPE ── */
.brick-stripe {
  height: 0.375rem;
  background:
    repeating-linear-gradient(
      90deg,
      #4a3018 0rem, #4a3018 1.75rem,
      #3a2010 1.75rem, #3a2010 1.875rem
    );
  border-top: 0.0625rem solid #6a4a20;
  border-bottom: 0.0625rem solid #241808;
}

/* ── HERO ── */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(180,130,30,0.08) 0%, transparent 70%),
    linear-gradient(180deg, #181208 0%, #0e0c08 100%);
  padding: 3.25rem 1.5rem 2.75rem;
  text-align: center;
  border-bottom: 0.0625rem solid var(--border);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8903a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero-skull {
  font-size: 3.75rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-name {
  font-size: 1.03125rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.hero-title {
  font-size: 2.625rem;
  color: var(--gold-hi);
  text-shadow: 0.125rem 0.125rem 0 #000;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32.5rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}

.hero-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.875rem;
  padding: 0.1875rem 0.5625rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.125rem;
  color: var(--dim);
  background: rgba(0,0,0,0.3);
  letter-spacing: 0.08em;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}

/* ── SECTION ── */
.section {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
}

.section-label {
  font-size: 0.84375rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}

.section-title {
  font-size: 1.40625rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.0625rem solid var(--brick);
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}

/* ── PAGE NAV (JUMP TO SECTION) ── */
.page-nav {
  background: linear-gradient(180deg, #181208 0%, var(--stone) 100%);
  border: 0.0625rem solid var(--border);
  border-radius: 0.1875rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.page-nav-label {
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}
.page-nav-links {
  display: flex;
  gap: 0.6875rem;
  flex-wrap: wrap;
}
.page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0.125rem;
  padding: 0.5625rem 0.9375rem;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.page-nav-link:hover { border-color: var(--gold-hi); color: var(--gold-hi); background: rgba(200,144,58,0.08); }
.page-nav-num {
  font-size: 0.8125rem;
  color: var(--amber);
  border: 0.0625rem solid var(--border);
  border-radius: 0.125rem;
  padding: 0.0625rem 0.4375rem;
  opacity: 0.85;
}
#overview, #problems, #thanks, #proposals, #concepts, #minigames, #bonus, #suggestions { scroll-margin-top: 1.125rem; }

/* ── CONTEXT BOX ── */
.context-box {
  background: var(--stone);
  border: 0.0625rem solid var(--border);
  border-left: 0.1875rem solid var(--amber);
  border-radius: 0.125rem;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.7;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
  margin-bottom: 2rem;
}

.context-box strong {
  color: var(--gold);
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
  gap: 0.875rem;
}

/* ── DOC LINK CARD (script link) ── */
/* A real anchor, so its own :link / :visited colours are pinned to the palette
   to keep visited state visually identical to unvisited. */
.doc-link,
.doc-link:link,
.doc-link:visited,
.doc-link:hover,
.doc-link:active,
.doc-link:focus {
  color: var(--dim);
  text-decoration: none;
}

.doc-link {
  display: block;
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  border-left: 0.1875rem solid var(--gold);
  border-radius: 0.1875rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.doc-link:hover,
.doc-link:focus-visible {
  border-color: var(--border-hi);
  border-left-color: var(--gold-hi);
  background: #221b13;
  outline: none;
}

.doc-link .doc-link-kicker {
  color: var(--amber);
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
  margin-bottom: 0.25rem;
}

.doc-link .doc-link-title {
  color: var(--gold-hi);
  font-size: 1.3125rem;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
  margin-bottom: 0.375rem;
}

.doc-link .doc-link-url {
  color: var(--dim);
  font-size: 0.96875rem;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
  word-break: break-all;
}

.card {
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0.1875rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.card:hover {
  border-color: var(--gold);
  background: #201a0e;
}

.card-top {
  padding: 0.875rem 1rem 0.625rem;
  border-bottom: 0.0625rem solid var(--brick);
  flex: 1;
}

.card-badge {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.125rem 0.4375rem;
  border-radius: 0.0625rem;
  margin-bottom: 0.5rem;
  text-shadow: none;
}
.badge-proposal  { background: rgba(80,40,0,0.8); color: #c8a030; border: 0.0625rem solid #7a5010; }
.badge-mechanic  { background: rgba(60,0,0,0.8);  color: #d04030; border: 0.0625rem solid #7a2010; }
.badge-data      { background: rgba(0,30,60,0.8); color: #6090d0; border: 0.0625rem solid #204878; }
.badge-ui        { background: rgba(0,40,20,0.8); color: #50a860; border: 0.0625rem solid #205830; }
.badge-design    { background: rgba(40,0,60,0.8); color: #9060d0; border: 0.0625rem solid #502870; }

.card-title {
  font-size: 1.3125rem;
  color: var(--gold-hi);
  text-shadow: 0.0625rem 0.0625rem 0 #000;
  margin-bottom: 0.375rem;
  line-height: 1.25;
}

.card-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}

.card-bottom {
  padding: 0.5625rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-link-text {
  font-size: 0.875rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}

.card-arrow {
  font-size: 1.03125rem;
  color: var(--border);
  transition: color 0.15s, transform 0.15s;
}
.card:hover .card-arrow {
  color: var(--gold);
  transform: translateX(0.1875rem);
}

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--stone);
  border-top: 0.0625rem solid var(--border);
  border-bottom: 0.0625rem solid var(--border);
  padding: 1.5rem;
}
.about-inner {
  max-width: 68.75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}
.about-stat {
  text-align: center;
}
.about-stat .num {
  font-size: 2.25rem;
  color: var(--gold-hi);
  text-shadow: 0.0625rem 0.0625rem 0 #000;
  display: block;
}
.about-stat .lbl {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}

/* ── FOOTER ── */
footer {
  background: #0a0804;
  border-top: 0.0625rem solid var(--border);
  padding: 1.125rem 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--dim);
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}

/* ── RESPONSIVE ── */

@media (max-width: 600px) {
  .hero-title { font-size: 1.875rem; }
  .about-inner { grid-template-columns: 1fr; gap: 0.75rem; }
  .card-grid { grid-template-columns: 1fr; }
}
.pvp-carousel { position: relative; margin-bottom: 1.75rem; }
.pvp-title {
  text-align: center;
  color: var(--gold-hi);
  font-family: 'RSUF','Cinzel','Lato',monospace;
  font-size: 1.1875rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  min-height: 1.35em;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}
.pvp-stage-wrap { position: relative; }
.pvp-stage {
  position: relative;
  height: 14.0625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pvp-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.5rem;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pvp-slide.active { opacity: 1; pointer-events: auto; }
.pvp-slide img, .pvp-slide a {
  max-height: 14.0625rem;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}
.pvp-slide img {
  border: 0.0625rem solid var(--border);
  border-radius: 0.1875rem;
  background: var(--card-bg);
}
.pvp-slide a { line-height: 0; }
.pvp-slide a img { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.pvp-slide a:hover img { border-color: var(--amber); box-shadow: 0 0.25rem 0.875rem rgba(0,0,0,0.5); }

.pvp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 2.625rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18,14,8,0.86);
  border: 0.0625rem solid var(--border);
  border-radius: 0.1875rem;
  color: var(--amber);
  font-family: 'RSUF','Cinzel','Lato',monospace;
  font-size: 1.875rem;
  line-height: 1;
  padding: 0 0 0.25rem;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.55);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.2s ease;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}
.pvp-arrow:hover { background: var(--card-bg); color: var(--gold-hi); border-color: var(--amber); }
.pvp-arrow-left { left: 0.5rem; }
.pvp-arrow-right { right: 0.5rem; }
.pvp-arrow[disabled] { opacity: 0; pointer-events: none; }

.pvp-dotnav { display: flex; justify-content: center; align-items: center; gap: 0.4375rem; margin-top: 0.875rem; }
.pvp-dots { display: flex; justify-content: center; align-items: center; gap: 0.5625rem; flex-wrap: wrap; }
.pvp-dot-arrow {
  background: transparent;
  border: none;
  color: var(--amber);
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0 0.1875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, opacity 0.15s ease;
  text-shadow: 0.0625rem 0.0625rem 0 #000;
}
.pvp-dot-arrow:hover { color: var(--gold-hi); }
.pvp-dot-arrow[disabled] { opacity: 0.3; pointer-events: none; }
.pvp-dot {
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50%;
  border: 0.0625rem solid var(--border);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.pvp-dot:hover { border-color: var(--amber); transform: scale(1.15); }
.pvp-dot.active { background: var(--amber); border-color: var(--amber); }
.pvp-gallery-empty { color: var(--dim); font-size: 0.9375rem; padding: 0.5rem 0.125rem; text-shadow: 0.0625rem 0.0625rem 0 #000; }
/* ── NEUTRALISE EXTENSION-INJECTED LINKS ──
   Browser extensions that auto-linkify plain-text URLs (e.g. "clickable links"
   type extensions) wrap bare URLs in their own <a> tags with default blue /
   purple colouring. This forces any anchor that is NOT one of our own
   deliberately-styled links to blend into the surrounding text instead. */
main a:not(.card):not(.page-nav-link):not(.doc-link),
main a:not(.card):not(.page-nav-link):not(.doc-link):link,
main a:not(.card):not(.page-nav-link):not(.doc-link):visited,
main a:not(.card):not(.page-nav-link):not(.doc-link):hover,
main a:not(.card):not(.page-nav-link):not(.doc-link):active,
main a:not(.card):not(.page-nav-link):not(.doc-link):focus {
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
  text-shadow: inherit !important;
}

/* ── BACK TO TOP ──
   Pinned to literal px (not this file's rem root) so it renders at the
   same size as shared.css's .back-to-top on the PvP pages, regardless
   of index.css's own root scale. */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 9999;
  background: linear-gradient(180deg, #c89b3c, #8a6a1f);
  border: 1.5px solid #5a4a2a;
  border-radius: 3px;
  padding: 13.5px 22.5px;
  font-family: 'RSUF', 'Cinzel', 'Lato', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #1a1208;
  text-shadow: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}
