/* Idle Delivery Drones — glassmorphism UI (blue / white / orange) */

:root {
  --blue: #2f8fe0;
  --blue-dark: #1b5e9e;
  --orange: #ff8c1a;
  --orange-dark: #e0700a;
  --teal: #18b89a;
  --purple: #8a5ae0;
  --red: #e05555;
  --ink: #16324a;
  --muted: #5a7690;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow: 0 8px 28px rgba(23, 60, 100, 0.18);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #6db5e8 0%, #a8d4f0 45%, #d0e8f8 100%);
  user-select: none;
}

#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 10px; gap: 10px; }

/*
  Notches, punch-holes and gesture bars. index.html already asks for the full
  screen with `viewport-fit=cover`, which means the OS will happily draw the
  camera cutout straight over the HUD unless we pad around it. env() resolves
  to 0 everywhere it doesn't apply, so this is inert in a desktop browser and
  costs nothing to ship in both builds.
*/
@supports (padding: env(safe-area-inset-top)) {
  #app {
    padding-top:    calc(10px + env(safe-area-inset-top));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    padding-left:   calc(10px + env(safe-area-inset-left));
    padding-right:  calc(10px + env(safe-area-inset-right));
  }
  /* fixed overlays sit outside #app, so they need their own insets */
  #zen-bar, #zen-exit { margin-bottom: env(safe-area-inset-bottom); }
  #notifs { margin-top: env(safe-area-inset-top); }
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ------------------------------------------------------------- topbar */
#topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.brand-icon { font-size: 24px; }
.top-stats { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; }
.tstat {
  display: flex; align-items: center; gap: 7px;
  background: var(--glass-strong);
  border-radius: 12px; padding: 4px 12px;
  border: 1px solid var(--glass-border);
}
.tstat b { font-size: 15px; display: block; line-height: 1.1; }
.tstat small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; }
.tstat-icon { font-size: 18px; }
.tstat.main b { color: #1d7a3d; font-size: 17px; }
.top-actions { display: flex; align-items: center; gap: 8px; }

#save-dot { opacity: 0.35; transition: all 0.3s; font-size: 18px; }
#save-dot.saved { opacity: 1; transform: scale(1.25); }

/* -------------------------------------------------------------- layout */
#middle { display: flex; flex: 1; gap: 10px; min-height: 0; }
#world-wrap { position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#world { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#world:active { cursor: grabbing; }

/* ------------------------------------------------------- camera controls */
#cam-ui {
  position: absolute; right: 12px; bottom: 14px;
  display: flex; flex-direction: column; gap: 6px; z-index: 5;
}
.cam-btn {
  width: 40px; height: 40px; border: 1px solid var(--glass-border);
  border-radius: 12px; cursor: pointer; font-size: 17px;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 3px 10px rgba(23, 60, 100, 0.2);
  transition: transform 0.12s, background 0.12s;
}
.cam-btn:hover { transform: scale(1.08); background: var(--glass-strong); }
.cam-btn:active { transform: scale(0.94); }
.cam-btn.active { background: linear-gradient(180deg, var(--orange), var(--orange-dark)); }

#event-banner, #boost-banner {
  position: absolute; left: 50%; transform: translateX(-50%);
  padding: 8px 20px; font-weight: 700; white-space: nowrap;
  animation: bannerIn 0.4s ease;
}
#event-banner { top: 12px; color: var(--orange-dark); }
#boost-banner { top: 58px; color: var(--blue-dark); }
@keyframes bannerIn { from { opacity: 0; transform: translateX(-50%) translateY(-16px); } }

#click-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 45, 70, 0.65); color: #fff;
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  pointer-events: none; transition: opacity 1.2s;
  animation: hintBob 2s ease-in-out infinite;
}
#click-hint.fade { opacity: 0; }
@keyframes hintBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }

/* --------------------------------------------------------------- panel */
#panel {
  width: 400px; display: flex; flex-direction: column; min-height: 0;
}
#tabs {
  display: flex; padding: 8px 8px 0; gap: 4px;
}
.tab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  padding: 8px 2px; border-radius: 10px 10px 0 0;
  font-size: 17px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: background 0.2s, color 0.2s;
}
.tab span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.tab:hover { background: rgba(255, 255, 255, 0.4); }
.tab.active { background: var(--glass-strong); color: var(--blue-dark); box-shadow: 0 -4px 12px rgba(23, 60, 100, 0.08); }

#tab-content {
  flex: 1; overflow-y: auto; padding: 10px;
  background: var(--glass-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  scrollbar-width: thin;
}
#tab-content::-webkit-scrollbar { width: 8px; }
#tab-content::-webkit-scrollbar-thumb { background: rgba(47, 143, 224, 0.35); border-radius: 4px; }

.section-title { font-weight: 800; font-size: 14px; margin: 10px 2px 8px; display: flex; align-items: center; gap: 8px; }
.list { display: flex; flex-direction: column; gap: 8px; }

