@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;600;800;900&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #050608;
  --bg-soft: #0b0d12;
  --panel: #10141b;
  --panel-2: #171b23;
  --text: #f4f4f4;
  --muted: #9da4ae;
  --line: rgba(255, 255, 255, .13);
  --red: #d93a32;
  --red2: #ff2b3d;
  --green: #98ffd6;
  --gold: #d7bd77;
  --blue: #6aa3ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  overflow-x: hidden;
}

body.zero-body {
  background: #030405;
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font-family: inherit
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: .035;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 4px 4px;
  animation: noise .25s steps(2) infinite;
}

@keyframes noise {
  to {
    transform: translate(-4px, 3px)
  }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(2, 3, 5, .76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo {
  font: 900 18px 'Share Tech Mono';
  letter-spacing: 3px;
}

.logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: #fff
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.small-btn,
.primary,
.secondary,
.danger-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.small-btn {
  min-height: 38px;
  font-size: 12px
}

.primary {
  background: #fff;
  color: #000;
  border-color: #fff
}

.danger-btn {
  background: var(--red);
  border-color: var(--red);
  color: #fff
}

.secondary:hover,
.primary:hover,
.danger-btn:hover,
.ghost-btn:hover,
.small-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.section {
  padding: 112px 7vw;
  position: relative;
}

.full {
  min-height: 100vh;
}

.kicker {
  color: var(--green);
  font: 13px 'Share Tech Mono';
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.red-kicker {
  color: var(--red2)
}

.section-head {
  max-width: 860px;
  margin-bottom: 42px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto
}

.section-head h2 {
  font-size: clamp(34px, 5.4vw, 82px);
  line-height: 1.2;
  letter-spacing: -3px;
  margin: 10px 0 16px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

/* Studio Home */
.studio-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 110px 7vw 70px;
  background:
    radial-gradient(circle at 76% 28%, rgba(215, 189, 119, .16), transparent 26%),
    radial-gradient(circle at 30% 80%, rgba(152, 255, 214, .08), transparent 28%),
    linear-gradient(180deg, #050608, #0b0d12);
}

.studio-copy h1 {
  margin: 0;
  font-size: clamp(64px, 10vw, 152px);
  line-height: .86;
  letter-spacing: -8px;
}

.studio-copy p.lead {
  font-size: clamp(20px, 2.3vw, 32px);
  line-height: 1.55;
  color: #ddd;
  max-width: 680px;
}

.studio-visual {
  height: 600px;
  border: 1px solid var(--line);
  background:
    linear-gradient(to top, rgba(0, 0, 0, .85), transparent),
    radial-gradient(circle at 50% 30%, rgba(215, 189, 119, .25), transparent 24%),
    linear-gradient(135deg, #16191f, #050608);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.moon {
  position: absolute;
  top: 70px;
  right: 90px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #d8d0bd;
  box-shadow: 0 0 80px rgba(215, 189, 119, .45);
}

.studio-building {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 0;
  height: 260px;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, .06) 38px 40px),
    linear-gradient(180deg, #20242b, #0a0c10);
  clip-path: polygon(0 28%, 60% 0, 100% 18%, 100% 100%, 0 100%);
}

.studio-building::after {
  content: "MONYA";
  position: absolute;
  left: 40px;
  bottom: 80px;
  color: var(--red2);
  font: 900 28px 'Share Tech Mono';
  letter-spacing: 3px;
}

.game-hub {
  background: #080a0f;
}

.game-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr .85fr;
  gap: 18px;
}

.game-card {
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 22%, rgba(255, 43, 61, .18), transparent 30%);
  opacity: .8;
}

.game-card>* {
  position: relative
}

.game-card.featured {
  background:
    linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .1)),
    linear-gradient(135deg, #20242b, #080a0f);
}

.game-card h3 {
  font-size: 48px;
  margin: 10px 0 12px;
  letter-spacing: -2px;
}

.game-card p {
  color: var(--muted);
  line-height: 1.7
}

.game-card.locked {
  opacity: .58;
  filter: grayscale(.9)
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}

.news-card time {
  color: var(--green);
  font: 13px 'Share Tech Mono'
}

.news-card p {
  color: var(--muted);
  line-height: 1.7
}

/* Zero Viewers */
.zero-header {
  border-bottom-color: rgba(255, 43, 61, .25);
}

.zero-header .logo {
  color: #fff;
}

.zero-nav-world {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-family: 'Share Tech Mono';
}

.zero-nav-world a:hover {
  color: var(--red2)
}

.live-aside {
  position: fixed;
  right: 22px;
  top: 94px;
  width: 320px;
  height: 540px;
  z-index: 80;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.live-aside-head {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font: 13px 'Share Tech Mono';
}

.live-aside-head b {
  color: var(--red2)
}

.chat-log {
  flex: 1;
  overflow: hidden;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
}

.chat-msg {
  margin-bottom: 10px;
  animation: chatIn .25s ease;
}

.chat-msg b {
  color: var(--green)
}

.chat-msg.danger b {
  color: var(--red2)
}

@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.chat-input {
  padding: 12px;
  border-top: 1px solid var(--line);
  color: #777;
  font-size: 13px;
}

.donation-popup {
  margin: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 43, 61, .5);
  background: rgba(255, 43, 61, .12);
  transform: translateY(80px);
  opacity: 0;
  transition: .35s;
}

.donation-popup.show {
  opacity: 1;
  transform: none;
}

.donation-popup b {
  display: block;
  color: var(--red2)
}

.zero-landing {
  min-height: 100vh;
  padding: 98px 360px 40px 7vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, .32), rgba(0, 0, 0, .92)),
    radial-gradient(circle at 42% 45%, rgba(255, 43, 61, .14), transparent 32%),
    linear-gradient(135deg, #11141b, #030405);
}

