@charset "UTF-8";

:root {
  --theme: #2a2430;
  --theme-deep: #17131c;
  --theme-tint: #f1edf3;

  --accent: #a8768c;
  --accent-soft: #f6eef1;
  --gold: #c2a568;

  --ink: #211d26;
  --ink-soft: #635c6b;
  --ink-mute: #9a93a1;

  --line: #efeaf1;
  --line-strong: #e1dae5;
  --surface: #f7f4f7;
  --white: #ffffff;

  --ok: #3f8f68;
  --warn: #c08a2e;
  --danger: #cf5340;
  --line-green: #06c755;

  /* Capped at a 6.1" logical screen, leaving room for stage padding + bezel. */
  --screen-w: 375px;
  --screen-h: min(812px, calc(100dvh - 74px));

  /* Generous height so labels clear the home indicator. */
  --tabbar-h: 66px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--theme-deep);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

button {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The editorial serif carries the brand voice — headings and figures only. */
.hx {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
}

/* STAGE */

.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 5.5vw, 104px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 26px 20px;
  background:
    radial-gradient(900px 620px at 22% 24%, rgba(168, 118, 140, 0.3) 0%, rgba(23, 19, 28, 0) 62%),
    radial-gradient(760px 520px at 88% 84%, rgba(101, 86, 120, 0.36) 0%, rgba(23, 19, 28, 0) 60%),
    var(--theme-deep);
}

/* showcase panel (desktop widths only) */

.showcase {
  display: none;
  flex: 0 1 480px;
  max-width: 480px;
  color: #f2ecf2;
}

.showcase__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #c49bad;
}

.showcase__title {
  margin-top: 14px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.18;
}

.showcase__brand {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #d3b6c2;
}

.showcase__lead {
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 2.05;
  color: rgba(242, 236, 242, 0.76);
}

.showcase__points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase__points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(242, 236, 242, 0.9);
}

.showcase__points span {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(211, 182, 194, 0.42);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d3b6c2;
}

.showcase__note {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(211, 182, 194, 0.22);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.95;
  color: rgba(242, 236, 242, 0.46);
}

@media (min-width: 1024px) {
  .showcase {
    display: block;
  }
}

/* HANDSET */

.device {
  position: relative;
  flex: 0 0 auto;
  padding: 11px;
  border-radius: 56px;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px #2b2b2d, 0 30px 70px rgba(0, 0, 0, 0.55);
}

.device__btn {
  position: absolute;
  width: 3px;
  background: #2b2b2d;
}

.device__btn--mute {
  left: -2px;
  top: 112px;
  height: 30px;
  border-radius: 3px 0 0 3px;
}

.device__btn--up {
  left: -2px;
  top: 168px;
  height: 54px;
  border-radius: 3px 0 0 3px;
}

.device__btn--down {
  left: -2px;
  top: 234px;
  height: 54px;
  border-radius: 3px 0 0 3px;
}

.device__btn--power {
  right: -2px;
  top: 196px;
  height: 90px;
  border-radius: 0 3px 3px 0;
}

.device__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: var(--screen-w);
  height: var(--screen-h);
  border-radius: 46px;
  background: var(--white);
}

.statusbar {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 26px 6px;
  color: #1a1a1a;
}

.statusbar__time {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.statusbar__icons {
  width: 66px;
  height: 12px;
  fill: currentColor;
}

.island {
  position: absolute;
  z-index: 10;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 33px;
  border-radius: 20px;
  background: #000;
}

.liff {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.liff__mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.liff__name {
  flex: 1;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.liff__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #b3abba;
}

.home-indicator {
  position: absolute;
  z-index: 30;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #111;
  opacity: 0.9;
}

/* APP SHELL */

.app {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}

/* Tabs stop short of the bar; overlays cover it entirely, like a pushed screen. */
.screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--tabbar-h);
  left: 0;
  display: none;
  flex-direction: column;
  background: var(--surface);
}

