* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Roboto', sans-serif;
    color: #fff;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

:root {
    --bg: rgba(0, 0, 0, 0.35);
    --blur: 10px; 
    --border: rgba(255, 255, 255, 0.1);
    --custom: rgba(236, 154, 78);
    --white: rgba(235, 235, 235);
    --red: rgb(214, 93, 93);
}

html, body {
    position: relative;
    display: flow-root;
    min-height: 100vh;
    overflow-x: hidden;
    background: rgba(15,15,15);
    z-index: -2;
}

.loader-overlay {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(15, 15, 15);
    z-index: 9999;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--custom);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-overlay p {
    color: var(--white);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-overlay.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

.skip-btn {
    margin-top: 20px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: scale 0.3s ease;
}

.skip-btn:hover {
    scale: 1.1;
}

.background-video {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 101%;
    min-height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* -------------------- NOTIFICATION */
.notification {
    position: fixed;
    min-width: 200px;
    text-align: center;
    top: 50px;
    left: 50%;
    padding: 15px 30px;
    transform: translateX(-50%);
    background: rgb(15, 15, 15);
    box-shadow: 0 0 20px 10px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 15px;
    opacity: 0;
    cursor: pointer;
    pointer-events: none;
    user-select: none;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 10;
}

@media (max-width: 960px) {
    .notification {
        top: 20px;
        border-radius: 0;
        border: 0 solid var(--border);
        width: 100%;
    }
}

.notification.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s ease, visibility 0s;
}

.notification.hidden {
    transform: translateX(-50%) translateY(-20px);
}

.notification-text {
    display: flex;
    color: var(--white);
}

ch-dsgn {
    background: rgb(39, 116, 231, 0.4);
    padding-right: 10px;
    padding-left: 3px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 90px;
}

pp {
    background: rgba(104, 104, 104, 0.4);
    padding: 2px 10px;
    border-radius: 90px;
}

tag {
    cursor: pointer;
    user-select: none;
    padding: 2px 10px;
    border-radius: 90px;
    font-weight: 700;
}

tag.IND {
    background: linear-gradient(135deg, rgba(120, 255, 67, 0.3) 0%, rgba(120, 255, 67, 0.6) 100%);
    backdrop-filter: blur(var(--blur));
    background-clip: padding-box;
    border: 1px solid var(--border);
}

tag.IND-T {
    background: linear-gradient(135deg, rgba(241, 187, 69, 0.3) 0%, rgba(241, 187, 69, 0.6) 100%);
    backdrop-filter: blur(var(--blur));
    background-clip: padding-box;
    border: 1px solid var(--border);
}

tag.RES {
    background: linear-gradient(135deg, rgba(224, 76, 76, 0.3) 0%, rgba(224, 76, 76, 0.6) 100%);
    backdrop-filter: blur(var(--blur));
    background-clip: padding-box;
    border: 1px solid var(--border);
}

tag.TOS {
    background: linear-gradient(135deg, rgba(37, 111, 223, 0.3) 0%, rgba(37, 111, 223, 0.6) 100%);
    backdrop-filter: blur(var(--blur));
    background-clip: padding-box;
    border: 1px solid var(--border);
}

tag.AUTO-MOD {
    background: linear-gradient(135deg, rgba(168, 69, 207, 0.3) 0%, rgba(168, 69, 207, 0.6) 100%);
    backdrop-filter: blur(var(--blur));
    background-clip: padding-box;
    border: 1px solid var(--border);
}

tag.REGEX {
    background: linear-gradient(135deg, rgba(212, 110, 70, 0.3) 0%, rgba(212, 110, 70, 0.6) 100%);
    backdrop-filter: blur(var(--blur));
    background-clip: padding-box;
    border: 1px solid var(--border);
}

/* -------------------- HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
    margin: 15px auto 0 auto;
    padding: 15px 15px;
    height: auto;
    background: var(--bg);
    box-shadow: 0 0 10px 5px rgba(0,0,0,0.2);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: 15px;
}

@media (max-width: 960px) {
    .header {
        width: 95%;
    }
}

.header a {
    text-decoration: none;
}

.header .icon {
    display: flex;
    align-items: center;
    user-select: none;
}

.header .icon span {
    margin-left: 10px;
    font-weight: 500;
    font-size: 20px;
}

.btns {
    display: flex;
    align-items: center;
    gap: 15px;
    user-select: none;
}

.btns a.active {
    color: var(--custom);
    font-weight: 500;
}

.btns a.active:hover {
    cursor: not-allowed;
}

.btns a {
    text-decoration: none;
    opacity: 0.9;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btns a:hover {
    opacity: 0.7;
}

.btns .line {
    height: 20px;
    width: 1px;
    background: var(--border);
}

.header .dropdown {
    display: none;
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    z-index: 2;
}

.header .dropdown .dropdown-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.header .dropdown .bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    gap: 7px;
}

.header .dropdown .bars .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--custom);
    border-radius: 90px;
    transition: width 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.header .dropdown .bars #one {
    width: 100%;
}

.header .dropdown .bars #two {
    width: 50%;
}

.header .dropdown .bars #three {
    width: 75%;
}

@media (min-width: 641px) {
    .header .dropdown:hover .bars #one {
        width: 75%;
    }

    .header .dropdown:hover .bars #two {
        width: 100%;
    }

    .header .dropdown:hover .bars #three {
        width: 50%;
    }
}

@media (max-width: 640px) {
    .header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        width: 95%;
        height: auto;
        min-height: 0;
        box-sizing: border-box;
    }

    .header .icon {
        grid-column: 1;
        grid-row: 1;
    }

    .header .dropdown {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }

    .header .btns {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        opacity: 0;
        box-sizing: border-box;
        background: transparent;
        border: none;
        box-shadow: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    }

    .header.mobile-menu-open .btns {
        max-height: 200px;
        padding-top: 25px;
        opacity: 1;
    }

    .header .btns a {
        display: block;
        width: fit-content;
        padding: 10px 20px;
        text-align: center;
        text-decoration: none;
        background: transparent;
        border: none;
        box-shadow: none;
        font-size: 18px;
        -webkit-tap-highlight-color: transparent;
    }

    .header .btns .line {
        display: block;
        width: 60%;
        height: 1px;
        background: var(--gray);
    }

    .header .dropdown .dropdown-btn,
    .header .dropdown .dropdown-btn:hover,
    .header .dropdown .dropdown-btn:focus,
    .header .dropdown .dropdown-btn:active {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .header .dropdown.open .bars #one {
        width: 100%;
        transform: translateY(10px) rotate(45deg);
    }

    .header .dropdown.open .bars #two {
        opacity: 0;
        transform: scaleX(0);
    }

    .header .dropdown.open .bars #three {
        width: 100%;
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* -------------------- WELCOME */
.welcome {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    width: 920px;
    margin: 0 auto;
    padding: 150px 0;
}

@media (max-width: 960px) {
    .welcome {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 50px;
        width: 95%;
    }
}

.welcome .texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.welcome .texts .name {
    font-size: 48px;
    font-weight: 700;
}

.welcome .texts .descr {
    opacity: 0.6;
}

.welcome .icon {
    display: flex;
    justify-content: right;
    animation: wobble 10s ease-in-out infinite;
}

@keyframes wobble {
  0%   { transform: rotate(-5deg); }
  50%  { transform: rotate(5deg); }
  100% { transform: rotate(-5deg); }
}

@media (max-width: 480px) {
    .welcome .icon {
        transform: scale(0.6);
    }
}

/* -------------------- RULES BTNS */
.rules-btns {
    display: grid;
    width: 1200px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    place-items: center;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .rules-btns {
        width: 95%;
        grid-template-columns: auto;
    }
}

.rules-btns button {
    color: var(--white);
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: var(--bg);
    box-shadow: 0 0 10px 5px rgba(0,0,0,0.2);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: 900px;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease-in-out;
}

.rules-btns button:hover:not(.active) {
    scale: 1.05;
}

.rules-btns button.active {
    cursor: not-allowed;
    background: linear-gradient(135deg, var(--bg) 55%, rgba(236, 154, 78, 0.1) 100%);
    background-clip: padding-box;
}

/* -------------------- RULES INFO */
.rules-info {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    width: 1200px;
    margin: 15px auto 0 auto;
}

@media (max-width: 960px) {
    .rules-info {
        width: 95%;
    }
}

.rules-info .ri1 {
    color: var(--white);
    width: 100%;
    font-size: 24px;
    font-weight: 700;
}

.rules-info .ri2 {
    color: var(--red);
    width: 100%;
    font-size: 21px;
    font-weight: 700;
}

/* -------------------- RULES */
.rules-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    width: 1200px;
    margin: 15px auto 0 auto;
    padding: 30px;
    height: auto;
    background: var(--bg);
    box-shadow: 0 0 10px 5px rgba(0,0,0,0.2);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: 15px;
}

