/* Remove focus styles on touch devices (mobile) */
@media (hover: none) and (pointer: coarse) {
  *:focus {
    outline: none !important;
    box-shadow: none !important;
  }
}
input,
select,
textarea {
  font-size: 16px;
}
/* Playful blue→pink animated gradient */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;

  /* animated gradient */
  background: linear-gradient(135deg, #8EC5FC 0%, #FFAFCC 100%);
  background-size: 160% 160%;
  animation: bgPan 18s ease-in-out infinite;

  /* keep your layout vibe */
  -webkit-font-smoothing: antialiased;
}

/* Soft drifting highlight to add “alive” feel */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -20%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(40% 35% at 25% 30%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(30% 25% at 75% 70%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
  animation: drift 22s ease-in-out infinite;
}

/* Gradient pan */
@keyframes bgPan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Highlight drift */
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(4%, -4%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body, body::before { animation: none !important; }
  body { background-position: 50% 50%; }
}

.muted {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

/* =========================
   Bubble layer (CSS-only)
   ========================= */
.bubbles {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  inset: 0;               /* redundant with top/left, but harmless */
  overflow: hidden;
  pointer-events: none;
  z-index: 1;             /* behind your panels */
}

/* Base bubble look + rise animation */
.bubbles span {
  position: absolute;
  bottom: -60px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.25) 45%,
    rgba(255,255,255,0.12) 65%,
    rgba(255,255,255,0.0) 75%
  );
	
  box-shadow: 0 2px 10px rgba(255,255,255,0.18) inset;
  opacity: 0.6;
  animation: rise 14s ease-in infinite;
  filter: hue-rotate(8deg) saturate(1.1); /* subtle tint toward pink/blue */
}

@keyframes rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0.6; }
  60%  { opacity: 0.35; }
  100% { transform: translateY(-120vh) scale(0.9); opacity: 0; }
}

/* Staggered positions/sizes/timings — tweak or add more spans as desired */
.bubbles span:nth-child(1)  { left: 8%;  width: 36px; height: 36px;  animation-duration: 16s; animation-delay: 0s;  }
.bubbles span:nth-child(2)  { left: 18%; width: 24px; height: 24px;  animation-duration: 13s; animation-delay: 2s;  }
.bubbles span:nth-child(3)  { left: 28%; width: 44px; height: 44px;  animation-duration: 17s; animation-delay: 4s;  }
.bubbles span:nth-child(4)  { left: 38%; width: 28px; height: 28px;  animation-duration: 14s; animation-delay: 6s;  }
.bubbles span:nth-child(5)  { left: 48%; width: 40px; height: 40px;  animation-duration: 18s; animation-delay: 8s;  }
.bubbles span:nth-child(6)  { left: 58%; width: 26px; height: 26px;  animation-duration: 15s; animation-delay: 1s;  }
.bubbles span:nth-child(7)  { left: 68%; width: 38px; height: 38px;  animation-duration: 19s; animation-delay: 3s;  }
.bubbles span:nth-child(8)  { left: 78%; width: 22px; height: 22px;  animation-duration: 12s; animation-delay: 5s;  }
.bubbles span:nth-child(9)  { left: 86%; width: 46px; height: 46px;  animation-duration: 20s; animation-delay: 7s;  }
.bubbles span:nth-child(10) { left: 12%; width: 30px; height: 30px;  animation-duration: 15s; animation-delay: 9s;  }
.bubbles span:nth-child(11) { left: 63%; width: 34px; height: 34px;  animation-duration: 16s; animation-delay: 10s; }
.bubbles span:nth-child(12) { left: 90%; width: 26px; height: 26px;  animation-duration: 13s; animation-delay: 11s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bubbles span { animation: none; opacity: 0.25; }
}
	  /* Keep background bubbles out of layout so they don't add page height */
.bubbles{
  position: fixed;     /* take it out of flow */
  inset: 0;            /* full-viewport */
  overflow: hidden;    /* clip particles */
  pointer-events: none;
  z-index: 0;          /* behind everything */
}

/* (optional) reasonable default for the spans in case you animate them) */
.bubbles span{
  position: absolute;
  bottom: -80px;       /* start off-screen */
  width: var(--size, 20px);
  height: var(--size, 20px);
  border-radius: 50%;
  opacity: .25;
}
/* =========================
   UI containers (above bubbles)
   ========================= */
.topbar {
  background: #1e90ff;
  color: #fff;
  text-align: right;
  position: relative;
  z-index: 2;
}

main {
  max-width: 1200px;
  margin: 24px auto;
  padding: 18px;
  border-radius: 8px;
  position: relative;
  z-index: 2;
	backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); 
	background: rgba(255,255,255,0.16);
}