/* --------------------------------------------------------------- cards */
.card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 2px 8px rgba(23, 60, 100, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card.affordable { box-shadow: 0 2px 12px rgba(255, 140, 26, 0.25); }
.card.affordable:hover { transform: translateY(-1px); }
.card.locked { opacity: 0.75; }
.card-mid { flex: 1; min-width: 0; }
.card-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.card-sub .inc { color: #1d7a3d; font-weight: 700; }
.lvl { color: var(--blue-dark); font-size: 11px; font-weight: 800; }

.drone-thumb { width: 62px; height: 48px; flex: none; cursor: help; background: rgba(190, 225, 250, 0.5); border-radius: 9px; }
.upg-icon { font-size: 26px; width: 40px; text-align: center; flex: none; }

.bar { height: 5px; background: rgba(47, 143, 224, 0.15); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 3px; transition: width 0.3s; }

.tag { background: rgba(47, 143, 224, 0.15); color: var(--blue-dark); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 8px; }
.tag.purple { background: rgba(138, 90, 224, 0.15); color: var(--purple); }

/* ------------------------------------------------------------- buttons */
.btn {
  border: none; cursor: pointer; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  border-radius: 10px; padding: 8px 14px; font-size: 13px;
  box-shadow: 0 3px 8px rgba(27, 94, 158, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-orange { background: linear-gradient(180deg, var(--orange), var(--orange-dark)); box-shadow: 0 3px 8px rgba(224, 112, 10, 0.35), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-purple { background: linear-gradient(180deg, var(--purple), #6a3ec0); box-shadow: 0 3px 8px rgba(106, 62, 192, 0.35), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-teal   { background: linear-gradient(180deg, var(--teal), #0e8a72); }
.btn-red    { background: linear-gradient(180deg, var(--red), #b83a3a); }
.btn-blue   { background: linear-gradient(180deg, var(--blue), var(--blue-dark)); }
.btn-ghost  { background: rgba(255, 255, 255, 0.6); color: var(--ink); box-shadow: none; border: 1px solid var(--glass-border); }
.btn-small  { padding: 4px 12px; font-size: 12px; background: rgba(255,255,255,0.7); color: var(--muted); box-shadow: none; border: 1px solid var(--glass-border); }
.btn-small.active { background: linear-gradient(180deg, var(--blue), var(--blue-dark)); color: #fff; }
.btn-wide { width: 100%; margin-top: 8px; padding: 11px; }

.btn-buy {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 86px; padding: 6px 10px; flex: none;
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  box-shadow: 0 3px 8px rgba(224, 112, 10, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-buy:disabled { background: linear-gradient(180deg, #a8b8c4, #8a9aa8); }
.b-amt { font-size: 10px; opacity: 0.85; }
.b-cost { font-size: 12px; }

.btn.glow { animation: btnGlow 1.4s ease-in-out infinite; }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 3px 8px rgba(106, 62, 192, 0.4); }
  50% { box-shadow: 0 0 22px rgba(138, 90, 224, 0.9); }
}
.btn.pulse { animation: btnPulse 2.4s ease-in-out infinite; }
@keyframes btnPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

.buybar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cap-label { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--blue-dark); }

/* ---------------------------------------------------------- warehouse */
.wh-current, .wh-next { flex-direction: column; align-items: stretch; }
.pkg-list { display: flex; flex-direction: column; gap: 5px; }
.pkg {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, 0.55); border-radius: 9px; padding: 6px 10px;
  opacity: 0.55;
}
.pkg.on { opacity: 1; color: var(--ink); }
.pkg b { margin-left: auto; color: var(--blue-dark); }
.pkg-dot { width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.15); }

/* ------------------------------------------------------------ missions */
.mission-card.done { opacity: 0.6; }

/* -------------------------------------------------------- achievements */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ach {
  background: rgba(255, 255, 255, 0.5); border-radius: 10px; padding: 7px 9px;
  font-size: 11px; opacity: 0.45; border: 1px solid transparent;
  display: flex; flex-direction: column; gap: 1px;
}
.ach b { font-size: 11px; }
.ach span { color: var(--muted); font-size: 10px; }
.ach.on { opacity: 1; border-color: rgba(255, 180, 60, 0.6); background: rgba(255, 235, 200, 0.75); }

/* --------------------------------------------------------------- stats */
.stat-list { display: flex; flex-direction: column; gap: 4px; }
.srow {
  display: flex; justify-content: space-between; font-size: 13px;
  background: rgba(255, 255, 255, 0.55); padding: 7px 12px; border-radius: 9px;
}
.srow b { color: var(--blue-dark); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.stat-grid > div {
  background: rgba(255, 255, 255, 0.6); border-radius: 10px; padding: 8px 12px;
  font-size: 12px; color: var(--muted); display: flex; justify-content: space-between;
}
.stat-grid b { color: var(--ink); }

/* -------------------------------------------------------------- modals */
.modal-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 45, 70, 0.4);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  position: relative; width: min(480px, 92vw); max-height: 86vh; overflow-y: auto;
  padding: 22px; background: var(--glass-strong);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.85); } }
.modal h2 { margin-bottom: 10px; }
.modal p { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.modal-x {
  position: absolute; top: 10px; right: 12px; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.08); border-radius: 8px; width: 30px; height: 30px; font-size: 14px;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.slider-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin: 10px 0; }
.slider-row input { flex: 1; accent-color: var(--orange); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 10px 0; }
#save-io {
  width: 100%; height: 74px; border-radius: 10px; border: 1px solid var(--glass-border);
  padding: 8px; font-size: 11px; font-family: monospace; resize: none;
  background: rgba(255, 255, 255, 0.7); color: var(--ink);
}
.prestige-box {
  background: rgba(138, 90, 224, 0.1); border: 1px solid rgba(138, 90, 224, 0.3);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.prestige-box .gain b { color: var(--purple); font-size: 16px; }

/* --------------------------------------------------------------- notif */
#notifs {
  position: fixed; top: 70px; right: 14px; z-index: 70;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.notif {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  max-width: 320px; opacity: 0; transform: translateX(40px);
  transition: opacity 0.35s, transform 0.35s;
}
.notif.show { opacity: 1; transform: translateX(0); }
.n-icon { font-size: 20px; }

/* ------------------------------------------------- environment overlays */
#env-chip, #region-chip {
  position: absolute; top: 10px;
  padding: 5px 12px; font-size: 12px; font-weight: 800;
  color: var(--ink); white-space: nowrap; pointer-events: none;
}
#env-chip { left: 10px; }
#region-chip { right: 10px; }

#vip-banner {
  position: absolute; top: 104px; left: 50%; transform: translateX(-50%);
  padding: 8px 20px; font-weight: 800; white-space: nowrap;
  color: #8a5a00; border-color: rgba(255, 200, 60, 0.9);
  background: rgba(255, 242, 200, 0.85);
  animation: vipPulse 1.6s ease-in-out infinite;
}
@keyframes vipPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 190, 40, 0.4); }
  50% { box-shadow: 0 0 26px rgba(255, 190, 40, 0.85); }
}

/* -------------------------------------------------------- tab animation */
#tab-content.tab-anim > * { animation: tabSlide 0.28s cubic-bezier(0.25, 0.9, 0.4, 1) backwards; }
#tab-content.tab-anim > *:nth-child(2) { animation-delay: 0.03s; }
#tab-content.tab-anim > *:nth-child(3) { animation-delay: 0.06s; }
#tab-content.tab-anim > *:nth-child(4) { animation-delay: 0.09s; }
@keyframes tabSlide { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------ progress shine */
.bar { position: relative; }
.bar > i {
  position: relative; overflow: hidden;
}
.bar > i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.65) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: barShine 2.4s linear infinite;
}
@keyframes barShine { from { background-position: 200% 0; } to { background-position: -100% 0; } }
.bar.gold > i { background: linear-gradient(90deg, #ffb020, #ffd870); }

/* ---------------------------------------------------------- collection */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 8px; }
.col-cell {
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255,255,255,0.9);
  border-radius: 12px; padding: 8px 6px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(23, 60, 100, 0.08);
}
.col-cell:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 16px rgba(23, 60, 100, 0.16); }
.col-cell.locked { opacity: 0.5; filter: grayscale(0.9); }
.col-cell.locked .drone-thumb { filter: brightness(0.25); }
.col-cell .drone-thumb { cursor: pointer; }
.col-name { font-size: 10.5px; font-weight: 700; line-height: 1.15; }
.col-rarity { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.col-info { font-size: 9.5px; }
.museum-card { flex-direction: column; align-items: stretch; }

/* ------------------------------------------------------------- regions */
.region-card.active-region { border-color: rgba(64, 200, 120, 0.8); box-shadow: 0 0 14px rgba(64, 200, 120, 0.3); }
.region-card.locked { opacity: 0.6; }

/* -------------------------------------------------------- mega projects */
.mega-card.done { border-color: rgba(255, 190, 60, 0.8); background: rgba(255, 246, 224, 0.85); }
.mega-cost { font-size: 10.5px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  #app { padding: 6px; gap: 6px; }
  #middle { flex-direction: column; }
  #panel { width: 100%; height: 46%; flex: none; }
  #topbar { padding: 6px 10px; gap: 8px; }
  .brand-name { display: none; }
  .tstat { padding: 3px 9px; }
  .tstat b { font-size: 13px; }
  .tstat small { display: none; }
  .tab { font-size: 15px; }
  .tab span { font-size: 9px; }
  .btn { padding: 7px 10px; font-size: 12px; }
  #btn-boost { font-size: 11px; }
  .ach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tstat:nth-child(n+4) { display: none; }
  #panel { height: 50%; }
}

/* ============================================ retention features (#1,2,4,6,7,10) */

/* --- combo badge (#1) --- */
#combo-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  padding: 7px 18px; border-radius: 20px; font-weight: 900; font-size: 15px;
  color: #fff; white-space: nowrap; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, #ff7a1a, #ff3d6e);
  box-shadow: 0 4px 18px rgba(255, 90, 40, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
#combo-badge::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px;
  border-radius: 2px; background: rgba(255, 255, 255, 0.85);
  transform: scaleX(var(--combo-bar, 1)); transform-origin: left;
}
#combo-badge.pop { animation: comboPop 0.2s ease; }
@keyframes comboPop { 0% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }

/* --- next-unlock bar (#10) --- */
#next-unlock {
  position: absolute; left: 12px; bottom: 14px; z-index: 5;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; max-width: 300px;
}
.nu-icon { font-size: 20px; }
.nu-mid { flex: 1; min-width: 150px; }
.nu-label { font-size: 11px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-bar { height: 6px; border-radius: 3px; background: rgba(47, 143, 224, 0.2); margin-top: 3px; overflow: hidden; }
.nu-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--teal)); border-radius: 3px; transition: width 0.3s; }
.nu-pct { font-size: 13px; font-weight: 900; color: var(--blue-dark); }

