/* =========================================================
   MapleLab Q-theme overlay — soft peach / chibi vibe
   Loaded after site.css core; softens chrome sitewide.
   ========================================================= */

:root {
  --ink: #4a2f2a !important;
  --text: #5c3d36 !important;
  --muted: #9a746c !important;
  --paper: #fff4ec !important;
  --surface: rgba(255, 251, 247, 0.88) !important;
  --surface-solid: #fffbf7 !important;
  --line: rgba(194, 120, 100, 0.18) !important;
  --maple: #ff8a6a !important;
  --maple-deep: #e86a4f !important;
  --lab: #7eb8b2 !important;
  --lab-soft: #e4f4f2 !important;
  --warn: #e4a04a !important;
  --danger: #e87171 !important;
  --radius: 24px !important;
  --radius-sm: 16px !important;
  --font: "Noto Sans TC", "Nunito", sans-serif !important;
  --display: "Nunito", "Noto Sans TC", sans-serif !important;
  --shadow: 0 12px 32px rgba(232, 130, 100, 0.14) !important;
  --peach: #ffc4a8;
  --peach-deep: #ff9b7a;
  --cream: #fff8f2;
  --blush: #ffd6c8;
  --lab-deep: #5a9a94;
  --radius-pill: 999px;
}

body {
  background: var(--paper);
}

.bg-mesh {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 196, 168, 0.55), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 180, 160, 0.45), transparent 40%),
    radial-gradient(circle at 70% 78%, rgba(196, 230, 224, 0.4), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(255, 214, 200, 0.5), transparent 40%),
    linear-gradient(180deg, #fff7f1 0%, #ffe8dc 42%, #fff3ea 100%) !important;
}
.bg-mesh::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.75) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 22%, rgba(255,255,255,.55) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,.5) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 60%, rgba(255,255,255,.55) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 55% 40%, rgba(255,255,255,.4) 0 7px, transparent 8px);
  background-size: 180px 180px, 220px 220px, 260px 260px, 200px 200px, 300px 300px;
  animation: q-float 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.bg-mesh::after {
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,.95), transparent),
    radial-gradient(1.5px 1.5px at 30% 50%, rgba(255,255,255,.75), transparent),
    radial-gradient(2px 2px at 60% 15%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 80% 40%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 45% 80%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 90% 75%, rgba(255,255,255,.75), transparent) !important;
  background-size: auto !important;
  mask-image: none !important;
  opacity: .95 !important;
}
@keyframes q-float {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

.site-header {
  background: rgba(255, 248, 242, 0.84) !important;
  border-bottom-color: var(--line) !important;
  box-shadow: 0 8px 24px rgba(232, 130, 100, 0.07);
  z-index: 50 !important;
}
.brand-mark {
  width: 46px !important; height: 46px !important;
  border-radius: 18px !important;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(255, 138, 106, 0.22) !important;
  background: linear-gradient(145deg, #ffe0d4, #ffc4a8);
}
.brand-text strong { font-weight: 800 !important; }
.brand-text em {
  text-transform: none !important;
  letter-spacing: .06em !important;
  color: var(--maple-deep) !important;
}
.site-nav a,
.site-nav .nav-logout button {
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
}
.site-nav a.is-active,
.site-nav a:hover,
.site-nav .nav-logout button:hover {
  color: var(--maple-deep) !important;
  background: rgba(255, 224, 212, 0.9) !important;
}

.btn, button.btn {
  border-radius: var(--radius-pill) !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #ff8a6a 0%, #ff9b7a 100%) !important;
  box-shadow: 0 8px 20px rgba(255, 138, 106, 0.28) !important;
}
.btn:hover {
  background: linear-gradient(135deg, #e86a4f 0%, #ff8a6a 100%) !important;
  color: #fff !important;
}
.btn-ghost {
  background: rgba(255,255,255,.72) !important;
  color: var(--ink) !important;
  border: 1.5px solid rgba(255, 168, 140, 0.45) !important;
  box-shadow: none !important;
}
.btn-ghost:hover {
  background: #fff !important;
  border-color: var(--maple) !important;
  color: var(--maple-deep) !important;
}

.panel,
.stat-card,
.feature-card,
.drop-card,
.equipment-row,
.equipment-slot-card,
.guides-job-card,
.sticky-panel,
.hero-panel,
.timer-showcase,
.guides-home-band {
  border-radius: var(--radius) !important;
  border-color: rgba(255, 180, 150, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,248,242,.92)) !important;
  box-shadow: var(--shadow) !important;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.panel:hover,
.feature-card:hover,
.equipment-slot-card:hover,
.guides-job-card:hover,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(232, 130, 100, 0.16) !important;
}

.section-kicker,
.hero-panel-kicker,
.hero-edition {
  color: var(--maple-deep) !important;
  background: rgba(255, 224, 212, 0.75) !important;
  border-color: rgba(255, 168, 140, 0.4) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 800 !important;
}
.section-title,
.hero-brand,
.hero-headline,
.equipment-hero h1,
.guides-hero h1,
.page-head h1 {
  font-family: var(--display) !important;
  letter-spacing: -.03em;
}

/* Hero Q frames */
.hero-shell {
  padding-top: clamp(1.8rem, 4vh, 2.8rem) !important;
}
.hero-bg {
  background:
    radial-gradient(680px 400px at 14% 18%, rgba(255, 180, 150, 0.35), transparent 60%),
    radial-gradient(620px 360px at 86% 28%, rgba(160, 210, 200, 0.28), transparent 58%) !important;
}
.hero-watermark { color: rgba(232, 130, 100, 0.08) !important; }
.hero-panel {
  border: 2px solid rgba(255,255,255,.85) !important;
  background:
    linear-gradient(165deg, rgba(255,255,255,.96), rgba(255, 232, 220, .9)) !important;
  overflow: hidden;
  position: relative;
}
.hero-panel::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: calc(var(--radius) - 6px);
  border: 1.5px solid rgba(255, 196, 168, 0.45);
  pointer-events: none;
}
.hero-chips a,
.hero-boss {
  border-radius: 18px !important;
  background: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255, 180, 150, 0.35) !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-chips a:hover,
.hero-boss:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 22px rgba(255, 138, 106, 0.18);
}

