/* ==========================================================================
   Free Fire Name Generator — Branded Stylesheet (ffstylishname.in theme)
   V5: Single Subtle Card Fade + Fast <0.35s Spinner on New Style + Zero Gap
   Above Footer + Empty Default Input + 4-Corner Rounded Sticky Box
   ========================================================================== */

:root {
  --ff-maroon-deep: #220408;
  --ff-maroon: #2e080e;
  --ff-maroon-mid: #420a14;
  --ff-amber: #ff9800;
  --ff-amber-bright: #ffb703;
  --ff-crimson: #ff4d6d;
  --ff-card-bg: #ffffff;
  --ff-card-border: rgba(0, 0, 0, 0.06);
  --ff-pill-bg: #f6f7f9;
  --ff-text-main: #111827;
  --ff-text-muted: #94a3b8;

  /* Dynamic Header Height & Sticky Offset */
  --ffn-hdr-h: calc(54px + env(safe-area-inset-top, 0px));
  --ffn-sticky-top: 4px;

  /* Dynamic Card & Font Scaling Variables (Adjusted when user clicks + / -) */
  --ff-name-size: 21px;
  --ff-card-pt: 20px;
  --ff-card-pb: 13px;
  --ff-card-px: 14px;
  --ff-title-mb: 14px;
  --ff-title-lift: 0px;
}

html[data-theme="dark"] {
  --ff-card-bg: #11141f;
  --ff-card-border: rgba(255, 255, 255, 0.07);
  --ff-pill-bg: #191e2c;
  --ff-text-main: #ffffff;
  --ff-text-muted: #94a3b8;
}

/* Minimal bottom padding (10px) so there is NO dead gap between Article/FAQ and Footer */
.ffn-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 16px 10px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   0. Global Header & Drawer Compatibility (Fixes Drawer Overlap & Scroll Sync)
   ========================================================================== */
.header-boot,
.shell > header,
body > header,
.site-header,
.topbar {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}

html.ffn-hide-header:not(.ffn-drawer-open) .header-boot,
html.ffn-hide-header:not(.ffn-drawer-open) .shell > header,
html.ffn-hide-header:not(.ffn-drawer-open) body > header,
html.ffn-hide-header:not(.ffn-drawer-open) .site-header,
html.ffn-hide-header:not(.ffn-drawer-open) .topbar {
  transform: translateY(-105%) !important;
}

html.ffn-Dock-Below-Header {
  --ffn-sticky-top: calc(var(--ffn-hdr-h, 54px) + 4px);
}

html.ffn-drawer-open .ffn-input-box,
body.menu-open .ffn-input-box,
body.drawer-open .ffn-input-box,
body.nav-open .ffn-input-box,
body[style*="overflow: hidden"] .ffn-input-box {
  z-index: 1 !important;
  pointer-events: none !important;
  filter: blur(3px);
  opacity: 0.45;
}

/* ==========================================================================
   1. Hero Header Section
   ========================================================================== */
.ffn-head {
  text-align: center;
  margin-bottom: 14px;
  padding: 4px 6px 2px;
}

.crumbs {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 8px;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.ffn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #2e080e 0%, #4a0c17 100%);
  color: #ffd319;
  border: 1px solid rgba(255, 183, 3, 0.38);
  padding: 4px 13px;
  border-radius: 999px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ffn-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.28);
}

.ffn-title {
  margin: 2px auto 8px;
  font-size: clamp(24px, 5.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ff-text-main);
}

.ffn-title-hi {
  background: linear-gradient(95deg, #ff8800, #ffb703, #ff2a5f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ffn-sub {
  margin: 0 auto;
  max-width: 66ch;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
}

html[data-theme="dark"] .ffn-sub {
  color: #94a3b8;
}

/* ==========================================================================
   2. Ultra-Slim Sticky-on-Scroll Branded Name Input Box Area
   All 4 corners stay smoothly rounded (16px) at all times!
   ========================================================================== */
#ffn-sticky-sentinel {
  height: 1px;
  width: 100%;
}