/* --- dispatch card (#7) --- */
#dispatch-card {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(440px, 90%); padding: 12px 14px; z-index: 8;
  animation: dispIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255, 180, 60, 0.7);
}
@keyframes dispIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } }
.disp-head { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.disp-timer { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--red); }
.disp-desc { font-size: 12px; color: var(--muted); margin: 5px 0 9px; }
.disp-opts { display: flex; gap: 8px; }
.disp-opts .btn { flex: 1; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; text-align: center; }
.disp-opts .btn small { font-weight: 600; opacity: 0.9; font-size: 10.5px; }

/* --- zen mode (#6) --- */
body.zen #topbar, body.zen #panel, body.zen #env-chip, body.zen #region-chip,
body.zen #cam-ui, body.zen #next-unlock, body.zen #vip-banner, body.zen #event-banner,
body.zen #boost-banner, body.zen #click-hint, body.zen #combo-badge,
body.zen #city-chip, body.zen #tutor-chip { display: none !important; }
body.zen #middle { gap: 0; }
body.zen #app { padding: 0; }
#zen-exit {
  position: absolute; top: 16px; right: 16px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(20, 45, 70, 0.55); color: #fff;
  backdrop-filter: blur(10px); cursor: pointer;
  font-weight: 900; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s, background 0.12s;
}
#zen-exit:hover { transform: scale(1.1); background: rgba(224, 85, 85, 0.85); }
#zen-photo {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: 56px; height: 56px; border-radius: 50%; font-size: 24px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.7); background: var(--glass); backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
body.zen #zen-exit { display: block; }
#zen-exit { display: none; }