.home-stats .stat-card,
.feature-grid .feature-card {
  text-align: center;
}
.stat-num {
  font-family: var(--display) !important;
  color: var(--maple-deep) !important;
}
.feature-index {
  background: linear-gradient(135deg, #ff8a6a, #ffc4a8) !important;
  color: #fff !important;
  border-radius: 14px !important;
}

/* —— Cute mascots & feature icons —— */
.brand-mark {
  padding: 3px !important;
  background: linear-gradient(145deg, #fff8f2, #ffe0d4) !important;
  overflow: hidden;
}
.brand-mark img {
  object-fit: contain !important;
  border-radius: 12px;
  background: transparent !important;
  mix-blend-mode: normal;
}

.hero-mascots {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: .55rem;
  margin-top: 1.15rem;
  padding-top: .15rem;
}
.q-mascot-card {
  margin: 0;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.95), transparent 55%),
    linear-gradient(165deg, #fff, #ffe8dc);
  border: 2.5px solid rgba(255,255,255,.95);
  box-shadow:
    0 14px 28px rgba(232, 130, 100, 0.18),
    inset 0 0 0 1px rgba(255, 180, 150, 0.28);
  animation: q-bob 3.6s ease-in-out infinite;
}
.q-mascot-card:nth-child(2) { animation-delay: .35s; }
.q-mascot-card:nth-child(3) { animation-delay: .7s; }
.q-mascot-card.is-hero {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  transform: translateY(-6px);
  box-shadow:
    0 18px 36px rgba(232, 130, 100, 0.24),
    inset 0 0 0 1px rgba(255, 180, 150, 0.35);
}
.q-mascot-card img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(90, 50, 40, 0.12));
}
.q-mascot-card.is-pixel {
  background:
    radial-gradient(circle at 40% 30%, #fffef9, transparent 55%),
    linear-gradient(180deg, #fff8f0, #f3e4d2);
  border-radius: 22px;
  border: 3px solid #e8d2b8;
  box-shadow:
    0 10px 0 rgba(163, 110, 70, 0.12),
    0 14px 28px rgba(163, 80, 50, 0.14);
}
.q-mascot-card.is-soft {
  background: #fff8f2 !important;
  border-radius: 24px;
  border: 2.5px solid rgba(255, 210, 190, 0.9);
  box-shadow:
    0 12px 26px rgba(232, 130, 100, 0.16),
    inset 0 0 0 1px rgba(255,255,255,.75);
}
.q-mascot-card.is-soft img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(90, 50, 40, 0.12));
  mix-blend-mode: normal;
  border-radius: 0;
  background: transparent !important;
}
.q-mascot-card.is-pixel img,
.hero-panel-buddy.is-pixel,
.band-mascot.is-pixel,
.page-mascot.is-pixel,
.timer-buddy.is-pixel,
.brand-mark img.is-pixel,
.footer-logo img.is-pixel,
img.is-pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.q-mascot-card.is-art {
  padding: 0;
  overflow: hidden;
  background: #f9f0e7;
  border: 3px solid #d4b896;
  border-radius: 18px;
  box-shadow:
    0 10px 0 rgba(140, 90, 50, 0.1),
    0 16px 30px rgba(163, 80, 50, 0.16);
}
.q-mascot-card.is-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.band-mascot.is-art,
.page-mascot.is-art {
  border-radius: 16px;
  border: 2px solid #d4b896;
  background: #f9f0e7;
  object-fit: cover;
}
.band-mascot.is-soft-art,
.page-mascot.is-soft-art {
  border-radius: 18px;
  border: 2px solid rgba(255, 200, 180, 0.85);
  background: linear-gradient(180deg, #fff9f3, #ffe8dc);
  object-fit: contain;
  padding: 4px;
}

.footer-mascots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: .85rem;
  margin: 0 auto .85rem;
  padding-top: .35rem;
}
.footer-mascots img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(232, 130, 100, 0.18));
  opacity: .92;
}
.footer-mascots img:nth-child(2) {
  width: 64px;
  height: 64px;
  transform: translateY(-4px);
}