.screen.is-active {
  display: flex;
}

/* Applied only when a tab is switched to, so the first paint is still. */
.screen.is-entering {
  animation: fadeUp 0.24s ease;
}

.tabscroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* bottom tab bar */

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  height: var(--tabbar-h);
  display: flex;
  padding-bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
}

.tabi {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding-top: 7px;
  color: var(--ink-mute);
  transition: color 0.16s ease;
}

.tabi.is-on {
  color: var(--theme);
}

.tabi__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabi__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tabi.is-on .tabi__label {
  font-weight: 700;
}

/* cart shortcut */

.fab {
  position: absolute;
  right: 16px;
  bottom: calc(var(--tabbar-h) + 16px);
  z-index: 18;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme);
  box-shadow: 0 10px 24px rgba(26, 18, 30, 0.4);
  transition: transform 0.16s ease;
}

.fab[hidden] {
  display: none;
}

.fab:active {
  transform: scale(0.94);
}

.fab__icon {
  width: 23px;
  height: 23px;
  fill: var(--white);
}

.fab__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid var(--surface);
  border-radius: 11px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  animation: badgePop 0.34s ease;
}

.fab__badge[hidden] {
  display: none;
}

/* SHARED FURNITURE */

.pad {
  padding: 18px 16px 22px;
}

.sec {
  margin-top: 22px;
}

.sec:first-child {
  margin-top: 0;
}

.sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.sec__title {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sec__more {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.btn-primary {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--theme);
  color: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 4px 14px rgba(42, 36, 48, 0.28);
  transition: transform 0.16s ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  transition: opacity 0.16s ease;
}

.btn-ghost:active {
  opacity: 0.5;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--theme);
  border-radius: 30px;
  color: var(--theme);
  font-size: 13px;
  font-weight: 600;
}

.toggle {
  flex: 0 0 auto;
  width: 46px;
  height: 27px;
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 30px;
  background: #d7d0dc;
  transition: background 0.2s ease;
}

.toggle span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle.is-on {
  background: var(--line-green);
}

.toggle.is-on span {
  transform: translateX(19px);
}

.rankchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 30px;
  background: var(--rank-bg, #efe9dd);
  color: var(--rank-fg, #5a5346);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rankchip svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.chev {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: var(--ink-mute);
}

/* PRODUCT TILE — the stand-in for photography */

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--tone, #cdbba6);
  background-image:
    linear-gradient(150deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}

/* Sized per variant below, from 68px thumbs to a full-width hero. */
.tile__glyph {
  position: absolute;
  right: -9%;
  bottom: -8%;
  width: 76%;
  height: auto;
  fill: #fff;
  opacity: 0.36;
}

.tile__tag {
  position: absolute;
  top: 8px;
  right: 9px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.tile--grid {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.tile--rail {
  width: 100%;
  height: 158px;
}

.tile--row {
  flex: 0 0 auto;
  width: 68px;
  height: 82px;
  border-radius: 10px;
}

.tile--row .tile__glyph {
  right: -12%;
  bottom: -12%;
  width: 88%;
}

.tile--hero {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.tile--hero .tile__glyph {
  right: 2%;
  bottom: -10%;
  width: 54%;
}

/* Used only when a product is given a real photo in main.js. */
.tile--photo {
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

.pname {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.pprice {
  margin-top: 3px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* HOME TAB */

/* `background-color` is the catch basin if the hot-linked photo 404s. */
.hero {
  position: relative;
  overflow: hidden;
  height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background-color: var(--theme);
  background-image:
    radial-gradient(80% 62% at 82% 8%, rgba(168, 118, 140, 0.38) 0%, rgba(23, 19, 28, 0) 62%),
    linear-gradient(152deg, rgba(55, 48, 62, 0.62) 0%, rgba(42, 36, 48, 0.72) 55%, rgba(20, 17, 26, 0.92) 100%),
    url("https://images.unsplash.com/photo-1470406852800-b97e5d92e2aa?auto=format&fit=crop&w=750&q=70");
  background-size: cover;
  background-position: center;
  color: #f4eff4;
}

.hero__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: #c9a3b4;
}

.hero__word {
  margin-top: 8px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.hero__sub {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.52em;
  color: #cbb3c1;
}

.greet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.greet__hello {
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.greet__name {
  margin-top: 3px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 21px;
  font-weight: 600;
}

.ptcard {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 16px;
  padding: 17px 18px;
  border-radius: 18px;
  background:
    radial-gradient(70% 54% at 88% 6%, rgba(194, 165, 104, 0.34) 0%, rgba(23, 19, 28, 0) 58%),
    linear-gradient(142deg, #3a3243 0%, var(--theme) 55%, #131019 100%);
  color: #f4eff4;
  transition: transform 0.16s ease;
}

.ptcard:active {
  transform: scale(0.985);
}

.ptcard__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.ptcard__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #c9a3b4;
}

.ptcard__value {
  display: block;
  margin-top: 5px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.ptcard__value em {
  margin-left: 4px;
  font-size: 13px;
  font-style: normal;
  color: #cbb3c1;
}

.ptcard__exp {
  flex: 0 0 auto;
  text-align: right;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.7;
  color: #b4a9bd;
}

.ptcard__scale {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 7px;
  font-size: 10.5px;
  color: #cbb3c1;
}

.ptcard__bar {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
}

.ptcard__fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.4s ease;
}

.ptcard__msg {
  display: block;
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 400;
  color: #e3d7e0;
}

.linkrow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--white);
  transition: opacity 0.16s ease;
}

.linkrow:active {
  opacity: 0.6;
}

.linkrow__ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
}

.linkrow__ico svg {
  width: 19px;
  height: 19px;
  fill: var(--accent);
}

.linkrow__body {
  flex: 1;
  min-width: 0;
}

.linkrow__title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.linkrow__sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mute);
}

/* Horizontal rails bleed to the screen edge so the next card peeks in. */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail__item {
  flex: 0 0 auto;
  width: 126px;
}

.rail__item--sm {
  width: 104px;
}

.rail__item--sm .tile--rail {
  height: 132px;
}

/* Unlike other photo surfaces this one carries dark copy, so the scrim runs light. */
.banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 142px;
  margin-top: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  background-color: #d9c4cd;
  background-image:
    linear-gradient(100deg, rgba(246, 238, 241, 0.94) 0%, rgba(217, 196, 205, 0.82) 48%, rgba(168, 118, 140, 0.6) 100%),
    url("https://images.unsplash.com/photo-1583209814683-c023dd293cc6?auto=format&fit=crop&w=700&q=70");
  background-size: cover;
  background-position: center;
  color: #2b1f26;
}

.banner__glyph {
  position: absolute;
  right: -10px;
  bottom: -22px;
  width: 118px;
  fill: #fff;
  opacity: 0.16;
}

.banner__no {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(43, 31, 38, 0.62);
}

.banner__title {
  margin-top: 7px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.28;
}

.banner__more {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(43, 31, 38, 0.72);
}

.newsitem {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.newsitem:last-child {
  border-bottom: 0;
}

.newsitem__tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
}

.newsitem__tag--member {
  color: var(--accent);
}

.newsitem__tag--store {
  color: var(--ok);
}

.newsitem__text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: #4a4350;
}

.newsitem__date {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

/* SHOP TAB */

.pagetitle {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-mute);
  font-size: 12.5px;
  font-weight: 400;
}

.searchbar svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.catrow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 15px -16px 0;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.catrow::-webkit-scrollbar {
  display: none;
}

.catchip {
  flex: 0 0 auto;
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.catchip.is-on {
  border-color: var(--theme);
  background: var(--theme);
  color: var(--white);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  margin-top: 16px;
}

.griditem {
  position: relative;
}

.fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
  transition: transform 0.16s ease;
}

.fav:active {
  transform: scale(0.9);
}

.fav svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #8a8290;
  stroke-width: 1.6;
}

