:root {
  --bg: #0d0716;
  --bg2: #160a2a;
  --panel: rgba(32, 16, 58, 0.72);
  --panel-solid: #1d0f36;
  --ink: #fff5fa;
  --muted: #c0aede;
  --pink: #ff2e7e;
  --pink-soft: #ff71b8;
  --sakura: #ffb7d5;
  --purple: #9146ff;
  --purple-deep: #5b21b6;
  --cyan: #22d3ee;
  --gold: #ffd23e;
  --red: #eb0400;
  --line: rgba(255, 113, 184, 0.28);
  --display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(800px 420px at 15% -5%, rgba(145, 70, 255, 0.38), transparent 60%),
    radial-gradient(700px 420px at 88% 8%, rgba(255, 46, 126, 0.30), transparent 58%),
    radial-gradient(900px 500px at 50% 108%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, #09040f 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- background ---------- */
.bg-grid {
  position: fixed; left: -20%; right: -20%; bottom: -6%; height: 42vh;
  pointer-events: none; opacity: 0.5;
  background:
    linear-gradient(rgba(145, 70, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 126, 0.28) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 30%, transparent 92%);
}
.petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute; top: -4%; width: 13px; height: 10px;
  background: linear-gradient(135deg, var(--sakura), var(--pink-soft));
  border-radius: 90% 4px 90% 4px; opacity: 0;
  animation: fall linear infinite;
}
.petals i:nth-child(1) { left: 6%; animation-duration: 11s; animation-delay: 0s; }
.petals i:nth-child(2) { left: 18%; animation-duration: 14s; animation-delay: 3s; width: 9px; }
.petals i:nth-child(3) { left: 34%; animation-duration: 12s; animation-delay: 6s; }
.petals i:nth-child(4) { left: 52%; animation-duration: 15s; animation-delay: 1.5s; width: 10px; }
.petals i:nth-child(5) { left: 66%; animation-duration: 10s; animation-delay: 5s; }
.petals i:nth-child(6) { left: 78%; animation-duration: 13s; animation-delay: 2.5s; width: 9px; }
.petals i:nth-child(7) { left: 88%; animation-duration: 12s; animation-delay: 7s; }
.petals i:nth-child(8) { left: 44%; animation-duration: 16s; animation-delay: 8s; width: 8px; }
@keyframes fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.85; }
  50% { transform: translate3d(3.5vw, 52vh, 0) rotate(220deg); }
  92% { opacity: 0.7; }
  100% { transform: translate3d(-2vw, 108vh, 0) rotate(430deg); opacity: 0; }
}

