/* LetrasBonitasYa — Positivus-based design system.
   Layout: 1240px column; tool first in hero, then Positivus-style section heads
   (green highlighted h2 + side note), outlined cards with a hard bottom shadow. */
:root {
  --green: #B9FF66;
  --ink: #191A23;          /* text on green, outlines, dark sections */
  --bg: #FFFFFF;
  --fg: #191A23;
  --muted: #4B4C57;
  --surface: #F3F3F3;      /* grey cards */
  --surface-2: #FFFFFF;
  --dark: #191A23;         /* dark cards / footer */
  --on-dark: #FFFFFF;
  --line: #191A23;
  --shadow: #191A23;
  --chip: #FFFFFF;
  --focus: #6B9F1E;
  --btn-bg: #191A23; --btn-fg: #FFFFFF;
  color-scheme: light;
  --font: 'Space Grotesk', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r-xl: 45px; --r-lg: 24px; --r-md: 14px; --r-sm: 7px;
  --wrap: 1240px;
  --fs-h1: clamp(2.35rem, 1.6rem + 3.2vw, 3.75rem);
  --fs-h2: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.35rem, 1.2rem + .7vw, 1.875rem);
  --fs-h4: 1.25rem;
  --fs-body: clamp(1rem, .95rem + .2vw, 1.125rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--focus); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
@media (min-width: 1100px) { .wrap { padding-inline: 50px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mark { background: var(--green); color: var(--ink); padding: 0 .22em; border-radius: var(--r-sm); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--green); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 1rem; padding: 14px 26px; border-radius: var(--r-md); border: 1px solid var(--ink); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; line-height: 1.2; }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-green { background: var(--green); color: var(--ink); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--line) 18%, transparent); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo .ya { background: var(--green); color: var(--ink); padding: 0 6px; border-radius: 6px; margin-left: 2px; }
.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: 6px; }
  .head-actions .nav-toggle { display: none; }
}
.nav > details { position: relative; }
.nav summary, .nav > a { white-space: nowrap; list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 10px; font-size: 1rem; text-decoration: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ''; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 8px; translate: 0 -3px; }
.nav summary:hover, .nav > a:hover { background: var(--surface); }
.nav .panel { position: absolute; top: calc(100% + 10px); left: 0; width: 290px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 5px 0 var(--shadow); padding: 14px; display: grid; gap: 2px; }
.nav .panel a, .nav .panel span { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.nav .panel a:hover { background: var(--green); color: var(--ink); }
.soon { color: var(--muted); cursor: default; }
.soon small { font-size: .72rem; border: 1px solid currentColor; border-radius: 99px; padding: 1px 7px; margin-left: 6px; }
.panel .hub-link { font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--line) 25%, transparent); border-radius: 0; margin-bottom: 4px; }
.mobile-nav { border-top: 1px solid color-mix(in srgb, var(--line) 25%, transparent); padding-block: 8px 20px; }
.mobile-nav details { border-bottom: 1px solid color-mix(in srgb, var(--line) 15%, transparent); }
.mobile-nav summary { padding: 14px 4px; font-weight: 500; cursor: pointer; }
.mobile-nav .m-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 0 4px 14px; }
.mobile-nav .m-links a, .mobile-nav .m-links span { padding: 6px 0; font-size: .95rem; text-decoration: none; }
@media (min-width: 1000px) { .mobile-nav { display: none !important; } }
.theme-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; display: inline-grid; place-items: center; }
.head-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; }

/* ---------- hero + tool ---------- */
.hero { padding-block: 28px 20px; display: grid; gap: 28px; }
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; padding-block: 48px 30px; gap: 48px; } }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-copy .lead { color: var(--muted); max-width: 60ch; }
.tool-input { position: relative; }
.tool-input label { font-weight: 500; display: block; margin-bottom: 8px; }
.tool-input textarea { width: 100%; min-height: 96px; resize: vertical; font: inherit; font-size: 1.25rem; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: 0 5px 0 var(--shadow); background: var(--surface-2); color: var(--fg); }
.tool-input textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 5px 0 var(--green), 0 0 0 1px var(--ink); }
.tool-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.tool-bar .count { color: var(--muted); font-size: .92rem; margin-left: auto; font-variant-numeric: tabular-nums; }

