/* css/game.css — Arrow Bloom v1.0.2.0 (Bright Play Store Glossy Casual Botanical Style) */
:root {
  --bg-sky: #4CB8FF;
  --bg-meadow: #D9F7EA;
  --surface-cream: #FFF8EA;
  --surface-card: #FFFFFF;
  --ink-cocoa: #3D2114;
  --ink-muted: #7C5A43;
  --gold-bright: #FFB800;
  --gold-border: #D99326;
  --emerald-bright: #32D74B;
  --emerald-deep: #1E8A36;
  --sky-accent: #26B6FF;
  --berry-accent: #FF4F9A;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #62C9FF 0%, #B8EEFF 52%, #DCF8DF 100%);
  color: var(--ink-cocoa);
  font-family: "Nunito", "Fredoka", "Segoe UI", "Microsoft YaHei", "Meiryo", "Malgun Gothic", sans-serif;
}

/* Custom warm honey scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #E0A84B #FFF1D6;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #FFF1D6; border-radius: 6px; }
::-webkit-scrollbar-thumb { background: #E0A84B; border-radius: 6px; border: 1px solid #FFF8EA; }

#app-root {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35), rgba(76, 184, 255, 0.14));
}

/* Single-Row Sunlit Top HUD Bar (guaranteed <= 54px at 1280x720 & 1920x1080) */
#hud-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 52px;
  min-height: 52px;
  max-height: 54px;
  padding: 4px 12px;
  background: linear-gradient(180deg, rgba(255, 250, 236, 0.96) 0%, rgba(255, 236, 194, 0.94) 100%);
  border-bottom: 3px solid var(--gold-border);
  box-shadow: 0 4px 14px rgba(61, 33, 20, 0.18);
  z-index: 20;
  overflow: hidden;
}

.hud-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  min-height: 36px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 2px solid #E5A033;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-cocoa);
  box-shadow: 0 2px 0 rgba(184, 116, 0, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

#hud-stage-pill {
  flex-shrink: 1;
  min-width: 0;
  max-width: 245px;
  overflow: hidden;
  background: #E8F8FF;
  border-color: #3BA7FF;
  color: #154670;
}

#hud-stage-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-pill.rose-pill {
  background: #FFF0F5;
  border-color: #FF4F9A;
  color: #9D174D;
}

.hud-pill.moves-pill {
  background: #ECFDF5;
  border-color: #22C55E;
  color: #14532D;
}

.hud-pill.moves-pill.low-moves {
  background: #FFE4E6;
  border-color: #F43F5E;
  color: #9F1239;
  animation: pulse-warn 0.85s infinite ease-in-out;
}

.hud-pill.timer-pill {
  background: #F5F3FF;
  border-color: #A855F7;
  color: #581C87;
  min-width: 78px;
  justify-content: center;
}

.hud-pill.timer-pill.low-time {
  background: #FFE4E6;
  border-color: #E11D48;
  color: #9F1239;
  animation: pulse-warn 0.65s infinite ease-in-out;
}

.hud-pill.coins-pill {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #78350F;
  cursor: pointer;
}

.hud-pill.dew-pill {
  background: #E0F7FF;
  border-color: #38BDF8;
  color: #0C4A6E;
  cursor: pointer;
}

.hud-pill.ticket-pill {
  background: #FEF3C7;
  border-color: #D97706;
  color: #78350F;
  cursor: pointer;
}

@keyframes pulse-warn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.ui-icon { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.ui-icon-sm { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.ui-icon-lg { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }

/* Glossy Play Store Casual Jelly Buttons */
.hud-btn, .tab-btn {
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  padding: 5px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFEFC2 100%);
  border: 2px solid #C88322;
  color: var(--ink-cocoa);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 3px 0 #C88322;
  transition: transform 0.1s ease, filter 0.1s ease;
  flex-shrink: 0;
}

.hud-btn:hover:not(:disabled), .tab-btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.hud-btn:active:not(:disabled), .tab-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C88322;
}

