@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');
:root {
  --maxw: 1200px;
  --ac:         #2563EB;
  --ac-2:       #3B82F6;
  --ac-light:   #60A5FA;
  --ac-soft:    rgba(37, 99, 235, 0.07);
  --ac-ring:    rgba(37, 99, 235, 0.20);
  --grad-ac:    linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  --bg:           #F8FAFC;
  --surface:      #FFFFFF;
  --surface-2:    #F1F5F9;
  --surface-3:    #E2E8F0;
  --surface-card: rgba(255, 255, 255, 0.98);
  --glass:        rgba(248, 250, 252, 0.82);
  --tx-1:  #0F172A;
  --tx-2:  #475569;
  --tx-3:  #94A3B8;
  --tx-inv:#FFFFFF;
  --bd:      rgba(15, 23, 42, 0.08);
  --bd-mid:  rgba(15, 23, 42, 0.12);
  --bd-soft: rgba(15, 23, 42, 0.05);
  --sh-xs:  0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-sm:  0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh-md:  0 4px 20px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --sh-lg:  0 12px 40px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.06);
  --sh-ac:  0 4px 16px rgba(37, 99, 235, 0.24), 0 1px 4px rgba(37, 99, 235, 0.12);
  --sh-in:  inset 0 1px 2px rgba(15, 23, 42, 0.04);
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --ease-out:    cubic-bezier(0.16, 1, 0.30, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.45, 0.00, 0.55, 1);
  --grad-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #0F172A 100%);
  --mesh-1: radial-gradient(ellipse at 0% 0%,   rgba(37, 99, 235, 0.06) 0%, transparent 55%);
  --mesh-2: radial-gradient(ellipse at 100% 100%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
}
.dark {
  --bg:           #0B1120;
  --surface:      #111827;
  --surface-2:    #1E2736;
  --surface-3:    #2A3548;
  --surface-card: rgba(17, 24, 39, 0.96);
  --glass:        rgba(11, 17, 32, 0.86);
  --tx-1:  #F0F6FF;
  --tx-2:  #8BA1BF;
  --tx-3:  #4A6080;
  --bd:      rgba(240, 246, 255, 0.07);
  --bd-mid:  rgba(240, 246, 255, 0.11);
  --bd-soft: rgba(240, 246, 255, 0.04);
  --sh-xs:  0 1px 3px rgba(0, 0, 0, 0.30);
  --sh-sm:  0 2px 10px rgba(0, 0, 0, 0.40), 0 1px 3px rgba(0, 0, 0, 0.22);
  --sh-md:  0 4px 22px rgba(0, 0, 0, 0.50), 0 2px 6px rgba(0, 0, 0, 0.28);
  --sh-lg:  0 12px 44px rgba(0, 0, 0, 0.60), 0 4px 12px rgba(0, 0, 0, 0.36);
  --sh-ac:  0 4px 18px rgba(59, 130, 246, 0.30), 0 1px 4px rgba(59, 130, 246, 0.16);
  --sh-in:  inset 0 1px 3px rgba(0, 0, 0, 0.20);
  --ac:        #3B82F6;
  --ac-2:      #60A5FA;
  --ac-light:  #93C5FD;
  --ac-soft:   rgba(59, 130, 246, 0.10);
  --ac-ring:   rgba(59, 130, 246, 0.24);
  --grad-ac:   linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  --mesh-1: radial-gradient(ellipse at 0% 0%,   rgba(59, 130, 246, 0.08) 0%, transparent 55%);
  --mesh-2: radial-gradient(ellipse at 100% 100%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--tx-1);
  background-color: var(--bg);
  background-image: var(--mesh-1), var(--mesh-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 100px;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
*,
*::before,
*::after {
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.18s ease,
    box-shadow 0.24s ease;
}
.loader,
.loader * {
  transition: none !important;
}
h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--tx-1);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-weight: 600;
  color: var(--tx-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--tx-2);
  font-size: 0.875rem;
}
header {
  background: var(--grad-hero);
  position: relative;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), var(--sh-lg);
}
header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.30) 15%,
    rgba(96, 165, 250, 0.80) 50%,
    rgba(59, 130, 246, 0.30) 85%,
    transparent 100%
  );
}
header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: 62px;
}
header a {
  color: rgba(255, 255, 255, 0.40);
  padding: 5px 12px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
}
header a:hover {
  color: rgba(255, 255, 255, 0.90);
  background: rgba(255, 255, 255, 0.07);
}
.entry-header {
  width: 100%;
  text-align: center;
  padding: 16px 0 8px;
}
.entry-header h1 {
  color: var(--tx-1);
}
.entry-header p {
  color: var(--tx-2);
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  margin-top: 4px;
}
.dark .entry-header p {
  color: var(--tx-2);
}
#themeToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.22s var(--ease-out);
}
#themeToggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.90);
}
#themeToggle .icon-moon { display: inline; }
#themeToggle .icon-sun  { display: none; }
#themeToggle .label-dark  { display: inline; }
#themeToggle .label-light { display: none; }
.dark #themeToggle .icon-moon  { display: none; }
.dark #themeToggle .icon-sun   { display: inline; }
.dark #themeToggle .label-dark  { display: none; }
.dark #themeToggle .label-light { display: inline; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.input-section-wrapper,
.search-wrapper,
.top-search-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--bd);
  box-shadow: var(--sh-sm);
  padding: 18px 20px 14px;
  margin-bottom: 4px;
}
.dark .input-section-wrapper,
.dark .search-wrapper,
.dark .top-search-card {
  background: var(--surface);
  border-color: var(--bd-mid);
  box-shadow: var(--sh-md);
}
#topMenu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#topMenu::-webkit-scrollbar {
  display: none;
}
#topMenu a {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-2);
  border: 1px solid var(--bd-mid);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  transition: all 0.20s var(--ease-out);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