.ffn-input-box {
  position: sticky;
  top: var(--ffn-sticky-top, 4px);
  z-index: 5;
  max-width: 820px;
  margin: 0 auto 14px;
  background: linear-gradient(165deg, #2e080e 0%, #1f0408 100%);
  border: 1.5px solid rgba(255, 152, 0, 0.32);
  border-radius: 16px;
  padding: 9px 11px 8px;
  box-shadow: 0 6px 20px rgba(34, 4, 8, 0.22);
  transition: top 0.24s cubic-bezier(0.22, 1, 0.36, 1), padding 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  box-sizing: border-box;
}

.ffn-input-box.is-stuck {
  border-radius: 16px;
  border-color: rgba(255, 183, 3, 0.48);
  box-shadow: 0 10px 26px rgba(10, 2, 4, 0.48);
}

/* Row 1: Wide Spacious Name Input + Fast Loading New Style Button */
.ffn-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.ffn-input-field-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.ffn-input {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16.5px;
  font-weight: 700;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 152, 0, 0.35);
  background: #170205;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45);
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.ffn-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.ffn-input:focus {
  border-color: #ffa726;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 167, 38, 0.35);
}

/* New Style Orange Button with Snappy <0.35s Forward Loading Spin */
.ffn-new-style-btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid #ffca28;
  background: linear-gradient(180deg, #ffad1f 0%, #f57c00 100%);
  color: #1b0306;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.32);
  transition: filter 0.14s ease, transform 0.12s ease;
  white-space: nowrap;
}

.ffn-new-style-btn:hover {
  filter: brightness(1.07);
}

.ffn-new-style-btn:active {
  transform: scale(0.97);
}

/* No CSS transition on .ffn-spark-ico so it NEVER spins backward when class is removed! */
.ffn-spark-ico {
  display: inline-block;
  flex-shrink: 0;
}

.ffn-new-style-btn.is-loading .ffn-spark-ico {
  animation: ffnFastSpinForward 0.32s linear infinite;
}

@keyframes ffnFastSpinForward {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Row 2: Single Ultra-Slim Compact Toolbar (Controls + Share Icons in 1 Slim Line) */
.ffn-compact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: nowrap;
}

.ffn-ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ffn-ctrl-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 3, 0.36);
  background: rgba(255, 152, 0, 0.14);
  color: #ffd319;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ffn-ctrl-icon-only {
  width: 24px;
  padding: 0;
}

.ffn-ctrl-btn:hover {
  background: rgba(255, 152, 0, 0.28);
  border-color: #ffb703;
  color: #ffffff;
}

.ffn-ctrl-btn.active {
  background: linear-gradient(180deg, #ffad1f 0%, #f57c00 100%);
  color: #1b0306;
  border-color: #ffca28;
  font-weight: 800;
}

.ffn-size-ind {
  font-size: 10px;
}

/* Compact Saved Favorites (Love) Pill Button */
.ffn-saved-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 109, 0.45);
  background: rgba(225, 29, 72, 0.18);
  color: #fda4af;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ffn-saved-btn:hover,
.ffn-saved-btn[aria-expanded="true"] {
  background: #e11d48;
  color: #ffffff;
  border-color: #fb7185;
}

.ffn-heart-svg {
  color: #fb7185;
}

.ffn-saved-btn:hover .ffn-heart-svg,
.ffn-saved-btn[aria-expanded="true"] .ffn-heart-svg {
  color: #ffffff;
}

.ffn-saved-count {
  font-size: 10px;
  font-weight: 800;
}

/* Compact Right-Side Share Icons */
.ffn-share-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ffn-share-lbl {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 1px;
}

.ffn-sbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.ffn-sbtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.14);
}

.ffn-sbtn-tg { background: #0088cc; }
.ffn-sbtn-wa { background: #1da851; }
.ffn-sbtn-fb { background: #1877f2; }
.ffn-sbtn-tw { background: #0f1419; }
.ffn-sbtn-more {
  background: rgba(255, 152, 0, 0.22);
  border-color: rgba(255, 183, 3, 0.42);
  color: #ffd319;
}

/* Expandable Saved Love Drawer */
.ffn-saved-drawer {
  margin-top: 7px;
  background: #140205;
  border: 1px solid rgba(255, 77, 109, 0.32);
  border-radius: 11px;
  padding: 8px 10px;
  max-height: 175px;
  overflow-y: auto;
}

.ffn-saved-drawer[hidden] {
  display: none;
}

.ffn-saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ffn-saved-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fda4af;
}

.ffn-saved-clear {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 10.5px;
  cursor: pointer;
}

.ffn-saved-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ffn-saved-empty {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 6px 4px;
}

.ffn-saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 5px 8px;
}

.ffn-saved-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}

.ffn-saved-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ffn-saved-copy {
  background: #ff9800;
  color: #1a0307;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.ffn-saved-del {
  background: rgba(255, 255, 255, 0.08);
  color: #fca5a5;
  border: none;
  border-radius: 6px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 10.5px;
}

/* ==========================================================================
   3. Category Filter Pills & Combination Strip
   ========================================================================== */
.ffn-filter-bar {
  margin-bottom: 14px;
}

.ffn-cat-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 7px;
  scrollbar-width: none;
}

.ffn-cat-pills::-webkit-scrollbar {
  display: none;
}

.ffn-cpill {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(46, 8, 14, 0.15);
  background: #3b0810;
  color: #f8fafc;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ffn-cpill:hover {
  background: #520b17;
}

.ffn-cpill.active {
  background: linear-gradient(180deg, #ffad1f 0%, #f57c00 100%);
  color: #1b0306;
  border-color: #ffb703;
}

.ffn-combo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #64748b;
}

