:root {
  color-scheme: dark;
  --ink: #f4f1de;
  --muted: #aaa8b4;
  --red: #ff3b52;
  --yellow: #f6c453;
  --panel: rgba(12, 14, 25, 0.92);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, #282947 0, transparent 45%),
    #080a12;
  color: var(--ink);
  font-family: "Trebuchet MS", system-ui, sans-serif;
  display: grid;
  place-items: center;
  padding: 24px;
}

button { font: inherit; }

.game-shell { width: min(1100px, 100%); }

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.topbar h1 {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1;
  margin: 4px 0 0;
  letter-spacing: -1.5px;
}

.eyebrow, .kicker {
  color: var(--yellow);
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 900;
}

.icon-button {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #4b4d67;
  background: #151827;
  color: white;
  cursor: pointer;
  font-size: 20px;
}

.corner-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 9;
  display: flex;
  gap: 8px;
}

.corner-controls .icon-button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(13,15,23,.9);
  box-shadow: 0 6px 18px rgba(0,0,0,.38);
}

.game-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #3d4058;
  border-radius: 16px;
  background: #05060b;
  box-shadow: 0 22px 80px rgba(0, 0, 0, .55), inset 0 0 40px rgba(0, 0, 0, .5);
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.canvas-video-source {
  position: fixed;
  left: -2px;
  bottom: -2px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 3, 8, .58);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.hidden { display: none !important; }

.loading-screen {
  z-index: 200;
  background:
    linear-gradient(rgba(125,132,147,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,132,147,.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 35%, rgba(255,59,82,.14), transparent 32%),
    #080a10;
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
}

.loading-card {
  width: min(520px, 88%);
  padding: 38px;
  border: 1px solid #343843;
  border-left: 5px solid var(--red);
  background: rgba(10,12,18,.96);
  box-shadow: 0 28px 80px rgba(0,0,0,.65), -10px 0 30px rgba(255,59,82,.12);
  text-align: left;
}

.loading-card h2 { margin: 10px 0 7px; font: 900 clamp(27px, 5vw, 42px)/1 Consolas, monospace; }
.loading-card p { margin: 0 0 18px; color: #a9abb4; }
.loading-track { height: 11px; overflow: hidden; border: 1px solid #3d414d; background: #05060a; }
.loading-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ae1830, #ff4058, #f6c453); transition: width .16s ease; }
.loading-card > strong { display: block; margin-top: 9px; color: #f6c453; font: 900 13px/1 Consolas, monospace; text-align: right; }

.zeyno-peek {
  --peek-from: translateY(-112%) rotate(-7deg);
  --peek-at: translateY(0) rotate(-3deg);
  position: fixed;
  z-index: 120;
  width: clamp(105px, 9vw, 155px);
  height: clamp(86px, 7.4vw, 126px);
  overflow: hidden;
  pointer-events: none;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,.75));
  animation: zeyno-peek-one-second 1s ease-in-out both;
}

.zeyno-peek img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.zeyno-peek.peek-top-left { top: 0; left: 3%; }
.zeyno-peek.peek-top-right { top: 0; right: 3%; --peek-from: translateY(-112%) rotate(8deg); --peek-at: translateY(0) rotate(3deg); }
.zeyno-peek.peek-bottom-left { bottom: 0; left: 4%; --peek-from: translateY(112%) rotate(7deg); --peek-at: translateY(0) rotate(3deg); }
.zeyno-peek.peek-bottom-right { right: 4%; bottom: 0; --peek-from: translateY(112%) rotate(-8deg); --peek-at: translateY(0) rotate(-3deg); }
.zeyno-peek.peek-left-middle { top: 37%; left: 0; --peek-from: translateX(-112%) rotate(-12deg); --peek-at: translateX(-8%) rotate(5deg); }
.zeyno-peek.peek-right-middle { top: 42%; right: 0; --peek-from: translateX(112%) rotate(12deg); --peek-at: translateX(8%) rotate(-5deg); }
.zeyno-peek.peek-top-middle { top: 0; left: 47%; --peek-from: translateY(-112%) rotate(5deg); --peek-at: translateY(0) rotate(-2deg); }
.zeyno-peek.peek-bottom-middle { bottom: 0; left: 43%; --peek-from: translateY(112%) rotate(-5deg); --peek-at: translateY(0) rotate(2deg); }

@keyframes zeyno-peek-one-second {
  0% { opacity: 0; transform: var(--peek-from) scale(.86); }
  18% { opacity: 1; transform: var(--peek-at) scale(1.04); }
  72% { opacity: 1; transform: var(--peek-at) scale(1); }
  100% { opacity: 0; transform: var(--peek-from) scale(.9); }
}

.start-card, .dialogue-card {
  max-width: 610px;
  width: 100%;
  border: 1px solid #565971;
  border-radius: 18px;
  background: var(--panel);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
  text-align: center;
}

.start-card h2, .dialogue-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 5vw, 46px);
  line-height: 1.05;
}

.start-card p, .dialogue-card p { color: #c9c7d1; line-height: 1.55; }

.primary-button, .choice-grid button {
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: white;
  padding: 15px 22px;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 5px 0 #9e1f34;
  transition: transform .12s, filter .12s;
}

.menu-buttons { display: grid; gap: 11px; width: min(390px, 100%); margin: 22px auto 0; }

.secondary-button {
  border: 1px solid #555a76;
  border-radius: 10px;
  background: #25293d;
  color: white;
  padding: 14px 20px;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 4px 0 #11131d;
  transition: transform .12s, filter .12s, border-color .12s;
}

.secondary-button:hover { transform: translateY(-2px); filter: brightness(1.15); border-color: #858bad; }
.secondary-button:active { transform: translateY(2px); box-shadow: 0 2px 0 #11131d; }
.costume-button small { color: var(--yellow); margin-left: 6px; font-size: 10px; }
.menu-panel { max-width: 720px; padding: 28px 36px; }
.menu-panel h2 { font-size: clamp(25px, 4vw, 38px); }

.credits-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
  text-align: left;
}

.credits-list p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 10px 13px;
  border-radius: 8px;
  background: #191c2b;
}

.credits-list strong { color: var(--yellow); }
.credits-list span { text-align: right; }
.credits-list .tiny-credit {
  align-items: center;
  border-left: 3px solid rgba(246, 196, 83, .58);
  font-size: 12px;
  line-height: 1.35;
}
.credits-list .tiny-credit span { max-width: 360px; color: #d6d8e2; }

.skin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 18px 0 22px;
}

.skin-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 205px;
  padding: 12px;
  border: 2px solid #42465d;
  border-radius: 12px;
  background: #171a28;
  color: #eeecf3;
  cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s;
}

