/* ==========================================================================
   ATM接龙 · 前端视觉系统
   ========================================================================== */

:root {
  --wine-950: #2b0912;
  --wine-900: #3f0d1a;
  --wine-800: #571322;
  --wine-700: #6f1a2a;
  --wine-600: #872235;
  --wine-500: #a52f46;
  --rose: #d45c70;
  --rose-soft: #f6e2e4;
  --rose-mist: #fbf0ef;
  --coral: #ff7d67;
  --gold: #e7b66b;
  --gold-soft: #f7ead2;
  --cream: #f8f0e8;
  --paper: #fffbf7;
  --ink: #2b161b;
  --muted: #877077;
  --muted-2: #a58e92;
  --line: rgba(94, 36, 46, 0.12);
  --line-strong: rgba(94, 36, 46, 0.2);
  --shadow-soft: 0 14px 40px -22px rgba(74, 18, 31, 0.36);
  --shadow-card: 0 22px 56px -32px rgba(74, 18, 31, 0.45);
  --font-sans: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-number: "DIN Alternate", "Bahnschrift", "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(231, 182, 107, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(212, 92, 112, 0.11), transparent 55%),
    linear-gradient(180deg, #faf5ef 0%, #f7f0e9 45%, #fbf6f1 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--rose-soft); color: var(--wine-800); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--paper);
  color: var(--wine-700);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.boot-splash {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--wine-700);
}
.boot-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #ffe6d1;
  background: linear-gradient(145deg, var(--wine-600), var(--wine-900));
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 20px 50px -20px rgba(80, 14, 30, 0.7);
  animation: bootPulse 1.6s var(--ease) infinite;
}
.boot-name { font-size: 22px; font-weight: 800; letter-spacing: 0.14em; }
.boot-line { width: 132px; height: 3px; background: rgba(111, 26, 42, 0.12); border-radius: 99px; overflow: hidden; }
.boot-line span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--wine-600)); animation: bootLine 1.4s var(--ease) infinite; }
.boot-splash p { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: 0.18em; }
@keyframes bootPulse { 50% { transform: translateY(-4px) scale(1.03); } }
@keyframes bootLine { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ---------------------------------- shell --------------------------------- */

#root { min-height: 100vh; display: flex; flex-direction: column; }
.page { min-height: 64vh; flex: 1 0 auto; }
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.page-container { padding: 34px 0 72px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(251, 246, 240, 0.84);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.site-header.is-scrolled {
  background: rgba(255, 251, 247, 0.94);
  border-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(67, 17, 28, 0.5);
}
.header-shell {
  width: min(1240px, calc(100% - 48px));
  height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 15px;
  color: #ffe8d2;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255, 255, 255, 0.22), transparent 48%),
    linear-gradient(150deg, var(--wine-500), var(--wine-900));
  box-shadow: 0 12px 26px -15px rgba(80, 13, 28, 0.8), inset 0 0 0 1px rgba(255, 226, 188, 0.2);
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  height: 7px;
  border-top: 1.5px solid rgba(255, 222, 168, 0.65);
  border-radius: 50%;
  transform: rotate(-5deg);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: 0.05em; color: var(--wine-900); }
.brand-en { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; color: var(--muted-2); }

.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #654e53;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--wine-700); background: rgba(111, 26, 42, 0.055); }
.nav-link.active { color: var(--wine-700); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--wine-500), var(--coral));
}
.nav-menu { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 174px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 48px -26px rgba(65, 17, 28, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu.force-closed .nav-dropdown { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); }
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #5e474d;
}
.nav-dropdown a:hover { background: var(--rose-mist); color: var(--wine-700); }
.nav-dropdown a.active { color: var(--wine-700); background: var(--rose-mist); }
.nav-dropdown small { color: var(--muted-2); font-size: 13px; font-weight: 500; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #654e53;
  background: rgba(255, 251, 247, 0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--paper); color: var(--wine-700); transform: translateY(-1px); }
.notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px rgba(255, 125, 103, 0.2);
}
.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff4e7;
  background: linear-gradient(135deg, var(--wine-600), var(--wine-900));
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 26px -16px rgba(86, 18, 34, 0.8);
  transition: transform 0.2s, box-shadow 0.2s;
}
.login-pill:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -16px rgba(86, 18, 34, 0.8); }
.user-menu { position: relative; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 251, 247, 0.78);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.user-chip:hover, .user-menu.open .user-chip { border-color: var(--line-strong); background: var(--paper); }
.user-chip-chevron { display: flex; margin-left: 2px; color: var(--muted-2); transition: transform 0.2s; }
.user-menu.open .user-chip-chevron { transform: rotate(180deg); }
.user-dropdown {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  min-width: 208px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 24px 55px -24px rgba(62, 13, 26, 0.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #5c444a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}
.user-menu-item svg { flex-shrink: 0; color: var(--muted-2); }
.user-menu-item:hover { color: var(--wine-700); background: var(--rose-mist); }
.user-menu-item:hover svg { color: var(--wine-600); }
.user-menu-logout { color: var(--wine-600); }
.user-menu-logout svg { color: var(--wine-500); }
.user-menu-sep { height: 1px; margin: 5px 5px; background: var(--line); }
.menu-dot { display: block; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 125, 103, 0.12); }
.avatar {
  --hue: 348;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background:
    radial-gradient(120% 100% at 25% 10%, rgba(255, 255, 255, 0.3), transparent 52%),
    linear-gradient(145deg, hsl(var(--hue) 55% 55%), hsl(calc(var(--hue) + 24) 48% 34%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 76px; height: 76px; font-size: 28px; }
.avatar.xl { width: 94px; height: 94px; font-size: 34px; }
.user-chip-copy { display: flex; flex-direction: column; line-height: 1.2; }
.user-chip-copy strong { font-size: 14px; max-width: 78px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-copy span { color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.04em; }
.mobile-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--wine-700); }

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}
.mobile-drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(30, 8, 14, 0.5); backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 350px);
  height: 100%;
  padding: 22px;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 26px 0 0 26px;
  box-shadow: -20px 0 60px -30px rgba(40, 6, 14, 0.7);
  animation: drawerIn 0.35s var(--ease);
}
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-section { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; color: var(--muted-2); margin: 22px 0 8px; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-radius: 12px; font-size: 16px; font-weight: 600; color: #5c4349; }
.drawer-link:hover, .drawer-link.active { background: var(--rose-mist); color: var(--wine-700); }
.drawer-user { margin-top: 24px; padding: 16px; border-radius: 18px; background: var(--cream); display: flex; gap: 12px; align-items: center; }
.drawer-login { width: 100%; margin-top: 20px; }

/* --------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-primary {
  color: #fff5e9;
  background: linear-gradient(135deg, var(--wine-600) 0%, var(--wine-900) 100%);
  box-shadow: 0 16px 30px -18px rgba(89, 18, 34, 0.85);
}
.btn-primary:hover { box-shadow: 0 20px 38px -18px rgba(89, 18, 34, 0.75); }
.btn-rose {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--rose));
  box-shadow: 0 14px 28px -18px rgba(198, 66, 87, 0.8);
}
.btn-light { background: #fff7ec; color: var(--wine-800); box-shadow: 0 14px 26px -20px rgba(31, 6, 12, 0.5); }
.btn-ghost { color: #ffeeda; border-color: rgba(255, 238, 216, 0.3); background: rgba(255, 255, 255, 0.07); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 238, 216, 0.48); }
.btn-outline { color: var(--wine-700); border-color: var(--line-strong); background: transparent; }
.btn-outline:hover { background: var(--rose-mist); }
.btn-soft { color: var(--wine-700); background: var(--rose-mist); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }

.text-btn { border: 0; background: none; padding: 0; color: var(--wine-600); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.text-btn:hover { color: var(--wine-900); }

/* ---------------------------------- hero ---------------------------------- */

.home-wrap { padding: 26px 0 0; }
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.78fr);
  gap: 52px;
  align-items: center;
  min-height: 470px;
  padding: 58px 58px 52px;
  border-radius: 36px;
  overflow: hidden;
  color: #fff7ee;
  background:
    radial-gradient(900px 500px at 88% -25%, rgba(223, 109, 116, 0.55), transparent 60%),
    radial-gradient(620px 420px at 106% 108%, rgba(231, 182, 107, 0.34), transparent 58%),
    linear-gradient(125deg, #3d0d1a 0%, #5d1424 48%, #7b1e31 100%);
  box-shadow: 0 45px 90px -50px rgba(64, 10, 25, 0.85);
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 238, 221, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 238, 221, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(100deg, rgba(0,0,0,.75), transparent 70%);
}
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  right: -170px;
  top: -170px;
  border: 1px solid rgba(255, 235, 210, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 235, 210, 0.035), 0 0 0 92px rgba(255, 235, 210, 0.025);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.8; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.hero-copy h1 .accent {
  position: relative;
  display: inline-block;
  color: #ffd9ad;
  font-weight: 900;
}
.hero-copy h1 .accent::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 125, 103, 0.55), rgba(231, 182, 107, 0.12));
  filter: blur(2px);
  z-index: -1;
}
.hero-lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 244, 232, 0.72);
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn { min-height: 48px; padding-inline: 23px; }
.hero-metrics {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 38px;
  width: fit-content;
}
.hero-metric { padding: 0 24px; border-left: 1px solid rgba(255, 235, 213, 0.18); }
.hero-metric:first-child { padding-left: 0; border-left: 0; }
.hero-metric strong { display: block; font-family: var(--font-number); font-size: 28px; line-height: 1; letter-spacing: -0.02em; color: #fff1df; }
.hero-metric span { display: block; margin-top: 7px; color: rgba(255, 240, 224, 0.54); font-size: 12px; letter-spacing: 0.08em; }

.spotlight {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 12px;
  border-radius: 27px;
  background: rgba(255, 246, 235, 0.1);
  border: 1px solid rgba(255, 237, 216, 0.18);
  box-shadow: 0 28px 55px -30px rgba(20, 2, 8, 0.8);
  backdrop-filter: blur(18px);
  transform: rotate(1.4deg);
  transition: transform 0.45s var(--ease);
}
.spotlight:hover { transform: rotate(0deg) translateY(-4px); }
.spotlight-cover { position: relative; border-radius: 19px; overflow: hidden; aspect-ratio: 16 / 10; }
.spotlight-cover img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(27, 4, 11, 0.7)); }
.spotlight-live {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 99px;
  color: #fff3e4;
  background: rgba(43, 9, 18, 0.55);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff927e; box-shadow: 0 0 0 3px rgba(255, 146, 126, 0.2); animation: livePulse 1.9s infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(255, 146, 126, 0.02); } }