html[data-theme="dark"] .ffn-combo-strip {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* ==========================================================================
   4. Reserved Grid Space, Skeleton Loading & Single Subtle Card Animation
   ========================================================================== */
.ffn-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 1400px;
}

.ffn-shimmer {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.14) 25%, rgba(148, 163, 184, 0.26) 50%, rgba(148, 163, 184, 0.14) 75%);
  background-size: 200% 100%;
  animation: ffnSkelWave 1.2s infinite linear;
  border-radius: 10px;
}

@keyframes ffnSkelWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ffn-skel-bar {
  height: 36px;
  width: 100%;
  border-radius: 10px;
}

.ffn-skel-card {
  min-height: 108px;
}

.ffn-skel-title {
  width: 62%;
  height: 24px;
  margin: 4px auto 16px;
}

.ffn-skel-pill {
  width: 100%;
  height: 38px;
  border-radius: 11px;
}

.ffn-cat-block {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Single, gentle, natural card transition (NO yellow highlight, NO shrinking, NO double bounce) */
.ffn-card.ffn-card-soft {
  animation: ffnSoftChange 0.2s ease-out both;
}

@keyframes ffnSoftChange {
  0% { opacity: 0.55; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Slim, Clean Category Heading (Text Only) */
.ffn-cat-banner {
  background: rgba(46, 8, 14, 0.055);
  border-left: 4px solid #ff9800;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
}

html[data-theme="dark"] .ffn-cat-banner {
  background: rgba(255, 255, 255, 0.045);
  border-left-color: #ffb703;
}

.ffn-cat-heading {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(15px, 2.5vw, 17.5px);
  font-weight: 700;
  color: var(--ff-text-main);
  line-height: 1.3;
}

/* 2-Column Double Grid on Desktop, 1-Column on Mobile */
.ffn-cat-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

@media (min-width: 680px) {
  .ffn-cat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
}

/* Slim Homepage-Matched Card (Expands Smoothly When User Clicks +) */
.ffn-card {
  background: var(--ff-card-bg);
  border: 1px solid var(--ff-card-border);
  border-radius: 18px;
  padding: var(--ff-card-pt, 20px) var(--ff-card-px, 14px) var(--ff-card-pb, 13px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.18s ease, box-shadow 0.16s ease;
}

.ffn-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.045);
}

.ffn-card-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: var(--ff-name-size, 21px);
  font-weight: 700;
  text-align: center;
  color: var(--ff-text-main);
  word-break: break-word;
  line-height: 1.38;
  margin-bottom: var(--ff-title-mb, 14px);
  transform: translateY(var(--ff-title-lift, 0px));
  padding: 0 6px;
  cursor: pointer;
  transition: font-size 0.16s ease, margin-bottom 0.16s ease, transform 0.16s ease;
}

/* Card Bottom Bar (Exact Match to Global Homepage Card Pill) */
.ffn-card-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ffn-pill {
  flex: 1;
  height: 38px;
  background: var(--ff-pill-bg);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-sizing: border-box;
}

.ffn-chars {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 12.5px;
  color: var(--ff-text-muted);
  white-space: nowrap;
}

.ffn-copy-btn {
  background: none;
  border: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 7px;
  transition: all 0.14s ease;
}

html[data-theme="dark"] .ffn-copy-btn {
  color: #a0aec0;
}

.ffn-copy-btn:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .ffn-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.ffn-copy-btn.done {
  color: #10b981;
  font-weight: 700;
}

.ffn-cat {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 12.5px;
  color: var(--ff-text-muted);
  white-space: nowrap;
}

.ffn-icon-btn {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ff-pill-bg);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ff-text-muted);
  font-size: 15px;
  transition: all 0.14s ease;
  padding: 0;
}

.ffn-icon-btn:hover {
  color: var(--ff-text-main);
  background: #ebeef2;
}

html[data-theme="dark"] .ffn-icon-btn:hover {
  color: #ffffff;
  background: #232a3d;
}

.ffn-icon-btn.liked {
  color: #e11d48;
}

/* ==========================================================================
   5. Slim Golden-Orange Load More Button With Snappy Loading Spin
   ========================================================================== */
.ffn-more-wrap {
  margin: 22px auto 6px;
  text-align: center;
}

.ffn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 220px;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid #ffca28;
  background: linear-gradient(180deg, #ffad1f 0%, #f57c00 100%);
  color: #1b0306;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  transition: filter 0.14s ease, transform 0.12s ease;
}

.ffn-more-btn:hover {
  filter: brightness(1.07);
}

.ffn-more-btn:active {
  transform: scale(0.97);
}

.ffn-more-ico {
  display: inline-block;
  flex-shrink: 0;
}

.ffn-more-btn.is-loading {
  pointer-events: none;
}

