/* ===================== VARIABLES ===================== */
:root {
  --red:    #E60012;
  --red-dk: #8B0000;
  --yellow: #FFD800;
  --yellow-dk: #B8980A;
  --orange: #FF8A00;
  --bg:     #FFF7BF;
  --text:   #222222;
  --white:  #ffffff;
  --dark:   #222222;
  --darker: #111111;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.12);
  --shadow:    0 4px 20px rgba(0,0,0,.18);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.25);

  --font: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'Yu Gothic', 'BIZ UDPGothic', sans-serif;
}

/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ===================== UTILITY ===================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.sp-only { display: none; }
@media (max-width: 639px) { .sp-only { display: inline; } }

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease var(--delay, 0s), transform .55s ease var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 900;
  border-radius: var(--radius-sm);
  border: 3px solid var(--dark);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }

.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--red);
  color: var(--yellow);
  box-shadow: 0 5px 0 var(--red-dk), 0 6px 20px rgba(230,0,18,.35);
  text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}
.btn-primary:hover { box-shadow: 0 7px 0 var(--red-dk), 0 8px 24px rgba(230,0,18,.4); }

.btn-yellow {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 5px 0 var(--yellow-dk);
}
.btn-yellow:hover { box-shadow: 0 7px 0 var(--yellow-dk); }

/* ===================== SECTION COMMON ===================== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-tag {
  display: inline-block;
  padding: .25rem 1rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: .75rem;
}
.tag-red    { background: var(--red);    color: var(--yellow); }
.tag-yellow { background: var(--yellow); color: var(--dark);   }
.tag-orange { background: var(--orange); color: var(--white);  }

.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--dark);
}
.section-desc {
  margin-top: .6rem;
  font-size: .9rem;
  font-weight: 700;
  color: #555;
  line-height: 1.6;
}

/* ===================== COUNTDOWN BAR ===================== */
#countdown-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  color: var(--yellow);
  padding: .4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 900;
  min-height: 34px;
}
#countdown-label { color: rgba(255,255,255,.7); }
#countdown-display {
  display: flex;
  align-items: center;
  gap: 2px;
}
.cd-box {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--yellow);
  min-width: 26px; padding: 1px 4px;
  border-radius: 4px; border: 1px solid var(--red-dk);
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
}
.cd-sep { color: rgba(255,255,255,.5); font-size: .68rem; margin: 0 1px; font-weight: 700; }
#countdown-bar.is-during {
  background: var(--red); color: var(--yellow);
  animation: bar-pulse 2s ease-in-out infinite;
}
#countdown-bar.is-after { background: #444; color: #aaa; }
#countdown-status { font-weight: 900; }
@keyframes bar-pulse { 0%,100%{opacity:1} 50%{opacity:.85} }

/* ===================== HERO ===================== */
#hero {
  position: relative;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 45%, #FFD800 0%, #FFB800 40%, #FF8A00 75%, var(--red) 100%);
  padding-top: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-rays {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .08;
}
.hero-rays line { stroke: #E60012; stroke-width: 2; }

.star {
  position: absolute;
  color: var(--red);
  opacity: .25;
  font-size: 1.5rem;
  user-select: none;
  pointer-events: none;
}
.sale-circle {
  position: absolute;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .75rem; color: var(--white);
  background: var(--red);
  opacity: .15;
  user-select: none; pointer-events: none;
}
.sale-top-right { width: 70px; height: 70px; top: 16%; right: 5%; }
.sale-bot-left  { width: 55px; height: 55px; bottom: 22%; left: 3%; }

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 2rem 1rem 4rem;
  width: 100%;
}

.hero-brand {
  display: inline-block;
  background: var(--dark); color: var(--yellow);
  padding: .2rem 1.1rem; border-radius: 100px;
  font-size: .65rem; font-weight: 900; letter-spacing: .15em;
  margin-bottom: .9rem;
}

.hero-num-badge {
  display: inline-flex; align-items: center; gap: .2rem;
  background: var(--red); color: var(--yellow);
  border: 3px solid var(--dark);
  border-radius: 100px;
  padding: .35rem 1.1rem;
  font-size: .9rem; font-weight: 900;
  margin-bottom: .9rem;
  box-shadow: var(--shadow);
}
.hero-num-big {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--yellow);
  text-shadow: 2px 2px 0 rgba(0,0,0,.3);
}

