/* SLOT 遊戲庫（ezslotgames）。2026-11-05 自新聞站 ezslotnews 的 screen.css 複製（新聞站又沿用主站 ezslotdesign-knowledge），之後在這裡維護。 */

/* ===== Shared chrome and homepage ===== */
:root {
  --bg: #f1f2ed;
  --surface: #e7eae3;
  --surface-2: #dce1d9;
  --ink: #131d19;
  --ink-2: #35423c;
  --ink-3: #4f5c56;
  --line: #d2d8cf;
  --line-2: #aeb9b0;
  --green: #265b49;
  --green-hover: #1c4a3b;
  --green-tint: #d9e5dd;
  --on-green: #f7f8f4;
  --select: #c4d9cd;
  --img-veil: none;
  /* 四個小分類（Alex 2026-11-05）：slot＝赭、table＝藍、真人視訊＝紫，沿用新聞站三色；casual＝磚紅（新增）。線上／實體不分色。 */
  --c-slot: #74521a;
  --c-table: #465e8e;
  --c-live: #7a4666;
  --c-casual: #8c3b2a;
  --serif: var(--gh-font-heading, "Noto Serif TC", "Songti TC", serif);
  --sans: var(--gh-font-body, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif);
  --wrap: 1320px;
  --gutter: clamp(16px, 3.4vw, 40px);
  color-scheme: light;
}
:root:not([data-theme="light"]) {
  --bg: #0d1311;
  --surface: #141c19;
  --surface-2: #1c2622;
  --ink: #e7ece9;
  --ink-2: #b4c0bb;
  --ink-3: #8f9d97;
  --line: #232e2a;
  --line-2: #33413b;
  --green: #7cc4a6;
  --green-hover: #9ad3bb;
  --green-tint: #173029;
  --on-green: #0d1311;
  --select: #28493d;
  --img-veil: brightness(.9);
  --c-slot: #d2a55a;
  --c-table: #93abdd;
  --c-live: #cc93b4;
  --c-casual: #e39a82;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--bg); scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.75 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--green);
  overflow-x: clip;
}
::selection { background: var(--select); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.num, time { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.i-arrow { flex: none; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  font-size: 14px;
}
.skip:focus { top: 12px; }
/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding-block: 8px;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-tag {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .06em;
  white-space: nowrap;
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
  line-height: 1;
}
.brand .brand-tag { padding-left: 0; border-left: 0; line-height: 1.2; }
/* Sister sites sit beside the brand (Alex 2026-11-05); the hairline separates them from this site's name. */
.site-family {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: -12px;
  margin-right: auto;
  padding-left: 8px;
  border-left: 1px solid var(--line-2);
}
.site-family .nav-sister {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.site-family .nav-sister:hover { color: var(--green-hover); background: var(--surface); }
.site-family .nav-sister:hover .i-arrow { transform: translate(2px, -2px); }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a, .nav-menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.site-nav a:hover, .nav-menu summary:hover, .nav-menu[open] summary { color: var(--ink); background: var(--surface); }
/* Six categories fold into one native <details> menu, so it still opens without JS; main.js closes it on outside click / Escape. */
.nav-menu { position: relative; }
.nav-menu summary { gap: 6px; cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu .i-chevron { transition: transform .15s ease; }
.nav-menu[open] .i-chevron { transform: rotate(180deg); }
.site-nav .nav-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 176px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 26, 23, .12), 0 4px 12px -6px rgba(15, 26, 23, .3);
}
.nav-menu-list a { padding: 0 12px; }
.header-tools { display: flex; gap: 4px; }
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
/* Shared: category labels */
.cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cc, var(--ink-2));
  white-space: nowrap;
}
.cat::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: currentColor;
}
/* 分類色依小分類（slug 結尾）決定，線上與實體同色 */
[data-cat$="-slot"] { --cc: var(--c-slot); }
[data-cat$="-table"] { --cc: var(--c-table); }
[data-cat$="-live"] { --cc: var(--c-live); }
[data-cat$="-casual"] { --cc: var(--c-casual); }
/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-block: 28px;
}
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-brand .brand-tag { padding-left: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.copyright { font-size: 13px; color: var(--ink-3); }

/* ===== Lists: category page ===== */
.site-nav > ul > li > a[aria-current="page"], .nav-menu:has([aria-current="page"]) summary { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); border-radius: 6px 6px 0 0; }
.nav-menu-list a[aria-current="page"] { background: var(--surface); box-shadow: inset 2px 0 0 var(--green); border-radius: 0 6px 6px 0; }
/* Category page */
.tag-head { padding-top: clamp(32px, 4.5vw, 56px); }
.tag-head-inner { padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.tag-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.tag-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.3;
  letter-spacing: .01em;
}
.tag-count { font-size: 15px; color: var(--ink-3); white-space: nowrap; }
.tag-desc {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 38em;
}
.tag-list { padding-bottom: clamp(64px, 8vw, 112px); }
.pagination {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
a.page-btn:hover { background: var(--ink); color: var(--bg); }
a.page-btn.next:hover .i-arrow { transform: translateX(3px); }
a.page-btn.prev:hover .i-arrow { transform: translateX(-3px); }
.page-btn.prev { justify-self: start; }
.page-btn.next { justify-self: end; }
.page-btn[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--ink-3);
  font-weight: 500;
  cursor: default;
}
.page-status {
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  white-space: nowrap;
}
.page-status .num { color: var(--ink); font-weight: 700; }
.tag-count .num { font-weight: 700; font-size: 17px; color: var(--cc, var(--ink)); }

