/* ========== カオス LP styles ========== */
:root {
  --c1: #ff0080;
  --c2: #ff8c00;
  --c3: #ffd700;
  --c4: #00ff88;
  --c5: #00d4ff;
  --c6: #8a2be2;
  --c7: #ff1493;
  --gold-1: #fff5b8;
  --gold-2: #ffd700;
  --gold-3: #b8860b;
  --red-1: #ff5a3a;
  --red-2: #c20000;
  --red-3: #5a0000;
}

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

html, body {
  overflow-x: hidden;
  background: #0a0014;
  color: #fff;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  font-weight: 900;
}

body {
  background:
    radial-gradient(ellipse at top, #2d0066 0%, #0a0014 50%, #000 100%);
  min-height: 100vh;
  position: relative;
}

/* 虹色アニメーション背景 */
.rainbow-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    #ff0080, #ff8c00, #ffd700, #00ff88, #00d4ff, #8a2be2, #ff1493, #ff0080
  );
  opacity: 0.15;
  animation: rotate-bg 20s linear infinite;
  filter: blur(60px);
}

@keyframes rotate-bg {
  to { transform: rotate(360deg); }
}

/* スターパーティクル背景 */
.stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* セクションコンテナ */
.section {
  position: relative;
  z-index: 5;
  padding: 100px 24px;
}

/* マーキー */
.marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--c1), var(--c3), var(--c4), var(--c5), var(--c6), var(--c1));
  background-size: 200% 100%;
  animation: bg-slide 8s linear infinite;
  border-top: 4px solid #fff;
  border-bottom: 4px solid #fff;
  padding: 18px 0;
}
.marquee-track {
  display: inline-block;
  animation: marquee-x 24s linear infinite;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000;
  letter-spacing: 0.05em;
}
.marquee.reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 30s;
}
@keyframes marquee-x {
  to { transform: translateX(-50%); }
}
@keyframes bg-slide {
  to { background-position: -200% 0; }
}

/* メイン3Dタイトル */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 60px 16px;
}

