/* ===== MANABI GACHA - Main Stylesheet ===== */

:root {
  --gold: #FFD700;
  --gold-dark: #B8860B;
  --gold-glow: rgba(255,215,0,0.3);
  --purple: #7B2FBE;
  --purple-light: #A855F7;
  --purple-dark: #5B21B6;
  --purple-glow: rgba(123,47,190,0.3);
  --deep: #0D0D1A;
  --surface: #16162A;
  --card: #1E1E38;
  --card-hover: #262650;
  --text: #F0F0FF;
  --text-dim: #C0C0D8;
  --muted: #8888AA;
  --teal: #00E5C8;
  --teal-dark: #00B09E;
  --pink: #FF4FA3;
  --orange: #FF8C00;
  --red: #EF4444;
  --line-green: #06C755;
  --border: rgba(123,47,190,0.25);
  --border-light: rgba(255,255,255,0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-glow-purple: 0 0 24px rgba(123,47,190,0.4);
  --shadow-glow-gold: 0 0 24px rgba(255,215,0,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--deep);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== Utility Classes ===== */
.text-gold { color: var(--gold) !important; }
.text-bold { font-weight: 700 !important; }
.text-purple { color: var(--purple-light) !important; }

/* ===== OVERLAY (Onboarding / Help) ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13,13,26,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ===== ONBOARDING ===== */
.onboarding-container {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.onboard-step { display: none; animation: fadeIn .4s ease; }
.onboard-step.active { display: block; }
.onboard-visual { position: relative; margin-bottom: 28px; }
.onboard-icon-wrap {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: white;
  box-shadow: var(--shadow-glow-purple);
  position: relative;
  z-index: 2;
}
.onboard-icon-wrap.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
.onboard-icon-wrap.gold-glow {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  box-shadow: var(--shadow-glow-gold);
}
.sparkle-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid var(--purple-light);
  opacity: 0;
  animation: ringPulse 2s ease-in-out infinite;
}
.sparkle-ring.gold { border-color: var(--gold); }

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 24px rgba(123,47,190,0.4); transform: scale(1); }
  50% { box-shadow: 0 0 48px rgba(123,47,190,0.7); transform: scale(1.05); }
}
@keyframes ringPulse {
  0% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(1.4); opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboard-title {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.onboard-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 24px;
}
.onboard-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  max-width: 280px;
}
.onboard-feat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.onboard-feat i { color: var(--purple-light); font-size: 16px; width: 20px; text-align: center; }

