/* Quite Terrible — dark market-data theme */
/* Quite Terrible — light market-data theme */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f7f5;
  --sunk: #fafaf8;
  --line: #e8e6e1;
  --line-2: #d9d6cf;
  --text: #141414;
  --text-2: #54565c;
  --text-3: #8b8e94;
  --brand: #e8483c;
  --up: #e0413a;
  --up-bg: rgba(224, 65, 58, .09);
  --down: #2563eb;
  --down-bg: rgba(37, 99, 235, .09);
  --flat: #8b8e94;
  --ok: #16a34a;
  --warn: #d97706;
  --ram: #7c3aed;
  --gpu: #0f8a4b;
  --hero-bg: #f2f1ee;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Korea reads price drops in blue, the US in green. Rises are red in both. */
html[lang="en"] { --down: #16a34a; --down-bg: rgba(22, 163, 74, .09); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  font-feature-settings: "ss06";
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
main { flex: 1; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.num { text-align: right; }
.num, .tnum, .quote-price, .price, .delta { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--text); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: stretch; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: block; }
.brand-text { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand-tagline { font-size: 12px; font-weight: 500; color: var(--text-3); }
.tabs { display: flex; gap: 2px; }
.tab { display: flex; align-items: center; padding: 0 14px; margin-bottom: -1px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand); }

/* Hero: the reason this site exists, over a RAM stick made of particles */
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; height: clamp(420px, 58vh, 540px); background: var(--hero-bg); touch-action: pan-y; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
.hero-backdrop { position: absolute; left: 50%; top: 36%; z-index: -1; transform: translate(-50%, -50%); font-size: min(26vw, 300px); font-weight: 800; line-height: .8; letter-spacing: -.07em; color: rgba(20, 20, 20, .045); white-space: nowrap; pointer-events: none; user-select: none; }
.hero-hint { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0; transform: translateX(-50%); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; pointer-events: none; transition: opacity .8s ease; }
.hero-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 2.4s ease-in-out infinite; }
.hero[data-touched="1"] .hero-hint { opacity: 0; }
@keyframes pulse { 0%, 100% { transform: scale(.6); opacity: .45; } 50% { transform: scale(1); opacity: 1; } }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 40px; padding-bottom: 30px; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-title { margin: 0; text-wrap: balance; font-size: clamp(32px, 3.9vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; word-break: keep-all; }
.hero-title span { display: block; }
.hero-accent { color: var(--brand); }
.hero-aside { max-width: 420px; justify-self: end; padding-bottom: 6px; }
.hero-body { margin: 0 0 8px; text-wrap: pretty; font-size: 15px; line-height: 1.65; color: var(--text-2); word-break: keep-all; }
.hero-source { margin: 0 0 16px; font-size: 12.5px; color: var(--text-3); }
.hero-source a { color: var(--text-3); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; transition: transform .25s ease, background .2s; }
.hero-btn:hover { transform: translateY(-1px); background: var(--brand); }
.hero-link { padding: 4px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; }
.hero-link:hover { border-bottom-color: var(--text); }
.page-prices { scroll-margin-top: 70px; }

/* Page head */
.page { padding: 28px 0 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 10px; }
.page-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status[data-state="live"] .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.status[data-state="demo"] .dot { background: var(--warn); }
.status[data-state="error"] .dot { background: var(--up); }
.quip { margin: 0 0 22px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.quip-lead { color: var(--text-2); font-weight: 600; }
.quip a { color: var(--text-3); white-space: nowrap; }
.quip a:hover { color: var(--text); }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); }
.segmented button { padding: 5px 12px; border: 0; border-radius: 6px; background: none; font-size: 13px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--text); color: #fff; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--radius); background: var(--panel); font-size: 13.5px; color: var(--text-2); }
.banner button { flex: none; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--panel-2); font-size: 13px; font-weight: 600; }

