@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

a {
  text-decoration: none
}

:root {
  --lbg: #ffffff;
  --bg: #f5f4ff;
  --bg-alt: #eeeeff;
  --surface: #ffffff;
  --surface-2: #f0efff;
  --surface-3: #e4e2ff;
  --text-1: #1a1740;
  --text-2: #4b4880;
  --text-3: #8b88c0;
  --text-4: #c4c2e8;
  --ac-start: #6366f1;
  --ac-end: #8b5cf6;
  --ac: #6366f1;
  --ac-lt: #818cf8;
  --ac-dk: #4f46e5;
  --ac-mid: #7c5cf6;
  --ac-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --ac-gradient-hover: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --ac-gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  --ac-tint: rgba(99, 102, 241, 0.10);
  --ac-ring: rgba(99, 102, 241, 0.28);
  --bd: rgba(99, 102, 241, 0.08);
  --bd-md: rgba(99, 102, 241, 0.15);
  --bd-hi: rgba(99, 102, 241, 0.25);
  --e-1: 0 1px 4px rgba(99, 102, 241, 0.08);
  --e-2: 0 4px 20px rgba(99, 102, 241, 0.12);
  --e-3: 0 16px 48px rgba(99, 102, 241, 0.18);
  --e-glow: 0 0 30px rgba(139, 92, 246, 0.20);
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-bd: rgba(99, 102, 241, 0.12);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 9999px;
  --sans: 'Plus Jakarta Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --brand: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --maxw: 970px;
  --t-fast: 90ms;
  --t-base: 160ms;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bounce: cubic-bezier(0.34, 1.20, 0.64, 1);
  --font-style: 'Plus Jakarta Sans', -apple-system, sans-serif
}

.dark {
  --lbg: #0d0c1a;
  --bg: #0f0e1e;
  --bg-alt: #13122a;
  --surface: #171630;
  --surface-2: #1e1c38;
  --surface-3: #272547;
  --text-1: #eeeeff;
  --text-2: #a8a6d8;
  --text-3: #6563a0;
  --text-4: #332f5e;
  --bd: rgba(139, 92, 246, 0.10);
  --bd-md: rgba(139, 92, 246, 0.18);
  --bd-hi: rgba(139, 92, 246, 0.28);
  --e-1: 0 1px 4px rgba(0, 0, 0, 0.40);
  --e-2: 0 4px 20px rgba(0, 0, 0, 0.55);
  --e-3: 0 16px 48px rgba(0, 0, 0, 0.75);
  --e-glow: 0 0 40px rgba(139, 92, 246, 0.18);
  --header-bg: rgba(13, 12, 26, 0.88);
  --header-bd: rgba(139, 92, 246, 0.14);
  --ac-tint: rgba(139, 92, 246, 0.14);
  --ac-ring: rgba(139, 92, 246, 0.30);
  --ac-gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(139, 92, 246, 0.16) 100%)
}

html,
body {
  height: 100%
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 100px;
  background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 40%), radial-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px
}

.dark body {
  background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.10) 0%, transparent 40%), radial-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px
}

h1 {
  font-family: var(--sans);
  font-size: 1.55rem;
  font-weight: 800;
  font-style: normal;
  color: var(--text-1);
  line-height: 1.22;
  letter-spacing: -0.02em
}

h2 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 10px
}

h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.02em
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px
}

header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-bd);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%)
}

header::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--ac-gradient);
  position: absolute;
  top: 0;
  left: 0;
  right: 0
}

header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px
}

header .site-logo {
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--ac-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0;
  border-radius: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity var(--t-fast)
}

header .site-logo:hover {
  opacity: 0.75
}

header a {
  color: var(--text-2);
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: color var(--t-fast), background var(--t-fast)
}

header a:hover {
  color: var(--ac);
  background: var(--ac-tint)
}

#themeToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--bd-md);
  background: transparent;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast)
}

