@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

    --fs-2xs: 0.6875rem;
    --fs-xs: 0.75rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.375rem;
    --fs-2xl: 1.75rem;

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-pill: 999px;

    --bg: #F2F3F6;
    --surface: #FFFFFF;
    --surface-2: #E9EBF0;
    --surface-3: #DDE0E8;
    --line: #DFE2E9;
    --line-strong: #C7CCD7;

    --text: #1B1926;
    --text-2: #5C5A6B;
    --text-3: #8B899A;

    --accent: #B0783A;
    --accent-strong: #8C5D26;
    --accent-soft: #F3E7D6;
    --accent-line: #DCC098;
    --alert: #A6503F;

    --header-bg: #1F1830;
    --header-line: #362B49;
    --header-text: #F3EFEC;
    --header-text-2: #B4AAC6;

    --glass: rgba(255, 255, 255, 0.8);
    --glass-line: rgba(27, 25, 38, 0.08);

    --shadow-xs: 0 1px 2px rgba(24, 22, 34, 0.06);
    --shadow-sm: 0 3px 8px rgba(24, 22, 34, 0.07);
    --shadow-md: 0 8px 22px rgba(24, 22, 34, 0.1);
    --shadow-lg: 0 18px 42px rgba(24, 22, 34, 0.16);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --speed: 0.2s;

    --m-c: var(--accent);
    --s-c: var(--accent-strong);
    --box-shadow: rgba(24, 22, 34, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0 0 calc(68px + env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    letter-spacing: 0.001em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
    transition: color var(--speed) var(--ease);
}

button,
input,
textarea,
select {
    font-family: inherit;
    color: inherit;
}

button {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

::selection {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.cT {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 var(--sp-3);
    clear: both;
}

h1 {
    font-size: 1.075rem;
    font-weight: 600;
    color: var(--header-text);
}

h2 {
    font-size: var(--fs-lg);
    font-weight: 600;
}

h3 {
    font-size: var(--fs-md);
    font-weight: 600;
}

p {
    margin: 0 0 var(--sp-3);
}

label {
    display: inline-block;
    margin: 0 0 var(--sp-2);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-3);
}

.content-sec h2 {
    font-family: var(--font-body);
    font-size: 1.2125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-3);
    margin-top: 0;
}

#seconds,
.list-name {
    font-weight: 600;
}

.icon::before {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.copy::before {
    content: "content_copy";
}

.repeat::before {
    content: "repeat";
}

.share::before {
    content: "share";
}

.refresh::before {
    content: "refresh";
}

.arrow_upward::before {
    content: "arrow_upward";
}

.menu::before {
    content: "menu";
}

.lightbulb::before {
    content: "lightbulb";
}

.close_small::before {
    content: "close";
}

.arrow_back::before {
    content: "arrow_back";
}

.material-symbols-outlined {
    vertical-align: middle;
}

header {
    background: var(--header-bg);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--header-line);
}

    header img {
    max-width: 75%;
    }

header .i-s {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    margin: 0;
    padding: 0 var(--sp-4);
}

header .lG {
    flex: 1;
    text-align: center;
}

header .lG img {
    width: auto;
    height: 34px;
    margin: 0 auto;
}

.site-title img {
    width: 190px;
    padding-top: var(--sp-1);
}

header p {
    margin: var(--sp-2) 0 var(--sp-2) var(--sp-2);
    color: var(--header-text-2);
    font-size: var(--fs-sm);
}

header .i-s span,
.i-s span {
    color: var(--header-text-2);
}

header #tL a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 8px 15px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--header-text);
    font-size: var(--fs-sm);
    font-weight: 600;
}

header #tL a span {
    position: absolute;
    top: -6px;
    right: -8px;
    display: block;
    padding: 0 6px;
    border-radius: var(--r-pill);
    background: var(--alert);
    color: #fff;
    font-size: var(--fs-2xs);
    line-height: 1.6;
}

i.icon.arrow_back {
    color: var(--header-text);
}