/* Onboard Form */
.onboard-form { max-width: 320px; margin: 0 auto; }
.input-field {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.input-field:focus { border-color: var(--purple-light); }
.input-field::placeholder { color: var(--muted); }
.input-hint { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Theme Select */
.theme-select-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
}
.theme-chip {
  background: var(--card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-chip:hover { border-color: var(--purple); }
.theme-chip.selected {
  background: rgba(123,47,190,0.2);
  border-color: var(--purple-light);
  box-shadow: 0 0 12px rgba(123,47,190,0.3);
}
.theme-chip i { font-size: 14px; }

/* Gift */
.gift-cards { margin-top: 12px; }
.gift-ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1A0A00;
  font-size: 28px;
  font-weight: 900;
  padding: 20px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow-gold);
  animation: pulseGold 2s ease-in-out infinite;
}
@keyframes pulseGold {
  0%,100% { box-shadow: 0 0 24px rgba(255,215,0,0.3); }
  50% { box-shadow: 0 0 48px rgba(255,215,0,0.6); }
}

/* Onboard Nav */
.onboard-nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.onboard-dots { display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all .3s;
}
.dot.active {
  background: var(--purple-light);
  box-shadow: 0 0 8px var(--purple-glow);
  width: 28px;
  border-radius: 5px;
}
.onboard-next {
  width: 100%;
  max-width: 300px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(123,47,190,0.4);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(123,47,190,0.5); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-premium {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1A0A00;
  border: none;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 900;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,140,0,0.4);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-premium:hover { transform: translateY(-2px); }

.btn-line {
  background: var(--line-green);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(6,199,85,0.4);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-full { width: 100%; }

.icon-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* ===== HELP GUIDE ===== */
.help-container {
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
}
.help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.help-header h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
.help-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.help-num {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}
.help-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.help-text { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ===== TOP BAR ===== */
#topBar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-left { display: flex; align-items: center; gap: 8px; }
.app-logo {
  font-family: 'Zen Dots', cursive;
  font-size: 20px;
  background: linear-gradient(90deg, var(--gold), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.top-right { display: flex; align-items: center; gap: 8px; }

.gacha-ticket-badge {
  background: rgba(255,215,0,0.12);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .2s;
}
.gacha-ticket-badge:hover { background: rgba(255,215,0,0.2); }

.user-stage-badge {
  background: rgba(0,229,200,0.1);
  border: 1px solid rgba(0,229,200,0.3);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== SECTIONS ===== */
section {
  display: none;
  padding: 20px 16px 100px;
  max-width: 520px;
  margin: 0 auto;
  animation: fadeIn .3s ease;
}
section.active { display: block; }

.section-head { margin-bottom: 16px; }
.section-tag {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--purple-light);
  text-transform: uppercase;
  font-weight: 700;
}
.section-head h3 {
  font-size: 20px;
  font-weight: 900;
  margin-top: 4px;
}

/* ===== HOME ===== */
.home-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.greeting-text { font-size: 16px; font-weight: 700; }
.streak-badge {
  background: linear-gradient(135deg, rgba(255,140,0,0.15), rgba(255,79,163,0.1));
  border: 1px solid rgba(255,140,0,0.3);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Daily Mission */
.daily-mission-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
}
.mission-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mission-items { display: flex; flex-direction: column; gap: 8px; }
.mission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.mission-item:last-child { border-bottom: none; }
.mission-check { font-size: 16px; color: var(--muted); }
.mission-check.done { color: var(--teal); }
.mission-check.done i::before { content: "\f058"; font-weight: 900; }
.mission-text { flex: 1; font-size: 13px; }
.mission-reward {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  background: rgba(255,215,0,0.1);
  padding: 3px 8px;
  border-radius: 8px;
}

/* Topic Grid */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.topic-card {
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .2s;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.topic-card:hover { transform: scale(1.03); }
.topic-card.selected {
  box-shadow: 0 0 0 2px var(--gold), 0 0 20px var(--gold-glow);
}
.topic-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 70px; height: 70px;
  border-radius: 50%;
  opacity: 0.12;
  background: white;
}
.topic-card .topic-icon { font-size: 24px; margin-bottom: 6px; }
.topic-card .topic-name { font-size: 13px; font-weight: 700; color: #fff; }
.topic-card .topic-count { font-size: 10px; color: rgba(255,255,255,0.6); }

.t-education { background: linear-gradient(135deg, #7B2FBE, #4A1DB8); }
.t-fortune { background: linear-gradient(135deg, #B8282D, #7A0E63); }
.t-coaching { background: linear-gradient(135deg, #0D7C59, #0A5C8C); }
.t-english { background: linear-gradient(135deg, #B86B00, #8C3A00); }
.t-money { background: linear-gradient(135deg, #1A5C8C, #0D3D6E); }
.t-mindful { background: linear-gradient(135deg, #5C1A7A, #3D0D5C); }

/* Gacha CTA */
.gacha-cta-area { margin-bottom: 28px; }
.gacha-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 28px rgba(255,215,0,0.3);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
}
.gacha-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,215,0,0.4); }
.gacha-cta-icon { font-size: 24px; color: #1A0A00; }
.gacha-cta-text {
  font-family: 'Zen Dots', cursive;
  font-size: 18px;
  color: #1A0A00;
  font-weight: 700;
}
.gacha-cta-sub { font-size: 11px; color: rgba(26,10,0,0.7); margin-top: 2px; }

.gacha-multi-btns { display: flex; gap: 8px; margin-top: 10px; }
.multi-btn {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.multi-btn:hover { border-color: var(--purple-light); }
.multi-btn.premium { border-color: var(--gold); color: var(--gold); }
.multi-btn i { font-size: 16px; }
.multi-bonus { font-size: 9px; color: var(--teal); }
.multi-btn.premium .multi-bonus { color: var(--gold); }

/* Pickup GT */
.pickup-gt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .2s;
}
.pickup-gt-card:hover { border-color: var(--purple-light); transform: translateY(-2px); }
.pickup-avatar {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--purple-light), var(--teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.pickup-info { flex: 1; }
.pickup-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.gt-badge {
  background: var(--gold);
  color: #1A0A00;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 1px;
}
.pickup-role { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pickup-stat { font-size: 11px; color: var(--pink); margin-top: 4px; }
.pickup-rarity {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.pickup-rarity span { font-size: 16px; font-weight: 900; }

/* ===== GACHA SCREEN ===== */
.gacha-state { display: none; }
.gacha-state.active { display: block; }

.gacha-theme-label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gacha-type-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.gacha-type {
  flex: 1;
  background: var(--card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
}
.gacha-type:hover { border-color: var(--purple); }
.gacha-type.active {
  border-color: var(--purple-light);
  background: rgba(123,47,190,0.15);
  box-shadow: 0 0 16px rgba(123,47,190,0.3);
}
.type-icon { font-size: 22px; margin-bottom: 4px; color: var(--purple-light); }
.type-name { font-size: 14px; font-weight: 700; }
.type-cost { font-size: 11px; color: var(--muted); margin-top: 2px; }
.type-bonus {
  font-size: 9px;
  color: var(--teal);
  font-weight: 700;
  margin-top: 4px;
}
.type-bonus.gold { color: var(--gold); }

/* Gacha Sphere */
.gacha-sphere-container {
  text-align: center;
  padding: 20px 0;
  cursor: pointer;
}
.gacha-sphere {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    #fff 0%, rgba(255,255,255,0.3) 20%,
    var(--purple) 50%, #2D0060 100%);
  margin: 0 auto;
  position: relative;
  box-shadow:
    0 0 40px rgba(168,85,247,0.7),
    0 0 80px rgba(123,47,190,0.4),
    inset 0 -10px 30px rgba(0,0,0,0.3);
  animation: floatSphere 3s ease-in-out infinite;
  transition: all .3s;
}
.gacha-sphere:hover { transform: scale(1.05); }
@keyframes floatSphere {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.sphere-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
}
.sphere-shine {
  position: absolute;
  top: 22px; left: 32px;
  width: 40px; height: 28px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.6), transparent);
  border-radius: 50%;
}
.sphere-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.3);
  animation: ringPulse 2s ease-in-out infinite;
}

.gacha-particles {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gacha-tap-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* Rarity Rates */
.rarity-rates-box {
  background: rgba(30,30,56,0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 16px 0;
}
.rates-title {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rarity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rarity-label {
  font-size: 11px;
  font-weight: 700;
  width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rarity-label.ssgt { color: var(--gold); }
.rarity-label.premier { color: var(--purple-light); }
.rarity-label.rare { color: #6BB8FF; }
.rarity-label.normal { color: #aaa; }
.rarity-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.rarity-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}
.rarity-pct { font-size: 10px; color: var(--muted); width: 32px; text-align: right; }

.pity-info {
  font-size: 11px;
  color: var(--teal);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gacha-remaining {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* Gacha Animation */
.gacha-anim-container {
  text-align: center;
  padding: 80px 0;
}
.gacha-anim-sphere {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 24px;
  position: relative;
}
.gacha-anim-sphere.spinning {
  animation: spinBurst 1.5s ease-in-out;
}
.gacha-anim-sphere.reveal-normal { background: radial-gradient(circle, #888 0%, #374151 100%); box-shadow: 0 0 40px rgba(107,114,128,0.5); }
.gacha-anim-sphere.reveal-rare { background: radial-gradient(circle, #6BB8FF 0%, #1D4ED8 100%); box-shadow: 0 0 40px rgba(59,130,246,0.5); }
.gacha-anim-sphere.reveal-premier { background: radial-gradient(circle, #A855F7 0%, #7B2FBE 100%); box-shadow: 0 0 60px rgba(168,85,247,0.7); }
.gacha-anim-sphere.reveal-ssgt { background: radial-gradient(circle, #FFD700 0%, #B8860B 100%); box-shadow: 0 0 80px rgba(255,215,0,0.8); }

@keyframes spinBurst {
  0% { transform: scale(1) rotate(0); }
  50% { transform: scale(0.5) rotate(360deg); }
  70% { transform: scale(1.3) rotate(720deg); }
  100% { transform: scale(1) rotate(720deg); }
}

.gacha-anim-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--muted);
}

/* Result */
.result-container, .multi-result-container { padding: 12px 0; }

.result-card-display {
  background: linear-gradient(135deg, #2D1B5E 0%, #1A0A4A 100%);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.6s ease-out;
}
.result-card-display.rarity-normal { border: 2px solid #6B7280; }
.result-card-display.rarity-rare { border: 2px solid #3B82F6; box-shadow: 0 0 30px rgba(59,130,246,0.3); }
.result-card-display.rarity-premier { border: 2px solid var(--purple-light); box-shadow: 0 0 40px rgba(168,85,247,0.4); }
.result-card-display.rarity-ssgt { border: 2px solid var(--gold); box-shadow: 0 0 50px rgba(255,215,0,0.4); }

@keyframes cardReveal {
  from { transform: scale(0.7) rotateY(90deg); opacity: 0; }
  to { transform: scale(1) rotateY(0deg); opacity: 1; }
}

.result-card-display::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 40px);
}

.card-rarity-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 10px;
  letter-spacing: 1px;
}
.badge-normal { background: #6B7280; color: white; }
.badge-rare { background: #3B82F6; color: white; }
.badge-premier { background: var(--purple-light); color: white; }
.badge-ssgt { background: var(--gold); color: #1A0A00; }

.card-gt-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  color: white;
}
.card-gt-name { font-size: 15px; font-weight: 700; }
.card-gt-role { font-size: 11px; color: var(--gold); }

.card-thumb {
  background: linear-gradient(135deg, #1A0A4A, #0D0D2A);
  border-radius: var(--radius-md);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.card-thumb .play-icon {
  width: 44px; height: 44px;
  background: rgba(255,215,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1A0A00;
  box-shadow: 0 0 20px rgba(255,215,0,0.5);
}
.card-duration {
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: 10px;
  color: var(--gold);
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-content-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; position: relative; z-index: 1; }
.card-content-sub { font-size: 11px; color: var(--muted); position: relative; z-index: 1; }

.result-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-watch {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(123,47,190,0.4);
  width: 100%;
}
.btn-skip {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--muted);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  width: 100%;
}

/* Multi Result Grid */
.multi-result-header {
  text-align: center;
  margin-bottom: 20px;
}
.multi-result-header h3 { font-size: 20px; font-weight: 900; }
.multi-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.multi-card-mini {
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.4s ease-out;
  cursor: pointer;
}
.multi-card-mini.rarity-normal { background: linear-gradient(135deg,#374151,#4B5563); border: 1px solid #6B7280; }
.multi-card-mini.rarity-rare { background: linear-gradient(135deg,#1D4ED8,#3B82F6); border: 1px solid #6BB8FF; }
.multi-card-mini.rarity-premier { background: linear-gradient(135deg,#5B21B6,#7B2FBE); border: 1px solid var(--purple-light); }
.multi-card-mini.rarity-ssgt { background: linear-gradient(135deg,#B8860B,#D4A20A); border: 1px solid var(--gold); box-shadow: 0 0 12px var(--gold-glow); }
.multi-card-icon { font-size: 28px; margin-bottom: 4px; }
.multi-card-rarity { font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.multi-card-name { font-size: 9px; color: rgba(255,255,255,0.8); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== VIDEO WATCH ===== */
.video-player-container { margin-bottom: 16px; }
.video-placeholder {
  background: linear-gradient(135deg, #1A0A4A, #0D0D2A);
  border-radius: var(--radius-lg);
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-overlay {
  text-align: center;
  color: white;
}
.video-overlay i { font-size: 48px; color: var(--gold); cursor: pointer; }
.video-timer { font-size: 12px; color: var(--muted); margin-top: 8px; }
.video-progress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
}
.video-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  width: 0%;
  transition: width .3s;
  border-radius: 0 2px 2px 0;
}

.video-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.video-ctrl-btn {
  background: var(--purple);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-speed { display: flex; gap: 4px; }
.speed-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
}
.speed-btn.active { background: var(--purple); color: white; border-color: var(--purple-light); }

.video-info-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.video-gt-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.video-gt-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}
.video-gt-info { flex: 1; }
.video-gt-name { font-size: 13px; font-weight: 700; }
.video-gt-role-text { font-size: 11px; color: var(--muted); }
.video-gt-line-btn {
  background: var(--line-green);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Review */
.review-locked {
  background: rgba(30,30,56,0.6);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.review-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  animation: fadeIn .4s ease;
}
.review-form h4 {
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-hint { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.rating-stars {
  display: flex;
  gap: 8px;
  font-size: 28px;
  justify-content: center;
  margin-bottom: 14px;
}
.rating-stars i {
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all .15s;
}
.rating-stars i.active { color: var(--gold); transform: scale(1.1); }
.rating-stars i:hover { color: var(--gold); }

.review-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 12px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  resize: vertical;
  outline: none;
  margin-bottom: 14px;
}
.review-textarea:focus { border-color: var(--purple-light); }
.review-textarea::placeholder { color: var(--muted); }

/* Card Acquired */
.card-acquired-container {
  text-align: center;
  padding: 20px 0;
}
.acquired-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  padding: 6px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}
.acquired-badge.gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #1A0A00; }
.acquired-badge.purple { background: linear-gradient(135deg, var(--purple), var(--purple-light)); color: white; }

.confetti-container {
  font-size: 40px;
  margin-bottom: 12px;
}

/* ===== COLLECTION ===== */
.collection-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  border: 1px solid var(--border-light);
}
.stat-icon { font-size: 18px; margin-bottom: 4px; color: var(--muted); }
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.stat-num.gold { color: var(--gold); }
.stat-num.purple { color: var(--purple-light); }
.stat-num.teal { color: var(--teal); }
.stat-num.pink { color: var(--pink); }
.stat-label { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* Stage Progress */
.stage-progress-card {
  background: linear-gradient(135deg, rgba(123,47,190,0.12), rgba(0,229,200,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.stage-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stage-current { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.stage-next { font-size: 11px; color: var(--muted); }
.stage-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.stage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 3px;
  transition: width .5s ease;
}
.stage-hint { font-size: 11px; color: var(--teal); margin-top: 6px; }

/* Collection Filters */
.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Noto Sans JP', sans-serif;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.active {
  background: var(--purple);
  border-color: var(--purple-light);
  color: white;
}

/* Collection Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.mini-card {
  border-radius: var(--radius-md);
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s;
}
.mini-card:hover { transform: scale(1.05); }
.mini-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.mini-card-icon { font-size: 26px; margin-bottom: 4px; }
.mini-card-name { font-size: 9px; color: rgba(255,255,255,0.7); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.mini-rarity {
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.5);
  white-space: nowrap;
}

.mc-ssgt { background: linear-gradient(135deg, #B8860B, #D4A20A); border: 1px solid var(--gold); }
.mc-premier { background: linear-gradient(135deg, #5B21B6, #7B2FBE); border: 1px solid var(--purple-light); }
.mc-rare { background: linear-gradient(135deg, #1D4ED8, #3B82F6); border: 1px solid #6BB8FF; }
.mc-normal { background: linear-gradient(135deg, #374151, #4B5563); border: 1px solid #6B7280; }
.mc-locked {
  background: rgba(30,30,56,0.5);
  border: 1px dashed rgba(255,255,255,0.12);
  opacity: 0.5;
}
.mc-duplicate {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(255,79,163,0.8);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 6px;
}

/* Card Exchange */
.exchange-banner {
  background: linear-gradient(135deg, rgba(255,79,163,0.1), rgba(255,140,0,0.08));
  border: 1px solid rgba(255,79,163,0.3);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all .2s;
}
.exchange-banner:hover { border-color: var(--pink); }
.exchange-banner > i:first-child { font-size: 20px; color: var(--pink); }
.exchange-banner > i:last-child { color: var(--muted); }
.exchange-title { font-size: 13px; font-weight: 700; }
.exchange-sub { font-size: 11px; color: var(--muted); }

/* ===== GT SECTION ===== */
.election-banner {
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(123,47,190,0.1));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.election-crown { font-size: 32px; color: var(--gold); }
.election-text { flex: 1; min-width: 140px; }
.election-title { font-size: 14px; font-weight: 900; color: var(--gold); }
.election-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.election-timer {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: var(--pink);
  background: rgba(255,79,163,0.1);
  padding: 6px 12px;
  border-radius: 8px;
}

.gt-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .2s;
  cursor: pointer;
}
.gt-card:hover { border-color: var(--purple); }
.gt-rank-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 900;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.gt-rank-1 { color: var(--gold); }
.gt-rank-2 { color: #C0C0C0; }
.gt-rank-3 { color: #CD7F32; }
.gt-rank-other { color: var(--muted); }

.gt-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}
.gt-info { flex: 1; }
.gt-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.gt-specialty { font-size: 11px; color: var(--muted); margin-top: 2px; }
.gt-fans { font-size: 11px; color: var(--pink); margin-top: 3px; display: flex; align-items: center; gap: 4px; }

.gt-oshi-btn {
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}
.gt-oshi-btn:hover, .gt-oshi-btn.active {
  background: var(--pink);
  color: white;
}

/* Content Ranking */
.content-rank-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-rank-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: var(--muted);
  width: 28px;
  text-align: center;
}
.content-rank-info { flex: 1; }
.content-rank-title { font-size: 12px; font-weight: 700; }
.content-rank-gt { font-size: 10px; color: var(--muted); margin-top: 2px; }
.content-rank-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== CONTEST & TEAM ===== */
.contest-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.contest-header {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contest-timer {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--pink);
  margin-bottom: 16px;
}
.contest-my-score {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.my-rank, .my-score {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}
.rank-num, .score-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 900;
  display: block;
}
.rank-num { color: var(--teal); }
.score-num { color: var(--gold); }
.rank-label, .score-label { font-size: 10px; color: var(--muted); }

.contest-ranking { margin-bottom: 16px; }
.contest-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}
.contest-rank-pos { width: 24px; font-weight: 700; font-family: 'Orbitron', sans-serif; }
.contest-rank-name { flex: 1; }
.contest-rank-score { color: var(--gold); font-weight: 700; }

.contest-rewards { border-top: 1px solid var(--border-light); padding-top: 12px; }
.reward-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
}
.reward-rank { color: var(--muted); }
.reward-prize { color: var(--gold); font-weight: 700; }

/* Team */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.team-header { margin-bottom: 12px; }
.team-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.team-members { font-size: 11px; color: var(--muted); margin-top: 4px; }
.team-score { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.team-rank {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
}
.team-total { font-size: 13px; color: var(--muted); }
.team-ranking { border-top: 1px solid var(--border-light); padding-top: 10px; }

/* ===== SHOP / SUBSCRIPTION ===== */
.ticket-status {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.ticket-icon { font-size: 28px; color: var(--gold); }
.ticket-count { font-size: 14px; font-weight: 700; }
.ticket-hint { font-size: 11px; color: var(--muted); margin-top: 2px; }

.sub-hero { text-align: center; padding: 20px 0; }
.sub-crown { font-size: 52px; color: var(--gold); }
.sub-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0 4px;
}
.sub-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; }

.plan-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.plan-card {
  background: var(--card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  position: relative;
  transition: all .2s;
}
.plan-card:hover { border-color: var(--purple); }
.plan-card.recommended {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(255,215,0,0.12);
}
.plan-card.selected { border-color: var(--purple-light); box-shadow: var(--shadow-glow-purple); }
.plan-rec-tag {
  position: absolute;
  top: -1px; right: 16px;
  background: var(--gold);
  color: #1A0A00;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 1px;
}
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.plan-name { font-size: 15px; font-weight: 700; }
.plan-cycle { font-size: 10px; color: var(--muted); margin-top: 2px; }
.plan-price-area { text-align: right; }
.plan-price { font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 900; color: var(--gold); }
.plan-price-sub { font-size: 10px; color: var(--muted); }
.plan-features { display: flex; flex-direction: column; gap: 6px; }
.plan-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #ccc;
}
.plan-feature i { font-size: 12px; width: 16px; text-align: center; }
.plan-feature.ok i { color: var(--teal); }
.plan-feature.no { color: var(--muted); }
.plan-feature.no i { color: rgba(255,255,255,0.2); }

.sub-fine { font-size: 10px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Ticket Shop */
.ticket-shop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ticket-item {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.ticket-item:hover { border-color: var(--purple); transform: translateY(-2px); }
.ticket-item.popular { border-color: var(--teal); }
.ticket-popular-tag {
  position: absolute;
  top: -1px; right: 10px;
  background: var(--teal);
  color: #000;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
}
.ticket-item.premium-ticket { border-color: var(--gold); }
.ticket-qty { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ticket-qty i { color: var(--gold); }
.ticket-price { font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 700; color: var(--gold); }
.ticket-save { font-size: 10px; color: var(--teal); margin-top: 4px; }

/* ===== LINE INTEGRATION ===== */
.line-connect-card {
  background: rgba(6,199,85,0.08);
  border: 1px solid rgba(6,199,85,0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.line-logo-wrap {
  width: 48px; height: 48px;
  background: var(--line-green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(6,199,85,0.4);
}
.line-title { font-size: 15px; font-weight: 700; }
.line-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.notif-preview-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notification-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.notif-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-light);
  position: relative;
}
.notif-dot {
  position: absolute;
  top: 12px; right: 12px;
  width: 8px; height: 8px;
  background: var(--line-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(6,199,85,0.6);
}
.notif-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-icon.green { background: rgba(6,199,85,0.15); color: var(--line-green); }
.notif-icon.gold { background: rgba(255,215,0,0.12); color: var(--gold); }
.notif-icon.purple { background: rgba(123,47,190,0.2); color: var(--purple-light); }
.notif-title { font-size: 12px; font-weight: 700; }
.notif-body { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.gt-line-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.gt-line-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gt-line-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.gt-line-name { font-size: 13px; font-weight: 700; flex: 1; }
.gt-line-btn {
  background: var(--line-green);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
}

.referral-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}
.referral-hint i { color: var(--gold); }

/* ===== BOTTOM NAV ===== */
#bottomNav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,26,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 max(14px, env(safe-area-inset-bottom));
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  opacity: 0.4;
  transition: all .2s;
  font-size: 18px;
  color: var(--text);
  padding: 4px 8px;
}
.bnav-item span { font-size: 9px; color: var(--muted); }
.bnav-item.active { opacity: 1; }
.bnav-item.active i { color: var(--purple-light); }
.bnav-item.active span { color: var(--purple-light); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  transition: transform .4s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  max-width: 90%;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--teal); color: var(--teal); }
.toast.warning { border-color: var(--orange); color: var(--orange); }
.toast.error { border-color: var(--red); color: var(--red); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(13,13,26,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeIn .3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gacha-type-selector { flex-wrap: wrap; }
  .gacha-type { min-width: calc(33% - 6px); }
  .collection-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat-num { font-size: 18px; }
}

@media (min-width: 520px) {
  section { padding: 24px 20px 100px; }
}
