@font-face {
  font-family: "Orbitron";
  src: url("../assets/fonts/Orbitron.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("../assets/fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cyan: #3df5ff;
  --cyan-soft: rgba(61, 245, 255, 0.62);
  --magenta: #ff2d95;
  --lime: #c6ff3d;
  --gold: #ffd24a;
  --ink: #05070d;
  --paper: #eaf9ff;
  --display: "Orbitron", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --num: "Chakra Petch", "Orbitron", "Arial Black", system-ui, sans-serif;
  --ui: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--paper);
  font-family: var(--ui);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
}

#viewport {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #000;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 0 160px rgba(0, 0, 0, 0.9);
}

#game {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  display: block;
}

body.play,
body.play * {
  cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=") 0 0, none !important;
}

.hidden { display: none !important; }

.hud-score,
.hud-best {
  position: absolute;
  top: 52px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 6;
}

.hud-score { left: 64px; }
.hud-best { right: 64px; text-align: right; }

.lab {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 7px;
  color: rgba(150, 225, 245, 0.55);
}

#score,
#best {
  font-family: var(--num);
  font-size: 78px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow:
    0 0 10px rgba(61, 245, 255, 0.6);
}

#best { font-size: 40px; font-weight: 700; color: rgba(220, 245, 255, 0.72); text-shadow: 0 0 18px rgba(61, 245, 255, 0.35); }

.combo {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 26px;
  border: 1px solid rgba(255, 45, 149, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 45, 149, 0.2), rgba(255, 45, 149, 0.05));
  box-shadow: 0 0 24px rgba(255, 45, 149, 0.28), inset 0 0 18px rgba(255, 45, 149, 0.14);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 5px;
  color: #ffd7ea;
  z-index: 6;
  pointer-events: none;
}

.combo b {
  font-family: var(--num);
  font-size: 30px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 210, 74, 0.8);
  letter-spacing: 1px;
}

.combo.pop { animation: comboPop 0.28s ease-out; }

@keyframes comboPop {
  0% { transform: translateX(-50%) scale(1); }
  40% { transform: translateX(-50%) scale(1.18); }
  100% { transform: translateX(-50%) scale(1); }
}

.lives {
  position: absolute;
  left: 64px;
  bottom: 52px;
  display: flex;
  z-index: 6;
  pointer-events: none;
}

.lives i {
  width: 42px;
  height: 52px;
  display: block;
  clip-path: polygon(50% 0, 100% 26%, 100% 72%, 50% 100%, 0 72%, 0 26%);
  background: linear-gradient(180deg, rgba(61, 245, 255, 0.95), rgba(20, 130, 190, 0.35));
  box-shadow: 0 0 22px rgba(61, 245, 255, 0.55);
  opacity: 1;
  transition: opacity 0.25s, filter 0.25s;
}

.lives i.lost { opacity: 0.13; filter: grayscale(1); box-shadow: none; }
.lives i.hit { animation: lifeHit 0.42s ease-out; }

@keyframes lifeHit {
  0% { transform: scale(1); filter: brightness(3); }
  35% { transform: scale(1.5) rotate(-8deg); }
  100% { transform: scale(1); }
}

.pause-btn {
  position: absolute;
  right: 64px;
  bottom: 44px;
  min-height: 75px;
  padding: 0 30px;
  border: 1px solid rgba(61, 245, 255, 0.45);
  border-radius: 14px;
  background: rgba(4, 10, 18, 0.55);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(220, 250, 255, 0.85);
  z-index: 7;
  pointer-events: auto;
  cursor: pointer;
}

.pause-btn:hover, .pause-btn:focus { border-color: var(--gold); color: #fff; background: rgba(255, 210, 74, 0.16); outline: none; }

/* sık değişen/animasyonlu HUD öğeleri kendi katmanında: değişince yalnız kendisi yeniden çizilir */
.combo, .level-banner, .toast, .reward { will-change: transform, opacity; }

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(10, 24, 46, 0.6) 0%, rgba(4, 7, 14, 0.9) 58%, rgba(2, 4, 8, 0.97) 100%);
  animation: overlayIn 0.35s ease-out;
}

@keyframes overlayIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.badge {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 8px;
  color: rgba(61, 245, 255, 0.7);
  border: 1px solid rgba(61, 245, 255, 0.24);
  border-radius: 999px;
  padding: 10px 24px 10px 30px;
  margin-bottom: 34px;
  background: rgba(61, 245, 255, 0.04);
  box-shadow: inset 0 0 20px rgba(61, 245, 255, 0.08);
}

