/* OWNU clan portal */
:root {
    --bg: #0d0f12;
    --bg-soft: #14181e;
    --panel: rgba(18, 22, 28, 0.88);
    --panel-strong: rgba(14, 17, 22, 0.96);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 160, 79, 0.18);
    --text: #edf1f6;
    --muted: #9ea7b3;
    --accent: #ff8a33;
    --accent-2: #ffb25e;
    --success: #48d18c;
    --danger: #ff6b6b;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max: 1180px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(255, 138, 51, 0.12), transparent 28%),
        linear-gradient(180deg, #0d1014 0%, #080a0d 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
textarea {
    font: inherit;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    outline: none;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus {
    border-color: rgba(255, 138, 51, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

textarea {
    resize: vertical;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.app-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
}

.background-camo {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.72;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 121, 35, 0.09), transparent 18%),
        radial-gradient(circle at 74% 12%, rgba(255, 122, 41, 0.06), transparent 22%),
        radial-gradient(circle at 12% 55%, rgba(255, 255, 255, 0.035), transparent 12%),
        radial-gradient(circle at 82% 62%, rgba(255, 255, 255, 0.03), transparent 13%),
        url("../img/camo.svg");
    background-size: auto, auto, auto, auto, 680px 680px;
    background-position: center;
    filter: saturate(0.9) contrast(1.1);
}

.page-shell {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
    padding: 1.25rem 0 4rem;
}

.topbar {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
    padding: 1rem 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 12, 15, 0.72);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.brandmark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brandmark strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
}

.brandmark small {
    display: block;
    color: var(--muted);
    margin-top: 0.15rem;
}

.mini-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.mini-nav a {
    padding: 0.68rem 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: all 180ms ease;
    background: rgba(10, 12, 15, 0.64);
}

.mini-nav a:hover,
.mini-nav a:focus-visible {
    color: var(--text);
    border-color: var(--line);
}

.mini-nav .nav-admin {
    border-color: rgba(255, 138, 51, 0.18);
    color: #ffd0a3;
}

.intro-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 600ms ease, visibility 600ms ease;
}

.intro-video {
    width: min(92vw, 820px);
    height: min(92vh, 820px);
    object-fit: contain;
    display: block;
    background: #000;
}

.intro-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-skip {
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.intro-skip:hover,
.intro-skip:focus-visible {
    color: #fff;
    border-color: rgba(255, 138, 51, 0.5);
    outline: none;
}

.flash-message {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0.3rem auto 0;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(12, 15, 19, 0.88);
}

.flash-success {
    border-color: rgba(72, 209, 140, 0.2);
}

.flash-error {
    border-color: rgba(255, 107, 107, 0.2);
}

.hero-panel,
.content-section,
.panel-card,
.video-frame-card,
.login-card > .panel-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(16, 19, 24, 0.92), rgba(10, 12, 16, 0.92));
    box-shadow: var(--shadow);
}

.hero-panel {
    border-radius: 34px;
    margin-top: 1rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(255, 138, 51, 0.08), transparent 30%),
        linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.015));
    pointer-events: none;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 138, 51, 0.18);
    color: #ffd0a3;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 1.1rem 0 0.5rem;
    font-size: clamp(3.3rem, 8vw, 5.5rem);
    line-height: 0.94;
    letter-spacing: 0.05em;
}

.hero-tagline {
    margin: 0;
    font-size: 1.22rem;
    color: #ffe2c0;
}

