/* SugarFun — green & yellow, mobile-first */
:root {
  --green-900: #06321f;
  --green-800: #0a4d33;
  --green-700: #0f6a45;
  --green-500: #1f9d63;
  --green-100: #e3f4ea;
  --yellow-400: #ffd23f;
  --yellow-300: #ffe07a;
  --yellow-100: #fff6d6;
  --cream: #fbf8ec;
  --ink: #12261c;
  --muted: #4d6157;
  --line: #dfe7e1;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(6, 50, 31, 0.25);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow-400); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--yellow { background: var(--yellow-400); color: var(--green-900); box-shadow: 0 6px 0 -1px #d9a90f; }
.btn--yellow:hover { background: var(--yellow-300); }
.btn--green { background: var(--green-800); color: var(--white); }
.btn--green:hover { background: var(--green-700); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--yellow-400); margin-bottom: .8em;
}
.eyebrow--dark { color: var(--green-700); }

/* 1. Top bar */
.topbar { background: var(--green-900); color: #cfe3d7; font-size: .82rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--yellow-400); }
.topbar__help { margin-left: auto; font-weight: 700; }
.badge-21 {
  display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px;
  border-radius: 6px; background: var(--yellow-400); color: var(--green-900); font-weight: 800; font-size: .75rem;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; }
.logo__word { font-weight: 800; font-size: 1.35rem; color: var(--green-800); letter-spacing: -0.03em; }
.logo__word span { color: var(--green-500); }
.logo--light .logo__word { color: var(--white); }
.logo--light .logo__word span { color: var(--yellow-400); }
.nav__links { display: none; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--green-700); }
.nav__cta { margin-left: auto; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* 2. Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255,210,63,.18), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(31,157,99,.45), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-900));
}
.hero__grid { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 64px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; }
.hl { color: var(--yellow-400); }
.hero__lead { font-size: 1.1rem; color: #d7eadf; max-width: 36em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__art { position: relative; height: 260px; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; padding-top: 88px; padding-bottom: 96px; }
  .hero__art { height: 380px; }
}

/* Hero dice */
.die {
  position: absolute; width: 96px; height: 96px; border-radius: 22px; padding: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 24px 40px -16px rgba(0,0,0,.5);
  animation: bob 6s ease-in-out infinite;
}
.die i { width: 14px; height: 14px; border-radius: 50%; place-self: center; }
.die--a { background: var(--yellow-400); left: 8%; top: 18%; transform: rotate(-12deg); }
.die--a i { background: var(--green-800); }
.die--a i:nth-child(1) { grid-area: 1 / 1; } .die--a i:nth-child(2) { grid-area: 1 / 3; }
.die--a i:nth-child(3) { grid-area: 2 / 2; } .die--a i:nth-child(4) { grid-area: 3 / 1; } .die--a i:nth-child(5) { grid-area: 3 / 3; }
.die--b { background: var(--white); left: 48%; top: 4%; width: 120px; height: 120px; transform: rotate(10deg); animation-delay: -2s; }
.die--b i { background: var(--green-700); width: 18px; height: 18px; }
.die--b i:nth-child(1) { grid-area: 1 / 1; } .die--b i:nth-child(2) { grid-area: 2 / 2; } .die--b i:nth-child(3) { grid-area: 3 / 3; }
.die--c { background: var(--green-500); left: 34%; top: 56%; width: 84px; height: 84px; transform: rotate(-4deg); animation-delay: -4s; }
.die--c i { background: var(--yellow-400); }
.die--c i:nth-child(1) { grid-area: 1 / 3; } .die--c i:nth-child(2) { grid-area: 3 / 1; }
.chip {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
}
.chip--1 { right: 4%; top: 58%; color: var(--yellow-400); }
.chip--2 { left: 2%; bottom: 2%; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .die { animation: none; } html { scroll-behavior: auto; } }

