:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --accent: #0f6b4c;
  --accent-ink: #ffffff;
  --accent-soft: #e8f3ee;
  --danger: #8d2b2b;
  --danger-soft: #fdecec;
  --shadow: 0 1px 2px rgba(28, 36, 33, 0.05);
  --radius: 12px;
  --header: 60px;
  --font: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --ico-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.4'/%3E%3Cpath d='M7 16.5 11 12l3 3 2-2 2.5 2.5'/%3E%3C/svg%3E");
  --ico-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M7 3.5h7l4 4V20a1.5 1.5 0 0 1-1.5 1.5h-9.5A1.5 1.5 0 0 1 5.5 20V5A1.5 1.5 0 0 1 7 3.5z'/%3E%3Cpath d='M14 3.5V8h4.5'/%3E%3C/svg%3E");
  --ico-convert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h11l-2.5-2.5M17 17H6l2.5 2.5'/%3E%3Cpath d='M18 7v4M6 17v-4'/%3E%3C/svg%3E");
  --ico-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M6 6h12M6 12h12M6 18h8'/%3E%3C/svg%3E");
  --ico-dev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='m8 8-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E");
  --ico-finance: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M4 18V8M10 18V6M16 18v-5M4 18h16'/%3E%3C/svg%3E");
  --ico-math: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h4M9 5v4M15 8l4 4-4 4M6 16h5'/%3E%3C/svg%3E");
  --ico-qr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M5 5h5v5H5zM14 5h5v5h-5zM5 14h5v5H5zM14 14h2M18 18v1M14 18h5'/%3E%3C/svg%3E");
  --ico-games: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='12' r='2.2'/%3E%3Ccircle cx='16' cy='12' r='2.2'/%3E%3C/svg%3E");
  --ico-guides: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222222' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M6 5.5h9a3 3 0 0 1 3 3V19H8.5A2.5 2.5 0 0 0 6 21.5z'/%3E%3Cpath d='M6 5.5A2.5 2.5 0 0 0 8.5 8H18'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: clip;
}
img, svg, canvas, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { text-decoration: none; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--header);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  margin-right: auto;
}
.logo span { color: var(--accent); }
.nav-toggle,
.header-search {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
  cursor: pointer;
}
.nav-toggle {
  width: 40px;
  padding: 0;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle::before {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
}
.header-search svg { display: block; }
.site-nav {
  display: none;
  position: fixed;
  z-index: 19;
  left: 0;
  right: 0;
  top: var(--header);
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 12px 28px;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
}
.site-nav.is-open { display: flex; }
.site-nav a,
.nav-group__btn {
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: start;
  padding: 12px 10px;
  border-radius: 8px;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-group__btn:hover,
.nav-group.is-open > .nav-group__btn {
  background: var(--accent-soft);
}
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-group { display: contents; }
.nav-group__menu { display: contents; }
.nav-group__menu[hidden] { display: none !important; }
.games-band .section-head { margin-top: 8px; }
textarea, .compare pre { overflow-wrap: anywhere; max-width: 100%; }
.lang { min-width: 0; max-width: 7.5rem; }
.lang select {
  min-height: 40px;
  width: 100%;
  max-width: 7.5rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 8px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 64px; }
.wrap > h1, .wrap > .lead, .wrap > .crumb { text-align: center; }
.wrap > .lead { margin-left: auto; margin-right: auto; }
.hero { padding: 12px 0 4px; text-align: center; }
.hero h1 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  max-width: min(16em, 100%);
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
}
.hero .lead {
  max-width: min(40rem, 100%);
  overflow-wrap: anywhere;
}
.hero .lead,
.hero .search { margin-left: auto; margin-right: auto; }
.hero .lead { font-size: 1rem; }
.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 8px; }
.lead { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 40rem; }
.cat-jump, .filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  max-width: 760px;
}
.cat-jump a, .filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}
.cat-jump a:hover, .filter-bar button:hover { border-color: #9ecbb8; }
.filter-bar { margin-bottom: 14px; }
.filter-bar button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-empty { text-align: center; color: var(--muted); margin: 8px 0 0; }
.games-band {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 16px 16px;
}
.game-spotlight {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 12px;
}
.game-spotlight:hover { background: var(--accent-soft); }
.game-mark {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background:
    linear-gradient(#d7b07a, #d7b07a) center/1px 100% no-repeat,
    linear-gradient(#d7b07a, #d7b07a) center/100% 1px no-repeat,
    #f3e2c4;
  border: 1px solid #e4d3b4;
}
.game-spotlight > span { color: inherit; }
.game-spotlight small { color: var(--accent); font-weight: 700; font-size: 0.75rem; }
.game-spotlight > span > span { color: var(--muted); display: block; }
.game-spotlight em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.875rem;
}
.catalog-extra { margin-top: 12px; }

.search {
  margin: 22px 0 8px;
  position: relative;
  max-width: 640px;
}
.search input {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 16px;
  box-shadow: var(--shadow);
}
.search input:focus, button:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-results {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow: auto;
}
.search-results a, .search-results p {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.search-results a:hover, .search-results a.is-active { background: var(--accent-soft); }
.search-results p { color: var(--muted); margin: 0; }
.search-results small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 36, 33, 0.28);
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 12vh 16px 16px;
}
.search-dialog[hidden] { display: none; }
.search-dialog__panel {
  width: min(640px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px;
  box-shadow: 0 16px 40px rgba(28, 36, 33, 0.12);
}
.search-dialog .search { margin: 0; max-width: none; }
.search-dialog .search-results { position: static; margin-top: 8px; box-shadow: none; }

.section-head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin: 40px 0 14px;
  text-align: center;
}
h2 { font-size: 1.35rem; margin: 0; letter-spacing: -0.03em; }
.section-head a { font-size: 0.92rem; }

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.card-grid > .tool-card { flex: 1 1 100%; max-width: 100%; }
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  text-decoration: none;
  color: var(--ink);
  min-height: 112px;
  box-shadow: none;
  transition: border-color 0.15s ease;
}
.tool-card[data-cat] {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  align-content: start;
}
.tool-card[data-cat]::before {
  content: "";
  grid-row: 1 / span 3;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #f4f4f5;
  background-image: var(--tool-icon, var(--ico-guides));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.tool-card[data-cat="image"] { --tool-icon: var(--ico-image); }
.tool-card[data-cat="pdf"] { --tool-icon: var(--ico-pdf); }
.tool-card[data-cat="convert"] { --tool-icon: var(--ico-convert); }
.tool-card[data-cat="text"] { --tool-icon: var(--ico-text); }
.tool-card[data-cat="developer"] { --tool-icon: var(--ico-dev); }
.tool-card[data-cat="finance"] { --tool-icon: var(--ico-finance); }
.tool-card[data-cat="math"] { --tool-icon: var(--ico-math); }
.tool-card[data-cat="qr"] { --tool-icon: var(--ico-qr); }
.tool-card[data-cat="games"] { --tool-icon: var(--ico-games); }
.tool-card[data-cat="guides"] { --tool-icon: var(--ico-guides); }
.tool-card:hover { border-color: #d4d4d4; background: #fafafa; }
.card-grid[hidden],
.catalog-extra[hidden],
.games-band[hidden],
.tool-card[hidden],
.filter-empty[hidden],
#categorySection[hidden] { display: none !important; }
.tool-card small {
  align-self: flex-start;
  color: #8a8a8a;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.2;
  background: none;
  border-radius: 0;
  padding: 0;
}
.tool-card strong {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.tool-card span {
  color: #6f6f6f;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.crumb { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
.crumb a { color: var(--muted); }

.tool-layout {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.drop {
  border: 1.5px dashed #c5d5cc;
  border-radius: 14px;
  min-height: 176px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 28px 18px;
  background: #f6faf8;
  cursor: pointer;
}
.drop.is-hot { border-color: var(--accent); background: var(--accent-soft); }
.drop p { margin: 0 0 10px; font-weight: 650; color: var(--ink); }
.fmt { display: flex; flex-wrap: wrap; gap: 8px; }
.fmt label {
  position: relative;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: #fff;
}
.fmt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.secret-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.secret {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f8f7;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.secret code { font-family: inherit; flex: 1; min-width: 0; word-break: break-all; }
.secret .btn, .secret .btn-ghost { flex: none; white-space: nowrap; }
.bits { color: var(--muted); font-size: 0.88rem; margin: 8px 0 0; }
.drop-hint { margin: 8px 0 0 !important; color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.drop.is-busy { opacity: 0.72; }
.btn.is-busy { cursor: progress; }
.file-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: min(100%, 180px); flex: 1; }
.field[hidden] { display: none !important; }
.field.grow { flex: 2; }
label { font-weight: 650; font-size: 0.92rem; }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="range"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-height: 42px;
  padding: 8px 10px;
}
textarea { min-height: 180px; resize: vertical; font-family: var(--mono); font-size: 0.92rem; }
.check { flex-direction: row; align-items: center; gap: 8px; min-width: auto; }
.check input { width: auto; min-height: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn, .btn-ghost {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.stat {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 120px;
}
.stat b { display: block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 0.8rem; }
.preview {
  width: min(100%, 360px);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7f8fa;
}
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); }
.msg[hidden] { display: none; }
.ok { background: var(--accent-soft); color: var(--ink); }

.prose { max-width: 46rem; margin-left: auto; margin-right: auto; }
.prose h2, .prose h3 { text-align: start; }
.prose h2 { margin: 28px 0 8px; font-size: 1.35rem; }
.prose h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.prose p, .prose li { color: #243140; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 10px; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 650; }
.depth {
  margin-top: 28px;
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 22px 8px;
  box-shadow: var(--shadow);
}
.depth > h2:first-child { margin-top: 18px; }
.prose { line-height: 1.65; }
.prose th { background: #f6f8f7; }
.prose th, .prose td { padding: 10px 12px; }
.panel > h2 { margin: 0 0 12px; }
.file-list:empty { min-height: 28px; }
.file-list:empty::before {
  content: attr(data-empty);
  color: var(--muted);
  font-size: 0.9rem;
}
.tool-layout ~ article.prose:not(.depth) {
  max-width: none;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.tool-layout ~ article.depth { max-width: none; }
.tool-layout ~ article.prose:not(.depth) > .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tool-layout ~ article.prose:not(.depth) > .card-grid > .tool-card {
  flex: none;
  max-width: none;
  width: auto;
}
.tool-layout ~ article.prose:not(.depth) > h2:first-child { margin-top: 0; }
.tool-layout ~ article.prose:not(.depth) > ol {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: step;
}
.tool-layout ~ article.prose:not(.depth) > ol > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tool-layout ~ article.prose:not(.depth) > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}
.tool-layout ~ article.prose:not(.depth) > h2[data-i18n="h_privacy"] + p {
  margin: 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 12px;
}
.tool-layout ~ article.prose:not(.depth) > h2[data-i18n="h_faq"] ~ h3 {
  margin: 8px 0 0;
  padding: 12px 14px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-size: 1rem;
}
.tool-layout ~ article.prose:not(.depth) > h2[data-i18n="h_faq"] ~ h3 + p {
  margin: 0;
  padding: 4px 14px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
html[dir="rtl"] .tool-layout ~ article.prose:not(.depth) > ol > li { padding: 12px 48px 12px 14px; }
html[dir="rtl"] .tool-layout ~ article.prose:not(.depth) > ol > li::before { left: auto; right: 12px; }
@media (max-width: 640px) {
  .depth { padding: 4px 14px 8px; }
}
.note {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}
.guide-grid a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}
.guide-grid a:hover { border-color: var(--accent); }
.guide-grid strong { display: block; margin-bottom: 6px; }
.guide-grid span { color: var(--muted); font-size: 0.92rem; }
.page-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.compare {
  display: grid;
  gap: 12px;
}
.compare pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 10px;
  min-height: 80px;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.added { background: #e7f5ef; }
.removed { background: #fdecec; text-decoration: line-through; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; }
.key {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.key.is-down { background: var(--accent); color: #fff; border-color: var(--accent); }
.meter { height: 14px; background: #e6ebf0; border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; background: var(--accent); }
.stage {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  color: #111;
  font-size: 1.1rem;
}
.stage.is-on { display: grid; }
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 25;
  max-width: calc(100% - 32px);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.site-footer .wrap { padding-top: 22px; padding-bottom: 28px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 720px) {
  .card-grid > .tool-card { flex: 0 0 calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
  .compare { grid-template-columns: 1fr 1fr; }
  .tool-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-header__bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
  }
  .logo { margin-right: 0; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 0;
    padding: 0;
    background: transparent;
    gap: 2px;
    bottom: auto;
  }
  .site-nav > a, .nav-group__btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.9rem;
    font-weight: 650;
  }
  .nav-group { display: block; position: relative; }
  .nav-group__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(28, 36, 33, 0.08);
    z-index: 25;
  }
  .nav-group.is-open > .nav-group__menu { display: flex; flex-direction: column; }
  .nav-group__menu a { min-height: 40px; }
  .card-grid.cards-3 > .tool-card { flex-basis: calc((100% - 24px) / 3); max-width: calc((100% - 24px) / 3); }
}
@media (max-width: 640px) {
  .game-spotlight { grid-template-columns: 56px 1fr; }
  .game-spotlight em { display: none; }
  .game-mark { width: 56px; height: 56px; }
  .tool-layout { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  .site-header__bar { padding-inline: 10px; }
  .wrap { padding-inline: 10px; }
}

.home { padding-top: 36px; }
.home .hero { text-align: center; padding: 0; }
.home .hero h1 {
  margin: 0 auto 8px;
  max-width: 100%;
  white-space: nowrap;
  font-size: min(2.45rem, 4vw);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.home .hero .lead,
.home .search { margin-left: auto; margin-right: auto; }
.home .hero .lead { max-width: 36rem; font-size: 0.98rem; color: #5c5c5c; }
.home .search { margin-top: 22px; width: min(520px, 100%); }
.home .search input {
  min-height: 46px;
  border-radius: 10px;
  border-color: #e6e6e6;
  background-color: #fafafa;
  box-shadow: none;
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238a8a8a' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 16px;
}
.home .section-head {
  justify-content: center;
  text-align: center;
  margin: 36px 0 12px;
}
.home h2 {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.home .filter-bar {
  justify-content: center;
  gap: 0 20px;
  max-width: none;
  margin: 0 0 18px;
  border-bottom: 1px solid #eee;
}
.home .filter-bar button {
  min-height: 38px;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b6b6b;
  font-size: 0.9rem;
  font-weight: 550;
  box-shadow: inset 0 -1px 0 transparent;
}
.home .filter-bar button:hover { border-color: transparent; color: #141414; }
.home .filter-bar button[aria-pressed="true"] {
  background: transparent;
  color: #141414;
  box-shadow: inset 0 -2px 0 #141414;
}
.home .card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.home .card-grid > .tool-card { flex: none; max-width: none; }
.home .tool-card {
  min-height: 0;
  padding: 14px;
  border-radius: 10px;
}
.home .tool-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home .games-band {
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.game-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.game-row:hover .game-row__text strong { color: var(--accent); }
.game-row__text { display: grid; gap: 2px; min-width: 0; }
.game-row__text strong { font-size: 0.98rem; }
.game-row__text span { color: #6f6f6f; font-size: 0.84rem; }
.game-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  border: 1px solid #eadcc4;
  background:
    linear-gradient(#e4d0aa, #e4d0aa) center/1px 70% no-repeat,
    linear-gradient(#e4d0aa, #e4d0aa) center/70% 1px no-repeat,
    #f7efe2;
}
.dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #eee;
}
.dir-link {
  display: grid;
  gap: 3px;
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}
.dir-link strong { font-size: 0.95rem; letter-spacing: -0.02em; }
.dir-link span { color: #6f6f6f; font-size: 0.84rem; line-height: 1.45; }
.dir-link:hover strong { color: var(--accent); }
@media (min-width: 720px) {
  .home .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1100px) {
  .home .card-grid,
  .home .card-grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .card-grid.cards-3 > .tool-card { flex-basis: auto; max-width: none; }
  .site-nav > a[aria-current="page"],
  .nav-group__btn[aria-expanded="true"] {
    background: transparent;
    color: #141414;
    box-shadow: inset 0 -2px 0 #141414;
    border-radius: 0;
  }
}
