/* PEPE FRIENDS public site
   Palette from the plan: white and ivory grounds with navy, green and gold.
   The five characters bring the only pastel colour; everything else stays quiet. */
:root {
  color-scheme: light;
  --paper: #fbfbf5;
  --surface: #ffffff;
  --ink: #16233f;
  --ink-soft: #4b5772;
  --line: #e1e4d8;
  --line-strong: #c9cebd;
  --wash: #f0f3e8;
  --green: #1f6b45;
  --green-deep: #154e32;
  --green-tint: #e2efe4;
  --gold: #c39228;
  --gold-bright: #e7bd57;
  --gold-soft: #f6ecd2;
  --gold-ink: #7a5a12;
  --navy-tint: #eef1f7;
  --radius-art: 28px;
  --radius-card: 18px;
  --radius-control: 12px;
  --gutter: 24px;
  --chrome-clearance: 132px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--paper); word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
button:not(:disabled), a[href], summary { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.site-alert :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-bright); }

.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.shell { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.silhouette { fill: currentColor; }
.icon { display: inline-block; width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -0.18em; }
.preview-note { padding: 7px 16px; background: var(--gold-soft); color: var(--gold-ink); font-size: 0.875rem; font-weight: 700; text-align: center; }

/* Chrome: the official-domain strip stays on screen with the navigation. */
.site-chrome { position: sticky; top: 0; z-index: 5; }
.site-alert { background: var(--ink); color: #f4f6fb; }
.site-alert .shell { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding-block: 6px; font-size: 0.8125rem; line-height: 1.4; text-align: center; }
.site-alert .icon { color: var(--gold-bright); font-size: 1.05rem; }
.site-alert p { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 7px; }
.site-alert strong { color: #ffffff; font-weight: 800; letter-spacing: 0.01em; }
.alert-separator { color: #8c97b3; }
.site-nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-nav .shell { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 68px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; font-weight: 900; font-size: 0.9375rem; letter-spacing: 0.02em; line-height: 1.1; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; background: var(--green); color: #ffffff; font-size: 0.8125rem; font-weight: 900; letter-spacing: 0.02em; }
.brand-mark-image { background: transparent; object-fit: contain; }
.site-nav nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 0.9375rem; font-weight: 750; }
.site-nav nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; }
.site-nav nav a:hover { color: var(--green); }
.site-nav nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.locales { display: flex; justify-self: end; align-items: center; font-size: 0.8125rem; font-weight: 800; color: var(--ink-soft); }
.locales a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 9px; }
.locales a + a { border-left: 1px solid var(--line-strong); }
.locales a:hover { color: var(--ink); }
.locales a[aria-current="true"] { color: var(--green); }

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: none;
  font-size: 0.9375rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.button-primary { background: var(--green); border-color: var(--green); color: #ffffff; }
.button-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.button-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { background: var(--wash); }
.button-quiet { padding-inline: 10px; color: var(--ink); }
.button-quiet:hover { text-decoration: underline; text-underline-offset: 4px; }
.button-small { min-height: 38px; padding: 0 14px; border-color: var(--line-strong); background: var(--surface); font-size: 0.875rem; }
.button-small:hover { background: var(--wash); }
.text-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--green); font-size: 0.9375rem; font-weight: 750; }
.text-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.media-links { display: flex; flex-wrap: wrap; gap: 10px; }
.media-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 0.9375rem; font-weight: 750; }
.media-link:hover { border-color: var(--green); color: var(--green); }
.media-link .icon:first-child { color: var(--green); }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; line-height: 1; }
.pill-pinned { background: var(--gold-soft); color: var(--gold-ink); }
.empty, .help { color: var(--ink-soft); font-size: 0.9375rem; }

