:root {
    color-scheme: light;
    --bg: #f7f8fc;
    --panel: #ffffff;
    --panel-soft: #fff5f8;
    --panel-soft-2: #f9fafc;
    --text: #263043;
    --heading: #151b2b;
    --muted: #667085;
    --brand1: #f43f7e;
    --brand2: #ff795a;
    --brand3: #19a7b8;
    --line: #e7e9f0;
    --line-strong: #d7dae5;
    --danger: #b42318;
    --success: #087443;
    --success-bg: #ecfdf3;
    --danger-bg: #fff1f0;
    --nav-pill: transparent;
    --nav-pill-hover: #fff0f4;
    --nav-border: transparent;
    --dropdown-bg: #ffffff;
    --dropdown-text: #344054;
    --dropdown-hover: #fff4f7;
    --dropdown-link-border: #eef0f5;
    --dropdown-title: #c62961;
    --dropdown-item-title: #252b3b;
    --ad-bg: #f9fafb;
    --ad-text: #7a8190;
    --input-bg: #ffffff;
    --input-border: #d9dce5;
    --input-focus: rgba(244, 63, 126, .22);
    --btn: #ed2f70;
    --btn-text: #ffffff;
    --btn-light-bg: #ffffff;
    --btn-light-text: #30384a;
    --btn-light-border: #d9dce5;
    --btn-alt: #168b9a;
    --btn-alt-text: #ffffff;
    --btn-ghost-text: #b82258;
    --btn-ghost-border: #f4a7c2;
    --chip-bg: #ffffff;
    --shadow-soft: 0 12px 34px rgba(25, 31, 48, .07);
    --shadow-dropdown: 0 24px 65px rgba(31, 37, 51, .17);
    --theme-toggle-bg: #f5f6fa;
    --theme-toggle-border: #e4e7ee;
    --theme-toggle-text: #30384a;
    --tool-card-bg: #ffffff;
    --tool-card-border: #e7e9f0;
    --focus-ring: 0 0 0 4px rgba(244, 63, 126, .14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #10131c;
    --panel: #191e2a;
    --panel-soft: #24202c;
    --panel-soft-2: #151923;
    --text: #e8eaf0;
    --heading: #ffffff;
    --muted: #aab0bf;
    --brand1: #ff548e;
    --brand2: #ff8b6f;
    --brand3: #53c5d2;
    --line: #2c3342;
    --line-strong: #3b4354;
    --danger: #ffb4ab;
    --success: #75dda8;
    --success-bg: #11291f;
    --danger-bg: #321b1d;
    --nav-pill-hover: rgba(255, 255, 255, .07);
    --dropdown-bg: #1c2230;
    --dropdown-text: #e3e6ed;
    --dropdown-hover: #292433;
    --dropdown-link-border: #303746;
    --dropdown-title: #ff8eb4;
    --dropdown-item-title: #ffffff;
    --ad-bg: #151923;
    --ad-text: #aab0bf;
    --input-bg: #11151e;
    --input-border: #3a4252;
    --input-focus: rgba(255, 84, 142, .26);
    --btn: #f33e7a;
    --btn-light-bg: #202634;
    --btn-light-text: #f2f4f7;
    --btn-light-border: #3a4252;
    --btn-alt: #239baa;
    --btn-ghost-text: #ff9dbc;
    --btn-ghost-border: #7f3650;
    --chip-bg: #1c2230;
    --shadow-soft: 0 16px 38px rgba(0, 0, 0, .24);
    --shadow-dropdown: 0 26px 70px rgba(0, 0, 0, .42);
    --theme-toggle-bg: #202634;
    --theme-toggle-border: #343c4c;
    --theme-toggle-text: #f4f5f7;
    --tool-card-bg: #191e2a;
    --tool-card-border: #2c3342;
    --focus-ring: 0 0 0 4px rgba(255, 84, 142, .16);
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: background-color .2s ease, color .2s ease;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--dropdown-title);
    text-underline-offset: .18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--brand1);
    outline-offset: 3px;
}