.logo {
  display: flex;
  font-family: var(--display);
  font-size: 136px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.logo .lz {
  color: #f4feff;
  text-shadow:
    0 0 8px #fff,
    0 0 30px rgba(61, 245, 255, 0.85),
    0 0 90px rgba(61, 245, 255, 0.45);
}

.logo .mv {
  background: linear-gradient(180deg, #ffd0e6 0%, #ff2d95 55%, #a4116a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* filter: drop-shadow her karede 4K'da yeniden hesaplanıyordu (menü 20 FPS) → bir kez çizilen text-shadow */
  text-shadow: 0 0 18px rgba(255, 45, 149, 0.7), 0 0 44px rgba(255, 45, 149, 0.3);
}

.tagline {
  max-width: 840px;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(214, 240, 250, 0.72);
  margin-bottom: 48px;
  text-wrap: balance;
}

.cta {
  position: relative;
  min-width: 320px;
  padding: 24px 54px;
  border: 2px solid rgba(61, 245, 255, 0.75);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(61, 245, 255, 0.22), rgba(61, 245, 255, 0.05));
  color: #f2feff;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 10px;
  text-indent: 10px;
  cursor: pointer;
  box-shadow:
    0 0 32px rgba(61, 245, 255, 0.22),
    inset 0 0 26px rgba(61, 245, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.cta:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.cta:hover,
.cta:focus {
  outline: none;
  transform: scale(1.05);
  background: linear-gradient(180deg, rgba(61, 245, 255, 0.34), rgba(61, 245, 255, 0.08));
  box-shadow:
    0 0 60px rgba(61, 245, 255, 0.42),
    inset 0 0 34px rgba(61, 245, 255, 0.2);
}

.ghost {
  margin-top: 20px;
  padding: 16px 40px;
  border: 1px solid rgba(220, 245, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(214, 240, 250, 0.7);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 6px;
  text-indent: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ghost:hover,
.ghost:focus {
  outline: none;
  color: #fff;
  border-color: rgba(61, 245, 255, 0.6);
  box-shadow: 0 0 28px rgba(61, 245, 255, 0.18);
}

.bestline {
  margin-top: 34px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 6px;
  color: rgba(160, 220, 240, 0.45);
}

.bestline b {
  font-family: var(--num);
  color: var(--gold);
  font-size: 24px;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(255, 210, 74, 0.55);
}

.hint {
  margin-top: 30px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(170, 220, 235, 0.4);
}

h2 {
  font-family: var(--display);
  font-size: 76px;
  font-weight: 800;
  letter-spacing: 12px;
  text-indent: 12px;
  color: #f4feff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 46px rgba(61, 245, 255, 0.55);
  margin-bottom: 16px;
}

.over-title {
  color: #ffd7e9;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 46px rgba(255, 45, 149, 0.65);
}

.final {
  display: flex;
  align-items: baseline;
  margin-top: 20px;
  font-family: var(--display);
  letter-spacing: 6px;
  color: rgba(170, 225, 240, 0.6);
  font-size: 20px;
}

.final b {
  font-family: var(--num);
  font-size: 72px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 24px rgba(61, 245, 255, 0.6);
}

.final.dim b {
  font-size: 38px;
  color: rgba(255, 210, 74, 0.9);
  text-shadow: 0 0 20px rgba(255, 210, 74, 0.4);
}

#over .cta { margin-top: 42px; }

.overlay.over {
  flex-direction: row;
  padding: 60px 90px;
}

.over-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 520px;
}

.over-side h2 { font-size: 64px; letter-spacing: 9px; text-indent: 9px; }

.over-stats {
  padding: 30px 36px 26px;
  border: 1px solid rgba(61, 245, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(61, 245, 255, 0.07), rgba(61, 245, 255, 0.015));
  box-shadow: 0 0 60px rgba(61, 245, 255, 0.1), inset 0 0 40px rgba(61, 245, 255, 0.05);
}

.stats-head {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--cyan-soft);
  margin-bottom: 16px;
  text-align: left;
}

.stats {
  border-collapse: collapse;
  font-family: var(--num);
  font-size: 26px;
  color: #eaffff;
}

.stats th {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(150, 225, 245, 0.5);
  padding: 0 18px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(61, 245, 255, 0.18);
}

.stats th:first-child { text-align: left; }

.stats td {
  padding: 7px 18px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stats tbody tr {
  opacity: 0;
  animation: rowIn 0.38s ease-out forwards;
}

.stats tbody tr:nth-child(even) td { background: rgba(61, 245, 255, 0.035); }

@keyframes rowIn {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.stats .fruit {
  display: flex;
  align-items: center;
  text-align: left;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.stats .fruit img { width: 44px; height: 44px; }
.stats .gold .fruit { color: var(--gold); }
.stats .gold .fruit img { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.15); }
.stats .calc { color: rgba(214, 240, 250, 0.62); font-size: 22px; }
.stats .bonus { color: var(--magenta); }
.stats .pts { color: #fff; font-weight: 700; text-shadow: 0 0 14px rgba(61, 245, 255, 0.55); }

.stats tfoot td {
  padding-top: 14px;
  border-top: 1px solid rgba(61, 245, 255, 0.24);
  font-size: 28px;
}

.stats tfoot td:first-child {
  text-align: left;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 2px;
  color: rgba(255, 140, 160, 0.75);
}

#statsTotal { color: var(--gold); font-weight: 800; text-shadow: 0 0 18px rgba(255, 210, 74, 0.55); }
#statsBonus { color: var(--magenta); }

.stats .empty td { text-align: center; color: rgba(214, 240, 250, 0.5); font-family: var(--display); font-size: 20px; letter-spacing: 3px; padding: 30px; }

.newbest {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 210, 74, 0.8);
  animation: bestPulse 0.9s ease-in-out infinite alternate;
}

@keyframes bestPulse {
  from { opacity: 0.6; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 152px;
  transform: translate(-50%, 18px);
  z-index: 20;
  padding: 14px 34px;
  border: 1px solid rgba(61, 245, 255, 0.4);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.82);
  box-shadow: 0 0 30px rgba(61, 245, 255, 0.18);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(220, 250, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

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

#startBtn { margin-top: 4px; }

.debug {
  position: absolute;
  top: 150px;
  left: 64px;
  z-index: 30;
  padding: 10px 16px;
  border: 1px solid rgba(61, 245, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  font: 600 18px/1.5 ui-monospace, Menlo, monospace;
  color: #9ff;
  white-space: pre;
  pointer-events: none;
}

/* webOS 6 = Chromium 79: flex "gap" ve "inset" desteklenmiyor; boşluklar margin ile. */
.hud-score > * + *,
.hud-best > * + * { margin-top: 2px; }
.lives i + i { margin-left: 16px; }
.logo .mv { margin-left: 0.12em; }
.final b { margin-left: 22px; }
.over-side { margin-left: 90px; }
.stats .fruit img { margin-right: 14px; }

.hud-level {
  position: absolute;
  top: 150px;
  left: 64px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 6px;
  color: rgba(150, 225, 245, 0.55);
  z-index: 6;
  pointer-events: none;
}

.hud-level b {
  font-family: var(--num);
  font-size: 30px;
  color: var(--lime);
  margin-left: 8px;
  text-shadow: 0 0 14px rgba(198, 255, 61, 0.6);
}

.hud-level b small {
  text-shadow: none;
  font-size: 20px;
  margin-left: 10px;
  color: rgba(198, 255, 61, 0.75);
}

.level-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 380px;
  text-align: center;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 16px;
  color: #f4feff;
  text-shadow: 0 0 14px rgba(198, 255, 61, 0.6);
  opacity: 0;
  z-index: 7;
  pointer-events: none;
}

.level-banner b {
  font-family: var(--num);
  font-size: 110px;
  letter-spacing: 4px;
  color: var(--lime);
  vertical-align: middle;
  margin-left: 18px;
}

.level-banner i {
  display: block;
  font-style: normal;
  font-size: 22px;
  letter-spacing: 10px;
  color: #ff5d7a;
  margin-top: 6px;
}

.level-banner.show { animation: levelIn 1.9s ease-out forwards; }

@keyframes levelIn {
  0% { opacity: 0; transform: scale(1.15); }
  12% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.quests {
  position: absolute;
  top: 132px;
  right: 64px;
  width: 300px;
  z-index: 6;
  pointer-events: none;
}

.quest-head {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(198, 255, 61, 0.6);
  text-align: right;
  margin-bottom: 8px;
}

.quest {
  display: flex;
  align-items: center;
  height: 46px;
}

.quest img { width: 40px; height: 40px; margin-right: 12px; }
.quest.gold img { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.15); }

.quest .bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-right: 12px;
}

.quest .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7dff3d, var(--lime));
}

.quest b {
  width: 56px;
  text-align: right;
  font-family: var(--num);
  font-size: 22px;
  color: #eaffd0;
}

.reward {
  position: absolute;
  left: 0;
  right: 0;
  top: 250px;
  text-align: center;
  font-family: var(--num);
  font-size: 84px;
  font-weight: 800;
  color: var(--lime);
  text-shadow: 0 0 24px rgba(198, 255, 61, 0.8), 0 0 70px rgba(198, 255, 61, 0.35);
  opacity: 0;
  z-index: 7;
  pointer-events: none;
}

.reward i {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 8px;
  color: #eaffd0;
  margin-top: 4px;
}

.reward.show { animation: levelIn 1.7s ease-out forwards; }

.stats .rew { color: var(--lime); }
#statsRew { color: var(--lime); }

.board {
  position: absolute;
  right: 80px;
  top: 50%;
  width: 380px;
  transform: translateY(-50%);
  padding: 26px 30px;
  text-align: left;
  border: 1px solid rgba(255, 210, 74, 0.25);
  border-radius: 18px;
  background: rgba(4, 10, 18, 0.55);
  box-shadow: 0 0 40px rgba(255, 210, 74, 0.08);
}

.board-head {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 14px;
}

.board-head span { color: rgba(214, 240, 250, 0.45); font-size: 20px; letter-spacing: 3px; }

.board-list { list-style: none; margin: 0; padding: 0; }

.board-list li {
  display: flex;
  align-items: baseline;
  padding: 6px 0;
  font-family: var(--num);
  font-size: 22px;
  color: #eaffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board-list li .rk { width: 38px; color: rgba(150, 225, 245, 0.5); }
.board-list li .nm { flex: 1; font-family: var(--display); font-size: 20px; letter-spacing: 2px; }
.board-list li .lv { width: 50px; text-align: right; font-size: 20px; color: var(--lime); margin-right: 14px; }
.board-list li .sc { min-width: 90px; text-align: right; font-weight: 700; }
.board-list li:first-child .sc, .board-list li:first-child .nm { color: var(--gold); }
.board-list li.me { background: rgba(198, 255, 61, 0.08); }
.board-list li.muted { color: rgba(214, 240, 250, 0.45); font-family: var(--display); font-size: 20px; letter-spacing: 3px; border: 0; }

.sendbox { margin-top: 22px; text-align: center; }
.send-row { display: flex; align-items: center; justify-content: center; }

.name-input {
  width: 300px;
  padding: 14px 18px;
  border: 2px solid rgba(255, 210, 74, 0.45);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  outline: none;
}

.name-input:focus { border-color: var(--gold); box-shadow: 0 0 24px rgba(255, 210, 74, 0.35); }
.name-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.send-btn { margin: 0 0 0 14px; border-color: rgba(255, 210, 74, 0.45); color: var(--gold); }
.send-btn:focus, .send-btn:hover { border-color: var(--gold); box-shadow: 0 0 26px rgba(255, 210, 74, 0.35); color: #fff; }
.send-btn:disabled { opacity: 0.4; }

.send-status {
  margin-top: 10px;
  min-height: 22px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 3px;
  color: rgba(214, 240, 250, 0.55);
}

.send-status.ok { color: var(--lime); }
.send-status.err { color: #ff5d7a; }
#over .cta { margin-top: 26px; }

.power-badge {
  position: absolute;
  top: 128px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #fff;
  text-shadow: 0 0 14px rgba(140, 210, 255, 0.9);
  z-index: 6;
  pointer-events: none;
}

.level-banner i { color: var(--lime); }

.board { width: 470px; right: 60px; }
.board-list li { align-items: center; }
.board-list li .flag { width: 30px; height: 20px; margin-right: 12px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.board-list li span.flag { display: inline-block; box-shadow: none; }
.board-list li .who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.board-list li .who .nm { flex: none; }
.board-list li .ct { font-family: var(--display); font-size: 20px; letter-spacing: 2px; color: rgba(214, 240, 250, 0.45); margin-top: 2px; }
.send-status { line-height: 1.6; }

#menu { padding-right: 600px; }

/* LG webOS self-checklist: en küçük düğme 75x75 px, en küçük yazı 20 px (1920x1080). */
.ghost, .send-btn { min-height: 75px; min-width: 75px; padding-top: 0; padding-bottom: 0; }
.cta { min-height: 80px; }
.name-input { height: 75px; }
.stats th { letter-spacing: 2px; padding: 0 14px 10px; }
.stats td { padding: 7px 14px; }
.board { width: 520px; }
.board-list li .lv { width: 56px; }
.quests { width: 340px; }
.hud-hint, .hint, .badge, .bestline, .toast { letter-spacing: 3px; }

.diff-head { font-family: var(--display); font-size: 20px; letter-spacing: 6px; color: rgba(150, 225, 245, 0.6); margin-bottom: 14px; }
.diff-row { display: flex; justify-content: center; }
.diff-row .cta { min-width: 230px; padding: 22px 26px; font-size: 26px; letter-spacing: 6px; text-indent: 6px; }
.diff-row .cta + .cta { margin-left: 22px; }
.cta.easy { border-color: rgba(198, 255, 61, 0.7); }
.cta.hard { border-color: rgba(255, 45, 149, 0.75); }

.board-list li .lv { width: 84px; }
.board-list li .md { font-style: normal; display: inline-block; width: 24px; margin-right: 6px; border-radius: 4px; text-align: center; color: #05070d; font-weight: 700; }
.board-list li .md.easy { background: var(--lime); }
.board-list li .md.normal { background: var(--cyan); }
.board-list li .md.hard { background: var(--magenta); color: #fff; }

.diff-row .cta small { display: block; margin-top: 6px; font-family: var(--num); font-size: 20px; letter-spacing: 2px; color: rgba(214, 240, 250, 0.7); text-indent: 0; }
.level-banner i.piece { color: #ffd7ea; font-size: 22px; letter-spacing: 4px; margin-top: 10px; }

body.saver .overlay, body.saver #hud, body.saver .toast { display: none !important; }

/* Web ve Playables: kumanda ipuçları gizli, Playables'ta skor gönderme yok */
body.web #pause .hint,
body.web #over .hint { display: none; }
body.playables #sendBox { display: none !important; }
/* Skor tablosu olmayan sürümlerde (Playables, CrazyGames) menü ortada */
body.playables #menu { padding-right: 0; }

/* Web: menüde dil seçici (sol üst) */
.lang-sel {
  position: absolute;
  top: 40px;
  left: 40px;
  height: 64px;
  padding: 0 22px;
  font: 700 24px/1 var(--ui);
  color: var(--paper);
  background: rgba(5, 7, 13, 0.85);
  border: 2px solid var(--cyan-soft);
  border-radius: 14px;
  cursor: pointer;
}
.lang-sel:focus { outline: 3px solid var(--magenta); outline-offset: 3px; }

/* CrazyGames: ödüllü reklamla devam düğmesi */
.cta.revive {
  border-color: var(--magenta);
  color: #fff;
  background: rgba(255, 45, 149, 0.18);
  margin-bottom: 18px;
}
.cta.revive:disabled { opacity: 0.5; }

/* Web: tam ekran düğmesi (dil seçicinin yanında) ve iPhone ipucu */
.fs-btn {
  position: absolute;
  top: 40px;
  left: 300px;
  height: 64px;
  padding: 0 24px;
  font: 700 24px/1 var(--ui);
  letter-spacing: 2px;
  color: var(--paper);
  background: rgba(5, 7, 13, 0.85);
  border: 2px solid var(--cyan-soft);
  border-radius: 14px;
  cursor: pointer;
}
.fs-btn:focus { outline: 3px solid var(--magenta); outline-offset: 3px; }
.fs-tip {
  position: absolute;
  top: 52px;
  left: 300px;
  font: 700 22px/1.3 var(--ui);
  color: var(--lime);
}

/* İlk oyun eğitimi (web/portal) */
.tut {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 22;
  padding-top: 140px;
  text-align: center;
  pointer-events: none;
}
.tut b {
  display: block;
  font-family: var(--display);
  font-size: 64px;
  letter-spacing: 6px;
  color: #eaffff;
  text-shadow: 0 0 24px rgba(61, 245, 255, 0.8);
  animation: bestPulse 0.8s ease-in-out infinite alternate;
}
.tut i {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 26px;
  color: rgba(220, 250, 255, 0.85);
}
.tut .tut-count {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 4px;
  color: #c6ff3d;
}
.tut .tut-skip {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  pointer-events: auto;
}

/* Dokunmatik telefonda dik ekran uyarısı (web/portal) */
.rotate-hint { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  .rotate-hint {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #05070d;
    color: #eaffff;
    font-family: var(--display);
    letter-spacing: 3px;
    text-align: center;
  }
  .rotate-hint b { margin-top: 28px; font-size: 22px; text-shadow: 0 0 16px rgba(61, 245, 255, 0.7); }
  .rot-phone {
    width: 56px;
    height: 96px;
    border: 4px solid #3df5ff;
    border-radius: 12px;
    box-shadow: 0 0 22px rgba(61, 245, 255, 0.5);
    animation: rotPhone 1.8s ease-in-out infinite;
  }
}
@keyframes rotPhone {
  0%, 25% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(-90deg); }
}

/* Web/portal: CrazyGames en küçük pencere 821x462 (DPR 1) — 1920 tuvalde ≥30 px ≈ 13 px okunur */
body.web .lab, body.web .hud-level, body.web .quest-head, body.web .badge, body.web .bestline,
body.web .hint, body.web .diff-head, body.web .final, body.web .stats-head, body.web .toast,
body.web .combo, body.web .newbest { font-size: 30px; }
body.web .bestline b { font-size: 34px; }
body.web .hud-level b small, body.web .quest b, body.web .reward i, body.web .level-banner i,
body.web .power-badge, body.web .pause-btn, body.web .ghost { font-size: 30px; }
body.web .diff-row .cta small { font-size: 28px; }
body.web .tagline { font-size: 34px; }
body.web .tut i { font-size: 34px; }
body.web .stats { font-size: 30px; }
body.web .stats th, body.web .stats .fruit, body.web .stats .calc,
body.web .stats tfoot td:first-child, body.web .stats .empty td { font-size: 26px; }
body.web .hint { letter-spacing: 2px; }
body.tut-on .quests { display: none; }
body.web .quests { width: 420px; }
body.web .quest-head { white-space: nowrap; }
.sound-hint {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 23;
  padding: 10px 26px;
  border: 1px solid rgba(255, 210, 74, 0.5);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.85);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 3px;
  color: #ffd24a;
  pointer-events: none;
  animation: bestPulse 0.9s ease-in-out infinite alternate;
}
body.tut-on .tut { padding-top: 170px; }
/* Büyüyen SKOR etiketi altında seviye satırı çakışmasın */
body.web .hud-level { top: 168px; }

/* AirConsole: bağlı oyuncular (renk + takma ad) */
.ac-players {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 21;
  display: flex;
  font-family: var(--num);
  font-size: 30px;
  letter-spacing: 2px;
  pointer-events: none;
  white-space: nowrap;
}
.ac-players span { display: inline-flex; align-items: center; margin: 0 18px; }
.ac-players i { width: 16px; height: 16px; border-radius: 50%; margin-right: 10px; box-shadow: 0 0 12px currentColor; }
.ac-players .ac-wait { color: rgba(220, 250, 255, 0.85); animation: bestPulse 0.9s ease-in-out infinite alternate; }
body.airconsole.play .ac-players { bottom: 120px; opacity: 0.55; }
body.airconsole .sound-hint { display: none; }

/* ===== Dikey ekran (telefon dik): sahne 1080x1920 =====
   Arayüz katmanları 1,4 kat yakınlaştırılır; böylece yerleşim 771x1371'lik sanal alanda yapılır ve
   yatay tasarımdaki yazı boyutları dik telefonda da okunur kalır. (zoom: Chrome/Safari/Firefox 126+) */
body.portrait #hud {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
}
body.portrait #hud .pause-btn { pointer-events: auto; }
body.portrait #hud,
body.portrait .overlay,
body.portrait .toast,
body.portrait .tut,
body.portrait .sound-hint { zoom: 1.4; }
body.portrait .overlay { padding: 40px; }
@keyframes overlayInP { from { opacity: 0; } to { opacity: 1; } }
body.portrait .overlay { animation-name: overlayInP; }

/* HUD: üstte skor/rekor, altlarında görevler; ortadaki yazılar görevlerin altına iner */
body.portrait .hud-score { left: 36px; top: 40px; }
body.portrait .hud-best { right: 36px; top: 40px; }
body.portrait .hud-level,
body.portrait.web .hud-level { left: 36px; top: 150px; }
body.portrait .quests,
body.portrait.web .quests { right: 36px; top: 150px; width: 330px; }
body.portrait .combo { top: 380px; }
body.portrait .power-badge { top: 330px; }
body.portrait .reward { top: 470px; }
body.portrait .level-banner { top: 560px; padding: 0 24px; }
body.portrait .level-banner b { display: block; margin-left: 0; }
body.portrait .lives { left: 36px; bottom: 40px; }
body.portrait .pause-btn { right: 36px; bottom: 34px; }
body.portrait .toast { bottom: 150px; max-width: 680px; white-space: normal; }

/* Menü: logo iki satır, zorluk düğmeleri dar, skor tablosu altta (ilk 5) */
body.portrait #menu { padding: 130px 30px 40px; justify-content: flex-start; }
body.portrait .logo { flex-direction: column; align-items: center; font-size: 120px; margin-bottom: 22px; }
body.portrait .logo .mv { margin-left: 0; }
body.portrait .tagline { max-width: 660px; margin-bottom: 34px; }
body.portrait .diff-row .cta { min-width: 0; width: 214px; padding: 20px 8px; letter-spacing: 3px; text-indent: 3px; }
body.portrait .diff-row .cta + .cta { margin-left: 14px; }
body.portrait #menu .hint { display: none; }
body.portrait .board,
body.portrait.web .board {
  position: static;
  transform: none;
  width: 100%;
  max-width: 640px;
  margin-top: 30px;
}
body.portrait .board-list li:nth-child(n+6) { display: none; }
body.portrait .lang-sel { top: 30px; left: 30px; }
body.portrait .fs-btn,
body.portrait .fs-tip { top: 30px; left: auto; right: 30px; }

/* Oyun sonu: önce sonuç, altında sadeleştirilmiş kesim tablosu (meyve/adet/vuruş/puan, en çok 6 satır) */
body.portrait .overlay.over { flex-direction: column; justify-content: flex-start; padding: 50px 30px; }
body.portrait .over-side { order: -1; margin-left: 0; min-width: 0; }
body.portrait .over-side h2 { font-size: 56px; }
body.portrait .over-stats { margin-top: 30px; padding: 20px 24px; }
body.portrait .stats th:nth-child(4), body.portrait .stats th:nth-child(5), body.portrait .stats th:nth-child(6),
body.portrait .stats tbody td:nth-child(4), body.portrait .stats tbody td:nth-child(5), body.portrait .stats tbody td:nth-child(6),
body.portrait #statsBase, body.portrait #statsBonus, body.portrait #statsRew { display: none; }
body.portrait .stats tbody tr:nth-child(n+7) { display: none; }
body.portrait .tut,
body.portrait.tut-on .tut { padding-top: 250px; padding-left: 30px; padding-right: 30px; }
body.portrait .tut .tut-skip { bottom: 150px; }
body.portrait .toast { width: max-content; }
/* Web/portal: oyun alanının dışında kalan şeritler oyunun zemin rengiyle dolar (siyah çerçeve görünmez) */
body.web #viewport { background: radial-gradient(ellipse at 50% 40%, #08111f 0%, #04060c 70%); }

/* ===== İlerleme: kristal, başlangıç seviyesi, lazer dükkanı, günlük ödül (web/portal) ===== */
.cr-line { margin-left: 14px; color: #7ff8ff; }
.cr-line i { font-style: normal; color: rgba(214, 240, 250, 0.35); margin-right: 14px; }
.cr-line b { color: #7ff8ff; }
#menu .shop-btn { margin-top: 18px; min-width: 260px; border-color: rgba(61, 245, 255, 0.45); color: #c9fbff; }
.cp-row { display: flex; align-items: center; justify-content: center; margin-top: 22px; }
.cp-lab { font-family: var(--display); font-size: 20px; letter-spacing: 4px; color: rgba(150, 225, 245, 0.6); margin-right: 16px; }
body.web .cp-lab { font-size: 26px; }
.cp-chips { display: flex; flex-wrap: wrap; justify-content: center; }
.chip {
  min-width: 75px; min-height: 64px; margin: 4px 6px; padding: 0 16px;
  font: 700 28px/1 var(--num); color: rgba(214, 240, 250, 0.75);
  background: rgba(5, 12, 22, 0.7); border: 2px solid rgba(61, 245, 255, 0.25); border-radius: 14px; cursor: pointer;
}
.chip.on { color: #05070d; background: var(--lime); border-color: var(--lime); box-shadow: 0 0 18px rgba(198, 255, 61, 0.45); }
.chip:focus { outline: 3px solid var(--magenta); outline-offset: 3px; }

.meta-ov { z-index: 14; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 300px); grid-gap: 22px; margin: 18px 0 10px; }
.blade-card {
  position: relative; height: 170px; padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: rgba(5, 12, 22, 0.75); border: 2px solid rgba(61, 245, 255, 0.18); border-radius: 18px;
  color: var(--paper); cursor: pointer;
}
.blade-card:focus { outline: 3px solid var(--magenta); outline-offset: 3px; }
.blade-card.sel { border-color: var(--lime); box-shadow: 0 0 26px rgba(198, 255, 61, 0.3); }
.blade-card.poor { opacity: 0.55; }
.swatch {
  display: block; width: 230px; height: 10px; border-radius: 6px; margin-top: 14px;
  background: linear-gradient(90deg, rgba(var(--c), 0), rgb(var(--c)) 30%, #fff 50%, rgb(var(--c)) 70%, rgba(var(--c), 0));
  box-shadow: 0 0 18px rgba(var(--c), 0.9), 0 0 40px rgba(var(--c), 0.5);
}
.swatch.rainbow {
  background: linear-gradient(90deg, #ff3d6e, #ffb13d, #f6ff3d, #3dff8b, #3dd8ff, #8a5cff, #ff3dd8);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.55);
}
.blade-card .bn { font: 700 26px/1.1 var(--ui); }
.blade-card .bc { font: 700 24px/1 var(--num); letter-spacing: 2px; color: #7ff8ff; }
.blade-card.sel .bc { color: var(--lime); }
.blade-card.owned:not(.sel) .bc { color: rgba(214, 240, 250, 0.8); }

.daily-row { display: flex; justify-content: center; margin: 10px 0 34px; }
.daily-row .day {
  width: 150px; margin: 0 8px; padding: 18px 8px;
  border: 2px solid rgba(61, 245, 255, 0.2); border-radius: 16px; background: rgba(5, 12, 22, 0.7);
  display: flex; flex-direction: column; align-items: center;
}
.daily-row .day span { font-family: var(--display); font-size: 20px; letter-spacing: 3px; color: rgba(150, 225, 245, 0.7); }
.daily-row .day b { margin-top: 10px; font: 700 30px/1 var(--num); color: #7ff8ff; }
.daily-row .day.done { opacity: 0.4; }
.daily-row .day.today { border-color: var(--gold); box-shadow: 0 0 30px rgba(255, 210, 74, 0.35); transform: scale(1.08); }
.daily-row .day.today b { color: var(--gold); }
body.web .daily-row .day span { font-size: 24px; }

.cr-earn { margin-top: 14px; font: 700 34px/1 var(--num); letter-spacing: 3px; color: #7ff8ff; text-shadow: 0 0 18px rgba(61, 245, 255, 0.5); }

/* dikey: dükkan 2 sütun, günlük ödül 4+3, menü skor tablosu 3 satır */
body.portrait .shop-grid { grid-template-columns: repeat(2, 320px); grid-gap: 18px; }
body.portrait .blade-card { height: 150px; }
body.portrait .swatch { width: 250px; }
body.portrait .daily-row { flex-wrap: wrap; max-width: 700px; }
body.portrait .daily-row .day { width: 150px; margin: 8px; }
body.portrait .cp-row { flex-direction: column; }
body.portrait .cp-lab { margin: 0 0 8px; }
body.portrait .board-list li:nth-child(n+4) { display: none; }
body.portrait #menu .shop-btn { margin-top: 14px; }
.meta-ov { background: radial-gradient(ellipse at 50% 34%, rgba(8, 20, 38, 0.97) 0%, rgba(3, 5, 10, 0.985) 60%, #020408 100%); }
/* Oyun sonu (web/portal): kristal + skor kaydı + 2 ödüllü düğme sığsın — uzun dillerde (ru/de) taşma olmasın */
body.web #over .over-side > .badge { display: none; }
body.web .over-side h2 { font-size: 54px; letter-spacing: 5px; text-indent: 5px; white-space: nowrap; margin-bottom: 6px; }
body.web .over-side .final { margin-top: 8px; }
body.web .over-side .cr-earn { margin-top: 8px; }
body.web #over .cta { margin-top: 16px; }
body.web #over .ghost { margin-top: 12px; }
body.web #over .cta.revive {
  min-height: 0; padding: 14px 24px; margin-top: 10px; margin-bottom: 0;
  font-size: 24px; letter-spacing: 2px; text-indent: 2px; white-space: nowrap;
}
body.web #over .sendbox { margin-top: 12px; }
body.web #over .send-btn { white-space: nowrap; padding: 0 22px; font-size: 26px; }
body.web #over .send-status { margin-top: 6px; }
body.web .overlay.over { padding: 50px 60px; }
body.web .over-side { width: 640px; min-width: 0; margin-left: 50px; }
body.web .over-side h2 { font-size: 48px; }
body.web #over .cta.revive, body.web #over .send-btn { white-space: normal; max-width: 640px; line-height: 1.25; }
body.web #over .send-btn { min-height: 64px; padding: 10px 22px; }
body.web .over-side .send-status { max-width: 640px; }
body.portrait .over-side { width: auto; margin-left: 0; }
/* Web/portal: kesim tablosu sade (meyve/adet/vuruş/puan) — uzun dillerde sonuç sütunu itilmesin */
body.web .stats th:nth-child(4), body.web .stats th:nth-child(5), body.web .stats th:nth-child(6),
body.web .stats tbody td:nth-child(4), body.web .stats tbody td:nth-child(5), body.web .stats tbody td:nth-child(6),
body.web #statsBase, body.web #statsBonus, body.web #statsRew { display: none; }
body.web .over-side { flex-shrink: 0; }
body.web .over-stats { min-width: 0; max-width: 820px; }
body.portrait .stats { font-size: 24px; }
body.portrait .stats th, body.portrait .stats .fruit, body.portrait.web .stats th, body.portrait.web .stats .fruit { font-size: 20px; }
body.portrait .over-stats { max-width: 700px; }
body.web .over-stats { flex: 0 1 auto; min-width: max-content; }
body.portrait .stats th, body.portrait .stats td { padding-left: 10px; padding-right: 10px; }
body.portrait .over-stats { min-width: 0; padding: 18px 14px; }
body.portrait .stats th { white-space: normal; letter-spacing: 1px; line-height: 1.15; }
body.portrait .stats .fruit { white-space: normal; line-height: 1.15; }
body.portrait .stats .fruit img { width: 36px; height: 36px; margin-right: 10px; }
body.portrait .stats { width: 100%; }
/* dikey: görev bloğu seviye satırının altında; uzun başlık (ru/de) satır atlar, seviye yazısıyla çakışmaz */
body.portrait .quests,
body.portrait.web .quests { top: 205px; width: 360px; }
body.portrait .quest-head,
body.portrait.web .quest-head { white-space: normal; text-align: right; line-height: 1.15; }
body.portrait .combo { top: 470px; }
body.portrait .power-badge { top: 420px; }
body.portrait .reward { top: 540px; }
body.portrait .level-banner { top: 640px; }
