@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #0a1628;
  color: #fff;
  min-height: 100vh;
}

/* ── PAGE WRAPPER ── */
.page {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ── HERO HEADER ── */
.hero {
  background: linear-gradient(160deg, #0d2356 0%, #0a3a8a 40%, #0d5abb 70%, #1169cc 100%);
  padding: 28px 20px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(100,180,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,80,200,0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative circuit dots top right */
.hero-deco {
  position: absolute;
  top: 12px; right: 14px;
  display: grid;
  grid-template-columns: repeat(6, 6px);
  gap: 4px;
}
.hero-deco span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(100,180,255,0.35);
  display: block;
}

.hero h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.vip-coin {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 72px;
  height: 72px;
  z-index: 2;
}

/* Gold coin SVG */
.vip-coin svg { width: 100%; height: 100%; }

/* ── SECTION: ご参加方法 ── */
.section-box {
  margin: 12px 10px;
  border-radius: 10px;
  overflow: hidden;
}

.section-head {
  background: linear-gradient(90deg, #1565c0, #1e88e5);
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.section-body {
  background: rgba(13,35,86,0.55);
  border: 1px solid rgba(30,100,220,0.35);
  border-top: none;
  padding: 14px 16px;
}

.howto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.howto-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.howto-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #42a5f5;
  font-size: 9px;
  top: 3px;
}

/* ── STAGE CARDS ── */
.stage-wrap {
  margin: 10px 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(30,100,220,0.3);
}

.stage-top {
  padding: 14px 16px 8px;
}

.stage-theme-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.stage-theme-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.stage-choose {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.stage-prizes-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0 0 14px;
  justify-content: center;
}

.prize-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.prize-img-box {
  width: 80px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-img-box img {
  max-width: 80px;
  max-height: 72px;
  object-fit: contain;
}

.prize-emoji {
  font-size: 38px;
  line-height: 1;
}

.prize-name {
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.4;
}

.prize-divider {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  padding-bottom: 20px;
  flex-shrink: 0;
}

/* Amazon box */
.amazon-box {
  background: #232f3e;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 42px;
}

.amazon-box svg { width: 56px; }

.prize-gift-note {
  font-size: 10.5px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  line-height: 1.4;
}

/* Stage CTA button */
.stage-btn {
  display: block;
  width: calc(100% - 0px);
  padding: 11px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.stage-btn-1 { background: linear-gradient(90deg, #0d7a5a, #0fa876); }
.stage-btn-2 { background: linear-gradient(90deg, #1050b8, #1976d2); }
.stage-btn-3 { background: linear-gradient(90deg, #6b1fa0, #9c27b0); }

.stage-btn.done { background: linear-gradient(90deg, #2e7d32, #43a047) !important; }

.stage-note {
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  padding: 10px 16px;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── SPECIAL / CORDIA SECTION ── */
.cordia-wrap {
  margin: 10px 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10,20,50,0.7);
  border: 1px solid rgba(30,80,200,0.3);
  padding: 20px 16px;
}

.cordia-heading {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cordia-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.cordia-logo {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  background: rgba(0,20,60,0.8);
  border: 1px solid rgba(50,100,220,0.4);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
}

.cordia-logo-icon { font-size: 26px; }

.cordia-logo-text {
  font-size: 11px;
  font-weight: 700;
  color: #64b5f6;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.2;
}

.cordia-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cordia-perks li {
  font-size: 12.5px;
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.cordia-perks li::before {
  content: '•';
  color: #42a5f5;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.cordia-release {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cordia-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, #1050b8, #1976d2);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
  cursor: default;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.cordia-note {
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  margin-bottom: 14px;
}

/* Auto badges */
.auto-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-badge {
  border-radius: 20px;
  padding: 9px 16px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
}

.auto-badge-1 { background: linear-gradient(90deg, #0d5abb, #1976d2); }
.auto-badge-2 { background: linear-gradient(90deg, #0a4da0, #1565c0); }
.auto-badge-3 { background: linear-gradient(90deg, #063a80, #0d5abb); }

/* ── IMPORTANT NOTICE ── */
.notice-box {
  margin: 10px 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10,20,50,0.7);
  border: 1px solid rgba(30,80,200,0.3);
}

.notice-head {
  background: linear-gradient(90deg, #1565c0, #1e88e5);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.notice-body {
  padding: 14px 16px;
}

.notice-body p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 2px;
}

/* ── CHECKIN OVERLAY STATE ── */
.checkin-state-bar {
  margin: 10px 10px 0;
  border-radius: 10px;
  background: rgba(13,35,86,0.7);
  border: 1px solid rgba(30,100,220,0.35);
  padding: 14px 16px;
  text-align: center;
}

.streak-display {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.streak-num {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.streak-days {
  font-size: 14px;
  color: #42a5f5;
  margin-bottom: 14px;
}

.main-checkin-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(90deg, #1565c0, #1e88e5, #42a5f5);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(21,101,192,0.5);
}

.main-checkin-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.main-checkin-btn:active { transform: translateY(0); }
.main-checkin-btn.done {
  background: linear-gradient(90deg, #2e7d32, #388e3c, #43a047);
  box-shadow: 0 4px 20px rgba(46,125,50,0.4);
  cursor: default;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1b5e20;
  border: 1px solid #4caf50;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #a5d6a7;
  z-index: 999;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