.skin-card:hover { transform: translateY(-3px); border-color: #777d9d; }
.skin-card.selected { border-color: var(--yellow); background: #292538; box-shadow: 0 0 22px rgba(246,196,83,.17); }
.skin-card.selected::after { content: "SEÇİLDİ"; position: absolute; top: 8px; right: 8px; color: #11131d; background: var(--yellow); border-radius: 5px; padding: 3px 6px; font-size: 8px; font-weight: 900; }
.skin-card img { width: 100%; height: 155px; object-fit: contain; image-rendering: auto; }
.menu-close { min-width: 190px; }

.primary-button:hover, .choice-grid button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.primary-button:active, .choice-grid button:active { transform: translateY(3px); box-shadow: 0 2px 0 #9e1f34; }

.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.controls b { color: white; }
.phone-icon { font-size: 54px; animation: shake .18s infinite alternate; }

/* Ana menü: sade, okunaklı ve oyun içi bir kontrol paneli gibi davranır. */
.start-screen {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 45%, rgba(255,59,82,.08), transparent 31%),
    linear-gradient(118deg, #090a0f 0 54%, #07080c 54% 100%);
  backdrop-filter: none;
}

.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(108deg, transparent 0 57.5%, rgba(255,59,82,.42) 57.6% 57.78%, transparent 57.9%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  pointer-events: none;
}

.start-screen::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(#ff5367, #bd1730);
  box-shadow: 8px 0 28px rgba(255,59,82,.18);
}

.start-screen .main-menu-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  grid-template-areas:
    "intro actions"
    "controls controls"
    "build build";
  gap: 24px 62px;
  align-items: center;
  max-width: none;
  height: 100%;
  padding: 44px 58px 24px 66px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.menu-intro { grid-area: intro; align-self: end; }

.menu-intro::before {
  content: "NÖBET DOSYASI / 047";
  display: block;
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 9px 5px 11px;
  border-left: 2px solid var(--red);
  background: #05060a;
  color: #656976;
  font: 700 8px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1.4px;
}

.menu-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px 11px 6px 7px;
  border: 1px solid #242732;
  background: rgba(5,6,10,.82);
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
}

.menu-mark b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--red);
  background: #11131a;
  color: var(--red);
  font-size: 14px;
  letter-spacing: -1px;
}

.menu-mark span { color: #777b89; font-size: 11px; }

.start-screen .kicker {
  margin: 0 0 9px;
  color: #8d909b;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 1.5px;
}

.start-screen .main-menu-card h2 {
  margin: 0;
  color: #f5f3ec;
  font-size: clamp(45px, 6.4vw, 70px);
  line-height: .86;
  letter-spacing: -3.5px;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0,0,0,.52);
}

.start-screen .main-menu-card h2 span { display: block; color: var(--red); }
.start-screen .main-menu-card h2 em { color: var(--yellow); font-style: normal; letter-spacing: -5px; }

.start-screen .menu-lead {
  max-width: 470px;
  margin: 22px 0 17px;
  padding-left: 12px;
  border-left: 1px solid #393c46;
  color: #aeb0b8;
  font-size: 13px;
  line-height: 1.55;
}

.menu-meta { display: flex; flex-wrap: wrap; gap: 7px; }

.menu-meta span {
  padding: 5px 9px;
  border: 1px solid #30333d;
  background: rgba(7,8,12,.68);
  color: #8d919c;
  font: 700 9px/1 Consolas, "Courier New", monospace;
  letter-spacing: .8px;
}

.start-screen .menu-buttons {
  grid-area: actions;
  align-self: center;
  width: 100%;
  margin: 0;
  gap: 10px;
}

.start-screen .menu-buttons::before {
  content: "ANA MENÜ";
  margin-bottom: 2px;
  color: #5f626d;
  font: 700 9px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1.6px;
}

.start-screen .menu-buttons button {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 0 18px 0 10px;
  border: 1px solid #343743;
  border-left: 3px solid #555965;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(19,21,29,.97), rgba(12,14,20,.93));
  box-shadow: none;
  color: #d7d7dc;
  text-align: left;
  transition: border-color .12s, background .12s, color .12s, transform .12s;
}

.start-screen .menu-buttons button > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 36px;
  background: #06070a;
  color: #626671;
  font: 700 10px/1 Consolas, "Courier New", monospace;
}

.start-screen .menu-buttons button strong { font-size: 12px; letter-spacing: .85px; }
.start-screen .menu-buttons button i { color: #727681; font-style: normal; font-size: 18px; }
.start-screen .menu-buttons .primary-button {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(43,17,24,.98), rgba(15,17,23,.94) 42%);
  color: #fff;
  box-shadow: 0 0 30px rgba(255,59,82,.07);
}
.start-screen .menu-buttons .costume-button { grid-template-columns: 32px 1fr auto auto; }
.start-screen .menu-buttons .costume-button small { margin: 0 10px 0 0; }

.start-screen .menu-buttons button:hover {
  transform: translateX(5px);
  border-color: #777b88;
  border-left-color: var(--red);
  background: #1b1d25;
  color: #fff;
  filter: none;
  box-shadow: 0 7px 24px rgba(0,0,0,.3);
}

.start-screen .menu-buttons button:active { transform: translateX(8px); box-shadow: none; }

.start-screen .controls {
  grid-area: controls;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #2c2e36;
  font: 700 10px/1.2 Consolas, "Courier New", monospace;
}

