        :root {
          --maxw: 1040px;
          --bg: #efefef;
          --bg: linear-gradient(135deg, #00bf4d, #1b0013);
          --card: #ffffff;
          --countit: #6b7280;
          --radius: 12px;
          --gap: 10px;
          --mc: #00bf4d;
          --ftfamily: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
        }

        * {
          box-sizing: border-box
        }

        html,
        body {
          height: 100%
        }

        body {
          margin: 0;
          padding-bottom: 36px;
          line-height: 1.5;

          font-family: "Bitter", serif;
          font-optical-sizing: auto;

          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;

          color: #444;

          background-color: #f0f8ff;
        }

        a {
          text-decoration: none;
        }

        header {
          backdrop-filter: blur(6px);
          background: var(--bg);
          color: #fff;
          box-shadow: 0 6px 6px 0 rgb(0 0 0 / 35%);
        }

        header .inner {
          text-align: center;
        }

        header a {
          padding: 0 15px;
          font-size: 1.4rem;
          color: #ffffffd6;
        }

        h1 {
          margin: 0;
          font-size: 2rem;
          letter-spacing: 0.2px;
          color: #ffffffa3;
        }


        .floatmenu a,
        .right-menu a {
          scroll-snap-align: start;
          display: inline-block;
          white-space: nowrap;
          padding: 8px 12px;
          border-radius: 20px;
          text-decoration: none;
          color: #ffffff93;
          border: 2px solid transparent;
          font-size: 1rem;
          background: #fff;
          color: #000;
          display: inline-block;
          font-size: 1.1rem;
          margin: 5px 0;
          font-family: var(--ftfamily);
        }


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

        #results {
          width: 100%;
        }

        .font-list h2 {
          color: #555;
        }

        #fMN {
          overflow: scroll;
        }

        .fAr {
          display: none;
        }

        .floatmenu {
          height: 100%;
          text-align: right;
          display: inline-block;
          margin-top: 20%;
          overflow: scroll;
        }


        #menu {
          color: var(--main-color);
        }

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

        .font-size-controller {
          width: 100%;
          text-align: right;
          padding: 0 10px;
        }

        .font-size-controller label {
          font-size: 14px;
          font-weight: 600;
          color: #333;
          width: 100px;
          text-transform: uppercase;
        }

        .font-size-controller input[type="range"] {
          width: 200px;
          height: 6px;
          background: var(--bg);
          border-radius: 10px;
          outline: none;
          appearance: none;
          -webkit-appearance: none;
          cursor: pointer;
        }

        .font-size-controller input[type="range"]::-webkit-slider-thumb {
          appearance: none;
          -webkit-appearance: none;
          width: 18px;
          height: 18px;
          background: #111;
          border-radius: 50%;
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
          transition: transform 0.15s ease;
        }

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

        /* Input area */
        .input-section {
          display: flex;
          position: sticky;
          top: 0;
          margin-top: 10px;
          z-index: 40;
          justify-content: center;
          flex-direction: row;
        }

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

        button#menu {
          font-size: 1.8rem;
          height: 45px;
          box-shadow: none;
          background: transparent;
        }

        .input-section input {
          flex: 1;
          width: 100%;
          padding: 17px;
          border-radius: 5px;
          border: 2px solid #00bf4d;
          font-size: 1.2rem;
          outline: none;
          box-shadow: 0 4px 18px rgba(2, 6, 23, 0.03);
          transition: box-shadow .12s ease, transform .12s ease;
        }

        .input-section input:focus {
          box-shadow: 0 8px 28px rgba(11, 116, 222, 0.12);
          transform: translateY(-2px);
          border-color: rgba(11, 116, 222, 0.14);
        }

        #randomcloud {
          text-align: center;
          width: 100%;
          height: 100px;
          overflow: scroll;
        }

        #randomcloud .fancyname-generator {
          background: transparent;
          border: none;
          box-shadow: none
        }

        #randomcloud p {
          color: #444;
          font-size: 25px !important;
          padding: 5px;
          border-radius: 15px;
          margin: 3px;
          cursor: pointer;
          font-family: var(--ftfamily);
        }

        #randomcloud p:hover {
          color: #000;
        }




        /* Overlay clear button styles */
        .clear-overlay {
          position: absolute;
          right: 0px;
          top: 42%;
          transform: translateY(-50%);
          display: inline-flex;
          align-items: center;
          gap: 8px;
          padding: 8px 10px;
          height: 40px;
          width: 40px;
          border-radius: 20px;
          cursor: pointer;
          font-weight: 700;
          color: var(--mc);
          z-index: 10;
        }

        .clear-overlay:hover {
          color: #000;
        }



        .btn {
          padding: 12px 16px;
          width: auto;
          color: #fff;
          background: #19b454;
          position: relative;
          border-radius: 20px;
          border: 0;
          cursor: pointer;
          box-shadow: 0 8px 22px rgba(11, 116, 222, 0.12);
          transition: transform .12s ease, box-shadow .12s ease;
        }

        .btn:hover {
          transform: translateY(-3px);
          box-shadow: 0 12px 30px rgba(11, 116, 222, 0.14);
        }

        .btn.secondary {
          background: transparent;
          border: 1px solid rgba(11, 116, 222, 0.16);
          color: var(--main-color);
          box-shadow: none;
        }

        button.btn.closeit {
          background: #c40707;
        }

        .result-card {
          margin-top: 6px;
          padding: 18px 0;
          display: flex;
          flex-direction: column;
          gap: 12px;
        }

        .grid ul {
          display: grid;
          margin: 0;
          padding: 0;
        }

        .fAT li {
          display: flex;
          justify-content: space-between;
          flex-direction: row;
          align-items: center;
          position: relative;
        }

        .info-text h1 {
          color: #000;
        }

        .fancyname-generator {
          background: #fff;
          border-radius: 5px;
          padding: 10px 2px 22px 12px;
          cursor: pointer;
          user-select: none;
          text-align: center;
          width: 100%;
          position: relative;
          border-top: 1px solid #bfced9;
          border-left: 1px solid #bfced9;
          border-right: 1px solid #bfced9;
          white-space: normal;
          word-break: break-word;
          font-family: var(--ftfamily);
        }

        .fancyname-generator:hover,
        .fancyname-generator:focus {
          outline: none;
          color: var(--mc);
          background: #fff;
          border-color: var(--mc);
        }


        .fancyname-generator button {
          position: absolute;
          left: 5px;
          top: 5px;
          padding: 5px 10px;
          width: auto;
          height: auto;
          font-size: 14px;
          background: #eeeeee;
          border-radius: 10px;
          cursor: pointer;
          color: #444;
        }

        .fancyname-generator p {
          font-size: 1.2rem;
          margin: 0;
        }

        .name {
          font-size: 0.78rem;
          color: var(--countit);
          font-weight: 700;
          letter-spacing: 0.6px;
          text-transform: uppercase;
        }

        .fancy-text {
          font-size: 1.25rem;
          line-height: 1.3;
          word-break: break-word;
          align-items: center;
        }

        .count {
          position: absolute;
          bottom: 5px;
          left: 15px;
          z-index: 2;
          display: flex;
          align-items: baseline;

        }

        .count span {
          display: none;
        }

        .count i {
          color: #777;
          font-size: 10px;
          display: block;

        }


        .buttons {
          display: flex;
          position: fixed;
          right: 0;
          z-index: 99;
          bottom: 200px;
          border-radius: 5px 0 0 5px;
          background: #f0f8ff;
          flex-direction: column-reverse;
          box-shadow: 0px 1px 3px -1px rgba(0, 0, 0, 0.5);
        }

        .buttons button {
          width: 37px;
          height: 37px;
        }

        #bulbBtn svg {
          stroke: #f6a709;
        }

        button,
        #othertools a {
          display: inline-flex;
          align-items: center;
          justify-content: center;

          margin: 4px;
          border: none;
          cursor: pointer;
          background: transparent;
          /* prevent zoom / double-tap */
          font-size: 18px;
          /* important for iOS to avoid zoom */
          line-height: 1;
          touch-action: manipulation;
          /* tells browser: clicks, not gestures */
          -webkit-tap-highlight-color: transparent;
          font-family: "Bitter", serif;
          font-optical-sizing: auto;
        }

        button:hover {
          opacity: 0.8;
        }

        #othertools a {
          width: auto;
          padding: 10px;
          text-decoration: none;
          background: #444;
          color: #f1f1f1;
        }

        #othertools a:hover {
          background: #000;
          color: #fff;
        }

        svg {
          width: 22px;
          height: 22px;
          stroke: #555;
          stroke-width: 1.6;
          fill: none;
        }

        footer {
          margin-top: 28px;
          background: #555;
          color: #fff;
          padding: 18px 0;
        }

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

        footer a {
          color: rgba(255, 255, 255, 0.95);
          text-decoration: underline
        }

        .close-button {
          top: 10px;
          position: fixed;
          right: 10px;
          padding: 8px 16px;
          font-size: 30px;
          border: none;
          border-radius: 20px;
          color: #444;
          background: #fff;
        }


        .copied {
          background: var(--bg);
          color: #fff;
          width: 220px;
          height: auto;
          display: flex;

          padding: 5px 10px;
          position: fixed;
          border-radius: 20px 0 0 20px;
          top: 10%;
          right: 0;
          z-index: 999;
          box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
          flex-wrap: nowrap;
          flex-direction: column;
        }

        .copied textarea {
          background: transparent;
          border: none;
          color: #fff;
          padding: 10px;
        }

        .opt {
          position: absolute;
          bottom: 2px;
          right: 10px;
        }

        .opt button {
          color: #777;
          font-size: 12px;
        }

        .opt button:hover {
          color: var(--mc);
        }

        .opt button:active {
          transform: scale(0.96) translateY(1px);
        }

        .ads {
          grid-column: 1 / -1;
          display: block;
          width: 100%;
          margin: 10px 0;
          height: auto;
          clear: both;
        }

        /* HTML:<div class=loader></div>*/
        .loader {
          width: 120px;
          height: 20px;
          background: linear-gradient(#000 50%, #0000 0), linear-gradient(#0000 50%, #000 0), linear-gradient(#000 50%, #0000 0), linear-gradient(#0000 50%, #000 0), linear-gradient(#000 50%, #0000 0), linear-gradient(#0000 50%, #000 0) #ddd;
          background-size: calc(100%/6 + 1px) 200%;
          background-repeat: no-repeat;
          animation: l12 2s infinite;
        }

        @keyframes l12 {
          0% {
            background-position: calc(0*100%/5) 100%, calc(1*100%/5) 0%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          16.67% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 0%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          33.33% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          50% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          66.67% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 100%, calc(5*100%/5) 0%
          }

          83.33% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 0%, calc(5*100%/5) 0%
          }

          100% {
            background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 0%, calc(5*100%/5) 100%
          }
        }

        .page-load-status,
        .aryapage {
          display: none;
          align-items: center;
          width: 100%;
          margin-top: 20px;
          margin-left: calc(50% - 60px);
          margin-bottom: 20px;
        }

        .loadmore {
          text-align: center;
        }

        #randombutton {
          width: auto;
          border-radius: 30px;
          padding: 20px;
          margin-top: 10px;
          background: var(--bg);
          color: #ffffffab;
        }

        .info-text img {
          max-width: 100%;
        }



        .f-m-q,
        .f-m {
          position: fixed;
          top: 0;
          right: 0;
          width: 350px;
          height: 100%;
          background: var(--bg);
          align-items: center;
          transition: right 0.3s;
          z-index: 9999;
          display: none;
          box-shadow: -5px 0px 10px 2px rgba(0, 0, 0, 0.2);
        }

        .font-list {
          margin-bottom: 20px;
        }

        .info-text ul {
          overflow: scroll;
        }


        .saved-popup,
        .flourish-popup {
          position: fixed;
          inset: 0;
          background: rgba(0, 0, 0, 0.55);
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 999;
        }

        .saved-popup.hidden,
        .flourish-popup.hidden {
          display: none;
        }

        .popup-box {
          background: var(--bg);
          color: #fff;
          width: 90%;
          max-width: 500px;
          max-height: 70vh;
          border-radius: 12px;
          overflow: hidden;
          display: flex;
          flex-direction: column;
        }

        .popup-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 12px 16px;
          background: #1c1c1c;
          position: relative;
        }

        .popup-header h3 {
          margin: 0;
          font-size: 16px;
        }



        #savedList,
        #flourishList {
          padding: 12px;
          overflow-y: auto;
          list-style: none;
          margin: 0;
          flex: 1;
        }

        #savedList li,
        #flourishList li {
          margin-bottom: 10px;
          position: relative;
        }

        #savedList .count,
        #flourishList .count {
          display: flex;
          justify-content: flex-end;
          font-size: 11px;
          opacity: 0.7;
        }

        #savedList .fancyname-generator p,
        #flourishList .fancyname-generator p {
          font-size: 17px !important;
          color: #000;
        }

        #savedList .fancyname-generator:hover p,
        #flourishList .fancyname-generator:hover p {
          color: var(--mc);
        }

        #savedList .copied-alert,
        #flourishList .copied-alert {
          position: absolute;
          right: 10px;
          bottom: 8px;
          font-size: 11px;
          color: #6cffb3;
          opacity: 0;
          transition: opacity 0.2s;
        }

        #savedList li.copied .copied-alert,
        #flourishList li.copied .copied-alert {
          opacity: 1;
        }

        .popup-header button {
          background: none;
          border: none;
          color: #fff;
          cursor: pointer;
          font-size: 14px;
          margin-left: 8px;
        }

        .delete-item {
          position: absolute;
          top: 8px;
          left: 8px;
          background: none;
          border: none;
          color: #ff6b6b;
          font-size: 14px;
          cursor: pointer;
        }

        .delete-item:hover {
          color: #ff3b3b;
        }


        .flourishit {
          text-align: center;
        }

        #flourishRegenerate,
        #deleteAllSaved {
          color: #fff;
          background: #000;
          padding: 15px 25px;
          border-radius: 25px;
          font-size: 1.3rem;
          border: none;
          cursor: pointer;
          transition:
            transform 0.12s ease,
            box-shadow 0.12s ease,
            background-color 0.12s ease;
        }

        /* hover effect */
        #flourishRegenerate:hover,
        #deleteAllSaved:hover {
          background: var(--bg);
          box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
        }

        /* click / press effect */
        #flourishRegenerate:active,
        #deleteAllSaved:active {
          transform: scale(0.94);
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        /* optional: remove blue outline on click */
        #flourishRegenerate:focus,
        #deleteAllSaved:focus {
          outline: none;
        }

        .select-flourish {
          display: flex;
          align-items: center;
          gap: 12px;
          margin: 5px 0;
          flex-wrap: wrap;
          justify-content: center;
        }

        .select-flourish label {
          font-size: 1rem;
          font-weight: 500;
          color: #fff;
        }

        #flourishSelect {
          appearance: none;
          -webkit-appearance: none;
          -moz-appearance: none;

          padding: 10px 38px 10px 16px;
          font-size: 1rem;
          border-radius: 18px;
          border: 2px solid #0f6352;
          background-color: #ffffff;
          color: #0f6352;
          cursor: pointer;

          background-image:
            linear-gradient(45deg, transparent 50%, #0f6352 50%),
            linear-gradient(135deg, #0f6352 50%, transparent 50%),
            linear-gradient(to right, transparent, transparent);
          background-position:
            calc(100% - 20px) calc(50% - 4px),
            calc(100% - 14px) calc(50% - 4px),
            100% 0;
          background-size:
            6px 6px,
            6px 6px,
            2.5em 2.5em;
          background-repeat: no-repeat;

          transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.1s ease;
        }

        /* hover */
        #flourishSelect:hover {
          box-shadow: 0 6px 14px rgba(15, 99, 82, 0.25);
        }

        /* focus */
        #flourishSelect:focus {
          outline: none;
          border-color: #138a72;
          box-shadow: 0 0 0 3px rgba(19, 138, 114, 0.25);
        }

        #topMenu {
          display: flex;
          flex-direction: row;
          align-items: center;

          overflow-x: auto;
          overflow-y: hidden;
          white-space: nowrap;

          scroll-behavior: smooth;

          /* nicer scrolling */
          -webkit-overflow-scrolling: touch;
        }

        /* hide scrollbar (optional but recommended) */
        #topMenu::-webkit-scrollbar {
          height: 6px;
        }

        #topMenu::-webkit-scrollbar-thumb {
          background: rgba(0, 0, 0, 0.25);
          border-radius: 10px;
        }

        #topMenu::-webkit-scrollbar-track {
          background: transparent;
        }

        /* menu links */
        #topMenu a {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          padding: 8px 14px;
          border-radius: 18px;
          font-size: 0.95rem;
          text-decoration: none;
          color: #ffffff7a;
          font-family: var(--ftfamily);
        }

        /* hover / tap feedback */
        #topMenu a:hover,
        #topMenu a.active {
          color: #fff;
          background: #00000021;
        }

        #topMenu h3 {
          margin: 0 8px;
          font-size: 0.85rem;
          font-weight: 600;
          color: #666;
          white-space: nowrap;
        }


        /* Responsive */
        @media (max-width:920px) {
          .brand h1 {
            font-size: 1.5rem
          }

          .container {
            margin: 0 10px;
          }

          .grid ul {
            margin: 1%;
          }
        }



        @media (min-width:720px) {
          .grid ul {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: var(--gap);
            margin: 0;
            padding: 0;
            align-items: baseline;
          }

          #randomcloud {
            padding: 10px;
          }



          .fAT li p {
            font-size: 1.5rem;
          }


        }