/* ===== Article ===== */
/* Article */
.col { width: min(720px, 100% - var(--gutter) * 2); margin-inline: auto; }
.col-wide { width: min(1040px, 100% - var(--gutter) * 2); margin-inline: auto; }
.article { padding-bottom: clamp(64px, 8vw, 112px); }
.reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: clamp(12px, 2vw, 24px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.back-link:hover .i-arrow { transform: translateX(-3px); }
.font-glyph { font-weight: 600; line-height: 1; font-size: 17px; }
:root[data-fontsize="s"] .font-glyph { font-size: 14px; }
:root[data-fontsize="l"] .font-glyph { font-size: 21px; }
.reader-head { padding-top: clamp(28px, 4.5vw, 56px); }
.reader-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.42;
  letter-spacing: .01em;
}
.lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-2);
}
.byline {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  font-size: 14px;
  color: var(--ink-3);
}
.byline a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.byline .by-author { color: var(--ink-2); font-weight: 500; }
.byline a:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.byline .cat { font-size: 14px; }
.byline .sep { color: var(--line-2); }
.by-meta {
  display: inline-flex;
  align-items: center;
  gap: 0 10px;
  white-space: nowrap;
}
.reader-figure { margin: clamp(20px, 3vw, 32px) auto 0; }
.reader-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: var(--img-veil);
  background: var(--surface-2);
}
.reader-figure figcaption, .gh-content figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
  text-align: center;
  text-wrap: pretty;
}
.reader-figure figcaption { width: min(720px, 100%); margin-inline: auto; }
/* Ghost content: one 720px measure (~40 字 at 18px), wide/full cards break out on the same grid. */
.gh-content {
  --main: min(720px, 100% - var(--gutter) * 2);
  display: grid;
  grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [wide-start] minmax(0, 160px) [main-start] var(--main) [main-end] minmax(0, 160px) [wide-end] minmax(var(--gutter), 1fr) [full-end];
  margin-top: clamp(32px, 4.5vw, 52px);
  font-size: 18px;
  line-height: 1.95;
  letter-spacing: .01em;
  color: var(--ink);
  overflow-wrap: break-word;
  line-break: strict;
}
:root[data-fontsize="s"] .gh-content { font-size: 16px; }
:root[data-fontsize="l"] .gh-content { font-size: 21px; }
.gh-content > * { grid-column: main-start / main-end; min-width: 0; margin: 0; }
.gh-content > * + * { margin-top: 1.2em; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content p:empty { display: none; }
.gh-content h2, .gh-content h3, .gh-content h4 { scroll-margin-top: 24px; text-wrap: balance; }
.gh-content > h2 {
  margin-top: 2.3em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.44em;
  line-height: 1.45;
  letter-spacing: .01em;
}
.gh-content > h3 {
  margin-top: 1.9em;
  font-weight: 700;
  font-size: 1.17em;
  line-height: 1.55;
}
.gh-content > h4 {
  margin-top: 1.7em;
  font-weight: 700;
  font-size: 1em;
  line-height: 1.6;
}
.gh-content > :is(h2, h3, h4) + * { margin-top: .65em; }
.gh-content > :is(h2, h3, h4):first-child { margin-top: 0; }
.gh-content :is(h2, h3, h4) > br:first-child { display: none; }
.gh-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}
.gh-content a:hover { color: var(--green-hover); text-decoration-thickness: 2px; }
.gh-content strong, .gh-content b { font-weight: 700; }
.gh-content :is(ul, ol) { padding-left: 1.5em; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: .45em; }
.gh-content li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.gh-content :is(ul, ol) :is(ul, ol) { margin-top: .45em; }
.gh-content hr {
  height: 1px;
  border: 0;
  background: var(--line-2);
  margin-block: 2.6em;
}
.gh-content > hr + * { margin-top: 0; }
.gh-content blockquote:not([class]) { padding-left: 1.25em; border-left: 1px solid var(--ink); color: var(--ink-2); }
.gh-content .kg-blockquote-alt {
  padding-inline: 1em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22em;
  line-height: 1.7;
  text-align: center;
  color: var(--ink);
}
.gh-content blockquote p + p { margin-top: .8em; }
.gh-content code, .gh-content kbd, .gh-content pre { font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Noto Sans TC", monospace; }
.gh-content :not(pre) > code {
  padding: .1em .38em;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .86em;
  overflow-wrap: anywhere;
}
.gh-content pre {
  overflow-x: auto;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
  tab-size: 2;
  scrollbar-width: thin;
}
.gh-content pre code { font-size: inherit; background: none; padding: 0; }
/* Tables scroll inside their own box; the page never scrolls sideways. */
.gh-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .86em;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  scrollbar-width: thin;
  background: linear-gradient(to right, var(--bg) 30%, transparent) left / 32px 100% no-repeat local, linear-gradient(to left, var(--bg) 30%, transparent) right / 32px 100% no-repeat local, linear-gradient(to right, rgba(15, 26, 23, .12), transparent) left / 10px 100% no-repeat scroll, linear-gradient(to left, rgba(15, 26, 23, .12), transparent) right / 10px 100% no-repeat scroll;
}
.gh-content th, .gh-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.gh-content thead th, .gh-content tr:first-child th { border-bottom-color: var(--ink); font-weight: 700; white-space: nowrap; }
.gh-content th { color: var(--ink); }
.gh-content td { color: var(--ink-2); }
.gh-content img, .gh-content video { max-width: 100%; height: auto; }
.gh-content > figure img, .gh-content .kg-image-card img { margin-inline: auto; border-radius: 4px; filter: var(--img-veil); }
.gh-content .kg-width-full img { width: 100%; border-radius: 0; }
.gh-content .kg-width-wide img { width: 100%; }
.gh-content .kg-width-full figcaption { padding-inline: var(--gutter); }
.gh-content > figure, .gh-content > .kg-card { margin-top: 1.9em; }
.gh-content > figure + *, .gh-content > .kg-card + * { margin-top: 1.9em; }
.gh-content > .kg-card + p, .gh-content > figure + p { margin-top: 1.6em; }
.gh-content > :is(figure, .kg-card):first-child { margin-top: 0; }
/* Gallery */
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1 1 0; min-width: 0; }
.kg-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 3px;
  filter: var(--img-veil);
}
/* Bookmark */
.gh-content .kg-bookmark-container {
  display: flex;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.gh-content .kg-bookmark-container:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.kg-bookmark-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  line-height: 1.6;
  letter-spacing: 0;
}
.kg-bookmark-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.kg-bookmark-container:hover .kg-bookmark-title { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .28em; }
.kg-bookmark-description {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  min-width: 0;
  white-space: nowrap;
}
.gh-content .kg-bookmark-icon {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 3px;
  margin: 0;
  filter: none;
}
.kg-bookmark-author, .kg-bookmark-publisher { overflow: hidden; text-overflow: ellipsis; }
.kg-bookmark-publisher { flex: 0 1 auto; min-width: 0; }
.kg-bookmark-author + .kg-bookmark-publisher::before { content: "·"; margin-right: 8px; color: var(--line-2); }
.kg-bookmark-thumbnail {
  position: relative;
  flex: 0 0 30%;
  max-width: 220px;
  background: var(--surface-2);
}
.gh-content .kg-bookmark-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}
/* Callout */
.kg-callout-card {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  line-height: 1.85;
}
.kg-callout-card-white { background: var(--bg); }
.kg-callout-card-grey { background: var(--surface-2); border-color: transparent; }
.kg-callout-card-accent, .kg-callout-card-green { background: var(--green-tint); border-color: transparent; }
.kg-callout-card-blue { background: color-mix(in srgb, var(--c-table) 12%, var(--bg)); border-color: transparent; }
.kg-callout-card-yellow { background: color-mix(in srgb, var(--c-slot) 12%, var(--bg)); border-color: transparent; }
.kg-callout-card-red { background: color-mix(in srgb, var(--c-slot) 8%, var(--bg)); border-color: transparent; }
.kg-callout-card-pink, .kg-callout-card-purple { background: color-mix(in srgb, var(--c-live) 11%, var(--bg)); border-color: transparent; }
.kg-callout-emoji { flex: none; font-size: 1.1em; line-height: 1.7; }
.kg-callout-text { flex: 1 1 auto; min-width: 0; }
/* Toggle */
.kg-toggle-card { border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px 4px 20px; }
.kg-toggle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  min-height: 52px;
}
.gh-content .kg-toggle-heading-text {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.55;
}
.kg-toggle-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.kg-toggle-card-icon:hover { background: var(--surface); color: var(--ink); }
.kg-toggle-card-icon svg { width: 14px; height: 14px; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon svg { transform: rotate(180deg); }
.kg-toggle-content { padding: 0 12px 16px 0; }
/* 開合要靠 main.js：沒有 JS 時內容一律展開、隱藏開合按鈕（appearance.js 會在 <html> 加上 .js）。 */
html.js .kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }
html:not(.js) .kg-toggle-card-icon { display: none; }
/* Bookmark card shell (Ghost's bookmark assets are excluded; the container rules above do the styling). */
.kg-bookmark-card { width: 100%; }
/* Button */
.kg-button-card { display: flex; justify-content: flex-start; }
.kg-button-card.kg-align-left { justify-content: flex-start; }
.kg-button-card.kg-align-center { justify-content: center; }
.gh-content .kg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--green);
  color: var(--on-green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 26, 23, .12), 0 4px 12px -6px rgba(15, 26, 23, .3);
}
.gh-content .kg-btn-accent { background: var(--green); color: var(--on-green); }
.gh-content .kg-btn:hover { background: var(--green-hover); color: var(--on-green); }
/* Embeds */
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; border: 0; }
.kg-embed-card iframe[src*="youtube"], .kg-embed-card iframe[src*="youtu.be"], .kg-embed-card iframe[src*="vimeo"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: var(--surface-2);
}
.kg-video-card video { width: 100%; border-radius: 4px; }
.kg-header-card {
  box-sizing: border-box;
  padding: 40px 24px;
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
}
/* Prev / next */
.post-nav {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--ink);
}
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0 4px;
  text-decoration: none;
  min-height: 44px;
}
.post-nav .next { text-align: right; align-items: flex-end; grid-column: 2; }
.post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.post-nav-title { font-size: 17px; font-weight: 700; line-height: 1.55; }
.post-nav a:hover .main { text-decoration: underline; text-decoration-color: var(--line-2); }
.post-nav .prev:hover .i-arrow { transform: translateX(-3px); }
.post-nav .next:hover .i-arrow { transform: translateX(3px); }

