.bee-daily-challenge-hub,
.bee-daily-challenge-view {
  --bdch-navy: var(--br-color-brand-navy, #1f2a44);
  --bdch-blue: var(--br-color-brand-teal-deep, #24b8aa);
  --bdch-teal: var(--br-color-brand-teal, #52d9c7);
  --bdch-gold: var(--br-color-brand-yellow, #f7e232);
  --bdch-coral: var(--br-color-brand-pink, #ff8db1);
  --bdch-paper: var(--br-color-surface-soft, #fffdf7);
  color: var(--bdch-navy);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  position: relative;
}

.bdch-booting {
  min-height: min(720px, calc(100svh - 24px));
  overflow: hidden;
  background: #fff;
}
.bdch-loader { display: none; }
.bdch-booting > :not(.bdch-loader) { visibility: hidden !important; }
.bdch-booting .bdch-loader {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 24px;
  border-radius: inherit;
  background: #fff;
  color: var(--bdch-navy);
  text-align: center;
}
.bdch-loader-ring {
  display: block;
  width: 48px;
  height: 48px;
  border: 6px solid var(--bdch-teal);
  border-top-color: var(--bdch-gold);
  border-right-color: var(--bdch-gold);
  border-radius: 50%;
  animation: bdch-loader-spin .85s linear infinite;
}
.bdch-loader strong { font-size: 18px; line-height: 1.5; font-weight: 900; }
.bdch-loader-error { max-width: 28rem; font-size: 18px; line-height: 1.6; font-weight: 800; }
.bdch-loader-error p { margin: 0 0 14px; }
.bdch-loader-error .br-button { min-height: 56px; }
@keyframes bdch-loader-spin { to { transform: rotate(360deg); } }

.bee-daily-challenge-hub.br-activity-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 24px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c7e4ea;
  border-radius: 28px;
  background: var(--bdch-paper);
  box-shadow: 0 18px 50px rgba(9, 43, 73, .14);
  text-align: left;
}

.bdch-header,
.bdch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 36px);
  color: white;
  background: linear-gradient(120deg, var(--bdch-navy), var(--br-color-brand-teal-deep, #24b8aa));
}

.bdch-brand { display: flex; align-items: center; gap: 10px; line-height: 1; }
.bdch-brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--bdch-navy); background: var(--bdch-gold); font-weight: 1000; }
.bdch-brand b { display: block; font-size: .92rem; letter-spacing: .08em; }
.bdch-brand small { display: block; margin-top: 5px; color: #bdeff1; font-size: .64rem; letter-spacing: .18em; }
.bdch-menu-label { flex: 0 0 auto; padding: 7px 12px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.bdch-phrase { display: inline-block; max-width: 100%; white-space: nowrap; }

.bdch-stage { padding: clamp(24px, 5vw, 52px); background: radial-gradient(circle at 8% 0%, var(--br-color-surface-teal, #eafffb) 0, transparent 32%), radial-gradient(circle at 95% 100%, var(--br-color-surface-warm, #fff7d8) 0, transparent 34%), var(--bdch-paper); }
.bdch-intro { max-width: 670px; margin-bottom: 26px; }
.bdch-kicker { color: var(--bdch-blue); font-size: .78rem; font-weight: 1000; letter-spacing: .15em; }
.bdch-intro h2 { margin: 7px 0 8px; color: var(--bdch-navy); font-size: clamp(1.65rem, 4vw, 2.65rem); line-height: 1.2; }
.bdch-intro p { margin: 0; color: #42617a; font-weight: 700; }

.bdch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 28px); }
.bdch-card { position: relative; display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid #bdd9e2; border-radius: 22px; color: inherit; background: white; box-shadow: 0 10px 24px rgba(9,43,73,.11); text-decoration: none !important; }
.bdch-card--active { transition: transform .18s ease, box-shadow .18s ease; }
.bdch-card--active:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(9,43,73,.18); }
.bdch-card--active:focus-visible { outline: 4px solid var(--bdch-gold); outline-offset: 4px; }
.bdch-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #07304f; }
.bdch-media img { width: 100%; height: 100%; object-fit: cover; }
.bdch-status { position: absolute; top: 13px; right: 13px; padding: 7px 11px; border-radius: 999px; color: var(--bdch-navy); background: var(--bdch-gold); box-shadow: 0 4px 12px rgba(0,0,0,.16); font-size: .75rem; font-weight: 1000; }
.bdch-status--complete { color: var(--bdch-navy); background: var(--bdch-teal); }
.bdch-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 20px 17px; }
.bdch-copy small { color: var(--bdch-blue); font-size: .68rem; font-weight: 1000; letter-spacing: .13em; }
.bdch-copy strong { margin: 5px 0 8px; font-size: clamp(1.15rem, 2.4vw, 1.52rem); line-height: 1.35; }
.bdch-copy > span:not(.bdch-meta) { color: #496679; font-size: .9rem; font-weight: 700; line-height: 1.65; }
.bdch-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.bdch-meta b { padding: 5px 8px; border-radius: 7px; color: #23627a; background: #e5f5f7; font-size: .62rem; letter-spacing: .06em; }
.bdch-play { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 20px; color: var(--bdch-navy); background: var(--bdch-teal); font-size: .76rem; font-weight: 1000; letter-spacing: .14em; }
.bdch-play i { font-style: normal; font-size: 1.2rem; }

.bdch-card--soon { opacity: .9; }
.bdch-card--soon .bdch-media img { filter: saturate(.72) brightness(.65); }
.bdch-coming-soon { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; padding: 20px; color: white; background: rgba(7, 28, 62, .22); text-align: center; }
.bdch-coming-soon b { padding: 9px 14px; border: 2px solid white; border-radius: 10px; background: rgba(7,32,66,.78); box-shadow: 0 5px 20px rgba(0,0,0,.22); font-size: clamp(.82rem, 2vw, 1.08rem); letter-spacing: .12em; }
.bdch-coming-soon span { font-size: .78rem; font-weight: 900; text-shadow: 0 2px 5px #000; white-space: nowrap; }
.bdch-play--locked { color: #a6bbc6; background: #e5edf0; }
.bdch-note { margin: 24px 0 0; color: #557487; text-align: center; font-size: .82rem; font-weight: 700; }

.bee-daily-challenge-view { width: 100%; }
.bdch-toolbar { position: sticky; top: 0; z-index: 20; min-height: 58px; }
.bdch-toolbar a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 9px; color: white !important; background: rgba(255,255,255,.12); font-size: .82rem; font-weight: 900; text-decoration: none !important; }
.bdch-toolbar a:focus-visible { outline: 3px solid var(--bdch-gold); outline-offset: 2px; }
.bdch-toolbar strong { font-size: .8rem; text-align: right; }
.bdch-activity-slot { min-height: 60vh; }
.bdch-unavailable { max-width: 620px; margin: 48px auto; padding: 20px; border-radius: 14px; color: #762f35; background: #fff0f1; font-weight: 800; text-align: center; }

@media (max-width: 680px) {
  .bee-daily-challenge-hub.br-activity-shell { width: min(100% - 16px, 560px); margin: 12px auto; border-radius: 20px; }
  .bdch-header { min-height: 58px; padding: 10px 14px; }
  .bdch-menu-label { padding: 6px 8px; font-size: .57rem; }
  .bdch-stage { padding: 22px 14px 28px; }
  .bdch-intro { margin-bottom: 20px; padding-inline: 4px; }
  .bdch-grid { grid-template-columns: 1fr; }
  .bdch-card { border-radius: 18px; }
  .bdch-copy { padding: 17px 17px 14px; }
  .bdch-toolbar { align-items: center; padding: 10px 12px; }
  .bdch-toolbar strong { max-width: 48%; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bdch-card--active { transition: none; }
  .bdch-loader-ring { animation: none; }
}