#openMenu {
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: var(--r-md);
    color: var(--header-text-2);
    transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}

#openMenu::before {
    font-size: 22px;
}

.menu-buttons i {
    display: block;
    padding: var(--sp-2) var(--sp-3);
    cursor: pointer;
    color: var(--header-text);
}

.one-line {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.main-i-s {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--glass-line);
}

nav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

nav .lK {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: var(--sp-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--sp-3) var(--sp-4);
    margin: 0;
}

nav .lK::-webkit-scrollbar {
    display: none;
}

nav .lK a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 8px 15px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 600;
}

nav .lK a.active-link {
    background: var(--accent-soft);
    border-color: var(--accent-line);
    color: var(--accent-strong);
}

.i-s {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    padding: 16px 6px;
    margin: 0;
}

.i-cT {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.i-s .i-cT textarea {
    flex-grow: 1;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 60px;
    padding: 16px 50px 16px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    background: var(--surface);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    outline: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xs);
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.i-s .i-cT textarea::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.i-s .i-cT textarea::placeholder {
    color: var(--text-3);
}

.i-s .i-cT textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

#cB {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    transform: none;
    z-index: 10;
    width: 56px;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
    background: transparent;
    color: var(--text-2);
    font-size: 20px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transition: color var(--speed) var(--ease);
}

#cB.show,
#cB[style*="block"],
#cB[style*="flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#cB i,
#cB .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    line-height: 1;
    pointer-events: none;
}

#cB i::before,
#cB .icon::before {
    font-size: 22px;
    line-height: 1;
}

input[type="number"] {
    width: 100%;
    height: 52px;
    padding: 0 var(--sp-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: var(--surface);
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

input[type="number"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

#main-cT {
    flex: 1;
    position: relative;
    min-width: 0;
}

#main-cT h1 {
    margin: var(--sp-6) var(--sp-4) var(--sp-4);
    font-size: var(--fs-2xl);
    font-weight: 600;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--text);
}

#cTDiv {
    display: grid;
    justify-content: center;
}

.fAT {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    list-style: none;
    margin: 0;
    padding: var(--sp-2) 0px var(--sp-4) 0;
}

.fAT li {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.fAT p,
.qList p {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 22px 54px 22px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    font-size: var(--fs-lg);
    line-height: 1.55;
    word-break: break-word;
    cursor: pointer;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.qList p {
    padding-right: 22px;
    margin-bottom: var(--sp-3);
}

.fAT li .name {
    position: absolute;
    top: -9px;
    left: 16px;
    z-index: 2;
    padding: 2px 10px;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent-strong);
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fAT .new {
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.fAT .btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 0;
}

.fAT h2 {
    grid-column: 1 / -1;
    margin: var(--sp-4) 0 var(--sp-1);
}

.fAT .ads {
    grid-column: 1 / -1;
}

.fAT a.morefancy {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
    color: var(--accent-strong);
    font-weight: 700;
    transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.opt {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 2;
}

.opt i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-3);
    font-size: 18px;
    cursor: pointer;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

#fancy-list h2 {
    margin: var(--sp-6) var(--sp-4) var(--sp-2);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text);
}

#fancy-list p i {
    display: inline-block;
    padding: 6px 11px;
    margin: 3px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-style: normal;
    cursor: pointer;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.settings-share {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-2);
    padding: 0 var(--sp-4);
}

span.sharetext {
    margin-right: var(--sp-1);
    color: var(--text-3);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.share-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: var(--sp-2) var(--sp-4) calc(var(--sp-2) + env(safe-area-inset-bottom));
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--glass-line);
}

#st-1 {
    z-index: 1 !important;
}

.bottom-icons {
    position: fixed;
    right: 0;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sp-2);
    text-align: center;
}

.bottom-icons i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-right: none;
    border-radius: var(--r-pill) 0 0 var(--r-pill);
    background: var(--surface);
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    user-select: none;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), color var(--speed) var(--ease);
}

i.lightbulb {
    color: var(--accent) !important;
}