.title-amount {
  font-family: "Hachi Maru Pop", "Reggae One", "Noto Sans JP", sans-serif;
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  /* 赤メタリック立体 */
  background: linear-gradient(180deg, #ff8a3a 0%, #ff2a2a 30%, #c00 60%, #5a0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px var(--gold-2);
  filter:
    drop-shadow(0 0 12px rgba(255, 0, 80, 0.6))
    drop-shadow(6px 6px 0 #000)
    drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
  text-shadow:
    0 1px 0 #ffd700,
    0 2px 0 #c9a000,
    0 3px 0 #b39000,
    0 4px 0 #a08000,
    0 5px 0 #8c7000,
    0 6px 8px rgba(0,0,0,0.8);
  display: inline-block;
  transform-origin: center;
  animation: pop-bounce 1.6s ease-in-out infinite;
}

.title-want {
  font-family: "Reggae One", "Hachi Maru Pop", "Noto Sans JP", sans-serif;
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 900;
  background: linear-gradient(180deg, #fff 0%, #d8e8f0 50%, #6090a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px #345;
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
  display: inline-block;
  transform: skewX(-8deg);
  animation: shake 2.4s ease-in-out infinite;
}

@keyframes pop-bounce {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  25% { transform: scale(1.04) rotate(1deg); }
  50% { transform: scale(0.98) rotate(-1.5deg); }
  75% { transform: scale(1.03) rotate(1.5deg); }
}
@keyframes shake {
  0%, 100% { transform: skewX(-8deg) translateX(0); }
  25% { transform: skewX(-6deg) translateX(-4px) rotate(-1deg); }
  75% { transform: skewX(-10deg) translateX(4px) rotate(1deg); }
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(20px, 3vw, 36px);
  background: linear-gradient(90deg, var(--c1), var(--c3), var(--c4), var(--c5), var(--c6));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bg-slide 4s linear infinite;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* キラキラ */
.sparkle {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  font-size: 30px;
  animation: sparkle-anim 1.5s ease-in-out infinite;
}
@keyframes sparkle-anim {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

/* ボタン群 */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
}

.btn-mega {
  position: relative;
  display: inline-block;
  padding: 22px 50px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c1));
  background-size: 300% 100%;
  border: 4px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  text-shadow: 2px 2px 0 #000;
  box-shadow:
    0 0 0 4px #000,
    0 8px 0 #000,
    0 0 30px rgba(255, 0, 128, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
  animation: bg-slide 3s linear infinite, btn-bounce 1s ease-in-out infinite;
  transition: transform 0.15s;
  letter-spacing: 0.05em;
}
.btn-mega:hover {
  transform: scale(1.08) rotate(-2deg);
}
.btn-mega:active {
  transform: scale(0.95);
}
@keyframes btn-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.btn-gold {
  background: linear-gradient(180deg, #fff5b8 0%, #ffd700 40%, #b8860b 100%);
  color: #5a0000;
  text-shadow: 1px 1px 0 #fff;
  border-color: #5a0000;
  animation: btn-bounce 1s ease-in-out infinite;
}

/* セクションタイトル */
.section-title {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  width: 100%;
}
.section-title .inner {
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #ffd700 50%, #ff0080 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  filter: drop-shadow(4px 4px 0 #000) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
  transform: rotate(-2deg);
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.02); }
}

/* カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 3px solid;
  border-image: linear-gradient(135deg, var(--c1), var(--c3), var(--c5), var(--c6)) 1;
  padding: 28px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: rotate-bg 6s linear infinite;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px) rotate(-1deg) scale(1.03);
}
.card-emoji {
  font-size: 64px;
  margin-bottom: 12px;
  display: inline-block;
  animation: card-float 3s ease-in-out infinite;
}
.card-num {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 80px;
  font-weight: 900;
  opacity: 0.15;
  background: linear-gradient(180deg, var(--c1), var(--c5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-title {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--c3), var(--c4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-desc {
  font-size: 15px;
  color: #ddd;
  font-weight: 400;
  line-height: 1.7;
}
@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* カウンター */
.counter-wrap {
  text-align: center;
  background: #000;
  border: 6px solid;
  border-image: linear-gradient(90deg, var(--c1), var(--c3), var(--c4), var(--c5), var(--c6)) 1;
  padding: 60px 30px;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 0 80px rgba(255, 0, 128, 0.4);
}
.counter-label {
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--c3);
  margin-bottom: 16px;
  letter-spacing: 0.2em;
}
.counter-num {
  font-family: "Orbitron", "Courier New", monospace;
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 900;
  background: linear-gradient(180deg, #ff8a3a, #ff0000, #5a0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold-2);
  text-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.counter-unit {
  display: inline-block;
  font-size: 0.5em;
  color: var(--gold-2);
  -webkit-text-stroke: 0;
  margin-left: 0.2em;
}

/* 計算機 */
.calc {
  background: linear-gradient(135deg, #1a0033, #000);
  border: 4px solid var(--c3);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.4);
}
.calc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: 20px;
}
.calc input[type="number"] {
  flex: 1;
  min-width: 120px;
  font-size: 28px;
  padding: 12px 18px;
  background: #000;
  color: var(--c3);
  border: 3px solid var(--c5);
  border-radius: 8px;
  font-family: "Orbitron", monospace;
  font-weight: 900;
  text-align: right;
}
.calc input[type="number"]:focus {
  outline: none;
  border-color: var(--c1);
  box-shadow: 0 0 20px var(--c1);
}
.calc-result {
  margin-top: 30px;
  padding: 24px;
  background: #000;
  border: 3px dashed var(--c4);
  border-radius: 12px;
  text-align: center;
}
.calc-result-num {
  font-family: "Orbitron", monospace;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  background: linear-gradient(90deg, var(--c1), var(--c3), var(--c4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-all;
}

/* ランキング */
.ranking {
  max-width: 900px;
  margin: 0 auto;
}
.rank-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 28px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border-left: 8px solid var(--c1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.rank-item:hover {
  transform: translateX(8px);
}
.rank-item.gold { border-left-color: var(--gold-2); background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.02)); }
.rank-item.silver { border-left-color: #c0c0c0; }
.rank-item.bronze { border-left-color: #cd7f32; }
.rank-num {
  font-size: 64px;
  font-weight: 900;
  font-family: "Orbitron", monospace;
  background: linear-gradient(180deg, var(--c3), var(--c1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
}
.rank-name {
  font-size: 22px;
}
.rank-name small {
  display: block;
  font-size: 14px;
  color: #aaa;
  font-weight: 400;
  margin-top: 4px;
}
.rank-amount {
  font-family: "Orbitron", monospace;
  font-size: 28px;
  color: var(--c3);
}

/* FAQ */
.faq {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--c3); }
.faq-q {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
}
.faq-q::before {
  content: "Q.";
  color: var(--c1);
  margin-right: 14px;
  font-size: 28px;
  font-family: "Orbitron", monospace;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  background: var(--c3);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 28px;
  color: #ccc;
  font-weight: 400;
  line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 28px 22px 28px;
}
.faq-a::before {
  content: "A.";
  color: var(--c4);
  margin-right: 12px;
  font-size: 24px;
  font-weight: 900;
  font-family: "Orbitron", monospace;
}

/* 札束レイン */
.rain-emoji {
  position: fixed;
  top: -10vh;
  font-size: 40px;
  pointer-events: none;
  z-index: 3;
  animation: fall linear infinite;
  user-select: none;
}
@keyframes fall {
  to { transform: translateY(120vh) rotate(720deg); }
}

/* ぐるぐる帯 */
.spinner-strip {
  position: relative;
  z-index: 5;
  background: repeating-linear-gradient(
    45deg,
    var(--c1) 0 40px,
    var(--c3) 40px 80px,
    var(--c4) 80px 120px,
    var(--c5) 120px 160px,
    var(--c6) 160px 200px
  );
  height: 60px;
  background-size: 282px 60px;
  animation: stripe-move 2s linear infinite;
}
@keyframes stripe-move {
  to { background-position: 282px 0; }
}

/* グリッチテキスト */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glitch::before {
  color: var(--c1);
  transform: translate(-3px, 0);
  mix-blend-mode: screen;
  animation: glitch-1 2s infinite;
}
.glitch::after {
  color: var(--c5);
  transform: translate(3px, 0);
  mix-blend-mode: screen;
  animation: glitch-2 2.5s infinite;
}
@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 90% 0); }
  20% { clip-path: inset(40% 0 30% 0); }
  40% { clip-path: inset(70% 0 10% 0); }
  60% { clip-path: inset(20% 0 60% 0); }
  80% { clip-path: inset(50% 0 20% 0); }
}
@keyframes glitch-2 {
  0%, 100% { clip-path: inset(80% 0 0 0); }
  20% { clip-path: inset(10% 0 70% 0); }
  40% { clip-path: inset(50% 0 30% 0); }
  60% { clip-path: inset(30% 0 50% 0); }
  80% { clip-path: inset(60% 0 10% 0); }
}

/* タイムライン */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--c1), var(--c3), var(--c4), var(--c5), var(--c6));
  transform: translateX(-50%);
  border-radius: 3px;
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}
.tl-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border: 4px solid #000;
  box-shadow: 0 0 20px var(--c3);
  margin: 0 auto;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 20px var(--c3); transform: scale(1); }
  50% { box-shadow: 0 0 40px var(--c1); transform: scale(1.1); }
}
.tl-card {
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--c5);
  padding: 18px 22px;
  border-radius: 12px;
}
.tl-card h4 {
  font-size: 22px;
  color: var(--c3);
  margin-bottom: 6px;
}
.tl-card p {
  font-weight: 400;
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
}
.tl-item:nth-child(odd) .tl-card:first-child { display: block; text-align: right; }
.tl-item:nth-child(odd) .tl-card:last-child { visibility: hidden; }
.tl-item:nth-child(even) .tl-card:first-child { visibility: hidden; }