#themeToggle:hover {
  background: var(--ac-tint);
  border-color: var(--ac);
  color: var(--ac)
}

#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
}

#topMenu {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--surface);
  border-bottom: 1px solid var(--bd-md);
  scrollbar-width: none;
  box-shadow: var(--e-1)
}

#topMenu::-webkit-scrollbar {
  display: none
}

#topMenu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 0;
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex: 1
}

#topMenu a:hover {
  background: var(--surface-2);
  color: var(--ac)
}

#topMenu a.active {
  background: var(--ac-tint);
  color: var(--ac);
  border-bottom-color: var(--ac);
  font-weight: 700
}

#topMenu h3 {
  font-size: 0.50rem;
  color: var(--text-4);
  margin: 0 8px;
  flex-shrink: 0
}

.input-section {
  display: flex;
  position: sticky;
  top: 0px;
  z-index: 40;
  gap: 6px;
  align-items: center;
  padding: 8px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--bd)
}

.input-section div {
  width: 100%;
  position: relative
}

.input-section textarea {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--bd-md);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-1);
  outline: none;
  text-align: center;
  resize: none;
  transition: border-color var(--t-base), background var(--t-fast), box-shadow var(--t-base);
  box-shadow: var(--e-1)
}

.input-section textarea:focus {
  border-color: var(--ac);
  background: var(--lbg);
  box-shadow: 0 0 0 4px var(--ac-ring), var(--e-2)
}

.input-section textarea::placeholder {
  color: var(--text-3);
  font-style: normal
}

#input-count {
  position: absolute;
  right: 22px;
  bottom: 11px;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  font-family: var(--mono);
  text-transform: uppercase
}

.clear-overlay {
  position: absolute;
  right: 10px;
  top: 45%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-3);
  transition: color var(--t-fast), background var(--t-fast)
}

.clear-overlay:hover {
  color: var(--ac);
  background: var(--ac-tint)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  border: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--ac-gradient);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
  transition: opacity var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast)
}

.btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px)
}

.btn:active {
  opacity: 0.82;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25)
}

.btn.secondary {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid var(--bd-hi);
  box-shadow: var(--e-1)
}

.btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--ac);
  color: var(--ac)
}

.btn.closeit {
  background: transparent;
  color: #ef4444;
  border: 1.5px solid rgba(239, 68, 68, 0.22);
  box-shadow: none
}

.btn.closeit:hover {
  background: rgba(239, 68, 68, 0.08);
  box-shadow: none
}

button,
#othertools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation
}

button#menu {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-1);
  font-size: 1.2rem;
  transition: background var(--t-fast), color var(--t-fast)
}

button#menu:hover {
  background: var(--ac-tint);
  color: var(--ac)
}

#randomcloud {
  text-align: center;
  height: 120px;
  overflow: hidden;
  margin-top: 12px
}

#randomcloud li {
  background: transparent;
  border: none;
  box-shadow: none;
  display: inline-block
}

#randomcloud p {
  color: var(--text-2);
  font-size: 17px;
  padding: 5px;
  margin: 0 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  transition: color var(--t-fast), transform var(--t-base) var(--bounce)
}

#randomcloud p:hover {
  color: var(--ac);
  transform: scale(1.14)
}

#randombutton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  margin-top: 14px;
  background: var(--ac-gradient);
  color: #fff;
  border-radius: var(--r-pill);
  border: none;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.38);
  transition: opacity var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast)
}

#randombutton:hover {
  opacity: 0.90;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.48);
  transform: translateY(-1px)
}

.font-size-controller {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  padding: 10px 0
}

.font-size-controller label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em
}

.font-size-controller input[type="range"] {
  width: 220px;
  height: 5px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer
}

.font-size-controller input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--ac-gradient);
  border: 2px solid var(--lbg);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 0 0 2px var(--ac), 0 2px 8px rgba(99, 102, 241, 0.30);
  transition: transform var(--t-fast)
}

.font-size-controller input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.28)
}