.hero-description {
    max-width: 62ch;
    margin-top: 1rem;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.hero-actions,
.member-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, #ff9d52, #ff7f23);
    color: #180d02;
    box-shadow: 0 12px 28px rgba(255, 127, 35, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-tertiary,
.btn-ghost {
    background: transparent;
    color: #ffd0a3;
    border: 1px solid rgba(255, 138, 51, 0.18);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.09);
    border: 1px solid rgba(255, 107, 107, 0.25);
    color: #ffb1b1;
}

.btn-block {
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.stat-card {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.stat-card strong {
    display: block;
    font-size: 1.05rem;
    color: #ffe2c0;
}

.stat-card span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.logo-stage {
    border-radius: 28px;
    border: 1px solid rgba(255, 138, 51, 0.15);
    background:
        radial-gradient(circle at center, rgba(255, 138, 51, 0.1), transparent 52%),
        rgba(255, 255, 255, 0.02);
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 1.2rem;
}

.logo-stage img {
    width: min(100%, 360px);
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.3));
}

.hero-panel-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.hero-panel-note span {
    color: var(--muted);
}

.hero-panel-note strong {
    color: #ffe2c0;
}

.content-section {
    margin-top: 1.35rem;
    border-radius: 28px;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.section-heading {
    margin-bottom: 1.15rem;
}

.section-heading h1,
.section-heading h2 {
    margin: 0.7rem 0 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-split {
    position: relative;
    overflow: hidden;
}

.about-grid,
.media-grid,
.member-content-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-grid-single {
    grid-template-columns: 1fr;
}

.panel-card {
    border-radius: 22px;
    padding: 1.25rem;
}

.panel-card h2,
.panel-card h3 {
    margin-top: 0;
}

.tone-card {
    background:
        linear-gradient(180deg, rgba(255, 138, 51, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(16, 19, 24, 0.92), rgba(10, 12, 16, 0.92));
}

.clean-list {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted);
    line-height: 1.8;
}

.roster-grid,
.member-admin-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.roster-card {
    border-radius: 22px;
    padding: 1.2rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 138, 51, 0.07), transparent 24%),
        rgba(255, 255, 255, 0.025);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.roster-card:hover,
.roster-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 138, 51, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 138, 51, 0.09), transparent 26%),
        rgba(255, 255, 255, 0.032);
}

.roster-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.member-index {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 138, 51, 0.1);
    color: #ffd9b5;
    font-weight: 700;
}

.member-meta,
.member-link,
.helper-text {
    color: var(--muted);
    font-size: 0.94rem;
}

.roster-card h3 {
    margin: 1.15rem 0 0.6rem;
    font-size: 1.35rem;
}

.roster-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.member-link {
    margin-top: 1.2rem;
    color: #ffd0a3;
    font-weight: 700;
}

.video-frame-card,
.member-video-card {
    border-radius: 22px;
    padding: 1rem;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    background: #050607;
    border: 1px solid rgba(255,255,255,0.05);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 2rem;
    color: var(--muted);
    min-height: 100%;
    display: grid;
    align-content: center;
}

.join-card p,
.member-bio,
.panel-card p {
    color: var(--muted);
    line-height: 1.75;
}

.login-card {
    max-width: 540px;
    margin: 0 auto;
}

.panel-compact {
    padding: 1.4rem;
}

.stack-form {
    display: grid;
    gap: 0.95rem;
}

.stack-form label,
.form-grid-two label {
    display: grid;
    gap: 0.48rem;
}

.stack-form span,
.form-grid-two span {
    color: var(--muted);
    font-size: 0.93rem;
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.member-management {
    margin-top: 1.1rem;
}

.member-admin-card {
    display: grid;
    gap: 1rem;
}

.member-page-shell {
    margin-top: 1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #ffd0a3;
    font-weight: 700;
}

.member-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
    align-items: start;
}

.member-identity,
.member-access-card,
.member-side-card {
    border-radius: 22px;
}

.member-identity {
    padding: 1.4rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 138, 51, 0.08), transparent 24%),
        rgba(255, 255, 255, 0.022);
}

.member-identity h1 {
    margin: 0.8rem 0 0.4rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.member-tagline {
    margin: 0;
    color: #ffd9b5;
    font-size: 1.08rem;
}

.member-content-grid {
    margin-top: 1rem;
}

.compact-heading {
    margin-bottom: 1rem;
}

.not-found-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 1080px) {
    .hero-panel,
    .about-grid,
    .media-grid,
    .admin-grid,
    .member-hero,
    .member-content-grid,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .roster-grid,
    .member-admin-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .mini-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(calc(100% - 1rem), var(--max));
    }

    .topbar,
    .flash-message {
        width: min(calc(100% - 1rem), var(--max));
    }

    .form-grid-two,
    .roster-grid,
    .member-admin-list {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    .mini-nav {
        gap: 0.45rem;
    }

    .mini-nav a {
        font-size: 0.92rem;
    }

    .brandmark {
        width: 100%;
        justify-content: center;
    }
}

.field-note {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

input[type="password"]::placeholder {
    color: rgba(158, 167, 179, 0.58);
}