.hud-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hud-btn.accent {
  background: linear-gradient(180deg, #52F270 0%, #22C55E 65%, #16A34A 100%);
  border-color: #14532D;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #14532D;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 3px 0 #14532D;
}

.hud-btn.gold-btn {
  background: linear-gradient(180deg, #FFE14D 0%, #FFB800 65%, #E08900 100%);
  border-color: #78350F;
  color: #3D2114;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 3px 0 #78350F;
}

.hud-btn.danger {
  background: linear-gradient(180deg, #FF6B8B 0%, #F43F5E 65%, #E11D48 100%);
  border-color: #881337;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #881337;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #881337;
}

.tab-btn.active {
  background: linear-gradient(180deg, #52C8FF 0%, #2599E8 100%);
  border-color: #0C4A6E;
  color: #FFFFFF;
  text-shadow: 0 1.5px 0 #0C4A6E;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 3px 0 #0C4A6E;
}

/* Main 16:9 Stage & Playfield */
#stage-area {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 10px 6px;
}

#canvas-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-canvas {
  width: min(100%, calc((100vh - 134px) * 1376 / 768));
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1376 / 768;
  border-radius: 18px;
  border: 3px solid #E5A033;
  box-shadow: 0 12px 32px rgba(61, 33, 20, 0.25);
  cursor: pointer;
  touch-action: none;
}

/* Interactive Non-blocking FTUE Guide Pill */
#ftue-guide-pill {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FDE68A 100%);
  border: 2.5px solid #D97706;
  color: #3D2114;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(61, 33, 20, 0.28);
  z-index: 16;
  pointer-events: none;
}
#ftue-guide-pill.hidden { display: none !important; }

/* Sunlit Bottom Action Deck */
#action-deck {
  width: 100%;
  max-width: 900px;
  height: 60px;
  min-height: 60px;
  margin-top: 5px;
  padding: 6px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF5 0%, #FFEFC7 100%);
  border: 2.5px solid #E0A84B;
  box-shadow: 0 5px 0 rgba(184, 116, 0, 0.35), 0 8px 20px rgba(61, 33, 20, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 15;
}

.hero-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.hero-portrait-frame {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #3D2114;
  background: #D9F7EA;
  object-fit: cover;
  flex-shrink: 0;
}

#deck-hero-name {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-cocoa);
  white-space: nowrap;
  margin-bottom: 3px;
}

.energy-track {
  width: 145px;
  height: 10px;
  background: #FDE8C8;
  border: 1.5px solid #B87400;
  border-radius: 99px;
  overflow: hidden;
}

.energy-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #26B6FF, #32D74B, #FFB800);
  transition: width 0.25s ease;
}

.btn-skill-ready {
  animation: pulse-warn 1.1s infinite ease-in-out;
  box-shadow: 0 0 14px rgba(50, 215, 75, 0.65), 0 3px 0 #14532D !important;
}

.booster-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFF6DD;
  border: 2px solid #E5A033;
  border-radius: 999px;
  padding: 4px 10px;
}