/* --- welcome / login streak (#2) --- */
.streak-box { background: rgba(255, 140, 26, 0.1); border: 1px solid rgba(255, 140, 26, 0.3); border-radius: 12px; padding: 12px; margin: 8px 0; text-align: center; }
.streak-title { font-weight: 800; margin-bottom: 8px; }
.streak-row { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.streak-dot { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; background: rgba(255, 255, 255, 0.5); color: var(--muted); border: 1px solid var(--glass-border); }
.streak-dot.done { background: linear-gradient(180deg, #ffd166, #f0a020); color: #fff; }
.streak-dot.today { background: linear-gradient(180deg, var(--orange), var(--orange-dark)); color: #fff; transform: scale(1.15); box-shadow: 0 0 14px rgba(255, 140, 26, 0.7); }
.streak-reward { font-size: 13px; }

/* --- skins grid (#4) --- */
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.skin-cell { background: rgba(255, 255, 255, 0.7); border: 2px solid transparent; border-radius: 12px; padding: 8px 4px; text-align: center; cursor: pointer; transition: transform 0.15s; }
.skin-cell:hover { transform: translateY(-2px); }
.skin-cell.locked { opacity: 0.4; filter: grayscale(0.8); }
.skin-cell.equipped { border-color: var(--teal); background: rgba(24, 184, 154, 0.14); }
.skin-icon { font-size: 26px; }
.skin-name { font-size: 10px; font-weight: 700; line-height: 1.1; }
.skin-rar { font-size: 9px; font-weight: 800; text-transform: uppercase; }

/* ---------------------------- round-two features (#2 fusion, #9 city, shop) */
.fuse-line { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.fuse-info { font-size: 10.5px; font-weight: 800; color: #c8920f; }
.btn-fuse { background: linear-gradient(180deg, #ffd23a, #e0920a); color: #4a2a00; padding: 3px 10px; font-size: 11px; box-shadow: 0 2px 6px rgba(224,146,10,0.4); }
.btn-fuse:disabled { opacity: 0.4; }

#city-chip { position: absolute; top: 44px; right: 10px; padding: 5px 12px; font-size: 12px; font-weight: 800; color: var(--ink); pointer-events: none; }

.bar.gold > i { background: linear-gradient(90deg, #ffd23a, #ff9d2a); }

/* ==================================== juice & clarity pass (#2 #5 #7 #10) */

/* --- number grammar (#7): each currency has ONE color, everywhere --- */
#hud-rp { color: #0e8a72; }
#hud-tokens { color: #c8920f; }
#hud-pp { color: var(--purple); }

/* --- animated money HUD (#2) --- */
.tstat.main { transition: transform 0.15s, box-shadow 0.3s; }
.tstat.main.hud-gain {
  transform: scale(1.07);
  box-shadow: 0 0 16px rgba(45, 174, 95, 0.55);
  border-color: rgba(45, 174, 95, 0.7);
}
.tstat.main.hud-spend {
  transform: scale(0.96);
  box-shadow: 0 0 14px rgba(224, 85, 85, 0.5);
  border-color: rgba(224, 85, 85, 0.7);
}
.tstat.main.hud-spend b { color: var(--red); }

.fly-hud {
  position: fixed; z-index: 90; pointer-events: none;
  font-weight: 900; font-size: 15px;
  text-shadow: 0 1px 0 #fff, 0 0 8px rgba(255, 255, 255, 0.8);
  transform: translate(0, 0) scale(1); opacity: 1;
  transition: transform 0.72s cubic-bezier(0.4, 0, 0.7, 0.4), opacity 0.72s ease;
}

/* --- affordable = quiet tint (#7); hero = the ONLY pulse (#5) --- */
.card.affordable {
  background: rgba(255, 244, 224, 0.92);
  border-left: 3px solid rgba(255, 140, 26, 0.55);
  box-shadow: 0 2px 8px rgba(23, 60, 100, 0.08);
}
.card.affordable:hover { transform: translateY(-1px); }
.card.hero {
  border-color: rgba(255, 140, 26, 0.9);
  animation: heroPulse 1.5s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(255, 140, 26, 0.3); }
  50% { box-shadow: 0 0 24px rgba(255, 140, 26, 0.85); }
}

/* --- hero lives in another tab → pulsing dot on the tab button (#5) --- */
.tab { position: relative; }
.tab.alert::after {
  content: ''; position: absolute; top: 5px; right: 14%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); border: 2px solid #fff;
  animation: tabDot 1.4s ease-in-out infinite;
}
@keyframes tabDot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }

/* --- progressive tab reveal (#10) --- */
.tab.tab-new { animation: tabReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), tabNewGlow 1.2s ease-in-out 5; }
@keyframes tabReveal { from { transform: scale(0); opacity: 0; } }
@keyframes tabNewGlow {
  0%, 100% { background: rgba(255, 255, 255, 0.4); }
  50% { background: rgba(255, 190, 80, 0.65); }
}

/* ================================= launch round: tutorial / crew / mobile */

/* --- 3-beat coach chip (#4) --- */
#tutor-chip {
  position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; z-index: 7;
  padding: 10px 14px; font-size: 13.5px; font-weight: 800; color: var(--ink);
  border: 2px solid rgba(255, 140, 26, 0.75); max-width: min(420px, 88%);
  animation: tutorBob 2s ease-in-out infinite;
}
@keyframes tutorBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
#tutor-x {
  border: none; cursor: pointer; flex: none;
  background: rgba(0, 0, 0, 0.08); border-radius: 7px; width: 24px; height: 24px; font-size: 12px;
}

/* --- pilot crew (#6) --- */
.crew-slots { display: flex; gap: 8px; margin-bottom: 8px; }
.crew-slot {
  flex: 1; text-align: center; padding: 10px 4px; border-radius: 12px;
  font-size: 12px; font-weight: 800; color: var(--muted);
  background: rgba(255, 255, 255, 0.5); border: 2px dashed rgba(90, 118, 144, 0.4);
}
.crew-slot.filled {
  color: var(--ink); border-style: solid; border-color: rgba(24, 184, 154, 0.7);
  background: rgba(24, 184, 154, 0.12);
}
.pilot-trait { font-size: 8.5px; color: var(--muted); line-height: 1.15; margin-top: 1px; }

/* --- mobile-only touch pass (#2): everything below needs body.mobile --- */
#panel-handle { display: none; }
body.mobile #panel-handle {
  display: block; width: 100%; border: none; cursor: pointer;
  background: transparent; font-size: 16px; font-weight: 900; color: var(--muted);
  padding: 2px 0 0; line-height: 1;
}
body.mobile.panel-min #tab-content { display: none; }
body.mobile.panel-min #panel { height: auto; flex: none; }
body.mobile .btn-buy { min-width: 96px; min-height: 46px; }
body.mobile .btn { padding: 10px 14px; }
body.mobile .cam-btn { width: 48px; height: 48px; font-size: 20px; }
body.mobile .tab { padding: 10px 2px; }
body.mobile .disp-opts .btn { min-height: 52px; }
body.mobile .modal .btn-wide { min-height: 48px; }
body.mobile .btn-small { padding: 8px 14px; }

/* ===================================== launch hardening: boot / a11y / portrait */

/* --- boot screen (#3): static HTML, shown before any JS runs --- */
#boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #6db5e8 0%, #a8d4f0 45%, #d0e8f8 100%);
  transition: opacity 0.5s ease;
}
#boot.gone { opacity: 0; pointer-events: none; }
.boot-box { text-align: center; color: var(--ink); padding: 24px; }
.boot-logo { font-size: 64px; animation: bootHover 2s ease-in-out infinite; }
@keyframes bootHover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.boot-box h1 { font-size: 24px; margin: 8px 0 18px; }
.boot-bar { width: min(260px, 70vw); height: 8px; border-radius: 4px; background: rgba(255,255,255,0.5); overflow: hidden; margin: 0 auto; }
.boot-bar > i { display: block; height: 100%; width: 40%; border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--teal)); animation: bootSlide 1.3s ease-in-out infinite; }
@keyframes bootSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
.boot-tip { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.boot-err { margin: 12px 0; font-weight: 700; color: var(--red); }
.boot-box button { margin-top: 10px; padding: 10px 22px; border: none; border-radius: 10px; cursor: pointer;
  font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--blue), var(--blue-dark)); }