/* Home: hero */
.hero { display: grid; justify-items: center; gap: clamp(16px, 2.5vw, 28px); padding-block: clamp(24px, 3.5vw, 46px) clamp(28px, 4vw, 48px); }
.hero-title { font-size: clamp(2rem, 6vw, 5.1rem); font-weight: 900; line-height: 1; letter-spacing: -0.055em; color: var(--ink); text-align: center; text-wrap: balance; }
.hero-art { width: 100%; overflow: hidden; aspect-ratio: 2.25; border-radius: var(--radius-art); background: var(--ink); }
.hero-art:has(.hero-placeholder) { background: var(--wash); }
.hero-art picture { display: block; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-placeholder { display: flex; align-items: flex-end; justify-content: center; gap: 2%; height: 100%; padding: 8% 6% 0; }
.hero-placeholder span { display: block; flex: 1 1 0; max-width: 20%; border-radius: 50% 50% 0 0; color: var(--ink); }
.hero-placeholder span:nth-child(1), .hero-placeholder span:nth-child(5) { height: 62%; }
.hero-placeholder span:nth-child(2), .hero-placeholder span:nth-child(4) { height: 74%; }
.hero-placeholder span:nth-child(3) { height: 86%; }
.hero-placeholder .silhouette { width: 100%; height: 100%; }

/* Home: PPF summary */
.ppf-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.5vw, 28px); padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); scroll-margin-top: var(--chrome-clearance); }
.ppf-emblem { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 auto; border: 3px solid var(--gold); border-radius: 50%; background: var(--gold-soft); box-shadow: inset 0 0 0 3px #fbf4e2; color: var(--ink); font-size: 0.9375rem; font-weight: 900; letter-spacing: -0.03em; }
.ppf-emblem-image { padding: 0; object-fit: cover; }
.ppf-card-copy h2 { font-size: 1.5rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.ppf-card-slogan { display: block; margin-top: 6px; font-size: clamp(1.0625rem, 1.7vw, 1.4rem); line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; text-wrap: balance; }
.ppf-card-copy p { margin-top: 4px; color: var(--ink-soft); }

/* Home: sections */
.section { padding-block: clamp(44px, 5.5vw, 72px) 0; scroll-margin-top: var(--chrome-clearance); }
main > .section:last-child { padding-bottom: clamp(48px, 6vw, 88px); }
.section-title { font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 850; line-height: 1.2; letter-spacing: -0.03em; }
.section > .section-title { margin-bottom: 20px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; margin-bottom: 12px; }

/* Character groups */
.group-tabs { display: flex; flex-wrap: wrap; gap: 0 28px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.group-tabs button { position: relative; min-height: 46px; padding: 0; border: 0; background: none; color: var(--ink-soft); font-size: 0.9375rem; font-weight: 750; }
.group-tabs button:hover { color: var(--ink); }
.group-tabs button[aria-selected="true"] { color: var(--green); }
.group-tabs button[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
.group-panel { display: grid; gap: 18px; }
.group-panel:focus-visible { outline-offset: 6px; }
.group-panel-stage {
  --stage-inset: clamp(14px, 2.5vw, 30px);
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--stage-inset);
  border-radius: var(--radius-art);
  background: #131d35;
}
.group-panel-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(32 163 123 / 0.34), transparent 55%),
    radial-gradient(ellipse at 90% 0%, rgb(156 106 213 / 0.39), transparent 56%),
    radial-gradient(ellipse at 50% 100%, rgb(218 170 81 / 0.18), transparent 60%);
}
.group-panel-stage :is(.character-card, .media-link):focus-visible { outline-color: var(--gold-bright); }
.group-cover { overflow: hidden; border-radius: var(--radius-card); background: var(--ink); }
.group-cover img { width: 100%; max-height: 460px; object-fit: contain; }
.character-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.character-card { display: grid; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.character-card:hover { border-color: var(--tone-ink); }
.character-card:hover .character-name { text-decoration: underline; text-underline-offset: 4px; }
.character-card:focus-visible { outline-offset: 2px; }
.character-portrait { display: grid; place-items: end center; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tone-bg); color: var(--tone-ink); }
.character-portrait img { width: 100%; height: 100%; object-fit: cover; }
.character-portrait .silhouette { width: 72%; height: auto; fill: currentColor; opacity: 0.34; }
.character-name { padding: 12px 14px 14px; font-size: 1.0625rem; font-weight: 800; line-height: 1.25; }
.tone-0 { --tone-bg: #e2eed8; --tone-ink: #3c6a3e; }
.tone-1 { --tone-bg: #f9e3ea; --tone-ink: #a14d6a; }
.tone-2 { --tone-bg: #dbeef0; --tone-ink: #2e6c73; }
.tone-3 { --tone-bg: #f7ebca; --tone-ink: #86661a; }
.tone-4 { --tone-bg: #ebe3f6; --tone-ink: #6a4e93; }
.hero-placeholder .tone-0, .hero-placeholder .tone-1, .hero-placeholder .tone-2, .hero-placeholder .tone-3, .hero-placeholder .tone-4 { color: var(--tone-ink); opacity: 0.55; }

/* About, content and business pages */
.page-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.page-card { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.page-card:hover { border-color: var(--line-strong); }
.page-card:hover .page-card-title { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
#contents .page-card { --card-accent: #79a78a; --card-glow: rgb(31 107 69 / 0.14); }
#business .page-card { --card-accent: #d2ad55; --card-glow: rgb(177 121 25 / 0.15); }
:is(#contents, #business) .page-card:focus-visible {
  border-color: var(--card-accent);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 25px var(--card-glow);
  transform: var(--card-lift, none);
}
@media (hover: hover) and (pointer: fine) {
  :is(#contents, #business) .page-card:hover {
    border-color: var(--card-accent);
    box-shadow: 0 10px 25px var(--card-glow);
    transform: var(--card-lift, none);
  }
}
.page-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wash); }
.page-card-image img { width: 100%; height: 100%; object-fit: cover; }
.page-card-body { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 16px 18px 18px; }
.page-card-title { font-size: 1.125rem; font-weight: 850; line-height: 1.3; letter-spacing: -0.01em; }
.page-card-summary { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }

/* Notices */
.notice-list { border-top: 1px solid var(--line); }
.notice-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto 20px; align-items: center; gap: 18px; min-height: 64px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.notice-row:hover { background: var(--surface); }
.notice-row:hover .notice-title { color: var(--green); }
.notice-row time { color: var(--ink-soft); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.notice-title { font-weight: 750; line-height: 1.4; }
.notice-tags { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.notice-category { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 700; }
.notice-row > .icon { color: var(--ink-soft); }

/* Detail pages */
.detail { display: grid; gap: 28px; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.detail-header { display: grid; gap: 10px; max-width: 46rem; }
.detail h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.04em; }
.lead { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.6; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.9375rem; }
.back-link { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 44px; color: var(--ink-soft); font-size: 0.9375rem; font-weight: 700; }
.back-link:hover { color: var(--ink); }
.prose { max-width: 42rem; line-height: 1.8; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font-size: 1.125rem; line-height: 1.4; }
.prose ul { list-style: disc; padding-inline-start: 1.3em; }
.prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.detail-image { width: auto; max-height: 480px; border-radius: var(--radius-card); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-flag { justify-self: start; padding: 6px 12px; border-radius: var(--radius-control); background: var(--gold-soft); color: var(--gold-ink); font-size: 0.875rem; font-weight: 700; }

/* PPF detail */
.ppf-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 32px); }
.ppf-emblem-large { width: clamp(76px, 10vw, 112px); height: clamp(76px, 10vw, 112px); border-width: 4px; font-size: clamp(1.125rem, 2vw, 1.5rem); }
.ppf-hero-copy { display: grid; justify-items: start; gap: 8px; }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 0.8125rem; font-weight: 800; white-space: nowrap; }
.status-pill[data-state="ISSUED"] { background: var(--green-tint); color: var(--green-deep); }
.status-pill[data-state="LISTED"], .status-pill[data-state="CONFIRMED"] { background: var(--green); color: #ffffff; }
.status-pill[data-state="IN_PROGRESS"] { background: #e9f1ff; color: #234b83; }
.status-pill:is([data-state="CONFIRMED"], [data-state="IN_PROGRESS"]) { gap: 7px; }
.status-pill:is([data-state="CONFIRMED"], [data-state="IN_PROGRESS"])::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.detail-header .status-pill { justify-self: start; }
.token-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.token-facts div { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.token-facts dt { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.875rem; font-weight: 700; }
.token-facts dd { font-size: 1.375rem; font-weight: 850; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.plan-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border: 1px solid #e3cf9a; border-radius: 999px; color: var(--gold-ink); font-size: 0.6875rem; font-weight: 800; }
.ppf-panel { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.ppf-panel h2 { font-size: 1.25rem; font-weight: 850; line-height: 1.3; letter-spacing: -0.01em; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.panel-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-soft); font-size: 0.875rem; }
.address-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: var(--radius-control); background: var(--navy-tint); }
.address { flex: 1 1 22rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9375rem; line-height: 1.5; overflow-wrap: anywhere; word-break: break-all; user-select: all; -webkit-user-select: all; }
.copy-result, .wallet-result { flex-basis: 100%; color: var(--green); font-size: 0.875rem; font-weight: 700; }
.copy-result:not([data-copy-failed]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wallet-result:empty { display: none; }
.button[data-copy-complete] { color: var(--green); }
.button[data-copy-complete]::before { content: ""; width: 0.4em; height: 0.75em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.manual-add { border-top: 1px solid var(--line); padding-top: 12px; }
.manual-add summary { display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; font-weight: 750; }
.manual-add summary::-webkit-details-marker { display: none; }
.manual-add summary::before { content: ""; width: 7px; height: 7px; margin-inline: 3px 1px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s ease; }
.manual-add[open] summary::before { transform: rotate(45deg); }
.manual-add ol { display: grid; gap: 6px; padding-inline-start: 1.4em; color: var(--ink-soft); }
.trading-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); font-weight: 800; }
.trading-link:hover { background: var(--wash); }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ppf-plan { color: var(--ink); }

/* Character detail */
.character-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: clamp(24px, 5vw, 64px); }
.character-portrait-large { border-radius: var(--radius-art); }
.character-portrait-large .silhouette { width: 64%; }
.character-intro { display: grid; justify-items: start; gap: 18px; padding-top: clamp(0px, 2vw, 24px); }
.friends { display: grid; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.friends h2 { padding-top: 20px; font-size: 1.125rem; font-weight: 850; }
.friend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.friend-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.friend-card span:last-child { padding: 10px 12px; font-weight: 800; }
.friend-card:hover { border-color: var(--tone-ink); }

/* Notice detail */
.source-card { display: grid; gap: 8px; max-width: 36rem; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); }
.source-card:hover { border-color: var(--ink); }
.source-channel { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 0.875rem; font-weight: 700; }
.source-channel .icon { color: var(--ink); }
.source-title { font-size: 1.0625rem; line-height: 1.4; }
.source-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; color: var(--ink-soft); font-size: 0.875rem; }
.source-cta { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 800; }

/* Footer */
.site-footer { background: var(--ink); color: #dfe4ef; }
.footer-inner { display: grid; gap: 18px; padding-block: 40px 48px; }
.footer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer .site-brand { color: #ffffff; }
.site-footer .brand-mark { background: #24365c; }
.channel-links { display: flex; gap: 6px; }
.channel-link { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #34466d; border-radius: 50%; color: #ffffff; }
.channel-link:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.footer-policies { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 0.875rem; font-weight: 700; }
.footer-policies a { display: inline-flex; align-items: center; min-height: 40px; color: #ffffff; }
.footer-policies a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-operator, .footer-rights { font-size: 0.8125rem; color: #b9c2d6; }
.footer-rights a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer { max-width: 46rem; padding-top: 16px; border-top: 1px solid #2c3d62; color: #c7cfe0; font-size: 0.8125rem; line-height: 1.7; }

.manual-link { flex-basis: 100%; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.875rem; }
.clipboard-fallback { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Tablet keeps the five cards on one row. */
@media (max-width: 1199px) {
  .character-name { padding: 10px 12px 12px; font-size: 1rem; }
}

@media (max-width: 899px) {
  .site-nav .shell { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand locales" "nav nav"; gap: 0 10px; min-height: 0; padding-top: 6px; }
  .site-brand { grid-area: brand; min-width: 0; white-space: normal; }
  .locales { grid-area: locales; }
  .site-nav nav { grid-area: nav; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
  .hero-art { aspect-ratio: 1.8; }
  .character-hero { grid-template-columns: minmax(0, 1fr); }
  .character-portrait-large { max-width: 440px; }
}

@media (max-width: 767px) {
  :root { --gutter: 18px; --chrome-clearance: 150px; }
  .site-alert .shell { min-height: 32px; font-size: 0.75rem; gap: 6px; }
  .alert-separator { display: none; }
  .site-nav nav {
    min-width: 0;
    flex-wrap: nowrap;
    gap: clamp(12px, 3.4vw, 18px);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }
  .site-nav nav::-webkit-scrollbar { display: none; }
  .site-nav nav a { flex: 0 0 auto; }
  .site-nav nav a:focus-visible { outline-offset: -3px; }
  .hero { gap: 16px; padding-block: 24px 26px; }
  .hero-title { font-size: clamp(2rem, 9vw, 3.75rem); }
  .hero-art { aspect-ratio: 16 / 9; border-radius: 18px; }
  .hero-art img { object-fit: contain; }
  .ppf-card { grid-template-columns: auto minmax(0, 1fr); }
  .ppf-card .button { grid-column: 1 / -1; justify-self: stretch; }
  .ppf-emblem { width: 54px; height: 54px; font-size: 0.8125rem; }
  .character-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .character-grid::-webkit-scrollbar { display: none; }
  .character-grid > li { flex: 0 0 min(40%, 180px); scroll-snap-align: start; }
  .group-panel-stage .character-grid {
    margin-inline: calc(-1 * var(--stage-inset));
    padding: 6px var(--stage-inset) 8px;
    scroll-padding-inline: var(--stage-inset);
  }
  .notice-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time icon" "title icon" "tags icon"; gap: 4px 12px; padding-inline: 0; }
  .notice-row time { grid-area: time; }
  .notice-title { grid-area: title; }
  .notice-tags { grid-area: tags; justify-content: flex-start; }
  .notice-tags:empty { display: none; }
  .notice-row > .icon { grid-area: icon; }
  .ppf-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .token-facts dd { font-size: 1.1875rem; }
  .detail { gap: 22px; }
}

@media (max-width: 419px) {
  .locales a { padding-inline: 7px; }
}

@keyframes stage-lights {
  from { opacity: 0.15; }
  to { opacity: 1; }
}

@keyframes business-status-pulse {
  from { box-shadow: 0 0 0 0 rgb(35 75 131 / 0.45); }
  to { box-shadow: 0 0 0 5px rgb(35 75 131 / 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .group-panel-stage::before { animation: stage-lights 0.32s ease-out both; }
  :is(#contents, #business) .page-card {
    --card-lift: translateY(-6px);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
  }
  .status-pill[data-state="IN_PROGRESS"]::before { animation: business-status-pulse 0.85s ease-out 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .manual-add summary::before { transition: none; }
}

/* Six native-language links remain accessible without JavaScript or hover menus. */
.site-nav .shell { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand locales" "nav nav"; padding-block: 6px; }
.site-brand { grid-area: brand; }
.site-nav nav { grid-area: nav; justify-content: center; }
.locales { grid-area: locales; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.locales a { white-space: nowrap; }
html:lang(th) { line-height: 1.8; }
html:lang(th) .hero-title { line-height: 1.35; letter-spacing: normal; }
html:lang(vi) .hero-title { line-height: 1.2; letter-spacing: -0.025em; }
@media (max-width: 767px) {
  .site-nav .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "locales" "nav"; }
  .locales { justify-self: stretch; justify-content: center; }
  .locales a { padding-inline: 8px; font-size: 0.75rem; }
  .site-nav nav { justify-content: flex-start; }
}

.locales { gap: 4px; }
.locales a { justify-content: center; width: 44px; padding-inline: 4px; border: 2px solid transparent; border-radius: 8px; }
.locales a + a { border-left: 2px solid transparent; }
.locales a[aria-current="true"] { border-color: var(--green); background: var(--green-tint); }
.locales a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.locale-flag { display: block; width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line-strong); }
@media (max-width: 767px) { .locales { flex-wrap: nowrap; } .locales a { flex: 0 0 44px; } }