.booster-slot-btn {
  position: relative;
  overflow: visible;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #B87400;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE4A3 100%);
  box-shadow: 0 2px 0 #B87400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.booster-slot-btn:hover { transform: translateY(-2px) scale(1.04); }
.booster-slot-btn img { width: 32px; height: 32px; object-fit: contain; }

.booster-count-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 20px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: #22C55E;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booster-count-badge.empty { background: #F43F5E; }

/* True 9-Slice Play Store Casual Modal Card (panel_casual_frame.png = 720x416) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 58, 86, 0.42);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 40;
}

.modal-backdrop.hidden { display: none !important; }

.modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  border-style: solid;
  border-width: 22px 24px;
  border-image-source: url("../assets/ui/panel_casual_frame.png");
  border-image-slice: 73 70 73 69 fill;
  border-image-width: 22px 22px;
  border-image-repeat: stretch;
  background-color: #FFF8EA;
  border-radius: 26px;
  padding: 10px 14px 12px;
  box-shadow: 0 22px 48px rgba(42, 24, 12, 0.36);
  text-align: center;
  color: var(--ink-cocoa);
}

.modal-card.wide { max-width: 780px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FFEBC2 100%);
  border: 2px solid #E0A84B;
}

.modal-header h2 {
  font-family: "Lilita One", "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #3D2114;
  letter-spacing: 0.3px;
}

.title-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -4px auto 4px;
}

.title-logo-img {
  width: min(330px, 60vw);
  max-height: 155px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(61, 33, 20, 0.25));
}

.subtitle-text {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 13px;
  color: #7C5A43;
  font-weight: 700;
  margin-bottom: 10px;
}

.title-stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 10px;
  background: #FFFDF8;
  border: 2px solid #E5A033;
  border-radius: 16px;
  margin-bottom: 10px;
  gap: 6px;
}

.title-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-cocoa);
}

/* Title Real 0-100% Loading Bar */
#title-loading-wrap {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #FFFDF7;
  border: 2px solid #3BA7FF;
}
#title-loading-wrap.hidden { display: none !important; }
.loading-bar-track {
  width: 100%;
  height: 14px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
  border: 1.5px solid #94A3B8;
  margin-top: 6px;
}
#title-loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #32D74B, #26B6FF);
  transition: width 0.15s ease;
}

/* Primary Emerald 9-Slice Play CTA (btn_emerald_9slice.png = 480x177) */
.btn-play-main {
  position: relative;
  overflow: visible;
  width: 100%;
  min-height: 54px;
  border-style: solid;
  border-width: 14px 20px;
  border-image-source: url("../assets/ui/btn_emerald_9slice.png");
  border-image-slice: 72 70 53 70 fill;
  border-image-width: 14px 18px;
  border-image-repeat: stretch;
  background: transparent;
  color: #14121F;
  font-family: "Lilita One", "Fredoka", sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.1s ease, filter 0.1s ease;
}

.btn-play-main:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.btn-play-main:active:not(:disabled) { transform: scale(0.98); }
.btn-play-main.hidden { display: none !important; }

.btn-gold-9slice {
  position: relative;
  overflow: visible;
  min-height: 46px;
  border-style: solid;
  border-width: 12px 18px;
  border-image-source: url("../assets/ui/btn_gold_9slice.png");
  border-image-slice: 60 57 58 57 fill;
  border-image-width: 12px 16px;
  border-image-repeat: stretch;
  background: transparent;
  color: #3D2114;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.dock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.dock-tile {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFEFC8 100%);
  border: 2px solid #D99326;
  color: var(--ink-cocoa);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #D99326;
  transition: transform 0.1s ease;
}

.dock-tile:hover { transform: translateY(-2px); filter: brightness(1.03); }
.dock-tile.feature-locked { opacity: 0.62; filter: grayscale(0.35); }

.unlock-req-tag {
  position: absolute;
  top: -7px;
  left: -5px;
  background: #64748B;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  border: 1.5px solid #FFFFFF;
}

/* Universal Red-Dot Badge */
.notify-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: #F43F5E;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-family: "Nunito", sans-serif;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 5;
  pointer-events: none;
}
.notify-badge.hidden { display: none !important; }

/* Cards, Grids & Lists */
.tabs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 8px;
  max-height: 44vh;
  overflow-y: auto;
  padding: 4px;
}

.level-card, .list-card, .shop-card-v3 {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF3DB 100%);
  border: 2px solid #E0A84B;
  border-radius: 16px;
  color: var(--ink-cocoa);
  box-shadow: 0 3px 0 rgba(184, 116, 0, 0.22);
}

.level-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  cursor: pointer;
}
.level-card:hover:not(:disabled) { border-color: #32D74B; transform: translateY(-2px); }
.level-card:disabled { opacity: 0.45; cursor: not-allowed; }

.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  text-align: left;
}
.list-card-info { flex: 1; }
.list-card-title { font-family: "Fredoka", "Nunito", sans-serif; font-size: 15px; font-weight: 700; color: #3D2114; margin-bottom: 2px; }
.list-card-desc { font-size: 12px; color: var(--ink-muted); line-height: 1.4; }

.shop-grid-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 4px;
}