/* --- zen ride-along bar --- */
#zen-bar {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 30px;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
#zen-bar button {
  border: none; cursor: pointer; border-radius: 50%;
  width: 42px; height: 42px; font-size: 18px; font-weight: 800;
  background: rgba(255, 255, 255, 0.75); color: var(--ink);
}
#zen-bar button:hover { background: #fff; transform: scale(1.06); }
#zen-name { min-width: 150px; text-align: center; font-weight: 800; font-size: 13px; color: var(--ink); }
body.zen #zen-bar { display: flex; }
#zen-bar { display: none; }

/* --- accessibility: honour reduced motion (#10) --- */
body.reduced-motion * {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.05s !important;
}
body.reduced-motion #click-hint,
body.reduced-motion .boot-logo,
body.reduced-motion #tutor-chip { animation: none !important; }

/* --- colourblind-safe affordability: shape, not just colour (#10) --- */
.card.affordable .card-name::before {
  content: '▸ '; color: var(--orange); font-weight: 900;
}
.card.hero .card-name::before { content: '★ '; }

/* --- "why can't I buy this?" line: never leave a player guessing --- */
.lock-why {
  font-size: 10.5px; font-weight: 700; line-height: 1.25;
  color: #a05a2a; margin-top: 2px;
}
.card.affordable .lock-why { color: var(--muted); }

