/* Mobil hráče (public/js/phone.js): telefon v pravém dolním rohu + pilulka se stavem taxi.
   Jen <button>/<input> (herní kurzor kliká přes main.js vCursorClick). */
#phone {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 300px; height: min(610px, calc(100vh - 44px));
  font-family: "Segoe UI", system-ui, Arial, sans-serif; color: #eef3fa;
  transform-origin: 100% 100%; animation: ph-in .22s ease-out;
}
#phone.hidden { display: none; }
@keyframes ph-in { from { transform: translateY(40px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.ph-body {
  position: relative; height: 100%; box-sizing: border-box; display: flex; flex-direction: column;
  background: #0b0e13; border-radius: 42px; padding: 12px 11px 8px;
  border: 2px solid #3a404b;
  box-shadow: 0 0 0 5px #15181e, 0 18px 50px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.06);
}
.ph-status {
  display: flex; align-items: center; justify-content: space-between; padding: 2px 16px 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px; color: #f4f7fb;
}
.ph-notch { width: 84px; height: 22px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px #1e232b; }
.ph-icons { font-size: 10.5px; opacity: .9; }
.ph-screen {
  flex: 1; overflow-y: auto; overflow-x: hidden; border-radius: 30px;
  background: linear-gradient(170deg, #1b2a44 0%, #0f1724 60%, #0c121c 100%);
  scrollbar-width: none;
}
.ph-screen::-webkit-scrollbar { display: none; }
.ph-screen[data-app="taxi"] { background: #10151d; }
.ph-bar { display: flex; justify-content: center; padding-top: 7px; }
.ph-home { width: 118px; height: 6px; border-radius: 4px; border: 0; padding: 0; background: #d9dee6; cursor: pointer; }
.ph-home.vhover { filter: brightness(1.4); }

/* domovská obrazovka */
.ph-wall { padding: 34px 18px 16px; text-align: center; min-height: 100%; box-sizing: border-box;
  background: radial-gradient(120% 70% at 30% 0%, rgba(255,210,31,.22), transparent 60%),
              radial-gradient(120% 80% at 100% 100%, rgba(80,140,255,.25), transparent 60%); }
.ph-clock { font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -1px; }
.ph-date { margin-top: 6px; font-size: 13.5px; opacity: .8; }
.ph-date::first-letter { text-transform: uppercase; }
.ph-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-top: 46px; }
.ph-app { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0;
  color: #eef3fa; font-weight: 600; font-size: 11.5px; font-family: inherit; cursor: pointer; padding: 4px 0; border-radius: 14px; }
.ph-ico { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 31px; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.ph-ico-taxi { background: linear-gradient(160deg, #ffe04d, #f2b705); }
.ph-ico-wallet { background: linear-gradient(160deg, #3ddc84, #148a4a); }
.ph-app.vhover .ph-ico, .ph-app:hover .ph-ico { transform: scale(1.06); }
.ph-hint { margin-top: 40px; font-size: 11px; opacity: .5; }

/* aplikace Taxi */
.ph-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 16px 12px; background: linear-gradient(160deg, #ffd21f, #f2b705); color: #1a1400; }
.ph-logo { font-weight: 800; font-size: 17px; }
.ph-sub { font-size: 12.5px; font-weight: 700; opacity: .75; }
.ph-pad { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 8px; }
#ph-q { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 12px; border: 1px solid #2c3a52;
  background: #1a2230; color: #fff; font-size: 15px; font-family: inherit; outline: none; }
#ph-q:focus { border-color: #ffd21f; }
.ph-sug { display: flex; flex-direction: column; gap: 4px; }
.ph-label { margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; opacity: .55; }
.ph-li { display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 10px; border-radius: 11px;
  background: #18202c; border: 1px solid transparent; color: #eef3fa; font-family: inherit; cursor: pointer; }
.ph-li.active, .ph-li.vhover, .ph-li:hover { border-color: rgba(255,210,31,.75); background: #1f2836; }
.ph-li-t { display: flex; flex-direction: column; min-width: 0; }
.ph-li-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-li-t small { font-size: 11.5px; opacity: .6; }
.ph-pin { font-size: 15px; }
.ph-rates { margin-top: 8px; font-size: 11px; opacity: .5; text-align: center; }
.ph-dest { font-size: 13.5px; padding: 8px 10px; border-radius: 11px; background: #18202c; }
.ph-dest small { opacity: .6; }
.ph-dest-big { font-size: 15px; display: flex; flex-direction: column; }
.ph-dest-big small { font-size: 12px; }
.ph-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px;
  border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; }
.ph-row span { opacity: .7; }
.ph-row.big b { font-size: 19px; color: #ffd21f; }
.ph-big { font-size: 17px; font-weight: 700; text-align: center; padding: 12px 4px; line-height: 1.35; }
.ph-big b { color: #ffd21f; }
.ph-ok { color: #5dff9e; }
.ph-note { font-size: 12px; opacity: .75; line-height: 1.4; }
.ph-bad { color: #ff7a7a; opacity: 1; }
.ph-car { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; background: #18202c; }
.ph-car span:last-child { display: flex; flex-direction: column; }
.ph-car small { font-size: 11.5px; opacity: .65; }
.ph-carico { font-size: 28px; }
.ph-meter { text-align: center; padding: 10px; border-radius: 14px; background: #000; border: 1px solid #333;
  font-family: "Consolas", "SF Mono", monospace; }
.ph-meter small { display: block; font-size: 10px; letter-spacing: 2px; color: #ff6a3d; }
.ph-meter b { font-size: 30px; color: #ff9a3d; text-shadow: 0 0 10px rgba(255,120,40,.5); }
.ph-receipt { padding: 4px 4px 8px; border-radius: 14px; background: #151c27; }
.ph-btn { margin-top: 4px; padding: 12px; border-radius: 13px; font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer;
  border: 1px solid transparent; }
.ph-primary { background: #ffd21f; color: #1a1400; }
.ph-primary:disabled { background: #4a4632; color: #8a8570; cursor: default; }
.ph-ghost { background: #1a2230; color: #dfe7f2; border-color: #2c3a52; }
.ph-warn { background: #e8533c; color: #fff; }
.ph-btn.vhover, .ph-btn:hover:not(:disabled) { filter: brightness(1.12); border-color: rgba(255,255,255,.6); }
.ph-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid rgba(255,210,31,.3); border-top-color: #ffd21f; animation: ph-rot .8s linear infinite; }
@keyframes ph-rot { to { transform: rotate(360deg); } }

/* stav objednávky, když je mobil zavřený */
#phone-pill {
  position: fixed; top: 44px; left: 50%; transform: translateX(-50%); z-index: 41;
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,210,31,.6);
  background: rgba(20,18,8,.78); color: #ffe27a; font: 700 13.5px "Segoe UI", system-ui, sans-serif;
  backdrop-filter: blur(4px); cursor: pointer; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}
#phone-pill.hidden { display: none; }
body:not(.playing) #phone-pill { display: none; }

/* mobil (dotyk): telefon přes většinu obrazovky */
@media (max-width: 640px), (max-height: 520px) {
  #phone { right: 50%; transform: translateX(50%); bottom: 10px; width: min(330px, 94vw); height: min(560px, calc(100vh - 20px)); animation: none; }
}