/* ===== Pages: generic page ===== */
.page-body .gh-content { margin-top: clamp(28px, 3.5vw, 40px); }
/* Generic pages: the content column is the page column. */
.page-body .gh-content { --main: 100%; grid-template-columns: [full-start] 0 [wide-start] 0 [main-start] var(--main) [main-end] 0 [wide-end] 0 [full-end]; }

/* ===== Error page ===== */
/* Error */
.err { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 128px); }
.err h1 {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.35;
  letter-spacing: .01em;
}
.err-lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
}
.err-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.err-topics { margin-top: clamp(48px, 6vw, 72px); }
.err-topics h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.err-topics ul { display: grid; grid-template-columns: 1fr; }
.err-topics li { border-bottom: 1px solid var(--line); }
.err-topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  text-decoration: none;
}
.err-topics .cat { font-size: 16px; }
.err-topics .cat::before { width: 8px; height: 8px; }
.err-count { font-size: 14px; color: var(--ink-3); }
.err-count .num { color: var(--ink); font-weight: 700; }
.err-topics a:hover .cat { text-decoration: underline; text-underline-offset: .28em; }


/* Sponsored label and topic stay on one line in the byline, also when the byline stacks on phones. */
.by-tags { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
/* Without JavaScript Ghost search cannot open, so its buttons are hidden. */
html:not(.js) [data-site-search] { display: none; }
.page-figure { margin: clamp(20px, 3vw, 32px) 0 0; }
.page-figure img { width: 100%; height: auto; border-radius: 6px; }

/* ===== Shared: buttons, page head, screen-reader text（沿用主站） ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.page-head { padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.35;
  letter-spacing: .01em;
}
.page-lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
}
.page-body { padding-bottom: clamp(64px, 8vw, 112px); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--on-green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 26, 23, .12), 0 4px 12px -6px rgba(15, 26, 23, .3);
  transition: background-color .15s ease;
}
.btn-primary:hover { background: var(--green-hover); }
.btn-primary:hover .i-arrow { transform: translate(2px, -2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ===== 遊戲庫專屬 ===== */
/* 站內搜尋對話框（Alex 2026-11-05，照抄主站）。結果的分類標籤沿用 .cat[data-cat] */
.search {
  width: min(640px, calc(100% - 32px));
  max-height: min(680px, calc(100dvh - 96px));
  margin: max(48px, 10vh) auto auto;
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 26, 23, .12), 0 4px 12px -6px rgba(15, 26, 23, .3);
  overflow: hidden;
}
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: rgba(5, 9, 8, .6); }
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 16px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.search-bar:focus-within { box-shadow: inset 0 -2px 0 var(--green); }
.search-bar input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0;
  font: 500 17px/1.4 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}