.fav.is-on svg {
  fill: var(--danger);
  stroke: var(--danger);
}

/* MEMBER CARD TAB */

.memcard {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 14px;
  padding: 20px;
  border-radius: 20px;
  background:
    radial-gradient(70% 52% at 88% 6%, rgba(194, 165, 104, 0.42) 0%, rgba(23, 19, 28, 0) 56%),
    linear-gradient(142deg, #3a3243 0%, var(--theme) 55%, #131019 100%);
  color: #f4eff4;
  box-shadow: 0 18px 34px -14px rgba(26, 18, 30, 0.6);
}

.memcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.memcard__brand {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.memcard__sub {
  margin-top: 2px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: #c9a3b4;
}

.memcard__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.memcard__who {
  min-width: 0;
}

.memcard__role {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #a89bb0;
}

.memcard__name {
  margin-top: 3px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 19px;
  font-weight: 600;
}

.memcard__id {
  margin-top: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #b9aec1;
}

.memcard__qr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px;
  border-radius: 10px;
  background: var(--white);
  transition: transform 0.16s ease;
}

.memcard__qr:active {
  transform: scale(0.95);
}

.memcard__qr span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.notebox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--theme-tint);
}

.notebox svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: var(--theme);
}

.notebox p {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
}

.notebox b {
  color: var(--ink);
}

/* visit stamp card */

.stampcard {
  padding: 15px 14px 13px;
}

.stampgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stamp {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 600;
}

