/* Landing-critical CSS — subset of site.css for faster first paint */
/* Self-hosted fonts (no render-blocking Google Fonts CSS). CJK uses system fonts. */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-500.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-700.woff2") format("woff2");
}

:root {
  --white: #f7f5f2;
  --canvas: #f7f5f2;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: rgba(10, 10, 10, 0.12);
  --yellow: #e6b800;
  --yellow-hot: #ffd11a;
  --yellow-soft: rgba(230, 184, 0, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bebas Neue", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", sans-serif;
  --sans: "Outfit", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --cjk: "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --nav-h: 58px;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235c5c5c'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.939a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

select:not([multiple]):not([size]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: var(--ink);
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  min-height: 100%;
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  /* Offset for fixed header (keeps chrome visible while scrolling). */
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body > .nav { flex-shrink: 0; }
body > main {
  flex: 1 0 auto;
  width: 100%;
}
body > .footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
/*
 * iOS WebKit (Safari + Chrome + all iOS browsers) paints <button> text
 * system-blue unless both color and -webkit-text-fill-color are set.
 * Use currentColor for fill so class-level color overrides still apply.
 */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
}
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 80% 8%, rgba(230, 184, 0, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7f5f2 100%);
}
.nen { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.nen-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(230, 184, 0, 0.2);
  animation: pulse-nen 6s var(--ease) infinite;
}
.nen-ring:nth-child(1) { width: min(70vw, 640px); height: min(70vw, 640px); top: -12%; right: -8%; }
.nen-ring:nth-child(2) {
  width: min(40vw, 320px); height: min(40vw, 320px); bottom: 20%; left: -5%;
  border-color: rgba(10,10,10,0.08); animation-delay: -2.5s;
}
@keyframes pulse-nen {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.draft-badge {
  display: none;
}
/* Full-screen loading popup (marketplace parity) */
.bh-loading-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 10, 0.48);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease);
}
.bh-loading-overlay.is-visible {
  opacity: 1; pointer-events: auto;
}
.bh-loading-card {
  width: min(100%, 18rem);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 24px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--yellow);
}
.bh-loading-spinner {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  animation: bh-spin 0.7s linear infinite;
}
.bh-loading-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
@keyframes bh-spin {
  to { transform: rotate(360deg); }
}

.chat-thread-loading {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.chat-thread-loading .bh-loading-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  animation: bh-spin 0.7s linear infinite;
}

