/* =========================================================
   きせつの イベント（/season と、ホームのカード）
   テーマ色は style 属性の CSS 変数でもらう:
     --season-a / --season-b = 背景のグラデーション、--season-accent = わくと バーの色
   ========================================================= */

/* ---------- ヒーロー ---------- */
.season-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 20px;
  background: linear-gradient(135deg, var(--season-a, #eef2ff), var(--season-b, #fdf4ff));
  border: 2px solid var(--season-accent, #4f46e5); border-radius: 24px;
}
.season-hero.is-complete { box-shadow: 0 0 0 4px #fde68a, var(--shadow); }
.season-hero > .body { position: relative; flex: 1; min-width: 0; }
.season-icon {
  position: relative; flex: none; width: 104px; height: 104px; border-radius: 30px; background: #fff;
  display: grid; place-items: center; font-size: 3.8rem; line-height: 1; box-shadow: var(--shadow);
  animation: season-bob 3.2s ease-in-out infinite;
}
.season-icon .illust-icon { width: 104px; height: 104px; border-radius: 30px; }
.season-name { margin: 8px 0 4px; font-size: 1.5rem; }
.season-chip { background: #fff; color: var(--text); border: 1px solid var(--season-accent, #4f46e5); font-size: .82rem; padding: 4px 12px; }
.season-chip.is-last { background: #fef3c7; border-color: #f59e0b; }
/* 背景に うすく ちらす かざり */
.season-deco { position: absolute; inset: 0; pointer-events: none; }
.season-deco span { position: absolute; font-size: 2.6rem; opacity: .16; animation: season-float 6s ease-in-out infinite; }
.season-deco span:nth-child(1) { top: -6px; right: 8%; }
.season-deco span:nth-child(2) { bottom: -10px; right: 30%; font-size: 3.4rem; animation-delay: -2s; }
.season-deco span:nth-child(3) { top: 34%; right: -8px; font-size: 4.2rem; animation-delay: -4s; }
@keyframes season-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes season-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- お題 ---------- */
.season-tasks .mission-row { min-height: 68px; }
.season-tasks .btn, .season-tasks .btn-sm { min-height: 48px; padding: 8px 16px; }
.season-tasks .mbar > span { background: var(--season-accent, var(--primary)); }
.season-tasks .mission-row.is-done .mbar > span { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.season-tasks .mission-row.is-claimed .mbar > span { background: var(--success); }
.season-rule { font-size: .8rem; }
.season-staff { border-left: 5px solid var(--primary); }

/* ---------- とくべつなバッジ ---------- */
.season-badge { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 2px dashed var(--border); }
.season-badge.is-earned { border: 2px solid #fcd34d; background: linear-gradient(135deg, #fffbeb, #fff); }
.season-badge .badge-item { flex: none; width: 88px; height: 88px; display: grid; place-items: center; padding: 0; border-radius: 24px; }
.season-badge .badge-item .ico { font-size: 2.8rem; line-height: 1; }
.season-badge .badge-item .illust-icon { width: 72px; height: 72px; }
.season-badge > .body { flex: 1 1 200px; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.season-badge > .body b { font-size: 1.15rem; }
.season-badge > .body .chip { white-space: normal; }
.season-badge > .btn { min-height: 48px; }

/* ---------- つぎの イベント・おやすみ中 ---------- */
.season-next {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--season-a, #eef2ff), var(--season-b, #fdf4ff));
  border: 2px dashed var(--season-accent, #4f46e5);
}
.season-next .ico { flex: none; width: 60px; height: 60px; border-radius: 18px; background: #fff; display: grid; place-items: center; font-size: 2.1rem; line-height: 1; }
.season-next .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.season-next .body b { font-size: 1.1rem; }
.season-next .body small { color: var(--text); }
.season-rest-links { justify-content: center; }
.season-rest-links .btn { min-height: 48px; }

/* ---------- ホームのカード ---------- */
.season-card {
  min-height: 72px; margin-top: 12px; border-color: var(--season-accent, #4f46e5);
  background: linear-gradient(135deg, var(--season-a, #eef2ff), var(--season-b, #fdf4ff));
}
.season-card:hover { text-decoration: none; }
.season-card.is-hot { border-color: #f59e0b; box-shadow: 0 0 0 3px #fde68a; background: linear-gradient(135deg, var(--season-a, #fffbeb), var(--season-b, #fff)); }
.season-card .mbar { background: rgba(255, 255, 255, .8); margin-top: 4px; }
.season-card .mbar > span { background: var(--season-accent, var(--primary)); }
.season-card .go { color: var(--text); }

@media (max-width: 600px) {
  .season-hero { flex-direction: column; text-align: center; padding: 16px; }
  .season-hero .row { justify-content: center; }
  .season-icon { width: 88px; height: 88px; font-size: 3.2rem; }
  .season-icon .illust-icon { width: 88px; height: 88px; }
  .season-name { font-size: 1.3rem; }
  .season-tasks .mission-row .btn, .season-tasks .mission-row form { margin-left: auto; }
  .season-badge > .btn { width: 100%; }
  .season-next { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .season-icon, .season-deco span { animation: none; }
}