.guides-job-card {
  display: grid !important;
  gap: .45rem;
  justify-items: start;
  align-content: start;
}
.guides-job-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid rgba(255, 200, 180, 0.9);
  background: #fff8f2;
  margin-bottom: .15rem;
  padding: 8px;
}

/* Align paper tone closer to official classic site */
.theme-q .bg-mesh {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 196, 168, 0.35), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 180, 160, 0.28), transparent 40%),
    radial-gradient(circle at 70% 78%, rgba(196, 230, 224, 0.28), transparent 45%),
    linear-gradient(180deg, #f9f0e7 0%, #fff4ec 45%, #f5ead8 100%) !important;
}
@keyframes q-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.q-mascot-card.is-hero {
  animation-name: q-bob-hero;
}
@keyframes q-bob-hero {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(-14px); }
}

.hero-panel-buddy {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 68px;
  height: 68px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(90, 150, 140, 0.28));
  animation: q-bob 4s ease-in-out infinite .2s;
  opacity: .95;
  z-index: 2;
}
.hero-panel { padding-bottom: 2.6rem !important; }

.feature-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto .35rem;
  filter: drop-shadow(0 8px 14px rgba(255, 138, 106, 0.22));
  transition: transform .22s var(--ease);
}
.feature-card:hover .feature-icon {
  transform: translateY(-3px) scale(1.06) rotate(-3deg);
}
.feature-grid .feature-card {
  display: grid;
  gap: .55rem;
  justify-items: center;
  padding-top: 1.25rem !important;
}
.feature-grid .feature-card h3,
.feature-grid .feature-card p {
  text-align: center;
}

