@font-face {
    font-family: "Orbitron";
    src: url("../assets/fonts/orbitron/Orbitron-Variable.ttf") format("truetype");
    font-display: swap;
}

body.cos-circle-entry { background: #11110f; color: #e7e2d4; }
body.cos-circle-entry #main.site-main,
body.cos-circle-entry #main .layout-medium,
body.cos-circle-entry #main .layout-fixed,
body.cos-circle-entry #primary.content-area,
body.cos-circle-entry #content.site-content,
body.cos-circle-entry article.page,
body.cos-circle-entry article.page .hentry-wrap,
body.cos-circle-entry article.page .entry-content {
    width: 100%; max-width: none; padding: 0 !important; margin: 0 auto;
    border: 0 !important; box-shadow: none !important; background: transparent;
}
body.cos-circle-entry #main.site-main { margin-top: 0 !important; }
body.cos-circle-entry article.page .entry-content { position: relative; isolation: isolate; }
body.cos-circle-entry article.page .entry-content::before,
body.cos-circle-entry article.page .entry-content::after { content: none; }
body.cos-circle-entry .woocommerce-notices-wrapper { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; }

.circle-entry-backdrop {
    position: absolute; inset: 0; max-width: 1460px; margin: auto; padding: 40px 54px;
    color: #e7e2d4; opacity: .48; filter: blur(4px); pointer-events: none; user-select: none;
    overflow: hidden;
}
.circle-entry-forum-title { display: flex; align-items: center; justify-content: center; gap: 18px; font: 500 38px/1.2 "Cinzel", serif; }
.circle-entry-forum-title img { width: 54px; height: 54px; object-fit: contain; }
.circle-entry-realms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 48px auto 44px; max-width: 1060px; }
.circle-entry-realm { display: flex; align-items: center; justify-content: center; gap: 18px; font: 500 28px/1.2 "Cinzel", serif; }
.circle-entry-realm svg { width: 52px; height: 52px; flex: 0 0 52px; }
.circle-entry-realm--orga { color: #dfbc87; }
.circle-entry-realm--bridge { color: #c8c9a7; }
.circle-entry-realm--mecha { color: #b3cfdf; }
.circle-entry-realm--mecha > span { font-family: "Orbitron", sans-serif; font-size: 24px; text-transform: uppercase; }
.circle-entry-forums { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(180px, 35vw, 550px); }
.circle-entry-room { display: flex; align-items: center; gap: 22px; padding: 28px 0; border-top: 1px solid rgba(196, 168, 102, .16); }
.circle-entry-room > span { font: 400 44px/1 Georgia, serif; width: 52px; text-align: center; flex: 0 0 52px; }
.circle-entry-room > div { color: #ddd8ca; font: 500 19px/1.4 "Inter", sans-serif; }
.circle-entry-room i { display: block; height: 5px; width: 150px; max-width: 100%; background: rgba(231, 226, 212, .14); margin-top: 12px; border-radius: 2px; }
.circle-entry-room i:last-child { width: 94px; margin-top: 7px; }

body.cos-circle-entry .circle-entry-shell {
    position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start;
    padding: 128px 24px 64px; min-height: calc(100vh - 120px);
}
body.cos-circle-entry .circle-entry-shell .cos-gated-modal {
    box-sizing: border-box; width: 100%; max-width: 520px; padding: 28px 30px 30px;
    border: 1px solid rgba(196, 168, 102, .54); border-radius: 16px;
    background: rgba(17, 17, 15, .96); box-shadow: 0 20px 64px rgba(0, 0, 0, .25);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.circle-entry-header { display: grid; justify-items: center; gap: 10px; margin-bottom: 12px; }
.circle-entry-header > img { width: 56px; height: 56px; object-fit: contain; }
body.cos-circle-entry .circle-entry-back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.4 "Inter", sans-serif; color: #c4a866; margin-bottom: 4px; text-decoration: none; }
body.cos-circle-entry .cos-gated-title { margin: 0 0 10px; font: 500 30px/1.25 "Cinzel", serif; color: #e7e2d4; letter-spacing: .01em; text-align: center; text-transform: none; }
body.cos-circle-entry .cos-gated-subtitle { font: 400 14px/1.6 "Inter", sans-serif; color: #c7c2b6; text-align: center; margin: 0 auto 24px; max-width: 47ch; }
body.cos-circle-entry .circle-entry-code {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; min-height: 46px; padding: 12px 16px; margin: 0 0 24px;
    border: 1px solid rgba(196, 168, 102, .58); border-radius: 8px; background: transparent;
    color: #e7e2d4; font: 400 14px/1.4 "Inter", sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer;
}
body.cos-circle-entry .circle-entry-code span { color: #c4a866; }
body.cos-circle-entry .cos-gated-input-group { margin: 0 0 18px; }
body.cos-circle-entry .cos-gated-input-group label,
body.cos-circle-entry .cos-account-auth-form label {
    display: block; margin: 0 0 7px; color: #e7e2d4; font: 400 14px/1.4 "Inter", sans-serif;
    text-transform: none; letter-spacing: 0;
}
body.cos-circle-entry .cos-gated-input-group input,
body.cos-circle-entry .cos-gated-input-group textarea {
    box-sizing: border-box; display: block; width: 100%; max-width: 100%; height: 44px;
    padding: 11px 14px; margin: 0; border: 1px solid rgba(196, 168, 102, .38);
    border-radius: 8px; background: rgba(255, 255, 255, .018); color: #e7e2d4;
    font: 400 15px/1.4 "Inter", sans-serif; box-shadow: none;
}
body.cos-circle-entry .cos-gated-input-group textarea { height: 88px; min-height: 88px; resize: vertical; }
body.cos-circle-entry .cos-gated-input-group input::placeholder,
body.cos-circle-entry .cos-gated-input-group textarea::placeholder { color: #8f8d85; opacity: 1; }
body.cos-circle-entry .cos-gated-submit-btn {
    display: block; box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 18px;
    border: 1px solid #c4a866; border-radius: 8px; background: #c4a866; color: #11110f !important;
    font: 600 15px/1.4 "Inter", sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer;
}
body.cos-circle-entry .cos-gated-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; font: 400 14px/1.5 "Inter", sans-serif; color: #c7c2b6; }
body.cos-circle-entry .cos-gated-switch-btn,
body.cos-circle-entry .cos-gated-forgot { color: #c4a866; font: 400 14px/1.5 "Inter", sans-serif; text-transform: none; letter-spacing: 0; }
body.cos-circle-entry .cos-gated-switch-btn { margin: 0; padding: 2px 0; min-height: 28px; }
body.cos-circle-entry .cos-gated-links { text-align: right; margin-top: 16px; }
body.cos-circle-entry .cos-gated-divider { margin: 22px 0; }
body.cos-circle-entry .cos-gated-message { font: 400 14px/1.5 "Inter", sans-serif; padding: 12px 14px; margin-bottom: 18px; border-radius: 8px; }
body.cos-circle-entry .cos-account-auth-actions { display: grid; gap: 16px; }
body.cos-circle-entry .cos-account-auth-actions label { display: flex; align-items: center; gap: 8px; font: 400 14px/1.4 "Inter", sans-serif; }
body.cos-circle-entry .cos-account-auth-actions input[type="checkbox"] { width: 16px; height: 16px; }
body.cos-circle-entry .cos-gated-view form { margin: 0; padding: 0; border: 0; background: transparent; }
body.cos-circle-entry .cos-account-auth-form { display: block; }

body.cos-circle-entry .cos-gated-submit-btn,
body.cos-circle-entry .circle-entry-code,
body.cos-circle-entry .cos-gated-switch-btn,
body.cos-circle-entry .circle-entry-back,
body.cos-circle-entry .cos-gated-forgot { transition: background-color .15s, color .15s, border-color .15s; }
body.cos-circle-entry .cos-gated-submit-btn:hover { background: #d4b977; border-color: #d4b977; }
body.cos-circle-entry .cos-gated-submit-btn:active { background: #b59a5d; }
body.cos-circle-entry .circle-entry-code:hover { background: rgba(196, 168, 102, .09); border-color: #c4a866; }
body.cos-circle-entry .circle-entry-code:active { background: rgba(196, 168, 102, .16); }
body.cos-circle-entry .cos-gated-switch-btn:hover,
body.cos-circle-entry .circle-entry-back:hover,
body.cos-circle-entry .cos-gated-forgot:hover { color: #ead5a1; text-decoration: underline; text-underline-offset: 4px; }
body.cos-circle-entry :is(a, button, input, textarea):focus-visible { outline: 2px solid #c4a866; outline-offset: 3px; }
body.cos-circle-entry button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 700px) {
    body.cos-circle-entry .circle-entry-shell { padding: 112px 16px 48px; }
    body.cos-circle-entry .circle-entry-shell .cos-gated-modal { padding: 24px 22px; }
    body.cos-circle-entry .cos-gated-title { font-size: 26px; }
    body.cos-circle-entry .cos-gated-input-group :is(input, textarea) { font-size: 16px; }
    .circle-entry-backdrop { padding: 28px 16px; opacity: .3; }
    .circle-entry-forum-title { font-size: 28px; gap: 12px; }
    .circle-entry-forum-title img { width: 40px; height: 40px; }
    .circle-entry-realms { margin-top: 34px; gap: 10px; }
    .circle-entry-realm { gap: 6px; font-size: 16px; }
    .circle-entry-realm svg { width: 28px; height: 28px; flex-basis: 28px; }
    .circle-entry-realm--mecha > span { font-size: 14px; }
    .circle-entry-forums { gap: 28px; }
    .circle-entry-room { gap: 10px; }
    .circle-entry-room > span { width: 32px; flex-basis: 32px; font-size: 30px; }
    .circle-entry-room > div { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    body.cos-circle-entry :is(a, button, input, textarea) { transition: none; }
}