/* ---------- shared ---------- */
.neon {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: 0.95; letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 113, 184, 0.35), 0 0 36px rgba(145, 70, 255, 0.28);
}
.neon span {
  display: block;
  background: linear-gradient(92deg, var(--sakura) 0%, var(--pink-soft) 32%, var(--purple) 68%, var(--cyan) 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kana { margin: 8px 0 0; font-family: var(--display); font-weight: 700; letter-spacing: 0.42em; color: var(--sakura); font-size: 0.95rem; }
.event-line {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap;
  color: var(--sakura); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.event-line::before, .event-line::after {
  content: ""; width: 18px; height: 1px; flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 213, 0.7));
}
.event-line::after { background: linear-gradient(90deg, rgba(255, 183, 213, 0.7), transparent); }
.event-jp { font-family: var(--display); color: rgba(255, 245, 250, 0.75); letter-spacing: 0.18em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100%, 340px); min-height: 72px; padding: 10px 18px 12px;
  display: grid; place-items: center; gap: 0; cursor: pointer; text-decoration: none;
  font-family: var(--sans); color: #fff; border-radius: 20px; border: 2px solid rgba(255,255,255,.35);
}
.btn-main { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: 0.04em; line-height: 1.1; }
.btn-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.92; }
.btn-pull {
  background: linear-gradient(180deg, #ff71b8 0%, var(--pink) 42%, #b5179e 78%, var(--purple-deep) 115%);
  border-color: #ffb7d5;
  box-shadow: 0 6px 0 #7e0f5c, 0 18px 38px rgba(255, 46, 126, 0.42), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -14px 22px rgba(91,33,182,.35);
  text-shadow: 0 2px 8px rgba(90, 0, 50, 0.45);
}
.btn-pull::after {
  content: ""; position: absolute; inset: -40% auto -40% -28%; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: rotate(12deg); animation: shine 2.8s ease-in-out infinite; z-index: -1;
}
@keyframes shine { 0%, 55% { left: -28%; } 85%, 100% { left: 112%; } }
.btn-pull:active { transform: translateY(4px); box-shadow: 0 2px 0 #7e0f5c, 0 10px 24px rgba(255,46,126,.4), inset 0 2px 0 rgba(255,255,255,.5); }
.btn-pull:disabled { cursor: wait; filter: saturate(0.65) brightness(0.9); }
.btn-enter {
  background: linear-gradient(180deg, #a970ff, var(--purple) 55%, #6d28d9);
  border-color: #d6bcfa;
  box-shadow: 0 6px 0 #3b1470, 0 18px 38px rgba(145, 70, 255, 0.42), inset 0 2px 0 rgba(255,255,255,.5);
}
.btn-enter:active { transform: translateY(4px); box-shadow: 0 2px 0 #3b1470, 0 10px 24px rgba(145,70,255,.4); }
.btn-again {
  background: rgba(23, 10, 43, 0.85); border-color: rgba(34, 211, 238, 0.65); color: #a5f3fc;
  box-shadow: 0 5px 0 rgba(8, 47, 73, 0.9), inset 0 0 22px rgba(34, 211, 238, 0.12);
}
.btn[hidden] { display: none; }

/* ---------- gate ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 18px; position: relative; }
.gate[hidden], .app[hidden] { display: none; }
.gate-card {
  position: relative; width: min(100%, 460px); text-align: center;
  padding: 36px 30px 28px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(52, 22, 92, 0.88), rgba(18, 8, 36, 0.92));
  border: 2px solid rgba(255, 113, 184, 0.55);
  box-shadow: 0 0 0 6px rgba(145, 70, 255, 0.14), 0 0 54px rgba(255, 46, 126, 0.28), 0 34px 80px rgba(0,0,0,.55);
}
.gate-card .btn { width: 100%; }
.age-row { display: flex; gap: 12px; align-items: center; text-align: left; margin: 22px 0; padding: 13px 14px; border-radius: 16px; background: rgba(9, 4, 20, 0.55); border: 1px solid var(--line); }
.age-row p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.age-badge {
  flex: 0 0 auto; font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  color: #2a1503; background: linear-gradient(180deg, #ffe985, var(--gold)); padding: 8px 10px; border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 210, 62, 0.45); transform: rotate(-4deg);
}
.leave { display: inline-block; margin-top: 15px; color: var(--muted); font-weight: 600; }

/* ---------- app / HUD (Twitch bar) ---------- */
.app { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.hud {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px clamp(14px, 3vw, 34px);
  background: rgba(14, 6, 28, 0.82); backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(145, 70, 255, 0.45);
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(140deg, var(--pink-soft), var(--pink) 45%, var(--purple));
  font-size: 1.35rem; color: #fff; transform: rotate(-6deg);
  box-shadow: 0 0 22px rgba(255, 46, 126, 0.55), inset 0 2px 0 rgba(255,255,255,.5);
}
.brand-name { display: grid; line-height: 1.02; }
.brand-name b { font-family: var(--display); font-weight: 800; font-size: 1.18rem; }
.brand-name small { color: var(--sakura); letter-spacing: 0.22em; font-size: 0.66rem; font-weight: 700; }
.hud-pills { display: flex; gap: 8px; }
.pill {
  margin: 0; display: flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(52, 28, 96, 0.95), rgba(20, 10, 40, 0.95));
  border: 1px solid rgba(196, 181, 253, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 18px rgba(0, 0, 0, 0.3);
}
.pill-icon {
  width: 33px; height: 33px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.95rem;
}
.icon-live { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(74, 222, 128, 0.55); }
.icon-live::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}
.icon-gem {
  color: #331b00; background: linear-gradient(160deg, #fff3b0, var(--gold) 55%, #f59e0b);
  border: 1px solid #ffedb0; box-shadow: 0 0 14px rgba(255, 210, 62, 0.45);
  text-shadow: none;
}
.pill-meta { display: grid; line-height: 1.02; }
.pill-meta b { font-family: var(--display); font-weight: 800; font-size: 1.08rem; }
.pill-meta small { color: var(--muted); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }
.pill-gems { border-color: rgba(255, 210, 62, 0.55); }
.pill-gems .pill-meta b { color: var(--gold); }

/* ---------- layout ---------- */
.layout {
  position: relative; z-index: 2; flex: 1;
  width: min(1260px, calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: 315px minmax(330px, 430px) 255px;
  justify-content: center; align-items: center; gap: 22px 34px; padding: 24px 0 14px;
}
.hero .lede { margin: 16px 0 20px; max-width: 29ch; color: var(--muted); font-size: 1.02rem; }

.rates-card, .panel {
  border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}
.rates-card { padding: 16px; }
.rates-title, .panel h2 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.rates-jp { font-family: var(--display); color: var(--sakura); letter-spacing: 0.2em; }
.rates { list-style: none; margin: 13px 0 0; padding: 0; display: grid; gap: 8px; }
.rates li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(10, 5, 22, 0.55); border: 1px solid rgba(255,255,255,.09); }
.rates b { font-family: var(--display); font-weight: 800; text-align: center; padding: 4px 0; border-radius: 9px; background: #475569; color: #fff; }
.rar-r b { background: linear-gradient(180deg, #38bdf8, #2563eb); }
.rar-sr b { background: linear-gradient(180deg, #c084fc, #7e22ce); }
.rar-ssr b { background: linear-gradient(180deg, #ffe985, #f59e0b); color: #331b00; box-shadow: 0 0 16px rgba(255, 210, 62, .5); }
.stars { color: var(--gold); letter-spacing: 0.14em; font-size: 0.82rem; text-shadow: 0 0 8px rgba(255,210,62,.6); }
.rates small { color: var(--muted); font-weight: 600; }
.rates-note { margin: 11px 2px 0; color: var(--muted); font-size: 0.82rem; }

/* ---------- machine (casino slot) ---------- */
.machine-wrap { display: grid; justify-items: center; }
.stage { position: relative; padding-top: 34px; }
.stage::before {
  content: ""; position: absolute; inset: 8% -12% 2%; border-radius: 50%;
  background: conic-gradient(from 40deg, rgba(255,46,126,.5), rgba(145,70,255,.5), rgba(34,211,238,.38), rgba(255,210,62,.4), rgba(255,46,126,.5));
  filter: blur(34px); opacity: 0.55; animation: aura 9s linear infinite;
}
@keyframes aura { to { transform: rotate(360deg); } }
.stage:has(.card.charging)::before { animation-duration: 1.1s; opacity: 0.85; }
.stage.r-ssr::before { background: conic-gradient(from 0deg, #ffd23e, #ff71b8, #ffd23e, #fff3b0, #ffd23e); opacity: 0.9; }
.jackpot {
  position: absolute; z-index: 4; top: 0; left: 50%; margin: 0; white-space: nowrap;
  transform: translate(-50%, 0) rotate(-2deg) scale(0.7); opacity: 0; pointer-events: none;
  font-family: var(--display); font-weight: 800; letter-spacing: 0.08em; color: #331b00;
  background: linear-gradient(180deg, #fff3b0, var(--gold) 60%, #f59e0b);
  padding: 7px 16px; border-radius: 999px; border: 2px solid #fff7cc;
  box-shadow: 0 0 30px rgba(255, 210, 62, 0.75);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,1.5,.3,1);
}
.stage.r-ssr .jackpot { opacity: 1; transform: translate(-50%, 0) rotate(-2deg) scale(1); }
.machine {
  position: relative; z-index: 2; width: min(360px, 88vw); padding: 12px 14px;
  border-radius: 32px;
  background: linear-gradient(180deg, #3b1470 0%, #22103f 38%, #150826 100%);
  border: 2px solid rgba(255, 113, 184, 0.75);
  box-shadow: 0 0 0 5px rgba(145,70,255,.22), 0 0 42px rgba(255,46,126,.35), 0 30px 60px rgba(0,0,0,.55), inset 0 2px 0 rgba(255,255,255,.28);
}
.stage.r-ssr .machine { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255,210,62,.25), 0 0 54px rgba(255,210,62,.55), 0 30px 60px rgba(0,0,0,.55); }
.marquee {
  height: 15px; margin: 1px 6px 10px; border-radius: 999px;
  background-image: radial-gradient(circle, #fff7cc 0 3.2px, #ffd23e 4.2px, rgba(255,210,62,.15) 6px, transparent 7px);
  background-size: 26px 15px; background-repeat: repeat-x; background-position: center;
  animation: bulbs 0.85s steps(2, jump-none) infinite;
}
.marquee:last-child { margin: 10px 6px 1px; }
@keyframes bulbs { 50% { filter: brightness(0.45) saturate(0.7); } }
.machine-shadow { width: 72%; height: 24px; margin: 10px auto 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.65), transparent 70%); filter: blur(5px); }

.card { perspective: 1200px; }
.card-inner { position: relative; aspect-ratio: 3 / 4.12; transform-style: preserve-3d; transition: transform .72s cubic-bezier(.2,.8,.25,1); }
.card.revealed .card-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 4px rgba(13,7,22,.55), 0 16px 34px rgba(0,0,0,.4);
}
.back {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 113, 184, 0.38), transparent 42%),
    radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.6px),
    linear-gradient(160deg, #4c1d95, #831843 58%, #1e1b4b);
  background-size: auto, 17px 17px, auto;
}
.capsule {
  width: 104px; height: 104px; border-radius: 50%; transform: rotate(-22deg);
  background: linear-gradient(180deg, #ff71b8 0 48%, #fdf4ff 49% 54%, rgba(224,242,254,.92) 55% 100%);
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 0 30px rgba(255, 113, 184, 0.65), inset -12px -14px 24px rgba(76, 29, 149, 0.28);
  display: grid; place-items: center;
}
.capsule i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #fbbf24 55%, #f59e0b); box-shadow: 0 0 14px rgba(255, 210, 62, .8); }
.back-big { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-size: 2.15rem; letter-spacing: 0.22em; text-shadow: 0 0 16px rgba(255,113,184,.75); }
.back-note { margin: 0; color: #fbcfe8; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.card.charging .card-inner { animation: bounceCard .55s ease-in-out infinite; }
@keyframes bounceCard { 50% { transform: translateY(-9px) rotate(-1deg); } }

.front { transform: rotateY(180deg); background: #170b28; }
.card.r-ssr .front { border-color: var(--gold); box-shadow: inset 0 0 0 4px rgba(51,27,0,.45), 0 0 30px rgba(255,210,62,.45); }
.card.r-sr .front { border-color: #c084fc; }
.card.r-r .front { border-color: #38bdf8; }
.front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: linear-gradient(160deg, #4c1d95, #170b28 65%); }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,7,22,.02) 34%, rgba(13,7,22,.55) 62%, rgba(13,7,22,.96) 84%); }
.live-badge {
  position: absolute; top: 12px; left: 12px; margin: 0; display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; padding: 5px 9px; border-radius: 7px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.rarity {
  position: absolute; top: 12px; right: 12px; margin: 0; min-width: 66px; padding: 6px 8px 7px;
  text-align: center; transform: rotate(5deg); border-radius: 12px; border: 2px solid currentColor;
  background: rgba(13, 7, 22, 0.72); backdrop-filter: blur(4px);
}
.rarity b, .rarity span { display: block; }
.rarity b { font-family: var(--display); font-size: 1.12rem; line-height: 1; letter-spacing: 0.08em; }
.rarity span { margin-top: 2px; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.card.r-ssr .rarity { color: var(--gold); } .card.r-sr .rarity { color: #e9d5ff; }
.card.r-r .rarity { color: #bae6fd; } .card.r-n .rarity { color: #e2e8f0; }
.card.revealed .rarity { animation: stamp .4s cubic-bezier(.2,1.4,.3,1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(10deg) scale(1.5); } to { opacity: 1; transform: rotate(5deg) scale(1); } }
.caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 15px 16px; }
.who, .subject, .chips { margin: 0; }
.who { color: #f9a8d4; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.caption h2 { margin: 3px 0 4px; font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1.05; overflow-wrap: anywhere; text-shadow: 0 3px 12px rgba(0,0,0,.65); }
.subject { color: rgba(255,245,250,.88); font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { margin-top: 8px; color: #ddd6fe; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; }

.actions { display: grid; justify-items: center; gap: 11px; margin-top: 16px; width: min(100%, 340px); }
.actions .btn { width: 100%; }
.error { min-height: 0; margin: 10px 0 0; color: #fda4af; font-weight: 600; text-align: center; }
.error:empty { display: none; }

/* ---------- side panels ---------- */
.side { display: grid; gap: 14px; align-content: center; }
.panel { padding: 16px; }
.panel h2 { margin-bottom: 12px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-weight: 600; }
.how li { display: flex; align-items: center; gap: 10px; }
.how b {
  width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(160deg, var(--pink-soft), var(--purple)); color: #fff; font-family: var(--display);
  box-shadow: 0 0 13px rgba(255, 46, 126, .45);
}
.history[hidden] { display: none; }
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini { position: relative; aspect-ratio: 3 / 4; border-radius: 13px; overflow: hidden; border: 2px solid rgba(255,255,255,.22); background: #24103f; }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini b {
  position: absolute; left: 5px; bottom: 5px; padding: 2px 6px; border-radius: 7px;
  background: rgba(13,7,22,.8); font-family: var(--display); font-size: 0.66rem; letter-spacing: .06em;
}
.mini.r-ssr { border-color: var(--gold); box-shadow: 0 0 13px rgba(255,210,62,.45); }
.mini.r-sr { border-color: #c084fc; } .mini.r-r { border-color: #38bdf8; }

footer { position: relative; z-index: 2; padding: 10px 18px calc(15px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 0.76rem; }
footer p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .layout { grid-template-columns: 280px minmax(320px, 410px); }
  .side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
  .reel { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 720px) {
  .brand-name small { display: none; }
  .pill { padding-right: 11px; }
  .pill-icon { width: 29px; height: 29px; }
  .pill-meta b { font-size: 0.98rem; }
  .layout { display: flex; flex-direction: column; align-items: center; width: min(480px, calc(100% - 24px)); padding-top: 16px; gap: 14px; }
  .hero { text-align: center; order: 1; }
  .hero .neon { font-size: 2.3rem; }
  .hero .neon span { display: inline; margin-left: 0.18em; }
  .hero .kana { margin-top: 4px; font-size: 0.78rem; }
  .hero .lede { display: none; }
  .rates-card { padding: 11px; text-align: left; }
  .rates { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
  .rates li { grid-template-columns: 1fr; justify-items: center; gap: 2px; padding: 7px 3px; text-align: center; }
  .rates b { width: 100%; font-size: 0.82rem; }
  .rates .stars { font-size: 0.58rem; letter-spacing: 0.04em; }
  .rates small { display: none; }
  .rates-note { display: none; }
  .machine-wrap { order: 2; width: 100%; }
  .stage { padding-top: 22px; }
  .machine { width: min(302px, 84vw); padding: 9px 11px; }
  .actions { margin-top: 11px; }
  .side { order: 3; width: 100%; display: grid; grid-template-columns: 1fr; }
  .how { display: none; }
  .reel { grid-template-columns: repeat(4, 1fr); }
  .btn-main { font-size: 1.14rem; }
}
@media (prefers-reduced-motion: reduce) {
  .petals i, .stage::before, .marquee, .btn-pull::after, .live-dot, .card.charging .card-inner, .card.revealed .rarity { animation: none; }
  .card-inner { transition: none; }
}
