/* Forge Market. A workshop catalog: ink on paper, hairline rules, one green spark.
   Terminal green is reserved for the spark mark. Everything else is ink, paper and grey.
   Always light: the page looks the same whatever the visitor's OS theme is. */
:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #111214;
  --ink-2: #3d4048;
  --muted: #777a82;
  --rule: #e4e1da;
  --rule-2: #efece6;
  --tint: #f2f0ea;
  --accent: #0e9f55;
  --accent-on-ink: #3bea8b;
  --accent-btn: #3bea8b;
  --r: 4px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spark, .spark path { fill: var(--accent); stroke: none; }
.feature .spark, .feature .spark path, .tooltip .spark, .tooltip .spark path { fill: var(--accent-on-ink); }
.btn-ink .spark, .btn-ink .spark path { fill: var(--accent-btn); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule); }
/* frosted glass behind the header. It sits on a layer of its own: backdrop-filter on .top itself
   would pin the fixed bottom tab bar (.nav on phones) inside the header. */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7); }
.top-in { display: flex; align-items: center; gap: 20px; height: 56px; }
.top-in > * { flex-shrink: 0; }
.top-in > .find { flex-shrink: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 17px; letter-spacing: -.02em; flex: none; }
.brand img { border-radius: 6px; }
.nav { display: flex; gap: 2px; font-size: 14.5px; }
.nav a { padding: 6px 10px; color: var(--muted); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }
.find { flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 6px; background: var(--tint); border: 1px solid transparent; }
.find:focus-within { border-color: var(--ink); background: var(--card); }
.find svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.find input::-webkit-search-cancel-button { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 6px; font-weight: 650; font-size: 14px; border: 1px solid var(--rule); background: var(--card); cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s, transform .12s, box-shadow .15s; }
.btn:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { opacity: .88; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--tint); border-color: transparent; color: var(--ink); }
.btn svg:not(.spark) { width: 16px; height: 16px; }
.btn .spark { width: 12px; height: 12px; }
.lang { padding: 0 6px; font-size: 13px; font-family: var(--mono); }

/* platform + category bar */
.bar { display: flex; align-items: center; gap: 14px; height: 46px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; flex: none; overflow: hidden; background: var(--card); }
.seg button { height: 30px; padding: 0 11px; border: 0; border-left: 1px solid var(--rule); background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg svg { width: 14px; height: 14px; }
.chips { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 94%, transparent); padding-right: 24px; height: 100%; align-items: stretch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); border-bottom: 2px solid transparent; }
.chip:hover { color: var(--ink); }
.chip small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.chip[aria-current] { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }

/* ---------- sections ---------- */
main { min-height: 60vh; }
.section { margin: 44px 0; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 2px solid var(--ink); margin-bottom: 6px; }
.head h2 { font-size: 18px; letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 7px; }
.head h2 .spark { width: 12px; height: 12px; }
.head p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.head a { font-size: 13px; color: var(--ink-2); flex: none; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.head a:hover { text-decoration-color: var(--ink); }
.page-head { padding: 28px 0 14px; display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.page-head h1 { font-size: 28px; letter-spacing: -.03em; margin: 0; line-height: 1.2; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; }
.feature { position: relative; overflow: hidden; border-radius: 6px; background: #111214; color: #f4f2ee; min-height: 340px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.feature-text { padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature .label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: #f4f2ee; }
.feature .label .spark { width: 12px; height: 12px; }
.feature .label.ad { color: #b9b6ae; border: 1px solid #3a3b3f; padding: 1px 7px; border-radius: 3px; align-self: flex-start; }
.feature h2 { font-size: 34px; letter-spacing: -.035em; line-height: 1.1; margin: 10px 0 0; }
.feature .sub { color: #b9b6ae; margin: 0; font-size: 15px; }
.feature blockquote { margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid #2c2d31; color: #e4e1da; font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: default; }
.feature blockquote:hover, .feature blockquote:focus { -webkit-line-clamp: unset; display: block; }
.feature blockquote b { display: block; font-size: 12px; color: #8d8a83; font-weight: 600; margin-bottom: 3px; }
.feature-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.feature-foot .icon { width: 42px; height: 42px; --ring: rgb(255 255 255 / .14); --drop: 0 8px 18px -8px #000; }
.feature-foot small { color: #8d8a83; display: block; font-size: 12px; }
.feature-shots { display: flex; gap: 10px; padding: 24px 24px 0 0; align-items: flex-start; height: 340px; overflow: hidden; }
.feature-shots img { height: 380px; width: auto; border-radius: 10px; }
.feature-shots img:nth-child(2) { margin-top: 34px; }
.feature-nav { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 4px; align-items: center; }
.feature-nav button { width: 28px; height: 28px; border-radius: 4px; border: 1px solid #3a3b3f; background: #111214; color: #f4f2ee; cursor: pointer; display: grid; place-items: center; }
.feature-nav button:hover { border-color: #f4f2ee; }
.feature-nav svg { width: 14px; height: 14px; }
.feature-nav span { font-family: var(--mono); font-size: 11.5px; color: #8d8a83; margin: 0 6px; }
.side-stack { display: grid; gap: 22px; align-content: start; }
.panel h3 { margin: 0 0 2px; padding-top: 10px; border-top: 2px solid var(--ink); font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.panel h3 a { font-size: 12.5px; color: var(--ink-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.maker-cta { border: 1px solid var(--ink); border-radius: var(--r); padding: 16px 18px; background: var(--card); }
.maker-cta b { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.maker-cta b .spark { width: 11px; height: 11px; }
.maker-cta h3 { margin: 6px 0 4px; font-size: 18px; letter-spacing: -.02em; }
.maker-cta p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- app rows ---------- */
.icon {
  --mx: 50%; --my: -10%; --rx: 0deg; --ry: 0deg;
  --ring: rgb(17 18 20 / .13); --drop: 0 1px 1px rgb(17 18 20 / .05), 0 6px 14px -9px rgb(17 18 20 / .45);
  position: relative; display: block; isolation: isolate; overflow: hidden; flex: none;
  width: 56px; height: 56px; border-radius: 22.5%; background: var(--tint); object-fit: cover;
  box-shadow: 0 0 0 .5px var(--ring), var(--drop);
  transform: perspective(420px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.icon > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* glass edge: lit along the top, a little shade along the bottom, a faint sheen from the upper left */
.icon::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: linear-gradient(162deg, rgb(255 255 255 / .22), rgb(255 255 255 / .05) 34%, transparent 52%);
  box-shadow: inset 0 1px .5px rgb(255 255 255 / .6), inset 0 0 0 .5px rgb(255 255 255 / .2), inset 0 -1.5px 2px rgb(0 0 0 / .12);
}
/* light that follows the pointer (fx.js sets --mx, --my) */
.icon::before {
  content: ""; position: absolute; inset: -2px; z-index: 1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / .7), rgb(255 255 255 / .18) 26%, transparent 55%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .4s ease;
}
.icon.lit::before { opacity: 1; }
.icon.lit { --drop: 0 2px 2px rgb(17 18 20 / .06), 0 12px 22px -10px rgb(17 18 20 / .5); }
.icon.lg { width: 118px; height: 118px; --drop: 0 2px 3px rgb(17 18 20 / .06), 0 18px 34px -16px rgb(17 18 20 / .55); }
.icon.lg.lit { --drop: 0 3px 4px rgb(17 18 20 / .07), 0 24px 40px -18px rgb(17 18 20 / .6); }
.icon-fallback { display: grid; place-items: center; font-weight: 800; color: var(--ink-2); }
.icon-fallback svg { width: 26px; height: 26px; }
.row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); min-width: 0; }
.row:last-child { border-bottom: 0; }
.row:hover b span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.row.norank { grid-template-columns: auto minmax(0, 1fr) auto; }
.rk { width: 22px; text-align: left; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.row-body { min-width: 0; }
.row-body b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; }
.row-body b span { overflow: hidden; text-overflow: ellipsis; }
.row-body b > span:first-child { min-width: 4.5em; }
.row-body .tl { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-body small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.says { width: 13px; height: 13px; flex: none; color: var(--muted); }
.get { display: grid; justify-items: center; gap: 3px; flex: none; }
.get span { min-width: 56px; height: 26px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-size: 12.5px; font-weight: 650; display: grid; place-items: center; }
.row:hover .get span { border-color: var(--ink); }
.get small { font-size: 9.5px; color: var(--muted); line-height: 1; }
.pill { font-size: 10.5px; font-weight: 600; padding: 0 5px; height: 17px; line-height: 15px; border-radius: 3px; border: 1px solid var(--rule); color: var(--ink-2); flex: none; display: inline-flex; align-items: center; gap: 3px; background: var(--card); }
.pill.pick .spark { width: 8px; height: 8px; }
.pill.ad { color: var(--muted); }
.pill.draft { border-style: dashed; border-color: var(--ink); color: var(--ink); }
.pill.award { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.award svg { width: 12px; height: 12px; stroke-width: 2; }
.pill[data-tip] { cursor: help; }

.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); column-gap: 32px; }
.rank-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 4px; }

/* shelf: columns of rows that scroll sideways */
.shelf { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: calc((100% - 64px) / 3); column-gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf .row { scroll-snap-align: start; }
.shelf.rows-2 { grid-template-rows: repeat(2, auto); }
.shelf.rows-1 { grid-template-rows: auto; }

/* categories: plain line icons, no tinted tiles */
.cat-ico { width: 22px; height: 22px; color: var(--ink); display: grid; place-items: center; flex: none; }
.cat-ico svg { width: 20px; height: 20px; }
.cat-ico.lg { width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: var(--r); }
.cat-ico.lg svg { width: 28px; height: 28px; }
.cats, .cat-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 32px; }
.cat, .cat-strip a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-2); font-weight: 600; font-size: 14.5px; }
.cat span { flex: 1; }
.cat small, .cat-strip small { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 400; }
.cat:hover span, .cat-strip a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cat.empty-cat { color: var(--muted); }
.cat.empty-cat .cat-ico { color: var(--muted); }

/* collections */
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 32px; margin-top: 8px; }
.col { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.col h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.col:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.col p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.col-icons { display: flex; margin-top: auto; align-items: center; }
.col-icons .icon { width: 36px; height: 36px; margin-right: -6px; --ring: var(--paper); box-shadow: 0 0 0 2px var(--paper), 0 6px 12px -8px rgb(17 18 20 / .5); transition: margin .35s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }
.col-icons em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 14px; font-family: var(--mono); }

/* makers */
.makers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin-top: 4px; }
.maker { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 750; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.maker b { display: block; }
.maker:hover b { text-decoration: underline; text-underline-offset: 3px; }
.maker small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.maker-icons { display: flex; gap: 4px; margin-top: 6px; }
.maker-icons .icon { width: 22px; height: 22px; --drop: 0 2px 4px -2px rgb(17 18 20 / .3); }

/* ---------- detail ---------- */
.detail-top { display: flex; gap: 24px; align-items: flex-start; padding: 30px 0 22px; }
.detail-top h1 { font-size: 30px; letter-spacing: -.035em; margin: 0; line-height: 1.15; }
.detail-top .sub { color: var(--ink-2); margin: 4px 0 0; font-size: 16px; }
.detail-top .by { font-size: 13.5px; color: var(--ink); font-weight: 600; display: inline-block; margin-top: 6px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.detail-top .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.detail-top .meta .pill { height: 22px; font-size: 12px; padding: 0 8px; }
.tag { font-size: 12px; color: var(--muted); }
.tag::before { content: "#"; opacity: .6; }
.store-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.store-btns .price-note { font-size: 12.5px; color: var(--muted); }
.stats { display: flex; overflow-x: auto; border-block: 1px solid var(--rule); padding: 12px 0; scrollbar-width: none; }
.stats div { flex: 1 0 auto; min-width: 100px; padding: 0 14px; text-align: center; border-left: 1px solid var(--rule); }
.stats div:first-child { border-left: 0; }
.stats small { display: block; font-size: 11.5px; color: var(--muted); }
.stats b { display: grid; place-items: center; height: 30px; font-family: var(--mono); font-size: 17px; font-weight: 600; white-space: nowrap; }
.stats span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.stats .laurel svg { width: 26px; height: 26px; color: var(--ink); }
.stats .cat-ico { width: 24px; height: 24px; }
.tip-host { cursor: help; }
.note { margin: 26px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--ink); max-width: 760px; }
.note b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.note b .spark { width: 11px; height: 11px; }
.note p { margin: 0; font-size: 17px; line-height: 1.6; letter-spacing: -.01em; }
.award-block { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--rule); }
.award-block svg { width: 30px; height: 30px; flex: none; }
.award-block b { display: block; }
.award-block p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.shots { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scroll-snap-type: x mandatory; }
.shots img { height: 440px; width: auto; border-radius: 12px; border: 1px solid var(--rule); scroll-snap-align: start; flex: none; }
.shots.wide img { height: 300px; border-radius: 8px; }
.shot-tabs { margin: 18px 0 10px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.desc { white-space: pre-line; color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { border: 0; background: none; color: var(--ink); font-weight: 600; cursor: pointer; padding: 4px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.info { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); font-size: 14px; }
.info dt, .info dd { padding: 9px 0; border-bottom: 1px solid var(--rule-2); margin: 0; }
.info dt { color: var(--muted); padding-right: 14px; }
.info dd { text-align: right; overflow-wrap: anywhere; }
.info a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.h3 { font-size: 17px; letter-spacing: -.02em; margin: 28px 0 8px; }
.whatsnew small { color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* ---------- forms, plans ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 18px 0 30px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 10px; border-top: 1px solid var(--ink); font-size: 13.5px; color: var(--ink-2); }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.steps b { display: block; color: var(--ink); margin-bottom: 2px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 650; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); padding: 9px 11px; font-size: 14.5px; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 4px 0 16px; }
.check input { margin-top: 3px; accent-color: var(--ink); }
.preview { position: sticky; top: 120px; border-top: 2px solid var(--ink); padding-top: 10px; }
.preview h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.preview .hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { font-size: 13px; color: var(--ink); margin-top: 8px; min-height: 1.4em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 8px; }
.plan { padding-top: 12px; border-top: 1px solid var(--rule); }
.plan.featured { border-top: 2px solid var(--ink); }
.plan h3 { margin: 0 0 6px; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.plan .price { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.plan .price small { font-family: inherit; font-size: 13px; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 16px; margin: 10px 0 0; color: var(--ink-2); font-size: 13.5px; }
.plan li { margin: 4px 0; }

.empty { padding: 32px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); border-radius: var(--r); margin: 12px 0; }
.empty .btn { margin-top: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; color: var(--muted); font-size: 13.5px; gap: 12px; }
.toolbar select { padding: 6px 10px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--card); font-size: 13.5px; }

/* tooltip for award, pick and the maker's words */
.tooltip { position: fixed; z-index: 50; max-width: 320px; padding: 10px 12px; border-radius: var(--r); background: #111214; color: #f4f2ee; font-size: 13.5px; line-height: 1.55; opacity: 0; pointer-events: none; transition: opacity .12s; left: -999px; top: -999px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.tooltip.on { opacity: 1; }
.tooltip b { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #a8a59e; font-weight: 600; margin-bottom: 3px; }
.tooltip strong { display: block; font-size: 14.5px; font-weight: 650; color: #fff; }
.tooltip .tt-line { display: block; color: #cfcbc3; }
.tooltip .tt-line + b, .tooltip strong + b { margin-top: 8px; padding-top: 8px; border-top: 1px solid #2c2d31; }
.tooltip b .spark { width: 10px; height: 10px; }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--ink); margin-top: 72px; padding: 22px 0 40px; font-size: 13.5px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand img { border-radius: 5px; }
.foot p { margin: 4px 0 0; max-width: 560px; }
.foot-links { display: flex; gap: 18px; color: var(--ink-2); flex-wrap: wrap; }
.foot-links a { cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .shelf { grid-auto-columns: calc((100% - 32px) / 2); }
  .two, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { gap: 8px; height: 52px; }
  .nav { position: fixed; inset: auto 0 0 0; z-index: 30; justify-content: space-around; background: var(--paper); border-top: 1px solid var(--rule); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
  .nav a { font-size: 12.5px; flex: 1; text-align: center; border-bottom: 0; border-top: 2px solid transparent; padding: 8px 4px; }
  .nav a[aria-current] { border-top-color: var(--ink); }
  body { padding-bottom: 60px; }
  .find { max-width: none; }
  .brand span { display: none; }
  .submit-btn span { display: none; }
  .submit-btn { width: 36px; padding: 0; }
  .saved-link { padding: 0 6px; }
  .lang { padding: 0 4px; }
  .submit-btn .spark { width: 14px; height: 14px; }
  .bar { height: 44px; gap: 12px; }
  .seg button { padding: 0 9px; }
  .seg button .lbl { display: none; }
  .feature { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .feature-shots { display: none; }
  .feature h2 { font-size: 26px; }
  .feature-text { padding: 20px 20px 54px; }
  .side-stack { grid-template-columns: minmax(0, 1fr); }
  .rank-cols, .rows { grid-template-columns: minmax(0, 1fr); }
  .shelf { grid-auto-columns: 86%; column-gap: 20px; }
  .detail-top { gap: 16px; }
  .detail-top .icon.lg { width: 88px; height: 88px; }
  .detail-top h1 { font-size: 23px; }
  .shots img { height: 360px; }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-head h1 { font-size: 24px; }
  .note p { font-size: 16px; }
}

/* events, price buckets, facts */
.pill.ev { border-color: var(--ink); color: var(--ink); font-weight: 650; }
.pill.rank { font-family: var(--mono); font-weight: 500; }
.price-chips { height: auto; padding: 6px 0; mask-image: none; gap: 16px; }
.event-box { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--card); max-width: 760px; }
.event-box .pill { height: 22px; font-size: 12px; padding: 0 8px; margin-top: 1px; }
.event-box div { flex: 1; min-width: 0; }
.event-box b { display: block; font-size: 15px; }
.event-box p { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); }
.event-box small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.col .limited { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.col h3 .pill { vertical-align: 2px; }

/* detail: store badges, save and share, notes */
.badge-link { display: inline-flex; align-items: center; height: 40px; }
.badge-link img { height: 40px; width: auto; display: block; }
.badge-link.play img { height: 58px; margin: 0 -7px; } /* Google's badge image carries its own clear space */
.act { display: inline-flex; gap: 6px; margin-left: auto; }
.act .btn, .saved-link { gap: 5px; }
.act svg, .saved-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.act .btn[aria-pressed="true"] { border-color: var(--ink); }
.act .btn[aria-pressed="true"] svg { fill: currentColor; }
.saved-link { padding: 0 8px; gap: 4px; }
.saved-link small { font-family: var(--mono); font-size: 11.5px; min-width: 1.4ch; text-align: left; }
.saved-link.has { color: var(--ink); }
.saved-link.has svg path { fill: currentColor; }
.pay-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 5px; vertical-align: -3px; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: help; }
.verified svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 4px 0 26px; max-width: 900px; }
.guide ul, .guide ol { margin: 0; padding: 0; list-style: none; }
.guide li { padding: 9px 0; border-bottom: 1px solid var(--rule-2); font-size: 15px; line-height: 1.5; }
.guide ul li { position: relative; padding-left: 16px; }
.guide ul li::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 1.5px; background: var(--ink); }
.guide ol { counter-reset: step; }
.guide ol li { counter-increment: step; display: flex; gap: 12px; }
.guide ol li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.note.editor { border-left-color: var(--muted); }
.fix-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 12.5px; }
.fix-links a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.prose { max-width: 720px; }
.prose p { margin: 0 0 18px; line-height: 1.7; color: var(--ink-2); }
.foot .foot-data { font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .act { margin-left: 0; }
  .event-box { flex-direction: column; gap: 8px; }
}

/* platforms */
.plat-ico svg { width: 20px; height: 20px; }
.stats .plat-ico { width: 24px; height: 24px; }
.shot-tabs .plat-ico { width: 16px; height: 16px; }
.shot-tabs .plat-ico svg { width: 15px; height: 15px; }
.shot-tabs button[aria-pressed="true"] .plat-ico { color: var(--paper); }
.info dd.links a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.feature-shots.wide img { height: 250px; border-radius: 8px; }
.feature-shots.wide img:nth-child(2) { margin-top: 24px; }
.more-btn-list { display: flex; margin: 16px auto 0; }

/* app icon hover: screenshot preview */
.tooltip.peek { max-width: min(640px, calc(100vw - 16px)); padding: 10px 10px 9px; }
.peek-shots { display: flex; gap: 6px; margin-bottom: 8px; }
.peek-shots img { height: 230px; width: auto; border-radius: 8px; border: 1px solid #2c2d31; background: #1c1d21; }
.peek-shots.wide img { height: 180px; }

/* detail: tried-it picks and a note to the maker (voice.js). Hidden until the server answers. */
.voice { margin: 26px 0; max-width: 760px; padding-top: 4px; border-top: 1px solid var(--rule); }
.voice[hidden] { display: none; }
.voice .h3 { margin-top: 18px; }
.voice .hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.voice-ask { margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid var(--ink); background: var(--tint); font-size: 14px; font-weight: 600; }
.voice-ask[hidden] { display: none; }
.voice-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-opts button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; }
.voice-opts button:hover { border-color: var(--ink); }
.voice-opts button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.voice-opts small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.voice-opts small:empty { display: none; }
.voice-opts button[aria-pressed="true"] small { color: var(--paper); opacity: .75; }
.voice-note { margin-top: 18px; }
.voice-note summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); width: max-content; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.voice-note form { margin-top: 10px; display: grid; gap: 8px; justify-items: start; }
.voice-note textarea { width: 100%; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); padding: 9px 11px; font-size: 14.5px; outline: 0; resize: vertical; min-height: 76px; }
.voice-note textarea:focus { border-color: var(--ink); }
.voice-note .hint { margin: 0; }
.voice-note .status { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- hover and press: anything you can click says so ----------
   Mouse only (hover: hover). Touch gets the pressed state. The lit icon comes from fx.js. */
.row, .maker, .cat { position: relative; isolation: isolate; }
.row::before, .maker::before, .cat::before {
  content: ""; position: absolute; inset: 3px -8px; z-index: -1; border-radius: 10px;
  background: var(--tint); opacity: 0; transition: opacity .18s ease;
}
.shelf { padding-inline: 8px; margin-inline: -8px; scroll-padding-inline: 8px; }
.get span { transition: background-color .18s, color .18s, border-color .18s; }
.cat .cat-ico, .col-icons em { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.badge-link { transition: transform .2s cubic-bezier(.2, .8, .2, 1), filter .2s; }
.seg button { transition: background-color .15s, color .15s; }
.chip, .nav a { transition: color .15s, border-color .15s; }

@media (hover: hover) {
  .row:hover::before, .maker:hover::before, .cat:hover::before { opacity: 1; }
  .row:hover .get span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .cat:hover .cat-ico { transform: translateX(2px); }
  .col:hover .col-icons .icon { margin-right: 2px; }
  .col:hover .col-icons em { transform: translateX(6px); }
  .badge-link:hover { transform: translateY(-1px); filter: drop-shadow(0 6px 8px rgb(17 18 20 / .18)); }
  .seg button:not([aria-pressed="true"]):hover { background: var(--tint); color: var(--ink); }
  .chip:not([aria-current]):hover, .nav a:not([aria-current]):hover { border-bottom-color: var(--rule); }
  .btn:not(.btn-ghost):not(.btn-ink):hover { box-shadow: 0 2px 6px -3px rgb(17 18 20 / .25); }
  .voice-opts button:not([aria-pressed="true"]):hover { background: var(--tint); }
}
.row:focus-visible::before, .maker:focus-visible::before, .cat:focus-visible::before { opacity: 1; }
.row:active::before, .maker:active::before, .cat:active::before { opacity: 1; background: var(--rule-2); }
.btn:active, .voice-opts button:active, .seg button:active { transform: translateY(1px) scale(.98); }
.row:active .icon, .col:active .icon, .maker:active .icon { transform: scale(.96); transition-duration: .12s; }
.badge-link:active { transform: translateY(0) scale(.98); }

/* saved: the button and the header count pop once when it changes (chrome.js pop) */
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 70% { transform: scale(.97); } 100% { transform: scale(1); } }
.pop svg, .saved-link.pop small { animation: pop .42s cubic-bezier(.3, 1.4, .5, 1); }

@media (max-width: 760px) {
  .nav { background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7); }
}
@media (prefers-reduced-motion: reduce) {
  .icon, .icon::before, .row::before, .maker::before, .cat::before, .btn, .badge-link, .col-icons .icon, .col-icons em, .cat .cat-ico { transition: none; }
  .icon { transform: none; }
  .pop svg, .saved-link.pop small { animation: none; }
}
