/* ============================================================
   randoseru.css — For Parents extension
   Extends style.css. All selectors prefixed .r- or .bg- or .rd-
   to avoid conflicts with existing rules.
   ============================================================ */

/* ── Language switching ───────────────────────────────────── */
.r-en, .r-jp { display: none; }
body.lang-en .r-en { display: inline; }
body.lang-jp .r-jp { display: inline; }

.r-en-b, .r-jp-b { display: none; }
body.lang-en .r-en-b { display: block; }
body.lang-jp .r-jp-b { display: block; }

.r-en-f, .r-jp-f { display: none; }
body.lang-en .r-en-f { display: flex; }
body.lang-jp .r-jp-f { display: flex; }

/* Japanese body rhythm */
body.lang-jp p,
body.lang-jp li { line-height: 1.95; }
body.lang-jp h1,
body.lang-jp h2,
body.lang-jp h3 { letter-spacing: 0; line-height: 1.45; }

/* ── Category color system ────────────────────────────────── */
:root {
  --cat-roots-light:     #F5EEDC;
  --cat-roots-dark:      #5C4A2A;
  --cat-craft-light:     #E1F5EE;
  --cat-craft-dark:      #085041;
  --cat-opening-light:   #FCE8EC;
  --cat-opening-dark:    #7A1A2E;
  --cat-blessings-light: #FFF4D6;
  --cat-blessings-dark:  #7A5A12;
  --cat-folklore-light:  #EDE4F7;
  --cat-folklore-dark:   #3F1F6E;
}

/* ── Randoseru nav extras ─────────────────────────────────── */
.r-nav-divider {
  width: 1px; height: 18px;
  background: var(--border);
  margin: 0 10px;
  flex-shrink: 0;
}
.r-nav-product {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ── Hero ─────────────────────────────────────────────────── */
.r-hero {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 96px 24px 80px;
  overflow: hidden;
}

.r-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.r-hero__copy { max-width: 580px; }

.r-hero__line {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
  opacity: 0;
}

.r-hero__sub {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  margin-top: 28px;
  margin-bottom: 24px;
  max-width: 480px;
  opacity: 0;
}

.r-hero__body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 40px;
  opacity: 0;
}
.r-hero__body p { margin-bottom: 14px; }
.r-hero__body p:last-child { margin-bottom: 0; }

.r-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
}
.r-hero__cta-note { font-size: 0.8rem; color: var(--text-muted); }

.r-hero__photo {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
}
.r-hero__photo-placeholder {
  text-align: center;
  padding: 40px 32px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.7;
}

/* ── Cultural / The Randoseru ─────────────────────────────── */
.r-cultural {
  padding: var(--section-pad);
  background: var(--bg-dark);
  color: var(--white);
}

.r-cultural__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.r-cultural .section-eyebrow { color: var(--amber-light); }

.r-cultural__h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 28px;
}

.r-cultural__body {
  font-size: 1rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.85;
}
.r-cultural__body p { margin-bottom: 20px; }
.r-cultural__body p:last-child { margin-bottom: 0; }
.r-cultural__body em { color: rgba(255,255,255,0.85); font-style: italic; }

.r-cultural__img {
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
  padding: 32px;
  line-height: 1.65;
}

/* ── World (3 cols) ───────────────────────────────────────── */
.r-world { padding: var(--section-pad); background: var(--bg-alt); }
.r-world__inner { max-width: var(--max-w); margin: 0 auto; }

.r-world__intro {
  max-width: 620px;
  margin-bottom: 52px;
}
.r-world__intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.r-world__intro p { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }

.r-world__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.r-world__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green);
}

.r-world__col h3 {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text);
}

.r-world__col p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ── How it works ─────────────────────────────────────────── */
.r-how { padding: var(--section-pad); background: var(--bg); }
.r-how__inner { max-width: var(--max-w); margin: 0 auto; }

.r-how__intro { max-width: 640px; margin-bottom: 48px; }
.r-how__intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.r-how__intro p { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }

.r-how__phases { display: flex; flex-direction: column; gap: 10px; }

.r-phase-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 24px 0 6px;
}
.r-phase-label:first-child { margin-top: 0; }

.r-phase-label::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 99px;
  flex-shrink: 0;
}
.r-phase-label--ritual::before { background: var(--green); }
.r-phase-label--pulse::before  { background: var(--amber); }

.r-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}
.r-step:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.r-step--ritual { border-left: 3px solid var(--green); }
.r-step--pulse  { border-left: 3px solid var(--amber); }

.r-step__num {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}
.r-step--ritual .r-step__num { background: var(--green-pale); color: var(--green); }
.r-step--pulse  .r-step__num { background: var(--amber-pale); color: var(--amber); }

.r-step__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.r-step--ritual .r-step__label { color: var(--green); }
.r-step--pulse  .r-step__label { color: var(--amber); }

