/* 巴萨红蓝魂 20 周年网站样式 — 只引用 tokens.css 的变量；直角、无阴影、无渐变 */
* { box-sizing: border-box; }
:root { --page-gutter: clamp(20px, 4.4vw, 64px); --sec-pad: clamp(64px, 8.5vw, 128px); }
html { scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--pb-ink); color: var(--pb-white); font-family: var(--f-body); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pb-yellow); outline-offset: 2px; }
.yellow :focus-visible, .hero :focus-visible { outline-color: var(--pb-ink); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--pb-yellow); color: var(--pb-ink); padding: 8px 12px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

.in { max-width: calc(1120px + 2 * var(--page-gutter)); margin: 0 auto; padding-inline: max(var(--page-gutter), env(safe-area-inset-left, 0px)); position: relative; z-index: 1; }
.wm { font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; line-height: 1.2; }
.note { font-size: 13px; color: var(--pb-muted); }
.ink { color: var(--pb-ink) !important; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--pb-black); border-bottom: 1px solid #2A2A2A; }
.nav-in { max-width: calc(1120px + 2 * var(--page-gutter)); margin: 0 auto; padding-inline: var(--page-gutter); height: 56px; display: flex; align-items: center; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nav-logo { height: 34px; width: auto; display: block; }
.nav-20 { font-family: var(--f-display); font-size: 16px; line-height: 1; background: var(--pb-yellow); color: var(--pb-ink); padding: 4px 6px 3px; white-space: nowrap; letter-spacing: .02em; }
.foot-logo { height: 64px; width: auto; margin-bottom: 14px; }
.nav-wm { font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-panel { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 8px; color: var(--pb-tag-line); white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--pb-yellow); }
.nav-links a.nav-home { color: var(--pb-white); border-left: 1px solid #2A2A2A; margin-left: 4px; padding-left: 12px; }

/* Language switch — segmented, active = brand yellow */
.lang { display: flex; border: 1px solid #444; background: var(--pb-ink); flex-shrink: 0; }
.lang button { background: transparent; border: 0; color: var(--pb-white); font-weight: 800; font-size: 13px; line-height: 1; padding: 8px 9px; min-height: 34px; cursor: pointer; white-space: nowrap; }
.lang button[lang="en"], .lang button[lang="fr"] { font-family: var(--f-display); font-weight: 400; font-size: 15px; letter-spacing: .02em; }
.lang button[lang="zh-Hant"] { font-family: "Noto Sans TC", var(--f-body); }
.lang button[lang="ja"] { font-family: "Noto Sans JP", var(--f-body); }
.lang button[lang="ko"] { font-family: "Noto Sans KR", var(--f-body); }
.lang button:hover { color: var(--pb-yellow); }
.lang button[aria-pressed="true"] { background: var(--pb-yellow); color: var(--pb-ink); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--pb-tag-line); padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
@media (max-width: 1439px) { .nav-wm { display: none; } }
@media (max-width: 1199px) {
  .nav-wm { display: inline; }
  .nav-toggle { display: block; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 56px; background: var(--pb-black); flex-direction: column-reverse; align-items: stretch; gap: 8px; padding: 12px var(--page-gutter) 16px; border-bottom: 1px solid #2A2A2A; max-height: calc(100vh - 56px); overflow-y: auto; }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid #1E1E1E; }
  .nav-links a.nav-home { border-left: 0; margin-left: 0; padding-left: 0; }
  .lang { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lang button { min-height: 44px; padding: 8px 4px; }
}
@media (max-width: 400px) { .lang { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Per-language body fonts (CJK glyph shapes follow the language) */
html[lang="zh-Hant"] { --f-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans SC", system-ui, sans-serif; }
html[lang="ja"] { --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Noto Sans SC", system-ui, sans-serif; }
html[lang="ko"] { --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans SC", system-ui, sans-serif; }
html[lang="en"], html[lang="fr"] { --f-body: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[lang="en"] .pb-badge small, html[lang="fr"] .pb-badge small { font-size: 9px; letter-spacing: .08em; }
html[lang="en"] .sec h2, html[lang="fr"] .sec h2 { letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--pb-yellow); color: var(--pb-ink); }
.sq { position: absolute; }
.hero .sq-b { background: var(--pb-blue); width: 38vw; max-width: 520px; height: 46vw; max-height: 600px; right: -4vw; top: 40px; transform: rotate(var(--pb-tilt-blue)); }
.hero .sq-g { background: var(--pb-garnet); width: 32vw; max-width: 440px; height: 32vw; max-height: 440px; right: 14vw; top: 160px; transform: rotate(var(--pb-tilt-garnet)); display: flex; align-items: center; justify-content: center; }
.emblem { width: 62%; height: auto; transform: rotate(5deg); }
.hero-in { max-width: calc(1120px + 2 * var(--page-gutter)); margin: 0 auto; padding: clamp(32px, 4vw, 56px) var(--page-gutter) clamp(40px, 5vw, 72px); position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.hero-top .zh { font-weight: 900; font-size: 15px; position: relative; z-index: 2; background: var(--pb-yellow); padding: 0 4px; }
.hero h1 { margin: 24px 0 0; font-family: var(--f-display); font-weight: 400; line-height: .82; display: flex; flex-direction: column; }
.h-20 { font-size: clamp(180px, 34vw, 420px); letter-spacing: -.01em; }
.h-anys { font-size: clamp(64px, 11vw, 140px); color: var(--pb-blue); line-height: 1; margin-top: 4px; }
.hero-script { font-family: var(--f-script); font-size: clamp(28px, 4.4vw, 44px); line-height: 1.2; margin: 10px 0 0; }
.hero-lede { max-width: 30em; font-weight: 500; font-size: 16px; margin: 18px 0 0; }
.hero-next { margin-top: 24px; display: inline-grid; grid-template-columns: auto 1fr; gap: 0; background: var(--pb-ink); color: var(--pb-white); max-width: 100%; }
.hero-next:empty { display: none; }
.hero-next .cd { background: var(--pb-garnet); padding: 10px 14px; text-align: center; line-height: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-next .cd b { font-family: var(--f-display); font-weight: 400; font-size: 34px; }
.hero-next .cd small { font-size: 12px; opacity: .85; margin-top: 4px; }
.hero-next .nx { padding: 10px 16px; min-width: 0; }
.hero-next .nx .lbl { font-family: var(--f-wordmark); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: var(--pb-tag-line); }
.hero-next .nx .t { font-weight: 800; font-size: 16px; line-height: 1.35; }
.hero-next .nx .d { color: var(--pb-yellow); font-weight: 700; font-size: 13px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-yr { font-family: var(--f-wordmark); font-weight: 700; font-size: 22px; letter-spacing: .04em; margin-top: 32px; }
.big-stripe { height: 10px; }
@media (max-width: 720px) {
  .hero .sq-b { width: 54vw; height: 60vw; right: -22vw; top: 64px; }
  .hero .sq-g { width: 42vw; height: 42vw; right: -4vw; top: 120px; }
  .h-anys { color: var(--pb-ink); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 18px; font-weight: 800; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-ink { background: var(--pb-ink); color: var(--pb-yellow); }
.btn-ink:hover { background: var(--pb-black); }
.btn-line { border-color: var(--pb-ink); color: var(--pb-ink); background: transparent; }
.btn-line:hover { background: var(--pb-ink); color: var(--pb-yellow); }
.btn-yellow { background: var(--pb-yellow); color: var(--pb-ink); }
.btn-line-light { border-color: var(--pb-tag-line); color: var(--pb-white); }
.btn-line-light:hover { border-color: var(--pb-yellow); color: var(--pb-yellow); }

/* ---------- Sections ---------- */
.sec { padding: var(--sec-pad) 0; position: relative; overflow: hidden; }
.sec.dark { background: var(--pb-ink); }
.sec.dark.alt { background: var(--pb-black); }
.sec.yellow { background: var(--pb-yellow); color: var(--pb-ink); }
.eyebrow { font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--pb-yellow); }
.sec h2 { margin: 10px 0 14px; font-weight: 900; font-size: clamp(30px, 5vw, 56px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.intro { margin: 0 0 clamp(32px, 4vw, 48px); line-height: 1.75; color: var(--pb-muted); max-width: 40em; font-size: 16px; }
.sub { font-size: 20px; font-weight: 900; margin: clamp(48px, 6vw, 72px) 0 16px; }
.yellow .sq-b.small { background: var(--pb-blue); width: 220px; height: 260px; right: -70px; top: -40px; transform: rotate(var(--pb-tilt-blue)); }
.yellow .sq-g.small { background: var(--pb-garnet); width: 180px; height: 170px; right: 60px; top: 40px; transform: rotate(var(--pb-tilt-garnet)); }
@media (max-width: 720px) {
  .yellow .sq-b.small { width: 140px; height: 160px; right: -60px; }
  .yellow .sq-g.small { width: 110px; height: 100px; right: 0; top: 20px; }
}

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #2A2A2A; border: 1px solid #2A2A2A; }
.stat { background: var(--pb-surface); padding: 18px 16px; min-width: 0; }
.stat b { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--pb-yellow); }
.stat b small { font-family: var(--f-body); font-size: 14px; font-weight: 700; margin-left: 4px; color: var(--pb-white); }
.stat p { margin: 8px 0 0; font-size: 13px; color: var(--pb-muted); line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:last-child { grid-column: 1 / -1; } }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 10px; }
.timeline li { scroll-snap-align: start; padding: 14px 16px 4px 0; position: relative; min-width: 0; }
.timeline li { border-top: 6px solid var(--pb-blue); }
.timeline li:nth-child(even) { border-top-color: var(--pb-garnet); }
.timeline .y { display: block; font-family: var(--f-display); font-size: 30px; line-height: 1; }
.timeline li:last-child .y { color: var(--pb-yellow); }
.timeline .t { display: block; font-size: 13.5px; color: var(--pb-muted); margin-top: 6px; line-height: 1.5; }

/* ---------- Timeline → year photo drawer ---------- */
.yr-hint { margin: 32px 0 0; }
.timeline { margin-top: 12px; }
.timeline li { display: flex; }
.yr-btn { flex: 1; display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 0 0 12px; color: inherit; font: inherit; cursor: pointer; }
.yr-btn.static { cursor: default; }
.yr-btn:not(.static):hover .y, .timeline li.on .y { color: var(--pb-yellow); }
.yr-btn:not(.static):hover .t { color: var(--pb-white); }
.yr-cnt { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; position: relative; top: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--pb-tag-text); border: 1px solid var(--pb-tag-line); padding: 3px 7px; line-height: 1.2; }
.yr-cnt::before { content: ""; width: 10px; height: 8px; border: 1.5px solid currentColor; box-sizing: border-box; }
.timeline li.on .yr-cnt { background: var(--pb-yellow); border-color: var(--pb-yellow); color: var(--pb-ink); }
.timeline li.on { position: relative; }
.timeline li.on::after { display: none; content: ""; position: absolute; left: 14px; bottom: -14px; border: 10px solid transparent; border-bottom-color: var(--pb-surface); }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.yr-panel { margin-top: 12px; background: var(--pb-surface); position: relative; }
.yr-panel:not([hidden]) { animation: yrIn .28s ease-out; }
@keyframes yrIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.yr-in { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px; }
.yr-big { font-family: var(--f-display); font-size: clamp(64px, 9vw, 112px); line-height: .9; color: var(--pb-yellow); }
.yr-t { margin: 12px 0 0; font-size: 15px; font-weight: 500; }
.yr-n { margin: 6px 0 0; font-size: 13px; color: var(--pb-tag-line); }
.yr-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.yr-nav button { background: transparent; border: 1px solid var(--pb-tag-line); color: var(--pb-white); font-weight: 700; font-size: 13px; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.yr-nav button:hover { border-color: var(--pb-yellow); color: var(--pb-yellow); }
.yr-nav .yr-close { color: var(--pb-muted); }

/* photos laid on the table: white paper frame, slight tilt, straightens on hover */
.yr-strip { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 6px 10px; align-items: flex-start; }
.ph { margin: 0; flex: 0 0 auto; scroll-snap-align: start; transform: rotate(var(--r, 0deg)); transition: transform .2s ease; }
.ph button { display: block; padding: 8px 8px 0; background: #F4F1EA; border: 0; cursor: zoom-in; }
.ph img { display: block; height: 260px; width: auto; max-width: none; background: #2a2a2a; }
.ph figcaption { background: #F4F1EA; color: var(--pb-ink); font-size: 12.5px; font-weight: 500; padding: 8px 10px 10px; max-width: 100%; }
.ph:hover, .ph:focus-within { transform: rotate(0deg) translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .ph, .yr-panel:not([hidden]) { transition: none; animation: none; } }
@media (max-width: 760px) {
  .timeline { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 132px; row-gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
  .timeline li.on::after { display: block; }
  .yr-cnt { margin-top: 10px; top: 0; }
  .yr-in { grid-template-columns: 1fr; padding: 18px; gap: 8px; }
  .yr-big { font-size: 72px; }
  .ph img { height: 200px; }
  .yr-strip { gap: 20px; margin: 0 -18px; padding-inline: 18px; }
}

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(16px, env(safe-area-inset-bottom, 0px)); }
.lb[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-top { display: flex; align-items: center; gap: 14px; color: var(--pb-white); padding: 4px 6px 10px; }
.lb-yr { font-family: var(--f-display); font-size: 32px; line-height: 1; color: var(--pb-yellow); }
.lb-count { font-size: 13px; color: var(--pb-muted); }
.lb-x { margin-left: auto; background: none; border: 1px solid #444; color: var(--pb-white); font-size: 24px; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.lb-stage { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: min(100%, 1400px); max-height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.lb-nav { flex: 0 0 auto; background: none; border: 1px solid #444; color: var(--pb-white); font-size: 22px; width: 48px; height: 48px; cursor: pointer; }
.lb-nav:hover, .lb-x:hover { border-color: var(--pb-yellow); color: var(--pb-yellow); }
.lb-cap { color: var(--pb-white); text-align: center; margin: 12px auto 0; max-width: 60em; font-size: 14px; }
@media (max-width: 760px) { .lb-nav { position: absolute; bottom: 64px; } .lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; } }

/* ---------- Calendar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { background: transparent; border: 1px solid var(--pb-tag-line); color: var(--pb-tag-text); padding: 8px 14px; min-height: 40px; font-weight: 700; font-size: 14px; cursor: pointer; }
.filters button[aria-selected="true"] { background: var(--pb-yellow); border-color: var(--pb-yellow); color: var(--pb-ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pb-card-gap); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card-wrap { background: var(--pb-surface); display: flex; flex-direction: column; scroll-margin-top: 72px; }
.card-wrap:target { outline: 2px solid var(--pb-yellow); }
.card-wrap .pb-card { background: transparent; align-items: start; flex: 1; }
.card-wrap .pb-card .title { overflow-wrap: anywhere; }
.card-meta { color: var(--pb-tag-line); font-size: 12.5px; margin-top: 4px; }
.card-acts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid #2A2A2A; }
.card-acts a, .card-acts button { flex: 1 1 auto; background: none; border: 0; border-right: 1px solid #2A2A2A; padding: 10px 8px; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--pb-muted); text-decoration: none; text-align: center; cursor: pointer; }
.card-acts > :last-child { border-right: 0; }
.card-acts a:hover, .card-acts button:hover { color: var(--pb-yellow); }
.card-acts .go { color: var(--pb-yellow); }
.foot { padding-inline: 0 !important; margin: 14px 0 0; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Features ---------- */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feats > .feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--pb-ink); color: var(--pb-white); display: flex; flex-direction: column; min-width: 0; }
.feat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px 18px; color: var(--pb-white); }
.feat-head.blue { background: var(--pb-blue); }
.feat-head.garnet { background: var(--pb-garnet); }
.feat-date { font-family: var(--f-display); font-size: clamp(30px, 4vw, 40px); line-height: 1; white-space: nowrap; }
.feat-kicker { font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; text-align: right; line-height: 1.3; }
.feat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.feat-body h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.35; }
.feat-body p { margin: 0; color: var(--pb-muted); font-size: 14.5px; }
.feat-body .btn { align-self: flex-start; margin-top: auto; background: var(--pb-yellow); color: var(--pb-ink); }
.ink-tag { vertical-align: middle; margin-left: 6px; font-size: 12px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: #2A2A2A; }
.mini li { background: var(--pb-surface); padding: 8px 12px; font-size: 14px; }
.mini b { color: var(--pb-yellow); font-family: var(--f-wordmark); letter-spacing: .08em; margin-right: 10px; }
.mini-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini-tbl th { text-align: left; font-family: var(--f-wordmark); letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; color: var(--pb-tag-line); padding: 6px 0; border-bottom: 1px solid #2A2A2A; }
.mini-tbl td { padding: 7px 0; border-bottom: 1px solid #2A2A2A; vertical-align: top; }
.mini-tbl td:first-child { color: var(--pb-yellow); font-weight: 700; white-space: nowrap; padding-right: 14px; }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.months div { background: var(--pb-surface); padding: 8px 4px; text-align: center; line-height: 1.2; }
.months b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.months span { font-size: 11px; color: var(--pb-muted); }
.months div:nth-child(n+4):nth-child(-n+6), .months div:nth-child(n+10) { background: #2a1420; }
.months div:nth-child(-n+3), .months div:nth-child(n+7):nth-child(-n+9) { background: #0f1c2c; }
@media (max-width: 420px) { .months { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.wall li { background: var(--pb-surface); padding: 8px; font-size: 12px; color: var(--pb-muted); line-height: 1.3; min-width: 0; }
.wall li b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 20px; color: var(--pb-white); }
.wall li.now { background: var(--pb-yellow); color: var(--pb-ink); }
.wall li.now b { color: var(--pb-ink); }
@media (max-width: 420px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Charity ---------- */
.auctions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pb-card-gap); }
@media (max-width: 760px) { .auctions { grid-template-columns: 1fr; } }
.auction { background: var(--pb-surface); padding: var(--pb-card-pad); display: grid; grid-template-columns: var(--pb-badge) minmax(0, 1fr); gap: 12px; align-items: start; }
.auction .date { color: var(--pb-yellow); font-weight: 800; font-size: 16px; }
.auction p { margin: 2px 0 0; color: var(--pb-muted); font-size: 13.5px; line-height: 1.5; }
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #2A2A2A; border: 1px solid #2A2A2A; }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } }
.news a { background: var(--pb-ink); padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.news a:hover { background: var(--pb-surface); }
.news .d { font-family: var(--f-display); font-size: 22px; line-height: 1; color: var(--pb-yellow); }
.news .s { font-family: var(--f-wordmark); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--pb-tag-line); }
.news .t { font-weight: 700; font-size: 15px; }
.news .r { font-size: 13px; color: var(--pb-muted); margin-top: auto; }

/* ---------- Partners ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--pb-ink); color: var(--pb-white); padding: 20px; }
.tier-n { font-family: var(--f-display); font-size: 40px; line-height: 1; color: var(--pb-yellow); }
.tier h3 { margin: 10px 0 6px; font-size: 19px; font-weight: 800; }
.tier p { margin: 0; color: var(--pb-muted); font-size: 14px; }
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brands li { border: 1px solid var(--pb-ink); padding: 6px 12px; font-weight: 700; font-size: 14px; }
.contact { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 32px; }

/* ---------- Connect ---------- */
.network { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .network { grid-template-columns: 1fr; } }
.net-g h4 { margin: 0 0 8px; font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--pb-tag-line); }
.net-g ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2A2A2A; }
.net-g li { border-bottom: 1px solid #2A2A2A; }
.net-g a, .net-g span.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; text-decoration: none; }
.net-g a b { color: var(--pb-white); }
.net-g a:hover b { color: var(--pb-yellow); }
.net-g a i { font-style: normal; color: var(--pb-yellow); }
.net-g span.row b { color: var(--pb-muted); font-weight: 700; }
.net-g small { color: var(--pb-tag-line); font-size: 12.5px; text-align: right; }
.penyes-intro { margin: -6px 0 16px; }
.penyes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .penyes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .penyes { grid-template-columns: 1fr; } }
.py-g h4 { margin: 0 0 8px; font-family: var(--f-wordmark); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--pb-yellow); }
.py-g ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2A2A2A; }
.py-g li { border-bottom: 1px solid #2A2A2A; padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.py-n b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.py-n small { color: var(--pb-tag-line); font-size: 12.5px; }
.py-l { display: flex; flex-wrap: wrap; gap: 6px; }
.py-l a { border: 1px solid var(--pb-tag-line); color: var(--pb-tag-text); text-decoration: none; font-size: 12px; font-weight: 700; padding: 4px 8px; line-height: 1.2; }
.py-l a:hover { border-color: var(--pb-yellow); color: var(--pb-yellow); }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .tools { grid-template-columns: 1fr; } }
.tool { background: var(--pb-surface); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool-h { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.tool-n { width: 28px; height: 28px; background: var(--pb-blue); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 400; font-size: 16px; }
.tool:nth-child(2) .tool-n { background: var(--pb-garnet); }
.tool p { margin: 0; font-size: 13.5px; color: var(--pb-muted); }
.tool code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.tool p code { color: var(--pb-yellow); }
.code { position: relative; background: var(--pb-black); border: 1px solid #2A2A2A; }
.code pre { margin: 0; padding: 12px; padding-right: 64px; overflow-x: auto; color: #DADADA; line-height: 1.55; }
.copy { position: absolute; top: 6px; right: 6px; background: var(--pb-yellow); color: var(--pb-ink); border: 0; font-weight: 700; font-size: 12px; padding: 5px 10px; cursor: pointer; }
.embed-preview { border: 1px dashed var(--pb-tag-line); }
.embed-preview iframe { width: 100%; height: 132px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--pb-black); }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot-20 { font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--pb-yellow); }
.wm.light { color: var(--pb-white); margin-top: 6px; }
.footer p { color: #9A9A9A; font-size: 13px; margin: 8px 0 0; }
.foot-r a { color: var(--pb-yellow); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--pb-yellow); color: var(--pb-ink); font-weight: 700; padding: 10px 16px; font-size: 14px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* readability: avoid one-character last lines in CJK paragraphs */
.intro, .hero-lede, .stat p, .timeline .t, .feat-body p, .tool p, .tier p, .auction p, .card-wrap .desc { text-wrap: pretty; }
/* Japanese has no spaces: break headings at phrase boundaries instead of keeping the whole run together */
html[lang="ja"] .sec h2 { word-break: normal; word-break: auto-phrase; overflow-wrap: normal; }