/* --- the next drone to unlock: the list's pull target --- */
.drone-card.next-goal {
  border: 2px dashed rgba(47, 143, 224, 0.75);
  background: rgba(47, 143, 224, 0.08);
}
.drone-card.next-goal .drone-thumb { filter: grayscale(0.85) brightness(0.75); }
.drone-card.next-goal .bar > i { background: linear-gradient(90deg, var(--blue), var(--purple)); }

/* --- contracts (#9) --- */
#contract-chip {
  position: absolute; right: 12px; bottom: 14px; z-index: 6;
  padding: 7px 14px; font-size: 12px; font-weight: 800; color: var(--ink);
  white-space: nowrap; pointer-events: none;
  border: 2px solid rgba(24, 184, 154, 0.6);
}
#contract-chip.urgent {
  border-color: rgba(224, 85, 85, 0.85); color: var(--red);
  animation: contractUrgent 0.9s ease-in-out infinite;
}
@keyframes contractUrgent { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.contract-card.active { border-color: rgba(24, 184, 154, 0.75); background: rgba(24, 184, 154, 0.1); }
.contract-card.active .bar > i { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.contract-card.urgent { border-color: rgba(224, 85, 85, 0.8); background: rgba(224, 85, 85, 0.09); }

/* --- tutorial pointing at the tab that holds the next action --- */
.tab.tutor-point {
  background: rgba(255, 190, 80, 0.55) !important;
  animation: tutorPoint 1s ease-in-out infinite;
}
@keyframes tutorPoint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* --- mobile PORTRAIT layout (#9) --- */
@media (max-width: 900px) and (orientation: portrait) {
  /* world fills the screen; the panel becomes a snapping bottom sheet */
  #middle { flex-direction: column; }
  #world-wrap { flex: 1 1 auto; min-height: 42vh; }
  #panel {
    position: fixed; left: 0; right: 0; bottom: 0; width: 100%;
    height: 52vh; max-height: 70vh; z-index: 30;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: transform 0.28s cubic-bezier(0.25, 0.9, 0.4, 1);
  }
  /* collapsed: only the handle + tab strip peek above the bottom edge */
  body.panel-min #panel { transform: translateY(calc(52vh - 92px)); }
  body.panel-min #tab-content { display: none; }
  #panel-handle { height: 26px; font-size: 18px; }
  /* HUD condenses so the city keeps the spotlight */
  #topbar { padding: 5px 8px; gap: 6px; }
  .top-stats { gap: 6px; }
  .tstat { padding: 2px 7px; }
  .tstat-icon { font-size: 15px; }
  #cam-ui { bottom: auto; top: 76px; right: 8px; }
  #next-unlock { bottom: auto; top: 130px; left: 8px; max-width: 60vw; }
  #tutor-chip { bottom: auto; top: 190px; }
  #dispatch-card { bottom: auto; top: 40%; }
}

/* painted town renderer: one fixed, hand-composed angle — no rotate buttons */
body.town-renderer #cam-rotl, body.town-renderer #cam-rotr { display: none; }

/* ================================= launch round 2: portals (CrazyGames & co) */

/* --- one top stack: combo, event, boost, VIP story and notifications never overlap --- */
#top-stack {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 9;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: min(560px, calc(100% - 330px)); pointer-events: none;
}
#top-stack > * { position: static !important; transform: none !important; max-width: 100%; }
#top-stack #event-banner, #top-stack #boost-banner { animation: stackIn 0.3s ease; padding: 5px 14px; font-size: 13px; }
#top-stack #vip-banner { white-space: normal; text-align: center; font-size: 12.5px; padding: 6px 14px; line-height: 1.25; }
#top-stack #combo-badge.pop { animation: stackPop 0.2s ease; }
@keyframes stackIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes stackPop { 0% { scale: 1.2; } 100% { scale: 1; } }

/* --- notifications: small, fast, at most two, inside the city view (never over the panel) --- */
#notifs { position: static; display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; }
.notif {
  display: flex; align-items: center; gap: 7px; pointer-events: auto; cursor: pointer;
  padding: 5px 12px; font-size: 12px; font-weight: 700; line-height: 1.25;
  max-width: 100%; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s;
  background: rgba(255, 255, 255, 0.82);
}
.notif.show { opacity: 1; transform: translateY(0); }
.notif.bump { animation: notifBump 0.25s ease; }
@keyframes notifBump { 50% { scale: 1.05; } }
.notif .n-icon { font-size: 15px; }
.notif .n-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* --- reward road button --- */
#btn-road { position: relative; display: inline-flex; align-items: center; gap: 4px; }
#btn-road.glow { animation: roadGlow 1.2s ease-in-out infinite; }
@keyframes roadGlow { 50% { box-shadow: 0 0 18px rgba(24, 184, 154, 0.9); } }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-style: normal;
  font-weight: 900; line-height: 18px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* --- season chip & the next-town goal on the region chip --- */
#season-chip {
  position: absolute; top: 44px; left: 10px; z-index: 6; cursor: pointer;
  padding: 5px 12px; font-size: 12.5px; font-weight: 900; color: #a0480a;
  border: 2px solid rgba(255, 140, 26, 0.7); background: rgba(255, 240, 220, 0.85);
  animation: seasonPulse 2.4s ease-in-out infinite;
}
@keyframes seasonPulse { 50% { box-shadow: 0 0 16px rgba(255, 140, 26, 0.65); } }
#region-chip.clickable { pointer-events: auto; cursor: pointer; }
#region-chip .goal-line { font-size: 10.5px; font-weight: 800; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
#region-chip .gbar { display: inline-block; width: 54px; height: 5px; border-radius: 3px; background: rgba(47, 143, 224, 0.2); overflow: hidden; }
#region-chip .gbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--teal)); }
#city-chip { top: 62px; }

