:root {
  --bg-deep: #150d2a;
  --bg-panel: #251849;
  --bg-card: #32215f;
  --border-glow: #6d52c9;
  --accent-gold: #ffd426;
  --accent-orange: #ff7b00;
  --accent-cyan: #00f2fe;
  --accent-pink: #ff2a85;
  --accent-green: #2af598;
  --text-main: #ffffff;
  --text-muted: #d0c4f7;
  --fire-color: #ff5521;
  --ice-color: #1cd8ff;
  --volt-color: #ffdf22;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #38236e 0%, #170d33 70%, #0d071f 100%);
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
}

#app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

/* Top HUD - Chunky Poki/CrazyGames Toy-box Bar */
#hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: linear-gradient(180deg, #352469 0%, #221647 100%);
  border-bottom: 4px solid #120929;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), 0 6px 20px rgba(0, 0, 0, 0.55);
  z-index: 10;
  gap: 12px;
  height: 68px;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, #ffe033 0%, #ff8800 55%, #e64800 100%);
  border-radius: 15px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 0 #802200, 0 6px 14px rgba(255, 136, 0, 0.5), inset 0 2px 2px #ffffff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.level-badge.pulse {
  transform: scale(1.3) rotate(-6deg);
}

.badge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #fff9db;
  line-height: 1;
  text-shadow: 0 1.5px 0 #8a2be2, 0 1.5px 0 #702200;
}

.badge-value {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 2.5px 0 #7a2100;
}

.xp-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 170px;
  max-width: 245px;
  flex: 1;
}

.xp-header {
  display: flex;
  justify-content: space-between;
  gap: 8px; /* a long rank title ran into the XP count */
  align-items: baseline;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 2px 0 #120929;
}

#rank-title {
  color: var(--accent-gold);
  letter-spacing: 0.3px;
}

#xp-text {
  color: #e2d9ff;
  font-size: 12px;
}

.xp-bar-bg {
  width: 100%;
  height: 16px;
  background: #140b29;
  border-radius: 99px;
  border: 2.5px solid #553da3;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.xp-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00d2ff 0%, #2af598 50%, #a8ff3e 100%);
  border-radius: 99px;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), 0 0 10px rgba(42, 245, 152, 0.65);
}

.hud-center {
  display: flex;
  justify-content: center;
  flex: 1.1;
}

.wave-badge {
  background: linear-gradient(180deg, #432d85 0%, #281954 100%);
  border: 2.5px solid #8a6df2;
  border-radius: 16px;
  padding: 5px 20px;
  text-align: center;
  box-shadow: 0 4px 0 #130b2b, inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.wave-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 0 #150b30;
}

.wave-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #5ef2ff;
  text-shadow: 0 1.5px 0 #150b30;
}

.hud-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 1;
}

.goo-widget {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, #1f1442, #140c2e);
  border: 2.5px solid #5d45ad;
  padding: 6px 11px;
  border-radius: 14px;
  box-shadow: 0 4px 0 #0f0824, inset 0 1.5px 0 rgba(255, 255, 255, 0.15);
}

.goo-label {
  font-size: 12px;
  font-weight: 700;
  color: #46ff9b;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 #0a2918;
}

.goo-pips {
  display: flex;
  gap: 5px;
}

.goo-pip {
  width: 15px;
  height: 18px;
  background: #120a26;
  border: 2px solid #4e3b8c;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.65);
}

.goo-pip-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #9eff40 0%, #1ee876 55%, #0aa34f 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 0 8px #2af598;
  transition: height 0.08s linear;
}

.goo-pip.full {
  border-color: #ffffff;
  transform: scale(1.05);
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #271a52, #180f36);
  border: 2.5px solid #6b52bf;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 0 #100826, inset 0 1.5px 0 rgba(255, 255, 255, 0.2);
}

.gold-pill {
  color: var(--accent-gold);
  text-shadow: 0 2px 0 #381d00;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 2.5px solid #7d63d9;
  background: linear-gradient(180deg, #47338f 0%, #2b1d5c 100%);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #160d33, inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s;
}

.icon-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px) scale(1.04);
}

.icon-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #160d33;
}

/* Main Stage */
#game-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