.font-size {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-3);
    margin: var(--sp-4);
}

.font-size label {
    margin: 0;
    color: var(--text-3);
}

input#fontController {
    width: 220px;
    margin: 0;
}

#fontController {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    outline: none;
    cursor: pointer;
}

#fontController::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
}

#fontController::-moz-range-track {
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
}

#fontController::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease);
}

#fontController::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--shadow-sm);
}

.loadmore,
.load-more {
    clear: both;
    margin: var(--sp-6) 0;
    text-align: center;
}

.loadmore button,
#othertools a {
    display: inline-block;
    padding: 13px 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: 700;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
}

#othertools a {
    margin: var(--sp-2);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.close-top {
    width: 100%;
    margin: 0;
    padding: var(--sp-2);
    border-radius: var(--r-md);
    background: var(--alert);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
}

.dark-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    float: right;
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.f-m,
.f-m-q {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: var(--sp-5) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom));
    background: var(--bg);
    align-items: center;
    overflow: hidden;
}

.open {
    display: block;
    animation: nlFade 0.26s var(--ease) both;
}

@keyframes nlFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.f-m .lK {
    display: inline-block;
    height: 100%;
    margin: var(--sp-1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.f-m .lK a {
    margin: var(--sp-1);
}

.f-m-q #quoteDisplay {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.f-m-q #sidelK {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

#sidelK {
    height: 100vh;
    height: 100dvh;
    padding: 1px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#sidelK .lK span {
    color: var(--text);
}

.close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-2);
    font-size: 24px;
    cursor: pointer;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.menuLeft {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.menuLeft button {
    margin: var(--sp-2) 0;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    font-size: var(--fs-lg);
    box-shadow: var(--shadow-xs);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}

.menuRight h3 {
    margin-bottom: var(--sp-2);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-2);
}

.lK {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
}

.lK a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.lK span {
    padding: var(--sp-2) 2px;
}

.lK h3 {
    flex-basis: 100%;
    margin: var(--sp-4) 0 var(--sp-1);
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-3);
}

#lK {
    display: block;
}

#lK p {
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--text-3);
}

.othersites #lK a {
    display: inline-block;
    width: 32%;
}

.lm {
    float: left;
    width: 100%;
    height: 80%;
    padding: var(--sp-2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lm a {
    float: left;
    margin: var(--sp-1);
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-md);
    box-shadow: var(--shadow-xs);
}

#right-menu {
    padding: var(--sp-5) var(--sp-4);
}

.textfaces {
    display: none;
    padding: var(--sp-4);
}

.textfaces i {
    display: inline-block;
    margin: var(--sp-1);
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text-2);
    font-style: normal;
    cursor: pointer;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.ads {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    clear: both;
    margin: var(--sp-4) 0;
    padding: 0;
    background: var(--surface-2);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-md);
    overflow: hidden;
}

.dark-mode .ads {
    background: var(--surface-2);
    border-color: var(--line-strong);
}

.info-text {
    padding: var(--sp-5) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin: var(--sp-5) var(--sp-4);
    overflow: hidden;
    color: var(--text-2);
}

.info-text img {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
}

.example {
    margin: var(--sp-3) 0;
    color: var(--alert);
    font-size: var(--fs-md);
}

.tip {
    margin: var(--sp-4) 0;
    padding: var(--sp-4);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background: var(--surface-2);
    color: var(--text-2);
}

.cta {
    margin: var(--sp-8) 0;
    text-align: center;
}

.cta a {
    display: inline-block;
    padding: 13px 26px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.faq-section {
    max-width: 900px;
    margin: var(--sp-10) auto;
    padding: var(--sp-6) var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.faq-section h2 {
    margin-bottom: var(--sp-4);
    font-size: var(--fs-xl);
    text-align: center;
}

.faq {
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--line);
}

.faq:last-child {
    border-bottom: none;
}

.faq h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin: 0;
    font-size: var(--fs-md);
    color: var(--text);
    cursor: pointer;
    transition: color var(--speed) var(--ease);
}

