/* discunleashed.bindaasgames.com: the game's own colors (game/scripts/ui_theme.gd) and fonts (game/fonts). */
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #080c14;
  --panel: #0e1420;
  --panel-2: #172033;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f2f7ff;
  --muted: #9ea9bd;
  --accent: #ff7a1f;   /* ui_theme ACCENT: the main action */
  --accent-ink: #1a0d02;
  --mint: #3df2b8;     /* ui_theme HILITE */
  --gold: #ffcc4d;
  --red: #e2463c;
  --blue: #2f8fe8;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #8ff8d6; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--panel); padding: 8px 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(8, 12, 20, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 10px 10px; border-radius: 6px; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--mint); }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 0;
  font: 700 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-play { background: var(--accent); color: var(--accent-ink) !important; box-shadow: 0 6px 24px rgba(255, 122, 31, .3); }
.btn-play:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--panel-2); color: var(--ink) !important; border: 1px solid var(--line); }
.btn-ghost:hover { background: #1f2a42; }
.btn small { font: 400 .85rem/1 var(--body); text-transform: none; letter-spacing: 0; opacity: .75; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-big { min-height: 60px; padding: 16px 30px; font-size: 1.5rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url("/img/hero.jpg") center 40% / cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 20, .96) 0%, rgba(8, 12, 20, .75) 45%, rgba(8, 12, 20, .25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 span { color: var(--accent); display: block; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: #d3dbea; max-width: 34em; margin-bottom: 28px; }
.eyebrow { font: 700 .95rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.hint { color: var(--muted); font-size: .95rem; margin-top: 14px; }

/* Sections */
section { padding: clamp(48px, 8vw, 88px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; }
.card .tag { display: inline-block; font: 700 .8rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.shots { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shot { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shot figcaption { padding: 12px 16px; color: var(--muted); font-size: .95rem; }

.band { background: linear-gradient(135deg, #1a1f33, #0e1420); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 5vw, 44px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.band h2 { margin: 0; }
.band p { color: var(--muted); margin: 6px 0 0; }

/* Text pages */
.page-head { padding-top: clamp(40px, 7vw, 72px); padding-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 40em; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 2rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose .meta { color: var(--muted); font-size: .95rem; }
.text-section { padding-top: 24px; }

table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 1.4em; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 700 .9rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--panel-2); }
td:first-child { font-weight: 700; white-space: nowrap; }
kbd { font: 700 .85rem/1 var(--body); background: var(--panel-2); border: 1px solid rgba(255, 255, 255, .18); border-bottom-width: 2px; border-radius: 5px; padding: 3px 7px; white-space: nowrap; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 64px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1.2rem/34px var(--display); text-align: center; }
.steps b { display: block; font: 700 1.25rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 2px; }

/* Download */
.dl { display: flex; flex-direction: column; gap: 14px; }
.dl .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--mint); }
.dl .icon svg { width: 28px; height: 28px; }
.dl .size { color: var(--muted); font-size: .95rem; }
.dl .btn { align-self: flex-start; }
.dl.recommended { border-color: rgba(255, 122, 31, .6); box-shadow: 0 0 0 1px rgba(255, 122, 31, .25); }
.notice { background: rgba(255, 204, 77, .08); border: 1px solid rgba(255, 204, 77, .3); border-radius: var(--radius); padding: 14px 16px; color: #f3e2b5; font-size: .98rem; }
.notice b { color: var(--gold); }
.release { border-left: 3px solid var(--accent); padding-left: 16px; margin-bottom: 28px; }
.release h3 { margin-bottom: .1em; }
.release .date { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.release ul { margin: 0; padding-left: 1.2em; }
.muted { color: var(--muted); }
code { font-size: .9em; background: var(--panel-2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* About */
.person { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8e2459); display: grid; place-items: center; font: 700 2.2rem/1 var(--display); color: #fff; flex: none; }
.studio { font: 700 clamp(2.2rem, 6vw, 3.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.studio span { color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .btns .btn { flex: 1 1 100%; }
  td:first-child { white-space: normal; }
  .brand span { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
