/* FuentesLetras — the after-copy sheet and the "Crear mi nick" view of awesometoolkit's fancy text
   generator (same markup as mudarletras.com), in this site's dark colours. */
:root {
  --bg-surface: #13132a; --bg-inset: rgba(255,255,255,.05); --text-primary: #f1f5f9; --text-secondary: #cbd5e1;
  --text-tertiary: #a5b0c2; --text-muted: #8b95a7; --border-strong: rgba(255,255,255,.16); --accent-hover: #a78bfa;
  --accent-subtle: rgba(139,92,246,.16); --accent-text: #c4b5fd; --ok: #34d399;
  --offer-bg: linear-gradient(135deg, rgba(30,27,75,.6), rgba(46,16,101,.5) 50%, rgba(74,4,78,.45));
  --sheet-shadow: 0 -12px 48px -12px rgba(0,0,0,.8); --font: inherit;
  --glyphs: "Segoe UI Symbol", "Noto Sans Math", "Cambria Math", "Apple Symbols", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
}
[hidden] { display: none !important; }
.panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.text-panel .head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.text-panel .title { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.text-panel .count { font-size: 12.5px; color: var(--text-muted); }
.chip { border: 0; background: none; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.chip:hover { background: var(--bg-inset); color: var(--text-primary); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.ghost { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.ghost:hover { background: var(--bg-inset); color: var(--text-primary); }
.ico { width: 1em; height: 1em; flex-shrink: 0; }
/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--text-primary); color: var(--bg-surface); padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: transform .25s, opacity .25s; z-index: 50; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* After-copy sheet (the fancy text generator's) */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88dvh; overflow-y: auto; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 24px 24px 0 0; padding: 8px 16px 16px; box-shadow: var(--sheet-shadow); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); }
.sheet.show { transform: translateY(0); }
@media (min-width: 640px) { .sheet { left: auto; right: 24px; bottom: 24px; width: 580px; border-radius: 24px; padding: 20px; } }
.sheet .grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0 auto 8px; }
@media (min-width: 640px) { .sheet .grip { display: none; } }
.sheet .x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: none; border-radius: 10px; color: var(--text-muted); cursor: pointer; font-size: 16px; }
.sheet .x:hover { color: var(--text-primary); }
.sheet .ok { margin: 0; padding-right: 40px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.sheet .title { margin: 4px 0 0; padding-right: 40px; font-size: 17px; font-weight: 700; line-height: 1.25; }
.sheet .offer { margin-top: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--offer-bg); }
@media (min-width: 640px) { .sheet .offer { padding: 16px; } }
.sheet .offer-h { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.sheet .offer-d { margin: 2px 0 0; font-size: 12.5px; color: var(--text-tertiary); }
.avatars { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; row-gap: 12px; }
@media (min-width: 640px) { .avatars { grid-template-columns: repeat(6, 1fr); row-gap: 0; } }
.avatar { position: relative; display: block; border-radius: 50%; transition: transform .15s; animation: pop .35s both; }
.avatar:hover { transform: scale(1.05); }
.avatar:active { transform: scale(.95); }
.avatar canvas { display: block; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 8px 18px -6px rgba(0, 0, 0, .45); }
@media all { .avatar canvas { box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 8px 18px -6px rgba(0, 0, 0, .6); } }
.avatar:hover canvas { box-shadow: 0 0 0 3px var(--accent), 0 8px 18px -6px rgba(0, 0, 0, .45); }
.avatar .pen { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-surface); }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.sheet .more { margin-top: 12px; display: flex; justify-content: flex-end; }
.sheet .more a { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.sheet .bottom { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet .free { font-size: 11.5px; color: var(--text-muted); }
.sheet .keep { border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--accent-text); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; }
.ico { width: 1em; height: 1em; flex-shrink: 0; }

/* Views: "Estilos" / "Crear mi nick" (the fancy text generator's big cards) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.view-card { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg-surface); cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.view-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.view-card[aria-selected="true"] { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-text); }
.view-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-inset); color: var(--text-tertiary); }
.view-ico .ico { width: 15px; height: 15px; }
.view-card[aria-selected="true"] .view-ico { background: var(--accent); color: #fff; }
.view-badge { position: absolute; top: -9px; right: 10px; background: #fbbf24; color: #0f172a; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
@media (max-width: 480px) { .view-card { font-size: 13.5px; padding: 9px 8px; } .view-ico { width: 24px; height: 24px; } }

/* "Crear mi nick" */
.panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.panel-head .title, .nick-field .label, .nick-group .label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.panel-head .title { margin-right: auto; }
.nick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; margin-bottom: 14px; }
.nick-group { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nick-group .label { margin: 0 6px 0 4px; }
.select { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 14px; max-width: 220px; }
.nick-random { margin-left: auto; }
.nick-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 1000px) { .nick-grid { grid-template-columns: minmax(0, 1fr) 320px; } .nick-side { position: sticky; top: 76px; } }
.nick-main, .nick-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.nick-fields { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.nick-field { display: block; }
.nick-field .label { display: block; margin-bottom: 6px; }
.nick-sides { display: grid; gap: 12px; }
@media (min-width: 640px) { .nick-sides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 16px; }
.field:focus, .select:focus { outline: 0; border-color: var(--accent); }
.field-wrap { position: relative; display: block; }
.field-wrap .field { padding-right: 36px; }
.field-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; }
.field-x:hover { color: var(--text-primary); }
.nick-out { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; }
@media (min-width: 640px) { .nick-out { flex-direction: row; align-items: center; } }
.nick-value { flex: 1; min-width: 0; font-family: var(--glyphs), var(--font); font-size: 24px; line-height: 1.35; color: var(--text-primary); overflow-wrap: anywhere; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary.done { background: #059669; }
.nick-hint { margin: 0; padding: 0 16px 12px; font-size: 11.5px; color: var(--text-muted); }
.nick-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--accent-text); }
.nick-link:hover { background: var(--bg-inset); text-decoration: none; }
.nick-link:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.nick-link-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-subtle); flex-shrink: 0; }
.nick-link-text { flex: 1; min-width: 0; }
.nick-link-text b { display: block; font-size: 14px; color: var(--text-primary); }
.nick-link-text small { display: block; font-size: 12px; color: var(--text-tertiary); }
.sides { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); }
.mini { border: 0; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; background: var(--bg-inset); color: var(--text-tertiary); cursor: pointer; flex-shrink: 0; }
.mini[aria-pressed="true"] { background: var(--accent); color: #fff; }
.cats { display: flex; gap: 4px; padding: 12px 12px 0; overflow-x: auto; scrollbar-width: none; }
.cat { flex-shrink: 0; border: 0; background: none; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--text-tertiary); cursor: pointer; }
.cat:hover { background: var(--bg-inset); }
.cat[aria-pressed="true"] { background: var(--accent-subtle); color: var(--accent-text); }
.symbols { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.sym { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font-size: 18px; cursor: pointer; }
.sym.wide { min-width: 58px; padding: 0 10px; }
.sym:hover { border-color: var(--accent); background: var(--accent-subtle); }
#panel-nick .fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
@media (min-width: 640px) { #panel-nick .fonts { grid-template-columns: repeat(3, 1fr); } }
.font-pick { height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary); font-family: var(--glyphs), var(--font); font-size: 16px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.font-pick:hover { border-color: var(--accent); }
.font-pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-subtle); color: var(--text-primary); }
.surfaces { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.surfaces .mini { background: none; }
.surfaces .mini[aria-pressed="true"] { background: var(--accent); }
.preview-wrap { padding: 16px; }
.preview-wrap .note { margin: 8px 0 0; font-size: 11px; color: var(--text-muted); }
.invisible { padding: 16px; }
.inv-title { margin: 0; font-size: 14px; font-weight: 700; }
.inv-desc { margin: 4px 0 12px; font-size: 13px; color: var(--text-tertiary); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); }