#topMenu a:hover {
  color: var(--ac);
  background: var(--ac-soft);
  border-color: var(--ac);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}
#topMenu a.active {
  color: var(--tx-inv);
  background: var(--grad-ac);
  border-color: transparent;
  box-shadow: var(--sh-ac);
}
#topMenu h3 {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 6px;
  white-space: nowrap;
  opacity: 0.45;
}
.dark #topMenu a {
  background: var(--surface);
  border-color: var(--bd-mid);
  color: var(--tx-2);
}
.dark #topMenu a:hover {
  color: var(--ac);
  background: var(--ac-soft);
  border-color: var(--ac);
}
.dark #topMenu a.active {
  color: var(--tx-inv);
  background: var(--grad-ac);
  border-color: transparent;
}
.input-section {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 10px;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--bd);
  margin-left: -28px;
  margin-right: -28px;
  padding: 12px 28px 14px;
}
.dark .input-section {
  background: rgba(11, 17, 32, 0.88);
  border-color: var(--bd-mid);
}
.input-section div {
  width: 100%;
  position: relative;
}
.input-section input {
  width: 100%;
  padding: 13px 52px 13px 21px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--bd-mid);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--tx-1);
  outline: none;
  box-shadow: var(--sh-sm), var(--sh-in);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input-section input::placeholder {
  color: var(--tx-3);
}
.input-section input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-ring), var(--sh-sm);
}
.dark .input-section input {
  background: var(--surface);
  color: var(--tx-1);
  border-color: var(--bd-mid);
}
.dark .input-section input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-ring), var(--sh-sm);
}
#input-count {
  position: absolute;
  right: 18px;
  bottom: 5px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--tx-3);
  letter-spacing: 0.04em;
  opacity: 0.50;
}
.clear-overlay {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--tx-3);
  z-index: 10;
  transition: color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.clear-overlay:hover {
  color: var(--ac);
  background: var(--ac-soft);
}
button,
#othertools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-sans);
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 26px;
  border-radius: var(--r-pill);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--grad-ac);
  color: #fff;
  box-shadow: var(--sh-ac);
  white-space: nowrap;
  transition:
    transform 0.20s var(--ease-spring),
    box-shadow 0.20s,
    opacity 0.16s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.36), 0 2px 8px rgba(37, 99, 235, 0.18);
}
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.btn.secondary {
  background: var(--surface);
  color: var(--tx-2);
  border: 1.5px solid var(--bd-mid);
  box-shadow: var(--sh-xs);
}
.btn.secondary:hover {
  border-color: var(--ac);
  color: var(--ac);
  background: var(--ac-soft);
  box-shadow: var(--sh-sm);
}
button.btn.closeit {
  background: rgba(220, 38, 38, 0.06);
  color: #DC2626;
  border: 1.5px solid rgba(220, 38, 38, 0.16);
}
button#menu {
  font-size: 1rem;
  height: 40px;
  width: 40px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--bd-mid);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  color: var(--tx-2);
  transition: all 0.18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