.center {
  max-width: 420px;
  margin: 100px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Forms, buttons, cards, etc. */
.form input {
  display: block;
  width: 95%;
  padding: 8px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

input.error {
  border-color: #dc2626; /* red */
  background-color: #fee2e2;
}
input.valid {
  border-color: #16a34a; /* green */
  background-color: #dcfce7;
}

button {
  background: #ffcc00;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.thumb-lg {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.card {
  border: 1px solid #e0e0e0;
  padding: 12px;
  margin: 12px 0;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.card.horizontal {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-body { flex: 1; }

.error { color: #b00020; }
.message { color: green; font-weight: bold; }

a { color: #003366; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Enhanced topbar layout */
.topbar {
  display: flex;
  justify-content: space-between; /* logo left, logout right */
  align-items: center;
  background-color: #f5f5f5; /* light theme bar */
  color: #333;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.logo { flex-shrink: 0; }
.logo img { max-width: 200px; height: auto; display: block; }

.nav-links {
  display: flex;
  text-align: center;
  align-items: center;
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.nav-links a:hover { background-color: #ddd; }

/* Tooltip utility (used by daily bonus) */
.tooltip-wrap { position: relative; display: inline-block; }
#claim:disabled { opacity: 0.6; cursor: not-allowed; }

.tooltip {
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}
.tooltip[aria-live="on"] { opacity: 1; }

/* Pet info */
.pet-info { margin-top: 6px; position: relative; }

/* --- Level Badge --- */
.pet-level-badge {
  display: inline-block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px; /* pill */
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;   /* clip the shine sweep */
  isolation: isolate; /* contain blend */
}

/* Badge gradients by tier */
.lvl-green  { background: linear-gradient(135deg, #10b981, #34d399); } /* 1–5 */
.lvl-blue   { background: linear-gradient(135deg, #3b82f6, #60a5fa); } /* 6–10 */
.lvl-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); } /* 11–20 */
.lvl-gold   { background: linear-gradient(135deg, #f59e0b, #fbbf24); } /* 21+ */

/* Shine sweep */
.pet-level-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  transform: skewX(-20deg);
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.35) 45%,
    rgba(255,255,255,0) 100%
  );
  mix-blend-mode: screen;
  animation: badge-shine 3.8s ease-in-out infinite;
}
@keyframes badge-shine {
  0%   { left: -140%; opacity: 0; }
  8%   { opacity: .9; }
  28%  { left: 160%;  opacity: 0; }
  100% { left: 160%;  opacity: 0; }
}

/* Level-up micro-interactions */
.pet-level-badge.levelup { animation: level-glow 900ms ease-out; }
@keyframes level-glow {
  0%   { transform: scale(1);    box-shadow: 0 2px 8px rgba(0,0,0,.25); }
  25%  { transform: scale(1.06); box-shadow: 0 6px 24px rgba(250,204,21,.85), 0 0 48px rgba(250,204,21,.45); }
  100% { transform: scale(1);    box-shadow: 0 2px 8px rgba(0,0,0,.25); }
}
.pet-level-badge.levelup::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.7);
  pointer-events: none;
  animation: level-ring 900ms ease-out forwards;
  mix-blend-mode: screen;
}
@keyframes level-ring {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}

@media (prefers-reduced-motion: reduce) {
  .pet-level-badge::before,
  .pet-level-badge.levelup,
  .pet-level-badge.levelup::after { animation: none !important; }
}

/* Claim Daily button shine */
button#claim {
  position: relative;
  overflow: hidden;       /* clip the shine */
  isolation: isolate;     /* keep blend contained */
}

/* Shine effect */
button#claim::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  transform: skewX(-20deg);
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.35) 45%,
    rgba(255,255,255,0) 100%
  );
  mix-blend-mode: screen;
  animation: badge-shine 5.8s ease-in-out infinite;
}

/* Stop animation when disabled */
button#claim:disabled::before {
  animation: none;
  opacity: 0; /* hide the shine layer */
}

/* Reuse keyframes */
@keyframes badge-shine {
  0%   { left: -140%; opacity: 0; }
  8%   { opacity: .9; }
  28%  { left: 160%;  opacity: 0; }
  100% { left: 160%;  opacity: 0; }
}

/* Level-up overlay */
#levelup-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important; /* max-ish */
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 20%, rgba(0,0,0,.35), rgba(0,0,0,.75));
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

/* Center message card */
.levelup-card {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 18px 26px;
  border-radius: 16px;
  background: rgba(17,24,39,.55);   /* slate-ish glass */
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  max-width: 80vw;
}

/* Title */
.levelup-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .5px;
  margin: 0 0 6px 0;
}

/* Level badge text inside overlay */
.levelup-level {
  display: inline-block;
  font-weight: 800;
  font-size: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
  text-shadow: none;
}

/* soft pulse */
.levelup-card { animation: lu-pop .8s ease; }
@keyframes lu-pop {
  0% { transform: scale(.96); opacity: 0 }
  30% { transform: scale(1.02); opacity: 1 }
  100% { transform: scale(1); opacity: 1 }
}

/* Canvas sits behind the card */
#levelup-confetti {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* Reduced motion: no pop */
@media (prefers-reduced-motion: reduce) {
  .levelup-card { animation: none; }
}
/* Optional: crisper edges over dark overlay */
#levelup-overlay .pet-level-badge {
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
}