.zero-title h1 {
  font-size: clamp(70px, 9vw, 150px);
  line-height: .82;
  letter-spacing: -7px;
  margin: 18px 0 18px;
  font-weight: 900;
  text-shadow: 3px 0 var(--red2), -3px 0 #00ffe1;
}

.zero-title .lead {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.45;
}

.broadcast-screen {
  border: 1px solid var(--line);
  background: #030405;
  box-shadow: var(--shadow);
}

.broadcast-top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font: 13px 'Share Tech Mono';
}

.broadcast-top b {
  color: var(--red2)
}

.cctv-view {
  height: 420px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .9), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 68% 30%, rgba(152, 255, 214, .15), transparent 30%),
    linear-gradient(135deg, #1a2024, #07090d);
  position: relative;
  overflow: hidden;
}

.cctv-view::before {
  content: "CAM 01 / HOSPITAL MAIN HALL";
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--green);
  font: 13px 'Share Tech Mono';
}

.cctv-view::after {
  content: "ZERO VIEWERS";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 900 48px 'Share Tech Mono';
  color: rgba(255, 255, 255, .12);
  letter-spacing: 3px;
}

.broadcast-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.map-section {
  padding-right: 360px;
  background: #050608;
}

.hospital-map {
  min-height: 560px;
  border: 1px solid var(--line);
  background:
    linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .1)),
    radial-gradient(circle at 50% 30%, rgba(152, 255, 214, .12), transparent 30%),
    linear-gradient(135deg, #171b23, #07080b);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-line {
  position: absolute;
  left: 14%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: rgba(255, 43, 61, .6);
  transform: rotate(-11deg);
}

.map-point {
  position: absolute;
  padding: 8px 12px;
  border: 1px solid rgba(255, 43, 61, .5);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.p1 {
  left: 14%;
  top: 60%
}

.p2 {
  left: 36%;
  top: 43%
}

.p3 {
  left: 56%;
  top: 55%
}

.p4 {
  left: 72%;
  top: 34%
}

.p5 {
  left: 82%;
  top: 69%
}

.about-zero,
.records,
.patients,
.systems,
.cctv-media,
.notice,
.steam-final {
  padding-right: 360px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.text-block p {
  color: #d6d9de;
  line-height: 1.9;
  font-size: 18px;
}

.status-card,
.record-book,
.patient-panel,
.system-panel,
.notice-panel,
.steam-card {
  border: 1px solid var(--line);
  background: rgba(12, 15, 20, .82);
  box-shadow: var(--shadow);
}

.status-card {
  padding: 26px
}

.status-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}

.status-card dt {
  color: var(--muted)
}

.status-card dd {
  margin: 0;
  font-weight: 900
}

.record-book {
  min-height: 560px;
  padding: 34px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(214, 200, 170, .9), rgba(120, 105, 86, .85));
  color: #211b16;
}