.stamp.is-on {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.stamp.is-on svg {
  width: 17px;
  height: 17px;
  fill: var(--accent);
}

.stamp.is-goal {
  border-color: var(--gold);
  color: var(--gold);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.stampcard__note {
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* rank perks */

.perk {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: #4a4350;
}

.perk:last-child {
  border-bottom: 0;
}

.perk svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

/* point ledger */

.pthist {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.pthist:last-child {
  border-bottom: 0;
}

.pthist__ico {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--theme-tint);
}

.pthist__ico svg {
  width: 15px;
  height: 15px;
  fill: var(--theme);
}

.pthist__body {
  flex: 1;
  min-width: 0;
}

.pthist__label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
}

.pthist__meta {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.pthist__amt {
  flex: 0 0 auto;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ok);
}

.pthist__amt.is-minus {
  color: var(--danger);
}

/* COUPON TAB */

.cplist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.cpcard {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: transform 0.16s ease;
}

.cpcard:active {
  transform: scale(0.985);
}

.cpcard__big {
  flex: 0 0 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: var(--cp, var(--theme));
  color: var(--white);
  text-align: center;
}

.cpcard__num {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.cpcard__unit {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.9;
}

.cpcard__body {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
}

.cptag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--cptag-bg, var(--accent-soft));
  color: var(--cptag-fg, var(--accent));
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cpcard__title {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.cpcard__exp {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

/* The two punch-outs that make the card read as a torn ticket. */
.cpcard__notch {
  position: absolute;
  left: 86px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
}

.cpcard__notch--t {
  top: -7px;
}

.cpcard__notch--b {
  bottom: -7px;
}

/* MY PAGE TAB */

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile__avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9c4cd, var(--accent));
  color: var(--white);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 21px;
  font-weight: 600;
}

.profile__name {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 19px;
  font-weight: 600;
}

.profile__meta {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mute);
}

.omobadge {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.orderlist {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ordercard {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.ordercard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chbadge {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chbadge--online {
  background: var(--theme);
  color: var(--white);
}

.chbadge--store {
  background: #efe3cd;
  color: #6b5424;
}

.ordercard__date {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.ordercard__main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.ordercard__title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

.ordercard__sub {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.ordercard__total {
  flex: 0 0 auto;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 15px;
  font-weight: 600;
}

.setrow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.setrow:last-child {
  border-bottom: 0;
}

.setrow__ico {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: var(--ink-soft);
}

.setrow__label {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #4a4350;
}

.setrow__value {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mute);
}

.notifrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.notifrow:last-child {
  border-bottom: 0;
}

.notifrow__body {
  flex: 1;
  min-width: 0;
}

.notifrow__label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
}

.notifrow__hint {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.sechint {
  margin: -6px 0 11px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mute);
}

/* OVERLAYS — pushed screens that cover the tab bar */

.ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  animation: overlayIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ov[hidden] {
  display: none;
}

.ov--product {
  z-index: 40;
}

.ov--cart {
  z-index: 44;
}

.ov--done {
  z-index: 48;
}

.ov--talk {
  z-index: 52;
}

.ov__bar {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
}

.ov__back {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.ov__back svg {
  width: 10px;
  height: 18px;
}

.ov__title {
  font-size: 15.5px;
  font-weight: 700;
}

.ov__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ov__foot {
  flex: 0 0 auto;
  padding: 12px 16px 22px;
  background: var(--white);
  border-top: 1px solid var(--line-strong);
}

.ov__foot--split {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ov__foot--stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* product detail */

.phero {
  position: relative;
  height: 268px;
}

.phero__back,
.phero__fav {
  position: absolute;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
}

.phero__back {
  left: 12px;
}

.phero__back svg {
  width: 9px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phero__fav {
  right: 12px;
}

.phero__fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8a8290;
  stroke-width: 1.6;
}

.phero__fav.is-on svg {
  fill: var(--danger);
  stroke: var(--danger);
}

.pdetail {
  padding: 18px 18px 20px;
}

.pdetail__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.pdetail__name {
  margin-top: 7px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.pdetail__price {
  margin-top: 9px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 21px;
  font-weight: 600;
}

.pdetail__price em {
  margin-left: 6px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-mute);
}

.pdetail__desc {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-soft);
}

.optgroup {
  margin-top: 20px;
}

.optgroup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.optgroup__label {
  font-size: 12px;
  font-weight: 700;
}

.optgroup__value {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.swatches {
  display: flex;
  gap: 11px;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sw, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.16s ease;
}

.swatch.is-on {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--theme);
}

.sizes {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.sizebtn {
  min-width: 48px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.sizebtn.is-on {
  border-color: var(--theme);
  background: var(--theme);
  color: var(--white);
}

.stockbox {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--white);
}

.stockbox__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbf9fb;
  font-size: 12.5px;
  font-weight: 700;
}

.stockbox__head svg {
  width: 15px;
  height: 15px;
  fill: var(--ink-soft);
}

.stockbox__head span:nth-child(2) {
  flex: 1;
}

.stockbox__ok {
  color: var(--ok);
  font-weight: 700;
}

.stockbox__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 4px;
  font-size: 12.5px;
  font-weight: 700;
}

.stockbox__sub svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.storerow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.storerow:first-of-type {
  border-top: 0;
}

.storerow__body {
  flex: 1;
  min-width: 0;
}

.storerow__name {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
}

.storerow__dist {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.storerow__stock {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
}

.footsum {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-mute);
}

.footsum strong {
  display: block;
  margin-top: 1px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

/* cart */

.cartwrap {
  padding: 16px;
}

.cartrow {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.cartrow__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cartrow__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cartrow__name {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.cartrow__del {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: -3px -3px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1;
}

.cartrow__opts {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.cartrow__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 9px;
}

.cartrow__line {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 14px;
  font-weight: 600;
}

.stepper {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.stepper button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.stepper button:disabled {
  color: #cec7d4;
  cursor: default;
}

.stepper__qty {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.recv {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.recvbtn {
  flex: 1;
  padding: 13px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--white);
  text-align: center;
  transition: all 0.18s ease;
}

.recvbtn svg {
  width: 20px;
  height: 20px;
  fill: var(--ink-soft);
}

.recvbtn__label {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 700;
}

.recvbtn__hint {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-mute);
}

.recvbtn.is-on {
  border-color: var(--theme);
  background: var(--theme);
  color: var(--white);
}

.recvbtn.is-on svg {
  fill: var(--white);
}

.recvbtn.is-on .recvbtn__hint {
  color: rgba(255, 255, 255, 0.72);
}

.usept {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--theme);
  color: #f4eff4;
}

.usept svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: var(--gold);
}

.usept__body {
  flex: 1;
  min-width: 0;
}

.usept__label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.usept__hint {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: #c9bcd0;
}

.usept .toggle {
  background: rgba(255, 255, 255, 0.24);
}

.usept .toggle.is-on {
  background: var(--line-green);
}

.totals {
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-soft);
}

.totals__row--minus {
  color: var(--accent);
  font-weight: 500;
}

.totals__rule {
  height: 1px;
  margin: 9px 0;
  background: var(--line);
}

.totals__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.totals__sum span:last-child {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 21px;
  font-weight: 600;
}

.totals__earn {
  margin-top: 5px;
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 30px;
  color: var(--ink-mute);
  text-align: center;
}

.empty svg {
  width: 44px;
  height: 44px;
  fill: #ddd6e0;
}

.empty p {
  font-size: 13px;
  font-weight: 500;
}

/* order complete */

.done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 26px 28px;
  text-align: center;
}

.done__check {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme);
  animation: pop 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.done__check svg {
  width: 34px;
  height: 34px;
  fill: var(--gold);
}

.done__title {
  margin-top: 20px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 22px;
  font-weight: 600;
}

.done__meta {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-mute);
}

.done__meta b {
  color: var(--ink);
  font-weight: 700;
}

.done__box {
  width: 100%;
  max-width: 268px;
  margin-top: 20px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.done__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.done__row strong {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.done__row--earn {
  color: var(--accent);
}

.done__row--earn strong {
  color: var(--accent);
}

.done__rule {
  height: 1px;
  margin: 11px 0;
  background: var(--line);
}

.done__line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--line-green);
}

.done__line i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--line-green);
}

/* LINE TALK — the CRM side of the same account */

.ov--talk {
  background: #7f96ad;
}

.talkbar {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #3a4a5a;
  color: #fff;
}

.talkbar__back {
  width: 30px;
  height: 30px;
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.talkbar__back svg {
  width: 10px;
  height: 18px;
}

.talkbar__avatar,
.msg__avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme);
  color: #fff;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 12px;
  font-weight: 600;
}

.talkbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.talkbar__name {
  font-size: 15.5px;
  font-weight: 600;
}

.talkbody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 22px;
}