/* 3. Trust strip */
.trust { background: var(--yellow-400); color: var(--green-900); }
.trust__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; padding-top: 18px; padding-bottom: 18px; }
.trust__item { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.35; }
.trust__item strong { font-size: .95rem; }
@media (min-width: 900px) { .trust__row { grid-template-columns: repeat(4, 1fr); } .trust__item + .trust__item { border-left: 2px solid rgba(6,50,31,.15); padding-left: 20px; } }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--green { background: var(--green-800); color: var(--white); }
.section--cream { background: var(--cream); }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.section__lead--light { color: #cfe3d7; }

/* 4. Game cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-500); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); margin-bottom: 16px;
  display: grid; place-items: center;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card__icon--color { display: flex; gap: 4px; justify-content: center; align-items: center; }
.card__icon--color i { width: 12px; height: 12px; border-radius: 3px; }
.card__icon--color i:nth-child(1) { background: var(--yellow-400); }
.card__icon--color i:nth-child(2) { background: var(--green-500); }
.card__icon--color i:nth-child(3) { background: #e5484d; }
.card__link { font-weight: 700; color: var(--green-700); font-size: .92rem; }

/* 5. Checker */
.checker { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .checker { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: #d7eadf; }
.steps li strong { color: var(--white); display: block; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow-400); color: var(--green-900); font-weight: 800;
}
.checker__box { background: var(--white); color: var(--ink); border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.checker__box label { font-weight: 800; font-size: 1.1rem; display: block; margin-bottom: 12px; }
.checker__field { display: flex; gap: 8px; }
.checker__field input {
  flex: 1; min-width: 0; font: inherit; padding: 13px 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--cream);
}
.checker__field input:focus { border-color: var(--green-500); outline: none; }
.checker__note { font-size: .88rem; color: var(--muted); margin: 14px 0 10px; }
.checker__more { font-weight: 700; font-size: .92rem; }

/* 6. Picks table */
.disclosure { font-size: .85rem; color: var(--muted); background: var(--yellow-100); border-radius: 12px; padding: 12px 16px; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.picks { width: 100%; border-collapse: collapse; font-size: .95rem; }
.picks thead { background: var(--green-800); color: var(--white); }
.picks th, .picks td { padding: 16px; text-align: left; }
.picks thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.picks tbody tr + tr { border-top: 1px solid var(--line); }
.picks tbody tr:nth-child(odd) { background: #fafcfa; }
.picks tbody th { font-weight: 800; white-space: nowrap; }
.rank {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 8px;
  background: var(--yellow-400); color: var(--green-900); font-size: .85rem;
}
.pill { display: inline-block; padding: 3px 10px; margin: 2px 4px 2px 0; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: .78rem; font-weight: 700; }
.table-foot { margin-top: 16px; font-weight: 700; }
@media (max-width: 760px) {
  .picks thead { display: none; }
  .picks, .picks tbody, .picks tr, .picks th, .picks td { display: block; width: 100%; }
  .picks tbody tr { padding: 16px; }
  .picks tbody th { padding: 0 0 10px; font-size: 1.05rem; }
  .picks td { padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; }
  .picks td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
  .picks td:last-child { padding-top: 12px; }
  .picks td:last-child .btn { width: 100%; }
}

/* 7. GCash & Maya */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.split p { color: var(--muted); }
.flags { background: var(--white); border-radius: var(--radius); padding: 28px; border: 2px solid var(--yellow-400); }
.flags ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.flags li { position: relative; padding-left: 32px; font-size: .95rem; }
.flags li::before {
  content: "!"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: #e5484d; color: var(--white); font-weight: 800; font-size: .8rem; display: grid; place-items: center;
}

/* 8. Demo */
.demo { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr 1fr; gap: 56px; } }
.demo__copy p { color: var(--muted); }
.demo__fine { font-size: .85rem; }
.demo__game {
  background: linear-gradient(160deg, var(--green-700), var(--green-900)); border-radius: 24px; padding: 28px;
  color: var(--white); box-shadow: var(--shadow);
}
.demo__dice { display: flex; justify-content: center; gap: 14px; margin-bottom: 24px; }
.cdie { width: 72px; height: 72px; border-radius: 16px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15), 0 10px 20px -8px rgba(0,0,0,.5); transition: transform .3s ease; }
.cdie.rolling { animation: shake .5s ease; }
@keyframes shake { 25% { transform: rotate(-14deg) scale(.92); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg) scale(1.05); } }
.demo__colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 20px; }
.demo__colors button { aspect-ratio: 1; border-radius: 12px; border: 3px solid transparent; cursor: pointer; }
.demo__colors button[aria-checked="true"] { border-color: var(--white); transform: scale(1.08); }
[data-c="yellow"] { background: #ffd23f; } [data-c="green"] { background: #1f9d63; } [data-c="red"] { background: #e5484d; }
[data-c="blue"] { background: #3b82f6; } [data-c="white"] { background: #f4f4f0; } [data-c="pink"] { background: #f472b6; }
.demo__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo__msg { margin: 16px 0 0; min-height: 1.6em; color: var(--yellow-300); font-weight: 600; }

/* 9. FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow-400); color: var(--green-900); display: grid; place-items: center; font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* 10. Author + RG */
.author { display: grid; gap: 28px; }
@media (min-width: 900px) { .author { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.author__card { display: grid; gap: 20px; align-content: start; }
@media (min-width: 560px) { .author__card { grid-template-columns: 120px 1fr; } }
.author__photo {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--yellow-400), var(--green-500)); color: var(--green-900);
  font-weight: 800; font-size: 2.2rem; border: 4px solid var(--white); box-shadow: var(--shadow);
  object-fit: cover; outline: 3px solid var(--yellow-400); outline-offset: 0;
}
.author__card h2 a { color: var(--green-800); text-decoration-color: var(--yellow-400); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.author__card p { color: var(--muted); }
.author__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.author__links a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--green-100); text-decoration: none; font-weight: 700; font-size: .85rem; }
.rg { background: var(--green-800); color: var(--white); border-radius: 24px; padding: 28px; }
.rg ol { padding-left: 1.2em; margin: 0 0 20px; display: grid; gap: 10px; color: #d7eadf; }
.rg__help { background: rgba(255,210,63,.14); border: 1px solid rgba(255,210,63,.4); border-radius: 12px; padding: 14px; margin: 0; font-size: .92rem; }
.rg a { color: var(--yellow-400); }

/* Footer */
.footer { background: var(--green-900); color: #b9d1c3; padding-top: 56px; font-size: .92rem; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.footer nav a { display: block; color: #b9d1c3; text-decoration: none; padding: 4px 0; }
.footer nav a:hover { color: var(--yellow-400); }
.footer__tag { margin-top: 14px; max-width: 34em; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 24px; padding-bottom: 32px; font-size: .82rem; }
.footer__legal .badge-21 { margin-right: 6px; }

/* Homepage additions */
.trust__item a { color: inherit; text-decoration: none; border-bottom: 2px solid rgba(6,50,31,.35); }
.trust__item a:hover { border-color: var(--green-900); }
.checker__popular-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 8px; }
.checker__popular { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.checker__popular a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: .82rem; font-weight: 700; text-decoration: none; }
.checker__popular a:hover { background: var(--yellow-400); }
.split__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--outline { color: var(--green-800); border-color: var(--green-800); }
.btn--outline:hover { background: var(--green-100); }
.footer__legal a { color: var(--yellow-400); }

/* Inner pages */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #9fb0a6; }
.crumbs a { color: var(--green-700); text-decoration: none; }
.page-head { padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -0.035em; max-width: 22em; }
.page-head .lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow-400); }
.byline a { font-weight: 700; color: var(--green-800); }
.page-body { display: grid; gap: 40px; padding: 40px 0 72px; }
@media (min-width: 1000px) { .page-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.prose { max-width: 720px; font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.8em; scroll-margin-top: 80px; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--green-800); color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.prose tbody tr:nth-child(even) { background: #f7faf8; }
.answer { background: var(--green-100); border-left: 5px solid var(--green-500); border-radius: 12px; padding: 16px 20px; margin: 0 0 1.6em; font-size: 1.05rem; }
.answer strong:first-child { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--green-700); margin-bottom: 4px; }
.callout { border-radius: 14px; padding: 16px 20px; margin: 1.4em 0; font-size: .97rem; }
.callout--warn { background: #fff1f1; border: 1px solid #f5c2c2; }
.callout--tip { background: var(--yellow-100); border: 1px solid #f3dc8a; }
.callout--help { background: var(--green-800); color: #e3f4ea; }
.callout--help a { color: var(--yellow-400); }
.toc { background: var(--cream); border-radius: 14px; padding: 18px 20px; margin-bottom: 1.6em; font-size: .95rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.aside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1000px) { .aside { position: sticky; top: 84px; } }
.aside__box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.aside__box h2 { font-size: 1rem; margin-bottom: 10px; }
.aside__box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.aside__box a { text-decoration: none; font-weight: 600; }
.aside__box--green { background: var(--green-800); color: #d7eadf; border: 0; }
.aside__box--green h2 { color: var(--white); }
.aside__box--green a { color: var(--yellow-400); }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; background: var(--cream); border-radius: var(--radius); padding: 20px; margin-top: 2.4em; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow-400); }
.author-box p { margin: 0; font-size: .93rem; color: var(--muted); }
.author-box strong { color: var(--ink); }
.faq-inline details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--white); }
.faq-inline summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.faq-inline details p { padding: 0 18px 14px; margin: 0; color: var(--muted); }
.brand-list { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.brand-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.brand-list li[hidden] { display: none; }
.status { font-size: .74rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status--unchecked { background: #eef1ef; color: var(--muted); }
.status--licensed { background: var(--green-100); color: var(--green-800); }
.status--unlicensed { background: #ffe1e1; color: #a61b1f; }
.prose .brand-list { padding-left: 0; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.brand-list li { min-width: 0; }
.brand-list li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.brand-list .status { flex-shrink: 0; }
.status--pending { background: var(--yellow-100); color: #7a5a00; }
.brand-list li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.brand-list small { font-weight: 500; font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.domain-result { border-radius: 14px; padding: 14px 18px; margin: 12px 0; }
.domain-result p { margin: 4px 0 0; font-size: .95rem; }
.domain-result--ok { background: var(--green-100); border: 2px solid var(--green-500); }
.domain-result--bad { background: #fff1f1; border: 2px solid #e5484d; }
.domain-result--bad strong { color: #a61b1f; }
.domain-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.domain-list li { margin: 0; }
.domain-list code { display: inline-block; background: var(--green-100); color: var(--green-800); border-radius: 8px; padding: 3px 9px; font-size: .85rem; }

/* Banner */
.hero__banner { position: relative; }
.hero__banner img {
  width: 100%; height: auto; border-radius: 22px; display: block;
  border: 4px solid rgba(255, 210, 63, .85);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
}
@media (min-width: 900px) { .hero__banner img { transform: rotate(1.5deg); } }
.page-banner {
  width: 100%; height: auto; display: block; border-radius: 16px; margin-bottom: 18px;
  box-shadow: 0 14px 30px -18px rgba(6, 50, 31, .45);
}
@media (min-width: 900px) {
  .page-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 48px; align-items: center; }
  .page-head > * { grid-column: 1; }
  .page-head > .page-banner { grid-column: 2; grid-row: 1 / span 6; margin: 0; align-self: center; }
}

/* Mobile menu */
.nav__menu { position: relative; }
.nav__menu summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-content: center; gap: 5px; background: var(--green-100);
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--green-800); transition: transform .2s ease, opacity .2s ease; }
.nav__menu[open] summary span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__menu[open] summary span:nth-child(2) { opacity: 0; }
.nav__menu[open] summary span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav__menu-panel {
  position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); z-index: 60;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  box-shadow: 0 20px 40px -16px rgba(6, 50, 31, .35); display: grid;
}
.nav__menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav__menu-panel a:hover, .nav__menu-panel a:focus-visible { background: var(--green-100); }
@media (min-width: 900px) { .nav__menu { display: none; } }
@media (max-width: 899px) { .nav__inner { gap: 10px; } .nav__cta { padding: 9px 14px; } }
@media (max-width: 380px) { .logo__word { font-size: 1.15rem; } .nav__cta { font-size: .82rem; padding: 8px 12px; } }

/* Mobile safety */
html, body { overflow-x: clip; }
.prose code, .domain-list code { overflow-wrap: anywhere; }
.page-head h1 { overflow-wrap: break-word; }
/* Let grid columns shrink below their content's width on small screens */
.page-body > *, .checker > *, .split > *, .demo > *, .author > *, .hero__grid > *, .cards > *, .footer__grid > * { min-width: 0; }
.prose table { max-width: 100%; }

/* Banner above homepage hero */
.top-banner { position: relative; z-index: 1; line-height: 0; padding: 24px 16px 0; }
.top-banner img {
  width: 100%; max-width: 760px; height: auto; display: block; margin: 0 auto;
  border-radius: 18px; border: 3px solid var(--yellow-400);
  box-shadow: 0 0 0 6px rgba(255,210,63,.15), 0 18px 40px -16px rgba(0,0,0,.65);
}
@media (max-width: 599px) { .top-banner { padding: 16px 16px 0; } .top-banner img { border-radius: 14px; } }

/* Top picks table: visible grid lines */
.table-wrap { border: 2px solid var(--green-800); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.picks th, .picks td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.picks thead th { border-right-color: rgba(255,255,255,.18); border-bottom: 0; }
.picks th:last-child, .picks td:last-child { border-right: 0; }
.picks tbody tr:last-child th, .picks tbody tr:last-child td { border-bottom: 0; }
.picks tbody tr + tr { border-top: 0; }
.picks tbody th a { color: var(--green-800); text-decoration: none; font-size: 1.02rem; }
.picks tbody th a:hover { text-decoration: underline; }
.picks tbody th small { display: block; font-size: .74rem; font-weight: 700; color: var(--green-500); margin-top: 2px; }
.picks tbody th { white-space: normal; }
.picks td:nth-child(2) { font-size: .88rem; color: var(--muted); max-width: 220px; }
.picks code { background: var(--green-100); color: var(--green-800); border-radius: 8px; padding: 3px 8px; font-size: .84rem; overflow-wrap: anywhere; }
.pill--wait { background: var(--yellow-100); color: #7a5a00; }
.picks tbody tr:hover { background: #f3faf6; }
.table-foot { font-size: .85rem; font-weight: 500; color: var(--muted); }
.table-foot a { font-weight: 700; }
@media (max-width: 760px) {
  .picks th, .picks td { border-right: 0; }
  .picks tbody tr { border-bottom: 2px solid var(--green-800); }
  .picks tbody tr:last-child { border-bottom: 0; }
  .picks td { border-bottom: 1px dashed var(--line); }
  .picks td:last-child { border-bottom: 0; }
  .picks td:nth-child(2) { max-width: none; text-align: right; }
  .picks td > span { display: flex; flex-wrap: wrap; justify-content: flex-end; }
}
.picks .btn { white-space: nowrap; }
@media (min-width: 761px) { .picks code { white-space: nowrap; overflow-wrap: normal; } }
.status--venue { background: #e8eefc; color: #2b4a9a; }

.banner-note { position: relative; z-index: 1; text-align: center; margin: 12px 16px 0; font-size: .85rem; color: #cfe3d7; }
.banner-note a { color: var(--yellow-400); font-weight: 700; }

/* Guide note under the banner on inner pages */
.page-banner-wrap { margin-bottom: 18px; }
.page-banner-wrap .page-banner { margin-bottom: 0; }
.banner-note--page { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.banner-note--page a { color: var(--green-700); }
@media (min-width: 900px) {
  .page-head > .page-banner-wrap { grid-column: 2; grid-row: 1 / span 6; margin: 0; align-self: center; }
}
.prose a, .prose td, .prose li { overflow-wrap: anywhere; }

/* Wordmark logo */
.logo__img { display: block; height: 46px; width: auto; }
.logo--light .logo__img { height: 52px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
@media (max-width: 380px) { .logo__img { height: 36px; } }
