@font-face {
    font-family: 'Ubuntu X';
    src: url('../fonts/ubuntu-condensed.ttf');
    font-display: swap;
}

:root {
    --hcms-beta-faint: #7f7f7f;
    --hcms-beta-bg: #262626;
    --hcms-beta-text: #ffffff;
    --hcms-beta-muted: #b5b5b5;
    --hcms-beta-gold: #f5c25c;
    --hcms-beta-blue: #6d95f3;
    --hcms-beta-red: #ff5942;
    --hcms-beta-radius: 4px;
    --hcms-beta-blue-button: #0095f6;
    --hcms-beta-green-button: #00d38b;
    --hcms-beta-box: #2b2b2b;
    --hcms-beta-border: rgba(255, 255, 255, .08);
}

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

body.hcms-beta {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    background: var(--hcms-beta-bg);
    color: var(--hcms-beta-text);
    font-family: 'Ubuntu X', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    overflow-x: hidden;
}

.hcms-beta a {
    color: inherit;
    text-decoration: none;
}

.hcms-beta-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hcms-beta-shapes span {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, .06);
    animation: hcms-beta-drift 18s linear infinite;
}

.hcms-beta-shapes span:nth-child(odd) { border-radius: 50%; }
.hcms-beta-shapes span:nth-child(3n) { background: rgba(255, 255, 255, .05); border: 0; transform: rotate(45deg); }
.hcms-beta-shapes span:nth-child(1) { top: 12%; left: 8%; }
.hcms-beta-shapes span:nth-child(2) { top: 28%; left: 46%; animation-duration: 22s; }
.hcms-beta-shapes span:nth-child(3) { top: 44%; left: 18%; animation-duration: 26s; }
.hcms-beta-shapes span:nth-child(4) { top: 62%; left: 72%; animation-duration: 20s; }
.hcms-beta-shapes span:nth-child(5) { top: 18%; left: 84%; animation-duration: 24s; }
.hcms-beta-shapes span:nth-child(6) { top: 78%; left: 36%; animation-duration: 28s; }
.hcms-beta-shapes span:nth-child(7) { top: 52%; left: 58%; animation-duration: 19s; }
.hcms-beta-shapes span:nth-child(8) { top: 86%; left: 90%; animation-duration: 23s; }

@keyframes hcms-beta-drift {
    0% { translate: 0 0; rotate: 0deg; }
    50% { translate: 18px -24px; rotate: 90deg; }
    100% { translate: 0 0; rotate: 180deg; }
}

.hcms-beta-header,
.hcms-beta main,
.hcms-beta-footer {
    position: relative;
    z-index: 1;
}

.hcms-beta main {
    display: flex;
    flex: 1;
    align-items: flex-start;
}

.hcms-beta-header {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 20px;
}

.hcms-beta-nav {
    display: flex;
    gap: 26px;
}

.hcms-beta-nav a {
    color: var(--hcms-beta-muted);
    font-weight: 500;
    transition: color .15s ease;
}

.hcms-beta-nav a:hover { color: var(--hcms-beta-text); }

.hcms-beta-logo {
    position: relative;
    display: inline-block;
}

.hcms-beta-logo img {
    display: block;
    height: 40px;
}

.hcms-beta-logo-badge {
    position: absolute;
    top: -6px;
    right: -14px;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--hcms-beta-gold);
    color: #2a2a2a;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.hcms-beta-logo--hero {
    margin-bottom: 26px;
}

.hcms-beta-logo--hero img {
    max-width: 100%;
    height: 72px;
    object-fit: contain;
}

.hcms-beta-logo--hero .hcms-beta-logo-badge {
    top: -8px;
    right: -22px;
    padding: 2px 7px;
    font-size: 13px;
}

.hcms-beta-hero {
    display: flex;
    flex: 1;
    overflow-x: clip;
    overflow-y: visible;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: clamp(24px, calc(100vh - 744px), 48px) 20px 0;
}

.hcms-beta-hero-text {
    max-width: 620px;
}

.hcms-beta-hero h1 {
    margin: 0 0 20px;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .3px;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}

.hcms-beta-gold {
    color: var(--hcms-beta-gold);
}

.hcms-beta-lead {
    margin: 0 0 16px;
    max-width: 560px;
    color: var(--hcms-beta-muted);
    font-size: 20px;
    line-height: 1.5;
}

.hcms-beta-online {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 20px;
    padding: 6px 18px 6px 6px;
    border: 1px solid rgba(0, 211, 139, .35);
    border-radius: 999px;
    background: rgba(0, 211, 139, .1);
    color: var(--hcms-beta-green-button);
    font-size: 19px;
}

.hcms-beta-faces {
    display: flex;
    padding-left: 10px;
}

.hcms-beta-faces img {
    width: 40px;
    height: 40px;
    margin-left: -10px;
    border: 2px solid #2b2b2b;
    border-radius: 50%;
    background: #3a3a3a;
    object-fit: cover;
    object-position: center 30%;
}