.wrap,
.container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.container {
    padding-block: clamp(22px, 4vw, 48px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--text);
    background: color-mix(in srgb, var(--panel) 91%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    box-shadow: 0 8px 28px rgba(28, 34, 49, .05);
    backdrop-filter: blur(18px) saturate(150%);
}

.header-main {
    display: grid;
    grid-template-columns: minmax(168px, 218px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    min-height: 82px;
}

.brand,
.brand a {
    display: flex;
    align-items: center;
}

.brand a {
    border-radius: 12px;
}

.logo {
    width: min(218px, 100%);
    max-height: 68px;
    object-fit: contain;
}

.header-center {
    min-width: 0;
}

.desktop-nav,
.header-actions {
    display: flex;
    align-items: center;
}

.desktop-nav {
    justify-content: center;
    gap: 2px;
}

.desktop-nav > a,
.nav-dropdown__toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.desktop-nav > a:hover,
.nav-dropdown__toggle:hover,
.nav-dropdown:focus-within .nav-dropdown__toggle {
    color: var(--brand1);
    background: var(--nav-pill-hover);
    text-decoration: none;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__toggle {
    appearance: none;
}

.nav-dropdown__toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -4px 0 0 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: none;
    width: min(760px, calc(100vw - 32px));
    padding: 18px;
    transform: translateX(-50%);
    color: var(--dropdown-text);
    background: var(--dropdown-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    display: block;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dropdown-grid--games {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.dropdown-col {
    min-width: 0;
}

.dropdown-col__title {
    margin: 0 0 9px;
    padding-inline: 5px;
    color: var(--dropdown-title);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dropdown-list {
    display: grid;
    gap: 6px;
}

.dropdown-list a {
    display: block;
    padding: 10px 11px;
    color: var(--dropdown-text);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.dropdown-list a:hover {
    background: var(--dropdown-hover);
    border-color: var(--dropdown-link-border);
    transform: translateX(2px);
}

.dropdown-item__title,
.dropdown-item__desc {
    display: block;
}

.dropdown-item__title {
    color: var(--dropdown-item-title);
    font-size: .91rem;
    font-weight: 700;
}

.dropdown-item__desc {
    margin-top: 2px;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.35;
}

.header-actions {
    position: relative;
    justify-content: flex-end;
    gap: 8px;
}

.theme-toggle,
.favorites-toggle,
.mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--theme-toggle-border);
    background: var(--theme-toggle-bg);
    color: var(--theme-toggle-text);
    cursor: pointer;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.theme-toggle:hover,
.favorites-toggle:hover,
.mobile-menu-toggle:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.favorites-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    color: var(--theme-toggle-text);
    background: var(--theme-toggle-bg);
    border-radius: 12px;
    font-weight: 600;
}

.favorites-toggle > span:first-child {
    color: #f59e0b;
    font-size: 1.05rem;
}

.favorites-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    width: min(360px, calc(100vw - 24px));
    padding: 14px;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-dropdown);
}

.favorites-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    color: var(--heading);
    border-bottom: 1px solid var(--line);
}

.favorites-panel__close,
.favorites-panel__remove {
    display: grid;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    place-items: center;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.favorites-panel__close:hover,
.favorites-panel__remove:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.favorites-panel__empty {
    margin: 12px 2px 2px;
    color: var(--muted);
    font-size: .86rem;
}

.favorites-panel__list {
    display: grid;
    gap: 7px;
    padding-top: 10px;
}

.favorites-panel__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 7px 7px 11px;
    background: var(--panel-soft-2);
    border: 1px solid var(--line);
    border-radius: 11px;
}

.favorites-panel__item a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--text);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-panel__item a:hover {
    color: var(--brand1);
}

.mobile-menu-toggle {
    display: none;
    place-items: center;
    padding: 0;
    border-radius: 12px;
    font-size: 1.25rem;
}

.mobile-nav-panel {
    display: none;
    padding-bottom: 14px;
}

.mobile-nav-panel.is-open {
    display: block;
}

.mobile-nav-links {
    display: grid;
    gap: 7px;
    padding: 10px;
    background: var(--panel-soft-2);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mobile-nav-links > a,
.mobile-nav-section summary,
.mobile-theme-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.mobile-nav-links > a:hover,
.mobile-nav-section summary:hover,
.mobile-theme-toggle:hover {
    color: var(--brand1);
    background: var(--dropdown-hover);
}

.mobile-nav-section summary {
    list-style: none;
}

.mobile-nav-section summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-section summary::after {
    content: "+";
    font-size: 1.3rem;
}

.mobile-nav-section[open] summary::after {
    content: "−";
}

.mobile-nav-sublist {
    display: grid;
    gap: 5px;
    padding: 3px 8px 10px 22px;
}

.mobile-nav-sublist a {
    min-height: 42px;
    padding: 9px 11px;
    color: var(--dropdown-item-title);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.header-ad-row,
.footer-ad-row {
    padding-block: 8px;
}

.ad-slot {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 6px;
    color: var(--ad-text);
    background: var(--ad-bg);
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    text-align: center;
}

.ad-slot--header {
    width: 728px;
    min-height: 90px;
    margin-inline: auto;
}

.ad-slot--footer {
    width: 468px;
    min-height: 60px;
    margin-inline: auto;
}

.ad-slot--inline {
    width: 100%;
    min-height: 110px;
    margin-block: 20px;
}

.ad-slot__inner {
    width: 100%;
}

.ad-slot__placeholder {
    padding: 8px;
    font-size: .78rem;
}

.panel {
    margin: 0 0 22px;
    padding: clamp(18px, 2.5vw, 26px);
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 18px rgba(25, 31, 48, .05);
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.panel h1,
.panel h2,
.panel h3 {
    color: var(--heading);
}

.panel h1 {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.panel h2 {
    line-height: 1.25;
}

.desc {
    position: relative;
    margin: 14px 0 22px;
    padding: 12px 14px;
    color: var(--muted);
    background: var(--panel-soft-2);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.desc p {
    margin: .35rem 0;
}

.muted {
    color: var(--muted);
}

.row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.row.between {
    justify-content: space-between;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.grid-2 label,
.row label {
    color: var(--heading);
    font-size: .92rem;
    font-weight: 600;
}

.grid-2 label > input,
.grid-2 label > select {
    display: block;
    width: 100%;
    margin-top: 7px;
}

.mt {
    margin-top: 14px;
}

.grow {
    flex: 1 1 220px;
}

input,
select,
textarea {
    max-width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 11px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--brand1);
    box-shadow: var(--focus-ring);
}

button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.btn,
.chip {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.btn {
    color: var(--btn-text);
    background: var(--btn);
    border: 1px solid transparent;
    box-shadow: 0 7px 18px rgba(237, 47, 112, .18);
}

.btn:hover {
    filter: brightness(.96);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--light {
    color: var(--btn-light-text);
    background: var(--btn-light-bg);
    border-color: var(--btn-light-border);
    box-shadow: none;
}

.btn--alt {
    color: var(--btn-alt-text);
    background: var(--btn-alt);
    box-shadow: 0 7px 18px rgba(22, 139, 154, .17);
}

.btn--ghost {
    color: var(--btn-ghost-text);
    background: transparent;
    border-color: var(--btn-ghost-border);
    box-shadow: none;
}

.chip {
    color: var(--text);
    background: var(--chip-bg);
    border: 1px solid var(--line);
    font-size: .9rem;
    font-weight: 600;
}

.chip:hover {
    border-color: var(--brand1);
    color: var(--brand1);
}

.chip input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--brand1);
}

.kpi,
.result,
.timer-display {
    color: var(--heading);
    background: var(--panel-soft-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.kpi {
    padding: 16px;
    text-align: center;
}

.result {
    margin-top: 16px;
    padding: 16px;
    font-weight: 700;
}

.timer-display {
    margin: 18px 0;
    padding: clamp(18px, 5vw, 34px);
    font-size: clamp(2.2rem, 10vw, 5.4rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
    line-height: 1;
    text-align: center;
}

.flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.flash--error {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
}

.flash--success {
    color: var(--success);
    background: var(--success-bg);
    border-color: color-mix(in srgb, var(--success) 28%, var(--line));
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(10, 12, 18, .64);
    backdrop-filter: blur(5px);
}

.overlay__box {
    width: min(520px, 100%);
    padding: 22px;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-dropdown);
    text-align: center;
}

.overlay__ad {
    margin-top: 12px;
    padding: 12px;
    background: var(--ad-bg);
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
}

.seo-ad-compact {
    max-width: 728px;
    margin: 20px auto;
}

.seo-ad-compact ins.adsbygoogle {
    width: 100%;
    min-height: 90px;
}

.seo-accordion-group {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.seo-accordion {
    overflow: hidden;
    background: var(--panel-soft-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.seo-accordion summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    color: var(--heading);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.seo-accordion summary::-webkit-details-marker {
    display: none;
}

.seo-accordion summary::after {
    color: var(--brand1);
    font-size: 1.35rem;
    content: "+";
}

.seo-accordion[open] summary::after {
    content: "−";
}

.seo-accordion__content {
    padding: 2px 16px 16px;
    background: var(--panel);
    border-top: 1px solid var(--line);
}

.seo-accordion__content h3 {
    margin: 14px 0 8px;
    color: var(--heading);
}

.site-footer {
    padding: 26px 0 max(26px, env(safe-area-inset-bottom));
    color: var(--muted);
    background: color-mix(in srgb, var(--panel) 74%, transparent);
    border-top: 1px solid var(--line);
}

.partner-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.partner-panel__head h2,
.partner-panel__head p { margin: 0; }
.partner-panel__head p { max-width: 390px; color: var(--muted); font-size: .82rem; }
.partner-label { display: block; margin-bottom: 5px; color: var(--brand1); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 12px; }
.partner-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; background: var(--panel-soft-2); border: 1px solid var(--line); border-radius: 14px; }
.partner-card strong { color: var(--heading); }
.partner-card p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.partner-card[hidden] { display: none; }
.partner-offer { display: inline-block; margin-bottom: 7px; padding: 4px 8px; color: #fff; background: var(--brand1); border-radius: 999px; font-size: .72rem; font-weight: 800; }
.partner-card .partner-code { margin-top: 9px; color: var(--heading); font-weight: 700; }
.partner-code code { padding: 3px 6px; color: var(--heading); background: var(--panel); border: 1px dashed var(--line); border-radius: 6px; font: inherit; }
.partner-card .partner-conditions { max-width: 620px; margin-top: 8px; font-size: .7rem; line-height: 1.45; }
.partner-card__actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 7px; }
.partner-offer-link { color: var(--brand1); font-size: .72rem; font-weight: 700; text-align: center; }
.partner-card__pending { flex: 0 0 auto; padding: 7px 9px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; font-size: .72rem; font-weight: 700; }

@media (max-width: 640px) {
    .partner-panel__head { flex-direction: column; gap: 7px; }
    .partner-grid { grid-template-columns: 1fr; }
    .partner-card { align-items: flex-start; flex-direction: column; }
    .partner-card__actions { align-items: stretch; width: 100%; }
    .partner-card__actions .btn { text-align: center; }
}

.site-footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.footer-links a {
    color: var(--text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand1);
}

.footer-note {
    max-width: 780px;
    margin-top: 12px;
    font-size: .8rem;
}

.pwa-install {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 13px 14px;
    color: var(--text);
    background: linear-gradient(115deg, var(--panel), var(--panel-soft));
    border: 1px solid color-mix(in srgb, var(--brand1) 20%, var(--line));
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.pwa-install__copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.pwa-install__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
}

.pwa-install__text {
    min-width: 0;
}

.pwa-install__text strong,
.pwa-install__text span {
    display: block;
}

.pwa-install__text strong {
    color: var(--heading);
    font-size: .94rem;
}

.pwa-install__text span {
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-install__button {
    flex: 0 0 auto;
}

@media (max-width: 1080px) {
    .header-main {
        grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto;
    }

    .desktop-nav {
        gap: 0;
    }

    .desktop-nav > a,
    .nav-dropdown__toggle {
        padding-inline: 9px;
        font-size: .88rem;
    }

    .theme-toggle {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .theme-toggle #themeToggleText {
        display: none;
    }

    .favorites-toggle__label {
        display: none;
    }
}

@media (max-width: 860px) {
    .wrap,
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-main {
        grid-template-columns: minmax(145px, 190px) 1fr auto;
        min-height: 72px;
    }

    .header-center,
    .desktop-nav {
        display: none;
    }

    .header-actions {
        grid-column: 3;
    }

    .favorites-panel {
        position: fixed;
        top: 74px;
        right: 12px;
    }

    .mobile-menu-toggle {
        display: grid;
    }

    .theme-toggle {
        display: none;
    }

    .logo {
        max-height: 58px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .ad-slot--header,
    .ad-slot--footer {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
        background:
            radial-gradient(circle at 10% -5%, rgba(244, 63, 126, .08), transparent 18rem),
            var(--bg);
    }

    .wrap,
    .container {
        width: min(100% - 20px, 1180px);
    }

    .container {
        padding-block: 18px 30px;
    }

    .header-main {
        min-height: 64px;
    }

    .logo {
        width: 164px;
        max-height: 52px;
    }

    .panel {
        padding: 17px 14px;
        border-radius: 18px;
    }

    .panel-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .panel-head .btn {
        width: 100%;
    }

    .row {
        align-items: stretch;
    }

    .row > label:not(.chip) {
        width: 100%;
    }

    .row > label:not(.chip) input,
    .row > label:not(.chip) select {
        display: block;
        width: 100%;
        margin-top: 6px;
    }

    .row > .btn {
        flex: 1 1 calc(50% - 10px);
    }

    .timer-display {
        padding-inline: 8px;
    }

    .ad-slot--header {
        display: none;
    }

    .seo-ad-compact {
        max-width: 100%;
        margin-inline: 0;
    }

    .seo-ad-compact ins.adsbygoogle {
        min-height: 70px;
    }

    .pwa-install {
        align-items: stretch;
        flex-direction: column;
    }

    .pwa-install__button {
        width: 100%;
    }
}

@media (display-mode: standalone) {
    .site-header {
        position: static;
    }

    .header-center,
    .header-actions,
    .mobile-nav-panel,
    .footer-links,
    .footer-note,
    .pwa-install {
        display: none !important;
    }

    .header-main {
        display: flex;
        min-height: 66px;
        justify-content: center;
    }

    .brand {
        width: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