.talk__day {
  margin-bottom: 16px;
  text-align: center;
}

.talk__day span {
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 11.5px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.msg__avatar {
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 50%;
}

.msg__body {
  min-width: 0;
  max-width: 80%;
}

.msg__from {
  margin: 0 0 4px 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
}

.msg__bubble {
  padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  animation: msgPop 0.3s ease;
}

.msg__time {
  margin: 5px 0 0 4px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
}

.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 14px 16px;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8c0cd;
  animation: dotBounce 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.typing span:nth-child(3) {
  animation-delay: 0.36s;
}

/* The segment push arrives as a rich message, not a plain bubble. */
.rich {
  overflow: hidden;
  width: 232px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  animation: msgPop 0.3s ease;
}

/* Stands in for the rich-menu image a real LINE push would carry. */
.rich__visual {
  position: relative;
  overflow: hidden;
  height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  background-color: var(--theme);
  background-image:
    linear-gradient(140deg, rgba(58, 50, 67, 0.78), rgba(42, 36, 48, 0.8) 60%, rgba(19, 16, 25, 0.92)),
    url("https://images.unsplash.com/photo-1775997167884-077821f7e3ea?auto=format&fit=crop&w=500&q=70");
  background-size: cover;
  background-position: center;
  color: #f4eff4;
}

.rich__visual svg {
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 92px;
  fill: var(--gold);
  opacity: 0.2;
}

.rich__eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.rich__headline {
  margin-top: 7px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.rich__body {
  padding: 12px 14px 14px;
}

.rich__text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
}

.rich__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-top: 11px;
  border-radius: 10px;
  background: var(--theme-tint);
  color: var(--theme);
  font-size: 12.5px;
  font-weight: 700;
}