.preview { background: var(--dark); color: var(--on-dark); border-radius: var(--r-xl); padding: 28px; box-shadow: 0 5px 0 var(--shadow); border: 1px solid var(--line); display: grid; gap: 18px; min-width: 0; }
.preview .eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.profile { background: var(--bg); color: var(--fg); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; }
.profile-top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; color: var(--ink); flex: none; }
.stats { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); }
.stats b { display: block; color: var(--fg); font-size: 1rem; }
.p-name { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; min-height: 1.6em; }
.p-bio { font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
.preview-note { font-size: .88rem; opacity: .8; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.chip { flex: none; font: inherit; font-size: .95rem; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--chip); color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.results { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (min-width: 720px) { .results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.res { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 4px 0 var(--shadow); transition: transform .12s, box-shadow .12s; min-width: 0; }
.res:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow); }
.res.copied { background: var(--green); color: var(--ink); }
.res-copy { all: unset; box-sizing: border-box; display: grid; gap: 10px; width: 100%; padding: 18px 56px 16px 20px; cursor: pointer; border-radius: var(--r-lg); }
.res-copy:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.res-text { font-size: 1.35rem; line-height: 1.45; overflow-wrap: anywhere; min-height: 1.45em; }
.res-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .82rem; color: var(--muted); }
.res.copied .res-meta { color: var(--ink); }
.res-meta .nm { font-weight: 600; color: inherit; }
.compat { display: inline-flex; align-items: center; gap: 5px; }
.compat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3FA34D; }
.compat.media::before { background: #E3A008; }
.res-copy .copy-hint { font-size: .82rem; font-weight: 600; }
.fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.fav:hover { border-color: var(--line); }
.fav[aria-pressed="true"] { color: var(--ink); background: var(--green); border-color: var(--ink); }
.more-row { display: flex; justify-content: center; padding-top: 22px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 200%); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 500; transition: transform .2s, visibility .2s; z-index: 60; border: 1px solid var(--green); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.empty-favs { color: var(--muted); padding: 20px 0; }

/* ---------- platforms strip ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; padding-block: 34px 10px; color: var(--muted); }
.platforms span { font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; filter: grayscale(1); }
.platforms .lbl { font-weight: 400; font-size: .95rem; }

/* ---------- sections ---------- */
.section { padding-block: 56px 10px; }
@media (min-width: 1000px) { .section { padding-block: 90px 10px; } }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; }
@media (min-width: 900px) { .sec-head { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px; } }
.sec-head p { max-width: 58ch; }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h3 { margin-top: 16px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }

/* style cards (Positivus "services") */
.cards { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; } }
.card { border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: 0 5px 0 var(--shadow); padding: 34px; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; min-height: 230px; text-decoration: none; transition: transform .15s; }
a.card:hover { transform: translateY(-3px); }
.card.grey { background: var(--surface); }
.card.green { background: var(--green); color: var(--ink); }
.card.dark { background: var(--dark); color: var(--on-dark); }
.card h3 { align-self: start; grid-column: 1 / -1; display: grid; gap: 4px; justify-items: start; }
.card h3 span { padding: 0 7px; border-radius: var(--r-sm); background: var(--green); color: var(--ink); }
.card.green h3 span { background: #fff; }
.card .sample { grid-column: 1 / -1; font-size: 1.5rem; overflow-wrap: anywhere; }
.card .go { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; }
.arrow { width: 41px; height: 41px; border-radius: 50%; background: var(--ink); color: var(--green); display: inline-grid; place-items: center; flex: none; }
.card.dark .arrow { background: #fff; color: var(--ink); }
.card .soon-tag { font-size: .85rem; opacity: .75; }

/* CTA box */
.cta { background: var(--surface); border-radius: var(--r-xl); padding: 40px 28px; display: grid; gap: 22px; align-items: center; overflow: hidden; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) 320px; padding: 56px 60px; } }
.cta p { max-width: 52ch; }
.cta .nickdemo { font-size: 1.5rem; background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; border: 1px solid var(--line); box-shadow: 0 5px 0 var(--shadow); overflow-wrap: anywhere; }
.cta .nickdemo small { font-size: .8rem; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }

/* accordion (process + FAQ) */
.acc { display: grid; gap: 22px; }
.acc details { border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: 0 5px 0 var(--shadow); background: var(--surface); padding: 26px 28px; transition: background .2s; }
@media (min-width: 760px) { .acc details { padding: 34px 54px; } }
.acc details[open] { background: var(--green); color: var(--ink); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .num { font-size: clamp(2rem, 1.6rem + 1.5vw, 3.75rem); font-weight: 500; line-height: 1; }
.acc summary .q { flex: 1; min-width: 0; }
.acc summary .pm { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: var(--bg); color: var(--fg); display: grid; place-items: center; flex: none; font-size: 1.6rem; line-height: 1; }
.acc details[open] .pm { background: var(--bg); }
.acc details[open] .pm::before { content: '−'; }
.acc details:not([open]) .pm::before { content: '+'; }
.acc .body { border-top: 1px solid var(--ink); margin-top: 22px; padding-top: 22px; display: grid; gap: 12px; max-width: 75ch; }

/* dark ideas section */
.ideas { background: var(--dark); color: var(--on-dark); border-radius: var(--r-xl); padding: 44px 24px; border: 1px solid var(--line); }
@media (min-width: 760px) { .ideas { padding: 64px 56px; } }
.ideas-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ideas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.idea { border: 1px solid var(--green); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; align-content: space-between; min-width: 0; }
.idea .tag { color: var(--green); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.idea .txt { font-size: 1.2rem; overflow-wrap: anywhere; }
.idea button { justify-self: start; font: inherit; font-size: .9rem; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--green); background: transparent; color: var(--on-dark); cursor: pointer; }
.idea button:hover { background: var(--green); color: var(--ink); }

/* table */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .98rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 25%, transparent); vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
td.big { font-size: 1.2rem; }

.updated { color: var(--muted); font-size: .9rem; }