.faq h3::after {
    content: "\25BC";
    font-size: var(--fs-xs);
    color: var(--text-3);
    transition: transform var(--speed) var(--ease);
}

.faq p {
    display: none;
    margin-top: var(--sp-2);
    color: var(--text-2);
    font-size: var(--fs-base);
}

.faq.active p {
    display: block;
}

.faq.active h3 {
    color: var(--accent-strong);
}

.faq.active h3::after {
    transform: rotate(180deg);
}

i.tooltiptext {
    position: relative;
    width: auto;
    min-width: 46px;
    height: 30px;
    padding: 5px 10px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--text);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text) transparent transparent transparent;
}

.page-load-status {
    position: fixed;
    right: 0;
    bottom: 15%;
    left: 0;
    z-index: 99;
    display: none;
    text-align: center;
}

.infinite-scroll-request div {
    display: inline-block;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: var(--fs-sm);
    box-shadow: var(--shadow-md);
}

#quoteDisplay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

footer {
    padding: var(--sp-6) 0 var(--sp-4);
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--text-3);
    font-size: var(--fs-sm);
}

#footermenu {
    clear: both;
}

#footermenu .lK {
    display: block;
    margin: var(--sp-4);
}

#index .textfaces,
.index .textfaces,
.fAT .shareitbutton,
.pagination,
.hideit,
p.aryapage {
    display: none;
}

@media (hover: hover) and (pointer: fine) {

    .fAT p:hover,
    .qList p:hover {
        transform: translateY(-2px);
        border-color: var(--accent-line);
        box-shadow: var(--shadow-md);
    }

    .opt i:hover {
        background: var(--accent-soft);
        color: var(--accent-strong);
    }

    .lK a:hover,
    .lK a.active-link {
        transform: translateY(-1px);
        border-color: var(--accent-line);
        color: var(--accent-strong);
        box-shadow: var(--shadow-sm);
    }

    nav .lK a:hover {
        background: var(--accent-soft);
        color: var(--accent-strong);
    }

    .lm a:hover {
        border-color: var(--accent-line);
        color: var(--accent-strong);
    }

    .bottom-icons i:hover {
        transform: translateX(-3px);
        color: var(--accent-strong);
        box-shadow: var(--shadow-md);
    }

    .loadmore button:hover {
        transform: translateY(-1px);
        border-color: var(--accent-line);
        color: var(--accent-strong);
        box-shadow: var(--shadow-sm);
    }

    #othertools a:hover {
        background: var(--accent-strong);
        border-color: var(--accent-strong);
    }

    .cta a:hover {
        background: var(--accent-strong);
        transform: translateY(-1px);
    }

    .menuLeft button:hover {
        background: var(--accent-soft);
        box-shadow: var(--shadow-sm);
    }

    .close-button:hover,
    #cB:hover {
        background: var(--accent-soft);
        color: var(--accent-strong);
    }

    #openMenu:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .fAT a.morefancy:hover {
        background: var(--surface);
        border-color: var(--accent-line);
    }

    #fancy-list p i:hover,
    .textfaces i:hover {
        background: var(--accent-soft);
        color: var(--accent-strong);
        border-color: var(--accent-line);
    }

    .faq h3:hover {
        color: var(--accent-strong);
    }

    .dark-toggle:hover {
        border-color: var(--accent-line);
        color: var(--accent-strong);
    }

    #fontController::-webkit-slider-thumb:hover {
        transform: scale(1.12);
    }

    .btn button:hover {
        color: var(--accent-strong);
    }
}

.fAT p:active,
.qList p:active,
.lK a:active,
.lm a:active,
.loadmore button:active,
#othertools a:active,
.menuLeft button:active,
.textfaces i:active {
    transform: scale(0.985);
    box-shadow: var(--shadow-xs);
}

.opt i:active,
.bottom-icons i:active,
.close-button:active,
#cB:active {
    transform: scale(0.92);
}