/* Shared tags, deltas, quotes */
.tag { flex: none; padding: 2px 7px; border: 1px solid currentColor; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.tag.ram { color: var(--ram); }
.tag.gpu { color: var(--gpu); }
.tag.aff { color: var(--text-3); }
.delta { display: inline-flex; align-items: center; font-size: 13px; font-weight: 650; white-space: nowrap; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--flat); }
.delta.pill { padding: 2px 7px; border-radius: 6px; }
.delta.pill.up { background: var(--up-bg); }
.delta.pill.down { background: var(--down-bg); }
.delta.pill.flat { background: var(--panel-2); }
.quote { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.quote-price { font-size: 26px; font-weight: 750; letter-spacing: -.03em; }
.quote-price.muted { font-size: 17px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.quote-when { font-size: 12.5px; color: var(--text-3); }
.card-title { all: unset; cursor: pointer; }
.card-title:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* Spotlight: the two parts people actually buy first */
.spotlight { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.spot { display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s; }
.spot:hover { border-color: var(--line-2); }
.spot-kicker { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 6px; font-size: 12px; color: var(--text-3); }
.spot-kicker .spec { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; }
.spot-title { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.spot .quote { margin-top: 10px; min-height: 44px; }
.spot .quote-price { font-size: 38px; letter-spacing: -.035em; }
.spot-changes { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 12px; font-size: 12.5px; color: var(--text-3); }
.spot-changes span { display: inline-flex; align-items: center; gap: 6px; }
.spot-foot, .card-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.spot-foot b, .card-foot b { font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.spot-foot .src, .card-foot .src { margin-left: auto; }

/* Secondary cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s; }
.card:hover { border-color: var(--line-2); }
.card.skeleton { min-height: 210px; cursor: default; }
.spot.skeleton { min-height: 420px; cursor: default; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-spec { margin: -2px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.card .quote { min-height: 34px; }
.card .quote-price { font-size: 23px; }

/* Charts */
.chart { display: block; width: 100%; height: auto; overflow: visible; color: var(--flat); touch-action: pan-y; }
.chart.up { color: var(--up); }
.chart.down { color: var(--down); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .baseline { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .7; vector-effect: non-scaling-stroke; }
.chart .last-dot { fill: currentColor; stroke: var(--panel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .last-halo { fill: currentColor; opacity: .18; }
.chart .cursor-line { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .cursor-dot { fill: var(--panel); stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .axis-label { fill: var(--text-3); font-family: var(--font); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .note { fill: var(--text-3); font-family: var(--font); font-size: 11.5px; }
.chart .empty { fill: var(--text-3); font-family: var(--font); font-size: 12px; }
.spark { display: block; width: 96px; height: 28px; color: var(--flat); }
.spark.up { color: var(--up); }
.spark.down { color: var(--down); }
.spark .line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Panels and the full table */
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-link { font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.panel-link:hover { color: var(--text); }
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); white-space: nowrap; }
.grid th.num { text-align: right; }
.th-sort { all: unset; cursor: pointer; }
.th-sort:hover { color: var(--text); }
.th-sort:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
th[aria-sort="ascending"] .th-sort, th[aria-sort="descending"] .th-sort { color: var(--text); }
th[aria-sort="ascending"] .th-sort::after { content: " ↑"; }
th[aria-sort="descending"] .th-sort::after { content: " ↓"; }
.grid td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tr.row { cursor: pointer; }
.grid tr.row:hover td { background: var(--panel-2); }
.grid tr.group td { padding: 8px 16px; background: var(--sunk); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--text-3); }
.prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prod-icon { flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; }
.prod-icon.ram { color: var(--ram); }
.prod-icon.gpu { color: var(--gpu); }
.prod-icon svg { width: 18px; height: 18px; }
.prod-name { all: unset; display: block; cursor: pointer; font-weight: 650; }
.prod-name:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.prod-spec { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.price { font-weight: 700; }
.range { width: 132px; }
.range-track { position: relative; height: 3px; border-radius: 2px; background: var(--line-2); }
.range-dot { position: absolute; top: 50%; left: var(--pos, 50%); width: 9px; height: 9px; border-radius: 50%; background: var(--text); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--panel); }
.range-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.table-msg { padding: 32px 16px; text-align: center; font-size: 14px; color: var(--text-3); }
.table-msg button, .news-empty button { margin-left: 8px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--panel-2); font-size: 13px; font-weight: 600; }

/* News: list + today's prices sidebar */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.news-day h3 { margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--sunk); font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--text-3); }
.news-items { margin: 0; padding: 0; list-style: none; }
.news-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: relative; cursor: pointer; }
.news-title::after { content: ""; position: absolute; inset: 0; }  /* the whole row is the link */
.news-out { color: var(--text-3); font-weight: 500; }
.news-items li:last-child { border-bottom: 0; }
.news-item:hover { background: var(--panel-2); }
.news-time { padding-top: 2px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-title { text-wrap: pretty; font-size: 16px; font-weight: 650; line-height: 1.45; letter-spacing: -.01em; color: var(--text); text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.news-title:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.news-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.news-empty { margin: 0; padding: 40px 20px; text-align: center; color: var(--text-3); }
.side { position: sticky; top: 76px; }
.side-list { margin: 0; padding: 4px 0; list-style: none; }
.side-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 12px; padding: 10px 16px; text-decoration: none; }
.side-list a:hover { background: var(--panel-2); }
.side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.side-price { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.side-list .delta { min-width: 58px; justify-content: flex-end; font-size: 12px; }

/* Product pages */
.crumbs { display: flex; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.product-lead { margin: 0 0 20px; font-size: 16px; color: var(--text-2); word-break: keep-all; text-wrap: pretty; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.product-panel .drawer-body { padding: 22px; }
.related-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.related-list b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.related-list a { grid-template-columns: minmax(0, 1fr) auto; }

/* About: one centred reading column */
.about-wrap { max-width: 760px; margin: 0 auto; }
.about-quote { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: center; margin: 18px 0 32px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.about-photo img { display: block; width: 132px; height: 168px; object-fit: cover; object-position: center 15%; border-radius: 10px; background: var(--line); }
.about-quote blockquote { margin: 0; }
.about-quote blockquote p { margin: 0; font-size: 21px; font-weight: 750; line-height: 1.5; letter-spacing: -.02em; word-break: keep-all; text-wrap: balance; }
.about-quote figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.about-quote figcaption a { color: var(--text-3); }
.about-credit { display: block; }
.about-story p { margin: 0 0 16px; font-size: 17px; line-height: 1.8; color: var(--text-2); word-break: keep-all; text-wrap: pretty; }
.about-story .about-punch { margin: 22px 0; font-size: 20px; font-weight: 750; line-height: 1.5; color: var(--brand); text-wrap: balance; }
.about-rules-title { margin: 40px 0 12px; }
.about-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rule { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rule-no { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand); }
.rule h3 { margin: 8px 0 6px; font-size: 16px; letter-spacing: -.01em; word-break: keep-all; }
.rule p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-2); word-break: keep-all; text-wrap: pretty; }
.about-closing { margin: 32px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.6; word-break: keep-all; text-wrap: balance; }
.about-disclaimer { margin: 0; font-size: 12px; color: var(--text-3); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--sunk); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 22px 0 28px; font-size: 12.5px; color: var(--text-3); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-2); }
.footer-muted { font-weight: 500; color: var(--text-3); }
.footer-joke { margin: 0; font-style: italic; }
.footer-disclosure { flex-basis: 100%; order: 9; margin: 0; font-size: 11.5px; color: var(--text-3); }
.footer-meta { display: flex; gap: 16px; margin: 0 0 0 auto; }

/* Detail drawer */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(620px, 100%); max-width: 100%; height: 100%; max-height: none; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--text); overflow-y: auto; }
.drawer::backdrop { background: rgba(20, 20, 20, .35); backdrop-filter: blur(2px); }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 22px; border-bottom: 1px solid var(--line); background: var(--panel); }
.drawer-kicker { font-size: 12px; font-weight: 600; color: var(--text-3); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-2); }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.drawer-body { padding: 22px; }
.d-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.d-title h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.d-title p { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.d-quote { margin: 16px 0 2px; }
.d-quote .quote-price { font-size: 36px; }
.d-changes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; font-size: 12.5px; color: var(--text-3); }
.d-changes .delta { margin-left: 6px; }
.d-chart { margin: 14px 0 0; }
.d-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 18px 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.d-stats div { padding: 10px 12px; background: var(--panel); }
.d-stats dt { font-size: 11.5px; color: var(--text-3); }
.d-stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-section { margin: 0 0 4px; font-size: 14px; }
.offers { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.offers td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.offers td + td { padding-left: 12px; }
.offers .muted-row { opacity: .5; }
.offer-name { font-weight: 650; }
.offer-meta { display: block; font-size: 12px; color: var(--text-3); }
.buy { display: inline-block; padding: 6px 12px; border-radius: 7px; background: var(--text); color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.buy:hover { background: var(--brand); }
/* Where to buy: one row per store, Danawa-style */
.sellers { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.seller { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mall { justify-self: start; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.mall.coupang { color: #e52528; }
.mall.danawa { color: #1f5bd8; }
.seller-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.seller-info > div { min-width: 0; }
.seller-img { flex: none; width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.seller-name { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.seller-name:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.seller-meta { display: block; margin-top: 2px; overflow: hidden; font-size: 12px; color: var(--text-3); white-space: nowrap; text-overflow: ellipsis; }
.seller-meta .rocket { font-weight: 700; color: #0073e9; }
.seller-price { text-align: right; white-space: nowrap; }
.seller-price .price { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.price-link { font-size: 13px; font-weight: 700; color: #e52528; text-decoration: none; }
.price-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.go { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--panel); font-size: 12.5px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.go:hover { background: var(--panel-2); }
.go.coupang { border-color: #e52528; background: #e52528; color: #fff; }
.go.coupang:hover { border-color: #c81e21; background: #c81e21; }
.go.danawa { border-color: #1f5bd8; color: #1f5bd8; }
.go.danawa:hover { background: rgba(31, 91, 216, .06); }
.buy-note { margin: 10px 0 0; font-size: 11px; color: var(--text-3); }

/* Memory by maker */
.makers { margin-bottom: 24px; }
.panel-note { font-size: 12.5px; color: var(--text-3); }
.maker-grid th[scope="row"] { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.maker-grid tbody tr:last-child th, .maker-grid tbody tr:last-child td { border-bottom: 0; }
.maker-grid td { width: 26%; }
.mk-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; color: inherit; text-decoration: none; }
.mk-cell:hover .price { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.mk-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.mk-sub .delta { font-size: 11.5px; }
.tag.low { color: var(--ok); }
.page-sub { margin: -2px 0 16px; font-size: 14px; color: var(--text-2); }

.buy.secondary { background: var(--panel); color: var(--text-2); border: 1px solid var(--line-2); }
.buy.secondary:hover { background: var(--panel-2); color: var(--text); }
.d-empty { margin: 8px 0 0; font-size: 13.5px; color: var(--text-3); }
.d-note { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-3); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1000px) {
  .hide-md { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 20px; }
  .hero-aside { justify-self: start; max-width: 560px; }
  .brand-tagline { display: none; }
}
@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { height: auto; min-height: 500px; padding-top: 190px; }
  .hero-content { padding-bottom: 32px; }
  .hero-title { font-size: clamp(28px, 8.4vw, 38px); }
  .hero-body { font-size: 15px; }
  .topbar-inner { gap: 12px; height: 56px; }
  .brand-name { font-size: 15px; }
  .tab { padding: 0 8px; }
  .hide-sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .page { padding-top: 20px; }
  h1 { font-size: 24px; }
  .spot { padding: 16px 16px 12px; }
  .spot .quote-price { font-size: 32px; }
  .grid td, .grid th { padding-left: 12px; padding-right: 12px; }
  .prod-icon { display: none; }
  .prod-spec { max-width: 170px; }
  .news-item { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .news-day h3 { padding: 9px 16px; }
  .about-quote { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .about-photo img { width: 84px; height: 108px; }
  .about-quote blockquote p { font-size: 17px; }
  .about-story p { font-size: 16px; }
  .about-rules { grid-template-columns: 1fr; }
  .footer-meta { margin-left: 0; }
  .d-stats { grid-template-columns: repeat(2, 1fr); }
  .drawer-body { padding: 16px; }
  .seller { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .seller .go { grid-column: 2 / -1; justify-self: end; }
  .seller-name, .seller-meta { white-space: normal; word-break: keep-all; }
  .maker-grid td, .maker-grid th { padding-left: 5px; padding-right: 5px; }
  .maker-grid th:first-child, .maker-grid th[scope="row"] { padding-left: 12px; font-size: 12.5px; }
  .maker-grid td:last-child, .maker-grid th:last-child { padding-right: 12px; }
  .maker-grid .price { font-size: 12.5px; letter-spacing: -.02em; }
  .mk-sub { flex-wrap: wrap; justify-content: flex-end; gap: 3px; font-size: 10.5px; }
  .mk-sub .tag { padding: 1px 4px; font-size: 9.5px; }
  .panel-note { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-hint::before { animation: none; }
  .spot, .card { transition: none; }
}
