/* 学生バンドコンテスト 投票 共通スタイル（まちおとフェス ポップデザイン準拠） */
:root {
  --ink: #231815;
  --paper: #fffdf3;
  --cream: #fff8dc;
  --yellow: #f9f871;
  --gold: #ffd700;
  --orange: #ff8c00;
  --purple: #5e17eb;
  --cyan: #00c2ff;
  --pink: #ff3d7f;
  --green: #2bd67b;
  --muted: #6b625c;
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --font: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --display: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.7;
  background: linear-gradient(160deg, var(--purple) 0%, #3a3fe0 45%, var(--cyan) 100%) fixed;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: repeating-conic-gradient(#fff 0 25%, transparent 0 50%);
  background-size: 44px 44px;
  z-index: 0;
}
body.is-light { background: var(--cream); }
body.is-light::before { display: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 20px 16px 120px; }
.wrap--wide { max-width: 1180px; }

/* ヘッダー */
.hero { text-align: center; color: #fff; padding: 18px 0 8px; }
.hero__eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2em;
  padding: 4px 14px;
  border-radius: 999px;
}
.hero__title {
  font-family: var(--display); font-weight: 900;
  font-weight: 400;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.25;
  margin: 12px 0 6px;
  text-shadow: 3px 3px 0 var(--ink);
  letter-spacing: .02em;
}
.hero__lead { margin: 0; font-weight: 700; font-size: 15px; }
.hero__lead strong { background: var(--yellow); color: var(--ink); padding: 0 6px; border-radius: 4px; }

/* カード */
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 20px 0;
}
.card h2 { font-family: var(--display); font-weight: 900; font-size: 20px; margin: 0 0 12px; line-height: 1.3; }

/* ステータスバッジ */
.status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px auto 0; padding: 10px 18px;
  width: fit-content; max-width: 100%;
  background: var(--ink); color: #fff;
  border-radius: 999px; font-weight: 900; font-size: 14px;
}
.status__dot { width: 12px; height: 12px; border-radius: 50%; background: #999; flex: none; }
.status.is-open .status__dot { background: var(--green); box-shadow: 0 0 0 0 rgba(43,214,123,.8); animation: ping 1.4s infinite; }
.status.is-closed .status__dot { background: var(--pink); }
.status__timer { font-family: var(--display); font-weight: 900; color: var(--yellow); font-variant-numeric: tabular-nums; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(43,214,123,.8); } 100% { box-shadow: 0 0 0 12px rgba(43,214,123,0); } }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 16px;
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, background .12s;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn--big { font-size: 20px; padding: 16px 28px; width: 100%; font-family: var(--display); font-weight: 900; letter-spacing: .04em; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--pink { background: var(--pink); color: #fff; }
.btn--green { background: var(--green); }
.btn--white { background: #fff; }
.btn--sm { font-size: 13px; padding: 6px 14px; min-height: 36px; }

/* 固定フッターアクション */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(35,24,21,.55) 40%);
}
.dock__inner { max-width: 720px; margin: 0 auto; }

/* モーダル */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(35,24,21,.7);
}
.modal.is-open { display: flex; animation: fadeIn .2s; }
.modal__box {
  width: 100%; max-width: 460px; max-height: 90vh; overflow: auto;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink); padding: 24px 20px;
  animation: popIn .35s cubic-bezier(.2, 1.6, .4, 1);
}
.modal__title { font-family: var(--display); font-weight: 900; font-size: 22px; margin: 0 0 12px; text-align: center; line-height: 1.35; }
.modal__actions { display: grid; gap: 10px; margin-top: 18px; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { transform: scale(.7); opacity: 0; } }

.note { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

.toast {
  position: fixed; left: 50%; top: 16px; z-index: 60;
  transform: translateX(-50%) translateY(-150%);
  background: var(--ink); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; border: 2px solid #fff;
  transition: transform .3s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
