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

/* === 1. Design Tokens === */
:root {
  --black: #000000;
  --page-bg: #ffffff;
  --purple: #8e34fc;
  --purple-hover: #aa68fb;
  --pink: #fa2d71;
  --pink-hover: #fa77a2;
  --signup: #fc175f;
  --signup-hover: #a00f3d;
  --buy: #fb1875;
  --grad-auth: linear-gradient(90deg,#7631fc,#e31dee);
  --grad-retry: linear-gradient(90deg,#3d6bff,#b64dff,#f55bf0);
  --tab-active: linear-gradient(90deg,#6e4dcf,#5a2390);
  --deep-purple: #5b2390;
  --line-purple: #5c2593;
  --meter-bg: #bbbbbb;
  --meter-1: #4f2dbf;
  --meter-2: #f27c34;
  --meter-3: #31b527;
  --meter-4: #950d0d;
  --limited: #f5df28;
  --convert: #e3bb00;
  --ship: #c40900;
  --sold-bg: #f8ecf2;
  --sold-red: #da2629;
  --soft: #f0f2f8;
  --soft-purple: #f3eefc;
  --text: #222222;
  --muted: #666666;
  --border: #e7e3ee;
  --shadow: 0 2px 6px rgba(0,0,0,.15);
  --font: "Noto Sans JP", system-ui, sans-serif;
  --max: 1280px;
}

/* === 2. Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  position: relative;
  z-index: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("../img/design/pc/static/bg.png") center top / cover no-repeat; }
body.bugri-auth-page::before { background-image: url("../img/design/pc/auth/bg.png"); }
body.bugri-mypage-page::before, body.bugri-point-page::before, body.bugri-collection-page::before, body.bugri-address-page::before { background-image: url("../img/design/pc/mypage/bg.png"); }
body.bugri-detail-page::before { background-image: url("../img/design/pc/detail/bg.png"); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; display: block; }
.wrap, .bugri-wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.main { min-height: 56vh; padding-bottom: 64px; }
.no-image-asset { width: 100%; height: 100%; object-fit: cover; background: #f5f4f8; }

/* === 2-1. Header === */
.site-header { height: 96px; background: #000; position: sticky; top: 0; z-index: 1000; }
.site-header__inner { height: 100%; width: min(1440px, 100%); margin: 0 auto; padding: 0 80px 0 85px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo img { width: 119px; height: 71px; object-fit: contain; }
.site-header__actions { display: flex; align-items: center; gap: 16px; position: relative; }
.header-btn { width: 180px; height: 56px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; transition: .16s ease; }
.header-btn--login { color: #fff; border: 1px solid #fff; background: transparent; }
.header-btn--login:hover { color: #9f48ff; border-color: #9f48ff; }
.header-btn--signup { color: #fff; border: 1px solid var(--signup); background: var(--signup); }
.header-btn--signup:hover { background: var(--signup-hover); border-color: var(--signup-hover); }
.header-point-pill { min-width: 287px; height: 57px; border: 1px solid rgba(255,255,255,.72); border-radius: 4px; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; }
.header-point-pill img { width: 24px; height: 23px; }
.header-point-pill b { font-size: 19px; }
.header-mypage-btn { width: 221px; height: 57px; border: 1px solid rgba(255,255,255,.72); border-radius: 4px; background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; }
.header-mypage-btn img { width: 42px; height: 42px; border-radius: 50%; }
.header-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 231px; padding: 12px 0; border-radius: 4px; border: 1px solid #eee; background: #fff; box-shadow: 0 18px 34px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .16s ease; }
.header-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.header-menu a, .header-menu button { min-height: 42px; width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; padding: 0 18px; color: #222; font-weight: 700; text-align: left; }
.header-menu a:hover, .header-menu button:hover { background: #f3eefc; color: var(--purple); }
.header-menu img { width: 24px; height: 24px; object-fit: contain; }
.header-menu__sep { height: 1px; margin: 8px 16px; background: #eee; }
.sp-menu-trigger { display: none; }
.sp-slide-menu { display: none; }

/* === 2-2. Footer === */
.site-footer { min-height: 234px; color: #fff; background: #000 url("../img/design/pc/common/footer/footer-bg.png") center / cover no-repeat; }
.site-footer__inner { width: min(1280px, calc(100% - 48px)); min-height: 234px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 28px 0 44px; position: relative; }
.site-footer__logo { width: 233px; }
.site-footer__links { display: flex; align-items: center; justify-content: flex-end; gap: 0; flex-wrap: wrap; }
.site-footer__links a { padding: 0 18px; border-right: 1px solid rgba(255,255,255,.25); font-size: 16px; font-weight: 700; }
.site-footer__links a:last-child { border-right: 0; padding-right: 0; }
.site-footer__copy { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: 12px; }

/* === 2-3. SP Fixed Menu === */
.bugri-fixed-menu { display: none; }

/* === 2-4. Section Headings === */
.bugri-section-heading { display: flex; align-items: center; gap: 18px; margin: 34px 0 22px; font-size: 30px; line-height: 1; font-weight: 900; color: #000; }
.bugri-section-heading::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg,#7631fc,#eadbff); }
.page-head { margin: 42px 0 24px; }
.page-title, .static-title { margin: 0; padding-left: 18px; border-left: 6px solid var(--purple); color: #000; font-size: 32px; line-height: 1.25; font-weight: 900; }
.page-lead { color: var(--muted); font-weight: 500; }
.panel-label { color: var(--purple); font-size: 13px; font-weight: 900; letter-spacing: .06em; }

/* === 2-5. Buttons === */
.btn-primary-full, .bugri-gradient-btn { border: 0; border-radius: 4px; color: #fff; background: var(--grad-auth); font-weight: 900; }
.bugri-btn { min-height: 48px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }

/* === 3-1. Top Page === */
.hero { position: relative; margin: 34px 0 18px; }
.hero-track { display: flex; gap: 18px; overflow: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 4px; }
.hero-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; min-height: 290px; scroll-snap-align: center; position: relative; overflow: hidden; border-radius: 4px; color: #fff; background: linear-gradient(135deg,#111,#4f19a5); display: flex; align-items: flex-end; padding: 34px; }
.banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.12)); z-index: 1; }
.banner-copy { position: relative; z-index: 2; }
.banner-title { font-size: clamp(28px,4vw,52px); line-height: 1.08; font-weight: 900; }
.banner-sub { margin-top: 10px; font-size: 17px; font-weight: 700; }
.hero-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--purple); background: #000; color: var(--purple); font-size: 30px; line-height: 1; display: grid; place-items: center; }
.hero-btn-prev { left: 16px; }
.hero-btn-next { right: 16px; }
.hero-dots { margin-top: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #cfcfcf; }
.hero-dots button.on { background: #7b2cf5; }
.top-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 10px; }
.cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; min-width: 116px; height: 38px; border-radius: 4px; border: 1px solid var(--purple); color: var(--purple); background: #fff; font-weight: 900; }
.cat.on { color: #fff; background: var(--purple); }
.sort-select { position: relative; flex: 0 0 auto; }
.sort-trigger { min-width: 184px; height: 38px; border-radius: 4px; border: 1px solid var(--border); background: #fff; color: #222; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.sort-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 200px; padding: 8px; border-radius: 4px; border: 1px solid var(--border); background: #fff; box-shadow: 0 16px 32px rgba(0,0,0,.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: 36px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-weight: 700; }
.sort-option:hover, .sort-option.on { color: var(--purple); background: #f3eefc; }
.sort-check { opacity: 0; }
.sort-option.on .sort-check { opacity: 1; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-bottom: 50px; }
.oripa { position: relative; min-width: 0; background: #fff; border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; }
.oripa-link { display: block; }
.oripa-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f6f2fb; }
.oripa-media img { width: 100%; height: 100%; object-fit: cover; }
.limited-badge { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 10px; border-radius: 2px; background: var(--limited); color: #000; font-size: 13px; font-weight: 900; }
.oripa-body { padding: 14px 16px 16px; }
.oripa-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.oripa-price { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.oripa-price img { width: 24px; height: 23px; }
.oripa-price b { font-size: 20px; }
.oripa-stock { color: #222; font-weight: 700; white-space: nowrap; }
.oripa-stock b { font-size: 20px; }
.stock-meter { height: 8px; border-radius: 999px; overflow: hidden; background: var(--meter-bg); }
.stock-meter i { display: block; height: 100%; border-radius: inherit; background: var(--meter-1); }
.stock-meter.meter-3 i { background: var(--meter-3); }
.stock-meter.meter-2 i { background: var(--meter-2); }
.stock-meter.meter-4 i { background: var(--meter-4); }
.draw-row-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.mini-btn { height: 48px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--purple); font-weight: 900; }
.mini-btn:hover { background: var(--purple-hover); }
.mini-btn-10 { background: var(--pink); }
.mini-btn-10:hover { background: var(--pink-hover); }
.oripa.soldout::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); pointer-events: none; }
.soldout-stamp { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.soldout-stamp img { width: 58%; max-width: 241px; }
.oripa.soldout .draw-row-mini { grid-template-columns: 1fr; }
.oripa.soldout .mini-btn { background: #5b2390; pointer-events: none; }
.top-news-section { margin-top: 10px; color: #fff; background: #000 url("../img/design/pc/common/news/news-section-bg.png") center / cover no-repeat; }
.top-news-inner { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 48px; }
.news-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 36px; font-weight: 900; }
.news-section-heading img { width: 33px; height: 40px; }
.news-section-heading::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.45); }
.news-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 22px; }
.news-tabs.has-all { grid-template-columns: repeat(4,1fr); }
.news-tabs button { height: 52px; border-radius: 4px; border: 1px solid var(--deep-purple); color: #fff; background: transparent; font-weight: 900; }
.news-tabs button.on { border: 0; background: var(--tab-active); }
.news-carousel-wrap { position: relative; }
.news-feed-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 330px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 12px; }
.news-feed-row::-webkit-scrollbar { display: none; }
.news-card { scroll-snap-align: start; border-radius: 4px; background: #fff; color: #222; box-shadow: var(--shadow); padding: 16px; }
.news-card-body { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; }
.news-thumb { width: 78px; height: 98px; border-radius: 4px; overflow: hidden; background: #f2f2f6; }
.news-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #eee; }
.news-user { font-weight: 900; }
.news-title { margin-top: 4px; font-weight: 900; }
.news-pack, .news-time { color: var(--muted); font-size: 13px; font-weight: 700; }
.rb { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; margin-right: 6px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 900; background: #777; }
.rb.ssr { background: linear-gradient(90deg,#f9bd22,#ef4db4,#7c4dff); }
.rb.sr { background: #8e34fc; }
.rb.r { background: #276bde; }
.rb.n { background: #777; }
.news-more-wrap { text-align: right; margin-top: 10px; }
.news-more { min-width: 134px; height: 32px; border: 1px solid var(--line-purple); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #c9b2f3; font-size: 13px; font-weight: 900; }
.news-more::after { content: ""; width: 15px; height: 16px; background: url("../img/design/pc/common/news/arrow.png") center / contain no-repeat; }

/* === 3-2. News Page === */
.news-fv { min-height: 223px; display: grid; place-items: center; background: #000 url("../img/design/pc/news/fv-bg.png") center / cover no-repeat; }
.news-fv img { width: 283px; }
.news-page { padding: 42px 0 64px; }
.news-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.news-stat { border-radius: 4px; border: 1px solid var(--border); background: #fff; padding: 18px; box-shadow: var(--shadow); }
.news-stat-label { color: var(--muted); font-weight: 700; }
.news-stat-value { margin-top: 8px; font-size: 28px; font-weight: 900; color: var(--purple); }
.news-list { display: grid; gap: 16px; }
.news-page .news-card-body { grid-template-columns: 70px 1fr 92px; }
.news-default-avatar { width: 70px; height: 70px; border-radius: 50%; }
.news-card-image { width: 92px; height: 116px; border-radius: 4px; overflow: hidden; }

/* === 3-7. Static Pages === */
.static-page { padding: 48px 0 72px; }
.static-card { max-width: 980px; margin: 0 auto; padding: 34px; border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.static-card + .static-card { margin-top: 20px; }
.static-section { padding: 22px 0; border-top: 1px solid #ece8f2; }
.static-section:first-child { border-top: 0; padding-top: 0; }
.static-section h2 { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.static-section p { margin: 0; color: #444; line-height: 1.9; }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid #e7e3ee; border-radius: 4px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { list-style: none; min-height: 64px; padding: 14px 54px 14px 18px; display: flex; align-items: center; gap: 14px; position: relative; font-weight: 900; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); background: url("../img/design/pc/static/FAQ/plus.png") center / contain no-repeat; }
.faq-item[open] summary::after { width: 19px; height: 18px; background-image: url("../img/design/pc/static/FAQ/close-x.png"); }
.faq-q, .faq-a { flex: 0 0 auto; width: 37px; height: 37px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.faq-q { background-image: url("../img/design/pc/static/FAQ/q.png"); }
.faq-a { background-image: url("../img/design/pc/static/FAQ/a.png"); }
.faq-answer { display: flex; gap: 14px; padding: 0 18px 20px; color: #444; line-height: 1.8; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 900; }
.required-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 15px; margin-left: 8px; border-radius: 2px; color: #fff; background: var(--pink); font-size: 10px; font-weight: 900; vertical-align: middle; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d9d4e4; border-radius: 4px; background: #fff; padding: 13px 14px; color: #222; }
.field textarea { min-height: 150px; resize: vertical; }
.contact-submit { width: 283px; height: 72px; border: 0; border-radius: 4px; color: #fff; background: #4d4d4d; font-size: 18px; font-weight: 900; }

/* === 3-8. Other Pages === */
.showcase-grid, .showcase-pack-grid, .collection-grid, .pt-plans, .mp-coll { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; }
.showcase-card, .showcase-pack, .collection-card, .pt-plan, .mp-profile, .mp-stat, .mp-menu-section, .address-form, .address-preview, .pt-balance, .text-card { background: #fff; border-radius: 4px; box-shadow: var(--shadow); border: 1px solid #eee; padding: 18px; }

/* === Detail / MyPage Legacy Compatibility === */
.crumb { margin: 28px 0 18px; color: var(--muted); font-weight: 700; }
.detail { max-width: 880px; margin: 0 auto; display: grid; gap: 24px; }
.detail-visual .thumb { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #f6f2fb; }
.detail-name { font-size: 34px; font-weight: 900; }
.detail-price { color: var(--purple); font-size: 32px; font-weight: 900; }
.gauge { height: 8px; background: var(--meter-bg); border-radius: 999px; overflow: hidden; }
.gauge i { display: block; height: 100%; background: var(--meter-1); }
.draw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.draw-btn, .draw-btn-10 { min-height: 74px; border: 0; border-radius: 4px; color: #fff; font-size: 24px; font-weight: 900; }
.draw-btn { background: var(--purple); }
.draw-btn-10 { background: var(--pink); }
.prize-list { display: grid; gap: 22px; }
.prize-label { margin-bottom: 12px; padding: 12px 16px; color: #fff; background: #000; font-size: 24px; font-weight: 900; }
.prize-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; }
.prize-card { background: #fff; border-radius: 4px; box-shadow: var(--shadow); padding: 12px; }
.prize-card-face { aspect-ratio: 3 / 4; background: #f5f5f8; overflow: hidden; }
.auth-wrap { width: min(680px, calc(100% - 32px)); margin: 56px auto; }
.auth-card { background: #fff; border-radius: 4px; box-shadow: var(--shadow); padding: 34px; display: grid; gap: 18px; }
.auth-title { margin: 0; font-size: 32px; font-weight: 900; text-align: center; }
.auth-sub, .auth-alt { text-align: center; color: var(--muted); }
.btn-primary-full { min-height: 56px; width: 100%; font-size: 18px; }

/* === Gacha Animation Compatibility === */
.gacha-ov { position: fixed; inset: 0; z-index: 3000; display: none; background: rgba(0,0,0,.92); color: #fff; overflow: auto; }
.gacha-ov.show { display: block; }
#gacha-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.g-movie { position: fixed; inset: 0; display: none; place-items: center; background: #000; z-index: 4; }
.g-movie.on { display: grid; }
.g-movie video { max-width: 100%; max-height: 100%; }
.g-skip { position: fixed; right: 24px; top: 24px; z-index: 6; padding: 12px 20px; border: 1px solid var(--purple); border-radius: 4px; background: #000; font-weight: 900; }
.gacha-stage { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 70px 18px; }
.gcard-wrap { perspective: 1000px; transform: translateY(20px); opacity: 0; transition: .4s; }
.gcard-wrap.on { opacity: 1; transform: translateY(0); }
.gcard-wrap.lift { transform: translateY(-80px); }
.gcard { width: min(300px, 72vw); aspect-ratio: 3 / 4; position: relative; transform-style: preserve-3d; transition: .7s; }
.gcard.flip { transform: rotateY(180deg); }
.gface { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; overflow: hidden; background: #191021; box-shadow: 0 20px 70px rgba(142,52,252,.45); }
.gback { background: linear-gradient(135deg,#000,#5a2390); border: 2px solid #fff; }
.gfront { transform: rotateY(180deg); }
.gresult, .r10-result { display: none; position: relative; z-index: 5; text-align: center; }
.gresult.on, .r10-result.on { display: block; }
.gactions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.g-again, .g-close { border: 0; border-radius: 4px; color: #fff; padding: 14px 24px; font-weight: 900; background: var(--grad-retry); }
.g-close { background: #333; }
.r10-grid { display: grid; grid-template-columns: repeat(5,minmax(110px,1fr)); gap: 12px; width: min(900px, 96vw); }
.r10-cell, .draw-result-item, .exchange-pack-card { background: #fff; color: #222; border-radius: 4px; padding: 12px; }
.draw-result-page, .exchange-page { display: none; position: fixed; inset: 0; z-index: 7; overflow: auto; background: #fff; color: #222; }
.draw-result-page.on, .exchange-page.on { display: block; }
.draw-result-header, .exchange-header, .draw-action-sheet { padding: 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; background: #fff; }
.draw-result-header img, .exchange-header img { height: 42px; }
.draw-result-main, .exchange-main { width: min(980px, calc(100% - 32px)); margin: 24px auto 120px; }
.draw-result-list { display: grid; gap: 12px; }
.draw-result-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; box-shadow: var(--shadow); }
.draw-action-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; }
.draw-action-buttons button, .draw-exchange-btn, .draw-ship-btn { min-height: 44px; border: 0; border-radius: 4px; color: #fff; padding: 0 18px; font-weight: 900; }
.draw-exchange-btn { background: var(--convert); }
.draw-ship-btn { background: var(--ship); }
.draw-card-modal { display: none; position: fixed; inset: 0; z-index: 9; place-items: center; background: rgba(0,0,0,.75); }
.draw-card-modal.on { display: grid; }
.draw-card-modal-close { position: fixed; right: 20px; top: 20px; }

/* === Responsive === */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-header__inner { padding: 0 28px; }
}
@media (max-width: 768px) {
  body { padding-bottom: 56px; }
  body::before { background-image: url("../img/design/sp/static/bg.png"); }
  body.bugri-auth-page::before { background-image: url("../img/design/sp/auth/bg.png"); }
  body.bugri-mypage-page::before, body.bugri-point-page::before, body.bugri-collection-page::before, body.bugri-address-page::before { background-image: url("../img/design/sp/mypage/bg.png"); }
  body.bugri-detail-page::before { background-image: url("../img/design/sp/detail/bg.png"); }
  .wrap, .bugri-wrap, .top-news-inner, .site-footer__inner { width: min(100% - 32px, 356px); }
  .main { padding-bottom: 36px; }
  .site-header { height: 62px; }
  .site-header__inner { padding: 0 10px; gap: 8px; }
  .site-header__logo img { width: 72px; height: 44px; }
  .site-header__actions { gap: 6px; }
  .header-btn { width: 106px; height: 30px; font-size: 13px; }
  .header-btn--login { width: 107px; }
  .header-point-pill { min-width: 152px; height: 29px; font-size: 11px; gap: 4px; }
  .header-point-pill img { width: 18px; height: 16px; }
  .header-point-pill b { font-size: 12px; }
  .header-mypage-btn { width: 28px; height: 28px; border: 0; padding: 0; font-size: 0; }
  .header-mypage-btn span { display: none; }
  .header-mypage-btn img { width: 28px; height: 28px; }
  .sp-menu-trigger { display: grid; place-items: center; width: 32px; height: 28px; border: 0; background: url("../img/design/sp/common/header/mypage-ver/hamburger.png") center / contain no-repeat; font-size: 0; }
  .header-menu { display: none; }
  .sp-slide-menu { display: block; position: fixed; right: 10px; top: 70px; z-index: 1100; width: 253px; padding: 18px; border-radius: 4px; background: #fff; box-shadow: 0 18px 38px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .16s; }
  .sp-slide-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .sp-slide-menu__profile { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #eee; font-weight: 900; }
  .sp-slide-menu__profile img { width: 55px; height: 57px; border-radius: 50%; }
  .sp-slide-menu a, .sp-slide-menu button { width: 100%; min-height: 38px; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 0 8px; text-align: left; font-weight: 700; color: #222; }
  .sp-slide-menu a.is-active { background: #f3eefc; color: var(--purple); }
  .site-footer { min-height: 415px; background-image: url("../img/design/sp/common/footer/group141.png"); }
  .site-footer__inner { min-height: 415px; flex-direction: column; justify-content: flex-start; gap: 18px; padding: 38px 0 88px; text-align: center; }
  .site-footer__logo { width: 171px; margin: 0 auto; }
  .site-footer__links { width: 100%; flex-direction: column; align-items: stretch; gap: 0; text-align: left; }
  .site-footer__links a { min-height: 40px; padding: 0 0 0 24px; display: flex; align-items: center; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); position: relative; font-size: 14px; }
  .site-footer__links a::before { content: ""; position: absolute; left: 2px; width: 8px; height: 13px; background: url("../img/design/sp/common/footer/arrow.png") center / contain no-repeat; }
  .site-footer__copy { bottom: 72px; padding: 0 14px; font-size: 10px; }
  .bugri-fixed-menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; height: 56px; display: grid; grid-template-columns: repeat(5,1fr); background: #fff; box-shadow: 0 -3px 12px rgba(0,0,0,.12); }
  .bugri-fixed-menu a { min-width: 0; display: grid; place-items: center; align-content: center; gap: 2px; color: #000; font-size: 10px; font-weight: 700; }
  .bugri-fixed-menu a.is-active { color: var(--purple); }
  .bugri-fixed-menu img { height: 23px; width: auto; object-fit: contain; }
  .bugri-section-heading { font-size: 22px; margin: 24px 0 16px; }
  .page-title, .static-title { font-size: 22px; padding-left: 12px; border-left-width: 5px; }
  .hero { margin: 18px 0 14px; }
  .banner { min-height: 160px; padding: 18px; }
  .banner-title { font-size: 24px; }
  .hero-btn { display: none; }
  .top-controls { display: grid; gap: 12px; }
  .sort-trigger { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .oripa { width: min(356px, 100%); margin: 0 auto; }
  .oripa-body { padding: 12px 14px 14px; }
  .oripa-price b, .oripa-stock b { font-size: 18px; }
  .stock-meter { height: 7px; }
  .draw-row-mini { gap: 8px; padding: 0 14px 14px; }
  .mini-btn { height: 41px; }
  .top-news-section { background-image: url("../img/design/sp/common/news/news-section-bg.png"); }
  .top-news-inner { padding: 32px 0 34px; }
  .news-section-heading { font-size: 24px; }
  .news-section-heading img { width: 26px; height: 32px; }
  .news-tabs, .news-tabs.has-all { grid-template-columns: repeat(3,1fr); gap: 4px; }
  .news-tabs.has-all { grid-template-columns: repeat(2,1fr); }
  .news-tabs button { height: 30px; font-size: 12px; }
  .news-feed-row { grid-auto-columns: 264px; }
  .news-more-wrap { text-align: center; }
  .news-fv { min-height: 67px; background-image: url("../img/design/sp/news/fv-bg.png"); }
  .news-fv img { width: 109px; }
  .news-page { padding: 24px 0 44px; }
  .news-stats { grid-template-columns: 1fr; }
  .news-page .news-card-body { grid-template-columns: 48px 1fr 70px; }
  .news-default-avatar { width: 48px; height: 48px; }
  .news-card-image { width: 70px; height: 88px; }
  .static-page { padding: 28px 0 44px; }
  .static-card { padding: 20px; }
  .faq-item summary { padding: 12px 46px 12px 12px; font-size: 14px; }
  .faq-q, .faq-a { width: 22px; height: 22px; }
  .faq-answer { padding: 0 12px 16px; font-size: 14px; }
  .contact-submit { width: 162px; height: 35px; font-size: 14px; }
  .draw-row, .r10-grid { grid-template-columns: 1fr 1fr; }
  .draw-btn, .draw-btn-10 { min-height: 46px; font-size: 18px; }
  .draw-result-item { grid-template-columns: 88px 1fr; }
  .draw-action-sheet { display: grid; gap: 8px; }
}


/* === Redesign wave 2 overrides === */
:root { --gold: #ffcc33; --blue: #276bde; }
body.bugri-index-page .main { padding-bottom: 0; }
.soldout-stamp img { width: 60%; max-width: 240px; height: auto; object-fit: contain; }

.news-carousel-wrap { position: relative; }
.news-carousel-btn {
  position: absolute; top: 50%; z-index: 5; width: 57px; height: 57px; padding: 0; border: 0;
  background: url("../img/design/pc/common/news/arrow2.png") center / contain no-repeat;
  transform: translateY(-50%); font-size: 0;
}
.news-carousel-prev { left: -28px; }
.news-carousel-next { right: -28px; transform: translateY(-50%) scaleX(-1); }
.news-carousel-btn:hover { filter: brightness(1.15); }
.bugri-news-page .news-tabs button:not(.on) { color: var(--deep-purple); border-color: var(--deep-purple); background: transparent; }

.bugri-detail-page .wrap { width: min(772px, calc(100% - 48px)); }
.bugri-detail-page .main { padding-bottom: 34px; }
.detail { max-width: 772px; gap: 26px; }
.detail-shell { display: grid; gap: 24px; }
.detail-visual { width: 100%; aspect-ratio: 772 / 486; overflow: hidden; border-radius: 4px; background: #f6f2fb; box-shadow: var(--shadow); }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-summary { display: grid; gap: 12px; }
.detail-price-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #222; font-weight: 900; }
.detail-price-main { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; }
.detail-price-main img { width: 52px; height: 49px; }
.detail-price-main b { font-size: 30px; }
.detail-stock-main { font-size: 18px; }
.detail-stock-main b { font-size: 24px; }
.detail-meter { height: 8px; }
.detail-soldout-notice { min-height: 72px; border: 2px solid var(--sold-red); border-radius: 4px; background: var(--sold-bg); color: var(--sold-red); display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 22px; font-weight: 900; }
.detail-soldout-notice img { width: 29px; height: 29px; }
.detail-point-bar { min-height: 77px; border-radius: 4px; background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 14px 22px; }
.detail-point-bar > div { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; }
.detail-point-bar img { width: 30px; height: 29px; }
.detail-point-bar b { font-size: 26px; }
.detail-point-bar a { width: 245px; height: 45px; border: 1px solid var(--deep-purple); border-radius: 4px; background: #fff; color: var(--deep-purple); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.detail-draw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-draw-btn { height: 95px; border: 0; border-radius: 4px; color: #fff; font-size: 32px; font-weight: 900; }
.detail-draw-btn-1 { background: var(--purple); }
.detail-draw-btn-1:hover { background: var(--purple-hover); }
.detail-draw-btn-10 { background: var(--pink); }
.detail-draw-btn-10:hover { background: var(--pink-hover); }
.detail-draw-btn:disabled { background: #bbb; color: #fff; }
.detail-prize-sections, .detail-lineup { display: grid; gap: 18px; }
.detail-prize-block { display: grid; gap: 16px; }
.detail-prize-heading { width: 100%; height: 63px; display: flex; align-items: center; padding-left: 38px; background-position: center; background-repeat: no-repeat; background-size: 100% 100%; }
.detail-prize-heading--large { background-image: url("../img/design/pc/detail/heading/band-large.png"); }
.detail-prize-heading--small { background-image: url("../img/design/pc/detail/heading/band-small.png"); }
.detail-prize-heading img { object-fit: contain; }
.detail-prize-heading--s img { width: 88px; height: 50px; }
.detail-prize-heading--a img { width: 96px; height: 49px; }
.detail-prize-heading--lineup img { width: 257px; height: 35px; }
.detail-prize-heading--small span { color: #fff; font-size: 26px; font-weight: 900; }
.detail-shell .prize-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.detail-shell .prize-cards.is-single { grid-template-columns: minmax(0, 180px); justify-content: center; }
.detail-shell .prize-card { min-width: 0; border: 1px solid #eee; }
.prize-card-name { margin-top: 10px; color: #222; font-size: 13px; line-height: 1.45; font-weight: 900; }
.prize-card-value { color: var(--purple); }
.detail-lineup-item { display: contents; }
.detail-lineup-cards.is-collapsed .detail-lineup-item.is-extra { display: none; }
.detail-see-all { justify-self: center; width: 245px; height: 45px; border: 1px solid var(--deep-purple); border-radius: 4px; background: #fff; color: var(--deep-purple); display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 900; }
.detail-see-all span { width: 23px; height: 23px; background: url("../img/design/pc/detail/arrow.png") center / contain no-repeat; }
.detail-notes { border-radius: 4px; background: #fff; box-shadow: var(--shadow); padding: 24px 28px; }
.detail-notes h2 { margin: 0 0 16px; padding-left: 14px; border-left: 5px solid var(--purple); color: var(--deep-purple); font-size: 24px; font-weight: 900; }
.detail-notes ul { margin: 0; padding-left: 1.3em; color: #333; line-height: 1.9; font-weight: 500; }

.gacha-ov { background: #000; overflow: hidden; }
.gacha-stage { min-height: 100vh; background: url("../img/design/pc/gacha/bg.png") center / contain no-repeat; overflow: hidden; }
.gacha-ov.mode-result, .gacha-ov.mode-exchange, .gacha-ov.mode-ship { background: #fff; overflow: auto; }
.gacha-ov.mode-result #gacha-canvas, .gacha-ov.mode-result .gacha-stage, .gacha-ov.mode-result .g-skip,
.gacha-ov.mode-exchange #gacha-canvas, .gacha-ov.mode-exchange .gacha-stage, .gacha-ov.mode-exchange .g-skip,
.gacha-ov.mode-ship #gacha-canvas, .gacha-ov.mode-ship .gacha-stage, .gacha-ov.mode-ship .g-skip { display: none; }
.g-skip { width: 136px; height: 55px; padding: 0; border: 1px solid #9f48ff; border-radius: 4px; background: #000; color: #fff; box-shadow: 0 0 16px rgba(142,52,252,.65); font-size: 16px; }
.g-movie { background: #000; }
.g-movie video { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.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%); }
.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; }
@keyframes beamSpin { to { transform: rotate(360deg); } }
.gback::after { content: "?"; display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.5); font-size: 84px; font-weight: 900; }
.r10-result { width: min(900px, 96vw); }
.r10-head { margin-bottom: 14px; font-size: 28px; font-weight: 900; }
.r10-cell { position: relative; box-shadow: var(--shadow); }
.r10-face { aspect-ratio: 3 / 4; background: #f5f4f8; }
.r10-name { margin-top: 8px; font-size: 12px; font-weight: 900; }
.r10-val { color: var(--purple); font-weight: 900; }
.r10-best-badge { position: absolute; top: 8px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: #ffcc33; color: #111; font-size: 10px; font-weight: 900; }

.draw-result-page { position: fixed; background: #fff; }
.draw-result-page::before { content: ""; display: block; height: 173px; background: #000 url("../img/design/pc/gacha/result/bg.png") center / cover no-repeat; }
.draw-result-page::after { content: ""; position: absolute; left: 50%; top: 36px; width: 279px; height: 96px; transform: translateX(-50%); background: url("../img/design/pc/gacha/result/heading-result.png") center / contain no-repeat; pointer-events: none; }
.draw-result-page.is-multi::after { width: 405px; height: 116px; top: 28px; background-image: url("../img/design/pc/gacha/result/heading-result10.png"); }
.draw-result-header { position: absolute; top: 0; left: 0; right: 0; z-index: 9; height: 72px; border: 0; background: transparent; }
.draw-result-header img { display: none; }
.draw-result-header button, .exchange-header button { margin-left: auto; min-width: 136px; height: 55px; border: 1px solid #9f48ff; border-radius: 4px; background: #000; color: #fff; font-weight: 900; }
.draw-result-main { width: min(1120px, calc(100% - 48px)); margin: 28px auto 150px; }
.draw-replay, .draw-notice, .draw-result-controls, .draw-watermark { display: none !important; }
.draw-result-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.draw-result-item { display: block; min-width: 0; padding: 12px; border: 1px solid #eee; box-shadow: var(--shadow); }
.draw-result-item.is-selected { outline: 3px solid rgba(142,52,252,.35); }
.draw-card-open { cursor: zoom-in; }
.draw-card-image { aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: #f5f4f8; }
.draw-card-image img { width: 100%; height: 100%; object-fit: cover; }
.draw-result-info { padding-top: 10px; }
.draw-result-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.draw-select-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--deep-purple); font-size: 11px; font-weight: 900; }
.draw-result-info h3 { min-height: 2.8em; margin: 8px 0 6px; color: #222; font-size: 14px; line-height: 1.4; font-weight: 900; }
.draw-result-value { display: none; }
.draw-result-note, .draw-result-expire, .draw-result-brand { display: none; }
.draw-result-point-bar { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; color: var(--purple); font-size: 16px; font-weight: 900; }
.draw-result-point-bar::before { content: ""; width: 21px; height: 20px; background: url("../img/design/pc/gacha/result/point-icon.png") center / contain no-repeat; }
.draw-result-point-bar .coin-icon { display: none; }
.draw-result-primary-actions { margin: 28px auto 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.draw-result-retry, .draw-result-collection { width: min(294px, 100%); height: 56px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; }
.draw-result-retry { border: 0; background: var(--grad-retry); }
.draw-result-collection { border: 1px solid #9f48ff; background: #000; }
.draw-action-sheet { gap: 12px; box-shadow: 0 -10px 30px rgba(0,0,0,.12); }

@media (max-width: 768px) {
  body.bugri-index-page .main { padding-bottom: 0; }
  .site-footer__inner { padding: 38px 0 88px; }
  .site-footer__copy { position: static; margin-top: 24px; padding: 0 14px; font-size: 10px; }
  .news-carousel-btn { width: 34px; height: 34px; background-image: url("../img/design/sp/common/news/arrow2.png"); background-size: 23px 23px; }
  .news-carousel-prev { left: -8px; }
  .news-carousel-next { right: -8px; }
  .news-feed-row { padding-left: 28px; padding-right: 28px; }
  .bugri-detail-page .wrap { width: min(345px, calc(100% - 30px)); }
  .detail { max-width: 345px; gap: 18px; }
  .detail-shell { gap: 18px; }
  .detail-visual { aspect-ratio: 345 / 217; }
  .detail-price-row { align-items: flex-start; gap: 8px; }
  .detail-price-main { gap: 6px; font-size: 13px; }
  .detail-price-main img { width: 28px; height: 27px; }
  .detail-price-main b { font-size: 18px; }
  .detail-stock-main { font-size: 12px; }
  .detail-stock-main b { font-size: 16px; }
  .detail-meter { height: 7px; }
  .detail-soldout-notice { min-height: 56px; gap: 8px; font-size: 14px; }
  .detail-point-bar { min-height: 56px; padding: 10px; }
  .detail-point-bar > div { gap: 5px; font-size: 12px; }
  .detail-point-bar img { width: 21px; height: 20px; }
  .detail-point-bar b { font-size: 16px; }
  .detail-point-bar a { width: 126px; height: 32px; font-size: 12px; }
  .detail-draw-actions { gap: 12px; }
  .detail-draw-btn { height: 41px; font-size: 17px; }
  .detail-prize-heading { height: 28px; padding-left: 17px; }
  .detail-prize-heading--large { background-image: url("../img/design/sp/detail/heading/band-large.png"); }
  .detail-prize-heading--small { background-image: url("../img/design/sp/detail/heading/band-small.png"); }
  .detail-prize-heading--s img { width: 43px; height: 26px; }
  .detail-prize-heading--a img { width: 47px; height: 26px; }
  .detail-prize-heading--lineup img { width: 119px; height: 19px; }
  .detail-prize-heading--small span { font-size: 14px; }
  .detail-shell .prize-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .detail-shell .prize-cards.is-single { grid-template-columns: minmax(0, 160px); }
  .detail-see-all { width: 135px; height: 25px; font-size: 12px; }
  .detail-see-all span { width: 16px; height: 17px; }
  .detail-notes { padding: 18px; }
  .detail-notes h2 { font-size: 18px; }
  .gacha-stage { background-image: url("../img/design/sp/gacha/bg.png"); background-size: cover; }
  .g-skip { right: 12px; top: 12px; width: 92px; height: 38px; font-size: 13px; }
  .r10-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draw-result-page::before { height: 122px; }
  .draw-result-page::after { top: 28px; width: 190px; height: 65px; }
  .draw-result-page.is-multi::after { top: 24px; width: 242px; height: 70px; }
  .draw-result-header { height: 54px; }
  .draw-result-header button, .exchange-header button { min-width: 92px; height: 38px; font-size: 13px; }
  .draw-result-main { width: min(345px, calc(100% - 30px)); margin-top: 22px; margin-bottom: 190px; }
  .draw-result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .draw-result-info h3 { font-size: 12px; }
  .draw-result-point-bar { font-size: 13px; }
  .draw-result-primary-actions { display: grid; gap: 10px; }
  .draw-result-retry, .draw-result-collection { width: 294px; max-width: 100%; height: 48px; }
}

/* === Redesign wave 3: mypage / point / collection / address / auth === */
.header-menu a.is-active { background: #f3eefc; color: var(--purple); }
.account-shell { display: grid; grid-template-columns: 229px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 70px; }
.account-main { min-width: 0; }
.account-side { position: sticky; top: 116px; }
.account-side-card { width: 229px; min-height: 418px; border: 1px solid #eee; border-radius: 4px; background: #fff; box-shadow: var(--shadow); padding: 22px 14px 16px; }
.account-side-profile { display: grid; justify-items: center; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid #eee; color: #222; }
.account-side-profile img { width: 88px; height: 88px; border-radius: 50%; }
.account-side-profile b { font-size: 17px; font-weight: 900; }
.account-side-profile small { color: #666; font-size: 12px; font-weight: 700; }
.account-side-nav { display: grid; gap: 4px; padding-top: 14px; }
.account-side-nav a, .account-side-logout { width: 100%; min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: #222; display: flex; align-items: center; gap: 11px; padding: 0 12px; text-align: left; font-size: 14px; font-weight: 900; }
.account-side-nav a:hover, .account-side-nav a.is-active, .account-side-logout:hover { background: #f3eefc; color: var(--purple); }
.account-side-nav img, .account-side-logout img { width: 24px; height: 24px; object-fit: contain; }
.account-side-sep { height: 1px; margin: 12px 8px; background: #eee; }

.mp-owned-point, .pt-current-point { min-height: 77px; border-radius: 4px; background: #000; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; margin-bottom: 22px; box-shadow: var(--shadow); }
.mp-owned-point__value, .pt-current-point { font-weight: 900; }
.mp-owned-point__value { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mp-owned-point img, .pt-current-point img { width: 38px; height: 37px; object-fit: contain; }
.mp-owned-point b, .pt-current-point b { font-size: 28px; }
.mp-owned-point a { flex: 0 0 auto; width: 244px; height: 44px; border-radius: 4px; background: var(--buy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.mp-owned-point a:hover { background: var(--pink-hover); }
.mp-profile, .mp-stat, .mp-menu-section, .mp-card, .mp-hist-row, .address-form, .address-preview, .collection-toolbar, .collection-decision article, .pt-purchase-detail, .pt-method, .pt-plan-card { background: #fff; border: 1px solid #ece7f4; border-radius: 4px; box-shadow: var(--shadow); }
.mp-profile { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.mp-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--purple); font-size: 24px; font-weight: 900; }
.mp-id { flex: 1; min-width: 0; }
.mp-id-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mp-name { font-size: 20px; font-weight: 900; }
.rank-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; color: #fff; background: var(--purple); font-size: 12px; font-weight: 900; }
.mp-rank-note, .mp-rank-pts { display: flex; justify-content: space-between; gap: 12px; color: #666; font-size: 12px; font-weight: 700; }
.mp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.mp-stat { padding: 18px; text-align: center; }
.mp-stat-num { color: var(--purple); font-size: 30px; font-weight: 900; }
.mp-stat-num small { margin-left: 2px; color: #666; font-size: 13px; }
.mp-stat-label { color: #666; font-weight: 700; }
.tabs { display: flex; gap: 8px; margin: 20px 0 16px; }
.tab { flex: 1; min-height: 44px; border: 1px solid var(--deep-purple); border-radius: 4px; display: grid; place-items: center; color: var(--deep-purple); background: #fff; font-weight: 900; cursor: pointer; }
.tab.on { color: #fff; border-color: transparent; background: var(--tab-active); }
.mp-panel { display: none; }
.mp-panel.on { display: block; }
.mp-coll { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mp-card { overflow: hidden; padding: 0; text-align: left; }
.mp-face, .mp-pickup-face { aspect-ratio: 3 / 4; background: #f5f4f8; overflow: hidden; }
.mp-card-body { padding: 12px; }
.mp-card-name { min-height: 2.8em; font-size: 13px; line-height: 1.4; font-weight: 900; }
.mp-card-val { margin-top: 6px; color: var(--purple); font-weight: 900; }
.mp-load-more-wrap { margin-top: 18px; text-align: center; }
.mp-load-more { min-width: 180px; min-height: 42px; border: 1px solid var(--deep-purple); border-radius: 4px; background: #fff; color: var(--deep-purple); font-weight: 900; }
.mp-hist { display: grid; gap: 12px; }
.mp-hist-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.mp-hist-time, .mp-hist-pack { color: #666; font-size: 13px; font-weight: 700; }
.mp-hist-card, .mp-hist-spent { font-weight: 900; }
.mp-hist-spent { color: var(--pink); }
.mp-account-menu { display: grid; gap: 18px; margin-top: 24px; }
.mp-menu-section { padding: 18px; }
.mp-menu-section h2 { margin: 0 0 12px; color: #000; font-size: 18px; font-weight: 900; }
.mp-menu-row { min-height: 48px; border: 0; border-top: 1px solid #eee; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; color: #222; font-weight: 700; text-align: left; }
.mp-menu-row:hover { color: var(--purple); }
.mp-menu-row i { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.mp-menu-logout { cursor: pointer; }

.mp-subheading { min-height: 44px; margin: 0 0 16px; padding: 10px 16px 10px 20px; border-left: 4px solid var(--purple); border-radius: 4px; background: #f0eefc; color: #111; font-size: 18px; font-weight: 900; }
.pt-current-point { justify-content: flex-start; width: min(509px, 100%); }
.pt-section { margin-top: 24px; }
.pt-plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pt-plan-card { position: relative; min-height: 158px; padding: 18px 10px 14px; display: grid; justify-items: center; align-content: center; gap: 8px; color: #222; }
.pt-plan-card img { width: 56px; height: 56px; }
.pt-plan-card strong { color: var(--purple); font-size: 23px; font-weight: 900; }
.pt-plan-card small { font-size: 13px; }
.pt-plan-card span { color: #666; font-size: 12px; font-weight: 700; }
.pt-plan-card.is-selected { border-color: var(--purple); background: #f6f0ff; outline: 2px solid rgba(142,52,252,.18); }
.pt-plan-flag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--pink); color: #fff !important; font-size: 11px !important; }
.pt-purchase-detail { padding: 18px; }
.pt-purchase-detail dl { display: grid; gap: 10px; margin: 0; }
.pt-purchase-detail div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.pt-purchase-detail div:last-child { padding-bottom: 0; border-bottom: 0; }
.pt-purchase-detail dt { color: #666; font-weight: 700; }
.pt-purchase-detail dd { margin: 0; color: #111; font-size: 18px; font-weight: 900; }
.pt-methods { display: grid; gap: 12px; }
.pt-method { min-height: 72px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.pt-method.is-selected { border-color: var(--purple); background: #f6f0ff; }
.pt-method input { accent-color: var(--purple); }
.pt-method-main { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.pt-method-main img { width: 42px; height: 42px; object-fit: contain; }
.pt-card-brands { display: inline-flex; align-items: center; gap: 8px; }
.pt-card-brands img { width: auto; height: 28px; object-fit: contain; }
.pt-confirm { width: 100%; height: 63px; margin-top: 26px; border: 0; border-radius: 4px; background: var(--buy); color: #fff; font-size: 20px; font-weight: 900; }

.collection-status-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.collection-status-tabs button { min-height: 48px; border: 1px solid var(--deep-purple); border-radius: 4px; background: #fff; color: var(--deep-purple); font-weight: 900; }
.collection-status-tabs button.is-active { border-color: transparent; color: #fff; background: var(--tab-active); }
.collection-status-message { margin-bottom: 16px; }
.collection-info { min-height: 77px; border-radius: 4px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; font-weight: 900; }
.collection-info img { flex: 0 0 auto; object-fit: contain; }
.collection-info-requested { background: #f0eefc; color: #3a245c; }
.collection-info-requested img { width: 44px; height: 30px; }
.collection-info-shipped { background: #eaf6ec; color: #235a2c; }
.collection-info-shipped img { width: 42px; height: 42px; }
.collection-info-pending { background: #f7f3ff; color: #3a245c; }
.collection-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.collection-toolbar[hidden], .collection-decision[hidden] { display: none !important; }
.collection-actions, .collection-decision { display: flex; gap: 12px; flex-wrap: wrap; }
.selection-button, .collection-decision button, .collection-decision a { min-height: 44px; border: 0; border-radius: 4px; padding: 0 18px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.selection-button-primary { background: var(--purple); }
.selection-button-clear { background: #555; }
.collection-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.collection-card { position: relative; padding: 12px; display: grid; gap: 10px; cursor: pointer; }
.collection-card.is-selected { border-color: var(--purple); outline: 2px solid rgba(142,52,252,.18); }
.collection-card-top { min-height: 28px; display: flex; justify-content: flex-end; }
.collection-status-badge { min-height: 28px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12px; font-weight: 900; }
.collection-status-badge img { width: 18px; height: 18px; object-fit: contain; }
.collection-status-badge.is-requested { background: #f0eefc; color: var(--purple); }
.collection-status-badge.is-shipped { background: #eaf6ec; color: #237a33; }
.collection-card-media { aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: #f5f4f8; }
.collection-body h2 { min-height: 2.8em; margin: 0; font-size: 14px; line-height: 1.4; font-weight: 900; }
.collection-body p { min-height: 2.6em; margin: 6px 0; color: #666; font-size: 12px; line-height: 1.35; font-weight: 700; }
.collection-body b { color: var(--purple); }
.collection-select { min-height: 34px; border: 1px solid var(--purple); border-radius: 4px; background: #fff; color: var(--purple); font-weight: 900; }
.selection-state-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.collection-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-convert, .card-ship, .card-track { min-height: 40px; border: 0; border-radius: 4px; color: #fff; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 900; }
.card-convert, .collection-decision button { background: var(--convert); }
.card-ship { background: var(--ship); }
.collection-decision a, .card-track { border: 1px solid var(--deep-purple); background: #fff; color: var(--deep-purple); }
.collection-decision { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collection-decision article { padding: 18px; }
.collection-decision h2 { margin: 8px 0; font-size: 18px; font-weight: 900; }
.collection-decision p { color: #666; line-height: 1.7; }

.address-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.address-form { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-wide, .postal-field { grid-column: 1 / -1; }
.postal-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.address-autofill { border: 1px solid var(--deep-purple); border-radius: 4px; background: #fff; color: var(--deep-purple); font-weight: 900; }
.address-submit { width: min(606px, 100%); height: 74px; margin: 28px auto 0; border: 0; border-radius: 4px; color: #fff; background: var(--grad-auth); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; }
.address-preview { padding: 20px; position: sticky; top: 116px; }
.address-preview strong { display: block; margin: 10px 0; font-size: 20px; font-weight: 900; }
.address-preview p { line-height: 1.8; font-weight: 700; }
.address-preview small { color: #666; line-height: 1.7; }

.auth-wrap { width: min(606px, calc(100% - 32px)); margin: 68px auto 82px; }
.auth-card { padding: 38px 40px; border: 1px solid #eee; }
.auth-title { font-size: 34px; }
.auth-bonus { margin: -4px 0 2px; text-align: center; color: var(--pink); font-weight: 900; }
.auth-submit { width: 100%; height: 74px; border: 0; border-radius: 4px; color: #fff; background: var(--grad-auth); font-size: 20px; font-weight: 900; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: #777; font-weight: 700; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #e6e0ef; }
.social-buttons { display: grid; gap: 12px; }
.social-button { width: 100%; min-height: 52px; border: 1px solid #d9d4e4; border-radius: 4px; background: #fff; color: #222; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 900; }
.social-button img { width: 28px; height: 28px; object-fit: contain; }
.auth-alt { margin: 0; }
.auth-alt a, .auth-check a { color: var(--purple); font-weight: 900; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; color: #555; font-size: 13px; line-height: 1.6; }
.auth-check input { margin-top: 4px; accent-color: var(--purple); }
.mp-card-modal { display: none; position: fixed; inset: 0; z-index: 2500; place-items: center; padding: 24px; background: rgba(0,0,0,.72); }
.mp-card-modal.on { display: grid; }
.mp-card-modal-dialog { width: min(720px, 100%); border-radius: 4px; background: #fff; position: relative; box-shadow: 0 18px 46px rgba(0,0,0,.3); }
.mp-card-modal-close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #000; color: #fff; font-size: 24px; }
.mp-card-pickup { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 28px; }
.mp-pickup-info span { color: var(--purple); font-weight: 900; }
.mp-pickup-info h2 { margin: 10px 0; font-size: 26px; font-weight: 900; }
.mp-pickup-info p { color: #666; }
.mp-pickup-info b { color: var(--purple); font-size: 24px; }

@media (max-width: 1100px) {
  .pt-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .address-layout { grid-template-columns: 1fr; }
  .address-preview { position: static; }
}
@media (max-width: 768px) {
  .account-shell { display: block; width: min(100% - 30px, 345px); padding-bottom: 42px; }
  .account-side { display: none; }
  .page-head { margin: 28px 0 18px; }
  .mp-owned-point, .pt-current-point { min-height: 58px; padding: 10px 12px; gap: 8px; }
  .mp-owned-point__value { gap: 6px; font-size: 12px; }
  .mp-owned-point img, .pt-current-point img { width: 24px; height: 24px; }
  .mp-owned-point b, .pt-current-point b { font-size: 18px; }
  .mp-owned-point a { width: 126px; height: 34px; font-size: 12px; }
  .mp-profile { padding: 14px; }
  .mp-avatar { width: 52px; height: 52px; }
  .mp-stats { grid-template-columns: 1fr; gap: 10px; }
  .mp-stat { padding: 14px; }
  .mp-coll { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mp-hist-row { grid-template-columns: 1fr; gap: 6px; }
  .mp-card-pickup { grid-template-columns: 1fr; padding: 18px; }
  .mp-pickup-face { max-width: 220px; margin: 0 auto; width: 100%; }
  .mp-subheading { min-height: 38px; font-size: 15px; }
  .pt-plan-grid { grid-template-columns: 1fr; }
  .pt-plan-card { min-height: 112px; grid-template-columns: 46px 1fr; justify-items: start; text-align: left; padding: 14px; }
  .pt-plan-card img { width: 46px; height: 46px; grid-row: span 2; }
  .pt-plan-card strong { font-size: 20px; }
  .pt-method { align-items: flex-start; flex-direction: column; }
  .pt-card-brands img { height: 22px; }
  .pt-confirm { height: 52px; font-size: 16px; }
  .collection-status-tabs { gap: 4px; }
  .collection-status-tabs button { min-height: 38px; font-size: 13px; }
  .collection-info { min-height: 58px; padding: 12px; font-size: 13px; }
  .collection-toolbar { align-items: stretch; flex-direction: column; padding: 14px; }
  .collection-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-decision { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .postal-row { grid-template-columns: 1fr; }
  .address-form { padding: 18px; }
  .address-submit { height: 52px; font-size: 16px; }
  .auth-wrap { width: min(100% - 32px, 343px); margin: 42px auto 54px; }
  .auth-card { padding: 26px 20px; gap: 14px; }
  .auth-title { font-size: 24px; }
  .auth-submit { height: 42px; font-size: 15px; }
  .social-button { min-height: 44px; font-size: 13px; }
  .social-button img { width: 22px; height: 22px; }
}

/* === Final visual QA fixes 2026-09-26 === */
.draw-result-main { margin: 28px auto 0; padding-bottom: 150px; }
.draw-action-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: grid;
  gap: 4px;
  width: 100%;
  max-height: 120px;
  padding: 12px 16px;
  border: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.draw-action-sheet *, .draw-action-sheet button, .draw-selected-total, #draw-action-note {
  white-space: nowrap;
  writing-mode: horizontal-tb;
}
.draw-sheet-logo { display: none !important; }
.draw-action-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.draw-selected-total { margin-right: auto; display: inline-flex; align-items: center; gap: 5px; color: #111; font-size: 16px; font-weight: 900; }
.draw-action-head > button {
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--purple);
  border-radius: 4px;
  background: #fff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
}
.draw-action-buttons { width: min(468px, 100%); margin: 0 auto; display: flex; justify-content: center; gap: 12px; }
.draw-action-buttons button, .draw-exchange-btn, .draw-ship-btn {
  flex: 1 1 0;
  max-width: 228px;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.draw-exchange-btn { background: var(--convert); }
.draw-ship-btn { background: var(--ship); }
.draw-action-sheet button:disabled { opacity: .45; }
#draw-action-note { margin: 0; color: #666; font-size: 12px; line-height: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; }

.detail-shell .prize-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.detail-shell .prize-cards.is-single { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: normal; }

.collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.collection-card-media { aspect-ratio: 63 / 88; background: #f5f4f8; }
.collection-card-media .no-image-frame { width: 100%; height: 100%; display: block; background: transparent; }
.collection-card-media .no-image-asset { display: block; width: 100%; height: 100%; object-fit: cover; }
.collection-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-convert, .card-ship, .card-track, .collection-select, .selection-button, .collection-decision button, .collection-decision a {
  white-space: nowrap;
  writing-mode: horizontal-tb;
}
.card-convert, .card-ship, .card-track { min-width: 0; padding: 0 8px; font-size: 12px; }

.sp-menu-trigger { position: relative; }
.sp-menu-trigger.is-open { background-image: none; }
.sp-menu-trigger.is-open::before, .sp-menu-trigger.is-open::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.sp-menu-trigger.is-open::before { transform: rotate(45deg); }
.sp-menu-trigger.is-open::after { transform: rotate(-45deg); }
.sp-slide-menu a img, .sp-slide-menu button img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }

.mp-owned-point__value, .mp-owned-point__value span, .mp-owned-point__value b { white-space: nowrap; }

.pt-method { justify-content: flex-start; }
.pt-method input { flex: 0 0 auto; }
.pt-method-main { flex: 0 1 auto; min-width: 0; justify-content: flex-start; white-space: nowrap; }
.pt-card-brands { margin-left: auto; flex: 0 0 auto; }

@media (max-width: 1100px) {
  .detail-shell .prize-cards, .detail-shell .prize-cards.is-single { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .draw-result-main { margin-top: 22px; margin-bottom: 0; padding-bottom: 194px; }
  .draw-result-page:not(.is-multi) .draw-result-list { grid-template-columns: minmax(0, 168px); justify-content: center; }
  .draw-action-sheet { max-height: 170px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .draw-action-head > button { font-size: 12px; }
  .draw-action-buttons { gap: 8px; }
  .draw-action-buttons button, .draw-exchange-btn, .draw-ship-btn { max-width: none; font-size: 13px; }
  #draw-action-note { text-align: left; }

  .detail-shell .prize-cards, .detail-shell .prize-cards.is-single { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .mp-owned-point__value { gap: 4px; font-size: 11px; }
  .mp-owned-point b { font-size: 16px; }
  .mp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mp-stat { min-width: 0; padding: 10px 4px; }
  .mp-stat-num { font-size: 20px; line-height: 1.1; }
  .mp-stat-num small { display: inline; font-size: 10px; }
  .mp-stat-label { margin-top: 4px; font-size: 10px; line-height: 1.25; }

  .pt-method { min-height: 58px; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
  .pt-method-main { gap: 8px; font-size: 13px; }
  .pt-method-main img { width: 32px; height: 32px; }
  .pt-card-brands { gap: 5px; }
  .pt-card-brands img { height: 18px; }

  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .collection-card { padding: 10px; }
  .collection-card-actions { grid-template-columns: 1fr; }
  .card-convert, .card-ship, .card-track { width: 100%; min-height: 38px; font-size: 12px; }
}
