/* Biggie Boy Games: one shared stylesheet for the studio page and the game pages.
   Single dark look on purpose: it matches the games' own purple night boards. */
:root {
  color-scheme: dark;
  --night: #140c29;
  --night-2: #1d1339;
  --panel: #251a47;
  --line: #3a2d66;
  --tile: #4b3a86;
  --tile-hi: #6a56b3;
  --text: #f4efff;
  --muted: #b3a7d6;
  --fuse: #ffc62e;
  --ember: #ff7b22;
  --orbit: #49d3ff;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1120px;
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --mono: "Chakra Petch", "Consolas", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--fuse); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--fuse); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font: 600 12px/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(20, 12, 41, .92); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-tiles { display: flex; gap: 3px; }
.brand-tiles span {
  width: 26px; height: 26px; display: grid; place-items: center;
  font: 400 17px/1 var(--display); color: var(--night);
  background: var(--fuse); border-radius: 5px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
}
.brand-tiles span:nth-child(2) { background: var(--ember); }
.brand-name { font: 400 20px/1 var(--display); letter-spacing: .03em; white-space: nowrap; }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  font: 800 16px/1.1 var(--body); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--fuse); color: #231300; box-shadow: 0 4px 0 #b9820a; }
.btn-main:active { transform: translateY(2px); box-shadow: 0 2px 0 #b9820a; }
.btn-line { border-color: var(--tile-hi); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--panel); }
.btn-off { border-color: var(--line); color: var(--muted); background: transparent; cursor: default; }
.btn-off:hover { transform: none; }
.btn small { display: block; font: 600 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Minesweeper tile field used behind heroes */
.field { position: relative; overflow: hidden; isolation: isolate; }
.field::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 12, 41, .15), var(--night) 92%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(20, 12, 41, .9) 46px 50px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(20, 12, 41, .9) 46px 50px),
    radial-gradient(ellipse at 70% 20%, #3b2a78, #22174a 60%);
}

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-block: 28px; color: var(--muted); font-size: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* Contact block */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.email {
  font: 600 clamp(18px, 3vw, 24px)/1.2 var(--mono); color: var(--text);
  user-select: all; word-break: break-all;
}
.copy {
  font: 700 14px/1 var(--body); padding: 9px 14px; border-radius: 10px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); cursor: pointer;
}
.copy:hover { border-color: var(--tile-hi); }

@media (max-width: 560px) {
  .brand-name { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