.shop-card-v3 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  text-align: left;
}
.shop-card-v3.highlight {
  background: linear-gradient(180deg, #FFFBEB 0%, #FDE68A 100%);
  border-color: #D97706;
}
.shop-card-top { display: flex; align-items: center; gap: 10px; }
.shop-pack-icon { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.shop-badge-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  background: #FFB800;
  color: #3D2114;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 3px;
}
.reward-icons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #F3D19C;
}
.reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9px;
  background: #FFF8EA;
  border: 1px solid #E5A033;
  font-size: 11.5px;
  font-weight: 800;
  color: #3D2114;
}
.reward-chip img { width: 18px; height: 18px; object-fit: contain; }

.piggy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, #FEF3C7 0%, #D1FAE5 100%);
  border: 2px solid #D97706;
  margin-bottom: 10px;
}

.cutscene-card {
  width: 100%;
  max-width: 700px;
  border-style: solid;
  border-width: 20px 22px;
  border-image-source: url("../assets/ui/panel_casual_frame.png");
  border-image-slice: 73 70 73 69 fill;
  border-image-width: 20px 20px;
  border-image-repeat: stretch;
  background-color: #FFF8EA;
  border-radius: 24px;
  padding: 12px 16px;
  box-shadow: 0 20px 44px rgba(42, 24, 12, 0.35);
  text-align: left;
}

.cutscene-stage-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 2px solid #E0A84B;
  margin: 10px 0;
}
.cutscene-portrait { width: 92px; height: 92px; border-radius: 50%; border: 3px solid #D97706; object-fit: cover; flex-shrink: 0; }
.cutscene-speech { font-size: 14.5px; line-height: 1.5; color: #3D2114; font-weight: 700; }

.grand-title {
  font-family: "Lilita One", "Fredoka", sans-serif;
  font-size: 32px;
  color: #15803D;
  text-shadow: 0 2px 0 #FEF08A;
  margin-bottom: 4px;
}

.title-emblem { width: 84px; height: 84px; object-fit: contain; margin-bottom: 4px; }

#sanctuary-relics-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding: 4px;
}

/* Daily Calendar 7-Day Grid */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.daily-day-card {
  padding: 8px 6px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 2px solid #E0A84B;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
}
.daily-day-card.claimed { background: #DCFCE7; border-color: #22C55E; }
.daily-day-card.today { background: #FEF3C7; border-color: #F59E0B; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }

/* Timed Event Pass Progress */
.event-track-card {
  padding: 12px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 2px solid #E0A84B;
  text-align: left;
  margin-bottom: 10px;
}
.event-tier-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.event-tier-box {
  padding: 6px;
  border-radius: 10px;
  background: #FFF8EA;
  border: 1.5px solid #E5A033;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
}
.event-tier-box.reached { background: #DCFCE7; border-color: #22C55E; }

/* Toast Banner */
#toast-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, #22C55E, #16A34A);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(20, 83, 45, 0.35);
  z-index: 95;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Preview-only [DEV F2] Floating Debug Drawer (never shown in Release) */
#debug-drawer {
  position: fixed;
  top: 58px;
  left: 10px;
  z-index: 85;
  background: rgba(255, 251, 235, 0.97);
  border: 2px solid #0284C7;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 11px;
  color: #0F172A;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  max-width: 290px;
}
#debug-drawer.hidden { display: none !important; }
#btn-dev-toggle {
  position: fixed;
  bottom: 8px;
  left: 8px;
  z-index: 84;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #0284C7;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  cursor: pointer;
  font-weight: 800;
}
#btn-dev-toggle.hidden { display: none !important; }

/* Language Selector */
.lang-select {
  padding: 5px 10px;
  border-radius: 10px;
  border: 2px solid #D99326;
  background: #FFFFFF;
  color: #3D2114;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 1320px) {
  .hud-pill { padding: 3px 8px; font-size: 12px; }
  .hud-btn { padding: 4px 9px; font-size: 12px; }
  #hud-stage-pill { max-width: 175px; }
}