.record-photo {
  height: 380px;
  border: 2px solid rgba(30, 20, 14, .35);
  background: linear-gradient(160deg, #48423b, #1a1714);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .4);
  font: 900 40px 'Share Tech Mono';
}

.record-book h3 {
  color: #81221f;
  font-size: 44px;
  margin: 6px 0;
}

.record-book p {
  line-height: 1.8
}

.patient-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.patient-list {
  display: grid;
  gap: 10px;
}

.patient-list button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  padding: 14px;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.patient-list button.active {
  background: rgba(255, 43, 61, .14);
  border-color: var(--red2);
}

.patient-panel {
  min-height: 520px;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 26px;
  padding: 26px;
  align-items: center;
}

.patient-portrait {
  height: 450px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(255, 43, 61, .22), rgba(152, 255, 214, .06)), #101216;
  font: 900 50px 'Share Tech Mono';
  color: rgba(255, 255, 255, .35);
}

.patient-panel h3 {
  font-size: 52px;
  margin: 6px 0
}

.patient-panel b {
  color: var(--green)
}

.patient-panel p {
  color: #d5d8dd;
  line-height: 1.8
}

.system-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.system-tabs button {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.system-tabs button.active {
  background: var(--red);
  border-color: var(--red);
}

.system-panel {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: center;
}

.system-panel h3 {
  font-size: 36px;
  margin: 8px 0
}

.system-panel p {
  color: #d6d9de;
  line-height: 1.8
}

.fake-ui {
  border: 1px solid var(--line);
  background: #030405;
  padding: 18px;
  font: 14px 'Share Tech Mono';
}

.cctv-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
}

.camera-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.camera-list button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.camera-list button.active {
  background: rgba(255, 43, 61, .15);
  border-color: var(--red2)
}

.camera-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.camera-card {
  min-height: 220px;
  border: 1px solid var(--line);
  background:
    linear-gradient(to top, rgba(0, 0, 0, .9), transparent),
    radial-gradient(circle at 70% 20%, rgba(152, 255, 214, .12), transparent 28%),
    #11151a;
  padding: 14px;
  color: var(--muted);
  font: 13px 'Share Tech Mono';
}

.notice-panel article {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.notice-panel time {
  color: var(--muted);
  font: 13px 'Share Tech Mono'
}

.notice-panel h3 {
  margin: 0
}

.notice-panel span {
  color: var(--red2)
}

.steam-card {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at 80% 50%, rgba(255, 43, 61, .2), transparent 28%),
    rgba(12, 15, 20, .82);
}

.steam-card h2 {
  font-size: clamp(48px, 6vw, 86px);
  line-height: .9;
  margin: 12px 0;
}

.tv-box {
  min-height: 360px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px),
    #080a0d;
  color: rgba(255, 255, 255, .3);
  font: 900 42px 'Share Tech Mono';
}

.end-broadcast {
  padding: 54px 360px 54px 7vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: #000;
}

.end-broadcast h2 {
  color: var(--red2);
  font: 42px 'Share Tech Mono';
  margin: 0;
  letter-spacing: 4px;
}

.end-broadcast p {
  color: var(--muted)
}

.footer {
  padding: 60px 7vw;
  background: #020203;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 28px;
}

.footer b {
  font: 900 22px 'Share Tech Mono'
}

.footer p,
.footer a {
  color: var(--muted);
  line-height: 1.7
}

.footer a {
  display: block;
  margin: 8px 0
}

.footer a:hover {
  color: white
}

.copy {
  margin-top: 38px;
  font: 12px 'Share Tech Mono';
  color: var(--muted)
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .9);
  place-items: center;
}

.lightbox.open {
  display: grid
}

.lightbox-content {
  width: min(900px, 86vw);
  min-height: 540px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 43, 61, .15), transparent 28%),
    #0b0d12;
  display: grid;
  place-items: center;
  text-align: center;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 36px;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  background: #000;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