/* BOTTOM SHEET */

.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 56;
}

.sheet-layer[hidden] {
  display: none;
}

.sheet-layer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 24, 0.5);
  animation: fadeIn 0.2s ease;
}

.sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: 92%;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  animation: sheetUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet__grip {
  flex: 0 0 auto;
  width: 42px;
  height: 5px;
  margin: 9px auto 4px;
  border-radius: 5px;
  background: var(--line-strong);
}

.sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 20px 4px;
}

.sheet__foot {
  flex: 0 0 auto;
  padding: 12px 20px 24px;
}

.cpbig {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border-radius: 18px;
  background: var(--cp, var(--theme));
  color: var(--white);
  text-align: center;
}

.cpbig__num {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.cpbig__unit {
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

.sheet__tag {
  margin-top: 18px;
}

.sheet__title {
  margin-top: 10px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.sheet__desc {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-soft);
}

.sheet__exp {
  margin-top: 13px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mute);
}

/* MEMBER CODE MODAL */

.qrmodal {
  position: absolute;
  inset: 0;
  z-index: 58;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px;
  background: rgba(14, 11, 17, 0.94);
  animation: fadeIn 0.24s ease;
}

.qrmodal[hidden] {
  display: none;
}

.qrmodal__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--gold);
}

.qrmodal__paper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 250px;
  padding: 22px;
  border-radius: 20px;
  background: var(--white);
}

.qrmodal__paper svg {
  display: block;
}

.qrmodal__bars {
  width: 100%;
}

.qrmodal__id {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.qrmodal__hint {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  color: #c7bccd;
}

/* LOADING / TOAST */

.loading {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.93);
  animation: fadeIn 0.2s ease;
}

.loading[hidden] {
  display: none;
}

.loading__spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e8e1ec;
  border-top-color: var(--theme);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading__text {
  font-size: 14.5px;
  font-weight: 600;
  color: #8b8392;
}

.toast {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-left: 4px solid var(--accent);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 12px 30px -8px rgba(26, 18, 30, 0.42);
  animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast[hidden] {
  display: none;
}

.toast--line {
  border-left-color: var(--line-green);
}

.toast__ico {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--accent);
}

.toast--line .toast__ico {
  background: var(--line-green);
}

.toast__ico svg {
  width: 15px;
  height: 15px;
  fill: var(--white);
}

.toast__body {
  flex: 1;
  min-width: 0;
}

.toast__from {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--line-green);
}

.toast__text {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

/* KEYFRAMES */

@keyframes overlayIn {
  from {
    transform: translateX(24px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    transform: translateY(-18px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes msgPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes badgePop {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dotBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* FULL-BLEED — how the app opens on a real handset, without the mock frame. */

@media (max-width: 520px) {
  :root {
    --screen-w: 100%;
    --screen-h: 100dvh;
  }

  .stage {
    padding: 0;
    background: var(--surface);
  }

  .device {
    width: 100%;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .device__btn,
  .island,
  .home-indicator {
    display: none;
  }

  .device__screen {
    border-radius: 0;
  }

  .statusbar {
    height: 38px;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 4px;
  }

  .tabbar {
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .screen {
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .ov__foot,
  .sheet__foot {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
