/* iBad City - the iBadProductions portfolio as a pause menu.
   Standalone stylesheet; nothing here touches site.css.
   CSP: no inline styles anywhere, so every rule lives in this file. */

@font-face {
  font-family: "Anton";
  src: url("/assets/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("/assets/oswald-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/ebgaramond-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

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

html { scrollbar-gutter: stable; }
body {
  min-height: 100vh;
  background: #1a0b2e;
  color: #ffeedd;
  font-family: "Oswald", "Segoe UI", sans-serif;
  overflow-x: hidden;
}
::selection { background: #ff2e88; color: #fff; }
a { color: inherit; }

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
:focus-visible { outline: 2px solid #ffd21f; outline-offset: 2px; }

/* ------------------------------------------------ the scene ------------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    #1a0b2e 0%, #4a1259 30%, #b3245e 58%, #ff5f6d 74%, #ff8c42 86%, #ffb25e 100%);
}
.sun {
  position: absolute; left: 62%; top: 46%;
  width: min(44vw, 460px); height: min(44vw, 460px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe27a 0%, #ff9a3d 55%, #ff2e88 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 34px);
          mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 34px);
  opacity: .85;
}
.water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, #43104d 0%, #2a0a33 100%);
}
.water::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(255,95,109,.13) 10px 12px);
}
.skyline {
  position: absolute; left: 0; right: 0; bottom: 20%; height: 100px; opacity: .8;
  background:
    linear-gradient(#160822, #160822) 2%  100% / 5% 62% no-repeat,
    linear-gradient(#1d0a2e, #1d0a2e) 9%  100% / 4% 88% no-repeat,
    linear-gradient(#160822, #160822) 15% 100% / 6% 52% no-repeat,
    linear-gradient(#1d0a2e, #1d0a2e) 24% 100% / 4% 74% no-repeat,
    linear-gradient(#160822, #160822) 31% 100% / 5% 44% no-repeat,
    linear-gradient(#160822, #160822) 74% 100% / 4% 58% no-repeat,
    linear-gradient(#1d0a2e, #1d0a2e) 81% 100% / 5% 84% no-repeat,
    linear-gradient(#160822, #160822) 89% 100% / 4% 66% no-repeat,
    linear-gradient(#1d0a2e, #1d0a2e) 96% 100% / 5% 90% no-repeat;
}
.grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background: repeating-conic-gradient(#fff 0% .0001%, transparent .0001% .0002%);
}

/* the living poster - fixed on wide screens, in-flow above the menu on
   narrow ones. The video is a subtle 6s loop; the poster image covers
   load and reduced-motion. */
.keyart-fig {
  margin: 0; position: fixed; z-index: 3;
  right: min(4vw, 46px); top: 150px;
  width: clamp(240px, 22vw, 330px);
  border: 1px solid rgba(255, 46, 136, .6); border-radius: 4px;
  padding: 8px; background: rgba(20, 6, 28, .55);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 46, 136, .25);
  backdrop-filter: blur(2px);
}
.keyart-video {
  display: block; width: 100%; aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: 2px; background: #14061c;
}
@media (max-width: 1419px) {
  .keyart-fig {
    position: static; width: min(78vw, 340px);
    margin: 0 auto 34px;
  }
}

/* ------------------------------------------------ HUD ------------------- */
.hud {
  position: fixed; top: 22px; right: min(4vw, 46px); z-index: 5;
  text-align: right; font-variant-numeric: tabular-nums;
  text-shadow: 1px 2px 0 rgba(0,0,0,.5);
}
.hud-clock { font-size: 21px; font-weight: 700; letter-spacing: .1em; color: #fff; }
.hud-cash  { font-size: 25px; font-weight: 700; letter-spacing: .05em; color: #7cff6b; }
.hud-stars { color: #ffd21f; font-size: 14px; letter-spacing: 4px; }
.hud-stars .off { opacity: .28; }

/* ------------------------------------------------ pause menu ------------ */
.pause {
  position: relative; z-index: 2;
  padding: 56px min(6vw, 72px) 150px;
  max-width: 1280px;
}
.presents {
  font-family: "EB Garamond", serif; font-style: italic;
  color: #ffb8d6; font-size: 17px; letter-spacing: .04em;
}
.logo {
  font-family: "Anton", "Oswald", sans-serif; line-height: .92;
  font-size: clamp(46px, 7.5vw, 96px); text-transform: uppercase;
  transform: skewX(-6deg); color: #fff;
  text-shadow: 0 3px 0 #ff2e88, 0 7px 22px rgba(0,0,0,.4);
  margin: 6px 0 4px;
}
.logo em { font-style: normal; color: #ffd21f; }
.script-line {
  font-family: "EB Garamond", serif; font-style: italic;
  font-size: clamp(15px, 2vw, 21px); color: #ffd9c4; margin-bottom: 42px;
}

.cols { display: flex; gap: min(5vw, 64px); align-items: flex-start; }

.menu { min-width: 230px; }
.menu ul { list-style: none; }
.menu button, .menu .exit {
  display: block; width: 100%; text-align: left;
  color: #ffeedd; text-transform: uppercase; letter-spacing: .22em;
  font-size: clamp(14px, 1.5vw, 18px); font-weight: 500;
  padding: 9px 14px; margin: 2px 0; text-decoration: none;
  transition: padding .12s ease, background .12s ease;
}
.menu button:hover, .menu button.on, .menu .exit:hover {
  background: linear-gradient(90deg, #ff2e88 0%, rgba(255,46,136,0) 92%);
  color: #fff; padding-left: 26px;
}
.menu .exit { color: rgba(255,238,221,.55); }
.menu-hint {
  margin-top: 18px; padding-left: 14px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,238,221,.4);
}

/* ------------------------------------------------ panels ---------------- */
.stage { flex: 1; min-width: 0; max-width: 620px; }
.panel {
  background: rgba(20, 6, 28, .86);
  border: 1px solid rgba(255, 46, 136, .35);
  border-radius: 4px;
  padding: 24px 26px 28px;
  backdrop-filter: blur(3px);
}
.panel[hidden] { display: none; }
.panel.show { animation: panelin .28s ease; }
@keyframes panelin {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.panel h2 {
  font-family: "Anton", "Oswald", sans-serif; font-size: 25px;
  letter-spacing: .06em; text-transform: uppercase; color: #ffd21f;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.panel .pct {
  font-family: "Oswald", sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: .3em; color: #7cff6b;
}
.panel .sub {
  font-family: "EB Garamond", serif; font-style: italic;
  color: #ffb8d6; margin: 3px 0 20px; font-size: 15.5px;
}
.prose p {
  font-weight: 400; color: #ffe8da; line-height: 1.68; font-size: 15.5px;
  max-width: 60ch;
}
.prose p + p { margin-top: 13px; }
.gold-i { color: #ffd21f; font-family: "EB Garamond", serif; font-style: italic; font-size: 17px; }

.rapsheet { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.rapsheet div {
  display: flex; gap: 16px; padding: 9px 2px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.rapsheet dt {
  width: 150px; flex: none; text-transform: uppercase; letter-spacing: .16em;
  font-size: 11.5px; color: #ffb8d6; padding-top: 3px;
}
.rapsheet dd { font-weight: 500; font-size: 14.5px; color: #fff; }

/* missions */
.mission {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 13px 2px; display: flex; gap: 14px; align-items: baseline;
}
.mission:hover { background: rgba(255,255,255,.04); }
.mp {
  font-family: "Anton", "Oswald", sans-serif; font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap; transform: rotate(-2deg);
  flex: none; width: 108px;
}
.mp.passed { color: #7cff6b; }
.mp.prog   { color: #ffd21f; }
.m-body { flex: 1; min-width: 0; }
.m-name { display: block; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; color: #fff; }
.m-name a { text-decoration: none; border-bottom: 1px solid rgba(255,210,31,.5); }
.m-name a:hover { color: #ffd21f; }
.m-desc { display: block; font-weight: 400; color: rgba(255,217,196,.85); font-size: 13.5px; margin-top: 2px; line-height: 1.45; }
.m-respect {
  flex: none; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,210,31,.75); align-self: center;
}

/* skills */
.skill { padding: 12px 2px 14px; border-top: 1px solid rgba(255,255,255,.12); }
.s-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.s-name { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: #fff; }
.s-num { font-variant-numeric: tabular-nums; color: #ffd21f; font-weight: 700; font-size: 15px; }
.s-bar {
  height: 9px; background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.22);
}
.s-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #ff2e88, #ffd21f);
  transition: width .9s cubic-bezier(.2, .7, .3, 1);
}
.s-note { font-weight: 400; color: rgba(255,217,196,.8); font-size: 13px; margin-top: 7px; }

/* the record */
.rec {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 13px 2px; display: flex; gap: 16px;
}
.rec:hover { background: rgba(255,255,255,.04); }
.r-when {
  flex: none; width: 96px; padding-top: 2px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: #ffd21f;
}
.r-body { flex: 1; }
.r-name { display: block; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14.5px; color: #fff; }
.r-desc { display: block; font-weight: 400; color: rgba(255,217,196,.85); font-size: 13.5px; margin-top: 2px; line-height: 1.5; }

/* trophies */
.trophy-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.trophy {
  border: 1px solid rgba(255,255,255,.16); border-radius: 3px;
  padding: 14px 14px 16px; background: rgba(0,0,0,.28);
}
.t-medal {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 16px; margin-bottom: 10px; color: #14061c;
}
.trophy.gold   .t-medal { background: linear-gradient(160deg, #ffe27a, #caa11f); }
.trophy.silver .t-medal { background: linear-gradient(160deg, #e8e8f2, #9a9ab0); }
.trophy.bronze .t-medal { background: linear-gradient(160deg, #e0a06a, #93542c); }
.t-name { display: block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: #fff; }
.t-desc { display: block; font-weight: 400; color: rgba(255,217,196,.8); font-size: 12.5px; margin-top: 4px; line-height: 1.45; }

/* contact */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cta {
  display: inline-block; text-decoration: none;
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 13px;
  padding: 13px 22px; color: #14061c;
  background: linear-gradient(90deg, #ffd21f, #ff9a3d);
  border-radius: 2px;
}
.cta:hover { filter: brightness(1.08); }
.cta.ghost {
  background: none; color: #ffeedd;
  border: 1px solid rgba(255,238,221,.5);
  text-transform: none; letter-spacing: .04em; font-weight: 500;
}
.cta.ghost:hover { border-color: #ffd21f; color: #ffd21f; filter: none; }

/* ------------------------------------------------ fixed chrome ---------- */
.objective {
  position: fixed; left: min(6vw, 72px); bottom: 30px; z-index: 4; max-width: 480px;
  text-shadow: 1px 2px 0 rgba(0,0,0,.5);
}
.o-k { font-size: 11px; letter-spacing: .3em; color: #ffd21f; text-transform: uppercase; font-weight: 700; }
.o-v { font-size: 15.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.minimap {
  position: fixed; right: min(4vw, 46px); bottom: 26px; z-index: 4;
  width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid #ffeedd;
  background: radial-gradient(circle at 40% 55%, #35543f 0 26%, #23364d 27% 100%);
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  overflow: hidden;
}
.minimap::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff2e88; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(255,46,136,.35);
}
.minimap::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(rgba(255,255,255,.18) 0 14deg, transparent 14deg 360deg);
  animation: radar 4s linear infinite;
}
@keyframes radar { to { transform: rotate(360deg); } }
.colophon {
  position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,238,221,.35); white-space: nowrap;
}

/* ------------------------------------------------ small screens --------- */
@media (max-width: 900px) {
  .cols { flex-direction: column; gap: 26px; }
  .menu { min-width: 0; width: 100%; }
  .menu ul { display: flex; flex-wrap: wrap; gap: 2px 6px; }
  .menu li { flex: 1 1 auto; }
  .menu button, .menu .exit { padding: 8px 10px; font-size: 12.5px; letter-spacing: .14em; white-space: nowrap; }
  .menu button:hover, .menu button.on, .menu .exit:hover { padding-left: 10px; background: #ff2e88; }
  .menu-hint { display: none; }
  .stage { max-width: none; width: 100%; }
  .pause { padding: 46px 20px 170px; }
  .keyart { display: none; }
}
@media (max-width: 620px) {
  /* fixed chrome sits on top of panel text at phone widths - fold the
     objective into the page flow instead and drop the minimap */
  .minimap { display: none; }
  .objective { position: static; margin: 30px 20px 70px; max-width: none; }
  .pause { padding-bottom: 24px; }
  .o-v { font-size: 13px; }
  .hud-clock { font-size: 17px; }
  .hud-cash { font-size: 20px; }
  .mission, .rec { flex-wrap: wrap; }
  .mp { width: auto; }
  .m-respect { display: none; }
  .rapsheet dt { width: 118px; }
  .colophon { display: none; }
}

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