.ffn-more-btn.is-loading .ffn-more-ico {
  animation: ffnFastSpinForward 0.32s linear infinite;
}

.ffn-more-btn[hidden] {
  display: none;
}

/* ==========================================================================
   6. Wide Branded SEO Article (Zero Extra Bottom Gap Above Footer!)
   ========================================================================== */
.ffn-seo {
  margin-top: 26px;
  margin-bottom: 0;
  width: 100%;
}

.art {
  background: var(--ff-card-bg);
  border: 1px solid var(--ff-card-border);
  border-radius: 22px;
  padding: 24px 26px 18px;
  margin-bottom: 0;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.025);
  line-height: 1.72;
  color: var(--ff-text-main);
}

.art-head {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ff-card-border);
}

.art-eyebrow {
  display: inline-block;
  background: #2e080e;
  color: #ffd319;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.art-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(21px, 4.2vw, 29px);
  line-height: 1.25;
  color: var(--ff-text-main);
}

.art-sub {
  margin: 0 auto;
  max-width: 72ch;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14.5px;
  color: #64748b;
}

html[data-theme="dark"] .art-sub {
  color: #94a3b8;
}

.art-sec {
  margin-bottom: 24px;
}

.art-sec:last-child {
  margin-bottom: 0;
}

.art-sec h3 {
  font-size: clamp(17.5px, 3.5vw, 21px);
  margin: 0 0 10px;
  color: var(--ff-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.art-sec h3::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff9800, #ff4d6d);
}

.art-sec p {
  margin: 0 0 13px;
  font-size: 15.5px;
  color: var(--ff-text-main);
  opacity: 0.92;
}

.art-svg-card {
  margin: 18px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 152, 0, 0.28);
  background: #1a0307;
}

.art-svg-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.art-svg-cap {
  padding: 9px 14px;
  background: #2e080e;
  color: #f8fafc;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  text-align: center;
}

.art-sym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.art-sym-box {
  background: var(--ff-pill-bg);
  border: 1px solid var(--ff-card-border);
  border-radius: 13px;
  padding: 13px 15px;
}

.art-sym-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d97706;
  margin-bottom: 5px;
}

html[data-theme="dark"] .art-sym-label {
  color: #fbbf24;
}

.art-sym-sample {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 5px;
  word-break: break-all;
}

.art-sym-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

html[data-theme="dark"] .art-sym-desc {
  color: #94a3b8;
}

.art-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border-radius: 12px;
  border: 1px solid var(--ff-card-border);
}

.art-table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
}

.art-table th {
  background: #2e080e;
  color: #ffd319;
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
}

.art-table td {
  padding: 9px 14px;
  border-top: 1px solid var(--ff-card-border);
}

.art-table tr:nth-child(even) td {
  background: var(--ff-pill-bg);
}

.art-faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .art-faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.art-faq-item {
  background: var(--ff-pill-bg);
  border: 1px solid var(--ff-card-border);
  border-radius: 13px;
  overflow: hidden;
}

.art-faq-item summary {
  padding: 12px 15px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.art-faq-item summary::-webkit-details-marker {
  display: none;
}

.art-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2e080e;
  color: #ffd319;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 14px;
}

.art-faq-item[open] summary::after {
  content: "−";
  background: #ff9800;
  color: #1b0306;
}

.art-faq-ans {
  padding: 10px 15px 13px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  border-top: 1px solid var(--ff-card-border);
}

html[data-theme="dark"] .art-faq-ans {
  color: #94a3b8;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2e080e 0%, #4a0c17 100%);
  color: #ffd319;
  border: 1.5px solid #ff9800;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 999;
}

.toast[hidden] {
  display: none;
}

/* ==========================================================================
   7. Mobile Responsive Full-Width Input Box & Zero Bottom Gap
   ========================================================================== */
@media (max-width: 679px) {
  .ffn-wrap {
    padding: 10px 10px 6px;
  }
  .ffn-input-box {
    width: calc(100% + 12px);
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 15px;
    padding: 8px 9px 7px;
  }
  .ffn-input-box.is-stuck {
    border-radius: 15px;
  }
  .ffn-input {
    height: 42px;
    font-size: 15.5px;
    padding: 0 13px;
  }
  .ffn-new-style-btn {
    height: 42px;
    padding: 0 13px;
    font-size: 13.5px;
    gap: 5px;
  }
  .ffn-compact-bar {
    margin-top: 6px;
    padding-top: 5px;
    gap: 4px;
  }
  .ffn-ctrl-btn,
  .ffn-saved-btn {
    height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }
  .ffn-ctrl-icon-only {
    width: 22px;
    padding: 0;
  }
  .ffn-sbtn {
    width: 21px;
    height: 21px;
  }
  .art {
    padding: 18px 14px 14px;
  }
}