/* Bottom Action Bar - Compact Docking so Pit Bottom is 100% Clear & Visible */
#action-bar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  background: linear-gradient(180deg, rgba(38, 24, 76, 0.94) 0%, rgba(18, 11, 40, 0.96) 100%);
  border: 2px solid #6c50ce;
  border-radius: 18px;
  box-shadow: 0 4px 0 #0d0720, 0 8px 24px rgba(0, 0, 0, 0.75), inset 0 1.5px 0 rgba(255, 255, 255, 0.22);
  z-index: 8;
  max-width: 96vw;
  height: 60px;
}

.queue-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  background: radial-gradient(circle at 50% 45%, #2e1c5c, #160d33);
  border: 2px solid #553da3;
  border-radius: 13px;
  padding: 3px 8px;
  min-width: 100px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
}

.queue-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-label {
  font-size: 9px;
  font-weight: 700;
  color: #ffd426;
  letter-spacing: 0.6px;
  line-height: 1;
}

.card-sub {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.tactical-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 14px;
  border: 2px solid #72efff;
  background: linear-gradient(180deg, #1dcdfe 0%, #0984e3 60%, #0652ad 100%);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  min-width: 130px;
  height: 48px;
  box-shadow: 0 3px 0 #042e69, inset 0 2px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s;
  overflow: hidden;
}

.tactical-btn:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.tactical-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #042e69;
}

.btn-key {
  font-size: 8px;
  font-weight: 700;
  color: #e3f9ff;
  background: rgba(0, 0, 0, 0.28);
  padding: 1px 6px;
  border-radius: 99px;
  letter-spacing: 0.4px;
  z-index: 2;
  line-height: 1;
}

.btn-main {
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  margin: 1px 0;
  text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.45);
  line-height: 1.1;
}

.btn-sub {
  font-size: 10px;
  color: #fff7b8;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.overcharge-btn {
  border-color: #9e78db;
  background: linear-gradient(180deg, #3c2973 0%, #24174a 100%);
  box-shadow: 0 3px 0 #110929, inset 0 1.5px 0 rgba(255, 255, 255, 0.22);
}

.overcharge-btn:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.overcharge-btn.ready {
  border-color: #ffffff;
  background: linear-gradient(180deg, #ffe033 0%, #ff7b00 60%, #d93800 100%);
  box-shadow: 0 3px 0 #751c00, 0 0 18px #ffae00, inset 0 2px 0 #ffffff;
  animation: pulseGlow 0.85s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.04) translateY(-1px); filter: brightness(1.15); }
}

.overcharge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 115, 0, 0.65), rgba(255, 225, 0, 0.85));
  transition: width 0.2s ease-out;
  z-index: 1;
}

.synergy-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  background: linear-gradient(180deg, #211645, #150d30);
  border: 2px solid #4f3a94;
  border-radius: 13px;
  padding: 4px 10px;
  font-size: 10px;
  color: #f0ebff;
  box-shadow: inset 0 1.5px 4px rgba(0, 0, 0, 0.5);
  height: 48px;
}

.synergy-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 #120829;
}

.synergy-row {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 9.5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid #ffffff;
}
.dot.fire { background: var(--fire-color); box-shadow: 0 0 6px var(--fire-color); }
.dot.ice { background: var(--ice-color); box-shadow: 0 0 6px var(--ice-color); }
.dot.volt { background: var(--volt-color); box-shadow: 0 0 6px var(--volt-color); }