@media (min-width: 600px) {

    .fAT p,
    .qList p {
        font-size: var(--fs-xl);
    }

    .info-text,
    .fAT,
    .settings-share,
    #main-cT h1,
    #fancy-list h2 {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 968px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .cT {
        padding: 0 var(--sp-6);
    }

    .main-content {
        display: flex;
        align-items: flex-start;
        gap: var(--sp-5);
    }

    .main-content-loop {
        flex: 1;
        min-width: 0;
    }

    #right-menu {
        position: -webkit-sticky;
        position: sticky;
        top: 96px;
        width: 320px;
        flex-shrink: 0;
        align-self: flex-start;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: var(--sp-5) 0;
        z-index: 5;
    }

    #right-menu .lK {
        position: static;
        overflow: visible;
    }

    .fAT {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: var(--sp-4);
    }

    .fAT p,
    .qList p {
        font-size: var(--fs-xl);
    }

    #main-cT h1 {
        font-size: 2.1rem;
    }

    .info-text img {
        width: 700px;
        margin: 0 auto;
    }

    .boxedview {
        margin: 8% auto 0;
    }

    .bB a {
        bottom: 5%;
    }

    header .lG img {
        height: 38px;
    }
}

.dark-mode {
    --bg: #14131C;
    --surface: #1C1B26;
    --surface-2: #242331;
    --surface-3: #2E2D3D;
    --line: #302F40;
    --line-strong: #403F52;

    --text: #ECEAF2;
    --text-2: #B3B0C2;
    --text-3: #807CA0;

    --accent: #DFA85E;
    --accent-strong: #F0C280;
    --accent-soft: #2B2415;
    --accent-line: #4C3E22;
    --alert: #E08872;

    --header-bg: #1A1924;
    --header-line: #2E2D3D;
    --header-text: #F2F0F7;
    --header-text-2: #A6A2BB;

    --glass: rgba(20, 19, 28, 0.8);
    --glass-line: rgba(255, 255, 255, 0.06);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 46px rgba(0, 0, 0, 0.58);

    background: var(--bg);
    color: var(--text);
}

.dark-mode .f-m,
.dark-mode .f-m-q {
    background: var(--bg);
    color: var(--text);
}

.dark-mode #lG,
.dark-mode nav {
    background: var(--surface);
}

.dark-mode .main-i-s {
    background: var(--glass);
}

.dark-mode .i-s .i-cT textarea,
.dark-mode textarea#tI,
.dark-mode input[type="number"] {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line-strong);
}

.dark-mode .bottom-icons i,
.dark-mode .lK a,
.dark-mode .loadmore button,
.dark-mode .menuLeft button,
.dark-mode .close-button,
.dark-mode .dark-toggle,
.dark-mode .lm a,
.dark-mode .textfaces i {
    background: var(--surface);
    color: var(--text-2);
    border-color: var(--line);
}

.dark-mode .fAT p,
.dark-mode .qList p {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.dark-mode nav .lK a {
    background: var(--surface-2);
    color: var(--text-2);
}

.dark-mode #othertools a,
.dark-mode .cta a {
    background: var(--accent);
    border-color: var(--accent);
    color: #1A1305;
}

.dark-mode i.tooltiptext {
    background: var(--surface-3);
    color: var(--text);
}

.dark-mode .tooltiptext::after {
    border-color: var(--surface-3) transparent transparent transparent;
}

.dark-mode #fontController,
.dark-mode #fontController::-webkit-slider-runnable-track,
.dark-mode #fontController::-moz-range-track {
    background: var(--surface-3);
}

.dark-mode #fontController::-webkit-slider-thumb,
.dark-mode #fontController::-moz-range-thumb {
    border-color: var(--surface);
}

.dark-mode .info-text,
.dark-mode .faq-section {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text-2);
}

.dark-mode .tip {
    background: var(--surface-2);
}

@media (hover: hover) and (pointer: fine) {

    .dark-mode .fAT p:hover,
    .dark-mode nav .lK a:hover {
        background: var(--surface-2);
        color: var(--text);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}