#results {
  width: 100%
}

.grid ul {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none
}

.preppyfontlist h2 {
  margin-bottom: 10px;
  padding-left: 2px
}

.preppyfontlist 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(--e-1);
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast)
}

.preppyfontlist li:hover {
  border-color: var(--bd-hi);
  background: var(--surface-2);
  box-shadow: var(--e-2);
  transform: translateY(-1px)
}

.preppyfontlist li p {
  padding: 14px 0 28px 16px;
  color: var(--text-1);
  cursor: pointer;
  user-select: none;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  font-family: var(--font-style);
  background: transparent;
  border: none;
  line-height: 1.5;
  font-size: 17px;
  z-index: 1;
  transition: none
}

.preppyfontlist li p:hover,
.preppyfontlist li p:focus {
  outline: none;
  background: transparent
}

.preppyfontlist li div,
#flourishList li div {
  position: absolute;
  bottom: 5px;
  left: 16px;
  display: flex;
  gap: 6px;
  flex-direction: row-reverse;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0
}

.preppyfontlist li i,
#flourishList li i {
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: none;
  font-style: normal;
  font-family: var(--mono)
}

.preppyfontlist li i:nth-of-type(2) {
  background: var(--surface-3);
  padding: 0 5px;
  border-radius: 3px
}

.preppyfontlist li button,
.preppyfontlist li .remove-font {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  width: 70px;
  font-size: 16px;
  color: var(--text-3);
  background: transparent;
  border: none;
  border-left: 1px solid var(--bd);
  cursor: pointer;
  border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast)
}

.preppyfontlist li button:hover,
.preppyfontlist li .remove-font:hover {
  background: var(--ac-tint);
  color: var(--ac)
}

.buttons {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 99;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px
}

.buttons button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ac-gradient);
  border: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.38), var(--e-glow);
  color: #fff;
  transition: opacity var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast)
}

.buttons button:hover {
  opacity: 0.90;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.50);
  transform: translateY(-2px) scale(1.04)
}

#bulbBtn {
  background: var(--surface-2);
  color: var(--text-2);
  box-shadow: var(--e-1)
}

#bulbBtn:hover {
  background: var(--ac-tint);
  color: var(--ac);
  box-shadow: var(--e-2)
}

svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none
}

#othertools a {
  padding: 10px 18px;
  margin: 5px;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid var(--bd-md);
  text-transform: none;
  box-shadow: var(--e-1);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast)
}

#othertools a:hover {
  background: var(--ac-tint);
  color: var(--ac);
  border-color: var(--ac);
  box-shadow: var(--e-2)
}

.floatmenu {
  margin-top: 30px
}

.f-m {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--bd-md);
  box-shadow: -12px 0 48px rgba(99, 102, 241, 0.15), -4px 0 16px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: none;
  overflow-y: auto;
  padding: 20px 16px;
  text-align: right;
  backdrop-filter: blur(12px)
}

.f-m::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--ac-gradient);
  position: absolute;
  top: 0;
  left: 0;
  right: 0
}

.floatmenu h3 {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px
}

.floatmenu a,
.right-menu a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-1);
  background: transparent;
  border: 1.5px solid var(--bd-md);
  margin: 4px;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast)
}

.floatmenu a:hover,
.right-menu a:hover {
  background: var(--ac-tint);
  border-color: var(--ac);
  color: var(--ac)
}

.close-button {
  position: fixed;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  border: 1px solid var(--bd-md);
  border-radius: 50%;
  color: var(--text-1);
  background: var(--surface);
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast)
}

.close-button:hover {
  background: var(--ac-tint);
  border-color: var(--ac);
  color: var(--ac)
}

.copied {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  position: fixed;
  top: 20%;
  right: 0;
  z-index: 9999;
  width: auto;
  min-width: 168px;
  background: var(--ac-gradient);
  border-radius: 8px 0 0 8px;
  color: #fff;
  border: none;
  animation: tweetToast 0.18s var(--bounce);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.40)
}