@media(max-width:1180px) {
  .live-aside {
    display: none
  }

  .zero-landing,
  .map-section,
  .about-zero,
  .records,
  .patients,
  .systems,
  .cctv-media,
  .notice,
  .steam-final,
  .end-broadcast {
    padding-right: 7vw
  }

  .studio-hero,
  .zero-landing,
  .split,
  .steam-card {
    grid-template-columns: 1fr
  }

  .game-grid,
  .news-list {
    grid-template-columns: 1fr
  }

  .zero-nav-world {
    display: none
  }
}

@media(max-width:820px) {
  .topbar {
    padding: 0 18px
  }

  .nav {
    display: none
  }

  .section {
    padding: 88px 24px
  }

  .zero-landing,
  .map-section,
  .about-zero,
  .records,
  .patients,
  .systems,
  .cctv-media,
  .notice,
  .steam-final,
  .end-broadcast {
    padding-left: 24px;
    padding-right: 24px
  }

  .patient-layout,
  .patient-panel,
  .record-book,
  .system-panel,
  .cctv-grid,
  .end-broadcast,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .camera-grid {
    grid-template-columns: 1fr
  }

  .studio-copy h1,
  .zero-title h1 {
    letter-spacing: -3px
  }

  .studio-visual {
    height: 430px
  }

  .notice-panel article {
    grid-template-columns: 1fr
  }
}


/* v2 polish: logo slot, intro, subtle playful effects */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 43, 61, .16), transparent 32%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px),
    #000;
  transition: opacity .7s ease, visibility .7s ease;
}

.boot-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-terminal {
  width: min(620px, 88vw);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 6, 8, .82);
  box-shadow: 0 30px 120px rgba(0, 0, 0, .65);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.boot-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  transform: translateX(-100%);
  animation: terminalSweep 2.2s ease infinite;
}

@keyframes terminalSweep {
  to {
    transform: translateX(100%)
  }
}

.boot-lines {
  margin: 18px 0 24px;
  font: 14px 'Share Tech Mono';
  color: #d8dce2;
  line-height: 1.9;
}

.boot-lines p {
  opacity: 0;
  transform: translateY(6px);
  animation: bootLine .45s ease forwards;
}

.boot-lines p:nth-child(2) {
  animation-delay: .45s
}

.boot-lines p:nth-child(3) {
  animation-delay: .9s;
  color: var(--green)
}

@keyframes bootLine {
  to {
    opacity: 1;
    transform: none
  }
}

.site-toast {
  position: fixed;
  left: 50%;
  top: 92px;
  transform: translate(-50%, -20px);
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border: 1px solid rgba(255, 43, 61, .5);
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
  transition: .35s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.game-logo-wrap {
  margin: 14px 0 22px;
}

.game-logo-img {
  width: min(560px, 90vw);
  max-height: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(4px 0 0 rgba(255, 43, 61, .5)) drop-shadow(-4px 0 0 rgba(0, 255, 225, .35));
  animation: logoPulse 4s ease infinite;
}

.logo-guide {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .35);
  font-size: 12px;
}

@keyframes logoPulse {

  0%,
  94%,
  100% {
    transform: none;
    filter: drop-shadow(4px 0 0 rgba(255, 43, 61, .45)) drop-shadow(-4px 0 0 rgba(0, 255, 225, .28))
  }

  95% {
    transform: translateX(-3px) skew(-2deg)
  }

  96% {
    transform: translateX(3px)
  }
}

.screen-logo-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62%, 520px);
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: .9;
  filter: drop-shadow(3px 0 0 rgba(255, 43, 61, .55)) drop-shadow(-3px 0 0 rgba(0, 255, 225, .35));
}

.scan-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, .18);
}

.scan-flash.flash {
  animation: scanFlash .32s ease;
}

@keyframes scanFlash {
  0% {
    opacity: 0
  }

  40% {
    opacity: .45
  }

  100% {
    opacity: 0
  }
}

.cctv-view.live-started::before {
  content: "CAM 01 / BROADCASTING";
  color: var(--red2);
}

.cctv-view.live-started {
  animation: subtleShake .45s ease;
}