/* --- tutorial hand --- */
#tutor-hand {
  position: fixed; z-index: 80; pointer-events: none; font-size: 34px; line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
  transition: left 0.35s ease, top 0.35s ease;
  animation: handTap 0.9s ease-in-out infinite;
}
#tutor-hand.point { animation: handPoint 0.9s ease-in-out infinite; }
@keyframes handTap { 0%, 100% { transform: translate(0, 6px) scale(1); } 45% { transform: translate(0, 0) scale(0.86); } }
@keyframes handPoint { 0%, 100% { transform: translate(0, 10px); } 50% { transform: translate(0, 0); } }
body.reduced-motion #tutor-hand { animation: none; }

/* --- coins flying into the money counter --- */
.fly-coin {
  position: fixed; z-index: 90; pointer-events: none; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6b8 0 18%, #ffd23a 40%, #d89a0c 100%); box-shadow: 0 0 0 1.5px #a8710e, 0 2px 6px rgba(160, 100, 0, 0.45);
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.3, 1), opacity 0.7s ease-in;
}

/* --- rewarded offers --- */
.ad-row { display: flex; gap: 8px; margin-bottom: 8px; }
.ad-row .btn { flex: 1; justify-content: center; }

/* --- collection album: rarity frames, mystery slots, sets --- */
.col-cell { position: relative; border: 2px solid var(--rar, rgba(255,255,255,0.6)); box-shadow: 0 0 10px color-mix(in srgb, var(--rar, #fff) 35%, transparent); }
.col-cell .col-mystery { display: none; }
.col-cell.locked .col-mystery {
  display: flex; position: absolute; inset: 6px 6px auto 6px; height: 56px; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; color: var(--rar, #9fb4c7); opacity: 0.75;
}
.col-cell.locked .drone-thumb { visibility: hidden; }
.set-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.set-chip {
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 10px;
  border: 2px solid var(--rar); background: rgba(255, 255, 255, 0.6); color: var(--ink);
}
.set-chip.done { background: color-mix(in srgb, var(--rar) 22%, white); }

/* --- reward road modal --- */
.modal-road { width: min(760px, 96vw); }
.road-head { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 8px 0; }
.road-head .bar { flex: 1; height: 9px; }
.road-track { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 12px; scroll-behavior: smooth; }
.road-cell {
  flex: none; width: 92px; padding: 8px 6px; border-radius: 12px; text-align: center;
  background: rgba(255, 255, 255, 0.55); border: 2px solid rgba(90, 118, 144, 0.25); opacity: 0.7;
}
.road-cell.big { border-color: rgba(255, 176, 32, 0.7); }
.road-cell.ready { opacity: 1; border-color: var(--teal); background: rgba(24, 184, 154, 0.16); animation: roadGlow 1.2s ease-in-out infinite; }
.road-cell.current { opacity: 1; border-style: dashed; border-color: var(--blue); }
.road-cell.done { opacity: 0.55; }
.rc-n { font-size: 10px; font-weight: 900; color: var(--muted); }
.rc-i { font-size: 26px; margin: 2px 0; }
.rc-l { font-size: 10.5px; font-weight: 700; line-height: 1.2; }
.season-goal.done { opacity: 0.6; }

/* --- mobile: the stack sits under the corner chips, chips stay compact --- */
@media (max-width: 900px) {
  #top-stack { top: 44px; width: calc(100% - 20px); }
  .road-lbl { display: none; }
}
@media (max-width: 900px) and (orientation: portrait) {
  #top-stack { top: 72px; width: calc(100% - 76px); }
  #next-unlock { top: auto; bottom: calc(52vh + 6px); left: 8px; max-width: 58vw; padding: 5px 9px; }
  body.panel-min #next-unlock { bottom: 100px; }
  #season-chip { bottom: auto; top: 44px; left: 8px; font-size: 11.5px; }
  #city-chip { display: none; }
  #region-chip .goal-line { font-size: 9.5px; }
}
html, body { overscroll-behavior: none; }

body.tutoring #click-hint { display: none; }

/* --- phone portrait, round 2: the city keeps the spotlight --- */
@media (max-width: 900px) and (orientation: portrait) {
  #env-chip, #city-chip { display: none !important; }
  #region-chip { top: 8px; right: 8px; max-width: 62vw; padding: 4px 9px; font-size: 11px; }
  #season-chip { top: 8px; left: 8px; padding: 4px 9px; font-size: 11px; }
  #top-stack { top: 52px; left: 8px; right: 62px; width: auto; transform: none; align-items: flex-start; }
  #top-stack #vip-banner, #top-stack #event-banner, #top-stack #boost-banner { font-size: 11px; padding: 4px 10px; }
  .notif { font-size: 11px; padding: 4px 10px; }
  .notif .n-text { -webkit-line-clamp: 1; }
  #cam-ui { top: 52px; gap: 5px; }
  body.mobile #cam-ui .cam-btn { width: 40px; height: 40px; font-size: 17px; }
  #cam-follow, #cam-zen { display: none; }
  #tutor-chip { top: auto; bottom: calc(52vh + 8px); left: 8px; right: 56px; transform: none; max-width: none; font-size: 12px; padding: 7px 10px; animation: none; }
  body.panel-min #tutor-chip { bottom: 100px; }
  body.tutoring #next-unlock { display: none; }
  #next-unlock .nu-mid { min-width: 110px; }
}
body.zen #season-chip, body.zen #tutor-hand { display: none !important; }

/* --- shop: drone skins --- */
.shop-skins .shop-skin { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.skin-swatch { display: flex; gap: 3px; margin-bottom: 2px; }
.skin-swatch i { display: block; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(20, 30, 50, 0.25); }
.shop-skin .skin-act { margin-top: 4px; min-width: 76px; font-size: 11px; padding: 4px 8px; }
.skin-cell.shop-skin.locked { opacity: 1; filter: none; }
.skin-cell.shop-skin.locked > * { filter: none; opacity: 1; }

/* ---- round 4: progressive HUD, goal list, calendar, advanced settings ---- */
.gated { display: none !important; }
#next-unlock { flex-direction: column; align-items: stretch; gap: 5px; pointer-events: auto; }
.nu-row { display: flex; align-items: center; gap: 8px; }
.nu-row .nu-icon { font-size: 16px; width: 20px; text-align: center; }
.nu-row.claim { cursor: pointer; border-radius: 8px; background: rgba(255, 190, 40, 0.22); animation: nuGlow 1.2s ease-in-out infinite alternate; }
.nu-row.claim .nu-pct { color: #c26a00; font-size: 11px; }
@keyframes nuGlow { from { box-shadow: 0 0 0 rgba(255, 170, 0, 0); } to { box-shadow: 0 0 10px rgba(255, 170, 0, 0.75); } }
.streak-dot { flex-direction: column; width: 34px; height: 40px; gap: 1px; }
.streak-dot small { font-size: 9px; font-weight: 800; line-height: 1; opacity: 0.85; }
.streak-next { margin-top: 4px; }
details.adv { margin-top: 8px; }
details.adv > summary { cursor: pointer; font-size: 12px; font-weight: 800; color: var(--muted); }
@media (orientation: portrait) and (max-width: 700px) {
  #next-unlock .nu-row:nth-child(n+3) { display: none; }
}
