/* Layout: üstte HUD; solda ölçeklenen 1200×720 kafe dünyası + altında etkinlik/danışman/canlı panel; sağda stok ve modül paneli.
   Dar ekranda tek sütun. Tek görünüm (bilinçli): parlak, düz renkli oyuncak dünyası; tüm renkler açıkça tanımlı. */
:root {
  color-scheme: light;
  --ink: #1F2240;
  --ink-soft: #555B84;
  --page: #D9EFEC;
  --panel: #FFFFFF;
  --panel-2: #EEF7F6;
  --line: #C3DFDB;
  --teal: #36B5B0;
  --coral: #FF6F59;
  --sun: #FFC845;
  --sun-deep: #E0A21F;
  --leaf: #4CC774;
  --berry: #FF4FA3;
  --f-display: "Lilita One", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --f-ui: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: var(--page);
  background-image: radial-gradient(rgba(31, 34, 64, .07) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--f-ui);
  font-weight: 700;
  padding-block: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.app { max-width: 1440px; margin: 0 auto; display: grid; gap: 14px; }

/* ── HUD ── */
.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: var(--panel); border-radius: 24px; padding: 10px 16px; box-shadow: 0 5px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand svg { width: 46px; height: 46px; flex: none; background: var(--ink); border-radius: 14px; padding: 4px; }
.brand h1 { font: 400 30px/1 var(--f-display); margin: 0; letter-spacing: .3px; }
.brand p { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.level { display: grid; gap: 5px; min-width: 170px; }
.level-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.level-top b { font: 400 17px var(--f-display); color: var(--ink); }
.xpbar { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--leaf)); border-radius: 99px; transition: width .4s; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border-radius: 16px; padding: 6px 12px; }
.stat .coin { width: 26px; height: 26px; }
.stat b { font: 400 24px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.stat.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }
.hud-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { border: 2px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Ana yerleşim ── */
.play { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.stage-col { display: grid; gap: 10px; min-width: 0; }
.side { display: grid; gap: 14px; min-width: 0; }
@media (max-width: 980px) { .play { grid-template-columns: minmax(0, 1fr); } }

.stage { position: relative; width: 100%; max-width: 100%; aspect-ratio: 1200 / 720; border-radius: 28px; overflow: hidden; background: var(--teal); box-shadow: 0 6px 0 rgba(31, 34, 64, .18); }
.world { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; transform-origin: 0 0; overflow: hidden; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; }

/* ── Sahne dekoru ── */
.scene-wall { position: absolute; left: 0; top: 0; width: 910px; height: 226px; background: var(--teal); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 64px); }
.scene-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: rgba(31, 34, 64, .2); }
.storage-wall { position: absolute; left: 910px; top: 0; width: 290px; height: 226px; background: #7F8CB0; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 28px); box-shadow: inset 8px 0 0 #6B7194; }
.rack { position: absolute; left: 14px; top: 22px; width: 262px; height: 204px; border-radius: 12px 12px 0 0; background: rgba(31, 34, 64, .28); box-shadow: inset 0 -6px 0 rgba(31, 34, 64, .3); }
.rack-title { position: absolute; left: 50%; top: 8px; translate: -50% 0; font: 400 15px var(--f-display); letter-spacing: .2em; color: #fff; }
.scene-floor { position: absolute; left: 0; top: 226px; width: 910px; height: 494px; background-color: #FFF1D6; background-image: linear-gradient(45deg, #FFE2B0 25%, transparent 25%, transparent 75%, #FFE2B0 75%), linear-gradient(45deg, #FFE2B0 25%, transparent 25%, transparent 75%, #FFE2B0 75%); background-size: 80px 80px; background-position: 0 0, 40px 40px; }
.storage-floor { position: absolute; left: 910px; top: 226px; width: 290px; height: 494px; background: #B8C2DA; background-image: radial-gradient(rgba(31, 34, 64, .14) 2px, transparent 2.5px); background-size: 18px 18px; box-shadow: inset 8px 0 0 #9AA5C4; }
.dock-label { position: absolute; left: 40px; top: 218px; width: 230px; padding: 4px 0; text-align: center; font: 400 14px var(--f-display); letter-spacing: .12em; color: #1F2240; background: repeating-linear-gradient(135deg, #FFC845 0 12px, #1F2240 12px 24px); background-size: 100% 6px; background-repeat: no-repeat; background-position: bottom; }
.bulbs { position: absolute; left: 140px; top: 6px; width: 330px; height: 20px; background: radial-gradient(circle, #FFE45E 0 5px, transparent 6px) 0 2px / 33px 18px repeat-x, linear-gradient(rgba(31, 34, 64, .45), rgba(31, 34, 64, .45)) 0 6px / 100% 2px no-repeat; }
.door { position: absolute; left: 24px; top: 70px; width: 100px; height: 156px; border-radius: 50px 50px 0 0; overflow: hidden; background: #1F2240; box-shadow: 0 0 0 7px rgba(255, 255, 255, .3); }
.door-in { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, #FFE45E 0 2px, transparent 3px) 0 0 / 26px 30px, #2A2F5A; }
.door-panel { position: absolute; top: 0; bottom: 0; width: 50%; background: #E8ECF5; transition: transform .35s ease; }
.door-panel::after { content: ""; position: absolute; top: 44px; width: 22px; height: 22px; border-radius: 50%; background: #9FD8F5; box-shadow: inset 0 0 0 4px #CBD2E3; }
.door-panel.l { left: 0; border-right: 2px solid #CBD2E3; } .door-panel.l::after { right: 8px; }
.door-panel.r { right: 0; } .door-panel.r::after { left: 8px; }
.door.open .door-panel.l { transform: translateX(-92%); }
.door.open .door-panel.r { transform: translateX(92%); }
.door-sign { position: absolute; left: 44px; top: 40px; padding: 2px 10px; border-radius: 8px; background: #1F2240; color: var(--berry); font: 400 14px/1.2 var(--f-display); letter-spacing: .12em; text-shadow: 0 0 8px var(--berry); }
.sign { position: absolute; left: 160px; top: 34px; width: 290px; padding: 12px 0 10px; border-radius: 22px; background: #1F2240; text-align: center; box-shadow: 0 7px 0 rgba(31, 34, 64, .25); }
.sign-main { display: block; font: 400 52px/1 var(--f-display); color: #fff; letter-spacing: .5px; text-shadow: 0 0 6px var(--berry), 0 0 18px var(--berry), 0 0 34px var(--berry); animation: neonOn 1.6s steps(1) 1; }
.sign-sub { display: block; margin-top: 4px; font-weight: 900; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--berry); }
@keyframes neonOn { 0% { opacity: .15; } 12% { opacity: 1; } 18% { opacity: .2; } 30% { opacity: 1; } 36% { opacity: .4; } 44%, 100% { opacity: 1; } }
.clock { position: absolute; left: 330px; top: 154px; width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #1F2240; }
.clock i { position: absolute; left: 50%; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: #1F2240; transform-origin: 50% 100%; }
.clock .hh { height: 13px; } .clock .mm { height: 19px; background: var(--coral); }
.clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #1F2240; }
.plant { position: absolute; left: 8px; top: 600px; width: 66px; }
.counter { position: absolute; left: 480px; top: 198px; width: 430px; height: 92px; z-index: 5; }
.counter-top { height: 28px; background: #E8ECF5; border-radius: 14px 0 0 0; box-shadow: inset 0 -4px 0 #CBD2E3; }
.counter-front { position: relative; height: 64px; border-radius: 0 0 0 14px; background: #2F3560; background-image: repeating-linear-gradient(90deg, transparent 0 58px, rgba(124, 247, 255, .22) 58px 60px), linear-gradient(transparent 28px, rgba(124, 247, 255, .22) 28px 30px, transparent 30px); }
.pickup-label { position: absolute; right: 22px; top: 38px; font: 400 13px var(--f-display); letter-spacing: .14em; color: #7CF7FF; }

/* KDS (duvar ekranı) */
.kds { position: absolute; left: 480px; top: 8px; width: 420px; height: 82px; border-radius: 16px; background: #1F2240; padding: 6px 10px; box-shadow: 0 6px 0 rgba(31, 34, 64, .25); }
.kds-head { display: flex; justify-content: space-between; font: 800 11px var(--f-ui); letter-spacing: .12em; color: #7CF7FF; }
.kds-head span:last-child { color: var(--sun); letter-spacing: .04em; }
.kds-list { display: flex; gap: 6px; margin-top: 5px; height: 52px; align-items: center; overflow: hidden; }
.kds-empty { font-size: 13px; color: #8A90B0; font-weight: 700; }
.ticket { flex: none; display: grid; justify-items: center; width: 44px; height: 52px; padding-top: 3px; border-radius: 10px; background: #2E3158; color: #fff; cursor: pointer; box-shadow: inset 0 -4px 0 #8A90B0; }
.ticket svg { width: 30px; height: 30px; pointer-events: none; }
.ticket b { font: 400 12px/1 var(--f-display); pointer-events: none; }
.ticket.preparing { box-shadow: inset 0 -4px 0 var(--sun); }
.ticket.ready { box-shadow: inset 0 -4px 0 var(--leaf); }
.ticket.blocked { box-shadow: inset 0 -4px 0 var(--coral); background: #4A2A3A; }
.ticket.cancelled { opacity: .35; }

/* ── Zemin çıkartmaları ── */
.decals { position: absolute; inset: 0; }
.decal { position: absolute; }
.queue-spot { width: 54px; height: 18px; margin: -9px 0 0 -27px; border-radius: 50%; border: 3px dashed rgba(31, 34, 64, .22); }
.dock-pad { width: 60px; height: 18px; margin: -9px 0 0 -30px; border-radius: 50%; background: rgba(54, 181, 176, .32); box-shadow: inset 0 0 0 3px rgba(54, 181, 176, .7); }
.zone-lock { display: grid; place-items: center; border-radius: 20px; border: 3px dashed rgba(31, 34, 64, .35); background: repeating-linear-gradient(135deg, rgba(255, 200, 69, .35) 0 18px, rgba(255, 255, 255, .25) 18px 36px); cursor: pointer; }
.zone-lock span { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #1F2240; color: #fff; font: 400 16px var(--f-display); pointer-events: none; }
.zone-lock .lock { width: 16px; height: 16px; }

/* ── Varlıklar ── */
.ents { position: absolute; inset: 0; }
.ent { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.sprite { position: absolute; left: 0; bottom: 0; translate: -50% 0; transform-origin: 50% 100%; pointer-events: auto; }
.sprite > svg { display: block; width: 100%; height: auto; pointer-events: none; }
.human-sprite { width: 84px; }
.cobot-sprite { width: 120px; }
.table-sprite { width: 150px; }
.dish-sprite { width: 46px; cursor: grab; }
.bin-sprite { width: 58px; }
.box-sprite { width: 52px; }
.van-sprite { width: 220px; pointer-events: none; }
.robot-serviceBot .robot-sprite { width: 76px; }
.robot-cleanBot .robot-sprite { width: 76px; }
.robot-logiBot .robot-sprite { width: 96px; }
.ent-customer .sprite, .ent-robot .sprite, .ent-table .sprite, .ent-cobot .sprite, .ent-bin .sprite, .ent-box .sprite { cursor: pointer; }

.robot .bob, .human .bob { animation: bob 1.6s ease-in-out infinite; }
.robot .eyes, .human .eyes { transform-box: fill-box; transform-origin: center; animation: blinkEyes 4.2s infinite; }
.blink { animation: glow 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2.5px); } }
@keyframes blinkEyes { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes glow { 50% { opacity: .35; } }
.human .leg { transform-box: fill-box; transform-origin: 50% 0; }
.walking .human .leg-l { animation: legSwing .36s ease-in-out infinite alternate; }
.walking .human .leg-r { animation: legSwing .36s ease-in-out infinite alternate-reverse; }
.walking .human .bob { animation: walkBob .36s ease-in-out infinite alternate; }
@keyframes legSwing { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes walkBob { to { transform: translateY(-3px); } }
.guest-badge { position: absolute; left: 50%; top: -12px; translate: -50% 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--berry); color: #fff; font-size: 14px; box-shadow: 0 2px 0 #C02E7A; pointer-events: none; }

.bubble { position: absolute; left: 28px; bottom: 66px; width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 4px 0 rgba(31, 34, 64, .18); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: -2px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ring { position: absolute; inset: -4px; width: 66px; height: 66px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: #E3E7F0; }
.ring-fg { stroke: var(--leaf); stroke-dasharray: 175.9; stroke-dashoffset: 0; stroke-linecap: round; }
.bubble-icon { position: absolute; inset: 9px; display: grid; place-items: center; }
.bubble-icon svg { width: 100%; height: 100%; }
.ent-customer.wanting .bubble { animation: bubbleBounce .6s ease-in-out infinite; box-shadow: 0 0 0 4px var(--leaf); }
@keyframes bubbleBounce { 50% { transform: translateY(-6px); } }
.ent-customer.target-ok .sprite { filter: drop-shadow(0 0 6px var(--leaf)) drop-shadow(0 0 2px var(--leaf)); }
.ent-customer.target-bad .sprite { filter: drop-shadow(0 0 6px var(--coral)); }
.ent-customer.munch .sprite { animation: munch .28s ease-in-out infinite alternate; }
@keyframes munch { to { transform: scale(1.04, .96); } }

.table-sprite .mess { opacity: 0; transition: opacity .3s; }
.ent-table.dirty .mess { opacity: 1; }
.food { position: absolute; left: 50%; bottom: 52px; width: 42px; translate: -50% 0; pointer-events: none; }
.food svg { width: 100%; height: auto; display: block; }
.table-no { position: absolute; left: 8px; bottom: 50px; padding: 1px 7px; border-radius: 8px; background: #1F2240; color: #fff; font: 400 13px var(--f-display); pointer-events: none; }
.reserved-tag { display: none; position: absolute; right: 2px; bottom: 50px; padding: 1px 8px; border-radius: 8px; background: var(--berry); color: #fff; font: 800 11px var(--f-ui); letter-spacing: .04em; pointer-events: none; }
.ent-table.reserved .reserved-tag { display: block; }
.ent-table.reserved .table-sprite::before { content: ""; position: absolute; left: 50%; bottom: 30px; width: 168px; height: 62px; translate: -50% 0; border-radius: 50%; box-shadow: 0 0 0 5px var(--berry), 0 0 22px 6px var(--berry); animation: reserveBlink .8s ease-in-out infinite alternate; pointer-events: none; }
@keyframes reserveBlink { from { opacity: .15; } to { opacity: 1; } }

.cobot .arm-a { transform-box: view-box; transform-origin: 36px 130px; }
.cobot .arm-b { transform-box: view-box; transform-origin: 36px 72px; }
.cobot .held { opacity: 0; transition: opacity .2s; }
.ent-cobot[data-state="working"] .arm-a { animation: armA 1.1s ease-in-out infinite; }
.ent-cobot[data-state="working"] .arm-b { animation: armB 1.1s ease-in-out infinite; }
.ent-cobot[data-state="working"] .held, .ent-cobot[data-state="holding"] .held { opacity: 1; }
.ent-cobot[data-state="idle"] .arm-a { animation: armIdle 3s ease-in-out infinite; }
@keyframes armA { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(9deg); } }
@keyframes armB { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-18deg); } }
@keyframes armIdle { 50% { transform: rotate(-3deg); } }
.ent-cobot[data-state="working"] .lamp { fill: var(--sun); animation: glow .5s steps(2) infinite; }
.ent-cobot[data-state="holding"] .lamp { fill: var(--coral); }
.cobot-ring { display: none; position: absolute; left: -40px; bottom: 64px; width: 46px; height: 46px; border-radius: 50%; padding: 5px; background: conic-gradient(var(--leaf) calc(var(--p, 0) * 1turn), #E3E7F0 0); box-shadow: 0 3px 0 rgba(31, 34, 64, .2); pointer-events: none; }
.cobot-ring-icon { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.cobot-ring-icon svg { width: 80%; height: 80%; }
.ent-cobot[data-state="working"] .cobot-ring, .ent-cobot[data-state="holding"] .cobot-ring { display: block; }
.lock-badge { display: none; position: absolute; left: 50%; top: 42%; translate: -50% -50%; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #1F2240; color: #fff; font: 400 14px var(--f-display); white-space: nowrap; pointer-events: none; }
.lock-badge .lock { width: 14px; height: 14px; }
.ent-cobot[data-state="locked"] .cobot { filter: grayscale(1); opacity: .4; }
.ent-cobot[data-state="locked"] .lock-badge { display: flex; }

.dish-sprite { animation: tokenFloat 1.3s ease-in-out infinite; }
.dish-sprite::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 50px; height: 14px; translate: -50% 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 #CBD2E3; }
.dish-sprite svg { position: relative; }
.dish-tag { position: absolute; left: 50%; top: -12px; translate: -50% 0; padding: 0 6px; border-radius: 7px; background: var(--leaf); color: #fff; font: 400 12px var(--f-display); pointer-events: none; }
@keyframes tokenFloat { 50% { transform: translateY(-4px); } }
.ent-dish.dragging .sprite { animation: none; scale: 1.25; filter: drop-shadow(0 12px 8px rgba(31, 34, 64, .3)); cursor: grabbing; }

.bin-sprite { display: grid; justify-items: center; gap: 4px; padding: 6px 4px 8px; border-radius: 12px; background: #F4F6FB; box-shadow: 0 4px 0 rgba(31, 34, 64, .3); }
.bin-icon svg { width: 36px; height: 36px; display: block; }
.bin-count { font: 400 15px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.bin-bar { width: 44px; height: 7px; border-radius: 9px; background: #DDE2EE; overflow: hidden; }
.bin-bar i { display: block; height: 100%; width: 0; background: var(--leaf); transition: width .3s; }
.bin-state { font-size: 10px; font-weight: 900; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ent-bin.low .bin-bar i { background: var(--sun); }
.ent-bin.low .bin-state { color: #B4660A; }
.ent-bin.empty .bin-sprite { box-shadow: 0 4px 0 rgba(31, 34, 64, .3), 0 0 0 3px var(--coral); animation: shake .9s ease-in-out infinite; }
.ent-bin.empty .bin-bar i { background: var(--coral); }

.ent-robot .carry { position: absolute; left: 0; translate: -50% 0; pointer-events: none; }
.ent-robot .carry svg { width: 100%; height: auto; display: block; }
.robot-serviceBot .carry { bottom: 52px; width: 34px; }
.robot-logiBot .carry { bottom: 32px; width: 46px; }
.ent-robot .tag { position: absolute; left: 0; top: 6px; translate: -50% 0; padding: 1px 8px; border-radius: 999px; background: rgba(31, 34, 64, .78); color: #fff; font-weight: 800; font-size: 11px; white-space: nowrap; pointer-events: none; }
.ent-robot.busy .robot .bob { animation-duration: .5s; }
.ent-robot.working .sprite { animation: shake .5s infinite; }

.ent.hop > .sprite, .ent.nudge > .sprite { animation: hop .45s cubic-bezier(.3, 1.6, .5, 1); }
.ent.shake > .sprite, .ent.wiggle > .sprite { animation: shake .4s; }
.ent.pop-in > .sprite { animation: popIn .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 30% { transform: translateY(-24px) scale(.95, 1.05); } 70% { transform: translateY(0) scale(1.08, .92); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px) rotate(-3deg); } 40%, 80% { transform: translateX(5px) rotate(3deg); } }
@keyframes popIn { from { transform: scale(.2); } }

/* ── Efektler ── */
.fx-layer { position: absolute; inset: 0; z-index: 6000; pointer-events: none; }
.fx { position: absolute; translate: -50% -50%; }
.fx-text { font: 400 32px var(--f-display); color: var(--sun); -webkit-text-stroke: 2px #1F2240; animation: floatUp 1.1s ease-out forwards; white-space: nowrap; }
.fx-text.tip { color: #7BE39A; }
.fx-text.guest { color: #FF9CD0; }
.fx-text.big { font-size: 46px; color: #fff; -webkit-text-stroke: 3px #1F2240; animation-duration: 2s; }
.fx-emote { font: 900 28px var(--f-ui); color: var(--coral); animation: floatUp 1s ease-out forwards; white-space: nowrap; -webkit-text-stroke: 1px #fff; }
.fx-say { max-width: 200px; padding: 8px 12px; border-radius: 14px; background: #fff; color: var(--ink); font: 800 15px/1.25 var(--f-ui); text-align: center; box-shadow: 0 4px 0 rgba(31, 34, 64, .2); animation: sayIn 2.6s ease forwards; }
.fx-spark { width: 12px; height: 12px; border-radius: 3px; background: #fff; box-shadow: 0 0 6px #7CF7FF; animation: spark .6s ease-out forwards; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { transform: translateY(-10px) scale(1.1); opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }
@keyframes sayIn { 0% { transform: scale(.6); opacity: 0; } 10%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes spark { from { transform: translate(0, 0) rotate(45deg); } to { transform: translate(var(--dx), var(--dy)) rotate(45deg) scale(0); opacity: 0; } }

.toast { position: absolute; left: 50%; top: 12px; translate: -50% 0; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 14px; background: #1F2240; color: #fff; font-weight: 800; font-size: 14px; text-align: center; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 2; }
.toast.show { opacity: 1; transform: none; }

/* ── Etkinlik şeridi ── */
.event-bar { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 16px 14px; border-radius: 20px; background: #2A1F4A; color: #fff; overflow: hidden; box-shadow: 0 5px 0 #C02E7A; }
.event-bar.live { background: var(--berry); box-shadow: 0 5px 0 #A3226A; }
.event-main { display: grid; gap: 1px; min-width: 0; margin-right: auto; }
.event-kicker { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #FFC2E3; }
.event-bar.live .event-kicker { color: #fff; }
.event-main b { font: 400 21px var(--f-display); }
.event-main small { font-size: 13px; opacity: .9; }
.event-bonus { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 6px; text-align: right; }
.event-bonus .coin { width: 22px; height: 22px; }
.event-bonus span { font: 400 24px var(--f-display); color: var(--sun); }
.event-bonus small { grid-column: 1 / -1; font-size: 11px; opacity: .85; }
.event-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .2); }
.event-progress i { display: block; height: 100%; background: var(--sun); transition: width .25s linear; }

/* ── Danışman kartı ── */
.advisor { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 20px; background: var(--panel); box-shadow: 0 5px 0 var(--line), inset 0 0 0 3px var(--sun); }
.advisor.in { animation: popIn .35s cubic-bezier(.3, 1.6, .5, 1); }
.advisor-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--panel-2); }
.advisor-icon svg { width: 46px; height: 46px; }
.advisor-kicker { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #B4660A; }
.advisor-body b { display: block; font: 400 19px var(--f-display); }
.advisor-body p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-soft); font-weight: 600; }
.advisor-actions { display: grid; gap: 4px; justify-items: end; }
@media (max-width: 640px) { .advisor { grid-template-columns: 48px minmax(0, 1fr); } .advisor-actions { grid-column: 1 / -1; justify-items: stretch; } }

/* ── Canlı panel ── */
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.metric { display: grid; gap: 2px; padding: 8px 12px; border-radius: 14px; background: var(--panel); box-shadow: 0 3px 0 var(--line); min-width: 0; }
.metric small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric b { font: 400 19px var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric.warn { box-shadow: 0 3px 0 var(--coral), inset 0 0 0 2px var(--coral); }
.metric.warn b { color: #D9442E; }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.coach { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.coach li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--panel); box-shadow: 0 3px 0 var(--line); font-size: 14px; font-weight: 800; transition: background .2s; }
.coach li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); font: 400 14px var(--f-display); }
.coach li.done { background: var(--leaf); color: #fff; }
.coach li.done b { background: rgba(255, 255, 255, .3); }
.coach.tips li { padding-left: 14px; font-weight: 700; color: var(--ink-soft); }

/* ── Yan panel ── */
.card { background: var(--panel); border-radius: 24px; padding: 16px; box-shadow: 0 5px 0 var(--line); display: grid; gap: 12px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h2 { font: 400 22px var(--f-display); margin: 0; }
.mode { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--ink-soft); }
.mode.auto { background: var(--leaf); color: #fff; }
.stock-list { display: grid; gap: 8px; }
.stock-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--panel-2); }
.stock-icon svg { width: 40px; height: 40px; display: block; }
.stock-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.stock-top span { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.stock-bar { height: 8px; margin: 4px 0 3px; border-radius: 9px; background: #DDE2EE; overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: var(--leaf); }
.stock-row small { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.stock-row.low .stock-bar i { background: var(--sun); }
.stock-row.empty { box-shadow: inset 0 0 0 2px var(--coral); }
.stock-row.empty .stock-bar i { background: var(--coral); }
.stock-row.empty small { color: #D9442E; }

.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--panel-2); }
.tabs button { border: 0; background: none; border-radius: 12px; padding: 8px 2px; font-weight: 800; font-size: 12.5px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.offers { display: grid; gap: 10px; }
.offer { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--panel-2); transition: box-shadow .3s; }
.offer.flash { box-shadow: 0 0 0 3px var(--sun); animation: bump .5s ease 2; }
.offer-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #fff; padding: 4px; }
.offer-icon svg { width: 100%; height: 100%; }
.offer-title { font: 400 17px var(--f-display); letter-spacing: .2px; }
.offer-desc { font-size: 13px; line-height: 1.35; color: var(--ink-soft); font-weight: 600; }
.offer-meta { margin-top: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.buy { display: flex; align-items: center; gap: 5px; border: 0; border-radius: 12px; padding: 8px 12px; background: var(--sun); box-shadow: 0 4px 0 var(--sun-deep); font: 400 19px var(--f-display); cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buy.small { padding: 6px 10px; font-size: 16px; }
.buy .coin { width: 18px; height: 18px; }
.buy:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--sun-deep); }
.buy[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.owned { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--leaf); padding: 0 6px; }
.locked-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: #E3E7F0; color: var(--ink-soft); font: 400 14px var(--f-display); white-space: nowrap; }
.locked-pill .lock { width: 13px; height: 13px; }
.go-btn { border: 0; border-radius: 12px; padding: 8px 14px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; }
.link-btn { border: 0; background: none; font-size: 13px; font-weight: 800; color: var(--ink-soft); text-decoration: underline; cursor: pointer; padding: 4px; }
.link-btn.armed { color: var(--coral); }
.shop-foot { display: flex; justify-content: flex-end; }

.branch-intro { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); font-weight: 600; }
.branch { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: var(--panel-2); }
.branch.active { box-shadow: inset 0 0 0 3px var(--teal); }
.branch.locked { opacity: .85; }
.branch-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.branch-head svg { width: 34px; height: 34px; }
.branch-head b { display: block; font: 400 18px var(--f-display); }
.branch-head small { font-size: 12px; color: var(--ink-soft); }
.branch-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-soft); }
.branch-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.branch-note { margin: 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.pill { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.pill.now { background: var(--teal); color: #fff; }

@media (max-width: 560px) { .brand h1 { font-size: 26px; } .stat b { font-size: 20px; } .stage { border-radius: 18px; } .level { min-width: 0; flex: 1 1 160px; } }
@media (prefers-reduced-motion: reduce) {
  .robot .bob, .human .bob, .robot .eyes, .human .eyes, .blink, .dish-sprite, .sign-main, .ent-cobot .arm-a, .ent-cobot .arm-b,
  .walking .human .leg-l, .walking .human .leg-r, .ent-table.reserved .table-sprite::before, .ent-bin.empty .bin-sprite { animation: none !important; }
}

/* ── Kafe / Şehir geçişi ── */
.auto-chip { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: var(--leaf); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .04em; vertical-align: 1px; }
.view-toggle { display: inline-grid; grid-auto-flow: column; gap: 4px; justify-self: start; padding: 4px; border-radius: 16px; background: var(--panel); box-shadow: 0 3px 0 var(--line); }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 12px; padding: 8px 16px; font-weight: 800; font-size: 14px; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vt-lock svg { width: 14px; height: 14px; display: block; }
.vt-badge { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--coral); color: #fff; font: 400 13px/20px var(--f-display); text-align: center; }

/* ── Şehir haritası ── */
.city { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; transform-origin: 0 0; overflow: hidden; background: #F7F9F2; user-select: none; -webkit-user-select: none; }
.city-base, .city-routes { position: absolute; inset: 0; width: 1200px; height: 720px; }
.city-routes { pointer-events: none; }
.city-side { font: 400 22px var(--f-display); letter-spacing: .18em; fill: rgba(31, 34, 64, .28); }
.route { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; }
.route.bot { stroke: #2E3158; }
.route.drone { stroke: var(--teal); stroke-dasharray: 10 8; }
.city-ents, .city-couriers, .city-fx { position: absolute; inset: 0; }
.city-couriers, .city-fx { pointer-events: none; }
.city-fx { z-index: 5; }

.c-site { position: absolute; display: grid; justify-items: center; gap: 2px; translate: -50% -100%; border: 0; background: none; padding: 0; cursor: pointer; z-index: 2; }
.c-site-pin { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 50% 50% 8px; rotate: -45deg; background: var(--ink); box-shadow: 0 5px 0 rgba(31, 34, 64, .25); }
.c-site-pin svg { width: 34px; height: 34px; rotate: 45deg; color: #fff; }
.c-site.open .c-site-pin { background: var(--teal); }
.c-site.auto .c-site-pin { background: var(--leaf); box-shadow: 0 5px 0 #2F9A55, 0 0 0 6px rgba(76, 199, 116, .3); }
.c-site.locked .c-site-pin { background: #9AA5B1; }
.c-site.locked .c-site-pin svg { width: 22px; height: 22px; }
.c-site b { margin-top: 6px; padding: 1px 8px; border-radius: 8px; background: #fff; font: 400 16px var(--f-display); box-shadow: 0 2px 0 rgba(31, 34, 64, .15); }
.c-site small { font-size: 11px; font-weight: 900; color: var(--ink-soft); background: rgba(255, 255, 255, .85); padding: 0 6px; border-radius: 6px; }
.c-site.active b { background: var(--ink); color: #fff; }
.c-site.sel .c-site-pin { outline: 4px solid var(--sun); outline-offset: 2px; }

.c-order { position: absolute; translate: -50% -50%; display: grid; justify-items: center; border: 0; background: none; padding: 0; cursor: pointer; z-index: 3; }
.c-ring { position: absolute; top: 0; left: 50%; translate: -50% 0; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(var(--leaf) calc(var(--p, 1) * 1turn), rgba(255, 255, 255, .7) 0); box-shadow: 0 4px 0 rgba(31, 34, 64, .2); }
.c-order.s-preparing .c-ring { background: conic-gradient(#4D96FF calc(var(--p, 0) * 1turn), rgba(255, 255, 255, .8) 0); }
.c-order.s-ready .c-ring { background: var(--sun); animation: glow .8s ease-in-out infinite; }
.c-order.s-enroute .c-ring { background: #fff; box-shadow: 0 0 0 3px var(--teal); }
.c-order.s-delivered .c-ring { background: var(--leaf); }
.c-order.s-missed { opacity: .4; }
.c-order.s-new { animation: orderIn .4s cubic-bezier(.3, 1.6, .5, 1); }
.c-order.sel .c-ring { outline: 4px solid var(--ink); outline-offset: 2px; }
.c-items { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-top: 5px; border-radius: 50%; background: #fff; }
.c-items svg { width: 28px; height: 28px; margin: 0 -5px; }
.c-items.n1 svg { width: 36px; height: 36px; }
.c-label { margin-top: 10px; padding: 1px 7px; border-radius: 7px; background: rgba(31, 34, 64, .82); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
@keyframes orderIn { from { transform: scale(.3); } }

.c-courier { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.c-courier svg { position: absolute; left: 0; bottom: 0; translate: -50% 0; }
.c-bot svg { width: 40px; }
.c-drone svg { width: 54px; bottom: 26px; }
.c-drone .rotor { transform-box: fill-box; transform-origin: center; animation: rotor .15s linear infinite; }
.c-drone .c-shadow { position: absolute; left: -16px; top: -6px; width: 32px; height: 10px; border-radius: 50%; background: rgba(31, 34, 64, .25); }
.c-bot.moving svg { animation: bob .3s ease-in-out infinite; }
@keyframes rotor { 50% { transform: scaleX(.4); } }

.city-lock { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(31, 34, 64, .45); }
.city-lock-card { width: 560px; padding: 26px 30px; border-radius: 28px; background: #fff; box-shadow: 0 10px 0 rgba(31, 34, 64, .3); }
.city-lock-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #B4660A; }
.city-lock-kicker .lock { width: 16px; height: 16px; }
.city-lock-card h3 { margin: 6px 0 6px; font: 400 30px/1.1 var(--f-display); text-wrap: balance; }
.city-lock-card p { margin: 0 0 14px; font-size: 18px; line-height: 1.4; color: var(--ink-soft); font-weight: 600; }
.city-lock-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.city-lock-card li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--panel-2); font-size: 18px; font-weight: 800; }
.city-lock-card li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #DDE2EE; font-weight: 900; }
.city-lock-card li.ok span { background: var(--leaf); color: #fff; }
.city-lock-card li[data-focus] { cursor: pointer; }
.city-lock-card li em { margin-left: auto; font-style: normal; font-size: 14px; color: var(--teal); text-decoration: underline; }

.city-panel { display: grid; gap: 10px; padding: 14px 16px; border-radius: 20px; background: var(--panel); box-shadow: 0 5px 0 var(--line); }
.cp-fleet { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 12px; background: var(--panel-2); font-size: 13px; }
.cp-chip b { font: 400 17px var(--f-display); }
.cp-chip small { color: var(--ink-soft); font-size: 12px; }
.cp-chip.on { box-shadow: inset 0 0 0 2px var(--leaf); }
.cp-detail { display: grid; gap: 8px; }
.cp-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cp-title b { font: 400 22px var(--f-display); }
.cp-title span { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.cp-items { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-item { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 4px; border-radius: 12px; background: var(--panel-2); font-size: 13px; }
.cp-item svg { width: 28px; height: 28px; }
.cp-meta { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-soft); font-weight: 600; }
.cp-meta b { color: var(--ink); }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cp-actions .buy { font-size: 16px; }
.cp-hint { margin: 0; font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ── Telefon yatay düzeni (uygulama ve dar yükseklikli ekranlar) ──
   Sahne yüksekliğe göre boyutlanır; ikincil paneller sahnenin üstüne biner, yan panel kendi içinde kayar. */
html.native { -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
html.native body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (orientation: landscape) and (max-height: 600px) {
  body { padding-block: max(6px, env(safe-area-inset-top, 0px)) max(6px, env(safe-area-inset-bottom, 0px)); }
  .app { gap: 8px; max-width: none; }
  .hud { flex-wrap: nowrap; padding: 4px 10px; gap: 10px; border-radius: 16px; box-shadow: 0 3px 0 var(--line); }
  .brand { gap: 8px; } .brand p { display: none; }
  .stats { flex-wrap: nowrap; gap: 6px; } .stat small { display: none; }
  .hud-actions { flex-wrap: nowrap; gap: 6px; }
  .brand svg { width: 34px; height: 34px; border-radius: 10px; }
  .brand h1 { font-size: 21px; }
  .level { min-width: 96px; flex: 1 1 96px; gap: 3px; }
  .level-top { font-size: 11px; } .level-top b { font-size: 14px; }
  .xpbar { height: 7px; }
  .stat { padding: 3px 10px; border-radius: 12px; }
  .stat b { font-size: 18px; }
  .stat .coin { width: 20px; height: 20px; }
  .chip-btn { padding: 5px 10px; font-size: 12px; }
  .play { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .stage-col { position: relative; gap: 0; }
  .stage { border-radius: 16px; box-shadow: none; }
  .side { overflow-y: auto; overscroll-behavior: contain; gap: 8px; align-content: start; border-radius: 18px; }
  .card { padding: 10px; gap: 8px; border-radius: 18px; }
  .card h2 { font-size: 18px; }
  .view-toggle { position: absolute; z-index: 20; top: 6px; left: 6px; padding: 3px; border-radius: 12px; }
  .view-toggle button { padding: 5px 10px; font-size: 12px; border-radius: 9px; }
  .event-bar { position: absolute; z-index: 20; top: 6px; right: 6px; max-width: 46%; padding: 4px 10px 7px; gap: 8px; border-radius: 12px; }
  .event-main b { font-size: 13px; } .event-main small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .event-kicker { display: none; }
  .event-bonus span { font-size: 17px; } .event-bonus small { display: none; }
  .advisor { position: absolute; z-index: 20; top: 46px; left: 6px; right: 6px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px; border-radius: 14px; }
  .advisor-icon { width: 38px; height: 38px; border-radius: 10px; } .advisor-icon svg { width: 30px; height: 30px; }
  .advisor-body b { font-size: 14px; } .advisor-body p { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .advisor-kicker { display: none; }
  .advisor-actions .go-btn { padding: 6px 10px; font-size: 12px; }
  .metrics, .coach { display: none; }
  .city-panel { position: absolute; z-index: 20; left: 6px; right: 6px; bottom: 6px; max-height: 46%; overflow-y: auto; padding: 8px 10px; gap: 6px; border-radius: 14px; }
  .cp-chip { padding: 3px 8px; font-size: 11px; } .cp-chip b { font-size: 14px; }
  .cp-title b { font-size: 17px; } .cp-meta, .cp-hint { font-size: 12px; }
  .toast { top: auto; bottom: 8px; font-size: 12px; padding: 6px 12px; }
}

/* ── Maestro ve kurye ── */
.maestro-avatar { background: #1F2240; border-radius: 50%; }
.advisor.in .maestro-wave rect { transform-box: fill-box; transform-origin: center; animation: maestroTalk .45s ease-in-out 4 alternate; }
.advisor.in .maestro-wave rect:nth-child(2) { animation-delay: .1s; }
.advisor.in .maestro-wave rect:nth-child(3) { animation-delay: .2s; }
.advisor.in .maestro-wave rect:nth-child(4) { animation-delay: .05s; }
@keyframes maestroTalk { to { transform: scaleY(.45); } }
.advisor-kicker { color: var(--teal); }
.maestro-say strong { color: var(--ink); }
.maestro-impact { margin: 3px 0 0; font-size: 12px; font-weight: 800; color: #2F9A55; }
.c-rider svg { width: 44px; }
.c-rider.moving svg { animation: bob .25s ease-in-out infinite; }
@media (orientation: landscape) and (max-height: 600px) { .maestro-impact { display: none; } }
@media (prefers-reduced-motion: reduce) { .advisor.in .maestro-wave rect { animation: none; } }

/* ── Türkiye haritası ── */
.tr { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; transform-origin: 0 0; overflow: hidden; background: #A8DCF2; user-select: none; -webkit-user-select: none; }
.tr-base, .tr-provs { position: absolute; inset: 0; width: 1200px; height: 720px; }
.tr-sea { font: 400 22px var(--f-display); letter-spacing: .3em; fill: rgba(31, 34, 64, .3); }
.prov { cursor: pointer; }
.prov .dot { fill: #FFFFFF; stroke: #8A90B0; stroke-width: 2.5; transition: fill .2s; }
.prov text { font: 400 12px var(--f-display); fill: #1F2240; pointer-events: none; }
.prov:hover .dot { stroke: #2D66DB; }
.prov.s-hq .dot { fill: #1F2240; stroke: #FFC845; stroke-width: 3; }
.prov.s-hq text { fill: #FFC845; }
.prov.s-building .dot { fill: #2D66DB; stroke: #fff; }
.prov.s-building text { fill: #fff; }
.prov .ring { fill: none; stroke: #FFC845; stroke-width: 5; stroke-dasharray: calc(var(--p, 0) * 132) 132; transform: rotate(-90deg); stroke-linecap: round; }
.prov.s-done .dot { fill: #4CC774; stroke: #fff; }
.prov.sel .dot { stroke: #FF6F59; stroke-width: 4; }
.prov .pname { font: 400 15px var(--f-display); fill: #1F2240; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.tr-bar { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.tr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2D66DB, #4CC774); border-radius: 99px; }
.rewards { display: grid; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.rewards-title { font: 400 17px var(--f-display); }
.reward { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; border-radius: 12px; background: var(--panel-2); font-size: 13px; }
.reward code { font: 600 15px ui-monospace, Menlo, monospace; letter-spacing: .06em; color: var(--ink); user-select: all; }
.reward span { color: var(--ink-soft); }
.reward .link-btn { margin-left: auto; }
.pill.demo { background: #FDF0D8; color: #8A5300; }
.cp-meta code { font: 600 14px ui-monospace, Menlo, monospace; user-select: all; }

/* ── Şehir kioskları ── */
.c-kiosk { position: absolute; translate: -50% -100%; display: grid; justify-items: center; gap: 2px; border: 0; background: none; padding: 0; cursor: pointer; z-index: 2; }
.c-kiosk svg { width: 30px; height: 36px; filter: drop-shadow(0 3px 0 rgba(31, 34, 64, .25)); }
.c-kiosk.free svg { opacity: .45; filter: grayscale(.6); }
.c-kiosk-label { min-width: 34px; height: 14px; padding: 0 5px; border-radius: 7px; background: #1F2240; color: #FFC845; font: 400 11px/14px var(--f-display); overflow: hidden; }
.c-kiosk.own .c-kiosk-label { padding: 2px; background: #E3E7F0; }
.c-kiosk.own .c-kiosk-label i { display: block; height: 100%; border-radius: 5px; background: #4CC774; }
.c-kiosk.low .c-kiosk-label i { background: #FFC845; }
.c-kiosk.empty svg { animation: shake .9s ease-in-out infinite; }
.c-kiosk.sel svg { outline: 3px solid #FF6F59; outline-offset: 2px; border-radius: 6px; }
.fx-text.kiosk { font-size: 20px; color: #FFC845; }