.guides-home-band.has-mascot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.band-mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(232, 130, 100, 0.2));
  animation: q-bob 4.2s ease-in-out infinite;
}
.page-mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(232, 130, 100, 0.18));
}
.page-mascot--soft {
  width: 72px;
  height: 72px;
  padding: 10px;
  border-radius: 20px;
  border: 2px solid rgba(255, 200, 180, 0.85);
  background: #fff8f2;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(232, 130, 100, 0.12));
}
.band-mascot.page-mascot--soft {
  width: 72px;
  height: 72px;
  animation: none;
}
.drops-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.equipment-page {
  padding-top: .5rem;
}
.equipment-hero {
  display: block;
  padding: 1.35rem 0 .35rem;
  margin-bottom: 1.1rem;
}
.equipment-hero.compact {
  padding-top: .85rem;
  margin-bottom: .85rem;
}
.equipment-hero h1 {
  margin: .15rem 0 .4rem !important;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem) !important;
  letter-spacing: -.03em !important;
  line-height: 1.1 !important;
}
.equipment-lead {
  margin: .4rem 0 0 !important;
  font-size: .95rem;
}
.guides-hero {
  display: block;
  padding: 1.35rem 0 .35rem !important;
}
.guides-hero h1 {
  margin: .15rem 0 0 !important;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem) !important;
  letter-spacing: -.03em !important;
  line-height: 1.1 !important;
}
.guides-hero-copy {
  max-width: 46rem;
}
.guides-lead {
  margin: .4rem 0 0 !important;
  font-size: .95rem !important;
}
.timer-showcase {
  position: relative;
  overflow: hidden;
}
.timer-buddy {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  width: 76px;
  height: 76px;
  object-fit: contain;
  opacity: .92;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(90, 150, 140, 0.25));
  animation: q-bob 3.8s ease-in-out infinite .4s;
}
.brand-mark {
  padding: 0 !important;
  background: transparent !important;
  overflow: hidden;
}
.brand-mark img {
  object-fit: cover !important;
  border-radius: 12px;
  background: transparent !important;
}
.footer-logo img {
  object-fit: cover !important;
  border-radius: 14px !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: 0 8px 18px rgba(232, 130, 100, 0.16) !important;
}
/* Peach-baked mascots: keep normal blend so bg matches soft cards */
.q-mascot-card.is-soft img,
.hero-panel-buddy,
.footer-mascots img,
.page-mascot,
.timer-buddy {
  background: transparent !important;
  mix-blend-mode: normal;
}
.band-mascot.is-soft-art {
  background: #fff8f2 !important;
  mix-blend-mode: normal;
}

@media (max-width: 720px) {
  .hero-mascots { gap: .4rem; }
  .q-mascot-card { width: 84px; height: 84px; border-radius: 22px; }
  .q-mascot-card.is-hero { width: 100px; height: 100px; }
  .hero-panel-buddy { width: 56px; height: 56px; right: 12px; bottom: 10px; }
  .guides-home-band.has-mascot {
    grid-template-columns: auto 1fr;
  }
  .guides-home-band.has-mascot .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .band-mascot { width: 72px; height: 72px; }
  .timer-buddy { width: 58px; height: 58px; opacity: .75; }
}

/* Drops / equipment soft cards */
.drop-card {
  overflow: hidden;
}
.drop-card-head img,
.equipment-row-icon,
.hero-boss img {
  border-radius: 14px !important;
  background: linear-gradient(145deg, #fff, #ffe8dc) !important;
  box-shadow: inset 0 0 0 1px rgba(255,180,150,.25);
}
.drop-group header {
  border-radius: var(--radius-pill);
  background: rgba(255, 224, 212, 0.55);
  padding: .35rem .75rem;
}
.drop-item {
  border-radius: 16px !important;
  border-color: rgba(255, 180, 150, 0.25) !important;
  background: rgba(255,255,255,.88) !important;
}
.drop-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(232, 130, 100, 0.12);
}
.cat-tag {
  border-radius: 999px !important;
}
.equipment-row > summary {
  border-radius: var(--radius);
}
.equipment-slot-card em,
.guides-job-card em {
  color: var(--maple-deep) !important;
}

/* Forms */
input[type="search"],
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
  border-radius: 16px !important;
  border-color: rgba(255, 180, 150, 0.35) !important;
  background: rgba(255,255,255,.9) !important;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 138, 106, 0.16);
  border-color: var(--maple) !important;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, transparent, rgba(255, 214, 200, 0.35) 20%, rgba(255, 196, 168, 0.45)) !important;
  border-top: 1px solid var(--line);
}
.footer-edition-badge {
  border-radius: var(--radius-pill) !important;
  background: rgba(255,255,255,.75) !important;
  color: var(--maple-deep) !important;
}

/* Soft title pill banners like the reference caption bar */
.page-head h1,
.equipment-hero h1,
.guides-hero h1 {
  display: inline-block;
  padding: .25rem .15rem;
}

.flash {
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
}
.flash--success { color: var(--lab-deep) !important; }
.meta-pill {
  border-radius: var(--radius-pill) !important;
  background: rgba(255, 224, 212, 0.7) !important;
  color: var(--maple-deep) !important;
  border-color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  .bg-mesh::before { animation: none !important; }
  .q-mascot-card,
  .q-mascot-card.is-hero,
  .hero-panel-buddy,
  .band-mascot,
  .timer-buddy { animation: none !important; }
}