@keyframes subtleShake {

  0%,
  100% {
    transform: none
  }

  25% {
    transform: translateX(-3px)
  }

  50% {
    transform: translateX(3px)
  }

  75% {
    transform: translateX(-1px)
  }
}

.support-section {
  padding-right: 360px;
  background: #050608;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.support-card {
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .18s;
}

.support-card:hover {
  border-color: var(--red2);
  transform: translateY(-4px);
}

.support-card span {
  color: var(--muted);
  font: 12px 'Share Tech Mono';
}

.support-card b {
  font-size: 18px;
}

.code-widget {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.code-widget input {
  width: 120px;
  min-height: 44px;
  background: #020203;
  border: 1px solid var(--line);
  color: var(--green);
  text-align: center;
  font: 22px 'Share Tech Mono';
  letter-spacing: 4px;
}

.end-broadcast.dimmed {
  animation: endDim .8s ease forwards;
}

@keyframes endDim {
  to {
    filter: brightness(.45);
    opacity: .72
  }
}

@media(max-width:1180px) {
  .support-section {
    padding-right: 7vw
  }

  .support-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:820px) {
  .support-section {
    padding-left: 24px;
    padding-right: 24px
  }

  .support-grid {
    grid-template-columns: 1fr
  }

  .game-logo-img {
    width: min(430px, 92vw)
  }
}

/* ===== Refined visual / audio additions ===== */
.music-toggle {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 170;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(3, 4, 6, .88);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  transition: .2s ease;
}

.music-toggle:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 43, 61, .55)
}

.music-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: var(--green);
  font: 18px 'Share Tech Mono';
}

.music-label {
  font: 11px 'Share Tech Mono'
}

.music-toggle[aria-pressed="true"] .music-icon {
  animation: musicPulse 1.2s ease-in-out infinite
}

@keyframes musicPulse {
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(152, 255, 214, .3)
  }
}

.screen-logo-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: brightness(.78) contrast(1.06) saturate(.82);
  opacity: 1;
}

.cctv-view::after {
  display: none
}

.cctv-view::before {
  z-index: 6;
  text-shadow: 0 1px 8px #000
}

.visual-break {
  position: relative;
  overflow: hidden;
  margin-top: 54px;
  border: 1px solid var(--line);
  min-height: 420px;
  background: #0a0c10;
  box-shadow: var(--shadow);
}

.visual-break img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  filter: brightness(.7) saturate(.82)
}

.visual-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 4, 6, .9), rgba(3, 4, 6, .15) 55%, rgba(3, 4, 6, .1))
}

.visual-caption {
  position: absolute;
  left: 32px;
  bottom: 30px;
  z-index: 2;
  max-width: 420px
}

.visual-caption span,
.showcase-card figcaption span {
  display: block;
  color: var(--green);
  font: 12px 'Share Tech Mono'
}

.visual-caption b {
  display: block;
  margin: 8px 0;
  font-size: 30px
}

.visual-caption p {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 13px
}

.record-photo {
  overflow: hidden
}

.record-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(.25) saturate(.7)
}

.patient-portrait {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center
}

.patient-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transition: opacity .2s ease, transform .35s ease;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35));
}

.patient-portrait.switching img {
  opacity: 0;
  transform: translateX(14px) scale(.985)
}

.patient-code {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .5);
  color: rgba(255, 255, 255, .42);
  font: 11px 'Share Tech Mono';
}

.patient-quote {
  padding-top: 14px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08)
}

.character-thumbs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px
}

.character-thumbs button {
  height: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  padding: 0;
  overflow: hidden;
  cursor: pointer
}

.character-thumbs button:hover {
  border-color: var(--red2);
  transform: translateY(-3px)
}

.character-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: brightness(.68) saturate(.75)
}

.visual-showcase-section {
  padding-right: 360px;
  background: #080a0e
}

.visual-showcase {
  display: grid;
  grid-template-columns: 1.35fr .65fr .65fr;
  gap: 14px
}

.showcase-card {
  margin: 0;
  min-height: 290px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0d12
}

.showcase-card img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  display: block;
  filter: brightness(.72) saturate(.8);
  transition: .4s ease
}

.showcase-card:hover img {
  transform: scale(1.025);
  filter: brightness(.88) saturate(.92)
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent 60%)
}

