/* ============================================================
   Don't Fry Bananas
   flat, dark, comic-indie. no glows, no gradients, no nonsense.
   ============================================================ */

:root {
  --bg: #0d0b14;
  --panel: #16111f;
  --line: #2b2140;
  --ink: #f2edff;
  --muted: #8f85a8;
  --yellow: #ffd23f;
  --pink: #ff5fa2;
  --black: #14101c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- screens ---------- */
#app { min-height: 100dvh; }
.screen {
  display: none;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
}
.screen.is-active { display: flex; }

/* ---------- type ---------- */
.logo {
  font-family: "Bungee", system-ui, sans-serif;
  font-weight: 400;
  text-align: center;
  line-height: 0.95;
  margin: 0 0 10px;
}
.logo .l1 {
  display: block;
  font-size: clamp(26px, 7.5vw, 40px);
  color: var(--ink);
}
.logo .l2 {
  display: block;
  font-size: clamp(44px, 13vw, 72px);
  color: var(--yellow);
}

.h-big {
  font-family: "Bungee", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 6.5vw, 34px);
  line-height: 1.1;
  color: var(--yellow);
  margin: 0 0 12px;
}

.tag {
  text-align: center;
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 15px;
}

.body-line {
  color: var(--ink);
  margin: 0 0 22px;
  font-size: 16px;
}

/* ---------- start screen ---------- */
.start-inner {
  width: min(420px, 100%);
  text-align: center;
}

.duel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--line);
  padding-bottom: 6px;
}
.duel img {
  width: clamp(92px, 26vw, 124px);
  height: auto;
}
.duel .duel-k { transform: rotate(-4deg); }
.duel .duel-b { transform: rotate(5deg) translateY(-8px); }
.duel .vs {
  font-family: "Bungee", system-ui, sans-serif;
  font-size: 14px;
  color: var(--pink);
  padding-bottom: 26px;
}

.rules {
  list-style: none;
  margin: 0 auto 26px;
  padding: 0;
  width: fit-content;
  text-align: left;
}
.rules li {
  margin: 7px 0;
  color: var(--ink);
  font-size: 15px;
}
.rules b {
  font-family: "Bungee", system-ui, sans-serif;
  font-weight: 400;
  color: var(--yellow);
  margin-right: 10px;
}

/* ---------- buttons ---------- */
.btn {
  font-family: "Bungee", system-ui, sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: 10px;
  padding: 13px 30px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }

/* ---------- panels ---------- */
.panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .55);
  padding: 28px 24px;
  text-align: center;
}

/* ---------- game / stage ---------- */
#screen-game { padding: 0; align-items: stretch; justify-content: stretch; }
.stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
#game { display: block; width: 100%; height: 100%; touch-action: none; }

.hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 14px 8px;
  pointer-events: none;
}
.hud-count {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
}
.hud-count img { width: 20px; height: 20px; }
.hud-count span {
  font-family: "Bungee", system-ui, sans-serif;
  font-size: 14px;
  color: var(--yellow);
}
.hud-night {
  font-family: "Bungee", system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.lives { display: flex; gap: 4px; }
.lives img { width: 18px; height: 18px; }
.lives img.lost { filter: grayscale(1) brightness(.35); }
.hud-btn {
  font-family: "Bungee", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
}
.hud-btn:active { transform: translateY(1px); }

/* ---------- win / password ---------- */
.win-stage { display: none; }
.win-stage.is-active { display: block; }

#pw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
#pw-input {
  font-family: inherit;
  font-size: 19px;
  text-align: center;
  padding: 12px 16px;
  width: min(300px, 100%);
  border-radius: 10px;
  border: 3px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  letter-spacing: 1px;
}
#pw-input:focus { border-color: var(--yellow); }
#pw-input::placeholder { color: var(--muted); }

.pw-hint {
  min-height: 22px;
  color: var(--pink);
  font-size: 14px;
  margin: 14px 0 0;
}
.pw-hint.wrong { animation: shake .35s; }
@keyframes shake {
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

/* ---------- video ---------- */
/* style.css dosyasındaki ilgili bölümü bununla değiştirin */
.video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 3px solid var(--line);
  aspect-ratio: 16 / 9; /* 9/16 olan dikey oran yatay yapıldı */
  max-height: 80dvh; /* Görünürlük için yükseklik limiti esnetildi */
  margin: 0 auto;
  width: 100%; /* 310px olan dar limit kaldırılarak yatay alana yayıldı */
}
#speech { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
#video-missing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  background: var(--panel);
}
#video-missing code {
  color: var(--yellow);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}

.outro {
  margin: 20px 0 0;
  font-size: 16px;
  color: var(--ink);
}
.outro span { color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .hud-btn { transition: none; }
  .pw-hint.wrong { animation: none; }
}