.spotlight-cover-copy { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; color: #fff7ef; }
.spotlight-cover-copy span { font-size: 12px; color: rgba(255, 244, 232, 0.66); letter-spacing: 0.1em; }
.spotlight-cover-copy h3 { margin: 5px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.38; }
.spotlight-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 8px 5px; }
.spotlight-people { display: flex; align-items: center; gap: 8px; }
.avatar-stack { display: flex; padding-left: 7px; }
.avatar-stack .avatar { margin-left: -7px; border: 2px solid rgba(255, 247, 237, 0.9); }
.spotlight-people span { color: rgba(255, 242, 228, 0.65); font-size: 12px; }
.spotlight-preview { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 242, 228, 0.72) !important; font-size: 12px; font-weight: 600; }
.spotlight-price { text-align: right; }
.spotlight-price strong { color: #ffdcae; font-family: var(--font-number); font-size: 24px; }
.spotlight-price small { display: block; color: rgba(255, 242, 228, 0.48); font-size: 12.5px; }
.spotlight-progress { margin: 8px 8px 4px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.spotlight-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--gold)); }

/* -------------------------------- activities ------------------------------- */

.activity-section { padding: 58px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
@media (min-width: 901px) {
  .activity-section .section-head {
    position: sticky;
    top: 78px;
    z-index: 60;
    padding: 12px 0 14px;
    margin-bottom: 16px;
    background: transparent;
    transition: background .2s, backdrop-filter .2s;
  }
  .activity-section .section-head.is-stuck {
    background: #faf5ef;
    backdrop-filter: blur(12px) saturate(1.1);
  }
}
.section-title-wrap h2 { margin: 0; color: var(--wine-900); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.04em; }
.section-title-wrap p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.mini-eyebrow { display: block; margin-bottom: 8px; color: var(--coral); font-size: 12.5px; font-weight: 800; letter-spacing: 0.24em; }
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 247, 0.82);
  box-shadow: 0 12px 30px -30px rgba(64, 16, 28, 0.6);
}
.filter-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  color: #71595f;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.filter-tab span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: rgba(111, 26, 42, 0.07); color: var(--muted); font-family: var(--font-number); font-size: 12px; }
.filter-tab:hover { color: var(--wine-700); }
.filter-tab.active { color: #fff8ef; background: linear-gradient(135deg, var(--wine-600), var(--wine-800)); box-shadow: 0 8px 20px -12px rgba(91, 19, 36, 0.8); }
.filter-tab.active span { color: #ffe1c2; background: rgba(255, 255, 255, 0.14); }

.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.activity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid rgba(94, 36, 46, 0.09);
  box-shadow: 0 18px 45px -36px rgba(76, 18, 31, 0.46);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.activity-card:hover { transform: translateY(-7px); box-shadow: 0 30px 60px -34px rgba(76, 18, 31, 0.45); border-color: rgba(94, 36, 46, 0.16); }
.card-cover { position: relative; display: block; aspect-ratio: 16 / 9.6; overflow: hidden; background: #3d101c; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.activity-card:hover .card-cover img { transform: scale(1.045); }
.card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35, 7, 14, 0.02) 45%, rgba(35, 7, 14, 0.48) 100%); }
.cover-badges { position: absolute; z-index: 2; top: 13px; left: 13px; right: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 10px;
  border-radius: 99px;
  color: #fff4e8;
  background: rgba(35, 8, 15, 0.46);
  border: 1px solid rgba(255, 241, 225, 0.2);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #7ce0ad; box-shadow: 0 0 0 3px rgba(124, 224, 173, 0.15); }
.status-pill.upcoming::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(231, 182, 107, 0.15); }
.status-pill.ended { color: rgba(255, 247, 238, 0.7); }
.status-pill.ended::before { background: #b8a5a9; box-shadow: none; }
.level-pill {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 8px;
  color: #3b1a0e;
  background: linear-gradient(135deg, #ffe5b9, #e5b466);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.07em;
  box-shadow: 0 6px 14px -8px rgba(54, 21, 8, 0.6);
}
.cover-tag { position: absolute; z-index: 2; left: 15px; bottom: 13px; color: rgba(255, 246, 235, 0.9); font-size: 12px; font-weight: 600; letter-spacing: 0.09em; display: flex; align-items: center; gap: 6px; }
.cover-tag::before { content: ""; width: 14px; height: 1px; background: rgba(255, 241, 224, 0.6); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 19px 20px 18px; }
.card-meta { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.card-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.card-title { margin: 9px 0 0; font-size: 20px; line-height: 1.42; font-weight: 800; letter-spacing: -0.025em; color: var(--wine-900); }
.card-title a:hover { color: var(--wine-600); }
.card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0; color: #8b7177; font-size: 14px; line-height: 1.75; min-height: 42px; }
.card-highlights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.highlight-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 7px; color: #7d4b51; background: #fbf2ed; font-size: 12.5px; font-weight: 600; }
.highlight-chip::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--coral); }
.card-people { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px dashed rgba(94, 36, 46, 0.12); }
.people-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.people-copy { min-width: 0; }
.people-copy strong { display: block; font-size: 13px; font-weight: 800; color: #573b41; }
.people-copy span { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }
.preview-people-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 10px; color: #95622c; background: #f7ead6; }
.card-people-upcoming { min-height: 31px; }
.progress-rail { width: 74px; height: 4px; border-radius: 99px; background: #f1e5de; overflow: hidden; flex-shrink: 0; }
.progress-rail i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine-500), var(--coral)); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 15px; }
.price-label { display: block; color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.08em; margin-bottom: 3px; }
.price-value { display: flex; align-items: baseline; gap: 4px; color: var(--wine-800); }
.price-value .currency { font-family: var(--font-number); font-size: 14px; font-weight: 800; }
.price-value strong { font-family: var(--font-number); font-size: 27px; line-height: 1; letter-spacing: -0.04em; }
.price-value em { font-style: normal; color: var(--muted-2); font-size: 12.5px; }
.card-action { min-width: 98px; }
.joined-badge { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: 11px; color: #3c7a5b; background: #e9f5ed; font-size: 13px; font-weight: 800; }
.ended-label { color: var(--muted-2); font-size: 13px; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 26px;
  background: rgba(255, 251, 247, 0.55);
}
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 23px; background: var(--rose-mist); color: var(--wine-500); margin-bottom: 16px; }
.empty-state h3 { margin: 0; font-size: 22px; color: var(--wine-900); }
.empty-state p { max-width: 360px; margin: 9px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.empty-state p.empty-desc-wide { max-width: 620px; }

/* --------------------------------- detail --------------------------------- */

.detail-page { padding-top: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 16px; transition: color 0.2s; }
.back-link:hover { color: var(--wine-700); }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: start;
  padding: 16px;
  border-radius: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.detail-cover { position: relative; align-self: center; width: 100%; min-height: 0; aspect-ratio: 5 / 3; border-radius: 21px; overflow: hidden; background: var(--wine-900); }
.detail-cover img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(37, 7, 14, 0.45)); }
.detail-cover-badge { position: absolute; z-index: 2; right: 16px; top: 16px; }
.detail-head { display: flex; flex-direction: column; justify-content: center; padding: 24px 26px 24px 4px; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.badge.wine { color: var(--wine-700); background: var(--rose-mist); }
.badge.gold { color: #6c481e; background: var(--gold-soft); }
.badge.green { color: #347052; background: #e8f4ed; }
.detail-head h1 { margin: 0; font-size: clamp(24px, 3.7vw, 46px); line-height: 1.25; letter-spacing: -0.045em; color: var(--wine-900); white-space: nowrap; overflow: visible; }
.detail-summary { margin: 14px 0 0; color: #80676c; font-size: 16px; line-height: 1.85; }
.detail-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-meta { display: flex; gap: 9px; align-items: flex-start; }
.detail-meta-icon { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; color: var(--wine-500); background: var(--rose-mist); }
.detail-meta small { display: block; color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.04em; margin-bottom: 3px; }
.detail-meta strong { display: block; color: #4d3339; font-size: 13px; font-weight: 700; line-height: 1.4; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 26px; align-items: start; margin-top: 26px; }
.detail-main { display: flex; flex-direction: column; gap: 20px; }
.content-card { border-radius: 24px; background: var(--paper); border: 1px solid var(--line); padding: 28px 30px; box-shadow: 0 16px 40px -38px rgba(76, 18, 31, 0.4); }
.content-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 21px; letter-spacing: -0.02em; color: var(--wine-900); }
.content-card h2::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, var(--coral), var(--wine-600)); }
.prose { color: #6f595e; font-size: 15px; line-height: 2; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.detail-gallery { display: grid; gap: 14px; margin-top: 20px; }
.detail-gallery img { border-radius: 16px; border: 1px solid var(--line); width: 100%; cursor: zoom-in; }
.image-lightbox { display: flex; flex-direction: column; align-items: center; gap: 10px; width: auto; max-width: 100vw; max-height: 100vh; padding: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.image-zoom-viewport { display: flex; align-items: center; justify-content: center; width: min(94vw, 900px); height: min(72vh, 640px); overflow: hidden; touch-action: none; cursor: grab; }
.image-zoom-viewport.is-zoomed { cursor: move; }
.image-zoom-viewport img { display: block; max-width: 100%; max-height: 72vh; border-radius: 0; object-fit: contain; background: transparent; box-shadow: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.image-zoom-controls { position: fixed; left: 50%; bottom: 40px; z-index: 210; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; margin: 0; padding: 4px; border-radius: 99px; background: rgba(30, 7, 13, .78); border: 1px solid rgba(255, 240, 225, .14); backdrop-filter: blur(10px); }
.image-zoom-controls button { width: 34px; height: 30px; border: 0; border-radius: 99px; background: transparent; color: #fff5ea; font-size: 18px; line-height: 1; cursor: pointer; }
.image-zoom-controls button:hover { background: rgba(255, 245, 234, .12); }
.image-zoom-controls span { min-width: 46px; text-align: center; color: rgba(255, 245, 234, .78); font-size: 12px; letter-spacing: .04em; }
.image-zoom-controls .zoom-reset { width: auto; padding: 0 10px; font-size: 12px; }
.image-lightbox .modal-close { position: fixed; top: 16px; right: 16px; background: rgba(255, 250, 245, 0.94); color: var(--wine-700); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .5); }
.highlight-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.highlight-item { display: flex; align-items: center; gap: 9px; padding: 12px 13px; border-radius: 11px; background: #fcf6f1; color: #5e444a; font-size: 13px; font-weight: 700; }
.highlight-item svg { color: var(--coral); flex-shrink: 0; }
.notice-box { display: flex; gap: 12px; padding: 16px 18px; margin-top: 22px; border-radius: 13px; background: #fff8e9; border: 1px solid rgba(205, 157, 76, 0.22); color: #7d5d2c; font-size: 14px; line-height: 1.8; }
.notice-box svg { flex-shrink: 0; margin-top: 2px; color: #cf9841; }
.member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.member-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px; background: #fcf8f4; border: 1px solid rgba(94, 36, 46, 0.06); }
.member-item strong { display: block; font-size: 13px; line-height: 1.3; }
.member-item span { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 2px; white-space: nowrap; }
.join-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.join-eyebrow { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; }
.join-price { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 5px; color: var(--wine-900); }
.join-price .currency { font-family: var(--font-number); font-size: 17px; font-weight: 800; }
.join-price strong { font-family: var(--font-number); font-size: 44px; line-height: 1; letter-spacing: -0.05em; }
.join-price span { color: var(--muted-2); font-size: 13px; }
.join-sub { display: flex; align-items: center; gap: 6px; color: #9a7d82; font-size: 12px; }
.join-sub svg { color: var(--gold); }
.join-progress { margin: 19px 0 0; padding: 14px; border-radius: 13px; background: #fbf4ee; }
.join-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #7f6469; }
.join-progress-head strong { color: var(--wine-700); font-family: var(--font-number); font-size: 16px; }
.join-progress-rail { height: 5px; border-radius: 99px; background: #eee0d8; overflow: hidden; margin: 9px 0 8px; }
.join-progress-rail i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine-500), var(--coral), var(--gold)); }
.join-people { display: flex; align-items: center; justify-content: space-between; }
.join-people span { color: var(--muted-2); font-size: 12.5px; }
.join-info { display: flex; flex-direction: column; gap: 0; margin: 18px 0; }
.join-info-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.join-info-row:last-child { border-bottom: 0; }
.join-info-row span { color: var(--muted); }
.join-info-row strong { color: #523a40; font-weight: 700; text-align: right; }
.join-panel .btn { min-height: 48px; }
.join-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 13px; color: var(--muted-2); font-size: 12.5px; line-height: 1.7; }
.join-note svg { flex-shrink: 0; margin-top: 1px; }
.points-hint { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; margin-top: 14px; border-radius: 10px; background: #f6f0e8; color: #715c50; font-size: 12px; }
.points-hint strong { color: var(--wine-700); }
.mobile-join-bar { display: none; }

/* -------------------------------- alliance -------------------------------- */

.alliance-page { padding-top: 26px; }
.alliance-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
  padding: 58px 56px;
  border-radius: 34px;
  overflow: hidden;
  color: #fff5e9;
  background:
    radial-gradient(760px 420px at 92% -20%, rgba(212, 92, 112, 0.48), transparent 62%),
    radial-gradient(500px 320px at 0% 110%, rgba(231, 182, 107, 0.2), transparent 60%),
    linear-gradient(120deg, #350b15, #5b1424 58%, #6f1a2a);
  box-shadow: 0 40px 90px -55px rgba(53, 10, 20, 0.9);
}
.alliance-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 238, 219, 0.16) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.18;
  mask-image: linear-gradient(110deg, #000, transparent 72%);
}
.alliance-hero::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 236, 211, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 236, 211, 0.035), 0 0 0 120px rgba(255, 236, 211, 0.02);
}
.ally-hero-copy { position: relative; z-index: 2; }
.ally-hero-copy h1 { margin: 0; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.16; letter-spacing: -0.055em; }
.ally-hero-copy .hero-lead { max-width: 600px; margin-top: 17px; }
.ally-stats { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; width: 60%; margin-top: 28px; }
.ally-stat { flex: 1 1 0; min-width: 0; padding: 0 14px; border-left: 1px solid rgba(255, 238, 216, 0.16); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; }
.ally-stat:first-child { padding-left: 0; border-left: 0; }
.ally-stat strong { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 34px; font-family: var(--font-sans); font-size: 26px; line-height: 1; color: #ffe6c4; white-space: nowrap; }
.ally-stat span { display: block; width: 100%; margin-top: 6px; color: rgba(255, 242, 227, 0.5); font-size: 12.5px; line-height: 1.35; letter-spacing: 0.02em; text-align: center; }
.ally-announce {
  position: relative;
  z-index: 2;
  padding: 24px;
  border-radius: 20px;
  color: #5c1c18;
  background: linear-gradient(145deg, #fff4df, #f2d7b1);
  box-shadow: 0 24px 44px -30px rgba(15, 2, 6, 0.8);
  transform: rotate(-1deg) scale(1.12);
  transform-origin: 100% 0;
}
.ally-announce::before { content: "联盟公告"; display: inline-flex; padding: 4px 8px; margin-bottom: 12px; border-radius: 5px; background: #5b1424; color: #ffe9ce; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; }
.ally-announce p { margin: 0; font-size: 15px; line-height: 1.95; font-weight: 600; }
.ally-announce footer { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #946d46; font-size: 12.5px; }
.ally-nav-wrap { position: sticky; top: 78px; z-index: 35; padding: 18px 0; background: #faf5ef; backdrop-filter: blur(12px); }
.ally-nav { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ally-nav::-webkit-scrollbar { display: none; }
.ally-nav a { flex-shrink: 0; padding: 11px 18px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 251, 247, 0.75); color: #72595f; font-size: 14.5px; font-weight: 700; transition: all 0.2s; }
.ally-nav a:hover { color: var(--wine-700); background: var(--paper); border-color: var(--line-strong); }
.ally-body { padding-bottom: 44px; }
.ally-intro { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 34px; }
.ally-intro p { margin: 0; color: #715a60; font-size: 15px; line-height: 1.8; }
.ally-intro-meta { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.ally-section { margin-bottom: 44px; scroll-margin-top: 150px; }
.ally-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.ally-section-head h2 { margin: 0; color: var(--wine-900); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.035em; }
.ally-section-head p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.section-index { color: rgba(111, 26, 42, 0.2); font-family: var(--font-number); font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.process-grid { display: flex; gap: 12px; position: relative; }
.process-card { flex: 1 1 0; min-width: 0; }
.process-card { position: relative; padding: 21px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.process-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--wine-500), var(--coral)); opacity: 0.7; }
.process-step { font-family: var(--font-number); font-size: 27px; color: #e2c9c4; line-height: 1; font-weight: 800; }
.process-card h3 { margin: 14px 0 8px; color: var(--wine-900); font-size: 16px; }
.process-card p { margin: 0; color: #8b7378; font-size: 13px; line-height: 1.8; }
.process-arrow { position: absolute; right: -10px; top: 50%; z-index: 2; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #bda3a6; background: #f8f0e8; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rule-card { position: relative; overflow: hidden; display: flex; gap: 16px; padding: 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 36px -36px rgba(75, 17, 30, 0.4); }
.rule-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: linear-gradient(180deg, #cf5f6d 0%, #e7b66b 52%, #8f3d55 100%); }
.rule-card:first-child { grid-column: span 1; }
.rule-main { min-width: 0; }
.rule-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rule-title-line h3 { margin: 0; color: var(--wine-900); font-size: 16px; }
.rule-tag { padding: 3px 7px; border-radius: 5px; background: #fbf1e1; color: #9b7338; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; }
.rule-main p { margin: 0 0 10px; color: #786267; font-size: 14.5px; line-height: 1.95; }
.rule-main p:last-of-type { margin-bottom: 0; }
.rule-highlight { display: flex; gap: 7px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fdf6ed; color: #866539; font-size: 13px; line-height: 1.7; }
.rule-highlight svg { flex-shrink: 0; margin-top: 1px; color: #cfa25f; }
.price-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.price-intro { padding: 34px 30px; color: #fff5e9; background: linear-gradient(150deg, var(--wine-800), var(--wine-950)); position: relative; overflow: hidden; }
.price-intro::after { content: "¥"; position: absolute; right: -10px; bottom: -60px; font-family: var(--font-number); font-size: 190px; font-weight: 800; color: rgba(255, 239, 218, 0.05); line-height: 1; }
.price-intro h3 { position: relative; margin: 0; font-size: 26px; line-height: 1.4; letter-spacing: -0.03em; }
.price-intro p { position: relative; margin: 15px 0 0; color: rgba(255, 242, 227, 0.56); font-size: 13px; line-height: 1.9; }
.price-stamp { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 26px; padding: 8px 12px; border: 1px solid rgba(255, 231, 199, 0.25); border-radius: 8px; color: #f2d19b; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; }
.price-table-wrap { overflow-x: auto; }
.price-table, .resource-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.price-table th { padding: 15px 20px; text-align: left; color: var(--muted-2); background: #fdf8f4; font-size: 12.5px; letter-spacing: 0.08em; font-weight: 800; border-bottom: 1px solid var(--line); }
.price-table td { padding: 17px 20px; border-bottom: 1px solid rgba(94, 36, 46, 0.07); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:first-child { font-weight: 700; color: #563b41; }
.price-amount { font-family: var(--font-number); font-size: 18px; color: var(--wine-700); font-weight: 800; white-space: nowrap; }
.price-note { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.resource-table-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 14px 40px -36px rgba(75, 17, 30, 0.4); }
.resource-table th { padding: 14px 18px; text-align: left; color: var(--muted-2); background: #fdf8f4; border-bottom: 1px solid var(--line); font-size: 12.5px; letter-spacing: 0.06em; font-weight: 800; white-space: nowrap; }
.resource-table td { padding: 16px 18px; border-bottom: 1px solid rgba(94, 36, 46, 0.07); color: #6b5459; font-size: 14px; line-height: 1.65; vertical-align: middle; }
.resource-table th:first-child, .resource-table td:first-child, .resource-table th:nth-child(2), .resource-table td:nth-child(2), .resource-table td:nth-child(4), .resource-table td:nth-child(5) { white-space: nowrap; }
.resource-table tr:last-child td { border-bottom: 0; }
.resource-name { font-weight: 800; color: #4d3138; }
.level-badge { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 6px; background: var(--gold-soft); color: #7f5a22; font-size: 12px; font-weight: 900; }
.resource-price { color: var(--wine-700); font-weight: 800; white-space: nowrap; }
.faq-grid { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; color: #4f353b; font-size: 15px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; width: 23px; height: 23px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #f8ece7; color: var(--wine-600); font-size: 16px; transition: transform 0.25s, background 0.25s; }
.faq-item[open] summary::after { content: "−"; background: var(--wine-700); color: #fff4e8; }
.faq-answer { padding: 0 20px 19px; color: #7d656a; font-size: 14.5px; line-height: 1.95; }
.ally-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.contact-copy { padding: 34px; }
.contact-copy h2 { margin: 0; font-size: 26px; color: var(--wine-900); letter-spacing: -0.03em; }
.contact-copy p { margin: 10px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 1px; background: var(--line); }
.contact-cell { padding: 20px; background: #fdf8f4; }
.contact-cell span { display: block; color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.08em; margin-bottom: 7px; }
.contact-cell strong { display: block; color: #52373d; font-size: 14px; line-height: 1.5; }

/* ------------------------------- notifications ---------------------------- */

.subpage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.subpage-head h1 { margin: 0; color: var(--wine-900); font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -0.045em; }
.subpage-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.notice-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; margin-bottom: 18px; border-radius: 22px; background: linear-gradient(135deg, #561323, #7e2033); color: #fff5e9; overflow: hidden; position: relative; }
.notice-summary::after { content: ""; position: absolute; right: 30px; top: -50px; width: 160px; height: 160px; border: 1px solid rgba(255, 237, 215, 0.16); border-radius: 50%; box-shadow: 0 0 0 26px rgba(255, 237, 215, 0.04); }
.notice-summary h2 { margin: 0; font-size: 23px; letter-spacing: -0.02em; }
.notice-summary p { margin: 7px 0 0; color: rgba(255, 242, 228, 0.6); font-size: 13px; }
.notice-summary-count { position: relative; z-index: 2; text-align: right; }
.notice-summary-count strong { font-family: var(--font-number); font-size: 42px; line-height: 1; color: #ffd9a9; }
.notice-summary-headline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.notice-summary-headline h2 { margin: 0; }
.notice-summary-count span { display: block; color: rgba(255, 241, 226, 0.55); font-size: 12.5px; margin-top: 4px; }
.notice-readall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 237, 216, 0.26);
  border-radius: 8px;
  color: #ffe6c8;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.notice-readall:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 237, 216, 0.42); }
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice-card { display: flex; gap: 15px; padding: 19px 22px; border-radius: 17px; background: var(--paper); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.notice-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.notice-card.unread { border-left: 3px solid var(--coral); background: linear-gradient(90deg, #fff9f5, var(--paper)); }
.notice-type-icon { width: 41px; height: 41px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; }
.notice-type-icon.activity { color: var(--wine-600); background: #f9e7e5; }
.notice-type-icon.bill { color: #a4742f; background: #fbf0dc; }
.notice-type-icon.system { color: #56708b; background: #edf2f6; }
.notice-type-icon.join { color: #9c3f4b; background: #f4d1d1; }
.notice-type-icon.preview { color: #426f91; background: #dcebf6; }
.notice-card.notice-join, .notice-card.notice-join.unread { background: #fbe4e3; border-color: #ecc5c4; }
.notice-card.notice-preview, .notice-card.notice-preview.unread { background: #edf4fa; border-color: #d4e2ee; }
.notice-modal { width: min(440px, calc(100vw - 32px)); padding: 30px; border-radius: 24px; }
.notice-modal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.notice-modal-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--wine-600); background: #f9e7e5; }
.notice-modal h2 { margin: 0; color: var(--wine-900); font-size: 24px; letter-spacing: -0.02em; }
.notice-modal-time { margin: 8px 0 0; color: var(--muted-2); font-size: 12.5px; }
.notice-modal-body { margin-top: 18px; padding: 18px; border-radius: 14px; background: #fdf7f0; color: #6b5459; font-size: 14.5px; line-height: 1.95; }
.notice-modal-actions { margin-top: 20px; }
.joined-record-modal { width: min(620px, calc(100vw - 32px)); max-height: 86vh; padding: 0; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.joined-record-cover { position: relative; flex: 0 0 auto; aspect-ratio: 5 / 3; background: #2b0a12; }
.joined-record-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.joined-record-status { position: absolute; left: 16px; bottom: 16px; top: auto; right: auto; padding: 5px 10px; border-radius: 99px; background: rgba(28, 8, 14, .66); color: #ffe6c4; font-size: 12.5px; font-weight: 700; }
.joined-record-body { padding: 24px; overflow-y: auto; }
.joined-record-body h2 { margin: 7px 0 0; color: var(--wine-900); font-size: 25px; letter-spacing: -0.03em; }
.joined-record-summary { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.joined-record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 18px; margin-top: 20px; padding: 16px; border-radius: 14px; background: #fdf7f1; }
.joined-record-grid span { display: block; color: var(--muted-2); font-size: 12px; }
.joined-record-grid strong { display: block; margin-top: 3px; color: var(--ink-1); font-size: 13.5px; line-height: 1.5; }
.joined-record-content { margin-top: 20px; }
.joined-record-content h3 { margin: 0 0 8px; color: var(--wine-900); font-size: 16px; }
.joined-record-content p { margin: 0 0 8px; color: #786267; font-size: 14px; line-height: 1.85; }
.joined-delivery-label { margin: 0 0 6px !important; color: var(--muted-2) !important; font-size: 12.5px !important; }
.joined-delivery-text { padding: 14px 16px; border-radius: 12px; background: #fdf7f1; color: #6b5459; font-size: 14px; line-height: 1.9; }
@media (max-width: 600px) {
  .joined-record-grid { grid-template-columns: 1fr; }
  .joined-record-body { padding: 19px; }
}
.notice-main { flex: 1; min-width: 0; }
.notice-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-title-row h3 { margin: 0; color: #4b3238; font-size: 15px; font-weight: 800; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.notice-pin { padding: 2px 6px; border-radius: 4px; background: #fdf1e1; color: #a27434; font-size: 12.5px; font-weight: 800; }
.notice-main p { margin: 7px 0 0; color: #856d72; font-size: 13px; line-height: 1.8; }
.notice-time { flex-shrink: 0; color: var(--muted-2); font-size: 12.5px; padding-top: 2px; }

/* --------------------------------- profile -------------------------------- */

.profile-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 30px; row-gap: 14px; align-items: center; padding: 30px 36px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.profile-hero::before { content: ""; position: absolute; top: -100px; right: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 92, 112, 0.13), transparent 70%); }
.profile-identity { position: relative; display: flex; align-items: center; gap: 22px; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-wrap::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(111, 26, 42, 0.18); }
.profile-avatar-wrap .avatar { border: 4px solid var(--paper); box-shadow: 0 14px 30px -18px rgba(76, 18, 31, 0.6); }
.profile-name h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; color: var(--wine-900); }
.profile-name-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; color: var(--muted-2); font-size: 14px; }
.profile-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.profile-name-line h1 { margin: 0; }
.profile-edit-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid #e6cfc2; border-radius: 7px; background: #fffaf5; color: var(--wine-600); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.profile-edit-btn:hover { border-color: var(--wine-400); background: #fff4ec; }
.profile-edit-modal { width: min(430px, calc(100vw - 32px)); padding: 30px; border-radius: 24px; }
.profile-edit-modal h2 { margin: 7px 0 0; color: var(--wine-900); font-size: 24px; }
.profile-edit-intro { margin: 8px 0 20px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.profile-edit-field { display: block; margin-bottom: 13px; }
.profile-edit-field > span { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; color: var(--ink-1); font-size: 13px; font-weight: 700; }
.profile-edit-field em { color: var(--muted-2); font-size: 11.5px; font-style: normal; font-weight: 500; }
.profile-edit-field input { width: 100%; height: 43px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fffdfb; color: var(--ink-1); font-size: 14px; outline: none; }
.profile-edit-field input:focus { border-color: var(--wine-400); box-shadow: 0 0 0 3px rgba(122, 30, 49, .07); }
.profile-edit-hint { margin: 0 0 10px; color: var(--muted-2); font-size: 12px; line-height: 1.6; }
.profile-edit-error { display: none; margin: 0 0 12px; color: #b23a3a; font-size: 12.5px; }
.profile-edit-error.show { display: block; }
.profile-account { color: var(--ink-1); font-weight: 800; }
.profile-level { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 7px; color: var(--wine-700); background: var(--rose-mist); font-size: 13.5px; font-weight: 800; }
.profile-name p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.profile-points-card { position: relative; padding: 22px 24px; border-radius: 20px; color: #fff5e9; background: linear-gradient(140deg, #551222, #7d2033); overflow: hidden; }
.profile-points-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -30px; bottom: -60px; border-radius: 50%; background: rgba(255, 208, 156, 0.12); }
.profile-points-label { display: flex; align-items: center; justify-content: space-between; color: rgba(255, 242, 228, 0.58); font-size: 12.5px; letter-spacing: 0.08em; }
.profile-points-number { font-family: var(--font-number); font-size: 44px; line-height: 1.1; margin-top: 8px; color: #ffe0b2; letter-spacing: -0.04em; }
.profile-points-number small { font-family: var(--font-sans); font-size: 12px; color: rgba(255, 241, 226, 0.55); margin-left: 5px; letter-spacing: 0; }
.profile-points-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 235, 214, 0.14); color: rgba(255, 242, 227, 0.6); font-size: 12.5px; }
.profile-points-foot strong { color: #ffddae; font-family: var(--font-number); font-size: 14px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.mini-stat { padding: 17px 18px; border-radius: 15px; background: var(--paper); border: 1px solid var(--line); }
.mini-stat span { display: block; color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.04em; }
.mini-stat strong { display: block; margin-top: 6px; color: var(--wine-900); font-family: var(--font-number); font-size: 27px; line-height: 1; }
.profile-levelbar { margin-top: 0; padding: 15px 18px; border-radius: 15px; background: linear-gradient(135deg, #fbf2e3, #f9ece4); }
.levelbar-head { display: flex; align-items: center; justify-content: space-between; color: #836345; font-size: 12px; }
.levelbar-head strong { color: var(--wine-700); }
.levelbar-track { height: 5px; margin-top: 9px; border-radius: 99px; background: rgba(111, 26, 42, 0.1); overflow: hidden; }
.levelbar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine-600), var(--coral), var(--gold)); }
.profile-tabs { display: flex; align-items: center; gap: 4px; padding: 5px; margin: 25px 0 16px; border-radius: 14px; background: rgba(255, 251, 247, 0.7); border: 1px solid var(--line); width: fit-content; }
.profile-tab { padding: 9px 18px; border: 0; border-radius: 10px; background: none; color: #796166; font-size: 14px; font-weight: 700; }
.profile-tab.active { background: var(--wine-700); color: #fff4e8; box-shadow: 0 8px 18px -12px rgba(86, 18, 34, 0.7); }
.profile-panel { border-radius: 22px; background: var(--paper); border: 1px solid var(--line); padding: 9px 22px; box-shadow: 0 16px 40px -40px rgba(76, 18, 31, 0.4); }
.profile-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(94, 36, 46, 0.07); }
.profile-row:last-child { border-bottom: 0; }
.profile-row-cover { width: 64px; height: 44px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.profile-row-main { flex: 1; min-width: 0; }
.profile-row-main h3 { margin: 0; font-size: 14.5px; color: #4e343a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-row-main p { margin: 5px 0 0; color: var(--muted-2); font-size: 12.5px; }
.profile-row-side { text-align: right; flex-shrink: 0; }
.profile-row-side strong { display: block; color: var(--wine-700); font-family: var(--font-number); font-size: 16px; }
.profile-row-side span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 12.5px; }
.ledger-amount { font-family: var(--font-number); font-weight: 800; color: #3b7f5b; }
.ledger-amount.minus { color: var(--wine-600); }
.profile-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.order-status { display: inline-flex; padding: 4px 8px; border-radius: 5px; font-size: 12.5px; font-weight: 800; }
.order-status.paid { color: #337151; background: #e8f4ed; }
.order-status.pending { color: #93641f; background: #fbf1de; }
.order-status.refunded { color: #8a5b62; background: #f4e9e9; }

/* footer + mobile dock */
.site-footer { margin-top: 60px; background: #2b0a12; color: rgba(255, 241, 226, 0.65); padding: 34px 0 22px; }
.footer-inner { width: min(1240px, calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; padding-bottom: 0; border-bottom: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 61px; height: 61px; border-radius: 18px; font-size: 32px; }
.footer-brand strong { color: #fff2e2; font-size: 18px; letter-spacing: 0.04em; }
.footer-brand-copy { min-width: 0; }
.footer-desc { margin: 6px 0 0; max-width: 560px; font-size: 13px; line-height: 1.9; color: rgba(255, 241, 226, 0.48); }
.footer-col h4 { margin: 4px 0 14px; color: #f7ddc0; font-size: 14px; letter-spacing: 0.12em; }
.footer-col a, .footer-col p { display: block; margin: 0 0 9px; color: rgba(255, 241, 226, 0.58); font-size: 15px; line-height: 1.8; }
.footer-contact-card { align-self: start; padding: 16px 18px; border-radius: 14px; background: rgba(255, 241, 226, 0.06); border: 1px solid rgba(231, 182, 107, 0.28); }
.footer-contact-card h4 { margin: 0 0 9px; color: #ffd9ae; font-size: 17px; letter-spacing: 0.08em; }
.footer-contact-card p { margin: 0; color: #fff1e2; font-size: 14.5px; line-height: 1.6; }
.footer-col a:hover { color: #ffd8ad; }
.mobile-dock { display: none; }

/* ---------------------------------- modal --------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30, 7, 13, 0.58);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.22s ease;
  overflow-y: auto;
}
.modal {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 25px;
  background: var(--paper);
  box-shadow: 0 40px 100px -40px rgba(20, 3, 9, 0.8);
  animation: modalUp 0.35s var(--ease);
}
.modal.image-lightbox {
  width: auto;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.modal.wide { width: min(100%, 780px); }
.modal-close { position: absolute; z-index: 4; top: 13px; right: 13px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; color: #fff1e0; background: rgba(28, 6, 12, 0.28); backdrop-filter: blur(6px); }
.modal-close.dark { color: #6d555a; border-color: var(--line); background: rgba(255, 251, 247, 0.8); }
.login-modal { display: grid; grid-template-columns: 0.9fr 1.1fr; width: min(100%, 860px); overflow: hidden; }
.login-visual { position: relative; min-height: 550px; padding: 38px 30px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff5e8; background: radial-gradient(500px 300px at 100% 0%, rgba(231, 182, 107, 0.28), transparent 60%), linear-gradient(150deg, #4a101d, #761c2d 70%, #8c283b); }
.login-visual::before { content: ""; position: absolute; width: 340px; height: 340px; border: 1px solid rgba(255, 238, 216, 0.14); border-radius: 50%; left: -150px; bottom: -140px; box-shadow: 0 0 0 42px rgba(255, 238, 216, 0.03), 0 0 0 84px rgba(255, 238, 216, 0.02); }
.login-visual .brand { position: relative; z-index: 2; }
.login-visual .brand-name { color: #fff2e1; }
.login-visual .brand-en { color: rgba(255, 241, 224, 0.4); }
.login-quote { position: relative; z-index: 2; }
.login-quote p { margin: 0; font-size: 12px; letter-spacing: 0.2em; color: var(--gold); }
.login-quote h2 { margin: 13px 0 0; font-size: 34px; line-height: 1.35; letter-spacing: -0.04em; }
.login-quote span { display: block; margin-top: 14px; color: rgba(255, 242, 228, 0.5); font-size: 13px; line-height: 1.9; }
.login-benefits { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.login-benefit { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255, 242, 228, 0.72); }
.login-benefit i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 238, 216, 0.12); color: #f6d3a1; font-style: normal; }
.login-form-side { padding: 48px 42px 38px; }
.login-form-side h2 { margin: 0; color: var(--wine-900); font-size: 29px; letter-spacing: -0.04em; }
.login-form-side > p { margin: 10px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.field { margin-bottom: 15px; }
.field label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #62494f; font-size: 13px; font-weight: 700; }
.field label span { color: var(--muted-2); font-size: 12.5px; font-weight: 500; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .field-icon { position: absolute; left: 13px; color: #b0979b; pointer-events: none; display: flex; }
.input-wrap input, .input-wrap select, .input-wrap textarea { width: 100%; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdfb;
  color: var(--ink);
  font-size: 14.5px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field .input-wrap input { padding-left: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine-500); box-shadow: 0 0 0 3px rgba(165, 47, 70, 0.1); }
.field input::placeholder, .field textarea::placeholder { color: #bda9ac; }
.form-error { display: none; padding: 9px 11px; margin-bottom: 12px; border-radius: 8px; background: #fdf0f0; color: #aa3c45; font-size: 12.5px; }
.form-error.show { display: block; }
.login-form-side .btn { margin-top: 4px; min-height: 47px; }
.join-modal { width: min(100%, 480px); padding: 28px; }
.join-modal-head { padding-right: 20px; }
.join-modal-head p { margin: 0 0 6px; color: var(--coral); font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; }
.join-modal-head h2 { margin: 0; color: var(--wine-900); font-size: 27px; letter-spacing: -0.035em; }
.join-modal-head span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.join-summary { display: flex; gap: 12px; padding: 12px; margin: 20px 0; border-radius: 14px; background: #fbf5ef; }
.join-summary img { width: 92px; height: 64px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.join-summary h3 { margin: 0; font-size: 14.5px; line-height: 1.45; color: #4f343a; }
.join-summary p { margin: 6px 0 0; color: var(--muted-2); font-size: 12.5px; }
.join-costs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px 0; margin-bottom: 17px; }
.join-cost-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: 13px; }
.join-cost-row strong { color: #4d3339; font-family: var(--font-number); }
.join-cost-row.total strong { color: var(--wine-700); font-size: 17px; }
.join-modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; margin-top: 7px; }
.join-fineprint { margin: 12px 0 0; color: var(--muted-2); font-size: 12.5px; line-height: 1.7; text-align: center; }

/* ---------------------------------- toast --------------------------------- */

.toast-root { position: fixed; z-index: 300; right: 22px; bottom: 24px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(380px, calc(100vw - 40px)); padding: 12px 15px; border-radius: 12px; background: #2f1017; color: #fff3e4; font-size: 13px; line-height: 1.6; box-shadow: 0 20px 40px -18px rgba(22, 4, 9, 0.7); animation: toastIn 0.35s var(--ease); pointer-events: auto; }
.toast.success { background: #1f3e31; }
.toast.error { background: #561e27; }
.toast svg { flex-shrink: 0; }
.toast.hiding { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } }

/* --------------------------------- loading -------------------------------- */

.skeleton-page { padding: 35px 0; }
.skeleton-block { border-radius: 16px; background: linear-gradient(90deg, #f2e7df 25%, #fbf4ee 37%, #f2e7df 63%); background-size: 400% 100%; animation: shimmer 1.6s infinite; }
.skeleton-hero { height: 420px; border-radius: 32px; margin-bottom: 32px; }
.skeleton-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skeleton-card { height: 390px; border-radius: 22px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1120px) {
  .desktop-nav { gap: 0; margin-left: 0; }
  .nav-link { padding-inline: 10px; font-size: 15px; }
  .header-shell { gap: 22px; }
  .home-hero { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; padding: 46px 42px; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { flex-wrap: wrap; }
  .process-arrow { display: none; }
  .price-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .footer-inner { gap: 30px; }
  .profile-hero { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 900px) {
  .container, .header-shell, .footer-inner, .footer-bottom { width: min(100% - 32px, 720px); }
  .header-shell { height: 70px; }
  .desktop-nav { display: none; }
  .mobile-toggle { display: grid; }
  .header-tools { gap: 8px; }
  .home-wrap { padding-top: 16px; }
  .home-hero { grid-template-columns: 1fr; padding: 40px 30px 34px; gap: 32px; border-radius: 28px; }
  .spotlight { transform: none; max-width: 520px; width: 100%; }
  .spotlight:hover { transform: translateY(-3px); }
  .hero-copy h1 { font-size: clamp(38px, 8vw, 54px); }
  .hero-metrics { margin-top: 28px; }
  .activity-section { padding-top: 42px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .detail-hero { grid-template-columns: 1fr; gap: 10px; }
  .detail-cover { aspect-ratio: 5 / 3; min-height: 0; }
  .detail-head { padding: 14px 12px 18px; }
  .detail-layout { grid-template-columns: 1fr; }
  .join-panel { display: none; }
  .mobile-join-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    z-index: 70;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    padding: 11px 12px 11px 16px;
    border-radius: 16px;
    background: rgba(255, 251, 247, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px -20px rgba(51, 10, 21, 0.5);
    backdrop-filter: blur(14px);
  }
  .mobile-join-price strong { font-family: var(--font-number); font-size: 27px; color: var(--wine-800); }
  .mobile-join-price span { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }
  .mobile-join-bar .btn { min-width: 145px; }
  .detail-layout { margin-bottom: 75px; }
  .alliance-hero { grid-template-columns: 1fr; padding: 42px 34px; gap: 30px; }
  .ally-announce { max-width: 500px; transform: none; }
  .ally-nav-wrap { top: 70px; }
  .rule-grid { grid-template-columns: 1fr; }
  .price-shell { grid-template-columns: 1fr; }
  .price-intro { padding: 28px; }
  .ally-contact { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; padding: 26px; }
  .profile-points-card { max-width: 460px; }
  .notice-summary::after { display: none; }
  .site-footer { padding-bottom: 100px; }
  body.detail-view { padding-bottom: 84px; }
  body.detail-view.has-mobile-join { padding-bottom: 170px; }
  body.detail-view .detail-layout { margin-bottom: 0; }
  body.detail-view .mobile-join-bar { bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.detail-view .site-footer { display: none; }
  body.detail-view .toast-root { bottom: 160px; }
  .mobile-dock {
    display: flex;
    position: fixed;
    z-index: 75;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: 58px;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    border-radius: 18px;
    border: 1px solid rgba(94, 36, 46, 0.12);
    background: rgba(255, 251, 247, 0.94);
    backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 16px 38px -22px rgba(55, 12, 23, 0.5);
  }
  .dock-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; padding: 7px 0; color: #9b8589; font-size: 12.5px; font-weight: 600; border-radius: 12px; }
  .dock-link.active { color: var(--wine-700); }
  .dock-link.active::before { content: ""; position: absolute; top: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--wine-600); }
  .dock-dot { position: absolute; top: 5px; right: calc(50% - 13px); width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
  body { padding-bottom: 76px; }
  .toast-root { bottom: 88px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: span 2; }
}

@media (max-width: 700px) {
  .header-shell { width: calc(100% - 24px); height: 62px; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 20px; }
  .brand-name { font-size: 17px; }
  .brand-en { font-size: 8.5px; }
  .brand-en { font-size: 9px; }
  .user-chip-copy { display: none; }
  .header-tools { gap: 6px; }
  .header-tools > .icon-btn.desktop-only { display: grid; width: 36px; height: 36px; }
  .header-tools > .icon-btn.desktop-only .notif-dot { top: 4px; right: 5px; }
  .mobile-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; }
  .user-chip { padding: 3px; border: 0; background: transparent; }
  .user-chip-chevron { display: none; }
  .user-dropdown { min-width: 192px; right: -44px; }
  .login-pill { height: 38px; padding: 0 15px; font-size: 14px; }
  .home-hero { padding: 32px 20px 26px; border-radius: 24px; }
  .hero-copy h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero-lead { font-size: 15px; line-height: 1.8; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1; min-height: 44px; padding-inline: 12px; font-size: 14px; }
  .hero-metrics { width: 100%; justify-content: space-between; margin-top: 24px; }
  .hero-metric { padding: 0 12px; }
  .hero-metric strong { font-size: 22px; }
  .hero-metric span { font-size: 12.5px; }
  .spotlight-cover-copy h3 { font-size: 16px; }
  .spotlight-body { padding-top: 10px; }
  .activity-section { padding-top: 34px; }
  .activity-section .section-head {
    position: sticky;
    top: 62px;
    z-index: 55;
    margin-bottom: 12px;
    padding: 10px 0 12px;
    background: #faf5ef;
    transition: box-shadow .2s, border-color .2s;
  }
  .activity-section .section-head.is-stuck {
    box-shadow: 0 12px 20px -20px rgba(67, 17, 28, .55);
    border-bottom: 1px solid var(--line);
  }
  .section-title-wrap h2 { font-size: 27px; }
  .filter-tabs { width: 100%; overflow-x: auto; }
  .filter-tab { flex: 1; justify-content: center; padding-inline: 9px; font-size: 13px; }
  .activity-grid { grid-template-columns: 1fr; gap: 17px; }
  .activity-card { border-radius: 20px; }
  .card-cover { aspect-ratio: 5 / 3; }
  .card-body { padding: 17px 17px 16px; }
  .card-title { font-size: 18px; }
  .subpage-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .subpage-head h1 { font-size: 33px; }
  .notice-summary { padding: 22px; }
  .notice-summary-count strong { font-size: 34px; }
  .notice-card { padding: 15px; gap: 11px; }
  .notice-type-icon { width: 35px; height: 35px; border-radius: 10px; }
  .notice-time { display: none; }
  .detail-page { padding-top: 18px; }
  .detail-hero { border-radius: 22px; padding: 10px; }
  .detail-cover { aspect-ratio: 5 / 3; min-height: 0; border-radius: 16px; }
  .detail-head { padding: 12px 8px 14px; min-width: 0; }
  .detail-head h1 { font-size: 28px; white-space: normal; overflow-wrap: anywhere; }
  .detail-meta-grid, .detail-meta { min-width: 0; }
  .detail-meta > div { min-width: 0; }
  .detail-meta strong { overflow-wrap: anywhere; }
  .detail-summary { font-size: 14px; }
  .detail-meta-grid { margin-top: 18px; padding-top: 17px; gap: 10px; }
  .content-card { border-radius: 19px; padding: 21px 18px; }
  .content-card h2 { font-size: 18px; margin-bottom: 14px; }
  .profile-identity { gap: 15px; align-items: flex-start; }
  .profile-name h1 { font-size: 25px; }
  .profile-avatar-wrap .avatar { width: 68px; height: 68px; font-size: 24px; }
  .profile-stats { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-stat { padding: 13px 15px; }
  .mini-stat span { white-space: nowrap; }
  .mini-stat strong { font-size: 23px; }
  .profile-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab { flex: 1; padding-inline: 8px; }
  .profile-panel { padding: 5px 15px; }
  .page-container { padding-bottom: 36px; }
  .profile-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-areas: "cover main side" "cover main action"; column-gap: 10px; row-gap: 3px; align-items: center; padding: 12px 0; }
  .profile-row-cover { grid-area: cover; width: 54px; height: 46px; align-self: start; }
  .profile-row-main { grid-area: main; min-width: 0; }
  .profile-row-main h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.45; }
  .profile-row-main p { margin-top: 4px; font-size: 11.5px; line-height: 1.55; }
  .profile-row-side { grid-area: side; align-self: start; text-align: right; }
  .profile-row-side strong { font-size: 14px; line-height: 1.2; }
  .profile-row-side span { margin-top: 1px; font-size: 11px; }
  .profile-row .text-btn { grid-area: action; justify-self: end; align-self: end; font-size: 12.5px; }
  .alliance-page { padding-top: 16px; }
  .alliance-hero { padding: 34px 22px; border-radius: 24px; gap: 24px; }
  .ally-hero-copy h1 { font-size: 36px; }
  .ally-announce { padding: 18px; }
  .ally-stats { width: 100%; gap: 0; display: grid; grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .ally-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .ally-stat { min-width: 0; padding-left: 16px; }
  .ally-nav-wrap { top: 64px; padding: 12px 0; }
  .ally-intro { grid-template-columns: 1fr; padding: 18px; }
  .ally-section-head { align-items: flex-start; }
  .section-index { display: none; }
  .process-grid { display: flex; flex-direction: column; gap: 10px; overflow: visible; }
  .process-card { flex: 0 0 auto; }
  .process-card { padding: 17px; }
  .process-step { float: left; margin-right: 12px; font-size: 24px; }
  .process-card h3 { margin: 2px 0 6px; }
  .process-card::before { top: 0; bottom: 0; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .rule-card { padding: 18px; gap: 12px; }
  .price-table, .resource-table { min-width: 0; }
  .price-table thead, .resource-table thead { display: none; }
  .price-table tbody, .resource-table tbody { display: block; }
  .price-table tr, .resource-table tr { display: block; padding: 15px 17px; border-bottom: 1px solid var(--line); }
  .resource-table tr { display: flex; flex-direction: column; }
  .resource-table td:nth-child(2) { order: 1; }
  .resource-table td:nth-child(1) { order: 2; }
  .resource-table td:nth-child(3) { order: 3; }
  .resource-table td:nth-child(4) { order: 4; }
  .resource-table td:nth-child(5) { order: 5; }
  .resource-table td:nth-child(6) { order: 6; }
  .price-table tr:last-child, .resource-table tr:last-child { border-bottom: 0; }
  .price-table td, .resource-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; width: 100%; padding: 5px 0; border: 0; text-align: right; }
  .price-table td::before, .resource-table td::before { content: attr(data-label); flex-shrink: 0; color: var(--muted-2); font-size: 12px; font-weight: 600; text-align: left; letter-spacing: .03em; }
  .price-table td:first-child, .resource-table td:nth-child(2) { display: block; padding-bottom: 7px; color: var(--wine-900); font-size: 16px; font-weight: 800; text-align: left; }
  .price-table td:first-child::before, .resource-table td:nth-child(2)::before { display: none; }
  .price-table td:nth-child(2) { padding-bottom: 7px; }
  .resource-table td:nth-child(2) { padding-bottom: 8px; }
  .resource-table td:nth-child(2)::after { content: ""; display: block; width: 22px; height: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--wine-500), var(--coral)); border-radius: 2px; }
  .resource-table td:nth-child(2), .resource-table td:nth-child(2)::before { font-family: var(--font-sans); }
  .price-table td:nth-child(3) { align-items: flex-start; }
  .price-amount { font-size: 17px; }
  .resource-table .level-badge { margin-left: auto; }
  .resource-table td:nth-child(6) { justify-content: flex-start; padding-top: 5px; text-align: left; }
  .resource-table td:nth-child(6)::before { display: inline; margin: 0; }
  .resource-table-wrap { overflow: visible; }
  .price-table-wrap { overflow: visible; }
  .faq-item summary { padding: 15px; font-size: 14px; }
  .faq-answer { padding: 0 15px 15px; }
  .contact-copy { padding: 24px 20px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-cell { padding: 15px; }
  .login-modal { grid-template-columns: 1fr; width: min(100%, 440px); }
  .login-visual { display: none; }
  .login-form-side { padding: 38px 24px 26px; }
  .login-form-side h2 { font-size: 26px; }
  .modal-backdrop { padding: 12px; align-items: center; }
  .join-modal { padding: 22px 18px; }
  .join-summary img { width: 76px; height: 56px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .footer-brand-col { grid-column: auto; }
  .footer-brand { gap: 10px; }
  .footer-brand .brand-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
  .footer-brand strong { font-size: 15px; }
  .footer-desc { display: none; }
  .footer-contact-card { align-self: center; display: flex; align-items: baseline; gap: 8px; padding: 8px 11px; border-radius: 10px; }
  .footer-contact-card h4 { margin: 0; font-size: 13px; letter-spacing: 0.06em; white-space: nowrap; }
  .footer-contact-card p { font-size: 12.5px; white-space: nowrap; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .skeleton-row { grid-template-columns: 1fr; }
  .skeleton-hero { height: 300px; }
  .skeleton-card { height: 340px; }
  .site-footer { margin-top: 28px; padding: 18px 0 20px; }
}

@media (max-width: 380px) {
  .hero-actions .btn { font-size: 13px; }
  .hero-metrics { justify-content: flex-start; }
  .hero-metric { padding: 0 10px; }
  .filter-tab { font-size: 12px; padding-inline: 6px; }
  .card-foot { align-items: center; }
  .price-value strong { font-size: 24px; }
  .card-action { min-width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
