/* Brick Obsession — bright collector editorial. Yellow + blue, big prices and dates. */
:root {
  --yellow: #ffcf00;
  --yellow-soft: #fff4c2;
  --blue: #1453c8;
  --blue-deep: #0b2f78;
  --red: #e23b2e;
  --ink: #16181d;
  --muted: #5b6270;
  --paper: #fffdf6;
  --card: #ffffff;
  --line: #e7e2d0;
  --radius: 14px;
  --shadow: 0 2px 0 rgba(11, 47, 120, .12), 0 8px 24px rgba(11, 47, 120, .08);
  font-family: "Inter", "Hiragino Sans", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.preview-banner { background: repeating-linear-gradient(45deg, var(--ink) 0 12px, #2a2d35 12px 24px);
  color: var(--yellow); font-weight: 700; font-size: 13px; text-align: center; padding: 6px 16px; }
.preview-banner a { color: #fff; }

.masthead { background: var(--yellow); border-bottom: 4px solid var(--ink); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px;
  letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.stud { width: 26px; height: 26px; border-radius: 6px; background: var(--red); position: relative;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.stud::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.region-tag { font-weight: 900; font-size: 12px; background: var(--ink); color: var(--yellow);
  padding: 3px 9px; border-radius: 999px; }
.region-tag:empty { display: none; }
.sections { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; max-width: 1120px; margin: 0 auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sections::-webkit-scrollbar { display: none; }
.sections a { flex: 0 0 auto; background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px;
  text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); }
.sections a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

main.wrap { padding-top: 20px; padding-bottom: 48px; }
.tagline { color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.kicker { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: none;
  padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; }
.badge.rumor { background: var(--red); }
.badge.mixed { background: #8a4fd6; }
.badge.draft { background: var(--muted); }
.badge.error { background: #000; color: var(--yellow); }
.badge.new { background: var(--red); color: #fff; letter-spacing: .08em; }
.sl-status .badge.new { margin-left: 6px; }
.sort-control { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 800; }
.sort-control select { font: inherit; font-weight: 700; padding: 5px 10px; border-radius: 8px;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start;
  background: var(--blue-deep); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 28px; margin-bottom: 32px;
  box-shadow: var(--shadow); }
.hero .kicker { color: var(--yellow); }
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.12; margin: 10px 0 12px; letter-spacing: -.02em; }
.hero h1 a { color: #fff; text-decoration: none; }
.hero h1 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.hero .lede { color: #dfe7ff; font-size: 17px; }
.hero .product { color: var(--ink); margin-top: 16px; }
.hero-media { display: block; border-radius: var(--radius); overflow: hidden; background: #fff;
  aspect-ratio: 4 / 3; border: 3px solid var(--ink); }
.hero-media img, .hero-media svg { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Article: product image is the first thing on screen */
.article-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; margin: 0 0 8px; }
.article-hero .hero-media { margin: 0; position: sticky; top: 90px; }
.article-hero figure.hero-media { aspect-ratio: auto; }
.article-hero figure.hero-media img, .article-hero figure.hero-media svg { aspect-ratio: 4 / 3; height: auto; }
.article-hero figcaption { font-size: 12px; color: var(--muted); padding: 6px 10px; background: #fff; }
.article-hero h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 8px 0; }
.article-hero .lede { font-size: 18px; color: #2d323c; margin: 0 0 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; border: 2px solid var(--line); aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 11px; color: var(--muted); }

/* Placeholder illustration (own artwork, shown until a licensed product photo exists) */
.ph-bg { fill: var(--yellow-soft); }
.ph-brick rect { fill: var(--brick, var(--blue)); }
.ph-studs rect { fill: var(--brick, #3b78e7); stroke: rgba(0,0,0,.35); stroke-width: 3; }
.ph-set { font: 900 40px/1 system-ui, sans-serif; fill: var(--blue-deep); text-anchor: middle; }
.ph-name { font: 700 22px/1 system-ui, sans-serif; fill: var(--ink); text-anchor: middle; }
.ph-label { font: 700 16px/1 system-ui, sans-serif; fill: var(--muted); text-anchor: middle; }

.product { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); padding: 18px;
  box-shadow: 6px 6px 0 var(--yellow); position: relative; }
.setno { display: inline-block; background: var(--yellow); font-weight: 900; font-size: 13px; padding: 2px 10px;
  border-radius: 6px; border: 2px solid var(--ink); }
.product h2 { margin: 8px 0 12px; font-size: 22px; line-height: 1.25; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.fact { background: var(--yellow-soft); border-radius: 10px; padding: 10px 12px; }
.fact span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.fact .big { font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; color: var(--blue-deep); }
.fact .mid { font-size: 18px; font-weight: 800; }
.fact .unknown { font-size: 13px; font-weight: 600; color: var(--muted); }
.buy { display: block; margin-top: 14px; text-align: center; font-weight: 900; font-size: 16px; text-decoration: none;
  padding: 12px 16px; border-radius: 12px; background: var(--blue); color: #fff; border: 3px solid var(--ink); }
.buy:hover { background: var(--blue-deep); }
.buy.affiliate { background: var(--red); }
.meta { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.section { margin: 36px 0; scroll-margin-top: 120px; }
.sec-title { font-size: 26px; font-weight: 900; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 14px; height: 26px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .12s; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 2px solid var(--line); }
.card-media img, .card-media svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 16px 16px; }
.card:hover { transform: translateY(-2px); border-color: var(--ink); }
.card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.card h3 { font-size: 19px; line-height: 1.3; margin: 10px 0 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-facts { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.card-facts b { font-size: 22px; font-weight: 900; color: var(--blue-deep); }
.card-facts span { font-size: 13px; font-weight: 700; background: var(--yellow-soft); padding: 2px 8px; border-radius: 6px; }
.empty { color: var(--muted); background: repeating-linear-gradient(135deg, #fff 0 10px, #faf7ea 10px 20px);
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }

.story { max-width: 760px; margin: 0 auto; }
.story h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0; }
.story .lede { font-size: 19px; color: #2d323c; }
.story h2 { font-size: 24px; margin: 32px 0 10px; }
.story .products { display: grid; gap: 16px; margin: 20px 0; }
.disclosure { font-size: 13px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); padding: 8px 12px; border-radius: 6px; }
.body { font-size: 17px; }
.body blockquote { border-left: 4px solid var(--blue); margin: 16px 0; padding: 4px 16px; background: #f1f5ff; }
.hero-img { margin: 16px 0; }
.hero-img img { border-radius: var(--radius); border: 3px solid var(--ink); }
.hero-img figcaption { font-size: 12px; color: var(--muted); }
.rumors { background: #fff0ee; border: 2px solid var(--red); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; }
.rumors .warn { font-weight: 800; color: var(--red); margin: 0 0 6px; }
.rumors ul { margin: 0; padding-left: 18px; }
.rumors .claim { font-weight: 700; margin: 6px 0 0; }
.resale { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 24px 0; }
.resale h2 { margin-top: 0; font-size: 20px; }
.resale-table, .checks { width: 100%; border-collapse: collapse; font-size: 14px; }
.resale-table th, .resale-table td, .checks th, .checks td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.checks ul { margin: 0; padding-left: 16px; }
.checks li.error { color: #b3261e; font-weight: 700; }
.checks li.warning { color: #8a5a00; }
.chart { width: 100%; max-width: 360px; }
.chart polyline { stroke: var(--blue); }
.chart circle { fill: var(--red); }
.sources ul { padding-left: 18px; font-size: 14px; }

.hub h1 { font-size: 44px; font-weight: 900; margin: 12px 0 20px; }
.market-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.market-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: 5px 5px 0 var(--blue); }
.market-card:hover { box-shadow: 5px 5px 0 var(--red); }
.market-card .flag { font-weight: 900; font-size: 28px; color: var(--blue); }
.market-card span:last-child { font-size: 13px; color: var(--muted); }

.foot { background: var(--ink); color: #c9ccd4; font-size: 13px; padding: 20px 0 28px; }
.foot a { color: var(--yellow); }
.regions { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; margin-top: 12px; }
.regions a { color: #c9ccd4; text-decoration: none; }
.regions a.on { color: var(--yellow); font-weight: 700; }
.redirecting { color: var(--muted); text-align: center; padding: 80px 0; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .article-hero { grid-template-columns: 1fr; gap: 14px; }
  .article-hero .hero-media { position: static; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .logo { font-size: 18px; }
  main.wrap { padding-top: 12px; }
  .fact .big { font-size: 22px; }
  .hub h1 { font-size: 34px; }
  .resale-table, .checks { font-size: 13px; }
  .checks { display: block; overflow-x: auto; }
}

/* Catalog: themes and sets */
.page-title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 8px 0 6px; }
.theme-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; margin: 8px 0 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.theme-strip::-webkit-scrollbar { display: none; }
.theme-chip { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: baseline; text-decoration: none;
  font-weight: 800; font-size: 14px; color: var(--ink); background: var(--card); border: 2px solid var(--ink);
  border-radius: 999px; padding: 6px 14px; }
.theme-chip small { font-size: 11px; color: var(--muted); font-weight: 700; }
.theme-chip.hot { background: var(--yellow); }
.theme-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.theme-chip:hover small { color: #dfe7ff; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12px; }
.theme-tile { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 4px 4px 0 var(--yellow); }
.theme-tile:hover { box-shadow: 4px 4px 0 var(--blue); }
.theme-tile .tile-media { display: block; aspect-ratio: 4 / 3; border-bottom: 2px solid var(--line); }
.theme-tile .tile-media { background: var(--tile); display: grid; place-items: center; padding: 12px;
  background-image: radial-gradient(circle at 18px 18px, rgba(255,255,255,.18) 9px, transparent 10px);
  background-size: 36px 36px; }
.theme-tile .tile-media span { color: #fff; font-weight: 900; font-size: clamp(18px, 2.4vw, 26px); text-align: center;
  text-shadow: 0 2px 0 rgba(0,0,0,.35); line-height: 1.15; }
.theme-tile b { font-size: 17px; padding: 8px 12px 0; }
.theme-tile > span:last-child { font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 12px 10px; }
.set-grid { grid-template-columns: repeat(4, 1fr); }
.set-card h3 { font-size: 16px; }
.chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--yellow-soft); border: 1px solid var(--line); }
.card-facts .setno { font-size: 12px; padding: 1px 7px; }
.more { text-align: right; font-weight: 800; }
.kicker a { color: inherit; }
@media (max-width: 900px) {
  .theme-grid, .set-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .theme-grid, .set-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .set-card .card-body { padding: 10px; }
  .set-card .card-facts span:not(.setno) { font-size: 11px; }
}

/* Language sites: region badges, region filter, per-market price table */
.badge.region { background: var(--ink); color: var(--yellow); }
.region-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.region-filter button { font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; padding: 5px 12px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); }
.region-filter button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
[data-filter-group] [hidden] { display: none; }
.offers-title { font-size: 15px; margin: 14px 0 6px; }
.offers { width: 100%; border-collapse: collapse; font-size: 14px; }
.offers th, .offers td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.offers thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.offers td.price { font-size: 20px; font-weight: 900; color: var(--blue-deep); white-space: nowrap; }
.offers td.price .unknown { font-size: 12px; font-weight: 600; color: var(--muted); white-space: normal; }
.buy-sm { display: inline-block; font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border-radius: 10px; background: var(--blue); color: #fff; border: 2px solid var(--ink); }
.buy-sm.affiliate { background: var(--red); }
.set-links { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) {
  .offers thead { display: none; }
  .offers tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .offers th, .offers td { border: 0; padding: 0; }
  .offers td.meta { grid-column: 1; }
  .offers td:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Events, sales, places */
.badge.official { background: var(--blue); }
.badge.fan { background: #7c3aed; }
.event-date { font-size: 20px; font-weight: 900; color: var(--blue-deep); margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow-soft); }
.tag-buy, .tag-trade { background: var(--yellow); }
.event-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 14px; margin: 8px 0; }
.event-facts dt { color: var(--muted); font-weight: 700; }
.event-facts dd { margin: 0; }
.sale-benefit { font-size: 18px; font-weight: 900; color: var(--red); }
/* Sale cards: status first, quiet seller metadata, blue reserved for links. */
.sale-card .card-body { display: flex; flex-direction: column; }
.sale-card-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.sale-card .sale-status { font-size: 12px; line-height: 1.5; padding: 3px 10px; border: 1px solid; }
.sale-card .sale-status[data-sale-status="live"] { background: #e7f4eb; color: #195b35; border-color: #94bda3; }
.sale-card .sale-status[data-sale-status="upcoming"] { background: #fff2d6; color: #714600; border-color: #d6b778; }
.sale-card .badge.region { background: #f1f2f4; color: #4b515b; }
.sale-card .sale-seller { color: #4b515b; font-size: 13px; font-weight: 600; line-height: 1.4;
  min-height: 2.8em; margin: 12px 0 0; overflow-wrap: anywhere; }
.sale-card h3 { margin-top: 8px; }
.sale-card .sale-benefit { color: var(--ink); }
.sale-card .sale-source { margin-top: auto; padding-top: 16px; }
.sale-card .sale-source a { font-weight: 700; text-underline-offset: 3px; }
.sale-card .sale-source a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.place-card h3 a { color: var(--blue); }
.checks-list li.error { color: #b3261e; font-weight: 700; }
.checks-list li.warning { color: #8a5a00; }

/* Amazon links (#31) */
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.buy-row .buy { margin-top: 0; }
.buy.amazon { background: #fff; color: var(--ink); }
.buy.amazon:hover { background: var(--yellow-soft); }
.buy-sm.amazon { background: #fff; color: var(--ink); margin-left: 6px; }
.offers td:last-child { white-space: nowrap; }
.amazon-statement { font-size: 12px; }
@media (max-width: 600px) {
  .buy-row { grid-template-columns: 1fr; }
  .offers td:last-child { display: flex; flex-direction: column; gap: 6px; white-space: normal; }
  .buy-sm.amazon { margin-left: 0; }
}

/* Availability next to the price */
.fact.avail-sold_out .mid, .fact.avail-retired .mid { color: var(--red); }
.fact.avail-coming_soon .mid, .fact.avail-announced .mid { color: #8a5a00; }
.fact.avail-available .mid { color: #15803d; }
.fact.avail-backorder .mid { color: #8a5a00; }

/* #38 Japanese site: Meiryo first (Windows), then the natural Japanese UI font on each platform:
   Hiragino on macOS/iOS, Noto Sans CJK / Noto Sans JP on Android and Linux, Yu Gothic UI on newer Windows. */
html[lang="ja"] {
  font-family: "Meiryo", "メイリオ", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3",
    "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "YuGothic", system-ui, sans-serif;
}
html[lang="ja"] body { line-height: 1.75; letter-spacing: .01em; }
html[lang="ja"] .ph text { font-family: inherit; }

/* #48 UX: event call-to-action, empty states, unconfirmed catalog years */
.event-cta { display: inline-block; margin: 6px 0 2px; font-weight: 800; font-size: 14px; text-decoration: none;
  padding: 8px 12px; border-radius: 10px; background: var(--blue); color: #fff; border: 2px solid var(--ink); }
.event-cta:hover { background: var(--blue-deep); }
div.empty p { margin: 0 0 8px; }
div.empty p:last-child { margin-bottom: 0; }
.empty-links { margin: 0; padding-left: 18px; }
.card-facts .unconfirmed { background: #fff0ee; color: #8a2a1e; }

/* Concise labels; full disclosure stays visible in the footer. */
.ad-label { display:inline-block; margin-inline:6px 10px; font-size:14px; line-height:1.6; font-weight:500; color:#374151; vertical-align:baseline; }
.disclosure-detail { font-size:14px; line-height:1.7; color:#c9ccd4; background:none; border:0; padding:0; }
/* Official price records page (/prices/) */
.pt-notes { font-size: 14px; color: var(--muted, #555); padding-left: 1.2em; }
.pt-theme { border-bottom: 1px solid var(--line); padding: 8px 0; }
.pt-theme summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.pt-wrap { overflow-x: auto; }
.pt-table td ul.pt-prices { list-style: none; margin: 0; padding: 0; }
.pt-table td ul.pt-prices small { display: block; color: var(--muted, #555); font-size: 12px; }