@media (max-width: 960px) {
    .rules-list {
        width: 95%;
    }
}

.rules-list .line {
    display: block;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0) 0%, rgba(75, 75, 75) 50%, rgba(0, 0, 0, 0) 100%);
    margin: 20px auto;
    width: 80%;
    height: 1px;
}

.rules-list div {
    text-align: justify;
    opacity: 0.9;
    line-height: 26px;
}

.rules-list .rules {
    display: none;
    width: 100%;
}

.rules-list h2 {
    display: block;
    text-align: center;
    margin: 0 auto;
    font-size: 20px;
    padding-bottom: 10px;
    color: var(--red);
}

.rules-list h2.staff-perms {
    padding-top: 15px;
}

.rules-list ul {
    padding-left: 20px;
}

.rules.active {
    display: block;
    animation: rulesIn 0.3s ease-in-out;
}

@keyframes rulesIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------- FOOTER */

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 1200px;
    margin: 15px auto;
    padding: 15px;
    background: var(--bg);
    box-shadow: 0 0 10px 5px rgba(0,0,0,0.2);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: 15px;
}

@media (max-width: 960px) {
    .footer {
        width: 95%;
    }
}

.settings-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 320px;
    z-index: 2;
}

.settings-menu span {
    padding: 3px 0;
    color: var(--white);
    font-size: 14px;
    opacity: 0.7;
}

.settings-menu .blurTxt {
    margin-top: 15px;
}

input[type='range'] {
    accent-color: var(--custom);
    width: 100%;
}

.footer .author {
    display: flex;
    margin-top: 35px;
    justify-content: center;
    width: 100%;
    color: var(--white);
}

.footer .version {
    display: flex;
    color: rgba(255,255,255,0.1);
    font-size: 12px;
    margin-top: 3px;
}