/* Modals - Arcade Reward Chest Style */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 7, 28, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: linear-gradient(180deg, #412b82 0%, #24164f 100%);
  border: 4px solid #a388ff;
  border-radius: 28px;
  padding: 26px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 0 #130a2e, 0 22px 55px rgba(0, 0, 0, 0.85), inset 0 3px 0 rgba(255, 255, 255, 0.35);
  animation: popIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.75) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-banner {
  display: inline-block;
  background: linear-gradient(180deg, #ffe033 0%, #ff7b00 55%, #ff2a85 100%);
  border: 2.5px solid #ffffff;
  padding: 7px 24px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 0 #6e103b, 0 6px 18px rgba(255, 42, 133, 0.5);
}

.victory-banner {
  background: linear-gradient(180deg, #7affaf 0%, #00d2ff 100%);
  color: #072921;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 0 #065246;
}

.modal-card h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2.5px 0 #140a30;
}

.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.perk-option {
  background: linear-gradient(180deg, #5238a6 0%, #301f69 100%);
  border: 3px solid #8a6df2;
  border-radius: 20px;
  padding: 18px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 0 #180e38, inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.perk-option:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #ffe033;
  background: linear-gradient(180deg, #6244c4 0%, #3b2680 100%);
  box-shadow: 0 11px 0 #180e38, 0 0 24px rgba(255, 212, 38, 0.55), inset 0 2px 0 #ffffff;
}

.perk-icon {
  font-size: 42px;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
}

.perk-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 2px 0 #160c33;
}

.perk-desc {
  font-size: 13px;
  color: #efeaff;
  line-height: 1.38;
}

.perk-level-tag {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: #0b2922;
  background: linear-gradient(90deg, #2af598, #00f2fe);
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 2px 0 #075946;
}

/* Guide Modal */
.guide-intro {
  font-size: 14px;
  color: #e6dfff;
  line-height: 1.48;
  margin-bottom: 16px;
}

.evo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.evo-item {
  background: linear-gradient(180deg, #291b54, #1a1038);
  border: 2px solid #5f47b3;
  border-radius: 13px;
  padding: 9px 6px;
  font-size: 12px;
  box-shadow: 0 3px 0 #100926;
}

.evo-tier {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 11px;
}

.evo-name {
  font-weight: 700;
  color: #fff;
  margin: 3px 0;
}

.evo-weapon {
  font-size: 11px;
  color: #63f5ff;
}

.synergy-guide-box {
  background: rgba(20, 12, 44, 0.85);
  border: 2.5px solid #674ec2;
  border-radius: 16px;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.primary-btn, .secondary-btn {
  padding: 12px 28px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: 3px solid #fff;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.primary-btn {
  background: linear-gradient(180deg, #5effae 0%, #10c469 100%);
  color: #062b16;
  border-color: #d6ffea;
  box-shadow: 0 5px 0 #07592e, inset 0 2px 0 #ffffff;
}

.secondary-btn {
  background: linear-gradient(180deg, #523b9c 0%, #34236b 100%);
  color: #fff;
  border-color: #9b82f3;
  box-shadow: 0 5px 0 #191038, inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.primary-btn:hover, .secondary-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 720px) {
  .synergy-card {
    display: none;
  }
  .perk-grid {
    grid-template-columns: 1fr;
  }
  .evo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #hud {
    padding: 6px 10px;
  }
  .xp-container {
    min-width: 110px;
  }
}

/* ===== Harakoo pass 1 (2026-10-24) ===== */
.perk-option.counter{border-color:#ff6b8a !important;box-shadow:0 0 0 3px rgba(255,107,138,.35),0 8px 0 rgba(0,0,0,.35)}
.perk-counter-tag{margin-top:8px;padding:5px 8px;border-radius:8px;background:#ff6b8a;color:#1b0d2e;font:700 13px Fredoka,sans-serif;letter-spacing:.3px}
.wave-subtitle,.card-sub,.btn-sub,.btn-key,.card-label,.badge-label,.goo-label,#xp-text,.synergy-row,.perk-desc,.perk-level-tag{font-size:max(12px,1em)}
@media (max-height:600px){.synergy-card{display:none}#action-bar{padding:4px 10px;gap:8px;bottom:4px}.tactical-btn{padding-top:4px;padding-bottom:4px}.btn-key{display:none}.wave-subtitle{font-size:12px;line-height:1.2}}

/* guided first waves */
.guide-banner{position:absolute;left:50%;top:8px;transform:translateX(-50%);z-index:20;display:flex;gap:10px;align-items:center;max-width:min(560px,92%);padding:8px 14px;background:#fff7c2;color:#2a1650;border:3px solid #1b0d2e;border-radius:14px;box-shadow:0 5px 0 #1b0d2e;font:600 16px/1.3 Fredoka,sans-serif;pointer-events:none}
.guide-banner b{flex:none;background:#2a1650;color:#fff7c2;border-radius:8px;padding:2px 8px;font-size:14px}
.guide-banner.hidden{display:none}

/* the wave card stays one line: wrapped, it hung over the bridge and hid the boss's crown (2026-10-25) */
.wave-badge{max-width:min(340px,44vw)}
.wave-subtitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* playtest: panels must fit any screen and scroll inside themselves */
.modal-overlay{overflow-y:auto;align-items:flex-start}
.modal-card{max-height:calc(100dvh - 32px);overflow-y:auto;margin:auto;padding:18px}
.guide-card #close-guide-btn{margin:0 0 12px}
@media (max-height:620px){
  .modal-banner{font-size:15px;padding:5px 16px;margin-bottom:8px}
  .modal-card h2{font-size:17px;margin-bottom:10px}
  .perk-option{padding:10px 10px;gap:5px}
  .perk-grid{gap:10px}
}
@media (max-width:720px){ .perk-grid{grid-template-columns:repeat(3,1fr);gap:8px} .perk-option{padding:8px 6px} .perk-desc{font-size:12px} }

/* level-ups wait for a tap */
.levelup-btn{font:700 15px Fredoka,sans-serif;color:#2a1650;background:linear-gradient(180deg,#fff27a,#ffb300);border:3px solid #1b0d2e;border-radius:14px;padding:8px 12px;box-shadow:0 4px 0 #1b0d2e;cursor:pointer;animation:pulseGlow .85s infinite alternate;white-space:nowrap}
.levelup-btn.hidden{display:none}
.levelup-btn span:empty{display:none}
.levelup-btn span{margin-left:4px;background:#2a1650;color:#fff27a;border-radius:8px;padding:0 6px;font-size:13px}

/* best score under the score: the target to beat */
.best-display{font-size:11px;color:#c8b8ff;margin-left:4px;white-space:nowrap}

/* more goo pips: make them narrower instead of pushing the wave number off */
.goo-pips.many{gap:3px}
.goo-pips.many .goo-pip{width:10px}

/* level-up cards ignore input for a beat after opening (playtest) */
#levelup-modal.arming .perk-option{pointer-events:none;opacity:.75}

/* narrow screens: the right side of the HUD was cut off (playtest), hiding score and the 📖 pause */
#hud .hud-center{flex:1 1 0;min-width:0;display:flex;justify-content:center}
#hud .hud-left,#hud .hud-right{flex:none}
.wave-badge{min-width:0}
@media (max-width:860px){
  .xp-container{display:none}
  .goo-label{display:none}
  .wave-badge{padding:4px 10px}
  .hud-right{gap:6px}
}
@media (max-width:620px){
  .wave-subtitle{display:none}
  .wave-title{font-size:14px;white-space:nowrap}
  .icon-btn{width:34px;height:34px}
}
@media (max-width:440px){ #hud .hud-center{visibility:hidden} } /* a squeezed card showed only "W"; the pit banner names each wave */

/* tap NEXT to swap (2026-10-24): the card is the button */
.queue-card{position:relative;cursor:pointer;font:inherit;color:inherit;transition:transform .08s}
.queue-card:active{transform:translateY(2px) scale(.97)}
.queue-card:hover{filter:brightness(1.12)}
.swap-badge{position:absolute;top:-8px;right:-8px;width:22px;height:22px;display:grid;place-items:center;font-size:12px;background:#2de2e6;border:2px solid #1b0d2e;border-radius:50%;box-shadow:0 2px 0 #1b0d2e}
/* overcharge: a dim meter until full, then the only glowing thing on the bar */
.overcharge-btn:disabled{opacity:.55;filter:saturate(.5);cursor:default;min-width:64px}
.overcharge-btn:disabled .btn-main{opacity:.6}
.overcharge-btn.ready{min-width:96px}
.overcharge-btn.ready .btn-main{font-size:20px}
.overcharge-btn.ready .btn-sub{font-size:13px;color:#fff}

/* phones: 100vh is taller than the screen when the browser's toolbar shows, which pushed the bar and TAP! out of sight */
#app{height:100dvh}
#action-bar{margin-bottom:env(safe-area-inset-bottom,0px)}
.card-sub{white-space:nowrap}


/* a way back to the site from every panel */
.home-btn{display:inline-block;text-decoration:none;text-align:center;font-weight:700}
.guide-card .home-btn{margin:0 0 12px 8px}