.mission-skeleton {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}
.mission-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(10,10,10,0.06), rgba(10,10,10,0.12), rgba(10,10,10,0.06));
  background-size: 200% 100%;
  animation: bh-shimmer 1.1s ease-in-out infinite;
}
.mission-skeleton-line + .mission-skeleton-line { margin-top: 10px; }
.mission-skeleton-line.w60 { width: 60%; }
.mission-skeleton-line.w40 { width: 40%; }
.mission-skeleton-line.w80 { width: 80%; }
.detail-skeleton {
  min-height: 16rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(10,10,10,0.04), rgba(10,10,10,0.1), rgba(10,10,10,0.04));
  background-size: 200% 100%;
  animation: bh-shimmer 1.1s ease-in-out infinite;
}
@keyframes bh-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.toast {
  position: fixed; top: 72px; right: 16px; z-index: 90;
  padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px;
  font-size: 13px; font-weight: 600; box-shadow: 4px 4px 0 var(--yellow);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.nav-brand .logo { width: 32px; height: 32px; object-fit: contain; }
.nav-brand .logo.logo-long { width: auto; height: 36px; max-width: min(210px, 48vw); object-fit: contain; object-position: left center; }
.nav-loading {
  font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em;
}
.lang-select-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.lang-select-wrap.is-compact .lang-select-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.lang-select {
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink); background-color: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 28px 6px 10px; cursor: pointer; max-width: 9rem;
  outline: none;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.lang-select:hover { background-color: var(--canvas); }
.lang-select:focus { border-color: var(--ink); background-color: var(--yellow-soft); }
.lang-select-compact { padding: 5px 28px 5px 8px; }
.nav-lang { display: flex; align-items: center; }
.page-landing .nav-lang-bar { display: none; }
.footer-bottom-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.footer-lang .lang-select-wrap { color: var(--muted); }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  padding: 0;
  background: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  flex-shrink: 0;
}
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 500;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  padding: 8px 14px !important; background: var(--yellow) !important;
  color: var(--ink) !important; font-weight: 700 !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav-bar-end {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-bar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1;
  white-space: nowrap;
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%) !important;
}
.nav-mobile-only,
.nav-icon-label {
  display: none !important;
}
.nav-account { position: relative; }
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 6px 0 2px; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink) !important;
  background: transparent; cursor: pointer; font-family: inherit;
}
.nav-user:hover, .nav-user.open, .nav-user.active {
  background: var(--yellow-soft);
}
.nav-user-icon {
  width: 28px; height: 28px; border-radius: 6px; background: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px; flex-shrink: 0; overflow: hidden;
}
.nav-user-icon .hunter-icon,
.nav-user-icon .hunter-icon-svg { width: 100%; height: 100%; display: block; }
.nav-user-name {
  max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-chev {
  width: 12px; height: 12px; margin-left: 4px; opacity: 0.7;
  background: currentColor;
  clip-path: polygon(15% 30%, 50% 75%, 85% 30%);
  flex-shrink: 0;
}
.nav-user.open .nav-user-chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 11.5rem;
  display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); padding: 6px;
}
.nav-dropdown[hidden] { display: none !important; }
.nav-dropdown a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--ink) !important; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.nav-dropdown a:hover, .nav-dropdown a.active {
  background: var(--yellow-soft);
}
.nav-dropdown-title {
  font-family: var(--display); font-size: 11px; letter-spacing: 0.12em;
  color: var(--yellow); padding: 6px 12px 4px;
}
.nav-dropdown-empty {
  padding: 12px; font-size: 0.85rem; color: var(--muted); margin: 0;
}
.nav-notif-unread {
  font-weight: 700;
  background: color-mix(in srgb, var(--yellow) 18%, transparent);
}
.nav-icon-wrap { position: relative; }
.nav-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: none; background: transparent;
  color: var(--ink) !important; cursor: pointer; padding: 0;
  text-decoration: none;
}
.nav-icon-btn:hover, .nav-icon-btn.open, .nav-icon-btn.active {
  background: var(--yellow-soft);
}
.nav-admin-abilities {
  gap: 6px;
  width: auto;
  min-width: 36px;
  padding: 0 8px;
}
.nav-admin-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}
.nav-admin-abilities.active .nav-admin-switch {
  border-color: var(--ink);
  background: var(--yellow);
}
.nav-admin-switch-knob {
  position: absolute;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.15s ease;
}
.nav-admin-abilities.active .nav-admin-switch-knob {
  transform: translateX(12px);
}
.nav-icon-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 10px; font-weight: 700; line-height: 14px; text-align: center;
}
.nav-icon-badge[hidden] { display: none !important; }
.nav-icon-copy { display: contents; }
.nav-dropdown-panel { min-width: 14rem; right: 0; }
.nav-dropdown-footer {
  margin-top: 4px; border-top: 1px solid var(--line) !important;
  border-radius: 0 0 6px 6px !important; color: var(--muted) !important;
  font-size: 12px !important;
}
.nav-dropdown-logout {
  border-top: none !important;
  margin-top: 0;
  color: var(--muted) !important;
}
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; color: var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--yellow); color: var(--ink);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover { background: var(--yellow-hot); }
.btn-rect { clip-path: none; border-radius: 8px; }
.btn-ghost {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: none;
}
.btn-ghost:hover { background: var(--yellow-soft); border-color: var(--ink); }
.btn-link {
  background: none; color: var(--ink); padding: 0; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-link:hover { color: var(--yellow); transform: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Layout */
.wrap { max-width: 72rem; margin: 0 auto; padding: 32px 24px 56px; }
.wrap-sm { max-width: 28rem; margin: 0 auto; padding: 40px 24px 64px; }
.wrap-md { max-width: 40rem; margin: 0 auto; padding: 32px 24px 56px; }
.page-eyebrow {
  font-family: var(--display); font-size: 12px; letter-spacing: 0.18em;
  color: var(--yellow); margin-bottom: 6px;
}
.page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-sub { font-size: 0.95rem; color: var(--muted); max-width: 40rem; margin-bottom: 24px; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 600;
  color: var(--muted); background: var(--paper);
}
.tag-ink { border-color: var(--ink); color: var(--ink); background: var(--yellow-soft); }

/* Hero */
.hero { border-bottom: 2px solid var(--ink); background: var(--paper); overflow: hidden; }
.hero-inner {
  max-width: 72rem; margin: 0 auto; padding: 48px 24px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 12px;
  animation: brand-in 0.85s var(--ease) both;
}
.hero-cjk {
  font-family: var(--cjk); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0;
}
.hero h1 {
  font-weight: 700; font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.15; letter-spacing: -0.03em; margin-block: 20px;
}
.hero h1 .line2 { display: block; }
.hero .subhead {
  font-size: 1.05rem; line-height: 1.6; color: var(--muted);
  max-width: 28rem; margin-bottom: 28px;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 24px; }
.payment-note { font-size: 0.8rem; line-height: 1.5; color: var(--muted); max-width: 32rem; }

/* Pure intro landing — one composition, first viewport */
body.page-landing { background: transparent; }
.page-landing .hero,
.page-landing .hero-landing { background: transparent; }
.page-landing .footer { margin-top: 0; }
.page-landing .footer-top { padding-top: 28px; padding-bottom: 28px; }
.hero-landing {
  min-height: calc(100vh - var(--nav-h) - env(safe-area-inset-top, 0px));
  min-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}
.hero-landing .hero-inner {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 48px;
}
.hero-landing .hero-copy {
  animation: brand-in 0.85s var(--ease) both;
}
.hero-landing .license-stage {
  animation: license-enter 1.1s var(--ease) 0.12s both;
}
@keyframes brand-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes license-enter {
  from { opacity: 0; transform: translateY(24px) rotate(-5deg) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.license-stage {
  position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 340px;
}
.license-glow {
  position: absolute; width: 90%; height: 70%; right: 0;
  background: radial-gradient(ellipse, rgba(230,184,0,0.35), transparent 65%);
  filter: blur(16px);
  animation: glow-breathe 4s ease-in-out infinite;
}
.hunter-license {
  position: relative; width: min(100%, 340px); aspect-ratio: 1.58/1;
  background: #0a0a0a; border-radius: 18px; padding: 14px;
  box-shadow: 0 0 0 3px var(--yellow), 8px 12px 0 rgba(10,10,10,0.12);
  transform: rotate(-3deg);
  transition: transform 0.45s var(--ease);
}
.hunter-license:hover { transform: rotate(0deg) scale(1.02); }
.hunter-license::before {
  content: ""; position: absolute; inset: 8px;
  border: 2px solid rgba(255,255,255,0.35); border-radius: 12px; pointer-events: none;
}
.license-inner {
  position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 10px; padding: 8px; color: #fff;
}
.license-photo {
  border: 2px solid rgba(255,255,255,0.4); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.license-photo .logo { width: 72%; object-fit: contain; }
.license-photo .stamp {
  position: absolute; bottom: 6px; right: 6px; font-family: var(--display);
  font-size: 11px; color: var(--yellow-hot); border: 1.5px solid var(--yellow);
  padding: 2px 6px; transform: rotate(-8deg); background: rgba(10,10,10,0.55);
}
.license-meta {
  display: flex; flex-direction: column; justify-content: space-between; font-size: 10px;
  min-width: 0;
}
.license-meta .assoc { font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; }
.license-meta .assoc span {
  display: block; font-size: 9px; opacity: 0.65; margin-top: 2px; letter-spacing: 0.2em;
}
.license-meta .name-block { min-width: 0; }
.license-meta strong {
  display: block; font-family: var(--cjk); font-size: 16px; font-weight: 900;
  line-height: 1.2;
}
.license-meta em {
  font-style: normal; font-family: var(--display); font-size: 12px; color: var(--yellow-hot);
}
.license-meta .uni-line {
  margin: 4px 0 0;
  color: var(--yellow-hot);
  font-family: var(--cjk);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}
.license-meta .stars,
.rating-stars {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 6px;
}
.license-meta .stars i,
.rating-stars i {
  width: 10px; height: 10px; background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: inline-block;
}
.license-meta .stars i.hollow,
.rating-stars i.hollow {
  width: 11px;
  height: 11px;
  background: transparent;
  clip-path: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b800' stroke-width='2'%3E%3Cpath d='M12 2l2.9 6.9L22 9.2l-5 4.9 1.2 7L12 17.8 5.8 21.1 7 14.1 2 9.2l7.1-0.3L12 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.rating-stars .rating-meta {
  font-size: 0.8rem; color: var(--muted); margin-left: 2px;
}
.license-meta .rating-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}
.profile-hero .rating-stars,
.bio-header .rating-stars { margin-top: 4px; margin-bottom: 4px; }
.profile-hero .rating-stars i,
.bio-header .rating-stars i {
  width: 12px; height: 12px;
}
.profile-hero .rating-stars i.hollow,
.bio-header .rating-stars i.hollow {
  width: 13px; height: 13px;
}
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  background: var(--paper);
}
.review-card-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.review-card-name { font-weight: 700; font-size: 0.9rem; }
.review-card .rating-stars { margin: 0; }
.review-card-body { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.license-meta .id-row {
  font-family: var(--display); font-size: 11px; letter-spacing: 0.16em; opacity: 0.75;
}
.license-name-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 4px;
}
.license-name-fields input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--cjk);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  outline: none;
}
.license-name-fields input::placeholder { color: rgba(255, 255, 255, 0.4); font-weight: 500; }
.license-name-fields input:focus { border-color: var(--yellow); background: rgba(230, 184, 0, 0.12); }
.footer { margin-top: 40px; border-top: 2px solid var(--ink); background: var(--paper); }
.footer-top {
  max-width: 72rem; margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: start;
}
.footer-note h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.footer-note h3.footer-brand {
  display: block;
  margin: 0 0 10px;
  line-height: 0;
  font-size: 0;
}
.footer-note .logo { width: 28px; height: 28px; object-fit: contain; }
.footer-note .logo.logo-long {
  display: block;
  height: 34px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}
.footer-note p { font-size: 0.88rem; color: var(--muted); max-width: 28rem; }
.footer-note .footer-social-note {
  display: inline-flex; margin-top: 10px;
  width: 28px; height: 28px;
}
.footer-note .footer-social-note svg { width: 100%; height: 100%; }
.footer-tagline { margin: 0; font-size: 0.88rem; color: var(--muted); }
.footer-bottom-left .footer-social-note { margin-top: 6px; margin-bottom: 2px; }
.footer-cols { display: flex; gap: 48px; align-items: start; padding-top: 2px; }
.footer-cols ul { list-style: none; font-size: 0.88rem; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a:hover { text-decoration: underline; color: var(--yellow); }
.footer-contact-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-contact-btn:hover {
  text-decoration: underline;
  color: var(--yellow);
}
.modal-root[hidden] { display: none !important; }
.modal-root {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.45);
}
.modal-panel {
  position: relative; z-index: 1;
  width: min(22rem, 100%);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px 22px 28px;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.modal-close:hover { background: var(--yellow-soft); border-color: var(--ink); }
.footer-contact-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer-contact-email {
  display: block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-contact-close {
  margin-top: 18px;
  width: 100%;
}
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 24px 48px; }
.footer-bottom-inner {
  max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.8rem; color: var(--muted);
}
.footer-copy { margin: 0; }
.footer-bottom-left { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom-left p { margin: 0; }
.footer-connect {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
}
.footer-contact {
  font-size: 0.88rem; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.footer-contact:hover { text-decoration: underline; color: var(--yellow); }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--ink); flex-shrink: 0;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.footer-social svg { width: 100%; height: 100%; }
.footer-social:hover { background: var(--yellow-soft); }
.footer-lang .lang-select-wrap { color: var(--muted); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-landing { min-height: auto; }
  .hero-landing .hero-inner { padding-top: 28px; padding-bottom: 36px; gap: 24px; }
  .license-stage { justify-content: center; order: -1; min-height: 260px; }
  .board-split, .wizard, .chat-layout, .account-layout, .flow-strip ol { grid-template-columns: 1fr; }
  .account-layout {
    height: auto;
    min-height: 32rem;
    max-height: none;
  }
  .account-nav { border-right: none; border-bottom: 2px solid var(--ink); }
  .account-nav nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .list-pane { max-height: none; border-right: none; border-bottom: none; }
  .detail-pane {
    display: none !important;
  }
  .chat-thread {
    display: none !important;
  }
  .wizard-nav { border-right: none; border-bottom: 2px solid var(--ink); }
  .wizard-nav ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .choice-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  /* Mobile only: logo | post | menu — other links in a tidy column dropdown */
  .nav-inner {
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }
  .nav-brand {
    flex: 1;
    min-width: 0;
  }
  .nav-brand .logo.logo-long {
    height: 30px;
    max-width: min(180px, 44vw);
  }
  .nav-bar-end {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .nav-bar-cta {
    height: 32px;
    padding: 0 11px !important;
    font-size: 12px !important;
  }
  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 36px;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links > li {
    width: 100%;
  }
  .nav-links > li > a:not(.nav-cta):not(.nav-icon-btn) {
    display: block;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }
  .nav-lang {
    display: none !important;
  }
  .page-landing .nav-lang-bar {
    display: flex !important;
    align-items: center;
  }
  .nav-desktop-cta {
    display: none !important;
  }
  .nav-mobile-only {
    display: flex !important;
  }
  .nav-account {
    display: none !important;
  }
  .nav-account .nav-user {
    display: none !important;
  }
  .nav-account .nav-user-chev,
  .nav-account > .nav-dropdown {
    display: none !important;
  }
  .nav-account-links {
    flex-direction: column;
    gap: 2px;
    margin: 0 0 8px;
  }
  .nav-account-links a {
    display: block;
    padding: 11px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink) !important;
    text-decoration: none;
    border-radius: 6px;
  }
  .nav-account-links a:hover,
  .nav-account-links a.active {
    background: var(--yellow-soft);
  }
  .nav-icon-wrap {
    display: block;
    position: relative;
    padding: 0;
  }
  .nav-icon-wrap > .nav-icon-btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 4px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
  }
  .nav-icon-wrap > .nav-icon-btn > svg {
    flex-shrink: 0;
  }
  .nav-icon-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .nav-icon-label {
    display: inline !important;
    flex: 0 0 auto;
  }
  .nav-icon-wrap > .nav-icon-btn .nav-icon-badge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
  }
  .nav-icon-wrap > .nav-dropdown {
    position: static;
    width: 100%;
    margin: 4px 0 8px;
    box-shadow: none;
  }
}

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