.hcms-beta-online b {
    color: #ffffff;
}

.hcms-beta-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hcms-beta-green-button);
}

.hcms-beta-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--hcms-beta-green-button);
    animation: hcms-beta-pulse 1.8s ease-out infinite;
}

@keyframes hcms-beta-pulse {
    0% { transform: scale(1); opacity: .7; }
    100% { transform: scale(2.6); opacity: 0; }
}

.hcms-beta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 30px;
    font-size: 12px;
}

.hcms-beta-footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hcms-beta-footer-left div {
    display: flex;
    flex-direction: column;
    color: var(--hcms-beta-faint);
}

.hcms-beta-footer-left b { color: var(--hcms-beta-muted); font-weight: 500; }

.hcms-beta-footer-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.hcms-beta-footer-links {
    display: flex;
    gap: 16px;
    color: var(--hcms-beta-muted);
}

.hcms-beta-footer-links a:hover { color: #ffffff; }

.hcms-beta-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    height: 60px;
    margin-top: 26px;
    padding: 0 30px;
    border: 0;
    border-radius: 14px;
    background: var(--hcms-beta-gold);
    color: #ffffff;
    font: 24px 'Ubuntu X', sans-serif;
    cursor: pointer;
    transition: opacity .15s ease;
}

.hcms-beta-toggle:hover { opacity: .7; }

.hcms-beta-stage {
    position: relative;
    width: 478px;
    flex-shrink: 0;
    display: grid;
}

.hcms-beta-stage > * {
    grid-area: 1 / 1;
    transition: opacity .45s ease, transform .45s cubic-bezier(.22, .8, .3, 1), visibility 0s linear .45s;
}

.hcms-beta-stage[data-view="login"] #hcms-beta-login,
.hcms-beta-stage[data-view="register"] #hcms-beta-register {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity .45s ease, transform .45s cubic-bezier(.22, .8, .3, 1), visibility 0s;
}

.hcms-beta-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(120px);
    visibility: hidden;
}

.hcms-beta-panel-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 18px;
    border: 2px solid var(--hcms-beta-border);
    border-radius: 12px;
    background: var(--hcms-beta-box);
    box-shadow: rgba(0, 0, 0, .3) 0 4px 12px;
}

.hcms-beta-panel-box h3 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.hcms-beta-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hcms-beta-form input[type="text"],
.hcms-beta-form input[type="email"],
.hcms-beta-form input[type="password"] {
    height: 52px;
    padding: 8px 14px;
    border: 1px solid #cbcbcb;
    border-radius: 14px;
    background: transparent;
    color: #ffffff;
    font: 19px 'Ubuntu X', sans-serif;
}

.hcms-beta-form input:focus {
    outline: none;
    border-color: var(--hcms-beta-blue-button);
}

.hcms-beta-panel-text {
    margin: 0;
    color: var(--hcms-beta-muted);
    font-size: 18px;
    line-height: 1.45;
}

.hcms-beta-panel-box > .hcms-beta-panel-text:first-of-type {
    margin-bottom: 20px;
}

.hcms-beta-panel-box > .hcms-beta-panel-text + .hcms-beta-form {
    margin-top: 15px;
}

.hcms-beta-field {
    display: flex;
    height: 52px;
    border: 1px solid #cbcbcb;
    border-radius: 14px;
}

.hcms-beta-field:focus-within {
    border-color: var(--hcms-beta-blue-button);
}

.hcms-beta-field-frank {
    flex-shrink: 0;
    width: 50px;
    height: 40px;
    padding: 8px 15px;
    background: url(../img/icon_frank.png) center -12px no-repeat;
}

.hcms-beta-field-lock {
    flex-shrink: 0;
    width: 50px;
    height: 40px;
    margin: auto 0;
    padding: 8px 12px;
    object-fit: contain;
    image-rendering: pixelated;
}

.hcms-beta-form .hcms-beta-field input[type="text"],
.hcms-beta-form .hcms-beta-field input[type="email"],
.hcms-beta-form .hcms-beta-field input[type="password"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 8px;
    border: 0;
    border-radius: 10px;
}

.hcms-beta-big {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font: 24px 'Ubuntu X', sans-serif;
    cursor: pointer;
}

.hcms-beta-big:hover { opacity: .7; }

.hcms-beta-big:disabled {
    opacity: .6;
    cursor: wait;
}

.hcms-beta-big--gold { background: var(--hcms-beta-gold); }

.hcms-beta-big--green {
    margin-top: 5px;
    border-radius: 13px;
    background: var(--hcms-beta-green-button);
}

.hcms-beta-gender {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hcms-beta-gender label {
    cursor: pointer;
}

.hcms-beta-gender input {
    position: absolute;
    opacity: 0;
}

.hcms-beta-gender img {
    display: block;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 6px;
    opacity: .55;
    transition: opacity .15s ease, border-color .15s ease;
}

.hcms-beta-gender input:checked + img {
    border-color: var(--hcms-beta-blue-button);
    opacity: 1;
}

.hcms-beta-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hcms-beta-muted);
    font-size: 16px;
}