.hero-title {
  font-size: clamp(3rem, 13vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  text-shadow: 3px 3px 0 #222, -1px -1px 0 #222, 5px 5px 0 rgba(0,0,0,.12);
  -webkit-text-stroke: 1px var(--dark);
  margin-bottom: .5rem;
}

.hero-subtitle {
  font-size: clamp(.9rem, 3vw, 1.3rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: .25rem;
}

.hero-points {
  display: flex; align-items: flex-end; justify-content: center;
  gap: .25rem;
  margin-bottom: 1.4rem;
  color: var(--red);
}
.hero-counter {
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 2px 2px 0 #222;
  font-variant-numeric: tabular-nums;
}
.hero-points-label {
  font-size: clamp(.9rem, 3.5vw, 1.5rem);
  font-weight: 900;
  color: var(--dark);
  padding-bottom: .2rem;
}

.hero-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.badge-circle {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 4px solid var(--dark);
  box-shadow: var(--shadow-lg);
  animation: badge-pulse 2.2s ease-in-out infinite;
}
.badge-red    { width: clamp(100px, 26vw, 140px); height: clamp(100px, 26vw, 140px); background: var(--red); }
.badge-orange { width: clamp(88px, 23vw, 120px); height: clamp(88px, 23vw, 120px); background: var(--orange); animation-delay: .4s; }
.badge-pre, .badge-post { font-size: .65rem; font-weight: 900; color: var(--white); }
.badge-red .badge-pre { color: var(--white); }
.badge-num {
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #222;
}
.badge-orange .badge-num { color: #222; font-size: clamp(1.4rem, 6vw, 2.4rem); text-shadow: none; }

@keyframes badge-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }

.hero-dates {
  background: rgba(0,0,0,.85);
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  margin-bottom: 1.5rem;
}
.hero-dates-title {
  font-size: .7rem; font-weight: 900;
  color: var(--yellow); letter-spacing: .1em;
  margin-bottom: .35rem;
}
.hero-dates-main {
  font-size: clamp(1rem, 4.5vw, 1.6rem);
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 1px 1px 0 var(--red);
  line-height: 1.3;
}
.hero-hours {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .4rem 1rem;
  margin-top: .5rem;
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.85);
}

.hero-cta {
  display: flex; flex-direction: column; gap: .75rem; width: 100%;
  max-width: 360px;
}
@media (min-width: 480px) {
  .hero-cta { flex-direction: row; max-width: 520px; }
  .hero-cta .btn { flex: 1; }
}

.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 2rem;
  color: var(--dark); opacity: .5;
  font-size: .6rem; font-weight: 700; letter-spacing: .15em;
}
.scroll-hint svg { animation: bounce .9s ease infinite alternate; }
@keyframes bounce { to { transform: translateY(5px); } }

/* ===================== FLYER TEASER ===================== */
#flyer-teaser {
  background: var(--bg);
  border-top: 6px solid var(--red);
  border-bottom: 4px solid var(--yellow);
  padding: 3rem 1rem;
}
.teaser-card {
  display: flex; flex-direction: column;
  border: 4px solid var(--red);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 860px; margin: 0 auto;
}
@media (min-width: 640px) {
  .teaser-card { flex-direction: row; }
}

.teaser-img-wrap {
  position: relative; overflow: hidden; cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 640px) { .teaser-img-wrap { width: 50%; } }
.teaser-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; max-height: 280px; }
@media (min-width: 640px) { .teaser-img-wrap img { max-height: none; } }
.teaser-img-wrap:hover img { transform: scale(1.04); }

.teaser-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  opacity: 0; transition: opacity .3s;
  color: var(--white); font-weight: 900; font-size: .85rem;
}
.teaser-img-wrap:hover .teaser-overlay,
.teaser-img-wrap:focus .teaser-overlay { opacity: 1; }
.teaser-zoom-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.teaser-badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--red); color: var(--yellow);
  font-size: .65rem; font-weight: 900;
  padding: .2rem .7rem; border-radius: 100px;
}

.teaser-cta {
  flex: 1;
  background: var(--red);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem;
  padding: 2rem;
  text-align: center;
}
.teaser-eyebrow { font-size: .65rem; font-weight: 900; color: var(--yellow); letter-spacing: .05em; }
.teaser-title {
  font-size: clamp(1.3rem, 4.5vw, 1.9rem); font-weight: 900;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--red-dk);
  line-height: 1.3;
}
.teaser-sub { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.85); line-height: 1.5; }
.teaser-note { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.6); }