/* footer */
.site-foot { margin-top: 90px; }
.foot { background: var(--ink); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 50px 24px 30px; display: grid; gap: 36px; }
@media (min-width: 760px) { .foot { padding: 56px 60px 40px; } }
.foot-top { display: grid; gap: 30px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.1fr 2fr; } }
.foot .logo { color: #fff; }
.foot p { color: #C9CAD3; max-width: 42ch; margin-top: 14px; }
.foot-cols { display: grid; gap: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot h4 { font-size: .95rem; margin-bottom: 10px; }
.foot h4 span { background: var(--green); color: var(--ink); padding: 0 7px; border-radius: var(--r-sm); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.foot .soon { color: #8E8F99; }
.foot-bottom { border-top: 1px solid #3A3B46; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: #C9CAD3; }


/* ===== components used by inner pages ===== */
.two-col { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose code, .acc code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 30%, transparent); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.acc details[open] code { background: #fff; }

/* alphabet aside */
.profile.alpha { gap: 8px; }
.alpha-row { font-size: 1.15rem; line-height: 1.5; overflow-wrap: anywhere; letter-spacing: .02em; }
.alpha-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* chat aside (WhatsApp) */
.chat { background: #EDE6DB; border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 1rem; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.bubble.in { background: #fff; justify-self: start; border-top-left-radius: 4px; }
.bubble.out { background: #D9FDD3; justify-self: end; border-top-right-radius: 4px; font-size: 1.15rem; }

/* game nick aside */
.profile.game { background: linear-gradient(160deg, #2A2B36, #191A23); color: #fff; border: 1px solid var(--green); }
.profile.game .p-name { font-size: 1.4rem; color: #fff; }
.profile.game .p-bio { color: #C9CAD3; }
.lvl { justify-self: start; background: var(--green); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; }

/* tool panels (nick builder, invisible text) */
.panel-tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: 0 5px 0 var(--shadow); padding: 28px; display: grid; gap: 18px; min-width: 0; }
@media (min-width: 760px) { .panel-tool { padding: 34px 40px; } }
.fields { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 500; font-size: .95rem; }
.field select, .field input { font: inherit; font-size: 1rem; width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: var(--fg); }
.field select:focus, .field input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .98rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.out-box { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 16px 18px; }
.out-box .val { font-size: 1.35rem; overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; min-height: 1.4em; }
.meter { font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; color: #2F7D32; }
.meter.over { color: #B42318; }
.meter.over::after { content: ' · demasiado largo para el nick'; font-weight: 400; }

/* symbol catalog */
.sym-search { max-width: 520px; }
.sym-cats { display: grid; gap: 30px; }
.sym-cat h3 { font-size: 1.15rem; margin-bottom: 12px; }
.sym-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sym { font: inherit; font-size: 1.35rem; min-width: 52px; height: 52px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: transform .1s, background .1s; }
.sym.wide { font-size: 1.05rem; }
.sym:hover { background: var(--green); color: var(--ink); transform: translateY(-2px); }

/* invisible characters */
.inv-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.inv { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 4px 0 var(--shadow); background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; }
.inv strong { font-size: 1.1rem; font-weight: 600; }
.inv code { justify-self: start; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: var(--green); color: var(--ink); border-radius: 6px; padding: 1px 8px; }
.inv p { color: var(--muted); font-size: .95rem; }
.inv .btn { justify-self: start; padding: 10px 18px; }

/* Free Fire name lists */
.name-group { display: grid; gap: 10px; }
.name-group + .name-group { margin-top: 34px; }
.name-group > p { color: var(--muted); max-width: 70ch; }
.names { display: flex; flex-wrap: wrap; gap: 10px; }
.name-btn { font: inherit; font-size: 1.15rem; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; box-shadow: 0 3px 0 var(--shadow); transition: transform .1s; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.name-btn:hover { background: var(--green); color: var(--ink); transform: translateY(-2px); }

/* small copy buttons in tables */
.mini { font: inherit; font-size: .85rem; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--fg); cursor: pointer; white-space: nowrap; }
.mini:hover { background: var(--green); color: var(--ink); }
.ideas-grid.light .idea { border-color: var(--line); background: var(--surface); }
.ideas-grid.light .idea .tag { color: var(--muted); }
.ideas-grid.light .idea button { color: var(--fg); border-color: var(--line); }

/* related pages */
.rel-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 4px 0 var(--shadow); text-decoration: none; font-weight: 500; transition: transform .12s, background .12s; }
a.rel:hover { background: var(--green); color: var(--ink); transform: translateY(-2px); }
.rel .arrow { width: 34px; height: 34px; }
.soon-rel { color: var(--muted); }
.soon-rel small { font-size: .72rem; border: 1px solid currentColor; border-radius: 99px; padding: 1px 7px; }

/* legal pages */
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 22px; display: grid; gap: 6px; }

/* text tools (mayúsculas, números, texto normal) */
.field textarea { font: inherit; font-size: 1.05rem; width: 100%; min-height: 150px; resize: vertical; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: var(--fg); }
.field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { padding: 10px 16px; font-size: .95rem; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.num-results { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 0; max-height: 320px; overflow: auto; }
.meter.info { color: var(--muted); font-weight: 500; }
.kana { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.kana .sym { display: grid; gap: 2px; place-items: center; height: auto; padding: 10px 4px; font-size: 1.6rem; }
.kana .sym small { font-size: .78rem; color: var(--muted); }
.kana .empty { visibility: hidden; }

.nav > details:nth-last-child(-n+2) .panel { left: auto; right: 0; }

.cat-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-links a, .cat-links span { border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; text-decoration: none; background: var(--surface-2); font-size: .95rem; }
.cat-links a:hover { background: var(--green); }
.cat-links span { background: var(--green); font-weight: 600; }
.pair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border: 1px dashed var(--line); border-radius: 16px; }
.pair .amp { color: var(--muted); font-size: .9rem; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 6px; }

.firma-prev { background: var(--ink); color: #fff; border-radius: var(--r-md, 14px); padding: 16px 18px; min-height: 56px; font-size: 1.1rem; overflow-wrap: anywhere; }
.color-row { display: flex; flex-wrap: wrap; gap: 8px; }
.color-row .sym { width: auto; padding: 6px 12px; font-size: .9rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.field input[type=color] { width: 64px; height: 48px; padding: 4px; border-radius: 12px; border: 1px solid var(--ink); background: #fff; }

.rbx-checks { list-style: none; padding: 0; display: grid; gap: 6px; margin: 4px 0 0; }
.rbx-checks .ok { color: #1a7f37; }
.rbx-checks .ko { color: #c0362c; }

.nav .panel.wide { width: 470px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* phones: results come right after the text box; the preview card is moved below the results by app.js */
@media (max-width: 999px) { .hero { padding-bottom: 8px; } .preview.moved { margin-top: 32px; } }