.footer {
border-radius: 0px;
        padding: 10px;
        font-size: 10px;
        text-align: center;
}
/* Mobile-only (hides on wide viewports) */
@media (min-width: 900px) { #veep-a2hs { display: none !important; } }

#veep-a2hs {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  background: #111; color: #fff; border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  padding: 10px 12px; z-index: 9999;
  font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#veep-a2hs .veep-a2hs-row { display: flex; align-items: center; gap: 10px; }
#veep-a2hs .veep-a2hs-icon { width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto; }
#veep-a2hs .veep-a2hs-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
#veep-a2hs .veep-a2hs-sub { color: #b9c3ff; font-size: 12px; }
#veep-a2hs .veep-a2hs-btn {
  margin-left: auto; background: #5A9BFF; color: #0b1020; font-weight: 700;
  border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer;
}
#veep-a2hs .veep-a2hs-close {
  position: absolute; top: 6px; right: 8px; background: transparent; border: 0;
  color: #fff; font-size: 20px; cursor: pointer; opacity: .7;
}
#veep-a2hs .veep-a2hs-close:hover { opacity: 1; }

/* Respect reduced motion */
@media (prefers-reduced-motion: no-preference) {
  #veep-a2hs { transform: translateY(20px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
  #veep-a2hs[data-show="1"] { transform: translateY(0); opacity: 1; }
}
/* Force checkbox + text to sit tight */
.remember-wrap input[type="checkbox"] {
  margin: 0;                /* remove browser’s default margins */
  width: auto;              /* reset any grid/form styling */
  flex: 0 0 auto;           /* don’t stretch inside flex */
  accent-color: #facc15;    /* optional: make it Veep yellow */
}
.remember-wrap {
  display: flex;
  justify-content: center;       /* center the whole row */
  margin: 10px 0 14px;
}

.remember-wrap label {
  display: inline-flex;
  align-items: center;
  gap: 6px;                      /* exact gap you want between box + text */
  white-space: nowrap;
}
/* Center the whole row */
.remember-wrap{ display:flex; justify-content:center; margin:10px 0 14px; }

/* Keep box + text together on one line */
.remember-line{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}

/* 🔧 Override global input styles that break checkboxes on mobile */
input[type="checkbox"]{
  display:inline-block !important;  /* undo display:block */
  width:auto !important;            /* undo width:100% */
  margin:0 !important;              /* kill default margins */
  vertical-align:middle;
  accent-color:#facc15;             /* optional Veep yellow */
}

/* Optional: make the tap target a bit larger */
input[type="checkbox"]{
  inline-size:1.1em; block-size:1.1em;   /* ~18px */
}
.pending-email {
  font-size: 14px;
  color: #92400e;
}
.pending-email em { font-style: normal; font-weight: 600; }
.coin-badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:84px; padding:8px 12px;
  border-radius:9999px;
  background:#fff7cc; color:#7a5d00;  /* soft gold */
  border:1px solid #facc15;           /* yellow border */
  font-weight:600;
}

/* Ghost button look */
.btn-ghost{
  background:#fff; border-color:#e5e7eb; color:#374151;
}

/* Disabled link that still looks like a button */
a.btn.disabled[aria-disabled="true"]{
  pointer-events:none; opacity:.55; filter:saturate(.6);
}
/* 1) Never allow horizontal scrolling bleed */
html, body { overflow-x: hidden; }

/* 2) Header: avoid 100vw; include notch safe-area padding; keep sizing honest */
.site-nav {
  width: 100%;
  box-sizing: border-box;
  padding-left:  max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;            /* allow children to shrink */
}