/* The preview's generic screens (their own colours whatever the theme) */
.preview-box { border-radius: 14px; }
.preview-box .bar { display: block; height: 8px; border-radius: 99px; background: #e5e5e5; }
.preview-box .bar.dark { background: #262626; }
.pv-text { margin: 0; font-family: var(--glyphs), var(--font); overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.35; }
.pv-profile { background: #fff; color: #171717; padding: 16px; border: 1px solid #e5e5e5; }
.pv-top { display: flex; align-items: center; gap: 16px; }
.pv-ring { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #fbbf24, #ec4899, #7c3aed); }
.pv-ring span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #e5e5e5; border: 2px solid #fff; }
.pv-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-stats > span { display: grid; gap: 4px; justify-items: center; }
.pv-profile .pv-text { margin-top: 12px; font-size: 14px; font-weight: 600; }
.pv-lines { margin-top: 8px; display: grid; gap: 6px; }
.pv-video { background: #0a0a0a; color: #fff; padding: 20px; text-align: center; }
.pv-avatar { display: block; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #404040; }
.pv-video .pv-text { margin-top: 12px; font-size: 16px; font-weight: 700; }
.pv-handle { margin: 4px 0 0; font-size: 11px; color: #a3a3a3; }
.pv-btns { margin-top: 12px; display: flex; justify-content: center; gap: 8px; }
.pv-btns span { width: 40px; height: 28px; border-radius: 6px; background: #262626; }
.pv-btns .red { width: 96px; background: #f43f5e; }
.pv-chat { background: #e9dfd4; padding: 16px; display: grid; gap: 8px; }
.pv-in { max-width: 80%; background: #fff; border-radius: 0 8px 8px 8px; padding: 8px 12px; }
.pv-out { margin-left: auto; max-width: 85%; width: fit-content; background: #d9fdd3; color: #171717; border-radius: 8px 0 8px 8px; padding: 8px 12px; }
@media (prefers-color-scheme: dark) { .pv-chat { background: #0b141a; } .pv-in { background: #202c33; } .pv-in .bar { background: #525252; } .pv-out { background: #005c4b; color: #fff; } }
.pv-out .pv-text { font-size: 14px; }
.pv-time { margin: 2px 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10px; color: #737373; }
.pv-game { background: linear-gradient(135deg, #0f172a, #1e1b4b, #0f172a); }
.pv-game .pv-game { background: none; color: #fff; padding: 16px 16px 12px; display: flex; align-items: center; gap: 12px; }
.pv-badge { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, #fbbf24, #ea580c); border: 2px solid rgba(253, 230, 138, .6); }
.pv-game .pv-text { font-size: 16px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pv-level { display: inline-block; margin-top: 4px; padding: 0 6px; border-radius: 4px; background: rgba(251, 191, 36, .9); color: #0f172a; font-size: 10px; font-weight: 800; }
.pv-xp { margin: 0 16px; padding-bottom: 16px; }
.pv-xp span { display: block; height: 6px; width: 66%; border-radius: 99px; background: linear-gradient(90deg, #34d399, #bef264); }
/* A phone: the name card first, on the first screen (as on awesometoolkit) */
@media (max-width: 999px) { #panel-nick { display: flex; flex-direction: column; gap: 14px; } #panel-nick .nick-grid, #panel-nick .nick-main { display: contents; } #panel-nick .nick-bar { margin-bottom: 0; } #panel-nick .nick-fields { order: -1; } }

/* Ready-made examples in the page's text */
.examples { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; gap: 8px; }
@media (min-width: 640px) { .examples { grid-template-columns: 1fr 1fr; } }
.example { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); cursor: pointer; text-align: left; }
.example:hover { border-color: var(--accent); }
.ex-value { flex: 1; min-width: 0; font-family: var(--glyphs), var(--font); font-size: 18px; overflow-wrap: anywhere; }
.ex-copy { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.example:hover .ex-copy { color: var(--accent-text); }
.example.copied { border-color: var(--ok); }
.example.copied .ex-copy { color: var(--ok); }

.tool-views { max-width: 900px; margin: 0 auto 1rem; padding: 0 1rem; }
#panel-nick { max-width: 1100px; margin: 0 auto; padding: 0 1rem 1rem; }