button#menu:hover {
  border-color: var(--ac);
  background: var(--ac-soft);
  color: var(--ac);
}
.dark .btn.secondary {
  background: var(--surface);
  color: var(--tx-2);
  border-color: var(--bd-mid);
}
.dark .btn.secondary:hover {
  background: var(--ac-soft);
  color: var(--ac);
  border-color: var(--ac);
}
.dark button#menu {
  background: var(--surface);
  border-color: var(--bd-mid);
  color: var(--tx-2);
}
.dark button#menu:hover {
  background: var(--ac-soft);
  border-color: var(--ac);
  color: var(--ac);
}
#othertools a {
  padding: 7px 14px;
  background: var(--surface);
  color: var(--tx-2);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  border: 1px solid var(--bd);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.18s var(--ease-out);
  box-shadow: var(--sh-xs);
}
#othertools a:hover {
  background: var(--grad-ac);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: var(--sh-ac);
}
.dark #othertools a {
  background: var(--surface);
  color: var(--tx-2);
  border-color: var(--bd-soft);
}
.dark #othertools a:hover {
  background: var(--grad-ac);
  color: #fff;
  border-color: transparent;
}
svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
#randomcloud {
  text-align: center;
  width: 100%;
  overflow: auto;
  scrollbar-width: none;
}
#randomcloud::-webkit-scrollbar { display: none; }
#randomcloud li {
  background: transparent;
  border: none;
  box-shadow: none;
}
#randomcloud p {
  color: var(--tx-2);
  background: transparent;
  text-align: center;
  border: none;
  font-size: 26px !important;
  padding: 10px 0 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.18s, transform 0.24s var(--ease-spring);
}
#randomcloud p:hover {
  color: var(--ac);
  transform: scale(1.14);
}
.dark #randomcloud p { color: var(--tx-2); }
.dark #randomcloud p:hover { color: var(--ac); }
#randombutton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  padding: 13px 32px;
  margin-top: 14px;
  background: var(--grad-ac);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--sh-ac);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s;
  -webkit-tap-highlight-color: transparent;
}
#randombutton:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.40);
}
.font-size-controller {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  padding: 10px 0;
}
.font-size-controller label {
  font-size: 0.60rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.font-size-controller input[type="range"] {
  width: 200px;
  height: 3px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border: none;
}
.font-size-controller input[type="range"]::-webkit-slider-runnable-track {
  background: var(--grad-ac);
  height: 3px;
  border-radius: var(--r-pill);
}
.font-size-controller input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border: 2px solid var(--ac);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(37, 99, 235, 0.28);
  cursor: grab;
  margin-top: -6.5px;
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s;
}
.font-size-controller input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.30);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.44);
}
#results {
  width: 100%;
}
.grid ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.letrasbonitaslist li {
  display: flex;
  align-items: stretch;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--bd);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s,
    border-color 0.20s;
}
.letrasbonitaslist li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-ac);
  opacity: 0;
  transition: opacity 0.22s;
  z-index: 1;
}
.letrasbonitaslist li:hover::before {
  opacity: 1;
}
.letrasbonitaslist li:hover {
  border-color: rgba(37, 99, 235, 0.30);
  transform: translateY(-3px);
  box-shadow: var(--sh-md), 0 0 0 1px var(--ac-ring);
}
.letrasbonitaslist li p {
  background: transparent;
  padding: 18px 0 30px 16px;
  margin: 0;
  color: var(--tx-1);
  cursor: pointer;
  user-select: none;
  text-align: left;
  width: 100%;
  position: relative;
  white-space: normal;
  word-break: break-word;
  font-family: var(--font-sans);
  overflow: hidden;
  border: none;
  line-height: 1.6;
  transition: background 0.16s;
}
.letrasbonitaslist li p:hover,
.letrasbonitaslist li p:focus {
  outline: none;
  background: var(--surface-2);
}
.letrasbonitaslist li i,
#flourishList li i {
  position: absolute;
  bottom: 7px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--tx-3);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.50;
}
.letrasbonitaslist li button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  padding: 8px 13px 8px 10px;
  gap: 4px;
  color: var(--tx-3);
  background: var(--surface-2);
  border: none;
  border-left: 1px solid var(--bd);
  cursor: pointer;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.letrasbonitaslist li button:hover {
  background: var(--grad-ac);
  color: #fff;
}
.dark .letrasbonitaslist li {
  background: var(--surface-card);
  border-color: var(--bd);
}
.dark .letrasbonitaslist li:hover {
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow: var(--sh-md), 0 0 0 1px var(--ac-ring);
}
.dark .letrasbonitaslist li p {
  color: var(--tx-1);
}
.dark .letrasbonitaslist li p:hover,
.dark .letrasbonitaslist li p:focus {
  background: var(--surface-2);
}
.dark .letrasbonitaslist li button {
  background: var(--surface-2);
  color: var(--tx-3);
  border-color: var(--bd-soft);
}
.dark .letrasbonitaslist li button:hover {
  background: var(--grad-ac);
  color: #fff;
}
.letrasbonitaslist {
  margin-bottom: 36px;
}
.letrasbonitaslist h2 {
  color: var(--tx-3);
  margin-bottom: 12px;
  font-size: 0.58rem;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.18em;
}
.letrasbonitaslist h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--bd-mid), transparent);
}
.buttons {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 99;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
.buttons button {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--bd-mid);
  box-shadow: var(--sh-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tx-2);
  transition: all 0.20s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.buttons button:hover {
  background: var(--grad-ac);
  color: #fff;
  border-color: transparent;
  transform: scale(1.10) translateY(-2px);
  box-shadow: var(--sh-ac);
}
#bulbBtn svg {
  stroke: var(--ac);
}
#bulbBtn:hover svg {
  stroke: #fff;
}
.dark .buttons button {
  background: var(--surface-2);
  color: var(--tx-2);
  border-color: var(--bd-mid);
}
.dark .buttons button:hover {
  background: var(--grad-ac);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-ac);
}
.f-m {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--bd-mid);
  box-shadow: -16px 0 60px rgba(15, 23, 42, 0.12);
  z-index: 9999;
  display: none;
  overflow-y: auto;
  padding: 22px 18px;
  -webkit-overflow-scrolling: touch;
}
.floatmenu h3 {
  font-family: var(--font-sans);
  color: var(--tx-3);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin-bottom: 8px;
}
.floatmenu a,
.right-menu a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tx-2);
  background: var(--surface-2);
  border: 1px solid var(--bd-soft);
  margin: 3px;
  white-space: nowrap;
  transition: all 0.18s var(--ease-out);
}
.floatmenu a:hover,
.right-menu a:hover {
  color: var(--ac);
  background: var(--ac-soft);
  border-color: var(--ac);
  transform: translateY(-1px);
}
.dark .f-m {
  background: var(--surface);
  border-color: var(--bd-mid);
  box-shadow: -16px 0 60px rgba(0, 0, 0, 0.50);
}
.dark .floatmenu a,
.dark .right-menu a {
  background: var(--surface-2);
  color: var(--tx-2);
  border-color: var(--bd-soft);
}
.dark .floatmenu a:hover,
.dark .right-menu a:hover {
  color: var(--ac);
  background: var(--ac-soft);
  border-color: var(--ac);
}
#fMN { overflow: auto; }
.fAr { display: none; }
#menu { color: var(--tx-2); }
.close-button {
  position: fixed;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 15px;
  border: 1.5px solid var(--bd-mid);
  border-radius: var(--r-md);
  color: var(--tx-2);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  transition: all 0.18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.close-button:hover {
  border-color: var(--ac);
  background: var(--ac-soft);
  color: var(--ac);
}
.dark .close-button {
  background: var(--surface);
  border-color: var(--bd-mid);
  color: var(--tx-2);
}
.dark .close-button:hover {
  background: var(--ac-soft);
  color: var(--ac);
  border-color: var(--ac);
}
.copied {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  position: fixed;
  top: 12%;
  right: 0;
  z-index: 9999;
  width: 210px;
  background: var(--grad-hero);
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-right: none;
  box-shadow: var(--sh-lg), 0 0 24px rgba(37, 99, 235, 0.16);
  animation: slideIn 0.26s var(--ease-spring);
}
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.copied textarea {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  resize: none;
  outline: none;
  padding: 6px;
}
.copied-btn {
  position: absolute;
  top: 8px;
  left: 10px;
  background: var(--grad-ac);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-weight: 700;
  border: none;
  cursor: default;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: var(--sh-ac);
}
.loader {
  width: 30px;
  height: 30px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--ac);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.page-load-status,
.aryapage {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 22px 0;
}
.loadmore {
  text-align: center;
  padding: 16px 0;
}
.flourish-popup {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.flourish-popup.hidden {
  display: none;
}
.popup-box {
  background: var(--surface);
  width: 92%;
  max-width: 440px;
  max-height: 70vh;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-lg), 0 0 0 1px var(--bd-mid);
  animation: popIn 0.28s var(--ease-spring);
}
.popup-box::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--grad-ac);
  flex-shrink: 0;
}
@keyframes popIn {
  from { transform: scale(0.93) translateY(16px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--bd);
  padding: 4px 16px;
}
.popup-header h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
  font-style: italic;
  color: var(--tx-1);
  padding: 12px 0;
  margin: 0;
}
.popup-header button {
  background: none;
  border: none;
  color: var(--tx-3);
  cursor: pointer;
  font-size: 15px;
  padding: 12px;
  border-radius: var(--r-sm);
  transition: background 0.16s, color 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.popup-header button:hover {
  background: var(--ac-soft);
  color: var(--ac);
}
.dark .popup-box {
  background: var(--surface);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--bd-mid);
}
.dark .popup-header {
  background: var(--surface-2);
  border-color: var(--bd);
}
.dark .popup-header h3 { color: var(--tx-1); }
.dark .popup-header button:hover {
  background: var(--ac-soft);
  color: var(--ac);
}
#flourishList {
  padding: 12px;
  overflow-y: auto;
  list-style: none;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
