html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.mirrors {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 24px;
}

.mirrors a {
    color: #fff;
    text-decoration: none;
}

.mirrors a:hover {
    text-decoration: underline;
}

.more-info {
    margin-left: 6px;
    color: #999 !important;
}

.more-info:hover {
    color: #fff !important;
}

.cat-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    padding: 12px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 8s linear infinite;
    transform: translate(-50%, -50%);
}

.cat {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.round-objects .cat-container {
    border-radius: 24px;
}

body.round-objects .cat {
    border-radius: 16px;
}

body.round-objects .config-menu {
    border-radius: 16px;
    overflow: hidden;
}

body.round-objects .config-toggle {
    border-radius: 50%;
}

body.round-objects .switch {
    border-radius: 20px;
}

body.round-objects .switch::before {
    border-radius: 50%;
}

body.round-objects .menu-tab {
    border-radius: 16px;
}

body.round-objects .update-entry {
    border-radius: 16px;
}

body.stop-spin .cat-container {
    animation: none;
    transform: translate(-50%, -50%);
}

.config-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.config-toggle:hover {
    background: #333;
    transform: scale(1.05);
}

.config-menu {
    position: absolute;
    top: 76px;
    right: 20px;
    z-index: 19;
    width: 280px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #1b1b1b;
    border: 1px solid #333;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.config-menu[hidden] {
    display: none;
}

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    font-size: 15px;
    font-weight: bold;
}

.config-close {
    border: none;
    background: transparent;
    color: #888;
    font-size: 23px;
    cursor: pointer;
    line-height: 1;
}

.config-close:hover {
    color: #fff;
}

.menu-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.menu-tab {
    flex: 1;
    padding: 9px 6px;
    border: 1px solid #333;
    background: #222;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.menu-tab:hover {
    background: #2d2d2d;
    color: #fff;
}

.menu-tab.active {
    background: #333;
    border-color: #555;
    color: #fff;
}

.menu-content {
    min-height: 0;
    overflow-y: auto;
}

.config-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
}

.config-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.switch {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    background: #444;
    transition: background 0.2s;
}

.switch::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    transition: transform 0.2s;
}

.config-option input:checked+.switch {
    background: #777;
}

.config-option input:checked+.switch::before {
    transform: translateX(16px);
}

.config-option input:focus-visible+.switch {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whats-new-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 2px;
}

.update-entry {
    padding: 12px;
    background: #222;
    border: 1px solid #333;
}

.update-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: bold;
}

.update-entry p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
    line-height: 1.6;
}

.menu-content::-webkit-scrollbar {
    width: 5px;
}

.menu-content::-webkit-scrollbar-track {
    background: #1b1b1b;
}

.menu-content::-webkit-scrollbar-thumb {
    background: #444;
}

.menu-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}