/* ===================== WHATS KIZU ===================== */
#whats-kizu { background: var(--bg); padding: 4rem 1rem; }
.grade-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .grade-grid { grid-template-columns: repeat(3, 1fr); } }

.grade-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.grade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.grade-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.grade-badge {
  display: inline-block;
  padding: .3rem 1rem; border-radius: 100px;
  font-size: 1.1rem; font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.grade-name { font-size: 1.05rem; font-weight: 900; color: var(--dark); }
.grade-desc { font-size: .82rem; line-height: 1.65; color: #555; }
.grade-tag {
  display: inline-block;
  padding: .2rem .75rem; border-radius: 100px;
  font-size: .7rem; font-weight: 900;
}

/* ===================== FEATURES ===================== */
#features { background: var(--red); padding: 4rem 1rem; }
#features .section-title { color: var(--yellow); }

.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  display: flex; flex-direction: column; gap: .75rem;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card > div:first-child { display: flex; align-items: flex-start; gap: .75rem; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-tag { font-size: .68rem; font-weight: 900; display: block; margin-bottom: .2rem; }
.feature-title { font-size: .95rem; font-weight: 900; color: var(--dark); }
.feature-desc { font-size: .8rem; line-height: 1.6; color: #555; }

/* ===================== CATEGORIES ===================== */
#categories { background: var(--bg); padding: 4rem 1rem; }

.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  background: var(--white);
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.1rem .75rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.cat-icon svg { width: 42px; height: 42px; }
.cat-card span { font-size: .88rem; font-weight: 900; color: var(--dark); }

.paypay-promo {
  background: var(--red);
  border: 4px solid var(--dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow);
}
.paypay-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--yellow); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900;
  flex-shrink: 0; box-shadow: var(--shadow);
}
.paypay-main { font-size: clamp(.95rem, 3vw, 1.2rem); font-weight: 900; color: var(--yellow); line-height: 1.4; }
.paypay-main strong { font-size: 1.6em; color: var(--white); }
.paypay-sub { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.75); margin-top: .25rem; }

/* ===================== BENEFITS ===================== */
#benefits { background: var(--dark); padding: 4rem 1rem; }
#benefits .section-title { color: var(--yellow); }

.benefits-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px)  { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,216,0,.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: transform .2s;
}
.benefit-card:hover { transform: translateY(-2px); }
.benefit-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--red); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-title { font-size: .95rem; font-weight: 900; color: var(--yellow); margin-bottom: .3rem; }
.benefit-desc { font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.6); }

/* ===================== TESTIMONIALS ===================== */
#testimonials { background: var(--bg); padding: 4rem 1rem; }

.voice-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 640px)  { .voice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .voice-grid { grid-template-columns: repeat(3, 1fr); } }