#flourishList li {
  margin-bottom: 8px;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--bd-soft);
  background: var(--surface-2);
  transition:
    transform 0.18s var(--ease-spring),
    border-color 0.18s,
    box-shadow 0.18s;
}
#flourishList li:hover {
  border-color: var(--ac);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm), 0 0 0 1px var(--ac-ring);
}
#flourishList .count {
  display: flex;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--tx-3);
  padding: 2px 8px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
#flourishList li p {
  font-size: 1rem !important;
  color: var(--tx-1);
  border-radius: 0;
  border: none;
  background: transparent;
  text-align: center;
  padding: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.16s;
}
#flourishList li:hover p { color: var(--ac); }
.dark #flourishList li {
  background: var(--surface-2);
  border-color: var(--bd-soft);
}
.dark #flourishList li:hover { border-color: var(--ac); }
.dark #flourishList li p { color: var(--tx-1); }
.dark #flourishList li:hover p { color: var(--ac); }
.flourishit {
  padding: 14px 16px;
  text-align: center;
  border-top: 1px solid var(--bd);
  background: var(--surface-2);
}
.dark .flourishit {
  background: var(--surface-2);
  border-color: var(--bd);
}
.select-flourish {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.select-flourish label {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--tx-2);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
#flourishSelect {
  appearance: none;
  padding: 8px 26px 8px 13px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--bd-mid);
  background: var(--surface);
  color: var(--tx-1);
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
#flourishSelect:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-ring);
}
.dark #flourishSelect {
  background: var(--surface);
  color: var(--tx-1);
  border-color: var(--bd-mid);
}
#flourishRegenerate {
  padding: 10px 28px;
  border-radius: var(--r-pill);
  background: var(--grad-ac);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--sh-ac);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s;
  -webkit-tap-highlight-color: transparent;
}
#flourishRegenerate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.38);
}
#flourishRegenerate:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.ads {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  margin: 16px 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px dashed var(--bd-mid);
  overflow: hidden;
}
.dark .ads {
  background: var(--surface-2);
  border-color: var(--bd-mid);
}
footer {
  margin-top: 72px;
  background: var(--grad-hero);
  padding: 30px 0;
  position: relative;
}
footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.30) 15%,
    rgba(96, 165, 250, 0.75) 50%,
    rgba(59, 130, 246, 0.30) 85%,
    transparent 100%
  );
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
footer a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.50);
  transition: color 0.18s;
}
footer a:hover { color: rgba(255, 255, 255, 0.90); }
footer p,
footer span {
  color: rgba(255, 255, 255, 0.24);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.info-text {
  font-family: var(--font-sans);
  line-height: 1.82;
  color: var(--tx-2);
  padding: 56px 52px;
  background: var(--surface);
  margin-top: 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--bd-soft);
  box-shadow: var(--sh-sm);
  white-space: normal;
  word-break: break-word;
  position: relative;
  overflow: hidden;
}
.info-text::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.info-text h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--tx-1);
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bd);
  letter-spacing: -0.01em;
  background: none;
  -webkit-text-fill-color: var(--tx-1);
  line-height: 1.22;
}
.info-text h2 {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--tx-1);
  margin-top: 46px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-style: normal;
  position: relative;
  padding-left: 16px;
}
.info-text h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--grad-ac);
  border-radius: 3px;
}
.info-text h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--tx-1);
  margin-top: 24px;
  margin-bottom: 8px;
  font-style: normal;
}
.info-text p {
  font-size: 0.97rem;
  margin-bottom: 16px;
  color: var(--tx-2);
}
.info-text ul,
.info-text ol {
  margin-bottom: 22px;
  padding-left: 20px;
}
.info-text li {
  font-size: 0.97rem;
  margin-bottom: 7px;
}
.info-text strong {
  color: var(--tx-1);
  font-weight: 600;
}
.info-text code {
  background: var(--surface-2);
  color: var(--ac);
  padding: 2px 7px;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  word-break: break-all;
  display: inline-block;
  margin: 1px;
  border: 1px solid var(--bd-soft);
}
.info-text img {
  max-width: 100%;
  border-radius: var(--r-md);
}
.info-text ul { overflow: auto; }
.info-text .example-box {
  background: var(--surface-2);
  border-left: 3px solid var(--ac);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 22px 0;
}
.info-text .example-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.63rem;
  color: var(--ac);
  margin-top: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.13em;
  font-style: normal;
  text-transform: uppercase;
}
.info-text .example-title:first-child { margin-top: 0; }
.info-text .example-box ol {
  list-style-type: decimal;
  margin-bottom: 10px;
}
.info-text .example-box li {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--tx-1);
  background: var(--surface);
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: var(--r-sm);
  border: 1px solid var(--bd-soft);
}
.copyright-area { color: #fff; }
.dark .info-text {
  background: var(--surface);
  border-color: var(--bd-soft);
}
.dark .info-text h1 {
  color: var(--tx-1);
  -webkit-text-fill-color: var(--tx-1);
  border-color: var(--bd);
}
.dark .info-text h2,
.dark .info-text h3 { color: var(--tx-1); }
.dark .info-text p  { color: var(--tx-2); }
.dark .info-text strong { color: var(--tx-1); }
.dark .info-text code {
  background: var(--surface-3);
  color: var(--ac);
  border-color: var(--bd-soft);
}
.dark .info-text .example-box {
  background: var(--surface-2);
}
.dark .info-text .example-box li {
  background: var(--surface-3);
  border-color: var(--bd-soft);
  color: var(--tx-1);
}
@media (max-width: 940px) {
  .grid ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 1.60rem;
  }
  .container {
    padding: 0 16px;
    max-width: 100%;
  }
  .input-section {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  header .inner {
    padding: 0 16px;
    height: 54px;
  }
  footer .inner {
    padding: 0 16px;
  }
  .f-m {
    width: 100%;
  }
  .font-size-controller input[type="range"] {
    width: 120px;
  }
  .grid ul {
    grid-template-columns: 1fr;
  }
  .info-text {
    padding: 26px 18px;
    border-radius: var(--r-lg);
  }
  .info-text h1 {
    font-size: 1.72rem;
  }
  .info-text h2 {
    font-size: 1.10rem;
  }
  .floatmenu a {
    display: block;
  }
}
:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}