/* =====================================================================
 * BUGRI（バグリ）— ダークネオン デザインシステム（mockup）
 * ZONe（SFネオン） × DOPA（オリパ導線） × 復元レア度トークン
 * =================================================================== */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* 背景・面 */
  --bg:        #06070f;   /* ディープスペース */
  --bg-grad-1: #0a0c1c;
  --bg-grad-2: #050610;
  --panel:     #0d1020;   /* セクション面 */
  --card:      #141832;   /* カード面 */
  --card-2:    #1b2046;
  --line:      rgba(120,140,255,.12);
  --line-2:    rgba(120,140,255,.22);

  /* ネオン */
  --cyan:   #22e3ff;      /* ZONe シグネチャ */
  --blue:   #3aa0ff;
  --purple: #b06bff;
  --pink:   #ff5fd2;
  --gold:   #ffcc33;      /* 価格・SSR強調 */

  /* テキスト */
  --text:     #f2f4ff;
  --text-sub: #8b90b5;
  --text-dim: #5a5f82;

  /* レア度 */
  --ssr: linear-gradient(135deg, #ffcc33 0%, #ff7ad1 38%, #b06bff 64%, #22e3ff 100%);
  --sr:  #b06bff;
  --r:   #3aa0ff;
  --n:   #7c819f;

  /* 効果 */
  --glow-cyan: 0 0 24px rgba(34,227,255,.45);
  --glow-gold: 0 0 28px rgba(255,204,51,.45);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 64px;
  --font: "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, "Segoe UI", system-ui, sans-serif;
}