/* Brand/title may shrink with ellipsis */
.site-nav__brand {
  flex: 1 1 auto;          /* take remaining space but allow shrink */
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Menu / settings: don't shrink, sit at far right */
.site-nav__menu,
.site-nav__settings {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;              /* above background */
  touch-action: manipulation;
}
/* 5) Menu group is flexible but wont force growth */
.site-nav__menu {
  display: flex;
  gap: 18px;
  flex: 0 1 auto;
  min-width: 0;
}

/* 6) Icon buttons wont expand layout */
.site-nav__icon {
  flex: 0 0 auto;
}

/* Optional: images/logos never exceed container */
.site-nav img { max-width: 100%; height: auto; display: block; }


/* ===== Inventory UI - side-by-side layout ===== */
.inv-card {
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  background:#fff;
  display:grid;
  grid-template-columns: 1fr 120px; /* text left, image right */
  gap:12px;
  align-items:center;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.inv-card:hover,
.inv-card:focus {
  outline:0;
  border-color:#d1d5db;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  transform:translateY(-1px);
}

.inv-left {
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.inv-name { font-weight:700; font-size:16px; margin-bottom:4px; }
.inv-pill { margin-bottom:4px; }
.inv-type { color:#6b7280; font-size:12px; margin-bottom:4px; }
.inv-qty  { font-weight:600; color:#4b5563; font-size:13px; }

.inv-img {
  display:flex;
  align-items:center;
  justify-content:center;
}
.inv-img img {
  width:100%;
  height:auto;
  max-height:100px;
  object-fit:contain;
}

/* rarity pill colors (same as shop) */
.pill{
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  display:inline-block;
}
.pill.common{    border-color:#d1d5db; color:#374151; }
.pill.uncommon{  border-color:#34d399; color:#059669; }
.pill.rare{      border-color:#60a5fa; color:#2563eb; }
.pill.epic{      border-color:#c084fc; color:#7c3aed; }
.pill.legendary{ border-color:#fbbf24; color:#b45309; }


/* --- Hamburger base --- */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* --- Mobile drawer --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 260px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -10px 0 30px rgba(0,0,0,.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 10001;
}
.mobile-drawer a { padding: 10px 8px; border-radius: 8px; }
.mobile-drawer a:hover { background: #f3f4f6; }

/* Backdrop behind drawer */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 10000;
}

/* --- Open state --- */
.mobile-drawer.open { transform: translateX(0); }
.mobile-backdrop.show { display: block; }
.mobile-backdrop[hidden] { display: none; }

/* --- Responsive rules --- */
@media (max-width: 900px) {
  .nav-links { display: none; }                /* hide desktop nav */
  .nav-toggle { display: inline-block; }       /* show hamburger */
}

/* Optional: animate hamburger into an "X" when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 16px;
  background:#f9fafb;
  border-bottom:1px solid #e5e7eb;
}

.hamburger {
  display:none;
  font-size:24px;
  background:none;
  border:none;
  cursor:pointer;
}

.nav-links {
  display:flex;
  gap:16px;
}

@media (max-width: 768px) {
  .hamburger {
    display:block;
  }
  .nav-links {
    display:none;
    flex-direction:column;
    position:absolute;
    top:60px;
    right:10px;
    background:white;
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
  }
  .nav-links.show {
    display:flex;
  }
}
	  /* Keep the top bar above everything */
.topbar{
  position: sticky;      /* stays at the top as you scroll, but still reserves space */
  top: 0;
  z-index: 9999;         /* higher than panels/cards */
  background: #f9fafb;   /* ensure it paints over content behind */
}

/* Mobile dropdown menu should also float above cards */
.nav-links{
  z-index: 10000;        /* higher than .topbar just in case */
}

/* If you used an absolutely positioned dropdown on mobile */
@media (max-width: 768px){
  .nav-links{
    position: absolute;
    right: 10px;
    top: 60px;           /* adjust to match your header height */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
}

/* Make sure panels dont float above the header */
.panel{
  position: relative;
  z-index: 1;
}

/* If you have a decorative bubbles layer, keep it behind everything */
.bubbles{ z-index: 0; }
/* Hint overlay (similar to level-up) */
#hint-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:10000;background:rgba(0,0,0,.35)}
#hint-overlay[aria-hidden="false"]{display:flex}
.hint-card{position:relative;background:#111;color:#fff;border-radius:14px;padding:16px 18px;box-shadow:0 10px 30px rgba(0,0,0,.25);min-width:260px;max-width:92vw;text-align:center}
.hint-title{font-weight:700;margin-bottom:6px;font-size:16px}
.hint-msg{opacity:.95}
.hint-close{position:absolute;top:8px;right:10px;border:none;background:transparent;color:#fff;font-size:18px;cursor:pointer;opacity:.8}
.hint-close:hover{opacity:1}

/* subtle appearance animation */
@keyframes hint-pop {0%{transform:translateY(8px);opacity:0}100%{transform:translateY(0);opacity:1}}
.hint-card{animation:hint-pop .22s ease-out}

/* status accents */
.hint-card.ok{outline:2px solid rgba(16,185,129,.5)}       /* green */
.hint-card.error{outline:2px solid rgba(239,68,68,.5)}     /* red */
.hint-card.info{outline:2px solid rgba(59,130,246,.5)}     /* blue */