.r-step__title {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.r-step__body {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Bag teaser ───────────────────────────────────────────── */
.r-bag { padding: var(--section-pad); background: var(--bg-alt); }
.r-bag__inner { max-width: var(--max-w); margin: 0 auto; }

.r-bag__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.r-bag__intro { max-width: 500px; }
.r-bag__intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.r-bag__intro p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; }

.r-bag__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.2s;
}
.r-bag__more:hover { gap: 10px; }

.r-bag__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Teaser flip cards */
.r-tcard { perspective: 900px; cursor: pointer; }

.r-tcard__inner {
  position: relative;
  width: 100%;
  padding-bottom: 130%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.r-tcard.flipped .r-tcard__inner { transform: rotateY(180deg); }

.r-tcard__face,
.r-tcard__back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.r-tcard__face {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.r-tcard__illus {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.r-tcard__illus svg { width: 100%; height: 100%; max-height: 130px; }

.r-tcard__foot {
  padding: 10px 12px 13px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.r-tcard__cat {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.r-tcard__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.r-tcard__hint {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.r-tcard__back {
  transform: rotateY(180deg);
  padding: 16px;
  justify-content: space-between;
}
.r-tcard__elder {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--white);
  line-height: 1.65;
  flex: 1;
  display: flex;
  align-items: center;
}
.r-tcard__cost {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-align: right;
}

.r-bag__footer {
  margin-top: 36px;
  text-align: center;
  padding: 28px 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.r-bag__footer p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.65;
}

/* ── Global Day + Council ─────────────────────────────────── */
.r-global { padding: var(--section-pad); background: var(--bg); }
.r-global__inner { max-width: var(--max-w); margin: 0 auto; }

.r-global__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 72px;
}

.r-global__quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 32px;
}
.r-global__quote p { margin-bottom: 12px; }
.r-global__quote p:last-child { margin-bottom: 0; }

.r-global__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.r-stat { }
.r-stat__num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}
.r-stat__lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.r-global__visual {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
  padding: 32px;
  line-height: 1.65;
}

/* Council */
.r-council { }
.r-council__head { margin-bottom: 36px; }
.r-council__head h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 10px; }
.r-council__head p {
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.r-council__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.r-council__card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.r-council__card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.r-council__photo {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid var(--border);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.r-council__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.r-council__identity {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 12px;
}
.r-council__quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.76rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* CCEF3 integration callout */
.r-ccef3-callout {
  margin-top: 56px;
  background: var(--green-pale);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.r-ccef3-callout__icon {
  width: 48px; height: 48px;
  background: var(--green);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.r-ccef3-callout__body { flex: 1; }
.r-ccef3-callout__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 4px;
}
.r-ccef3-callout__copy {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Pricing + Signup ─────────────────────────────────────── */
.r-join { padding: var(--section-pad); background: var(--bg-alt); }
.r-join__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.r-price-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.r-price-card__head {
  background: var(--bg-dark);
  padding: 28px 32px;
}
.r-price-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.r-price-card__amount {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.r-price-card__period {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
.r-price-card__features {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r-price-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.r-price-feat__check { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.r-price-card__sibling {
  margin: 0 32px 24px;
  padding: 12px 16px;
  background: var(--amber-pale);
  border: 1px solid var(--amber-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.r-sledgehammer {
  margin-top: 20px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 4px solid var(--amber);
}
.r-sledgehammer p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}

/* Signup form */
.r-signup__h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: 8px; }
.r-signup__sub { font-size: 0.95rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 28px; }

.r-form { display: flex; flex-direction: column; gap: 14px; }

.r-field { display: flex; flex-direction: column; gap: 5px; }
.r-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
.r-input, .r-select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  appearance: auto;
}
.r-input:focus, .r-select:focus { border-color: var(--green); }

.r-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.r-child-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.r-child-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.r-child-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.r-child-row__title { font-size: 0.78rem; font-weight: 600; color: var(--text-mid); }
.r-child-row__badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--amber-pale);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 99px;
}
.r-child-row__remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1rem; padding: 0; line-height: 1;
}
.r-child-row__remove:hover { color: var(--text); }

.r-add-child {
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.r-add-child:hover { border-color: var(--green); color: var(--green); }

.r-lang-toggle {
  display: flex;
  gap: 8px;
}
.r-lang-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.r-lang-btn.active { background: var(--green-pale); border-color: var(--green); color: var(--green); }

.r-trust-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.r-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ── Landing page: For-Parents teaser section ─────────────── */
.r-teaser {
  padding: var(--section-pad);
  background: var(--bg-dark);
  color: var(--white);
}
.r-teaser__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.r-teaser__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-light);
  margin-bottom: 14px;
}
.r-teaser__h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 18px;
}
.r-teaser__body {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  margin-bottom: 32px;
}
.r-teaser__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.r-teaser__card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 14px;
}
.r-teaser__price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 4px;
}
.r-teaser__price-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
}
.r-teaser__feats {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.r-teaser__feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.r-teaser__feat-i { color: var(--amber-light); flex-shrink: 0; margin-top: 1px; }

/* ── Bag Gallery page ─────────────────────────────────────── */
.bg-point-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(253,250,245,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
}
.bg-point-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bg-point-bar__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.bg-point-bar__track {
  flex: 1;
  height: 7px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.bg-point-bar__fill {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  width: 0%;
  transition: width 0.35s ease;
}
.bg-point-bar__fill.full { background: var(--amber); }
.bg-point-bar__pts {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  min-width: 64px;
  text-align: right;
  white-space: nowrap;
}
.bg-point-bar__pts.full { color: var(--amber); }
.bg-point-bar__reset {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.bg-point-bar__reset:hover { color: var(--green); background: var(--green-pale); }

.bg-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.bg-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.bg-tab {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.83rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-mid);
  transition: all 0.15s;
  white-space: nowrap;
}
.bg-tab:hover { border-color: var(--green); color: var(--green); }
.bg-tab.active { background: var(--green); border-color: var(--green); color: var(--white); }

.bg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Gallery flip cards */
.bg-card {
  perspective: 900px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.bg-card.dimmed { opacity: 0.3; pointer-events: none; }
.bg-card.dimmed.selected-card { opacity: 1; pointer-events: auto; }

.bg-card__inner {
  position: relative;
  width: 100%;
  padding-bottom: 145%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.bg-card.flipped .bg-card__inner { transform: rotateY(180deg); }

.bg-card__face,
.bg-card__back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bg-card__face {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bg-card.selected-card .bg-card__face {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green), var(--shadow-card);
}

.bg-card__top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
}
.bg-card__top svg { width: 100%; height: 100%; max-height: 160px; }
.bg-card__cost-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.1);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.bg-card__bot {
  padding: 10px 13px 13px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.bg-card__cat {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}
.bg-card__name { font-size: 0.83rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.bg-card__name-sub { font-size: 0.73rem; color: var(--text-muted); margin-top: 2px; }
.bg-card__flip-hint { font-size: 0.62rem; color: var(--text-muted); margin-top: 5px; }

/* Back */
.bg-card__back {
  transform: rotateY(180deg);
  padding: 16px;
  justify-content: space-between;
}
.bg-card__elder {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.65;
}
.bg-card__desc {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-top: 8px;
}
.bg-card__real {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}
.bg-card__back-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}
.bg-card__add {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s;
}
.bg-card__add:hover { background: rgba(255,255,255,0.3); }
.bg-card__add.is-added {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
}
.bg-card__back-pts {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}

/* ── Dashboard reskin ─────────────────────────────────────── */
.rd-header {
  background: var(--bg-dark);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rd-header-left { display: flex; align-items: center; gap: 14px; }
.rd-logo-badge {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.rd-logo-badge svg { width: 24px; height: 24px; }
.rd-title { color: var(--white); font-family: var(--font-head); font-size: 1.1rem; font-weight: 400; }
.rd-sub   { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 2px; }
.rd-quarter {
  background: var(--green);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
}
.rd-back {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.rd-back:hover { color: rgba(255,255,255,0.8); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .r-bag__grid { grid-template-columns: repeat(3, 1fr); }
  .r-council__grid { grid-template-columns: repeat(3, 1fr); }
  .bg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .r-hero__inner { grid-template-columns: 1fr; }
  .r-hero__photo { display: none; }
  .r-cultural__inner { grid-template-columns: 1fr; gap: 40px; }
  .r-cultural__img { aspect-ratio: 16/9; }
  .r-world__grid { grid-template-columns: 1fr; gap: 28px; }
  .r-global__split { grid-template-columns: 1fr; gap: 40px; }
  .r-global__visual { display: none; }
  .r-join__inner { grid-template-columns: 1fr; }
  .r-teaser__inner { grid-template-columns: 1fr; gap: 40px; }
  .r-bag__grid { grid-template-columns: repeat(3, 1fr); }
  .r-council__grid { grid-template-columns: repeat(2, 1fr); }
  .bg-grid { grid-template-columns: repeat(2, 1fr); }
  .r-bag__header { flex-direction: column; align-items: flex-start; }
  .rd-header { padding: 14px 20px; }
}

@media (max-width: 600px) {
  .r-bag__grid { grid-template-columns: repeat(2, 1fr); }
  .r-council__grid { grid-template-columns: 1fr; }
  .bg-grid { grid-template-columns: repeat(2, 1fr); }
  .r-form__row { grid-template-columns: 1fr; }
  .r-global__stats { gap: 24px; }
  .r-ccef3-callout { flex-direction: column; gap: 16px; }
  .r-join__inner { gap: 40px; }
}