/* レーダー */
.testimonial {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), rgba(0, 212, 255, 0.1));
  border: 2px dashed var(--c3);
  padding: 30px;
  border-radius: 16px;
  position: relative;
}
.testimonial::before {
  content: "❝";
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 80px;
  color: var(--c3);
  font-family: serif;
}
.testimonial p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  font-style: italic;
}
.testimonial .who {
  margin-top: 14px;
  text-align: right;
  color: var(--c3);
  font-size: 16px;
}

/* フッター */
footer {
  position: relative;
  z-index: 5;
  padding: 60px 24px 40px;
  text-align: center;
  background: #000;
  border-top: 4px solid var(--c3);
}
footer .disclaimer {
  font-size: 13px;
  color: #888;
  font-weight: 400;
  max-width: 700px;
  margin: 20px auto;
  line-height: 1.7;
}

/* 巨大絵文字浮遊 */
.float-emoji {
  position: absolute;
  font-size: 80px;
  pointer-events: none;
  animation: float-wobble 6s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes float-wobble {
  0%, 100% { transform: translate(0,0) rotate(-15deg); }
  33% { transform: translate(20px, -20px) rotate(15deg); }
  66% { transform: translate(-20px, 10px) rotate(-25deg); }
}

/* 値段カウントの上昇エフェクト */
@keyframes float-up {
  0% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -100px) scale(1.5); }
}
.float-up {
  position: absolute;
  left: 50%;
  font-size: 40px;
  font-weight: 900;
  color: var(--c3);
  text-shadow: 2px 2px 0 #000;
  pointer-events: none;
  animation: float-up 1.2s ease-out forwards;
}