.start-screen .controls span { padding-right: 18px; }
.start-screen .controls b { color: #ececf0; font-weight: 700; }

.build-label {
  grid-area: build;
  margin: 0 !important;
  color: #585b65 !important;
  font: 700 9px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1px;
}

/* 4.6 ana menü: referanstaki geniş teknik gece paneli. */
body {
  background:
    linear-gradient(108deg, #07090e 0 43%, #242833 100%);
}

.game-shell { width: min(1120px, 100%); }
.topbar { margin-bottom: 18px; }
.topbar h1 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -.8px; }
.topbar .eyebrow { color: #ba8d62; font-size: 11px; letter-spacing: 1.7px; }

.start-screen {
  background:
    radial-gradient(circle at 68% 42%, rgba(255,54,74,.055), transparent 27%),
    linear-gradient(100deg, #090b10 0 58%, #07090d 100%);
}

.start-screen::before {
  background:
    linear-gradient(rgba(125,132,147,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,132,147,.09) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 62%, rgba(255,59,82,.08) 62.1%, transparent 88%);
  background-size: 27px 27px, 27px 27px, 100% 100%;
  opacity: .72;
}

.start-screen::after {
  width: 6px;
  background: linear-gradient(#ff4058, #c31932);
  box-shadow: 5px 0 22px rgba(255,59,82,.32);
}

.start-screen .main-menu-card {
  grid-template-columns: minmax(0, 1fr) minmax(350px, .92fr);
  grid-template-areas:
    "intro actions"
    "controls controls"
    "build build";
  gap: 28px 70px;
  padding: 78px 84px 28px 92px;
}

.menu-intro { align-self: center; }
.menu-intro::before { display: none; }
.start-screen .kicker { margin-bottom: 13px; color: #8b8e97; font-size: 10px; letter-spacing: 1.5px; }
.start-screen .main-menu-card h2 { font-size: clamp(49px, 6vw, 66px); line-height: .93; letter-spacing: -2.8px; }
.start-screen .main-menu-card h2 span { color: #f5f3ec; }
.start-screen .main-menu-card h2 em { color: #f5f3ec; letter-spacing: -3px; }
.start-screen .menu-lead { max-width: 460px; margin: 20px 0 16px; padding-left: 12px; border-left: 2px solid #5f626c; color: #aeb0b8; font-size: 12px; line-height: 1.45; }
.menu-meta span { padding: 4px 8px; border-color: #353843; color: #9699a2; font-size: 8px; }

.start-screen .menu-buttons { align-self: center; gap: 14px; }
.start-screen .menu-buttons::before { display: none; }
.start-screen .menu-buttons button,
.start-screen .menu-buttons .costume-button {
  grid-template-columns: 34px 38px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 0 18px 0 10px;
  border: 0;
  border-left: 3px solid #505563;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(16,18,25,.96), rgba(10,12,18,.48));
  box-shadow: inset 0 1px rgba(255,255,255,.035), inset 0 -1px rgba(255,255,255,.035);
}

.start-screen .menu-buttons .primary-button {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(63,15,25,.82), rgba(21,15,22,.58) 58%, transparent);
  box-shadow: -10px 0 26px rgba(255,59,82,.09), inset 0 1px rgba(255,255,255,.04), inset 0 -1px rgba(255,255,255,.04);
}

.start-screen .menu-buttons button > .menu-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 40px;
  background: transparent;
  color: #df3e52;
  font: 900 21px/1 Arial, sans-serif;
}

.start-screen .menu-buttons .menu-index {
  color: #8b8d96;
  font: 800 12px/1 Consolas, "Courier New", monospace;
  letter-spacing: .5px;
}

.start-screen .menu-buttons .primary-button .menu-index { color: #e3485c; }
.start-screen .menu-buttons button strong { color: #e6e5e1; font: 800 14px/1 Consolas, "Courier New", monospace; letter-spacing: .25px; }
.start-screen .menu-buttons .costume-button small { margin: 0; color: #e0ab3d; font-size: 8px; letter-spacing: 1px; }
.start-screen .menu-buttons .continue-button { border-left-color: #f6c453; background: linear-gradient(90deg, rgba(78,57,18,.76), rgba(22,18,12,.5) 62%, transparent); }
.start-screen .menu-buttons .continue-button .menu-icon,
.start-screen .menu-buttons .continue-button .menu-index { color: #f6c453; }
.start-screen .menu-buttons .continue-button small { color: #d9c68a; font: 800 8px/1.25 Consolas, monospace; text-align: right; }
.start-screen .menu-buttons button:hover { transform: translateX(4px); border-left-color: #ff4d63; background: linear-gradient(90deg, rgba(53,21,29,.9), rgba(14,16,22,.7)); }

.start-screen .controls {
  gap: 10px;
  padding-top: 17px;
  border-top-color: #31343d;
  color: #a5a7ae;
  font-size: 9px;
}

.start-screen .controls::before { content: "KONTROLLER:"; color: #ecebe7; font-weight: 900; }
.start-screen .controls span { padding-right: 4px; }
.build-label { color: #62646c !important; font-size: 8px; }
.desktop-notice { grid-column: 1 / -1; margin: -16px 0 -18px !important; color: #b5a365 !important; font: 800 9px/1.3 Consolas, monospace; text-align: center; }
.credits-list .special-credit { border-left: 2px solid #d7a74c; background: linear-gradient(90deg, rgba(215,167,76,.11), transparent); }
.credits-list .special-credit strong { color: #efc86e; }
.credits-list .special-credit span { color: #f0e6c7; }

/* Katkıda bulunanlar ve kostümler: ana menüyle aynı kırmızı teknik arayüz. */
#creditsScreen,
#skinsScreen {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 59, 82, .09), transparent 30%),
    linear-gradient(104deg, #090b10 0 60%, #07080d 100%);
  backdrop-filter: none;
}

#creditsScreen::before,
#skinsScreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(125,132,147,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,132,147,.075) 1px, transparent 1px),
    linear-gradient(108deg, transparent 0 69%, rgba(255,59,82,.2) 69.1% 69.3%, transparent 69.4%);
  background-size: 27px 27px, 27px 27px, 100% 100%;
  pointer-events: none;
}

#creditsScreen::after,
#skinsScreen::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(#ff4058, #b9142c);
  box-shadow: 7px 0 28px rgba(255,59,82,.3);
}

#creditsScreen .menu-panel,
#skinsScreen .menu-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-width: 900px;
  max-height: 100%;
  overflow: auto;
  padding: 34px 42px 30px;
  border: 1px solid #343842;
  border-left: 5px solid var(--red);
  border-radius: 5px;
  background: linear-gradient(112deg, rgba(13,15,21,.97), rgba(8,10,15,.91));
  box-shadow: 0 28px 80px rgba(0,0,0,.62), -12px 0 35px rgba(255,59,82,.08);
  text-align: left;
}

#creditsScreen .menu-panel::before {
  content: "DOSYA 02 // KATKIDA BULUNANLAR";
}

#skinsScreen .menu-panel::before {
  content: "DOSYA 03 // KARAKTER KOSTÜMLERİ // BELEŞŞ";
}

#creditsScreen .menu-panel::before,
#skinsScreen .menu-panel::before {
  display: block;
  margin-bottom: 19px;
  padding: 6px 10px;
  border-left: 2px solid var(--red);
  background: #06070a;
  color: #707580;
  font: 800 9px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1.3px;
}

#creditsScreen .kicker,
#skinsScreen .kicker {
  margin: 0 0 7px;
  color: #ee4358;
  font: 900 10px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1.7px;
}

#creditsScreen .menu-panel h2,
#skinsScreen .menu-panel h2 {
  margin: 0;
  color: #f0efeb;
  font: 900 clamp(28px, 4vw, 42px)/.98 Consolas, "Courier New", monospace;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

#creditsScreen .credits-list {
  gap: 7px;
  margin: 25px 0 22px;
}

#creditsScreen .credits-list p {
  align-items: center;
  min-height: 45px;
  padding: 10px 14px;
  border: 1px solid #292d36;
  border-left: 3px solid #4d515c;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(25,27,35,.96), rgba(12,14,20,.6));
}

#creditsScreen .credits-list p:hover { border-left-color: var(--red); background: linear-gradient(90deg, rgba(47,19,27,.9), rgba(12,14,20,.65)); }
#creditsScreen .credits-list strong { color: #ef465b; font: 800 11px/1.25 Consolas, "Courier New", monospace; letter-spacing: .3px; }
#creditsScreen .credits-list span { color: #d1d2d7; font: 700 11px/1.35 Consolas, "Courier New", monospace; }
#creditsScreen .credits-list .special-credit { border-left-color: #ff4058; background: linear-gradient(90deg, rgba(75,19,30,.72), rgba(13,15,21,.65)); }
#creditsScreen .credits-list .special-credit strong { color: #ff6073; }
#creditsScreen .credits-list .special-credit span { color: #f2dfe3; }
#creditsScreen .credits-list .rights-credit { border-left-color: #d2a747; }
#creditsScreen .credits-list .rights-credit strong { color: #f6c453; }

.pause-screen {
  z-index: 80;
  background:
    linear-gradient(rgba(125,132,147,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,132,147,.07) 1px, transparent 1px),
    rgba(4,5,9,.82);
  background-size: 27px 27px, 27px 27px, 100% 100%;
  backdrop-filter: blur(7px);
}

.pause-card {
  max-width: 610px;
  border-radius: 4px;
  border-left: 5px solid var(--red);
  background: linear-gradient(112deg, rgba(13,15,21,.98), rgba(8,10,15,.95));
  text-align: left;
}

.pause-card h2 { margin-bottom: 6px; text-transform: uppercase; }
.pause-card > small { display: block; margin-top: 15px; color: #737782; text-align: center; }
.checkpoint-label { margin: 0 0 20px !important; color: #d4bd76 !important; font: 800 11px/1.4 Consolas, monospace; }
.volume-settings { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 19px 0 23px; padding: 16px; border: 1px solid #30343e; background: #090b10; }
.volume-settings label { color: #d9d9dd; font: 800 11px/1 Consolas, monospace; }
.volume-settings output { color: var(--yellow); }
.volume-settings input { grid-column: 1 / -1; width: 100%; accent-color: var(--red); cursor: pointer; }
.pause-actions { display: grid; gap: 10px; }
.pause-actions button { width: 100%; }
.danger-button { border-color: #6e2f39; color: #ff94a2; }

#skinsScreen .skin-grid {
  gap: 14px;
  margin: 27px 0 24px;
}

#skinsScreen .skin-card {
  min-height: 238px;
  padding: 16px 12px 13px;
  border: 1px solid #343843;
  border-top: 3px solid #4b4f5a;
  border-radius: 2px;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(150deg, #171922, #0d0f15);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}

#skinsScreen .skin-card::before {
  position: absolute;
  left: 10px;
  top: 9px;
  color: #666b76;
  font: 800 8px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1px;
}

#skinsScreen .skin-card[data-skin="0"]::before { content: "KOSTÜM // 01"; }
#skinsScreen .skin-card[data-skin="1"]::before { content: "KOSTÜM // 02"; }
#skinsScreen .skin-card[data-skin="2"]::before { content: "KOSTÜM // 03"; }
#skinsScreen .skin-card:hover { transform: translateY(-4px); border-color: #6e313d; border-top-color: var(--red); background-color: #1a1218; }
#skinsScreen .skin-card.selected { border-color: #a92a3d; border-top-color: #ff4058; background: linear-gradient(150deg, #32141d, #101117 72%); box-shadow: 0 0 30px rgba(255,59,82,.14), inset 0 0 0 1px rgba(255,82,103,.08); }
#skinsScreen .skin-card.selected::after { content: "SEÇİLDİ"; top: 7px; right: 8px; border-radius: 1px; background: var(--red); color: #fff; font-family: Consolas, "Courier New", monospace; letter-spacing: .7px; }
#skinsScreen .skin-card img { height: 172px; filter: drop-shadow(0 14px 16px rgba(0,0,0,.48)); }
#skinsScreen .skin-card strong { color: #e9e8e4; font: 900 13px/1 Consolas, "Courier New", monospace; letter-spacing: .35px; text-transform: uppercase; }

#creditsScreen .menu-close,
#skinsScreen .menu-close {
  min-width: 220px;
  margin-left: auto;
  display: block;
  border: 1px solid #383c46;
  border-left: 4px solid var(--red);
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(58,17,25,.9), rgba(15,17,23,.96));
  box-shadow: none;
  color: #f1f0ec;
  font: 900 10px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1px;
}

#creditsScreen .menu-close:hover,
#skinsScreen .menu-close:hover { transform: translateX(-4px); border-color: #ff4d63; filter: none; }

/* Telefon ekranındaki kırmızı ve yeşil düğmeler gerçek tıklama alanlarıdır. */
#choiceScreen { background: rgba(3,4,8,.86); backdrop-filter: blur(5px); }

.phone-call-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 100%);
  max-height: 100%;
  text-align: center;
}

.incoming-label {
  margin: 0 0 6px;
  color: #a7a9b1;
  font: 700 10px/1 Consolas, "Courier New", monospace;
  letter-spacing: 2px;
}

.phone-stage {
  position: relative;
  width: min(210px, 42vw);
  aspect-ratio: 233 / 465;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.65));
}

.phone-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }

.phone-hit {
  position: absolute;
  top: 78.3%;
  width: 19%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}

.phone-decline { left: 29.2%; }
.phone-accept { left: 71.2%; }
.phone-decline:hover { border-color: #ff4c55; box-shadow: 0 0 0 6px rgba(255,57,69,.18); }
.phone-accept:hover { border-color: #63ec78; box-shadow: 0 0 0 6px rgba(75,225,99,.18); }
.phone-hit:active { transform: translate(-50%, -50%) scale(.9); }

.airplane-choice {
  margin-top: 7px;
  padding: 8px 12px;
  border: 1px solid #383b46;
  border-radius: 3px;
  background: #11131a;
  color: #afb1bb;
  font: 800 10px/1.2 Consolas, "Courier New", monospace;
  letter-spacing: .6px;
  cursor: pointer;
}

.airplane-choice small { color: #6f727d; font-size: 9px; }
.airplane-choice:hover { border-color: #777b87; color: #fff; }

.call-hint {
  margin: 8px 0 0;
  color: #6e717b;
  font-size: 10px;
}

.video-screen {
  padding: 18px;
  background: rgba(0,0,0,.94);
  backdrop-filter: none;
}

.video-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-phone {
  position: relative;
  width: min(238px, 45vw);
  max-height: 100%;
  aspect-ratio: 233 / 465;
  overflow: hidden;
  border: 5px solid #74767c;
  border-radius: 35px;
  background: #030303;
  box-shadow:
    inset 0 0 0 2px #1a1b1f,
    0 24px 70px rgba(0,0,0,.85),
    0 0 0 1px #16171b;
}

.video-phone video {
  position: absolute;
  inset: 18px 7px 14px;
  display: block;
  width: calc(100% - 14px);
  height: calc(100% - 32px);
  object-fit: contain;
  object-position: center;
  border-radius: 25px;
  background: #000;
}

.video-phone-speaker {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 48px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: #25262a;
}

.video-phone-home {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 6px;
  width: 66px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: #d7d7d8;
}

.video-skip {
  position: absolute;
  right: 122px;
  bottom: 14px;
  padding: 9px 13px;
  border: 1px solid #595c66;
  border-radius: 2px;
  background: rgba(7,8,12,.86);
  color: #d7d8dc;
  font: 800 10px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1px;
  cursor: pointer;
}

.video-skip:hover { border-color: #fff; color: #fff; }

.pc-screen {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  background:
    radial-gradient(circle at 50% 45%, rgba(38, 104, 126, .2), transparent 52%),
    rgba(2, 4, 8, .96);
}

.pc-monitor-shell {
  width: min(900px, 100%);
  height: min(500px, 100%);
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr) 58px;
  overflow: hidden;
  border: 6px solid #232832;
  border-radius: 9px;
  background: #090b10;
  box-shadow: 0 0 0 2px #535c69, 0 0 70px rgba(58, 213, 239, .2), 0 30px 80px #000;
}

.pc-monitor-header,
.pc-monitor-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(180deg, #202631, #11151c);
  color: #bfc9d2;
  font: 800 11px/1 Consolas, "Courier New", monospace;
  letter-spacing: .7px;
}

.pc-monitor-header strong { flex: 1; color: #e7faff; }
.pc-status-light { width: 9px; height: 9px; border-radius: 50%; background: #47efa2; box-shadow: 0 0 13px #47efa2; }

.pc-monitor-display { position: relative; min-height: 0; overflow: hidden; background: #000; }
.pc-monitor-display video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.pc-desktop {
  background:
    linear-gradient(rgba(6, 0, 8, .13), rgba(6, 0, 8, .2)),
    url("assets/pc-wallpaper-red.png") center/cover no-repeat;
}

.pc-desktop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(16, 17, 25, .92), rgba(4, 5, 9, .98));
  border-top: 1px solid rgba(255, 95, 122, .42);
  pointer-events: none;
}

.pc-desktop-icons {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 18px;
  display: grid;
  gap: 12px;
}

.pc-desktop-icon {
  width: 88px;
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 700 10px/1.15 Consolas, "Courier New", monospace;
  text-shadow: 0 2px 4px #000;
}

.pc-desktop-icon:hover,
.pc-desktop-icon:focus-visible {
  border-color: rgba(255, 105, 132, .86);
  background: rgba(82, 12, 31, .6);
  outline: none;
}

.pc-desktop-icon span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 7px;
  background: linear-gradient(145deg, #f14465, #4d1022);
  box-shadow: 0 5px 14px rgba(0,0,0,.55);
  font-size: 20px;
}

.pc-app-window {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(650px, 76%);
  max-height: 86%;
  transform: translate(-42%, -52%);
  overflow: hidden;
  border: 1px solid #6f7580;
  border-radius: 4px;
  background: rgba(9, 10, 15, .98);
  box-shadow: 0 20px 55px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
}

.pc-app-window > header {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 11px;
  background: linear-gradient(90deg, #7c162c, #28121b);
  color: #fff;
  font: 800 10px/1 Consolas, "Courier New", monospace;
}

.pc-window-close {
  align-self: stretch;
  width: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.pc-window-close:hover { background: #d52e4c; }
.pc-video-window video { height: min(330px, 47vh); }
.pc-notes-window,
.pc-trash-window { width: min(500px, 68%); }
.pc-notes-window > div,
.pc-trash-window > div {
  min-height: 230px;
  padding: 22px;
  background: rgba(244, 238, 218, .98);
  color: #222129;
  font: 700 13px/1.7 Consolas, "Courier New", monospace;
}
.pc-notes-window p,
.pc-trash-window p { margin: 0 0 9px; }
.pc-trash-window p { display: inline-block; margin: 16px 12px 0 0; padding: 8px; border: 1px solid #beb5a2; background: #eee8d8; }
.pc-scanlines { position: absolute; z-index: 9; inset: 0; pointer-events: none; opacity: .1; background: repeating-linear-gradient(0deg, transparent 0 3px, #78ebff 4px); }

.pc-monitor-footer { justify-content: space-between; border-top: 1px solid #35404c; }
.pc-monitor-footer > span { color: #7f929f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-monitor-footer .secondary-button { width: auto; margin: 0; padding: 10px 14px; color: #eafcff; }
.pc-monitor-footer small { margin-left: 7px; color: #5fd6ec; }

@media (max-width: 680px) {
  .pc-screen { padding: 8px; }
  .pc-monitor-shell { height: 100%; grid-template-rows: 34px minmax(0, 1fr) 52px; border-width: 3px; }
  .pc-monitor-header { padding: 0 8px; font-size: 8px; }
  .pc-monitor-footer { padding: 0 8px; }
  .pc-monitor-footer > span { display: none; }
  .pc-monitor-footer .secondary-button { width: 100%; padding: 9px; font-size: 9px; }
  .pc-desktop-icons { top: 8px; left: 5px; gap: 5px; }
  .pc-desktop-icon { width: 68px; min-height: 62px; font-size: 8px; }
  .pc-desktop-icon span { width: 31px; height: 31px; font-size: 16px; }
  .pc-app-window { width: 76%; transform: translate(-38%, -52%); }
  .pc-notes-window > div, .pc-trash-window > div { min-height: 180px; padding: 13px; font-size: 10px; }
}

.game-shell:fullscreen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100vw;
  height: 100vh;
  padding: 16px 24px 8px;
  background: #080a12;
}

.game-shell:fullscreen .game-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 8px;
}

.game-shell:fullscreen .topbar { margin-bottom: 10px; }
.game-shell:fullscreen .topbar h1 { font-size: 28px; }
.game-shell:fullscreen .footnote { margin: 6px 0 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pet-photo {
  display: block;
  width: min(230px, 55vw);
  max-height: 245px;
  object-fit: cover;
  object-position: center 35%;
  margin: 0 auto 18px;
  border: 3px solid #f6c453;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}

.choice-grid { display: grid; gap: 10px; margin-top: 22px; }
.choice-grid button { background: #262a40; box-shadow: 0 4px 0 #11131d; text-align: left; }

.hud {
  position: absolute;
  inset: 18px 18px auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  pointer-events: none;
  z-index: 2;
}

.objective, .tea-counter, .cat-counter {
  background: rgba(7, 8, 15, .82);
  border: 1px solid #45475b;
  border-radius: 9px;
  padding: 10px 14px;
  box-shadow: 0 5px 18px rgba(0,0,0,.28);
}

.objective span { display: block; color: var(--yellow); font-size: 9px; letter-spacing: 1.5px; }
.objective strong { font-size: 14px; }
.tea-counter { color: #bbb9c7; font-size: 12px; }
.tea-counter strong, .cat-counter strong { color: var(--yellow); }
.cat-counter { color: #bbb9c7; font-size: 12px; }
.collectibles { display: flex; gap: 8px; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(10, 11, 20, .94);
  border: 1px solid #575a71;
  font-weight: bold;
}

.subtitle-bar {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(820px, calc(100% - 150px));
  min-height: 66px;
  padding: 12px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(246, 196, 83, .7);
  border-left: 5px solid var(--yellow);
  border-radius: 5px;
  background: rgba(4, 5, 9, .94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .68);
  pointer-events: none;
}

.subtitle-bar strong {
  color: var(--yellow);
  font: 900 12px/1.25 Consolas, "Courier New", monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.subtitle-bar span {
  color: #fffdf4;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.32;
  text-shadow: 0 2px 4px #000;
}

.subtitle-bar small {
  color: #858894;
  font: 800 9px/1 Consolas, "Courier New", monospace;
  white-space: nowrap;
}

.game-frame:has(.subtitle-bar:not(.hidden)) .toast { bottom: 104px; }

.monkey-jumpscare {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050000;
  isolation: isolate;
  animation: monkey-screen-shake .075s steps(2, end) infinite;
}

.monkey-jumpscare::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12%;
  background: repeating-radial-gradient(circle at center, #ff182f 0 10px, #310008 12px 28px);
  animation: monkey-pulse .18s steps(2, end) infinite alternate;
}

.monkey-jumpscare img {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(650px, 78%);
  height: 118%;
  transform: translate(-50%, -50%) scale(1.12);
  object-fit: contain;
  filter: contrast(1.5) saturate(1.7) drop-shadow(0 0 28px #000);
}

.monkey-jumpscare h2 {
  position: absolute;
  z-index: 2;
  left: 4%;
  right: 4%;
  bottom: 7%;
  margin: 0;
  color: #fff;
  font: 1000 clamp(34px, 6.2vw, 68px)/.9 Impact, Haettenschweiler, sans-serif;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 5px 5px 0 #000, -3px -3px 0 #000, 0 0 18px #ff2437;
}

.monkey-jumpscare h2 span { color: #ffe450; }

@keyframes monkey-screen-shake {
  from { transform: translate(-5px, 3px) scale(1.02); }
  to { transform: translate(5px, -3px) scale(1.02); }
}

@keyframes monkey-pulse {
  from { transform: scale(.92) rotate(-2deg); filter: brightness(.78); }
  to { transform: scale(1.08) rotate(2deg); filter: brightness(1.35); }
}

.rhythm-screen {
  position: absolute;
  z-index: 18;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 9px;
  padding: 13px 16px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(116, 5, 24, .88) 0 34%, transparent 34% 66%, rgba(5, 65, 111, .88) 66%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.045) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.045) 32px),
    #090b11;
  isolation: isolate;
}

.rhythm-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20%;
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255,255,255,.035) 0 7deg, transparent 7deg 15deg);
  animation: rhythm-spin 22s linear infinite;
}

.rhythm-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 7px 14px;
  border: 2px solid #2c3042;
  background: rgba(5, 6, 11, .88);
  box-shadow: 0 7px 0 rgba(0,0,0,.32);
  font: 900 13px/1 Consolas, "Courier New", monospace;
  letter-spacing: 1px;
}

.rhythm-header span:first-child { color: #ff4059; }
.rhythm-header span:last-child { color: #54c7ff; text-align: right; }
.rhythm-header strong { color: #ffe065; font: 1000 24px/.9 Impact, sans-serif; letter-spacing: 1.5px; }

.rhythm-stage {
  display: grid;
  grid-template-columns: 150px minmax(350px, 1fr) 150px;
  align-items: end;
  gap: 10px;
  min-height: 0;
}

.rhythm-stage canvas {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 255px;
  border: 3px solid #34394e;
  background: rgba(4, 5, 9, .94);
  box-shadow: 0 0 0 3px #08090e, 0 13px 24px rgba(0,0,0,.55);
}

.rhythm-fighter { position: relative; display: grid; justify-items: center; align-content: end; min-width: 0; }
.rhythm-fighter img { display: block; width: 100%; height: 215px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 13px 5px rgba(0,0,0,.58)); }
.rhythm-fighter b { width: 100%; padding: 7px 4px; color: #fff; background: #c51530; border: 2px solid #ff4960; font: 900 12px/1 Consolas, monospace; text-align: center; transform: rotate(-2deg); }
.baldi-fighter b { background: #126ca3; border-color: #4cc4ff; transform: rotate(2deg); }
.rhythm-fighter .rhythm-hotdog { position: absolute; right: -3px; bottom: 34px; z-index: 3; font-size: 42px; transform: rotate(-13deg); filter: drop-shadow(2px 5px 2px #000); transition: right .2s ease, transform .2s ease; }
.keko-fighter .rhythm-hotdog { right: -9px; transform: rotate(13deg) scale(1.12); animation: keko-hotdog-grab .34s ease-out both; }

.rhythm-status {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) minmax(300px, 1.5fr) minmax(230px, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 10px 14px;
  border: 2px solid #34394e;
  background: rgba(5, 6, 11, .94);
}
.rhythm-turn { display: grid; gap: 5px; }
.rhythm-turn span { color: #ffe065; font: 900 10px/1 Consolas, monospace; letter-spacing: 1px; }
.rhythm-turn strong { font: 900 15px/1.1 Arial, sans-serif; }
.rhythm-health { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font: 900 10px/1 Consolas, monospace; }
.rhythm-health div { --baldi-share: 52%; position: relative; height: 18px; overflow: hidden; border: 2px solid #f3f3eb; background: linear-gradient(90deg, #d51c39 0 calc(100% - var(--baldi-share)), #157fbd calc(100% - var(--baldi-share)) 100%); transition: background .12s ease; }
.rhythm-health i { position: absolute; top: 0; bottom: 0; left: calc(100% - var(--baldi-share)); width: 4px; background: #ffe065; box-shadow: 0 0 8px #ffe065; transition: left .12s ease; }
.rhythm-stats { display: flex; justify-content: space-between; gap: 8px; color: #a7abba; font: 800 9px/1 Consolas, monospace; }
.rhythm-stats span { display: grid; gap: 4px; }
.rhythm-stats b { color: #fff; font-size: 15px; }
.rhythm-status > p { grid-column: 1 / -1; margin: -2px 0 0; color: #858a9b; font: 800 9px/1 Consolas, monospace; text-align: center; }

.rhythm-result {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100% - 36px));
  padding: 32px;
  border: 3px solid #ffe065;
  background: rgba(6, 7, 12, .97);
  box-shadow: 0 0 0 999px rgba(0,0,0,.73), 0 18px 45px #000;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-1deg);
}
.rhythm-result h2 { margin: 0 0 12px; color: #ffe065; font: 1000 43px/.9 Impact, sans-serif; letter-spacing: 1px; }
.rhythm-result p { margin: 0 0 22px; color: #e9e8e1; font-weight: 800; }
.rhythm-result > div { display: flex; justify-content: center; gap: 10px; }
.rhythm-result .primary-button { width: auto; min-width: 170px; }

@keyframes rhythm-spin { to { transform: rotate(360deg); } }
@keyframes keko-hotdog-grab {
  0% { transform: translateX(110px) rotate(-18deg) scale(.72); }
  75% { transform: translateX(-5px) rotate(18deg) scale(1.2); }
  100% { transform: rotate(13deg) scale(1.12); }
}

.flappy-screen {
  position: absolute;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: center;
  padding: 10px;
  background: radial-gradient(circle at 50% 38%, rgba(37, 224, 255, .18), rgba(2, 3, 10, .94) 64%);
}

.flappy-machine {
  width: min(92%, 580px);
  height: min(96%, 520px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  padding: 12px 18px 9px;
  border: 4px solid #161725;
  border-radius: 18px 18px 44px 44px;
  background: linear-gradient(145deg, #292044, #10111c 58%, #361743);
  box-shadow: 0 0 0 3px #49e8f4, 0 0 34px rgba(73, 232, 244, .48), inset 0 -30px 0 rgba(0,0,0,.28);
}

.flappy-machine header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 2px solid #ff5cb8;
  background: #090b14;
  color: #8cf7ff;
  font: 800 9px/1 Consolas, monospace;
  letter-spacing: .8px;
}

.flappy-machine header span:last-child { text-align: right; }
.flappy-machine header strong { color: #f4ffca; font: 1000 24px/.9 Impact, sans-serif; letter-spacing: 1.5px; text-shadow: 3px 3px 0 #368f27; }
.flappy-machine canvas { width: auto; max-width: 100%; height: 100%; min-height: 0; justify-self: center; border: 7px solid #080911; border-radius: 8px; background: #75d9e3; image-rendering: pixelated; box-shadow: inset 0 0 0 2px #4ce9ff; cursor: pointer; }
.flappy-controls { display: flex; justify-content: center; gap: 9px; }
.flappy-controls .primary-button, .flappy-controls .secondary-button { width: auto; min-width: 150px; padding: 9px 15px; font-size: 11px; }
.flappy-machine > p { margin: 0; color: #8b91a8; font: 800 9px/1 Consolas, monospace; text-align: center; }

.maze-screen {
  position: absolute;
  inset: 0;
  z-index: 29;
  display: grid;
  place-items: center;
  padding: 9px;
  background: radial-gradient(circle at 50% 48%, rgba(194, 177, 67, .16), rgba(3, 4, 7, .96) 72%);
}

.maze-panel {
  width: min(97%, 900px);
  height: min(97%, 525px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 5px;
  padding: 10px 14px 8px;
  border: 2px solid #a59a47;
  background: #0c0c0b;
  box-shadow: 0 0 0 3px #25220f, 0 0 38px rgba(206, 190, 75, .28);
}

.maze-panel header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 5px 9px;
  border-bottom: 2px solid #81783c;
  color: #a9a471;
  font: 800 8px/1 Consolas, monospace;
  letter-spacing: .8px;
}

.maze-panel header strong { color: #f0e67d; font: 1000 22px/.9 Impact, sans-serif; letter-spacing: 2px; text-align: center; }
.maze-panel header span:last-child { color: #e1584f; text-align: right; }
.maze-panel canvas { width: 100%; height: 100%; min-height: 0; border: 3px solid #423d20; background: #171810; image-rendering: pixelated; }
.maze-panel > p { margin: 0; color: #8d8962; font: 800 8px/1 Consolas, monospace; text-align: center; }
.maze-pad { display: none; grid-template-columns: repeat(3, 42px); grid-template-areas: ". up ." "left down right"; justify-content: center; gap: 4px; }
.maze-pad button { min-height: 31px; border: 1px solid #7f7742; border-radius: 4px; background: #242316; color: #f1e77b; font-weight: 900; }
.maze-pad [data-maze-dir="up"] { grid-area: up; }
.maze-pad [data-maze-dir="left"] { grid-area: left; }
.maze-pad [data-maze-dir="down"] { grid-area: down; }
.maze-pad [data-maze-dir="right"] { grid-area: right; }

.stats {
  margin: 18px 0;
  color: var(--yellow);
  font-weight: bold;
}

.ending-screen { overflow: hidden; }

.ending-card {
  position: relative;
  z-index: 2;
}

.loss-image {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 4vw, 52px);
  bottom: clamp(18px, 5vw, 48px);
  width: clamp(125px, 20vw, 210px);
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .72));
  pointer-events: none;
  animation: loss-sob .5s steps(2, end) infinite;
}

.win-emoji {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 4vw, 52px);
  bottom: clamp(18px, 5vw, 42px);
  width: clamp(150px, 23vw, 235px);
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .68));
  pointer-events: none;
  animation: win-cool .85s ease-in-out infinite alternate;
}

.win-visuals {
  width: min(320px, 82vw);
  height: 88px;
  margin: 14px auto 2px;
  overflow: hidden;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .62));
}

.win-visuals img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
  object-position: center;
}

@keyframes win-cool {
  from { transform: translateY(0) rotate(-2deg) scale(1); }
  to { transform: translateY(-6px) rotate(2deg) scale(1.025); }
}

@keyframes loss-sob {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-5px) rotate(2deg); }
}

.footnote { text-align: center; color: #6f7080; font-size: 12px; }

@keyframes shake {
  from { transform: rotate(-8deg) translateX(-2px); }
  to { transform: rotate(8deg) translateX(2px); }
}

@media (max-width: 650px) {
  body { padding: 10px; }
  .eyebrow { display: none; }
  .overlay { padding: 14px; }
  .start-card, .dialogue-card { padding: 22px; }
  .controls { display: none; }
  .skin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .skin-card { min-height: 150px; padding: 7px; }
  .skin-card img { height: 105px; }
  .credits-list p { display: grid; gap: 2px; }
  .credits-list span { text-align: left; }
  #creditsScreen .menu-panel,
  #skinsScreen .menu-panel { padding: 20px 16px 17px; }
  #creditsScreen .menu-panel h2,
  #skinsScreen .menu-panel h2 { font-size: clamp(23px, 7.5vw, 32px); }
  #creditsScreen .credits-list { margin-top: 17px; }
  #creditsScreen .credits-list p { min-height: 0; padding: 8px 10px; }
  #skinsScreen .skin-card { min-height: 158px; padding: 7px 5px; }
  #skinsScreen .skin-card img { height: 108px; }
  #skinsScreen .skin-card strong { font-size: 9px; }
  #skinsScreen .skin-card::before { display: none; }
  #creditsScreen .menu-close,
  #skinsScreen .menu-close { width: 100%; min-width: 0; }
  .start-screen .main-menu-card {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "actions" "build";
    gap: 14px;
    padding: 22px 24px 18px;
  }
  .menu-mark { display: none; }
  .start-screen .main-menu-card h2 { font-size: clamp(35px, 11vw, 50px); }
  .start-screen .menu-lead { margin: 13px 0 11px; font-size: 12px; }
  .start-screen .menu-buttons button { min-height: 48px; }
  .start-screen .controls { display: none; }
  .desktop-notice { margin: -5px 0 -8px !important; font-size: 8px; }
  .pause-card { padding: 20px 18px; }
  .volume-settings { margin: 12px 0 15px; padding: 12px; }
  .phone-stage { width: min(190px, 50vw); }
  .call-hint { display: none; }
  .subtitle-bar {
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 4px;
    width: calc(100% - 24px);
    min-height: 58px;
    padding: 9px 12px;
  }
  .subtitle-bar span { font-size: 14px; }
  .subtitle-bar small { display: none; }
  .loss-image, .win-emoji { left: 10px; bottom: 10px; width: 110px; }
  .win-visuals { width: min(270px, 76vw); height: 74px; margin-top: 10px; }
  .win-visuals img { height: 74px; }
  .rhythm-screen { padding: 8px; }
  .rhythm-header { gap: 5px; padding: 6px; }
  .rhythm-header strong { font-size: 17px; }
  .rhythm-header span { font-size: 8px; }
  .rhythm-stage { grid-template-columns: 70px minmax(210px, 1fr) 70px; gap: 4px; }
  .rhythm-fighter img { height: 135px; }
  .rhythm-fighter b { font-size: 7px; padding: 5px 1px; }
  .rhythm-fighter .rhythm-hotdog { font-size: 25px; bottom: 22px; }
  .rhythm-status { grid-template-columns: 1fr; gap: 7px; min-height: 124px; padding: 8px; }
  .rhythm-turn { text-align: center; }
  .rhythm-status > p { grid-column: 1; }
  .flappy-screen { padding: 5px; }
  .flappy-machine { width: 96%; height: 98%; padding: 8px 10px 6px; border-radius: 12px 12px 28px 28px; }
  .flappy-machine header strong { font-size: 17px; }
  .flappy-machine header span { font-size: 7px; }
  .flappy-controls .primary-button, .flappy-controls .secondary-button { min-width: 0; flex: 1; padding: 8px; font-size: 9px; }
  .maze-screen { padding: 4px; }
  .maze-panel { width: 99%; height: 99%; padding: 6px; }
  .maze-panel header strong { font-size: 16px; }
  .maze-panel header span { font-size: 6px; }
  .maze-pad { display: grid; }
}