/* ---------- 2. ベース ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #f8fbff url("../img/bugri-bg.png") center center / cover fixed no-repeat;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 760px) {
  body {
    background: #f8fbff url("../img/bugri-bg-sp.png") center top / cover scroll no-repeat;
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.70) 0%,
    rgba(255,255,255,.58) 42%,
    rgba(247,250,255,.82) 100%
  );
}
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; position: relative; z-index: 1; }
.main { position: relative; z-index: 1; padding-bottom: 64px; }

/* ---------- 3. ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background:
    linear-gradient(90deg, rgba(255,255,255,.80), rgba(244,248,255,.72) 52%, rgba(255,255,255,.80)),
    rgba(248,251,255,.78);
  backdrop-filter: blur(18px) saturate(1.18);
  border-bottom: 1px solid rgba(34,227,255,.22);
  box-shadow: 0 8px 28px rgba(4, 12, 28, .14);
}
.header-inner { max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 18px;
  display: flex; align-items: center; gap: 18px; }
.logo {
  font-weight: 900; font-size: 22px; letter-spacing: .06em;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 18px rgba(34,227,255,.25); white-space: nowrap;
}
.logo span { font-weight: 900; }
.header-spacer { flex: 1; }
.points-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,204,51,.22), rgba(255,255,255,.70));
  border: 1px solid rgba(255,204,51,.4); color: var(--gold);
  font-weight: 800; font-size: 14px; box-shadow: var(--glow-gold);
}
.points-pill .pt-ico { font-size: 13px; }
.btn-login {
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
  border: 1px solid rgba(20,24,50,.16); color: #141832;
  background: rgba(255,255,255,.68);
}
.btn-signup {
  padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: #04101a; background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--glow-cyan);
}
.btn-login:hover, .btn-signup:hover { filter: brightness(1.1); }

/* ---------- 4. ヒーローバナー（カルーセル） ---------- */
.hero { margin: 22px 0 10px; position: relative; }
.hero-track { display: flex; gap: 16px; overflow: hidden; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.banner {
  flex: 0 0 100%; max-width: 100%; scroll-snap-align: center;
  height: 220px; border-radius: var(--radius); position: relative; overflow: hidden;
  border: 1px solid #e3e6ef; background: #ffffff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.banner-title { font-size: 26px; font-weight: 900; line-height: 1.2; color: #11142a; }
.banner-sub { color: #5a5f82; margin-top: 6px; font-size: 14px; }
.hero-btn {
  position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px rgba(24,44,84,.12);
  font-size: 28px; font-weight: 800; line-height: 1; transition: .15s;
}
.hero-btn:hover { color: #04101a; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.hero-btn-prev { left: 12px; }
.hero-btn-next { right: 12px; }
.hero-dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.hero-dots button {
  width: 9px; height: 9px; border: 0; border-radius: 999px; padding: 0;
  background: var(--line-2); cursor: pointer; display: block; transition: .15s;
}
.hero-dots button.on { background: var(--cyan); box-shadow: var(--glow-cyan); width: 24px; }

/* ---------- 5. カテゴリタブ ---------- */
.cats { display: flex; gap: 9px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--text-sub); border: 1px solid var(--line); background: rgba(255,255,255,.02);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.cat:hover { color: var(--text); border-color: var(--line-2); }
.cat.on { color: #04101a; background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent; box-shadow: var(--glow-cyan); }

/* ---------- 6. セクション見出し / ソート ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between;
  margin: 26px 0 16px; gap: 12px; flex-wrap: wrap; }
.sec-title { font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(var(--cyan), var(--purple)); box-shadow: var(--glow-cyan); }
.sec-count { font-size: 13px; color: var(--text-sub); font-weight: 700; }
.sort-select { position: relative; margin-left: auto; }
.sort-trigger {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 8px 12px; border: 0; border-radius: 8px;
  color: #a9355d; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 800; line-height: 1;
}
.sort-icon { font-size: 14px; line-height: 1; }
.sort-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  min-width: 190px; padding: 8px 0; border-radius: 6px;
  background: rgba(255,255,255,.98); border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(24,44,84,.16);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s;
}
.sort-select.is-open .sort-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sort-option {
  width: 100%; min-height: 34px; padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 0; background: transparent; color: var(--text);
  cursor: pointer; font-size: 13px; font-weight: 700; text-align: left;
}
.sort-option:hover { background: #f7f4f7; color: #a9355d; }
.sort-check { color: #a9355d; opacity: 0; font-size: 13px; }
.sort-option.on .sort-check { opacity: 1; }

/* ---------- 7. オリパグリッド ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.oripa {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.oripa:hover { transform: translateY(-4px);
  border-color: rgba(34,227,255,.5); box-shadow: 0 14px 40px rgba(0,0,0,.5), var(--glow-cyan); }
.oripa.soldout { opacity: .55; filter: grayscale(.5); }

/* サムネ（画像なし → テーマ別グラデ＋グリフで演出） */
/* サムネは画像が無い場合 白ベースのプレースホルダ */
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ffffff; }
.img-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #c2c7d6; font-size: 12px; font-weight: 700; letter-spacing: .2em; }

/* 在庫 */
.badge-soldout { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: rgba(5,6,16,.55); font-size: 26px; font-weight: 900; letter-spacing: .1em;
  color: #cfd3e8; }
.stock-pill { position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: rgba(5,6,16,.7); border: 1px solid var(--line-2); color: var(--text); }

/* カード情報 */
.oripa-body { padding: 13px 14px 16px; }
.oripa-name { font-size: 14px; font-weight: 800; line-height: 1.35; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oripa-price { margin-top: 9px; font-size: 22px; font-weight: 900; color: var(--gold);
  text-shadow: 0 0 16px rgba(255,204,51,.25); }
.oripa-price small { font-size: 12px; color: var(--text-sub); font-weight: 700; margin-left: 3px;
  text-shadow: none; }
.gauge { margin-top: 11px; height: 7px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.07); }
.gauge i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple)); box-shadow: var(--glow-cyan); }
.gauge.low i { background: linear-gradient(90deg, #ff9a3c, #ff2d55); box-shadow: 0 0 14px rgba(255,45,85,.4); }
.stock-text { margin-top: 6px; font-size: 11px; color: var(--text-sub); display: flex; justify-content: space-between; }

/* ---------- 8. 当選報告フィード ---------- */
/* ---------- 8. 速報ページ ---------- */
.news-page {
  max-width: 560px;
}
.news-period {
  margin: -4px 0 12px;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 800;
}
.news-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.news-stat {
  min-width: 0;
  padding: 13px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(24,44,84,.08);
}
.news-stat-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}
.news-stat-high .news-stat-icon {
  background: linear-gradient(135deg, var(--gold), #ff7a3d);
}
.news-stat-ship .news-stat-icon {
  background: linear-gradient(135deg, #8fd6ff, #9b8cff);
}
.news-stat-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-sub);
  text-align: center;
  white-space: nowrap;
}
.news-stat-value {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}
.news-guide {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.news-guide-title {
  font-size: 13px;
  font-weight: 900;
}
.news-guide p {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.6;
}
.news-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 18px -4px 0;
  padding: 2px 4px 8px;
  scrollbar-width: none;
}
.news-tabs::-webkit-scrollbar {
  display: none;
}
.news-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 900;
}
.news-tabs button.on {
  color: #0a3154;
  border-color: var(--line-2);
  background: rgba(34,227,255,.16);
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 14px 32px rgba(24,44,84,.09);
}
.news-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 0;
}
.news-kind {
  color: #e8466d;
  font-size: 12px;
  font-weight: 900;
}
.news-card-high .news-kind {
  color: #d58116;
}
.news-card-ship .news-kind {
  color: #497ec8;
}
.news-time {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.news-card-body {
  display: grid;
  grid-template-columns: 58px 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 12px 12px;
}
.news-thumb {
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.9), transparent 0 13%, transparent 25%),
    linear-gradient(135deg, rgba(255,211,80,.94), rgba(255,109,54,.80) 42%, rgba(80,45,120,.86));
}
.news-card-high .news-thumb {
  background:
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.86), transparent 0 13%, transparent 25%),
    linear-gradient(135deg, rgba(235,244,255,.96), rgba(123,176,218,.72) 42%, rgba(61,88,132,.82));
}
.news-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071222;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  font-weight: 900;
}
.news-main {
  min-width: 0;
}
.news-user {
  font-size: 13px;
  font-weight: 900;
}
.news-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-pack {
  margin-top: 3px;
  color: var(--text-sub);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 9. レア度バッジ ---------- */
.rb { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 6px; }
.rb.ssr { background: linear-gradient(135deg, #ffd24a, #ff9a3c); color: #1a1000; }
.rb.sr { background: rgba(176,107,255,.18); color: var(--purple); border: 1px solid var(--purple); }
.rb.r  { background: rgba(58,160,255,.16); color: var(--blue);   border: 1px solid var(--blue); }
.rb.n  { background: rgba(124,129,159,.16); color: #b9bedb; border: 1px solid var(--n); }

/* ---------- 10. フッター ---------- */
.footer { margin-top: 48px; border-top: 1px solid var(--line);
  background: rgba(5,6,16,.6); padding: 30px 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center;
  font-size: 13px; color: var(--text-sub); }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-dim); }

/* =====================================================================
 * 詳細ページ
 * =================================================================== */
.crumb { font-size: 13px; color: var(--text-sub); margin: 18px 0; }
.crumb a:hover { color: var(--cyan); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.detail-visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2);
  position: sticky; top: 84px; }
.detail-visual .thumb { aspect-ratio: 1 / 1; }
.detail-visual .img-empty { font-size: 14px; }

.detail-name { font-size: 26px; font-weight: 900; line-height: 1.25; }
.detail-desc { color: var(--text-sub); margin-top: 12px; line-height: 1.7; font-size: 14px; }
.detail-price { margin-top: 20px; font-size: 40px; font-weight: 900; color: var(--gold);
  text-shadow: var(--glow-gold); }
.detail-price small { font-size: 15px; color: var(--text-sub); font-weight: 700; margin-left: 6px;
  text-shadow: none; }
.detail-stock { margin-top: 14px; font-size: 13px; color: var(--text-sub); }
.detail-stock b { color: var(--text); font-size: 16px; }
.detail .gauge { margin-top: 8px; height: 9px; }

.draw-btn {
  width: 100%; margin-top: 22px; padding: 18px; border: none; cursor: pointer;
  border-radius: 14px; font-size: 18px; font-weight: 900; letter-spacing: .03em;
  color: #04101a; background: linear-gradient(135deg, var(--gold), #ff9a3c);
  box-shadow: var(--glow-gold); transition: .15s; position: relative; overflow: hidden;
}
.draw-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.draw-btn:disabled { background: #2a2f45; color: var(--text-dim); box-shadow: none; cursor: not-allowed; }
.draw-btn .sheen { display: none; }

.draw-multi { display: flex; gap: 10px; margin-top: 12px; }
.draw-multi button { flex: 1; padding: 12px; border-radius: 12px; cursor: pointer;
  font-weight: 800; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.draw-multi button:hover { border-color: var(--cyan); color: var(--cyan); }

.prize-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}
.prize-block {
  width: min(100%, 340px);
  display: grid;
  justify-items: center;
  gap: 14px;
}
.prize-label {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 4px solid rgba(0,0,0,.14);
  border-radius: 8px;
  color: #ffffff;
  text-shadow:
    2px 0 #111,
    -2px 0 #111,
    0 2px #111,
    0 -2px #111,
    0 3px 0 rgba(0,0,0,.22);
  box-shadow: inset 0 0 18px rgba(255,255,255,.64), 0 10px 22px rgba(24,44,84,.10);
}
.prize-label b {
  font-size: 42px;
  font-weight: 900;
  line-height: .9;
}
.prize-label span {
  font-size: 20px;
  font-weight: 900;
}
.prize-s .prize-label {
  background:
    linear-gradient(120deg, #1167ff 0%, #20e7ff 20%, #4eff72 42%, #fff847 58%, #ff7a18 74%, #dc005c 100%);
}
.prize-a .prize-label {
  color: #ffffff;
  background:
    linear-gradient(105deg, #9d6d05 0%, #f7dc67 34%, #fffbe4 51%, #d7a50d 70%, #815708 100%);
}
.prize-b .prize-label {
  background:
    linear-gradient(105deg, #586172 0%, #d9e2ef 40%, #ffffff 54%, #8f9aab 76%, #3f4654 100%);
}
.prize-c .prize-label {
  color: #ffffff;
  background:
    linear-gradient(105deg, #556070 0%, #aeb8c8 42%, #edf2f8 56%, #8792a4 76%, #454d5c 100%);
}
.prize-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.prize-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(24,44,84,.12);
}
.prize-card-face {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255,255,255,.86), transparent 0 10%, transparent 24%),
    linear-gradient(135deg, rgba(255,211,80,.92), rgba(255,109,54,.78) 42%, rgba(80,45,120,.88));
}
.prize-a .prize-card-face {
  background:
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.86), transparent 0 11%, transparent 24%),
    linear-gradient(135deg, rgba(255,241,155,.96), rgba(214,158,28,.76) 42%, rgba(118,82,18,.82));
}
.prize-b .prize-card-face {
  background:
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.86), transparent 0 11%, transparent 24%),
    linear-gradient(135deg, rgba(235,244,255,.96), rgba(123,176,218,.72) 42%, rgba(61,88,132,.82));
}
.prize-c .prize-card-face {
  background:
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.82), transparent 0 11%, transparent 24%),
    linear-gradient(135deg, rgba(242,244,248,.96), rgba(170,179,195,.72) 42%, rgba(92,100,116,.78));
}
.prize-card-body {
  padding: 11px 12px 13px;
}
.prize-card-name {
  min-height: 34px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prize-card-value {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
}

/* =====================================================================
 * 11. ガチャ開封演出（全画面オーバーレイ） — 主役
 * =================================================================== */
.gacha-ov {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: radial-gradient(120% 120% at 50% 40%, #0b1030, #04050c 70%);
  overflow: hidden;
}
.gacha-ov.show { display: block; }
#gacha-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.gacha-stage { position: absolute; inset: 0; display: grid; place-items: center; }

/* (A) チャージ段階：エネルギーオーブ＋回転リング */
.charge { position: relative; width: 280px; height: 280px; display: grid; place-items: center;
  opacity: 0; transition: opacity .3s; }
.charge.on { opacity: 1; }
.orb { width: 120px; height: 120px; border-radius: 999px;
  background: radial-gradient(circle at 50% 40%, #eaffff, var(--cyan) 45%, #1b6bff 80%);
  box-shadow: 0 0 60px var(--cyan), 0 0 120px rgba(34,227,255,.6);
  animation: orbPulse 1.1s ease-in-out infinite; }
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.ring { position: absolute; border-radius: 999px; border: 2px solid transparent; }
.ring.r1 { width: 190px; height: 190px; border-top-color: var(--cyan); border-right-color: var(--cyan);
  animation: spin 1.4s linear infinite; }
.ring.r2 { width: 240px; height: 240px; border-bottom-color: var(--purple); border-left-color: var(--purple);
  animation: spin 2s linear infinite reverse; }
.ring.r3 { width: 280px; height: 280px; border-top-color: rgba(255,204,51,.7);
  animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.charge-text { position: absolute; bottom: -46px; font-size: 14px; font-weight: 800;
  letter-spacing: .3em; color: var(--cyan); text-shadow: var(--glow-cyan); }

/* (B) 収束フラッシュ */
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.fire { animation: flashFire .5s ease-out forwards; }
@keyframes flashFire { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

/* (C) 当たりオーラ（レア度で色変化） */
.aura { position: absolute; width: 600px; height: 600px; border-radius: 999px; opacity: 0;
  filter: blur(20px); pointer-events: none; }
.aura.on { animation: auraIn .6s ease-out forwards; }
@keyframes auraIn { from { opacity: 0; transform: scale(.6); } to { opacity: .8; transform: scale(1); } }
.aura.ssr { background: radial-gradient(circle, rgba(255,204,51,.7), rgba(176,107,255,.5) 45%, transparent 70%); }
.aura.sr  { background: radial-gradient(circle, rgba(176,107,255,.7), transparent 65%); }
.aura.r   { background: radial-gradient(circle, rgba(58,160,255,.6), transparent 65%); }
.aura.n   { background: radial-gradient(circle, rgba(124,129,159,.4), transparent 65%); }

/* 光柱（SSR/SR） */
.beams { position: absolute; width: 700px; height: 700px; opacity: 0; pointer-events: none; }
.beams.on { animation: beamsIn .5s ease-out forwards, beamSpin 22s linear infinite; }
@keyframes beamsIn { from { opacity: 0; } to { opacity: 1; } }
.beam { position: absolute; left: 50%; top: 50%; width: 4px; height: 360px;
  transform-origin: 50% 0; background: linear-gradient(var(--gold), transparent); }
@keyframes beamSpin { to { transform: rotate(360deg); } }

/* (D) カード（裏→表フリップ） */
.gcard-wrap { position: relative; perspective: 1400px; opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.gcard-wrap.on { animation: cardIn .5s ease-out forwards; }
.gcard-wrap.lift { transform: translateY(-86px); }
@keyframes cardIn { to { opacity: 1; } }
.gcard { width: 260px; height: 360px; position: relative; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.gcard.flip { transform: rotateY(180deg); }
.gface { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.gback { background: linear-gradient(150deg, #1a1f44, #0a0c20);
  border: 2px solid var(--line-2); display: grid; place-items: center; }
.gback::after { content: "?"; font-size: 90px; font-weight: 900; color: rgba(120,140,255,.35);
  text-shadow: 0 0 30px rgba(34,227,255,.3); }
.gfront { transform: rotateY(180deg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 22px; text-align: center;
  background: #ffffff; border: 2px solid #e3e6ef; }
.gfront.ssr { border-color: #ffcc33; box-shadow: inset 0 0 0 1px rgba(255,204,51,.4); }
.gfront.sr  { border-color: var(--purple); }
.gfront.r   { border-color: var(--blue); }
.gfront.n   { border-color: #c2c7d6; }
.gfront .rb { font-size: 13px; padding: 4px 14px; }
.gfront-name { font-size: 18px; font-weight: 900; color: #11142a; line-height: 1.35; }
.gfront-val { font-size: 16px; font-weight: 900; color: #c8860a; }

/* (E) 結果 */
.gresult { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; opacity: 0; }
.gresult.on { animation: cardIn .4s ease-out .2s forwards; }
.gresult-rb { font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.gresult-name { font-size: 26px; font-weight: 900; margin-top: 8px; }
.gresult-val { font-size: 18px; font-weight: 800; color: var(--gold); margin-top: 4px;
  text-shadow: var(--glow-gold); }
.gresult-cap { font-size: 12px; color: var(--text-sub); }
.gactions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.gactions button, .gactions a { padding: 13px 24px; border-radius: 12px; font-weight: 900;
  font-size: 15px; cursor: pointer; border: none; }
.g-again { color: #04101a; background: linear-gradient(135deg, var(--gold), #ff9a3c);
  box-shadow: var(--glow-gold); }
.g-close { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.g-skip { position: absolute; top: 20px; right: 22px; z-index: 5; font-size: 13px; font-weight: 700;
  color: var(--text-sub); cursor: pointer; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(5,6,16,.5); }
.g-skip:hover { color: var(--text); }

/* ---------- 12. レスポンシブ ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .detail-visual { position: static; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .banner { flex-basis: 92%; height: 180px; }
  .banner-title { font-size: 20px; }
  .hero-btn { width: 34px; height: 34px; font-size: 23px; }
  .hero-btn-prev { left: 8px; }
  .hero-btn-next { right: 8px; }
  .logo { font-size: 18px; }
  .header-inner { gap: 10px; }
  .btn-login { display: none; }
  .detail-price { font-size: 32px; }
  .gcard { width: 220px; height: 305px; }
  .points-pill { font-size: 12px; padding: 6px 10px; }
}

/* =====================================================================
 * [A] BUGRI ブランド統合 ＋ 共通追加土台（追加画面 B/C/D が再利用）
 *   命名規約: 共通プリミティブは下記を使用。各ページ固有クラスは接頭辞
 *   （B=.r10- / C-mypage=.mp- / C-point=.pt- / D-auth=.au-）で衝突回避。
 * =================================================================== */

/* --- ランクカラートークン --- */
:root {
  --rank-bronze:   #c8803c;
  --rank-silver:   #cfd6e6;
  --rank-gold:     #ffcc33;
  --rank-platinum: #7ef0ff;
  --rank-diamond:  #b06bff;
}

/* --- ブランドロゴ（元画像を枠なしで配置） --- */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}
@media (max-width: 640px) {
  .brand {
    width: 154px;
    height: 48px;
  }
}

/* --- ヘッダーナビ（PC） --- */
.hnav { display: flex; gap: 18px; margin-left: 8px; }
.hnav a { font-size: 14px; font-weight: 800; color: #27304d; }
.hnav a:hover { color: var(--cyan); }
@media (max-width: 760px) { .hnav { display: none; } }

@media (max-width: 640px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .header-spacer {
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand {
    flex: 0 1 clamp(112px, 34vw, 136px);
    width: clamp(112px, 34vw, 136px);
    height: 42px;
  }
  .points-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 5px;
    padding: 6px 9px;
    font-size: 12px;
  }
  .btn-signup {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding: 0 10px;
    gap: 6px;
  }
  .brand {
    flex-basis: 108px;
    width: 108px;
  }
  .points-pill {
    padding: 6px 8px;
  }
  .btn-signup {
    min-width: 62px;
    padding: 0 9px;
    font-size: 11px;
  }
}

/* --- 下部ナビ（モバイル） --- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; justify-content: space-around;
  background: rgba(8,9,18,.93); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: var(--text-sub); }
.bottom-nav a i {
  width: 24px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}
.bottom-nav a i.nav-pack-icon {
  width: 17px;
  height: 22px;
  display: block;
  position: relative;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 2px;
  font-size: 0;
}
.bottom-nav a i.nav-target-icon {
  width: 23px;
  height: 23px;
  display: block;
  box-sizing: border-box;
  font-size: 0;
  line-height: 0;
  --nav-target-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3E%3Cg%20fill='none'%20stroke='black'%20stroke-width='5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='25'%20cy='39'%20r='20'/%3E%3Ccircle%20cx='25'%20cy='39'%20r='13'/%3E%3Ccircle%20cx='25'%20cy='39'%20r='6'/%3E%3Cpath%20d='M25%2039L51%2013'/%3E%3C/g%3E%3Cpath%20fill='black'%20d='M44%2020V7l8%208%208-2-8%208%202%208-8-8z'/%3E%3C/svg%3E");
  background: currentColor;
  -webkit-mask: var(--nav-target-mask) center / contain no-repeat;
  mask: var(--nav-target-mask) center / contain no-repeat;
}
.bottom-nav a i.nav-user-icon {
  width: 23px;
  height: 23px;
  display: block;
  box-sizing: border-box;
  font-size: 0;
  line-height: 0;
  --nav-user-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3E%3Cpath%20fill='black'%20d='M32%207a13%2013%200%201%201%200%2026%2013%2013%200%200%201%200-26Zm0%2032c14%200%2024%208%2026%2020H6c2-12%2012-20%2026-20Z'/%3E%3C/svg%3E");
  background: currentColor;
  -webkit-mask: var(--nav-user-mask) center / contain no-repeat;
  mask: var(--nav-user-mask) center / contain no-repeat;
}
.nav-target-icon::before {
  content: none;
}
.nav-target-icon::after {
  content: none;
}
.nav-user-icon::before,
.nav-user-icon::after {
  content: none;
}
.nav-pack-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.nav-pack-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 5px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 1px;
}
.bottom-nav a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.bottom-nav a.on { color: var(--cyan); text-shadow: var(--glow-cyan); }
@media (max-width: 760px) {
  .bottom-nav { display: flex; }
  .main { padding-bottom: 86px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* --- ランクバッジ --- */
.rank-badge { display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 900; letter-spacing: .08em;
  padding: 5px 13px; border-radius: 999px; border: 1px solid currentColor; }
.rank-badge::before { content: "◆"; font-size: 11px; }
.rank-badge.bronze   { color: var(--rank-bronze);   box-shadow: 0 0 14px rgba(200,128,60,.4); }
.rank-badge.silver   { color: var(--rank-silver);   box-shadow: 0 0 14px rgba(207,214,230,.4); }
.rank-badge.gold     { color: var(--rank-gold);     box-shadow: var(--glow-gold); }
.rank-badge.platinum { color: var(--rank-platinum); box-shadow: 0 0 16px rgba(126,240,255,.5); }
.rank-badge.diamond  { color: var(--rank-diamond);  box-shadow: 0 0 18px rgba(176,107,255,.55);
  background: linear-gradient(135deg, rgba(176,107,255,.12), transparent); }

/* --- タブ（mypage コレクション/履歴 等） --- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 24px 0 18px; }
.tab { padding: 11px 20px; font-size: 14px; font-weight: 800; color: var(--text-sub);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--cyan); border-bottom-color: var(--cyan); text-shadow: var(--glow-cyan); }

/* --- フォーム共通（認証・購入） --- */
.auth-wrap { max-width: 430px; margin: 44px auto; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.auth-title { font-size: 23px; font-weight: 900; text-align: center; }
.auth-sub { text-align: center; color: var(--text-sub); font-size: 13px; margin-top: 8px; line-height: 1.6; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 7px; }
.field input { width: 100%; padding: 13px 14px; border-radius: 10px; font-size: 15px; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); outline: none; transition: .15s; }
.field input::placeholder { color: var(--text-dim); }
.field input:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn-primary-full { width: 100%; margin-top: 24px; padding: 15px; border: none; cursor: pointer;
  border-radius: 12px; font-size: 16px; font-weight: 900; color: #04101a;
  background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: var(--glow-cyan);
  transition: .15s; }
.btn-primary-full:hover { filter: brightness(1.08); transform: translateY(-2px); }
.auth-alt { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-sub); }
.auth-alt a { color: var(--cyan); font-weight: 700; }

/* --- ボーナス強調チップ（新規登録ボーナス・購入ボーナス） --- */
.bonus-chip { display: inline-block; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: var(--gold);
  background: rgba(255,204,51,.12); border: 1px solid rgba(255,204,51,.4); box-shadow: var(--glow-gold); }

/* --- ページ見出し（追加画面共通） --- */
.page-head { margin: 26px 0 8px; }
.page-title { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.page-title::before { content: ""; width: 5px; height: 24px; border-radius: 3px;
  background: linear-gradient(var(--cyan), var(--purple)); box-shadow: var(--glow-cyan); }

/* --- 汎用テキストページ --- */
.text-page { max-width: 820px; margin: 0 auto; }
.text-card {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(24,44,84,.08);
}
.text-section + .text-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.text-section h2 { font-size: 16px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.text-section p { color: var(--text-sub); font-size: 14px; line-height: 1.8; }

/* === [B] 10連・カードボタン === */

/* --- 詳細：単発＋10連ボタン横並び --- */
.draw-row { display: flex; gap: 12px; margin-top: 22px; align-items: stretch; }
.draw-row .draw-btn { flex: 1.3; margin-top: 0; }
.draw-btn-10 {
  flex: 1; padding: 18px; cursor: pointer;
  border-radius: 14px; font-size: 17px; font-weight: 900; letter-spacing: .02em;
  color: var(--cyan); background: rgba(34,227,255,.06);
  border: 1.5px solid rgba(34,227,255,.55);
  box-shadow: 0 0 18px rgba(34,227,255,.28), inset 0 0 14px rgba(34,227,255,.08);
  transition: .15s; position: relative; overflow: hidden;
}
.draw-btn-10:hover:not(:disabled) {
  color: #04101a; background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 26px rgba(34,227,255,.6); transform: translateY(-2px);
}
.draw-btn-10:disabled { color: var(--text-dim); background: #2a2f45;
  border-color: var(--line-2); box-shadow: none; cursor: not-allowed; }

/* --- 一覧カード：oripa を div 化、内側リンク --- */
.oripa-link { display: block; }
.draw-row-mini { display: flex; gap: 8px; padding: 0 14px 14px; }
.mini-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; text-align: center; padding: 0; border-radius: 9px; line-height: 1;
  font-size: 13px; font-weight: 900; letter-spacing: .02em; transition: .15s;
  color: #04101a; background: linear-gradient(135deg, var(--gold), #ff9a3c);
  box-shadow: 0 0 14px rgba(255,204,51,.3); }
.mini-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mini-btn-10 { color: var(--cyan); background: rgba(34,227,255,.07);
  border: 1.5px solid rgba(34,227,255,.5); box-shadow: 0 0 14px rgba(34,227,255,.25); }
.mini-btn-10:hover { color: #04101a; background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 20px rgba(34,227,255,.55); }
.mini-btn.is-disabled { pointer-events: none; opacity: .45; filter: grayscale(.6); }

/* --- 10連結果グリッド --- */
.r10-result {
  position: absolute; inset: 0; z-index: 4; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 56px 20px 24px; box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.r10-result.on { display: flex; animation: cardIn .45s ease-out forwards; }
.r10-head { font-size: 20px; font-weight: 900; letter-spacing: .1em;
  color: var(--text); text-shadow: var(--glow-cyan); }
.r10-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  width: 100%; max-width: 760px; }
.r10-cell { position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; }
.r10-cell.ssr { border-color: rgba(255,204,51,.6); box-shadow: 0 0 16px rgba(255,204,51,.4); }
.r10-cell.sr  { border-color: var(--purple); box-shadow: 0 0 14px rgba(176,107,255,.4); }
.r10-cell.r   { border-color: var(--blue);   box-shadow: 0 0 12px rgba(58,160,255,.3); }
.r10-cell.n   { border-color: var(--line-2); }
.r10-face { aspect-ratio: 3 / 4; display: grid; place-items: center; background: #ffffff; }
.r10-info { padding: 7px 8px 9px; text-align: center; }
.r10-info .rb { font-size: 10px; padding: 2px 7px; }
.r10-name { font-size: 11px; font-weight: 800; margin-top: 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r10-val { font-size: 12px; font-weight: 900; color: var(--gold); margin-top: 2px; }

/* BEST セル：ひと回り大きく＋金グロー */
.r10-cell.r10-best {
  transform: scale(1.08); z-index: 2;
  border: 2px solid var(--gold);
  box-shadow: 0 0 26px rgba(255,204,51,.7), 0 0 48px rgba(255,204,51,.35);
}
.r10-best-badge { position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  z-index: 3; font-size: 10px; font-weight: 900; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 999px; color: #1a1000;
  background: linear-gradient(135deg, #ffd24a, #ff9a3c); }

.r10-total { font-size: 15px; font-weight: 800; color: var(--text-sub); }
.r10-total b { color: var(--gold); font-size: 19px; text-shadow: var(--glow-gold); margin-left: 6px; }

@media (max-width: 900px) {
  .r10-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .draw-row { flex-direction: column; gap: 10px; }
  .draw-row .draw-btn, .draw-btn-10 { flex: none; width: 100%; }
  .r10-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; max-width: 100%; }
  .r10-result {
    justify-content: flex-start;
    padding: 72px 12px 28px;
    padding-top: calc(72px + env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .r10-cell.r10-best { transform: scale(1.04); }
  .r10-head { font-size: 17px; }
}


/* === [C] mypage / point（統合: 旧 pages-c.css） === */
/* === [C] mypage / point === */
/* 担当C：マイページ＋ポイント購入。共通[A]クラスは再定義せず再利用。
 * 固有クラスは .mp-* / .pt-* 接頭辞で衝突回避。既存トークンのみ使用。 */

/* ---------- mypage：プロフィール ---------- */
.mp-profile {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 16px;
}
.mp-avatar {
  width: 64px; height: 64px; border-radius: 999px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 28px; font-weight: 900; color: #04101a;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: var(--glow-cyan);
}
.mp-id { flex: 1; min-width: 220px; }
.mp-id-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mp-name { font-size: 24px; font-weight: 900; letter-spacing: .02em; }

/* 次ランク進捗 */
.mp-rank-prog { margin-top: 14px; }
.mp-rank-prog .gauge { height: 9px; }
.mp-rank-note {
  margin-top: 8px; font-size: 13px; color: var(--text-sub); font-weight: 700;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.mp-rank-note b { color: var(--gold); }

/* ---------- mypage：統計カード ---------- */
.mp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px;
}
.mp-stat {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 16px; text-align: center;
}
.mp-stat-num {
  font-size: 30px; font-weight: 900; color: var(--text);
  text-shadow: 0 0 18px rgba(34,227,255,.2); line-height: 1.1;
}
.mp-stat-num.gold { color: var(--gold); text-shadow: var(--glow-gold); }
.mp-stat-num small { font-size: 14px; font-weight: 800; margin-left: 2px; color: var(--text-sub); text-shadow: none; }
.mp-stat-label { margin-top: 7px; font-size: 12px; font-weight: 700; color: var(--text-sub); }

/* ---------- mypage：タブパネル ---------- */
.mp-panel { display: none; }
.mp-panel.on { display: block; }

/* コレクショングリッド */
.mp-coll {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.mp-card {
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.mp-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.mp-face {
  aspect-ratio: 3 / 4; position: relative; display: grid; place-items: start;
  padding: 8px; background: #ffffff;
}
.mp-face .rb { align-self: start; }
.mp-card.ssr { border-color: rgba(255,204,51,.45); }
.mp-card.sr  { border-color: rgba(176,107,255,.35); }
.mp-card.r   { border-color: rgba(58,160,255,.3); }
.mp-card-body { padding: 9px 11px 12px; }
.mp-card-name { font-size: 12px; font-weight: 800; line-height: 1.3; min-height: 31px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-card-val { font-size: 13px; font-weight: 900; color: var(--gold); margin-top: 5px; }

/* 履歴リスト */
.mp-hist { display: flex; flex-direction: column; gap: 10px; }
.mp-hist-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.mp-hist-time { font-size: 12px; color: var(--text-dim); font-weight: 700;
  white-space: nowrap; flex: 0 0 130px; }
.mp-hist-main { flex: 1; min-width: 0; }
.mp-hist-pack { font-size: 12px; color: var(--text-sub); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.mp-hist-card { font-size: 14px; font-weight: 800; margin-top: 3px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-hist-spent { font-size: 14px; font-weight: 900; color: var(--gold);
  white-space: nowrap; flex: 0 0 auto; }
.mp-hist-spent small { font-size: 11px; color: var(--text-sub); font-weight: 700; margin-left: 2px; }

/* ---------- point：現在ポイント ---------- */
.pt-balance {
  background: linear-gradient(135deg, rgba(255,204,51,.10), rgba(255,204,51,.02));
  border: 1px solid rgba(255,204,51,.35); border-radius: var(--radius);
  padding: 24px 26px; margin-top: 16px; text-align: center;
  box-shadow: var(--glow-gold);
}
.pt-balance-label { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.pt-balance-num { font-size: 48px; font-weight: 900; color: var(--gold);
  text-shadow: var(--glow-gold); line-height: 1.1; margin-top: 6px; }
.pt-balance-num small { font-size: 18px; font-weight: 800; color: var(--text-sub);
  margin-left: 4px; text-shadow: none; }

/* ---------- point：購入プラン ---------- */
.pt-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px;
}
.pt-plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 20px; text-align: center;
  display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pt-plan:hover { transform: translateY(-3px); border-color: var(--line-2); }
.pt-plan.hot {
  border-color: rgba(255,204,51,.5);
  background: linear-gradient(160deg, rgba(255,204,51,.06), var(--card));
  box-shadow: 0 0 22px rgba(255,204,51,.18);
}
.pt-plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 900; letter-spacing: .08em; white-space: nowrap;
  padding: 4px 14px; border-radius: 999px; color: #1a1300;
  background: linear-gradient(135deg, var(--gold), #ff9a3c); box-shadow: var(--glow-gold);
}
.pt-plan-amt { font-size: 34px; font-weight: 900; color: var(--text); line-height: 1.1; }
.pt-plan-amt small { font-size: 15px; font-weight: 800; color: var(--text-sub); margin-left: 3px; }
.pt-plan-bonus { margin: 12px auto 0; min-height: 32px; display: flex; align-items: center; }
.pt-plan-bonus .pt-nobonus { font-size: 12px; color: var(--text-dim); font-weight: 700; }
.pt-plan-price { margin-top: 14px; font-size: 14px; font-weight: 800; color: var(--text-sub); }
.pt-plan-price b { color: var(--text); font-size: 17px; }
.pt-plan .btn-primary-full { margin-top: 16px; }
.pt-note { margin-top: 20px; font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.7; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .mp-coll { grid-template-columns: repeat(3, 1fr); }
  .pt-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mp-stats { grid-template-columns: 1fr; gap: 10px; }
  .mp-stat { display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
  .mp-stat-label { margin-top: 0; }
  .mp-coll { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .pt-plans { grid-template-columns: 1fr; }
  .mp-name { font-size: 20px; }
  .pt-balance-num { font-size: 38px; }
  .mp-hist-row { flex-wrap: wrap; gap: 6px 12px; }
  .mp-hist-time { flex-basis: 100%; }
  .mp-hist-main { flex: 1 1 auto; }
}


/* === [D] 認証ページ（統合: 旧 pages-d.css） === */
/* === [D] 認証ページ === */
/* [A] 共通フォームクラス（.auth-wrap/.auth-card/.field/.btn-primary-full 等）を最大活用。
 * ここでは認証ページ固有の微調整のみ .au- 接頭辞で追加（[A]共通クラスは再定義しない）。 */

/* 認証カード上部のネオン装飾ライン + わずかなグロー */
.au-card { position: relative; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 40px rgba(34,227,255,.08); }
.au-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--gold));
  box-shadow: var(--glow-cyan); }

/* ロゴ的アクセント（カード上部に小さなネオンマーク） */
.au-mark { display: block; width: 52px; height: 52px; margin: 4px auto 16px;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #04101a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--glow-cyan); }

/* register 用ボーナスチップを中央配置 */
.au-bonus-row { text-align: center; margin: 4px 0 14px; }

/* =====================================================================
 * [E] 白ベース配色オーバーライド
 * =================================================================== */
:root {
  --bg: #f8fbff;
  --bg-grad-1: #ffffff;
  --bg-grad-2: #edf6ff;
  --panel: #ffffff;
  --card: rgba(255,255,255,.92);
  --card-2: rgba(244,248,255,.92);
  --line: rgba(24,44,84,.12);
  --line-2: rgba(34,160,255,.24);
  --text: #11142a;
  --text-sub: #4f5877;
  --text-dim: #7c849e;
  --glow-cyan: 0 0 18px rgba(34,227,255,.26);
  --glow-gold: 0 0 18px rgba(255,204,51,.28);
}

.main {
  background: rgba(255,255,255,.18);
}

.header {
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(248,252,255,.86) 52%, rgba(255,255,255,.92)),
    rgba(255,255,255,.86);
  border-bottom-color: rgba(34,160,255,.18);
  box-shadow: 0 8px 26px rgba(24,44,84,.10);
}

.banner,
.oripa,
.detail-visual,
.prize-card,
.auth-card,
.mp-profile,
.mp-stat,
.mp-card,
.mp-hist-row,
.pt-plan,
.r10-cell {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(24,44,84,.08);
}

.oripa:hover,
.mp-card:hover,
.pt-plan:hover {
  box-shadow: 0 16px 38px rgba(34,160,255,.14), var(--glow-cyan);
}

.cat,
.draw-multi button,
.field input,
.g-close,
.g-skip,
.mini-btn-10 {
  color: var(--text);
  background: rgba(255,255,255,.76);
  border-color: var(--line);
}

.field input::placeholder {
  color: var(--text-dim);
}

.cat:hover,
.draw-multi button:hover,
.tab:hover,
.g-skip:hover {
  color: #0f79b8;
  border-color: var(--line-2);
}

.cat.on,
.tab.on {
  color: #0a3154;
  background: rgba(34,227,255,.14);
  text-shadow: none;
}

.cat.on {
  color: #18344d;
  background: #eef5fb;
  border-color: #cfddea;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 2px 6px rgba(24,44,84,.08);
}

.stock-pill {
  color: var(--text);
  background: rgba(255,255,255,.82);
  border-color: var(--line-2);
}

.badge-soldout {
  color: #6c728a;
  background: rgba(255,255,255,.74);
}

.gauge {
  background: rgba(24,44,84,.10);
}

.footer,
.bottom-nav {
  background: rgba(255,255,255,.90);
  border-color: var(--line);
  box-shadow: 0 -10px 28px rgba(24,44,84,.08);
}

.bottom-nav a.on {
  text-shadow: none;
}

.tabs {
  border-color: var(--line);
}

.rank-badge {
  background: rgba(255,255,255,.78);
}

.rank-badge.silver {
  color: #7c849e;
}

.auth-card,
.au-card {
  box-shadow: 0 18px 42px rgba(24,44,84,.10), 0 0 32px rgba(34,227,255,.08);
}

.draw-btn:disabled,
.draw-btn-10:disabled {
  color: var(--text-dim);
  background: #e7eaf2;
  border-color: var(--line);
}

.pt-balance,
.pt-plan.hot {
  background: linear-gradient(160deg, rgba(255,246,199,.78), rgba(255,255,255,.94));
}

.gacha-ov {
  background: radial-gradient(120% 120% at 50% 40%, #ffffff, #eff8ff 70%);
}

.gface {
  box-shadow: 0 20px 60px rgba(24,44,84,.18);
}

.gback {
  background: linear-gradient(150deg, #f8fbff, #dfefff);
  border-color: rgba(34,160,255,.26);
}

.gback::after {
  color: rgba(34,160,255,.35);
  text-shadow: 0 0 30px rgba(34,227,255,.30);
}

/* =====================================================================
 * [F] ガチャ後の獲得カード選択画面
 * =================================================================== */
.prize-cards.is-single {
  grid-template-columns: minmax(0, 162px);
  justify-content: center;
}

.gacha-ov.mode-result,
.gacha-ov.mode-exchange,
.gacha-ov.mode-ship {
  background: #ffffff;
}
.gacha-ov.mode-result #gacha-canvas,
.gacha-ov.mode-result .gacha-stage,
.gacha-ov.mode-result .g-skip,
.gacha-ov.mode-result .flash,
.gacha-ov.mode-exchange #gacha-canvas,
.gacha-ov.mode-exchange .gacha-stage,
.gacha-ov.mode-exchange .g-skip,
.gacha-ov.mode-exchange .flash,
.gacha-ov.mode-ship #gacha-canvas,
.gacha-ov.mode-ship .gacha-stage,
.gacha-ov.mode-ship .g-skip,
.gacha-ov.mode-ship .flash {
  display: none;
}

.draw-result-page,
.exchange-page {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  color: #202126;
  background: #ffffff;
  letter-spacing: 0;
  -webkit-overflow-scrolling: touch;
}
.draw-result-page.on,
.exchange-page.on {
  display: block;
}
.draw-result-header,
.exchange-header {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 18px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e7e7ea;
}
.draw-result-header img,
.exchange-header img {
  width: 138px;
  height: 44px;
  object-fit: contain;
}
.draw-result-header button,
.exchange-header button {
  border: 0;
  background: transparent;
  color: #2a2b31;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.draw-result-main {
  max-width: 430px;
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 20px 13px 230px;
  position: relative;
}
.draw-replay {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #202126;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.draw-replay-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #ef2c55;
  font-size: 12px;
}
.draw-notice {
  min-height: 56px;
  margin: 14px 0 18px;
  padding: 13px 44px 13px 17px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  background: #e5e5e5;
  color: #33353a;
  position: relative;
}
.draw-notice.is-hidden {
  display: none;
}
.draw-notice-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #3e4248;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.draw-notice p {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.draw-notice button {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #202126;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.draw-result-controls {
  height: 48px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}
.draw-result-controls > * + * {
  border-left: 1px solid #e5e5ea;
}
.draw-view-toggle,
.draw-sort-trigger {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #22242a;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.draw-view-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  color: #ec2f59;
  position: relative;
}
.draw-view-icon.is-list::before,
.draw-view-icon.is-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}
.draw-view-icon.is-list::after {
  left: 0;
  width: 4px;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}
.draw-view-icon.is-grid {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 4px;
}
.draw-view-icon.is-grid::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  background:
    linear-gradient(currentColor 0 0) left top / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) right top / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 7px 7px no-repeat;
}
.draw-sort-select {
  position: relative;
}
.draw-sort-icon {
  color: #ec2f59;
  font-size: 18px;
  font-weight: 900;
}
.draw-sort-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 12;
  width: min(182px, 48vw);
  padding: 12px 0;
  display: none;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(24,44,84,.18);
}
.draw-sort-select.is-open .draw-sort-menu {
  display: block;
}
.draw-sort-option {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #ffffff;
  color: #33353a;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.draw-sort-option.on {
  background: #dddddf;
}
.draw-sort-check {
  width: 20px;
  opacity: 0;
  color: #202126;
}
.draw-sort-option.on .draw-sort-check {
  opacity: 1;
}

.draw-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.draw-result-list.is-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.draw-result-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 17px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(20,26,40,.11);
  position: relative;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.draw-result-item.is-selected {
  box-shadow: 0 0 0 2px rgba(236,47,89,.24), 0 8px 22px rgba(20,26,40,.13);
}
.draw-result-item:active {
  transform: scale(.985);
}
.draw-result-item:focus-visible {
  outline: 3px solid rgba(236,47,89,.34);
  outline-offset: 3px;
}
.draw-card-open {
  width: 100%;
  cursor: inherit;
}
.draw-card-art {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 7px;
  border-radius: 10px;
  overflow: hidden;
  color: #101217;
  background:
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.9), transparent 0 10%, transparent 20%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.32) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #dfe6ef, #ffffff 38%, #c8d0dc);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.draw-card-art-s {
  background:
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.92), transparent 0 10%, transparent 20%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #28c5ff 0%, #67f081 24%, #fff260 45%, #ff8d22 66%, #ec2f59 100%);
}
.draw-card-art-a {
  background:
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.92), transparent 0 10%, transparent 20%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #b37119, #ffe676 42%, #fff9cf 54%, #c27a10 100%);
}
.draw-card-art-b {
  background:
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.92), transparent 0 10%, transparent 20%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #788494, #f7fbff 48%, #97a2b0 100%);
}
.draw-card-art-title {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draw-card-art-title span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: linear-gradient(135deg, #ef2c55, #ff7d9a);
  transform: rotate(14deg);
}
.draw-card-art-stage {
  flex: 1;
  margin-top: 7px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, #ffffff 0 9%, transparent 10%),
    repeating-radial-gradient(circle at center, rgba(255,255,255,.65) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #12b9ff, #0f62d8 55%, #eaf9ff);
}
.draw-card-art-rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg, transparent 0 7deg, rgba(255,255,255,.72) 8deg 10deg, transparent 11deg 22deg);
  opacity: .82;
}
.draw-card-art-card {
  position: relative;
  z-index: 1;
  width: 62%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border: 5px solid #f2ce2f;
  border-radius: 8px;
  color: #ffdf45;
  background: linear-gradient(135deg, #114cae, #2bd5ff 45%, #102e79);
  box-shadow: 0 10px 18px rgba(0,0,0,.24);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-22deg);
}
.draw-card-art-pt {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 7px;
  color: #ffffff;
  text-shadow: 2px 0 #1a4c9c, -2px 0 #1a4c9c, 0 2px #1a4c9c, 0 -2px #1a4c9c;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}
.draw-card-art-copy {
  min-height: 52px;
  padding: 7px 7px 5px;
  background: rgba(255,255,255,.9);
  color: #111217;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.36;
}
.draw-card-art-logo {
  height: 14px;
  display: grid;
  place-items: center;
  color: #111217;
  background: rgba(255,255,255,.88);
  font-size: 10px;
  font-weight: 900;
}
.draw-card-art-large {
  width: min(86vw, 360px);
  max-height: min(76vh, 640px);
  border-radius: 18px;
  padding: 14px;
}
.draw-card-art-large .draw-card-art-title {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 20px;
}
.draw-card-art-large .draw-card-art-title span {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}
.draw-card-art-large .draw-card-art-stage {
  margin-top: 13px;
  border-radius: 12px;
}
.draw-card-art-large .draw-card-art-card {
  font-size: 26px;
}
.draw-card-art-large .draw-card-art-pt {
  bottom: 14px;
  font-size: 34px;
  text-shadow: 3px 0 #1a4c9c, -3px 0 #1a4c9c, 0 3px #1a4c9c, 0 -3px #1a4c9c;
}
.draw-card-art-large .draw-card-art-copy {
  min-height: 118px;
  padding: 16px;
  font-size: 20px;
  line-height: 1.42;
}
.draw-card-art-large .draw-card-art-logo {
  height: 28px;
  font-size: 18px;
}
.draw-result-info {
  min-width: 0;
  position: relative;
  padding-top: 3px;
}
.draw-result-top {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.draw-prize-pill {
  min-width: 66px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  text-shadow: 1px 0 rgba(0,0,0,.36), 0 1px rgba(0,0,0,.36);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.draw-prize-s {
  background: linear-gradient(105deg, #1167ff, #27e87a 35%, #fff260 54%, #ff831a 74%, #ec2f59);
}
.draw-prize-a {
  background: linear-gradient(105deg, #9d6d05, #f7dc67 44%, #a86808);
}
.draw-prize-b {
  background: linear-gradient(105deg, #6b7482, #ffffff 48%, #818b9a);
  color: #22242a;
  text-shadow: none;
}
.draw-prize-c {
  background: linear-gradient(105deg, #b76519, #f5bd62 45%, #8f4c11);
}
.draw-select-btn {
  min-width: 58px;
  height: 29px;
  padding: 0 5px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  color: #a9abb2;
  background: #f1f2f4;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}
.draw-select-btn i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #d9dadf;
  font-style: normal;
  font-size: 14px;
}
.draw-select-btn.is-selected {
  color: #ffffff;
  background: #ef2c55;
}
.draw-select-btn.is-selected i {
  background: #ffffff;
  color: #ef2c55;
}
.draw-result-info h3 {
  margin-top: 9px;
  color: #25262c;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.26;
  overflow-wrap: anywhere;
}
.draw-result-value {
  margin-top: 4px;
  color: #25262c;
  font-size: 20px;
  font-weight: 900;
}
.draw-result-note {
  margin-top: 7px;
  color: #888b94;
  font-size: 17px;
  font-weight: 900;
}
.draw-result-expire {
  margin-top: 8px;
  color: #999ca5;
  font-size: 14px;
  font-weight: 800;
}
.draw-result-brand {
  position: absolute;
  right: 12px;
  bottom: 45px;
  color: rgba(28,30,36,.08);
  font-size: 18px;
  font-weight: 900;
}
.draw-result-point-bar {
  margin-top: 16px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: #eef3f5;
  color: #22242a;
  font-size: 19px;
  font-weight: 900;
}
.coin-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #8d6e00;
  background: radial-gradient(circle at 30% 30%, #fff06b, #e5c71e 58%, #b89000);
  box-shadow: inset 0 0 0 2px rgba(153,117,0,.18);
  font-size: 16px;
  line-height: 1;
}
.draw-result-list.is-grid .draw-result-item {
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 10px;
}
.draw-result-list.is-grid .draw-result-info h3 {
  font-size: 15px;
}
.draw-result-list.is-grid .draw-result-value {
  font-size: 15px;
}
.draw-result-list.is-grid .draw-result-expire,
.draw-result-list.is-grid .draw-result-note,
.draw-result-list.is-grid .draw-result-brand {
  display: none;
}
.draw-result-list.is-grid .draw-result-point-bar {
  height: 32px;
  margin-top: 10px;
  font-size: 15px;
}
.draw-result-list.is-grid .coin-icon {
  width: 22px;
  height: 22px;
  font-size: 12px;
}
.draw-watermark {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%) rotate(-8deg);
  z-index: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: rgba(20,23,30,.07);
  font-size: 44px;
  font-weight: 900;
  pointer-events: none;
}
.draw-watermark img {
  width: 118px;
  opacity: .08;
}
.draw-action-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 14;
  width: min(100%, 430px);
  transform: translateX(-50%);
  padding: 20px 17px calc(18px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #ffffff;
  box-shadow: 0 -10px 24px rgba(20,26,40,.11);
}
.draw-action-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
}
.draw-selected-total {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111217;
  font-weight: 900;
}
.draw-selected-total b {
  font-size: 28px;
}
.draw-selected-total span:last-child {
  font-size: 17px;
}
.draw-action-head button {
  border: 0;
  background: transparent;
  color: #111217;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.draw-action-head button:disabled,
.draw-action-head button:last-child {
  color: #d1d2d6;
}
.draw-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.draw-action-buttons button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #ef2c55;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.draw-action-buttons button:disabled {
  color: rgba(255,255,255,.78);
  background: #eeeeef;
  cursor: not-allowed;
}
.draw-action-sheet p {
  margin-top: 12px;
  color: #a2a4ac;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}
.draw-sheet-logo {
  width: 78px;
  height: 28px;
  object-fit: contain;
  margin: 8px auto 0;
}
.draw-card-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 58px 20px 26px;
  background: rgba(0,0,0,.58);
}
.draw-card-modal.on {
  display: grid;
}
.draw-card-modal-close {
  position: fixed;
  top: max(78px, calc(48px + env(safe-area-inset-top)));
  right: max(26px, calc((100vw - 430px) / 2 + 26px));
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
}
.draw-card-modal-body {
  display: grid;
  place-items: center;
}

.exchange-main {
  max-width: 430px;
  margin: 0 auto;
  padding: 54px 18px 80px;
}
.exchange-main h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #202126;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.exchange-main h1 span {
  width: 22px;
  height: 34px;
  display: inline-block;
  background:
    linear-gradient(22deg, transparent 0 45%, #ffe87a 46% 60%, transparent 61%),
    linear-gradient(145deg, transparent 0 42%, #ef2c55 43% 62%, transparent 63%);
}
.exchange-main h1 span:last-child {
  transform: scaleX(-1);
}
.exchange-balance {
  min-height: 76px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 8px;
  background: #f0f0f1;
}
.exchange-balance b {
  color: #26272d;
  font-size: 31px;
  font-weight: 900;
}
.exchange-balance b:last-child {
  color: #37bb73;
}
.exchange-balance i {
  color: #26272d;
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
}
.exchange-main > p {
  margin-top: 18px;
  color: #303238;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}
.exchange-pack-section {
  margin: 48px -18px 0;
  padding: 28px 18px 0;
  border-top: 1px solid #e3e3e6;
}
.exchange-pack-section h2 {
  color: #111217;
  font-size: 22px;
  font-weight: 900;
}
.exchange-pack-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.exchange-pack-card {
  overflow: hidden;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(20,26,40,.10);
}
.exchange-pack-link {
  display: block;
}
.exchange-pack-visual {
  min-height: 168px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f66ff, #ffd33c 48%, #ef2c55);
}
.exchange-pack-visual::before {
  content: "";
  position: absolute;
  inset: -26%;
  background:
    radial-gradient(circle at 22% 36%, rgba(255,255,255,.98) 0 4%, transparent 5%),
    radial-gradient(circle at 68% 24%, rgba(255,255,255,.86) 0 7%, transparent 8%),
    conic-gradient(from 0deg, transparent 0 8deg, rgba(255,255,255,.26) 9deg 11deg, transparent 12deg 22deg);
  opacity: .9;
}
.exchange-pack-visual.theme-gold {
  background: linear-gradient(135deg, #7f4705, #ffd84f 48%, #ef2c55);
}
.exchange-pack-visual.theme-ocean {
  background: linear-gradient(135deg, #0052b8, #10d4ff 46%, #08337e);
}
.exchange-pack-visual.theme-grass {
  background: linear-gradient(135deg, #0b8d51, #8cf35d 46%, #0b4d36);
}
.exchange-pack-visual.theme-neon,
.exchange-pack-visual.theme-arcane {
  background: linear-gradient(135deg, #4a1ab2, #26d9ff 46%, #ef2c55);
}
.exchange-pack-visual.theme-energy,
.exchange-pack-visual.theme-fire {
  background: linear-gradient(135deg, #ff5f1f, #ffd73c 46%, #ef2c55);
}
.exchange-pack-visual span,
.exchange-pack-visual strong,
.exchange-pack-visual small {
  position: relative;
  z-index: 1;
}
.exchange-pack-visual span {
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  color: #111217;
  background: #fff35a;
  font-size: 13px;
  font-weight: 900;
}
.exchange-pack-visual strong {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.32);
}
.exchange-pack-visual small {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
}
.exchange-pack-body {
  padding: 14px 18px 0;
}
.exchange-pack-body h3 {
  color: #17191f;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}
.exchange-pack-price {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #111217;
  font-size: 22px;
  font-weight: 900;
}
.exchange-pack-price small {
  color: #555965;
  font-size: 13px;
}
.exchange-pack-stock {
  margin-top: 8px;
  color: #555965;
  font-size: 13px;
  font-weight: 800;
}
.exchange-pack-body .gauge {
  margin-top: 8px;
  height: 8px;
}
.exchange-pack-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px 18px;
}
.exchange-pack-actions a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #111217;
  background: #ffffff;
  border: 1px solid #f0bd18;
  font-size: 14px;
  font-weight: 900;
}
.exchange-pack-actions a:last-child {
  color: #111217;
  background: #ffbd1f;
  border-color: transparent;
}
.ship-summary-card {
  min-height: 86px;
  margin-top: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0f0f1;
  text-align: center;
}
.ship-summary-card b {
  color: #ef2c55;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.ship-summary-card span {
  color: #33353a;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 390px) {
  .draw-result-item {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .draw-result-info h3 {
    font-size: 16px;
  }
  .draw-result-value {
    font-size: 18px;
  }
  .draw-action-head {
    gap: 10px;
  }
  .draw-action-head button {
    font-size: 13px;
  }
  .draw-selected-total b {
    font-size: 25px;
  }
}
