:root{--bg:#f7fbff;--surface:#fff;--surface-strong:#eef7ff;--text:#142033;--muted:#5b6b82;--line:#d9e6f5;--brand:#1b6fd6;--brand-2:#10a88a;--shadow:0 18px 45px rgba(25,71,128,.13);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);line-height:1.55}a{color:inherit}img{max-width:100%;display:block}.site-header{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:14px clamp(16px,4vw,48px);background:rgba(255,255,255,.94);border-bottom:1px solid var(--line)}.brand{font-weight:800;font-size:1.2rem;text-decoration:none;color:var(--brand)}.nav-links{display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:center}.nav-links a,.site-footer a,.guide-list a{text-decoration:none;color:var(--muted);font-weight:650}.nav-links a:hover,.site-footer a:hover,.guide-list a:hover{color:var(--brand)}.site-search{display:flex;gap:8px}input,textarea,button{font:inherit}.site-search input,.search-large input,.solver-textarea{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;color:var(--text)}.site-search button,button,.button{border:0;border-radius:8px;padding:10px 14px;background:var(--brand);color:#fff;font-weight:750;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:disabled{opacity:.55;cursor:not-allowed}.button.secondary,button:not(.button),.tool-actions button:not(.button),.player-toolbar a{background:#e8f1fc;color:#16416f;border:1px solid var(--line);text-decoration:none}.button.small{padding:8px 11px;font-size:.92rem}main{width:min(1180px,calc(100% - 32px));margin:0 auto}.hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:28px;align-items:center;min-height:520px;padding:44px 0 28px}.hero-copy h1,.page-hero h1{font-size:clamp(2.2rem,6vw,4.7rem);line-height:1;margin:0 0 18px;letter-spacing:0}.hero-copy p,.page-hero p{font-size:1.12rem;color:var(--muted);max-width:720px}.actions,.tool-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.featured-panel,.tool-section,.type-grid article,.game-card,.faq details{background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.featured-panel{padding:18px}.featured-panel img,.game-thumb img{border-radius:7px;aspect-ratio:4/3;object-fit:cover;background:var(--surface-strong)}.section{padding:32px 0}.section h2,.tool-section h2{margin:0 0 16px;font-size:clamp(1.45rem,3vw,2rem)}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.game-card{overflow:hidden;display:flex;flex-direction:column}.game-card-body{padding:15px;display:grid;gap:8px;flex:1}.game-card-body h3{margin:0;font-size:1.1rem}.game-card-body h3 a{text-decoration:none}.game-card-body p{margin:0;color:var(--muted)}.eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:0;color:var(--brand-2)!important;font-weight:800}.muted{color:var(--muted)}.type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.type-grid article{padding:20px}.tools-band{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:22px;align-items:center;background:linear-gradient(135deg,#e8f5ff,#eafaf4);border:1px solid var(--line);border-radius:8px;padding:26px}.tool-cards{display:grid;gap:10px}.tool-cards a{padding:14px;background:#fff;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-weight:750}.guide-list{display:grid;gap:10px}.guide-list a{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px}.prose{max-width:850px}.prose p,.prose li{color:var(--muted)}.faq{display:grid;gap:10px}.faq details{padding:14px 16px;box-shadow:none}.faq summary{font-weight:800;cursor:pointer}.page-hero{padding:46px 0 24px}.breadcrumb{font-size:.92rem!important}.game-player-section{margin:18px 0 34px}.player-toolbar{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:10px}.game-frame-wrap{position:relative;min-height:min(72vh,720px);background:#10233d;border-radius:8px;overflow:hidden;border:1px solid #18385e}.game-frame-wrap iframe{width:100%;height:min(72vh,720px);border:0;display:none;background:#000}.game-frame-wrap.is-loaded iframe{display:block}.game-frame-wrap.is-loaded .game-cover{display:none}.game-cover{position:absolute;inset:0;display:grid;place-items:center;gap:18px;padding:28px;text-align:center}.game-cover img{width:min(420px,90%);border-radius:8px;box-shadow:var(--shadow)}.solver-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:18px}.tool-section{padding:20px;margin-bottom:18px}.solver-textarea{width:100%;min-height:230px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.bottle-preview,.solution-output{min-height:140px;overflow:auto;border:1px dashed var(--line);border-radius:8px;padding:14px;background:#f9fcff}.bottle-card{display:inline-grid;justify-items:center;gap:8px;margin:8px}.bottle-glass{width:54px;height:148px;border:3px solid #385b86;border-top:0;border-radius:0 0 18px 18px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;background:rgba(255,255,255,.7)}.bottle-layer{height:calc(100%/var(--capacity,4));width:100%;border-top:1px solid rgba(255,255,255,.45)}.bottle-layer.empty{background:transparent}.bottle-label{font-weight:800;color:var(--muted)}.move-list{display:grid;gap:6px;margin-top:12px}.move-row{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff}.move-row.is-active{border-color:var(--brand);box-shadow:0 0 0 3px rgba(27,111,214,.15)}.editor-frame-wrap{height:min(76vw,760px);min-height:280px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#111827}.editor-frame{width:100%;height:100%;border:0;display:block}.search-large{display:flex;gap:10px;max-width:620px}.search-large input{flex:1}.site-footer{margin-top:44px;padding:34px clamp(16px,4vw,48px);background:#10233d;color:#fff;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.site-footer h2{font-size:1rem}.site-footer a{display:block;color:#d6e5f5;margin:8px 0}@media (max-width:900px){.site-header{grid-template-columns:1fr}.nav-links{justify-content:flex-start}.site-search{width:100%}.site-search input{flex:1;min-width:0}.hero,.tools-band,.solver-layout{grid-template-columns:1fr;min-height:auto}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.type-grid,.site-footer{grid-template-columns:1fr}}@media (max-width:560px){main{width:min(100% - 22px,1180px)}.editor-frame-wrap{height:min(76vw,430px);min-height:260px}.game-grid{grid-template-columns:1fr}.hero-copy h1,.page-hero h1{font-size:2.35rem}.game-frame-wrap,.game-frame-wrap iframe{height:68vh}.tool-section{padding:14px}}
.hero{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));max-width:100%}.hero>*{min-width:0}.featured-panel img{width:100%;height:auto}.actions .button{white-space:normal}.game-grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}.type-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}