.voice-card {
  background: var(--white);
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .65rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.voice-card:hover { transform: translateY(-3px); }
.voice-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.voice-name { font-size: .85rem; font-weight: 900; color: var(--dark); }
.voice-loc  { font-size: .7rem; color: #888; }
.voice-badge {
  font-size: .62rem; font-weight: 900; white-space: nowrap;
  background: var(--red); color: var(--yellow);
  padding: .2rem .6rem; border-radius: 100px;
  flex-shrink: 0;
}
.stars { color: var(--yellow); font-size: 1rem; letter-spacing: .1em; }
.voice-text { font-size: .8rem; line-height: 1.7; color: #444; flex: 1; }

/* ===================== STORE INFO ===================== */
#store-info { background: var(--dark); padding: 4rem 1rem; }
#store-info .section-title { color: var(--yellow); }

.store-card {
  max-width: 860px; margin: 0 auto;
  border: 4px solid var(--yellow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.store-header {
  background: var(--red);
  padding: 1.5rem;
  text-align: center;
}
.store-brand-sub { font-size: .65rem; font-weight: 900; letter-spacing: .15em; color: rgba(255,255,255,.7); margin-bottom: .25rem; }
.store-name { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 900; color: var(--yellow); text-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.store-sub { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.85); margin-top: .25rem; }

.store-table { background: #1a1a1a; }
.store-row {
  display: flex; flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (min-width: 480px) { .store-row { flex-direction: row; } }
.store-label {
  flex-shrink: 0;
  padding: .65rem 1.1rem;
  font-size: .75rem; font-weight: 900;
  color: var(--yellow);
  background: rgba(255,216,0,.08);
  display: flex; align-items: center;
}
@media (min-width: 480px) { .store-label { width: 110px; } }
.store-val {
  padding: .65rem 1.1rem;
  font-size: .85rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center;
}
.store-event { color: var(--red) !important; font-weight: 900 !important; }
.store-tel-link { color: var(--yellow); font-weight: 900; }

.store-map-wrap { height: 280px; background: #2a2a2a; overflow: hidden; }
.store-map-wrap iframe { display: block; }

.store-access {
  background: #111;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  padding: 1.25rem;
}
@media (min-width: 640px) { .store-access { grid-template-columns: repeat(2, 1fr); } }
.access-box {
  background: rgba(255,216,0,.06);
  border: 1px solid rgba(255,216,0,.18);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
}
.access-title { font-size: .72rem; font-weight: 900; color: var(--yellow); margin-bottom: .4rem; }
.access-text { font-size: .72rem; line-height: 1.65; color: rgba(255,255,255,.6); }

.store-cta-row {
  background: var(--red);
  padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
@media (min-width: 480px) { .store-cta-row { flex-direction: row; justify-content: center; } }
.store-tel-btn { font-size: 1.15rem !important; }
.store-tel-note { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.75); }

/* ===================== FOOTER ===================== */
#footer {
  background: #111;
  border-top: 3px solid var(--red);
  padding: 2.5rem 1rem;
  text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-brand-sub { font-size: .65rem; font-weight: 900; letter-spacing: .15em; color: var(--yellow); margin-bottom: .2rem; }
.footer-brand { font-size: 1.1rem; font-weight: 900; color: var(--white); margin-bottom: .3rem; }
.footer-address { font-size: .75rem; color: rgba(255,255,255,.38); margin-bottom: 1rem; }
.footer-legal { font-size: .68rem; line-height: 1.65; color: rgba(255,255,255,.22); margin-bottom: .75rem; }
.footer-copy { font-size: .65rem; color: rgba(255,255,255,.18); }

/* ===================== MOBILE FIXED CTA ===================== */
#mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  padding: .65rem .75rem;
  background: rgba(0,0,0,.9);
  border-top: 2px solid var(--red);
}
@media (max-width: 639px) { #mobile-cta { display: block; } }
.mobile-cta-btn { width: 100%; font-size: 1.05rem !important; }

/* Bottom padding on mobile to avoid overlap */
@media (max-width: 639px) { footer { padding-bottom: 80px; } }

/* ===================== FLYER MODAL ===================== */
#flyer-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.95);
  display: flex; flex-direction: column;
}
#flyer-modal[hidden] { display: none; }

.modal-header {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1rem;
  background: #222; border-bottom: 2px solid var(--yellow);
  gap: .75rem;
}
.modal-title-wrap { display: flex; align-items: center; gap: .75rem; overflow: hidden; }
.modal-title { font-size: .85rem; font-weight: 900; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-page-label { font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.45); flex-shrink: 0; }
.modal-controls { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.modal-ctrl-btn {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 900; font-size: .8rem;
  transition: background .15s;
}
.modal-ctrl-btn:hover { background: rgba(255,255,255,.12); }
.modal-close-btn:hover { background: var(--red) !important; }
.modal-zoom-label { font-size: .72rem; font-weight: 900; color: var(--white); min-width: 38px; text-align: center; }

.modal-body {
  flex: 1;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #1a1a1a;
  position: relative;
}
.modal-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  font-size: .85rem; font-weight: 900; color: var(--yellow);
}
.loading-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid var(--yellow);
  border-top-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-zoom-wrap {
  transform-origin: center center;
  transition: transform .2s ease;
}

/* Simple viewer fallback (when StPageFlip not available) */
#book-container { display: flex; }
.page img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  user-select: none;
}

.modal-footer {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem;
  background: #222; border-top: 2px solid #333;
  gap: .5rem;
}
.modal-nav-btn { font-size: .85rem !important; padding: .6rem 1rem !important; }
.modal-nav-btn:disabled { opacity: .3; cursor: not-allowed; }
.modal-nav-btn:disabled:hover { transform: none; }

.modal-thumbs { display: flex; gap: .5rem; }
.thumb-btn {
  width: 38px; height: 54px;
  overflow: hidden; border-radius: 4px;
  border: 2px solid #555;
  transition: border-color .2s, opacity .2s;
  opacity: .5;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb-btn.active { border-color: var(--yellow); opacity: 1; }