.showcase-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2
}

.showcase-card figcaption b {
  display: block;
  margin-top: 6px;
  font-size: 18px
}

.camera-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer
}

.camera-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(.25) brightness(.58);
  transition: .25s ease
}

.camera-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px), linear-gradient(to top, rgba(0, 0, 0, .88), transparent 55%)
}

.camera-card span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, .72);
  font: 12px 'Share Tech Mono'
}

.camera-card:hover img {
  transform: scale(1.035);
  filter: grayscale(0) brightness(.82)
}

.tv-box {
  position: relative;
  overflow: hidden
}

.tv-box img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  filter: brightness(.62)
}

.tv-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px), linear-gradient(to top, rgba(0, 0, 0, .75), transparent)
}

.tv-box span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  font: 900 22px 'Share Tech Mono';
  color: rgba(255, 255, 255, .8)
}

.steam-note {
  color: rgba(255, 255, 255, .42);
  font-size: 12px;
  line-height: 1.7
}

.steam-note b {
  color: var(--green)
}

.lightbox-image {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block
}

@media(max-width:1180px) {
  .visual-showcase-section {
    padding-right: 7vw
  }

  .visual-showcase {
    grid-template-columns: 1fr 1fr
  }

  .showcase-wide {
    grid-column: 1/-1
  }
}

@media(max-width:820px) {
  .music-toggle {
    right: 16px;
    bottom: 16px
  }

  .visual-showcase-section {
    padding-left: 24px;
    padding-right: 24px
  }

  .visual-showcase {
    grid-template-columns: 1fr
  }

  .showcase-wide {
    grid-column: auto
  }

  .character-thumbs {
    grid-template-columns: repeat(5, 84px);
    overflow-x: auto
  }
}


/* =========================================
   v4 image sizing fix
   All user images are normalized by the box,
   not by the original file dimensions.
========================================= */

.fit-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Hero: always 16:10-ish, regardless of source image */
.cctv-view {
  height: auto !important;
  aspect-ratio: 16 / 10;
  min-height: 0 !important;
}

.cctv-view .screen-logo-img {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* About artwork: fixed cinematic ratio */
.visual-break {
  min-height: 0 !important;
  aspect-ratio: 16 / 7;
}

.visual-break img {
  min-height: 0 !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Story photo: portrait-ish fixed box */
.record-photo {
  height: auto !important;
  aspect-ratio: 4 / 5;
}

.record-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* CHARACTER:
   Only the selected character appears.
   Transparent full-body PNGs use contain, photos can still fit safely. */
.patient-portrait {
  height: auto !important;
  aspect-ratio: 4 / 5;
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 43, 61, .14), transparent 38%),
    #0b0d11;
}

.patient-portrait img {
  position: relative;
  z-index: 1;

  width: 115% !important;
  height: 115% !important;

  object-fit: contain !important;
  object-position: center bottom !important;

  padding: 0;
}

.patient-code {
  z-index: 4;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .16);
  font: 900 24px 'Share Tech Mono';
}

.patient-portrait img.is-missing {
  opacity: 0 !important;
}

/* Remove old thumbnail UI completely in case stale markup remains */
.character-thumbs {
  display: none !important;
}

/* Mid-page images never become gigantic */
.visual-showcase {
  align-items: stretch;
}

.showcase-card {
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
}

.showcase-card.showcase-wide {
  aspect-ratio: 16 / 9;
}

.showcase-card img {
  min-height: 0 !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* CCTV cards: consistent 16:9 */
.camera-card {
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
}

.camera-card img {
  height: 100% !important;
  object-fit: cover !important;
}

/* Steam key art: fixed, never stretches layout */
.tv-box {
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
}

.tv-box img {
  min-height: 0 !important;
  height: 100% !important;
  object-fit: cover !important;
}



@media(max-width:820px) {
  .visual-break {
    aspect-ratio: 4 / 3;
  }

  .patient-portrait {
    min-height: 360px;
    aspect-ratio: 4 / 5;
  }

  .showcase-card,
  .showcase-card.showcase-wide,
  .camera-card,
  .tv-box {
    aspect-ratio: 16 / 10;
  }
}