/* Square game art and GameDistribution-style launch cover. */
.featured-panel img,
.game-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}
.game-thumb {
  display: block;
  background: var(--surface-strong);
}
.game-card {
  min-width: 0;
}
.game-card-body {
  align-content: start;
}
.game-frame-wrap {
  min-height: min(76vh, 760px);
  background: #0f1530;
}
.game-frame-wrap iframe {
  height: min(76vh, 760px);
}
.game-cover {
  isolation: isolate;
  overflow: hidden;
  background-image: linear-gradient(rgba(10, 18, 40, .70), rgba(32, 18, 74, .78)), var(--game-cover-image);
  background-position: center;
  background-size: cover;
}
.game-cover::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: inherit;
  filter: blur(10px) saturate(1.08);
  transform: scale(1.04);
}
.game-cover-card {
  display: grid;
  justify-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.game-cover-card img {
  width: min(260px, 48vw);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(0,0,0,.35);
}
.game-cover-card .button {
  min-height: 58px;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1.2rem;
  box-shadow: 0 12px 28px rgba(27,111,214,.35);
}
@media (max-width: 560px) {
  .game-cover-card img {
    width: min(220px, 62vw);
  }
  .game-cover-card .button {
    min-height: 52px;
    font-size: 1.05rem;
  }
}
/* Homepage embedded featured game. */
.hero-with-game {
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, .95fr);
  align-items: center;
}
.hero-game-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #081322;
  box-shadow: var(--shadow);
}
.hero-game-frame {
  display: block;
  width: 100%;
  height: min(68vh, 650px);
  min-height: 520px;
  border: 0;
  background: #000;
}
.hero-game-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.hero-game-footer a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}
.hero-tool-note {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-tool-note h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.hero-tool-note p {
  margin: 0;
}
@media (max-width: 900px) {
  .hero-with-game {
    grid-template-columns: 1fr;
  }
  .hero-game-frame {
    height: 68vh;
    min-height: 420px;
  }
}
@media (max-width: 560px) {
  .hero-game-frame {
    height: 64vh;
    min-height: 360px;
  }
  .hero-game-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* Requested layout and card refinements - 2026-06-29. */
.hero.hero-with-game {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
}
.hero-with-game .hero-game-panel {
  order: 1;
}
.hero-with-game .hero-copy {
  order: 2;
}
.hero-with-game .hero-copy h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.5rem);
}
.game-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.game-card-body.compact {
  display: block;
  min-height: 56px;
  padding: 10px 12px 12px;
}
.game-card-body.compact h3 {
  display: -webkit-box;
  min-height: 2.5em;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.game-card-body.compact h3 a {
  text-decoration: none;
}
.player-toolbar {
  gap: 12px;
  margin-bottom: 14px;
}
.player-toolbar button,
.player-toolbar a {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}
.player-toolbar .player-primary,
.game-cover-card .button {
  background: #0f6bdd;
  color: #fff;
  border: 0;
  box-shadow: 0 12px 28px rgba(15, 107, 221, .28);
}
.player-toolbar .player-primary {
  min-width: 138px;
}
.game-copy {
  max-width: 960px;
}
.game-copy h2,
.guide-article h2 {
  margin-top: 34px;
  margin-bottom: 8px;
}
.game-copy ul {
  padding-left: 1.25rem;
}
.guide-article section + section {
  margin-top: 22px;
}
@media (max-width: 1180px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .hero.hero-with-game {
    grid-template-columns: 1fr;
  }
  .hero-with-game .hero-game-panel,
  .hero-with-game .hero-copy {
    order: initial;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .hero.hero-with-game {
    gap: 20px;
    padding-top: 22px;
  }
  .hero-with-game .hero-copy h1 {
    font-size: 2.6rem;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .game-card-body.compact {
    min-height: 52px;
    padding: 9px 10px 10px;
  }
  .game-card-body.compact h3 {
    font-size: .95rem;
  }
  .player-toolbar button,
  .player-toolbar a {
    flex: 1 1 142px;
  }
}
/* Hero player sizing update - 2026-06-30. */
.hero.hero-with-game {
  width: min(1500px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  grid-template-columns: minmax(0, 2.45fr) minmax(280px, .85fr);
  gap: clamp(22px, 3vw, 34px);
}
.hero-game-panel {
  min-height: 0;
}
.hero-game-frame {
  height: min(76vh, 740px);
  min-height: 620px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero.hero-with-game {
    width: 100%;
    margin-left: 0;
    transform: none;
    grid-template-columns: 1fr;
  }
  .hero-game-frame {
    height: 72vh;
    min-height: 480px;
  }
}
@media (max-width: 560px) {
  .hero.hero-with-game {
    width: 100%;
  }
  .hero-game-frame {
    height: 68vh;
    min-height: 390px;
  }
}
.game-card-body.compact p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.prose h2 {
  margin-top: 28px;
  margin-bottom: 8px;
}
.prose ul {
  padding-left: 1.25rem;
}
/* Production-safe interaction and responsive refinements. */
:where(a, button, input, textarea, summary, iframe):focus-visible {
  outline: 3px solid rgba(27, 111, 214, .55);
  outline-offset: 3px;
}
.brand,
.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.site-search input,
.site-search button,
.faq summary,
.tool-section summary {
  min-height: 44px;
}
.game-frame-status {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: min(320px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  padding: 14px 18px;
  background: rgba(9, 20, 44, .92);
  color: #fff;
  text-align: center;
  font-weight: 800;
}
.game-frame-status[hidden] {
  display: none;
}
.game-frame-wrap.is-error iframe {
  visibility: hidden;
}
@media (max-width: 900px) {
  .site-header {
    gap: 8px;
    padding-block: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    flex: 0 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Light Puzzle Arcade visual refresh - 2026-07-12. */
:root {
  --bg: #f3f6ff;
  --surface: #ffffff;
  --surface-strong: #edf2ff;
  --text: #142039;
  --muted: #61708a;
  --line: #dce3f3;
  --brand: #5865f2;
  --brand-strong: #4351dc;
  --brand-2: #16a88f;
  --water: #27b8d9;
  --ball: #f29b38;
  --goods: #ed6e9d;
  --tools: #6f5be7;
  --shadow-sm: 0 8px 24px rgba(38, 55, 102, .08);
  --shadow: 0 20px 50px rgba(38, 55, 102, .12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 3%, rgba(74, 201, 227, .13), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(111, 91, 231, .10), transparent 32rem),
    var(--bg);
  font-size: 16px;
}
button,
.button,
input,
textarea {
  border-radius: var(--radius-sm);
}
button,
.button {
  min-height: 44px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
button:hover,
.button:hover {
  transform: translateY(-1px);
}
.button {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 24px rgba(88, 101, 242, .22);
}
.button.secondary,
button:not(.button),
.tool-actions button:not(.button),
.player-toolbar a {
  border-color: #d7dff0;
  background: #f0f4fc;
  color: #263c61;
  box-shadow: none;
}
main {
  width: min(1240px, calc(100% - 40px));
}
.section {
  padding: clamp(38px, 6vw, 72px) 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}
.section-heading h2,
.section h2,
.tool-section h2 {
  letter-spacing: -.035em;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

/* Compact brand-first navigation. */
.site-header {
  display: block;
  padding: 0;
  border-color: rgba(207, 218, 238, .9);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 24px rgba(35, 50, 86, .05);
  backdrop-filter: blur(18px);
}
.site-header-inner {
  width: min(1440px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.brand {
  flex: 0 0 auto;
  gap: 10px;
  min-height: 48px;
  color: #28365a;
  font-size: 1.12rem;
  letter-spacing: -.025em;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  gap: 3px;
  align-items: end;
  justify-content: center;
  border-radius: 11px;
  padding: 7px 6px;
  background: linear-gradient(145deg, #6673ff, #4b57d8);
  box-shadow: 0 8px 20px rgba(88, 101, 242, .28);
}
.brand-mark i {
  width: 5px;
  border-radius: 4px 4px 2px 2px;
  background: #fff;
}
.brand-mark i:nth-child(1) { height: 10px; opacity: .86; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 14px; opacity: .92; }
.site-navigation {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links {
  min-width: 0;
  flex: 1;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.nav-links a {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 11px;
  color: #53627c;
  font-size: .91rem;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: #eef2ff;
  color: var(--brand-strong);
}
.nav-links .nav-daily {
  color: #087b69;
}
.nav-links .nav-daily:not([aria-current="page"]):hover,
.nav-links .nav-daily:not([aria-current="page"]):focus-visible {
  color: #066858;
  background: #f1fbf8;
}
.nav-links .nav-tool {
  color: #5949bd;
}
.nav-links a[aria-current="page"] {
  position: relative;
  color: #155fa8;
  background: #e8f2ff;
  box-shadow: inset 0 0 0 1px #c8dcf2;
  font-weight: 850;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}
.nav-links .nav-daily[aria-current="page"] {
  color: #087b69;
  background: #e2f8f2;
  box-shadow: inset 0 0 0 1px #bae8dc;
}
.nav-links .nav-tool[aria-current="page"] {
  color: #5949bd;
  background: #f0edff;
  box-shadow: inset 0 0 0 1px #d7cff8;
}
.site-search {
  flex: 0 1 260px;
}
.site-search input {
  width: 100%;
  min-width: 110px;
  border-radius: 13px;
  background: #f8faff;
}
.site-search button {
  min-width: 48px;
  border-radius: 13px;
  background: #e9eeff;
  color: #344a73;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  gap: 8px;
  background: #eef2ff;
  color: #34466b;
}
.nav-toggle > span:first-child {
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.nav-toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  border-top: 2px solid currentColor;
}

/* Homepage first viewport. */
.home-main {
  width: min(1320px, calc(100% - 40px));
}
.home-main .daily-hero {
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(38px, 5vw, 68px) 0 44px;
}
.daily-hero .hero-copy {
  position: relative;
  z-index: 1;
}
.daily-hero .hero-copy h1 {
  max-width: 7.2em;
  color: #16213a;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.065em;
}
.daily-hero .hero-copy > p {
  max-width: 520px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}
.daily-hero .actions {
  margin-top: 24px;
}
.daily-hero .actions .button {
  min-height: 50px;
  padding-inline: 18px;
}
.hero-tool-note {
  max-width: 520px;
  margin-top: 26px;
  border-radius: var(--radius);
  border-color: rgba(217, 226, 242, .92);
  box-shadow: var(--shadow-sm);
}
.home-main .daily-challenge {
  border-radius: var(--radius-lg);
  border-color: rgba(207, 218, 237, .95);
  box-shadow: 0 28px 65px rgba(39, 56, 103, .16);
}

/* Fast category rail. */
.quick-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(214, 223, 240, .94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-sm);
}
.quick-links a {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 12px 14px 12px 42px;
  color: #33415f;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease;
}
.quick-links a::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 16px;
  height: 22px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  opacity: .9;
}
.quick-links a:hover {
  transform: translateY(-2px);
}
.quick-water { background: #e8faff; color: #0b829c !important; }
.quick-ball { background: #fff5e7; color: #b36a16 !important; }
.quick-ball::before { height: 16px !important; border: 0 !important; border-radius: 50% !important; background: currentColor; box-shadow: 7px 7px 0 -2px currentColor; }
.quick-goods { background: #fff0f6; color: #ba3f70 !important; }
.quick-goods::before { height: 16px !important; border: 2px solid currentColor !important; border-radius: 4px !important; box-shadow: 6px -6px 0 -3px currentColor; }
.quick-daily { background: #ecfbf7; color: #087b69 !important; }
.quick-daily::before { height: 16px !important; border: 2px solid currentColor !important; border-radius: 4px !important; }
.quick-tools { background: #f0edff; color: #5949bd !important; }
.quick-tools::before { height: 16px !important; border: 2px solid currentColor !important; border-radius: 50% !important; }

/* Image-led game shelves. */
.game-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.game-card {
  position: relative;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(40, 58, 105, .16);
}
.game-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 14px 14px;
}
.game-thumb img {
  border-radius: inherit;
  transition: transform .3s ease;
}
.game-thumb::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -42%) scale(.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(15, 27, 60, .22);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.game-thumb::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  margin: -7px 0 0 -4px;
  border-left: 12px solid var(--brand);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  opacity: 0;
  transition: opacity .2s ease;
}
.game-card:hover .game-thumb img {
  transform: scale(1.035);
}
.game-card:hover .game-thumb::before,
.game-card:hover .game-thumb::after {
  opacity: 1;
}
.game-card:hover .game-thumb::after {
  transform: translate(-50%, -50%) scale(1);
}
.game-card-body.compact {
  min-height: 88px;
  padding: 13px 14px 15px;
}
.game-card-body.compact h3 {
  min-height: 1.35em;
  font-size: 1rem;
  -webkit-line-clamp: 1;
}
.game-card-body.compact p {
  margin-top: 6px;
  font-size: .84rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}
.continue-section .game-card {
  min-height: 160px;
  justify-content: center;
  background: linear-gradient(145deg, #fff, #edf2ff);
}
.continue-section .game-card-body {
  gap: 12px;
}

/* Visual category covers. */
.type-section {
  width: min(1380px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.type-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.type-grid .type-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #1e2a45;
  box-shadow: var(--shadow);
}
.type-card-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform .35s ease;
}
.type-water-sort .type-card-art {
  background-image: linear-gradient(180deg, rgba(11, 30, 55, .02) 25%, rgba(9, 31, 57, .9) 100%), url("../images/games/7.jpg");
}
.type-ball-sort .type-card-art {
  background-image: linear-gradient(180deg, rgba(11, 30, 55, .02) 25%, rgba(62, 30, 13, .9) 100%), url("../images/games/sorting-balls.jpg");
}
.type-goods-sort .type-card-art {
  background-image: linear-gradient(180deg, rgba(11, 30, 55, .02) 25%, rgba(55, 20, 45, .9) 100%), url("../images/games/6.jpg");
}
.type-card-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 30px;
  color: #fff;
}
.type-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}
.type-card p {
  max-width: 34ch;
  margin: 5px 0;
  color: rgba(255,255,255,.82);
}
.type-card .muted {
  color: rgba(255,255,255,.68);
  font-size: .88rem;
}
.type-card .button {
  margin-top: 14px;
  background: #fff;
  color: #24345a;
  box-shadow: none;
}
.type-card:hover .type-card-art {
  transform: scale(1.035);
}

/* Puzzle Lab and supporting content. */
.puzzle-lab {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 70px);
  border: 0;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 64px);
  background:
    radial-gradient(circle at 8% 80%, rgba(66, 214, 190, .2), transparent 20rem),
    linear-gradient(135deg, #27345e, #5b4fc4);
  color: #fff;
  box-shadow: 0 26px 60px rgba(44, 50, 112, .2);
}
.puzzle-lab::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -120px;
  border: 38px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.puzzle-lab h2 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}
.puzzle-lab p {
  color: rgba(255,255,255,.78);
}
.puzzle-lab .tool-cards {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.puzzle-lab .tool-cards a {
  position: relative;
  min-height: 110px;
  display: flex;
  align-items: end;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 20px 20px 20px 58px;
  background: rgba(255,255,255,.11);
  color: #fff;
  backdrop-filter: blur(8px);
}
.puzzle-lab .tool-cards a::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 20px;
  height: 38px;
  border: 3px solid rgba(255,255,255,.82);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.puzzle-lab .tool-cards a:hover {
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.17);
}
.home-guides {
  padding-bottom: 42px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.guide-grid a {
  min-height: 130px;
  display: flex;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 52px 22px 22px;
  background: linear-gradient(145deg, #fff, #f4f7ff);
  box-shadow: var(--shadow-sm);
  color: #263757;
  font-size: 1.05rem;
  position: relative;
}
.guide-grid a::after {
  content: "\2192";
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--brand);
  font-size: 1.35rem;
}
.home-guides .guide-grid {
  gap: 20px;
}
.home-guides .guide-grid a {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  text-decoration: none;
}
.home-guides .guide-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9efff;
}
.home-guides .guide-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}
.home-guides .guide-card-title {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 18px 54px 18px 20px;
  line-height: 1.35;
}
.home-guides .guide-grid a::after {
  bottom: 25px;
}
.home-guides .guide-grid a:hover .guide-card-media img {
  transform: scale(1.035);
}
.home-seo {
  max-width: 920px;
  margin: 28px auto 0;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.7);
}
.home-main > .faq {
  max-width: 920px;
  margin: 0 auto;
  padding: 44px 0 72px;
}
.faq details {
  border-radius: 16px;
  padding: 17px 20px;
  background: rgba(255,255,255,.88);
}
.faq summary {
  min-height: 28px;
}
.site-footer {
  margin-top: 70px;
  border-radius: 28px 28px 0 0;
  padding: 52px max(24px, calc((100vw - 1240px) / 2));
  background: linear-gradient(145deg, #17213b, #24335b);
}
.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
}

/* Shared cards and play surfaces. */
.page-hero {
  padding-top: 64px;
}
.page-hero h1 {
  letter-spacing: -.055em;
}
.featured-panel,
.tool-section,
.faq details,
.game-frame-wrap,
.editor-frame-wrap {
  border-radius: var(--radius);
}
.game-frame-wrap,
.editor-frame-wrap {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .site-header-inner { width: min(100% - 28px, 1080px); gap: 14px; }
  .nav-links a { padding-inline: 7px; font-size: .84rem; }
  .site-search { flex-basis: 210px; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .site-header-inner {
    min-height: 64px;
    flex-wrap: wrap;
    padding-block: 8px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-navigation {
    display: none;
    flex: 1 0 100%;
    padding: 8px 0 12px;
    align-items: stretch;
  }
  .site-header.is-open .site-navigation {
    display: grid;
    gap: 12px;
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }
  .nav-links a {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .site-search {
    width: 100%;
    flex-basis: auto;
  }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-grid .type-card { min-height: 390px; }
  .type-card-copy { padding: 22px; }
  .puzzle-lab { grid-template-columns: 1fr; }
  .puzzle-lab h2 { max-width: 18ch; }
}
@media (max-width: 760px) {
  main,
  .home-main {
    width: min(100% - 24px, 680px);
  }
  .section { padding: 42px 0; }
  .quick-links {
    width: calc(100vw - 12px);
    margin-left: 50%;
    transform: translateX(-50%);
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .quick-links::-webkit-scrollbar { display: none; }
  .quick-links a { flex: 0 0 auto; min-width: 178px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-section {
    width: min(100% - 24px, 680px);
  }
  .type-grid { grid-template-columns: 1fr; }
  .type-grid .type-card { min-height: 360px; }
  .puzzle-lab { padding: 34px 24px; }
  .puzzle-lab .tool-cards { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid a { min-height: 100px; }
  .site-footer { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .site-header-inner { width: calc(100% - 22px); }
  .brand { font-size: 1.02rem; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-toggle { width: 44px; padding: 10px; }
  .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a { min-height: 46px; }
  .home-main .daily-hero {
    min-height: auto;
    padding-top: 18px;
  }
  .daily-hero .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.6rem, 15vw, 3.5rem);
    line-height: .94;
  }
  .daily-hero .actions .button {
    flex: 1 1 100%;
  }
  .section-heading { margin-bottom: 16px; }
  .game-grid { gap: 12px; }
  .game-card { border-radius: 16px; }
  .game-thumb { border-radius: 16px 16px 11px 11px; }
  .game-card-body.compact {
    min-height: 72px;
    padding: 10px 10px 12px;
  }
  .game-card-body.compact h3 {
    min-height: 2.5em;
    font-size: .92rem;
    -webkit-line-clamp: 2;
  }
  .game-card-body.compact p { display: none; }
  .game-thumb::before,
  .game-thumb::after { display: none; }
  .type-grid .type-card { min-height: 330px; }
  .type-card-copy { padding: 22px; }
  .puzzle-lab { border-radius: 22px; }
  .puzzle-lab .tool-cards { grid-template-columns: 1fr; }
  .puzzle-lab .tool-cards a { min-height: 86px; }
  
.home-seo { padding: 26px 20px; }
  .site-footer {
    grid-template-columns: 1fr;
    margin-top: 42px;
    border-radius: 22px 22px 0 0;
    padding: 38px 24px;
  }
}


/* Direct mobile navigation: categories stay visible without a menu button. */
.nav-toggle { display: none !important; }
@media (max-width: 1020px) {
  .site-header-inner { align-items: center; }
  .site-navigation,
  .site-header.is-open .site-navigation {
    display: grid;
    flex: 1 0 100%;
    gap: 8px;
    padding: 0 0 10px;
  }
  .nav-links {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 12px;
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .site-header-inner { gap: 6px; padding-block: 6px; }
  .brand { min-height: 40px; }
  .site-navigation { gap: 6px; padding-bottom: 7px; }
  .site-search input,
  .site-search button { min-height: 40px; padding-block: 8px; }
}

@media (max-width: 760px) {
  .quick-links { width: calc(100% + 12px); margin-left: -6px; transform: none; }
}

/* Game-platform brand mark: a compact controller, not a ranking chart. */
.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  border-radius: 12px;
  padding: 0;
  background: linear-gradient(145deg, #6b76ff, #4855d9);
  box-shadow: 0 9px 22px rgba(74, 86, 220, .30), inset 0 1px 0 rgba(255,255,255,.24);
  transform: rotate(-2deg);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 24px;
  height: 15px;
  border-radius: 7px 7px 9px 9px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 3px 8px rgba(29, 38, 104, .22);
}
.brand-mark i {
  position: absolute;
  z-index: 1;
  display: block;
  margin: 0;
  opacity: 1;
}
.brand-mark i:nth-child(1) {
  left: 9px;
  top: 16px;
  width: 8px;
  height: 2.5px;
  border-radius: 2px;
  background: #4c59d9;
}
.brand-mark i:nth-child(1)::after {
  content: "";
  position: absolute;
  left: 2.75px;
  top: -2.75px;
  width: 2.5px;
  height: 8px;
  border-radius: 2px;
  background: inherit;
}
.brand-mark i:nth-child(2),
.brand-mark i:nth-child(3) {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
}
.brand-mark i:nth-child(2) {
  right: 9px;
  top: 14px;
  background: #f26f9d;
}
.brand-mark i:nth-child(3) {
  right: 6px;
  top: 18px;
  background: #27b9d6;
}
@media (max-width: 560px) {
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .brand-mark::before { left: 4px; top: 9px; }
  .brand-mark i:nth-child(1) { left: 8px; top: 15px; }
  .brand-mark i:nth-child(2) { right: 8px; top: 13px; }
  .brand-mark i:nth-child(3) { right: 5px; top: 17px; }
}

/* Distinct Puzzle Lab feature icons. */
.puzzle-lab .tool-cards a {
  min-height: 112px;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.puzzle-lab .tool-cards a::before { display: none; }
.puzzle-lab .tool-cards a > span { min-width: 0; }
.puzzle-lab .tool-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: visible;
  border-radius: 15px;
  padding: 9px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 7px 12px rgba(20, 27, 75, .18));
}
.puzzle-lab .tool-icon-fill { fill: rgba(255,255,255,.9); stroke-width: 1.8; }
.puzzle-lab .tool-icon-check { stroke-width: 3.4; }
.puzzle-lab .tool-daily .tool-icon { background: linear-gradient(145deg, #28cbb0, #159982); }
.puzzle-lab .tool-solve .tool-icon { background: linear-gradient(145deg, #66b8ff, #397ee6); }
.puzzle-lab .tool-build .tool-icon { background: linear-gradient(145deg, #ffc467, #e58b2e); }
.puzzle-lab .tool-replay .tool-icon { background: linear-gradient(145deg, #f58ab2, #d9568a); }
.puzzle-lab .tool-daily:hover { background: rgba(34, 199, 169, .18); }
.puzzle-lab .tool-solve:hover { background: rgba(79, 157, 244, .18); }
.puzzle-lab .tool-build:hover { background: rgba(242, 166, 72, .18); }
.puzzle-lab .tool-replay:hover { background: rgba(239, 105, 157, .18); }
@media (max-width: 560px) {
  .puzzle-lab .tool-cards a { min-height: 82px; padding: 14px; }
  .puzzle-lab .tool-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; padding: 8px; }
}

@media (max-width: 760px) {
  .home-guides .guide-grid a { min-height: 0; }
  .home-guides .guide-card-media { aspect-ratio: 2 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-guides .guide-card-media img { transition: none; }
}
/* Server-rendered weighted game recommendations on high-intent play and tool pages. */
.recommendation-row {
  padding-top: 44px;
  padding-bottom: 28px;
}
.recommendation-row .section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}
.recommendation-row .game-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .recommendation-row .game-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 48vw);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    padding: 2px 2px 14px;
  }
  .recommendation-row .game-card { scroll-snap-align: start; }
}
/* Category hubs keep the three core sorting collections prominent without crowding the header. */
.category-hub-section {
  padding-top: 42px;
  padding-bottom: 26px;
}
.category-hub-section .section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}
.category-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-hub-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(207, 218, 237, .95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 36px rgba(39, 56, 103, .10);
}
a.category-hub-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.category-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 101, 224, .32);
  box-shadow: 0 22px 42px rgba(39, 56, 103, .15);
}
.category-hub-card strong,
.category-hub-card small {
  display: block;
}
.category-hub-card strong {
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.category-hub-card small {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.category-hub-card.is-active {
  border-color: rgba(87, 101, 224, .36);
  background: linear-gradient(145deg, rgba(242, 244, 255, .98), rgba(255, 255, 255, .94));
}
.category-hub-card.is-active::after {
  content: "Current collection";
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--brand);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.category-hub-mark {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #eef2ff;
}
.category-hub-mark::before {
  content: "";
  position: absolute;
  inset: 12px;
}
.category-hub-water-sort .category-hub-mark {
  background: linear-gradient(145deg, #dffbfa, #cbeff8);
}
.category-hub-water-sort .category-hub-mark::before {
  inset: 10px 17px 9px;
  border: 3px solid #168da6;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(to top, #45cfca 0 44%, #75d8ed 44% 68%, transparent 68%);
}
.category-hub-ball-sort .category-hub-mark {
  background: linear-gradient(145deg, #fff2d8, #ffe1ad);
}
.category-hub-ball-sort .category-hub-mark::before {
  inset: 9px;
  background: radial-gradient(circle at 28% 28%, #f279a8 0 7px, transparent 7.5px), radial-gradient(circle at 72% 32%, #5e73ec 0 7px, transparent 7.5px), radial-gradient(circle at 50% 74%, #f3a33b 0 7px, transparent 7.5px);
}
.category-hub-goods-sort .category-hub-mark {
  background: linear-gradient(145deg, #eee8ff, #e0d7ff);
}
.category-hub-goods-sort .category-hub-mark::before {
  border-radius: 7px;
  background: linear-gradient(90deg, #6e63dc 0 45%, transparent 45% 55%, #ef729e 55%), linear-gradient(#0000 0 45%, rgba(255,255,255,.92) 45% 55%, #0000 55%);
  box-shadow: inset 0 0 0 2px rgba(76, 68, 163, .22);
}
@media (max-width: 900px) {
  .category-hub-grid { grid-template-columns: 1fr; }
  .category-hub-card { min-height: 108px; }
}
@media (max-width: 560px) {
  .category-hub-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 96px;
    padding: 14px;
  }
  .category-hub-mark { width: 48px; height: 48px; border-radius: 15px; }
  .category-hub-card.is-active::after { position: static; grid-column: 2; margin-top: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  a.category-hub-card { transition: none; }
}
.guides-index-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}
.guides-index-link:hover { text-decoration: underline; }

/* Compact two-row mobile navigation and footer. */
@media (max-width: 560px) {
  .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 6px 0 8px;
  }
  .brand {
    min-height: 38px;
    justify-self: start;
  }
  .site-navigation,
  .site-header.is-open .site-navigation {
    width: 100%;
    display: block;
    padding: 0;
  }
  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding: 0;
  }
  .nav-links a {
    min-width: 0;
    min-height: 36px;
    padding: 5px 3px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    font-size: .74rem;
  }
  .site-search { display: none; }
  .site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
    border-radius: 18px 18px 0 0;
    padding: 24px 14px 28px;
  }
  .site-footer > div { min-width: 0; }
  .site-footer h2 { margin: 0 0 8px; font-size: .84rem; }
  .site-footer a { margin: 4px 0; font-size: .75rem; line-height: 1.28; overflow-wrap: anywhere; }
}
/* Water Sort vs Ball Sort comparison guide. */
.comparison-guide-page,
.comparison-guide {
  min-width: 0;
}
.comparison-guide {
  max-width: 980px;
}
.comparison-guide section[id] {
  scroll-margin-top: 110px;
}
.comparison-guide h2 {
  text-wrap: balance;
}
.comparison-quick-answer {
  margin: 26px 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #b9d8f7;
  border-left: 6px solid #2d8ddf;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf8ff, #f6f3ff);
  box-shadow: var(--shadow-sm);
}
.comparison-quick-answer h2,
.comparison-quick-answer p {
  margin-top: 0;
}
.comparison-quick-answer p:last-child {
  margin-bottom: 0;
}
.comparison-kicker {
  margin-bottom: 8px !important;
  color: #196fba !important;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.comparison-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 36px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.comparison-toc strong {
  flex: 1 0 100%;
}
.comparison-toc a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #215a96;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
}
.comparison-table-wrap {
  max-width: 100%;
  margin: 18px 0 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.comparison-table-wrap:focus-visible {
  outline: 3px solid rgba(27, 111, 214, .28);
  outline-offset: 3px;
}
.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .94rem;
}
.comparison-table th,
.comparison-table td {
  padding: 13px 15px;
  vertical-align: top;
  border-bottom: 1px solid #e5edf7;
  text-align: left;
}
.comparison-table thead th {
  color: #fff;
  background: #243d69;
}
.comparison-table tbody th {
  width: 25%;
  color: #233a5e;
  background: #f4f8fd;
}
.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}
.comparison-table td:nth-child(2) {
  background: rgba(52, 161, 222, .045);
}
.comparison-table td:nth-child(3) {
  background: rgba(130, 86, 216, .04);
}
.comparison-rule-grid,
.strategy-grid,
.move-example-grid,
.solver-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.comparison-rule-card,
.strategy-grid article,
.move-example,
.solver-choice {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.comparison-rule-card.is-water,
.move-example.is-water,
.solver-choice.is-water {
  border-top: 5px solid #2d9bd6;
}
.comparison-rule-card.is-ball,
.move-example.is-ball,
.solver-choice.is-ball {
  border-top: 5px solid #8b5bd5;
}
.comparison-rule-card h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.comparison-variant-note,
.comparison-note {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff9e9;
  border: 1px solid #f0d899;
}
.rule-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: #237fb8;
  font-size: .78rem;
  font-weight: 800;
}
.move-example.is-ball .rule-tag {
  background: #7547bd;
}
.move-example pre,
.comparison-code {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px;
  border-radius: 12px;
  color: #e9f2ff;
  background: #16243b;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre;
}
.mini-stack-row {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  min-height: 112px;
  margin: 8px 0 14px;
}
.mini-bottle,
.mini-tube {
  width: 42px;
  height: 100px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 3px solid #476786;
  border-top: 0;
  border-radius: 0 0 13px 13px;
  background: #f8fbff;
}
.mini-bottle .layer {
  width: 100%;
  height: 21px;
  border-radius: 3px;
}
.mini-tube .ball {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .16);
}
.mini-stack-row .color-1 { background: #2d9bd6; }
.mini-stack-row .color-2 { background: #f0a33a; }
.move-arrow {
  align-self: center;
  color: #536987;
  font-size: 1.5rem;
  font-weight: 900;
}
.strategy-grid h3 {
  margin-top: 0;
  font-size: 1.25rem;
}
.solver-table {
  min-width: 820px;
}
.solver-choice {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.solver-choice strong {
  color: #193e66;
  font-size: 1.1rem;
}
.solver-choice span {
  color: var(--muted);
}
.solver-choice:hover {
  transform: translateY(-2px);
  border-color: #9fc5ea;
}
.mistake-grid {
  columns: 2;
  column-gap: 34px;
}
.mistake-grid li {
  break-inside: avoid;
  margin-bottom: 9px;
}
.try-tools-panel {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid #c9d8ed;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef8ff, #f8f3ff);
}
.try-tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.try-tools-links a {
  padding: 10px 13px;
  border: 1px solid #c9d8ed;
  border-radius: 10px;
  background: #fff;
  color: #235990;
  font-weight: 750;
  text-decoration: none;
}
@media (max-width: 760px) {
  .comparison-guide-page {
    overflow-x: clip;
  }
  .comparison-rule-grid,
  .strategy-grid,
  .move-example-grid,
  .solver-choice-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table {
    min-width: 650px;
  }
  .solver-table {
    min-width: 760px;
  }
  .mistake-grid {
    columns: 1;
  }
}
@media (max-width: 420px) {
  .comparison-guide h1 {
    font-size: 2.05rem;
  }
  .comparison-rule-card,
  .strategy-grid article,
  .move-example,
  .solver-choice {
    padding: 17px;
  }
  .mini-stack-row {
    gap: 5px;
  }
  .mini-bottle,
  .mini-tube {
    width: 36px;
  }
}

/* Shared enhanced guide system for solver, strategy, and JSON guides. */
.enhanced-guide-page,
.enhanced-guide {
  min-width: 0;
}
.enhanced-guide {
  max-width: 980px;
}
.enhanced-guide section[id] {
  scroll-margin-top: 110px;
}
.enhanced-guide h2,
.enhanced-guide h3 {
  text-wrap: balance;
}
.guide-quick-answer code,
.enhanced-guide .guide-callout code,
.enhanced-guide td code {
  white-space: nowrap;
}
.ball-quick-answer {
  border-color: #d8c4f3;
  border-left-color: #8355c9;
  background: linear-gradient(135deg, #f6f1ff, #eef8ff);
}
.guide-example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin: 20px 0 26px;
}
.guide-code-card,
.guide-visual-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.guide-visual-card.is-water {
  border-top: 5px solid #2d9bd6;
}
.guide-visual-card.is-ball {
  border-top: 5px solid #8355c9;
}
.guide-code-card > :first-child,
.guide-visual-card > :first-child {
  margin-top: 0;
}
.guide-code-card > :last-child,
.guide-visual-card > :last-child {
  margin-bottom: 0;
}
.guide-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.guide-bottle-row {
  flex-wrap: wrap;
  gap: 16px;
  min-height: 145px;
}
.guide-bottle-row > span {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #405a7b;
  font-size: .8rem;
}
.enhanced-guide .color-1 { background: #2d9bd6; }
.enhanced-guide .color-2 { background: #f0a33a; }
.enhanced-guide .color-3 { background: #8355c9; }
.enhanced-guide .color-4 { background: #31a46f; }
.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 30px;
}
.guide-step-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f5f8fd);
  box-shadow: var(--shadow-sm);
}
.guide-step-grid h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
}
.guide-step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.guide-step-number,
.guide-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #287fbd;
  font-size: .84rem;
  font-weight: 850;
}
.ball-guide .guide-step-number {
  background: #7547bd;
}
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.guide-card-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.guide-card-grid h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.guide-card-grid p:last-child {
  margin-bottom: 0;
}
.guide-four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guide-four-grid .guide-icon {
  background: linear-gradient(135deg, #258cce, #7649c1);
}
.guide-callout {
  margin: 22px 0 28px;
  padding: 17px 19px;
  border: 1px solid #bcd8ef;
  border-left: 5px solid #318bc7;
  border-radius: 14px;
  background: #edf8ff;
}
.ball-guide .guide-callout {
  border-color: #d7c5ef;
  border-left-color: #8355c9;
  background: #f7f2ff;
}
.guide-callout h3 {
  margin-top: 0;
}
.guide-callout > :last-child {
  margin-bottom: 0;
}
.guide-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-check-list li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 27px;
}
.guide-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  color: #16835c;
  font-weight: 900;
}
.guide-warning-card {
  border-top-color: #d39a2f !important;
}
.guide-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}
.guide-flow article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.guide-flow article > :last-child {
  margin-bottom: 0;
}
.guide-flow-label {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1f5f91;
  background: #e8f4ff;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.guide-three-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guide-tool-flow a {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 800;
}
.guide-anatomy {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.guide-anatomy > div {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f6;
}
.guide-anatomy > div:last-child {
  border-bottom: 0;
}
.guide-anatomy .is-nested {
  padding-left: 24px;
}
.guide-anatomy code {
  color: #203e68;
  font-weight: 800;
}
.guide-anatomy span {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: .9rem;
}
.guide-inline-code {
  margin: 16px 0;
}
.guide-count-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.guide-count-row span {
  color: var(--muted);
}
.guide-array-bottle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 180px;
}
.mini-bottle.is-large {
  width: 58px;
  height: 140px;
}
.mini-bottle.is-large .layer {
  height: 29px;
}
.guide-array-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 125px;
  color: #405a7b;
  font-size: .86rem;
}
.guide-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.guide-code-grid .guide-code-card {
  position: relative;
  border-top: 5px solid #8ba0ba;
}
.guide-code-grid .guide-code-card.is-bad {
  border-top-color: #d85d67;
}
.guide-code-grid .guide-code-card.is-good {
  border-top-color: #2d9d70;
}
.guide-code-card > span:first-child {
  display: inline-flex;
  margin-bottom: 8px;
  color: #334c6c;
  font-size: .8rem;
  font-weight: 850;
  text-transform: uppercase;
}
.guide-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.guide-status-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid #6d86a3;
  border-radius: 14px;
  background: #fff;
}
.guide-status-grid article.is-success { border-left-color: #2d9d70; }
.guide-status-grid article.is-warning { border-left-color: #d39a2f; }
.guide-status-grid article.is-error { border-left-color: #d85d67; }
.guide-status-grid h3 {
  margin-top: 0;
  font-size: 1.02rem;
}
.guide-status-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
}
.guide-feature-table code {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .guide-step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .guide-four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .enhanced-guide-page {
    overflow-x: clip;
  }
  .guide-example-grid,
  .guide-code-grid,
  .guide-flow,
  .guide-card-grid,
  .guide-status-grid,
  .guide-step-grid,
  .guide-three-steps,
  .guide-four-grid {
    grid-template-columns: 1fr;
  }
  .guide-anatomy > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .guide-anatomy .is-nested {
    padding-left: 14px;
  }
  .guide-bottle-row {
    gap: 10px;
  }
}
@media (max-width: 420px) {
  .enhanced-guide h1 {
    font-size: 2.05rem;
  }
  .guide-code-card,
  .guide-visual-card,
  .guide-flow article,
  .guide-card-grid article {
    padding: 17px;
  }
  .guide-anatomy {
    padding: 17px;
  }
  .guide-array-bottle {
    gap: 14px;
  }
}


/* Task-focused Guides index: one link per card, grouped by reader intent. */
.guides-index-page {
  overflow-x: clip;
}
.guides-index-hero {
  max-width: 900px;
  padding-bottom: 34px;
}
.guides-index-kicker,
.guide-index-heading > span,
.guide-index-eyebrow {
  display: block;
  color: #287fbd;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.guides-index-hero .guides-index-kicker {
  margin: 22px 0 8px;
}
.guides-index-hero h1 {
  max-width: 800px;
  text-wrap: balance;
}
.guide-index-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.guide-index-jump a {
  padding: 9px 13px;
  border: 1px solid #cbdcef;
  border-radius: 999px;
  color: #24547f;
  background: rgba(255,255,255,.74);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.guide-index-jump a:hover,
.guide-index-jump a:focus-visible {
  border-color: #7eabd1;
  background: #fff;
}
.guide-index-section {
  scroll-margin-top: 110px;
  padding: 34px 0;
}
.guide-index-heading {
  max-width: 760px;
  margin-bottom: 19px;
}
.guide-index-heading h2 {
  margin: 5px 0 7px;
  font-size: clamp(1.55rem,3vw,2.15rem);
  text-wrap: balance;
}
.guide-index-heading p {
  margin: 0;
  color: var(--muted);
}
.guide-index-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}
.guide-index-card {
  min-width: 0;
  min-height: 360px;
  display: grid;
  grid-template-rows: 176px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.guide-index-card:hover {
  transform: translateY(-3px);
  border-color: #a8c8e4;
  box-shadow: 0 20px 45px rgba(28,72,123,.16);
}
.guide-index-card:focus-visible {
  outline: 3px solid rgba(27,111,214,.32);
  outline-offset: 4px;
}
.guide-index-card.is-featured {
  min-height: 340px;
  grid-template-columns: minmax(300px,.75fr) minmax(0,1.25fr);
  grid-template-rows: 1fr;
}
.guide-index-card-visual {
  min-width: 0;
  min-height: 176px;
  display: grid;
  place-items: center;
  padding: 25px;
  background: linear-gradient(135deg,#eaf7ff,#f4fbff);
}
.guide-index-card.is-compare .guide-index-card-visual {
  background: linear-gradient(135deg,#e8f7ff 0 50%,#f5edff 50% 100%);
}
.guide-index-card.is-ball .guide-index-card-visual {
  background: linear-gradient(135deg,#f4efff,#ece9ff);
}
.guide-index-card.is-strategy .guide-index-card-visual {
  background: linear-gradient(135deg,#e7f8f4,#edf8ff);
}
.guide-index-card.is-json .guide-index-card-visual {
  background: linear-gradient(135deg,#172945,#24456d);
}
.guide-index-card-visual .mini-stack-row {
  min-height: 110px;
  margin: 0;
}
.guide-index-card-visual .color-1 { background: #2d9bd6; }
.guide-index-card-visual .color-2 { background: #f0a33a; }
.guide-index-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.guide-index-compare > span {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #35506f;
  font-weight: 800;
}
.guide-index-compare > b {
  color: #5b4e88;
  font-size: 1rem;
  letter-spacing: .08em;
}
.guide-index-json {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #dcecff;
}
.guide-index-json code {
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px;
  color: #fff;
  background: rgba(8,20,38,.38);
  font-size: clamp(1.15rem,3vw,1.55rem);
}
.guide-index-json small {
  font-weight: 800;
  letter-spacing: .05em;
}
.guide-index-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}
.guide-index-card-body h3 {
  margin: 6px 0 10px;
  color: #17263e;
  font-size: 1.38rem;
  line-height: 1.25;
  text-wrap: balance;
}
.guide-index-card.is-featured .guide-index-card-body {
  justify-content: center;
  padding: clamp(26px,4vw,42px);
}
.guide-index-card.is-featured h3 {
  font-size: clamp(1.55rem,3vw,2.15rem);
}
.guide-index-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
}
.guide-index-best {
  color: #40536e;
  font-size: .91rem;
  line-height: 1.45;
}
.guide-index-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.guide-index-topics > span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #365676;
  background: #edf4fa;
  font-size: .75rem;
  font-weight: 800;
}
.guide-index-card.is-ball .guide-index-eyebrow,
.guide-index-card.is-ball .guide-index-action {
  color: #7345b9;
}
.guide-index-card.is-ball .guide-index-topics > span {
  color: #654191;
  background: #f2ecfb;
}
.guide-index-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--brand);
  font-weight: 850;
}
.guide-index-action > span {
  font-size: 1.18rem;
  transition: transform 180ms ease;
}
.guide-index-card:hover .guide-index-action > span {
  transform: translateX(4px);
}
.guides-tools-band {
  margin-top: 34px;
}
.guides-tools-band .guides-index-kicker {
  margin: 0 0 6px;
}
.guides-tools-band .tool-cards {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
@media (max-width: 900px) {
  .guide-index-grid {
    grid-template-columns: 1fr;
  }
  .guide-index-card {
    min-height: 0;
    grid-template-columns: minmax(180px,.55fr) minmax(0,1.45fr);
    grid-template-rows: 1fr;
  }
}
@media (max-width: 700px) {
  .guide-index-card,
  .guide-index-card.is-featured {
    grid-template-columns: 1fr;
    grid-template-rows: 160px 1fr;
  }
  .guide-index-card,
  .guide-index-card.is-featured {
    min-height: 0;
  }
  .guide-index-card-visual {
    min-height: 160px;
    padding: 19px;
  }
  .guide-index-card-body,
  .guide-index-card.is-featured .guide-index-card-body {
    padding: 21px;
  }
}
@media (max-width: 480px) {
  .guide-index-jump a {
    flex: 1 1 auto;
    text-align: center;
  }
  .guide-index-card,
  .guide-index-card.is-featured {
    grid-template-rows: 145px 1fr;
    border-radius: 18px;
  }
  .guide-index-card-visual {
    min-height: 145px;
  }
  .guides-tools-band .tool-cards {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-index-card,
  .guide-index-action > span {
    transition: none;
  }
}