/* レスポンシブ */
@media (max-width: 720px) {
  .tl-item { grid-template-columns: 1fr; }
  .tl-item .tl-card { visibility: visible !important; text-align: left !important; }
  .timeline::before { left: 30px; }
  .tl-dot { margin: 0; }
  .rank-item { grid-template-columns: 60px 1fr; }
  .rank-amount { grid-column: span 2; text-align: right; }
  .marquee-track { font-size: 22px; }
}

/* ガチャ風 */
.gacha {
  text-align: center;
  margin: 40px auto;
  max-width: 480px;
}
.gacha-machine {
  width: 280px;
  height: 320px;
  margin: 0 auto 24px;
  position: relative;
  background: linear-gradient(180deg, var(--c1), var(--c5));
  border-radius: 30px 30px 20px 20px;
  border: 6px solid #fff;
  box-shadow: 0 0 50px rgba(255, 0, 128, 0.6);
}
.gacha-globe {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
  border: 4px solid #fff;
  overflow: hidden;
}
.gacha-balls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 6px;
  padding: 30px;
  animation: shake-gacha 0.4s ease-in-out infinite;
}
.gacha-ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}
@keyframes shake-gacha {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -3px); }
}
.gacha-result {
  font-size: 60px;
  margin-top: 20px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--c3), var(--c1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  filter: drop-shadow(2px 2px 0 #000);
  min-height: 80px;
}

/* スクロールヒント */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3em;
  animation: pulse-hint 2s ease-in-out infinite;
}
@keyframes pulse-hint {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 8px); }
}

/* スタンプ */
.stamp {
  display: inline-block;
  padding: 14px 28px;
  border: 4px double currentColor;
  color: var(--c1);
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-8deg);
  letter-spacing: 0.1em;
  background: rgba(255, 0, 128, 0.05);
  border-radius: 4px;
  text-shadow: 1px 1px 0 #000;
}