.search-bar input::placeholder { color: var(--ink-3); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  font: 500 14px var(--sans);
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.search-close:hover { color: var(--ink); background: var(--surface); }
.search-status { margin: 0; padding: 12px 16px 6px; font-size: 13px; color: var(--ink-3); }
.search-retry { margin-left: 4px; padding: 0; font: inherit; font-weight: 500; color: var(--green); background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.search-results { margin: 0; padding: 0 8px 8px; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.search-hit {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}
.search-hit:hover, .search-hit:focus-visible { background: var(--surface); }
.search-hit:focus-visible { outline-offset: -2px; }
.search-title { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.search-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.search-excerpt { font-size: 14px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search mark { color: var(--ink); background: var(--green-tint); border-radius: 2px; }
@media (max-width: 639px) {
  .search { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
}

/* 開發商選單：家數多，排成多欄並可捲動；靠右對齊，避免超出畫面右緣 */
.site-nav .nav-menu-wide .nav-menu-list { left: auto; right: 0; grid-template-columns: repeat(3, minmax(150px, 1fr)); width: max-content; max-width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 1000px) {
  .site-nav .nav-menu-wide .nav-menu-list { left: 0; right: auto; }
}
@media (max-width: 639px) {
  /* 手機：選單改以整條導覽列定位，左右貼齊導覽列，不超出畫面 */
  .site-nav { position: relative; }
  .site-nav .nav-menu-wide { position: static; }
  .site-nav .nav-menu-wide .nav-menu-list { left: var(--gutter); right: 0; width: auto; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 分類選單裡用分類標籤（方塊＋分類色），和首頁入口一致 */
.nav-menu-list .cat { font-size: 15px; }
.nav-menu-list a[aria-current="page"] .cat { text-decoration: underline; text-underline-offset: .28em; }

/* 首頁標頭 */
.today {
  display: flex;
  align-items: baseline;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: clamp(32px, 4.5vw, 56px);
  padding-bottom: clamp(20px, 2.5vw, 32px);
}
.today h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.38;
  letter-spacing: .01em;
}
.today p { font-size: 15px; color: var(--ink-3); }

/* 頁尾：網站說明＋三站 */
.footer-inner { align-items: flex-start; gap: 24px 48px; padding-block: 36px; }
.footer-about { max-width: 26em; }
.footer-about .brand-name { font-size: 18px; }
.footer-about p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.family {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  flex: 1 1 520px;
  border-top: 1px solid var(--ink);
}
.family > * {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 44px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
}
.family strong { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); }
.family a:hover strong { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .28em; }
.copyright { flex-basis: 100%; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  /* 品牌、兩個姊妹站、分類選單、篩選與工具列單列約需 900px（主站單一姊妹站是 859px 斷點，多一個連結約 +130px）；以下分類導覽換到第二列。 */
  .header-inner { flex-wrap: wrap; gap: 0 16px; }
  .site-family { margin-left: 0; }
  .site-nav {
    order: 3;
    border-top: 1px solid var(--line);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    width: calc(100% + var(--gutter) * 2);
  }
}
@media (max-width: 639px) {
  .header-inner { min-height: 0; padding-top: 10px; }
  /* 手機：第一列品牌與工具；分類選單、篩選與兩個姊妹站排第二列，放不下時姊妹站換到第三列。 */
  .brand { margin-right: auto; }
  .header-inner::after { content: ""; order: 3; flex-basis: 100%; }
  .site-nav { order: 4; flex: 1; width: auto; margin-right: 0; border-top: 1px solid var(--line); }
  .site-family { order: 5; margin: 0 calc(var(--gutter) * -1) 0 -16px; padding: 0 var(--gutter) 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .site-nav a, .nav-menu summary, .site-family .nav-sister { padding: 0 8px; }
  .today h1 { font-size: 28px; }
  .family { grid-template-columns: 1fr; flex: none; width: 100%; }
  .footer-inner { flex-direction: column; }
  .tag-desc { font-size: 16px; }
  .page-btn { padding: 0 14px; }
  .pagination { gap: 8px; }
  .reader-top { padding-top: 8px; }
  .byline { flex-direction: column; align-items: flex-start; margin-top: 10px; }
  .lead { font-size: 17px; }
  .gh-content > * + * { margin-top: 1.1em; }
  .gh-content th, .gh-content td { padding: 8px 12px; }
  .gh-content pre { padding: 14px 16px; margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; }
  .kg-bookmark-container { min-height: 0; }
  .kg-bookmark-content { padding: 14px 16px; }
  .kg-bookmark-thumbnail { flex-basis: 28%; }
  .kg-toggle-card { padding-left: 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: 1; text-align: left; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 16px; }
  .page-lead { font-size: 16px; }
  .err-actions > * { flex: 1 1 100%; }
  .err-lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ===== 遊戲庫：分類入口、遊戲清單（Alex 2026-11-05）===== */
.post-nav-title { font-size: 17px; font-weight: 700; line-height: 1.5; }
.tag-head-inner { max-width: 1040px; }

/* 首頁分類入口：線上四格、實體兩格，每組從一條 ink 線開始；格與格用 1px line 分隔，不做卡片。 */
.shelves {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0 clamp(24px, 3vw, 48px);
}
.shelf-group { border-top: 1px solid var(--ink); }
.shelf-group h2 { font-size: 15px; font-weight: 700; line-height: 1.5; }
.shelf-group h2 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.shelf-group h2 a:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .28em; }
.shelf-group ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.shelf-group li + li { border-left: 1px solid var(--line); }
.shelf-link {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 14px 16px 16px;
  text-decoration: none;
  transition: background-color .15s ease-out;
}
.shelf-group li:first-child .shelf-link { padding-left: 0; }
.shelf-link:is(a):hover { background: var(--surface); }
.shelf-group li:first-child .shelf-link:hover { background: none; }
.shelf-link .cat { font-size: 16px; font-weight: 700; }
.shelf-link .cat::before { width: 8px; height: 8px; }
.shelf-link:is(a):hover .cat { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .28em; }
.shelf-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.shelf-count .num { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--cc, var(--ink)); margin-right: 3px; }
.shelf-link.is-empty .cat { color: var(--ink-3); }
.shelf-link.is-empty .shelf-count { align-self: end; }

/* 遊戲清單：左側 16:9 官方主視覺，右側分類與日期、遊戲名、供應商、Volatility 與機制。列與列之間 1px line。 */
.shelves { padding-top: clamp(24px, 3vw, 40px); }
/* 首頁清單的小標，和分類入口的組名同一級（Alex 2026-11-05：拿掉標題列） */
.game-shelf .shelf-title { border-top: 1px solid var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; padding: 10px 0; }
.game-shelf .game:first-child { border-top: 1px solid var(--line); }
.game-shelf { padding-top: clamp(28px, 3.5vw, 44px); padding-bottom: clamp(64px, 8vw, 112px); }
.game-list { margin: 0; padding: 0; list-style: none; max-width: 1040px; }
.game { border-top: 1px solid var(--line); }
.game:last-child { border-bottom: 1px solid var(--line); }
.game-link {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
  padding: 18px 0;
  text-decoration: none;
}
.game-thumb { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.game-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-veil); }
.game-text { display: grid; gap: 4px; min-width: 0; }
.game-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.game-title { font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.game-link:hover .game-title { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .28em; }
.game-provider { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.game-facts { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 14px; color: var(--ink-3); }
.game-facts:empty, .game-provider:empty { display: none; }
.fact + .fact::before { content: "·"; margin: 0 8px; color: var(--line-2); }
.fact-vol { color: var(--ink-2); }
/* 首頁寬螢幕兩欄，清單頁單欄 */
@media (min-width: 1081px) {
  .game-shelf .game-list { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
  .game-shelf .game:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}
/* 分類頁不重複顯示分類標籤 */
.tag-list[data-list$="-slot"] .game-meta .cat, .tag-list[data-list$="-table"] .game-meta .cat,
.tag-list[data-list$="-live"] .game-meta .cat, .tag-list[data-list$="-casual"] .game-meta .cat { display: none; }
.list-empty { padding: 18px 0; font-size: 15px; color: var(--ink-3); border-bottom: 1px solid var(--line); }

/* ===== 遊戲頁 ===== */
.byline .provider { color: var(--green); font-weight: 500; }
.byline a.provider:hover { color: var(--green-hover); }
.game-facts-head { margin-top: 2px; font-size: 14px; }
.game-facts-head .fact { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.game-facts-head a.fact:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .28em; }
.game-facts-head .fact + .fact::before { margin: 0 10px; }

/* 規格表（The Spec Sheet）：內文第一個區塊。每一列變成一格「小字欄名＋大字數值」，三欄排開，一眼比對。 */
.gh-content table.game-specs { display: block; overflow: visible; background: none; font-size: 1rem; line-height: 1.5; }
.game-specs caption { display: block; padding-bottom: 8px; text-align: left; font-size: 15px; font-weight: 700; color: var(--ink); }
.game-specs tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--ink); }
.game-specs tr { display: grid; align-content: start; gap: 2px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.gh-content .game-specs th, .gh-content .game-specs td { padding: 0; border: 0; white-space: normal; }
.gh-content .game-specs th { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.gh-content .game-specs td { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gh-content .game-specs td.is-unknown { font-size: 16px; font-weight: 500; color: var(--ink-3); }

/* 試玩 demo：先是 16:9 的封面與「開始試玩」，按下才換成供應商 iframe（main.js）。沒有 JS 時按鈕開新分頁。 */
.gh-content > .game-demo { grid-column: wide-start / wide-end; }
.game-demo-stage, .game-demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.game-demo-stage { display: grid; place-items: center; }
.game-demo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.8); }
.game-demo-start {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 6px;
  background: var(--green);
  color: var(--on-green);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 26, 23, .12), 0 4px 12px -6px rgba(15, 26, 23, .3);
  transition: background-color .15s ease-out;
}
.game-demo-start:hover { background: var(--green-hover); }
.gh-content .game-demo-start, .gh-content .game-demo-start:hover { color: var(--on-green); text-decoration: none; }
.game-demo-start svg { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.game-demo-start:hover svg { transform: scale(1.12); }
.game-demo-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.game-demo-note { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.game-demo-none { padding: 14px 0; font-size: 15px; color: var(--ink-3); border-block: 1px solid var(--line); }

/* ===== 篩選頁 ===== */
.browse { padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: clamp(64px, 8vw, 112px); }
.browse-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.3; letter-spacing: .01em; }
.browse-lede { margin-top: 12px; max-width: 40em; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.browse-group { margin-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--ink); }
.browse-group h2 { padding: 10px 0 6px; font-size: 15px; font-weight: 700; }
.browse-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.browse-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.browse-links a:hover > :first-child { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .28em; }
.browse-links .cat { font-size: 15px; font-weight: 500; }
.browse-n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .shelves { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 639px) {
  .shelf-group ul { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf-group li:nth-child(3) { border-left: 0; }
  .shelf-group li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shelf-group li:nth-child(3) .shelf-link { padding-left: 0; }
  .shelf-link { min-height: 72px; padding: 12px 12px 14px; }
  .game-link { grid-template-columns: 112px minmax(0, 1fr); gap: 0 14px; padding: 16px 0; }
  .game-title { font-size: 17px; }
  .game-facts { font-size: 13px; }
  .game-specs tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .gh-content .game-specs td { font-size: 17px; }
  .gh-content > .game-demo { grid-column: full-start / full-end; }
  .game-demo-stage, .game-demo-frame { border-radius: 0; border-inline: 0; }
  .game-demo-note { padding-inline: var(--gutter); }
}