.hcms-beta-check a { color: var(--hcms-beta-blue); }

.hcms-beta-form-error {
    margin: 0;
    padding: 8px 10px;
    border-radius: var(--hcms-beta-radius);
    background: rgba(255, 89, 66, .12);
    color: var(--hcms-beta-red);
    font-size: 13px;
}

.hcms-beta-form-switch {
    margin: 4px 0 0;
    color: var(--hcms-beta-muted);
    font-size: 16px;
    text-align: center;
}

.hcms-beta-form-switch a { color: var(--hcms-beta-blue); }

@media (max-width: 900px) {
    .hcms-beta-hero { flex-direction: column; padding-top: 48px; }
    .hcms-beta-hero h1 { font-size: 34px; }
    .hcms-beta-stage { width: 100%; max-width: 478px; }
    .hcms-beta-toggle { width: 100%; min-width: 0; }
    .hcms-beta-footer { flex-direction: column; align-items: flex-start; }
}

.hcms-beta-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    color: var(--hcms-beta-muted);
    font-size: 17px;
}

.hcms-beta-page h1,
.hcms-beta-page h2,
.hcms-beta-page h3 {
    color: #ffffff;
    font-weight: 500;
    line-height: 1.25;
}

.hcms-beta-page h1 { font-size: 34px; }
.hcms-beta-page h2 { font-size: 26px; margin-top: 36px; }
.hcms-beta-page h3 { font-size: 20px; margin-top: 26px; }

.hcms-beta-page a { color: var(--hcms-beta-blue); }

.hcms-beta-page img { max-width: 100%; height: auto; }

.hcms-beta-page ul,
.hcms-beta-page ol { padding-left: 22px; }

.hcms-beta-nav a.hcms-beta-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #5865f2;
    color: #fff;
    font-weight: 700;
}

.hcms-beta-nav a.hcms-beta-discord:hover { background: #4752c4; color: #fff; }

.hcms-beta-discord img { width: 20px; height: 20px; object-fit: contain; }

.hcms-beta-blocked-title, .hcms-beta-blocked-title strong { color: #e53935; }

.hcms-beta-nav.hcms-beta-nav-end { margin-left: auto; }

.safety-page { max-width: 1280px; margin: 0 auto; padding: 32px 16px; color: var(--text-color); font-family: inherit; }
.safety-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .safety-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.safety-page .safety-card { display: flex; flex-direction: column; height: 360px; transition: transform 0.2s, box-shadow 0.2s; }
.safety-page .safety-card:hover { box-shadow: var(--box-shadow); }
.safety-page .safety-card h4 { position: relative; display: flex; align-items: center; gap: 12px; box-sizing: border-box; flex-shrink: 0; height: 48px; margin: 12px 0; padding: 0 4px; overflow: hidden; font-size: 24px; font-weight: 400; line-height: 32px; }
.safety-page .safety-line { flex: 1 1 0%; height: 1px; }
.safety-page .safety-line--l { background: linear-gradient(to right, transparent, var(--border-color), var(--border-color)); }
.safety-page .safety-line--r { background: linear-gradient(to left, transparent, var(--border-color), var(--border-color)); }
.safety-page .safety-pill { position: relative; z-index: 10; padding: 4px 12px; font-size: 0.75rem; line-height: 1rem; font-weight: 900; letter-spacing: 0.025em; text-transform: uppercase; color: var(--text-color); border-radius: 8px; background: var(--box-color); border: 1px solid var(--button-secondary); box-shadow: 0 0 15px rgba(var(--accent-1), 0.18); }

.safety-page .safety-panel { position: relative; box-sizing: border-box; display: flex; flex: 1 1 0%; flex-direction: column; min-height: 0; padding: 16px; overflow: hidden; background: linear-gradient(145deg, var(--box-color-double), var(--box-color)); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--box-shadow); }
.safety-page .safety-panel::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--button-secondary), transparent); opacity: 0.6; }

.safety-page .safety-card__content { display: flex; flex-direction: column; gap: 12px; }
.safety-page .safety-card__image { display: flex; align-items: center; justify-content: center; height: 180px; overflow: hidden; border-radius: 6px; background: var(--box-color-double); box-shadow: 0 0 0 1px var(--border-color) inset, 0 2px 5px rgba(0, 0, 0, 0.12); }
.safety-page .safety-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.safety-page .safety-card:hover .safety-card__image img { transform: scale(1.04); }
.safety-page .safety-card__text { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; color: var(--text-secondaire); font-size: 0.75rem; line-height: 1.5; }

@media (max-width: 640px) {
    .safety-page .safety-card { height: 330px; }
    .safety-page .safety-card__image { height: 150px; }
}