/* ===== スロット ===== */
.slot-machine {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ff0040 0%, #b00020 50%, #5a0010 100%);
  border: 8px solid;
  border-image: linear-gradient(180deg, #fff5b8, #ffd700, #b8860b) 1;
  border-radius: 24px;
  padding: 30px;
  box-shadow:
    0 0 60px rgba(255, 0, 64, 0.6),
    inset 0 0 40px rgba(0, 0, 0, 0.6);
  position: relative;
}
.slot-top {
  text-align: center;
  font-family: "Reggae One", sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  background: linear-gradient(180deg, #fff5b8 0%, #ffd700 50%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #5a0000;
  filter: drop-shadow(2px 2px 0 #000);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.slot-lights {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.slot-light {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff, inset 0 0 4px #ff0;
  animation: light-blink 0.5s ease-in-out infinite;
}
.slot-light:nth-child(1) { animation-delay: 0s; background:#ff0080; box-shadow: 0 0 12px #ff0080; }
.slot-light:nth-child(2) { animation-delay: 0.1s; background:#ff8c00; box-shadow: 0 0 12px #ff8c00; }
.slot-light:nth-child(3) { animation-delay: 0.2s; background:#ffd700; box-shadow: 0 0 12px #ffd700; }
.slot-light:nth-child(4) { animation-delay: 0.3s; background:#00ff88; box-shadow: 0 0 12px #00ff88; }
.slot-light:nth-child(5) { animation-delay: 0.4s; background:#00d4ff; box-shadow: 0 0 12px #00d4ff; }
.slot-light:nth-child(6) { animation-delay: 0.5s; background:#8a2be2; box-shadow: 0 0 12px #8a2be2; }
.slot-light:nth-child(7) { animation-delay: 0.6s; background:#ff1493; box-shadow: 0 0 12px #ff1493; }
@keyframes light-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #000;
  padding: 16px;
  border: 4px solid #ffd700;
  border-radius: 12px;
  box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.5);
}
.slot-reel {
  height: 140px;
  background: linear-gradient(180deg, #1a0000, #000, #1a0000);
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  border: 2px solid #ffd700;
}
.slot-reel::before, .slot-reel::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 30px;
  z-index: 5;
  pointer-events: none;
}
.slot-reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
}
.slot-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent);
}
.slot-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}
.slot-symbol {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  flex-shrink: 0;
}
.slot-line {
  position: absolute;
  left: -4px; right: -4px;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ff0040, #ffd700, #ff0040, transparent);
  z-index: 4;
  transform: translateY(-50%);
  box-shadow: 0 0 20px #ff0040;
  animation: line-pulse 0.6s ease-in-out infinite;
}
@keyframes line-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.slot-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.slot-stop {
  background: linear-gradient(180deg, #ff5a3a, #c20000);
  color: #fff;
  border: 4px solid #fff;
  font-size: 22px;
  font-weight: 900;
  padding: 16px 30px;
  border-radius: 12px;
  cursor: pointer;
  text-shadow: 2px 2px 0 #000;
  box-shadow: 0 6px 0 #000, inset 0 -6px 0 rgba(0,0,0,0.3);
  font-family: inherit;
  letter-spacing: 0.1em;
  transition: transform 0.1s;
}
.slot-stop:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #000, inset 0 -6px 0 rgba(0,0,0,0.3);
}
.slot-stop:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.slot-spin-btn {
  background: linear-gradient(180deg, #fff5b8, #ffd700, #b8860b);
  color: #5a0000;
  border: 4px solid #5a0000;
  font-size: 26px;
  font-weight: 900;
  padding: 18px 50px;
  border-radius: 999px;
  cursor: pointer;
  text-shadow: 1px 1px 0 #fff;
  box-shadow: 0 6px 0 #5a0000, 0 0 30px rgba(255, 215, 0, 0.7);
  font-family: inherit;
  letter-spacing: 0.15em;
  transition: transform 0.1s;
  animation: spin-btn-glow 1.5s ease-in-out infinite;
}
@keyframes spin-btn-glow {
  0%, 100% { box-shadow: 0 6px 0 #5a0000, 0 0 30px rgba(255, 215, 0, 0.7); }
  50% { box-shadow: 0 6px 0 #5a0000, 0 0 60px rgba(255, 215, 0, 1); }
}
.slot-spin-btn:active { transform: translateY(4px); }
.slot-spin-btn:disabled { opacity: 0.5; cursor: not-allowed; animation: none; }

.slot-status {
  text-align: center;
  margin-top: 20px;
  font-size: 22px;
  font-weight: 900;
  min-height: 32px;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}
.slot-status.atsui {
  font-size: 36px;
  background: linear-gradient(90deg, #ff0080, #ffd700, #ff0080);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bg-slide 0.5s linear infinite;
  -webkit-text-stroke: 1px #fff;
}
.slot-credit {
  display: flex;
  justify-content: space-between;
  background: #000;
  border: 2px solid #ffd700;
  padding: 10px 18px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-family: "Orbitron", monospace;
  font-size: 18px;
}
.slot-credit span:last-child {
  color: #ffd700;
  font-weight: 900;
}
.slot-reel.atsui {
  animation: reel-shake 0.1s linear infinite;
  box-shadow: 0 0 30px #ff0080, inset 0 0 30px rgba(255, 0, 128, 0.5);
}
@keyframes reel-shake {
  0%, 100% { transform: translate(0,0); }
  25% { transform: translate(-2px,1px); }
  50% { transform: translate(2px,-1px); }
  75% { transform: translate(-1px,-2px); }
}

/* スロット周囲の演出オーバーレイ */
.atsui-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255,0,128,0.4), transparent 70%);
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  animation: atsui-pulse 0.5s ease-out;
}
@keyframes atsui-pulse {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* BGMコントロール */
.bgm-ctrl {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: linear-gradient(135deg, #ff0080, #00d4ff);
  border: 3px solid #fff;
  color: #fff;
  font-weight: 900;
  font-family: inherit;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.1em;
  transition: transform 0.15s;
}
.bgm-ctrl:hover { transform: scale(1.05); }
.bgm-ctrl .eq {
  display: inline-flex;
  gap: 2px;
  align-items: end;
  height: 14px;
}
.bgm-ctrl .eq span {
  width: 3px;
  background: #fff;
  border-radius: 2px;
  animation: eq-bar 0.6s ease-in-out infinite;
}
.bgm-ctrl .eq span:nth-child(1) { height: 60%; animation-delay: 0s; }
.bgm-ctrl .eq span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.bgm-ctrl .eq span:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.bgm-ctrl .eq span:nth-child(4) { height: 80%; animation-delay: 0.45s; }
@keyframes eq-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.bgm-ctrl.muted .eq span { animation-play-state: paused; opacity: 0.3; }

/* progress bars */
.bar {
  background: rgba(255,255,255,0.1);
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c1), var(--c3), var(--c4), var(--c5));
  background-size: 200% 100%;
  animation: bg-slide 3s linear infinite;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  color: #000;
  font-weight: 900;
}