@keyframes tweetToast {
  from {
    transform: translateX(100%);
    opacity: 0
  }

  to {
    transform: translateX(0);
    opacity: 1
  }
}

.copied textarea {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.80);
  font-family: var(--mono);
  font-size: 0.70rem;
  resize: none;
  outline: none;
  padding: 4px
}

.copied-btn {
  position: absolute;
  top: 8px;
  left: 14px;
  background: var(--ac-gradient);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 2px 10px;
  font-size: 0.57rem;
  font-weight: 700;
  border: none;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  backdrop-filter: blur(4px)
}

.loader {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--surface-3);
  border-top-color: var(--ac);
  border-radius: 50%;
  animation: spin 0.5s linear infinite
}

.loader,
.loader * {
  transition: none !important
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.page-load-status,
.aryapage {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 20px 0
}

.flourish-popup {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 22, 0.70);
  backdrop-filter: blur(6px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.14s ease
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.flourish-popup.hidden {
  display: none
}

.popup-box {
  background: var(--surface);
  width: 92%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bd-hi);
  box-shadow: 0 24px 80px rgba(99, 102, 241, 0.22), 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: popIn 0.22s var(--bounce)
}

@keyframes popIn {
  from {
    transform: scale(0.94) translateY(12px);
    opacity: 0
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--bd-md);
  padding: 0;
  position: relative
}

.popup-header::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--ac-gradient);
  position: absolute;
  top: 0;
  left: 0;
  right: 0
}

.popup-header h3 {
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--ac-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 14px 16px;
  letter-spacing: -0.01em
}

.popup-header button {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  width: 48px;
  height: 48px;
  margin-right: 8px;
  transition: background var(--t-fast), color var(--t-fast)
}

.popup-header button:hover {
  background: var(--ac-tint);
  color: var(--ac)
}

#flourishList {
  padding: 8px;
  overflow-y: auto;
  list-style: none;
  flex: 1
}

#flourishList li {
  margin-bottom: 5px;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--bd);
  background: var(--surface-2);
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast)
}

#flourishList li:hover {
  border-color: var(--ac);
  background: var(--ac-tint);
  box-shadow: var(--e-1)
}

#flourishList .count {
  display: flex;
  justify-content: flex-end;
  font-size: 9px;
  color: var(--text-3);
  padding: 2px 10px;
  font-weight: 500;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em
}

#flourishList li p {
  font-size: 1rem !important;
  color: var(--text-1);
  border: none;
  background: transparent;
  text-align: center;
  padding: 10px 14px;
  font-family: var(--font-style);
  cursor: pointer;
  transition: background var(--t-fast)
}

#flourishList li p:hover {
  background: var(--ac-tint)
}

.flourishit {
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--bd-md);
  background: var(--surface)
}

.select-flourish {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  font-family: var(--sans)
}

.select-flourish label {
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--text-2)
}

#flourishSelect {
  appearance: none;
  padding: 8px 20px 8px 14px;
  font-size: 0.88rem;
  font-family: var(--sans);
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--bd-md);
  background: var(--surface-2);
  color: var(--text-1);
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast)
}

#flourishSelect:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-ring)
}

#flourishRegenerate {
  padding: 12px 26px;
  border-radius: var(--r-pill);
  background: var(--ac-gradient);
  color: #fff;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(99, 102, 241, 0.38);
  transition: opacity var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast)
}

#flourishRegenerate:hover {
  opacity: 0.90;
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.50);
  transform: translateY(-1px)
}

#flourishRegenerate:active {
  opacity: 0.80;
  transform: translateY(0)
}

.info-text {
  font-family: var(--sans);
  line-height: 1.72;
  color: var(--text-1);
  padding: 28px 20px;
  background: var(--surface);
  margin-top: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--bd-md);
  box-shadow: none;
  white-space: normal;
  word-break: break-word;
  position: relative;
  overflow: hidden
}

.info-text::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ac-gradient)
}

.info-text img {
  max-width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--e-2)
}

.info-text ul {
  overflow: auto
}

.info-text h1 {
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--ac-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bd-md);
  letter-spacing: -0.02em
}

.info-text h2 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-1);
  margin-top: 32px;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 0
}

.info-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-2);
  margin-top: 20px;
  margin-bottom: 8px
}

.info-text p {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-1)
}

.info-text ul,
.info-text ol {
  margin-bottom: 16px;
  padding-left: 20px
}

.info-text li {
  font-size: 0.95rem;
  margin-bottom: 5px
}

.info-text strong {
  color: var(--ac);
  font-weight: 700
}

.info-text code {
  background: var(--ac-tint);
  color: var(--ac-dk);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.82rem;
  word-break: break-all;
  border: 1px solid var(--bd-md)
}

.dark .info-text code {
  color: var(--ac-lt)
}

.info-text .example-box {
  background: var(--ac-gradient-subtle);
  border-left: 3px solid var(--ac);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 14px 18px;
  margin: 18px 0
}

.info-text .example-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ac);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 10px 0 6px
}

.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: 0.95rem;
  color: var(--text-1);
  background: var(--surface);
  padding: 6px 12px;
  margin-bottom: 4px;
  border-radius: var(--r-sm);
  border: 1px solid var(--bd)
}

.flourish-checkbox-group {
  display: block;
  line-height: 2
}

.flourish-checkbox-group label {
  display: inline-block;
  margin-right: 18px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition: color var(--t-fast)
}

.flourish-checkbox {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  cursor: pointer;
  accent-color: var(--ac)
}

.flourish-checkbox-group label:hover {
  color: var(--text-1)
}

.flourish-checkbox-group label:has(.flourish-checkbox:checked) {
  font-weight: 700;
  color: var(--ac)
}

.fAr {
  display: none
}

#fMN {
  overflow: auto
}

#menu {
  color: var(--text-1)
}

.loadmore {
  text-align: center;
  padding: 14px 0
}

.entry-header {
  width: 100%;
  text-align: center;
  padding: 18px 16px;
  border-bottom: 1px solid var(--bd-md);
  background: var(--ac-gradient-subtle)
}

.entry-header p {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24
}

footer {
  margin-top: 60px;
  background: var(--surface);
  padding: 24px 0;
  position: relative;
  border-top: 1px solid var(--bd-md)
}

footer::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--ac-gradient);
  position: absolute;
  top: 0;
  left: 0;
  right: 0
}

footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

footer a {
  background: var(--ac-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 700;
  transition: opacity var(--t-fast)
}

footer a:hover {
  opacity: 0.70
}

footer p,
footer span {
  color: var(--text-3);
  font-size: 0.72rem
}

footer .footer-page a {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px
}

.ads {
  grid-column: 1/-1;
  display: block;
  width: 100%;
  margin: 12px 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--bd-md);
  overflow: hidden;
  box-shadow: var(--e-1)
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px
}

::-webkit-scrollbar-track {
  background: var(--surface-2)
}

::-webkit-scrollbar-thumb {
  background: var(--bd-hi);
  border-radius: var(--r-pill)
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ac)
}

::selection {
  background: var(--ac-ring);
  color: var(--text-1)
}

@media (max-width:940px) {
  .grid ul {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  h1 {
    font-size: 1.3rem
  }

  #randomcloud {
    height: 180px
  }

  .container {
    padding: 0 12px;
    max-width: 100%;
    border: none
  }

  header .inner {
    padding: 0 12px
  }

  .f-m {
    width: 100%
  }

  .font-size-controller input[type="range"] {
    width: 180px
  }

  .grid ul {
    grid-template-columns: 1fr
  }

  .info-text {
    padding: 16px 14px
  }

  .info-text h1 {
    font-size: 1.3rem
  }
}

html {
  scroll-behavior: smooth
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important
  }
}