:root {
    --bg: #07090d;
    --bg-soft: #0b0e14;
    --surface: rgba(16, 20, 29, .72);
    --surface-2: rgba(21, 26, 37, .82);

    --border: rgba(255,255,255,.075);
    --border-strong: rgba(255,255,255,.13);

    --text: #f1f4f8;
    --text-soft: #a5adbb;
    --text-muted: #687180;

    --blue: #7eb6ff;
    --blue-strong: #5599ff;
    --purple: #a889ff;
    --cyan: #67d9ff;
    --green: #57e6a5;
    --pink: #ff72b6;
    --gold: #f3cc62;
    --red: #ff6878;

    --radius: 20px;
    --radius-sm: 13px;

    --ease: cubic-bezier(.22,1,.36,1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -20%, rgba(67, 92, 145, .12), transparent 42%),
        var(--bg);

    color: var(--text);
    font-family:
        'Vazirmatn',
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;

    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

::selection {
    color: #fff;
    background: rgba(91,145,255,.35);
}


.ambient {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    opacity: .18;
}

.ambient-blue {
    top: -250px;
    left: -180px;
    background: #367cff;
}

.ambient-purple {
    right: -230px;
    bottom: -250px;
    background: #814bff;
}

.ambient-cyan {
    top: 42%;
    left: 50%;
    background: #24bfff;
    opacity: .07;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: .018;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.home-shell,
.viewer-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.home-shell {
    padding: 30px 0 35px;
}

.viewer-shell {
    padding: 24px 0 35px;
}

.site-header {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    align-items: end;

    padding: 8px;
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(126,182,255,.16),
            rgba(168,137,255,.09)
        );

    border: 1px solid rgba(126,182,255,.22);
    box-shadow:
        0 10px 30px rgba(72,120,255,.12),
        inset 0 1px rgba(255,255,255,.07);
}

.brand-logo span {
    display: block;
    border-radius: 2px;
    background: linear-gradient(180deg, #9ec8ff, #638eff);
}

.brand-logo span:nth-child(1) { height: 45%; }
.brand-logo span:nth-child(2) { height: 75%; }
.brand-logo span:nth-child(3) {
    height: 100%;
    background: linear-gradient(180deg, #c0a9ff, #8d68ee);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-family: Inter, sans-serif;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: .58rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 8px 13px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: .78rem;
    border-radius: 9px;
    transition: .25s var(--ease);
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,.045);
}

.main-nav .nav-button {
    color: var(--text);
    border: 1px solid var(--border-strong);
    background: rgba(255,255,255,.045);
}

.main-nav .nav-button:hover {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.2);
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 20px;

    border-radius: 12px;
    border: 1px solid transparent;

    text-decoration: none;
    cursor: pointer;

    font-size: .83rem;
    font-weight: 600;

    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease),
        border-color .25s var(--ease),
        background .25s var(--ease);
}

.btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary {
    color: #07101d;

    background:
        linear-gradient(
            135deg,
            #a9d0ff 0%,
            #76adff 48%,
            #9c82f3 100%
        );

    box-shadow:
        0 12px 30px -14px rgba(89,145,255,.75),
        inset 0 1px rgba(255,255,255,.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px -14px rgba(89,145,255,.85),
        inset 0 1px rgba(255,255,255,.65);
}

.btn-secondary {
    color: var(--text-soft);
    border-color: var(--border-strong);
    background: rgba(255,255,255,.035);
}

.btn-secondary:hover {
    color: var(--text);
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-2px);
}

.btn-wide {
    width: 100%;
}

.hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 105px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 7px 13px;
    margin-bottom: 27px;

    border: 1px solid var(--border-strong);
    border-radius: 999px;

    background: rgba(255,255,255,.025);

    color: var(--text-soft);
    font-size: .72rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #68e7ae;
    box-shadow: 0 0 12px rgba(87,230,165,.8);
}

.hero h1 {
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    margin-top: 7px;

    background:
        linear-gradient(
            110deg,
            #b7d8ff 0%,
            #75aaff 40%,
            #b095ff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 650px;
    margin: 26px auto 32px;

    color: var(--text-soft);
    font-size: .96rem;
    line-height: 2;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;

    margin: 52px auto 0;
    width: fit-content;

    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255,255,255,.018);
}

.hero-stats div {
    min-width: 130px;
    padding: 13px 20px;
    display: flex;
    flex-direction: column;
}

.hero-stats div + div {
    border-right: 1px solid var(--border);
}

.hero-stats strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: var(--text);
}

.hero-stats span {
    color: var(--text-muted);
    font-size: .68rem;
}

.content-section {
    padding: 70px 0;
}

.section-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 38px;
}

.section-kicker {
    display: block;
    margin-bottom: 10px;

    color: var(--blue);
    font-family: 'JetBrains Mono', monospace;
    font-size: .62rem;
    letter-spacing: .15em;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -.025em;
}

.section-heading p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: .82rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.feature-card {
    position: relative;
    min-height: 280px;

    padding: 26px 23px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    transition:
        transform .35s var(--ease),
        border-color .35s var(--ease),
        background .35s var(--ease);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );
}

.feature-number {
    position: absolute;
    top: 20px;
    left: 21px;

    font-family: 'JetBrains Mono', monospace;
    font-size: .62rem;
    color: var(--text-muted);
}

.feature-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 13px;
    border: 1px solid var(--border);

    background: rgba(255,255,255,.035);
}

.feature-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon.blue { color: var(--blue); }
.feature-icon.purple { color: var(--purple); }
.feature-icon.cyan { color: var(--cyan); }
.feature-icon.green { color: var(--green); }

.feature-card h3 {
    font-size: .96rem;
    margin-bottom: 9px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.9;
}

.how-section {
    max-width: 850px;
    margin: 0 auto;
}

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 20px;
    align-items: start;
}

.timeline-number {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-strong);
    border-radius: 14px;

    color: var(--blue);
    background: rgba(126,182,255,.055);

    font-family: 'JetBrains Mono', monospace;
    font-size: .67rem;
}

.timeline-item h3 {
    font-size: .94rem;
    margin-bottom: 5px;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: .78rem;
}

.timeline-item code {
    padding: 2px 6px;

    border-radius: 5px;
    border: 1px solid rgba(126,182,255,.13);

    color: var(--blue);
    background: rgba(126,182,255,.06);

    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
}

.timeline-line {
    width: 1px;
    height: 30px;
    margin: 7px 0 7px 24px;
    background: linear-gradient(
        to bottom,
        rgba(126,182,255,.25),
        transparent
    );
}

.access-section {
    padding: 80px 0;
}

.access-card {
    position: relative;
    overflow: hidden;

    max-width: 760px;
    margin: 0 auto;

    padding: 55px 55px;

    border: 1px solid var(--border-strong);
    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(20,25,36,.9),
            rgba(12,15,22,.82)
        );

    box-shadow:
        0 35px 100px -45px rgba(0,0,0,.9),
        inset 0 1px rgba(255,255,255,.055);
}

.access-decoration {
    position: absolute;
    width: 400px;
    height: 400px;

    top: -270px;
    left: 50%;
    transform: translateX(-50%);

    background: radial-gradient(
        circle,
        rgba(104,154,255,.16),
        transparent 68%
    );

    pointer-events: none;
}

.access-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.access-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 16px;
    border: 1px solid rgba(126,182,255,.18);

    background: rgba(126,182,255,.07);
    color: var(--blue);
}

.access-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.access-content h2 {
    font-size: 1.45rem;
    margin-bottom: 7px;
}

.access-content > p {
    max-width: 470px;
    margin: 0 auto 28px;

    color: var(--text-muted);
    font-size: .8rem;
}

.access-form {
    display: flex;
    align-items: flex-end;
    gap: 9px;

    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    flex: 1;
    text-align: right;
}

.input-group label {
    display: block;
    margin: 0 4px 7px;

    color: var(--text-muted);
    font-size: .67rem;
}

.input-box {
    height: 48px;

    display: flex;
    align-items: center;

    border: 1px solid var(--border-strong);
    border-radius: 12px;

    background: rgba(0,0,0,.28);

    transition: .25s var(--ease);
}

.input-box:focus-within {
    border-color: rgba(126,182,255,.6);
    box-shadow: 0 0 0 4px rgba(126,182,255,.08);
}

.input-box > span {
    padding: 0 13px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.input-box input {
    width: 100%;
    height: 100%;

    padding: 0 10px 0 14px;

    outline: none;
    border: 0;
    background: transparent;

    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
}

.input-box input::placeholder {
    color: #4e5664;
}

.access-form .btn {
    height: 48px;
}

.input-hint {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: .65rem;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding-top: 24px;
    margin-top: 20px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: .65rem;
}

.site-footer i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.viewer-page {
    background:
        radial-gradient(circle at 50% -10%, rgba(76,109,173,.12), transparent 38%),
        var(--bg);
}

.header-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;

    color: var(--text-soft);
    text-decoration: none;
    font-size: .75rem;

    border: 1px solid transparent;
    border-radius: 9px;

    transition: .25s var(--ease);
}

.header-back svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-back:hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255,255,255,.035);
}

.viewer-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;

    padding: 55px 0 28px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    font-size: .63rem;
    letter-spacing: .04em;
}

.viewer-header h1 {
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.viewer-header p {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: .76rem;
}

.file-badge {
    min-width: 230px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: rgba(255,255,255,.025);
}

.file-badge-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    color: var(--blue);
    background: rgba(126,182,255,.07);
}

.file-badge-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.file-badge small {
    display: block;
    margin-bottom: 2px;

    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: .55rem;
    letter-spacing: .12em;
}

.file-badge strong {
    display: block;

    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: .67rem;
}

.image-viewer {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: rgba(8,10,15,.72);

    box-shadow:
        0 35px 100px -55px rgba(0,0,0,.95),
        inset 0 1px rgba(255,255,255,.035);
}

.viewer-toolbar {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 15px;

    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.018);
}

.toolbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--text-muted);
    font-size: .65rem;
}

.toolbar-item svg {
    width: 13px;
    height: 13px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.toolbar-item.mono {
    color: var(--text-soft);
    font-family: 'JetBrains Mono', monospace;
}

.toolbar-separator {
    width: 3px;
    height: 3px;

    border-radius: 50%;
    background: var(--text-muted);
}

.toolbar-label {
    color: #4f5867;
    font-family: 'JetBrains Mono', monospace;
    font-size: .57rem;
    letter-spacing: .12em;
}

.image-stage {
    min-height: 360px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: auto;

    padding: 30px;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,.025),
            transparent 60%
        ),
        #05070b;
}

.image-stage::before {
    content: "";
    position: absolute;
    inset: 0;

    opacity: .22;

    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);

    background-size: 28px 28px;

    mask-image: radial-gradient(circle, black, transparent 78%);
}

.image-glow {
    position: absolute;

    width: 55%;
    height: 45%;

    top: 10%;
    left: 50%;

    transform: translateX(-50%);

    background: radial-gradient(
        ellipse,
        rgba(88,130,210,.10),
        transparent 70%
    );

    filter: blur(35px);
}

.screenshot {
    position: relative;
    z-index: 1;

    display: block;

    max-width: 100%;
    max-height: 70vh;

    object-fit: contain;

    border-radius: 7px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.08);

    transition:
        transform .4s var(--ease),
        box-shadow .4s var(--ease);
}

.screenshot:hover {
    transform: translateY(-2px);
    box-shadow:
        0 35px 90px rgba(0,0,0,.65),
        0 0 0 1px rgba(255,255,255,.11);
}

.details-panel {
    margin-top: 18px;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(18,23,33,.72),
            rgba(10,13,19,.65)
        );

    box-shadow:
        0 25px 70px -45px rgba(0,0,0,.9),
        inset 0 1px rgba(255,255,255,.035);
}

.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 19px;
    margin-bottom: 22px;

    border-bottom: 1px solid var(--border);
}

.details-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.details-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: var(--blue);
    border: 1px solid rgba(126,182,255,.15);
    background: rgba(126,182,255,.055);
}

.details-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.details-title h2 {
    font-size: .95rem;
}

.details-title p {
    color: var(--text-muted);
    font-size: .64rem;
}

.verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 9px;

    border: 1px solid rgba(87,230,165,.15);
    border-radius: 999px;

    color: var(--green);
    background: rgba(87,230,165,.045);

    font-family: 'JetBrains Mono', monospace;
    font-size: .53rem;
    letter-spacing: .08em;
}

.verified span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 9px rgba(87,230,165,.7);
}

.details-section {
    margin-bottom: 24px;
}

.details-section.last-section {
    margin-bottom: 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    font-family: 'JetBrains Mono', monospace;
    font-size: .61rem;
    letter-spacing: .08em;
}

.section-label > span {
    width: 3px;
    height: 13px;
    border-radius: 2px;
}

.admin-label {
    color: var(--pink);
}

.admin-label > span {
    background: var(--pink);
    box-shadow: 0 0 10px rgba(255,114,182,.5);
}

.player-label {
    color: var(--green);
}

.player-label > span {
    background: var(--green);
    box-shadow: 0 0 10px rgba(87,230,165,.45);
}

.time-label {
    color: var(--gold);
}

.time-label > span {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(243,204,98,.45);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.details-grid.single {
    grid-template-columns: 1fr;
}

.detail-card {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;

    padding: 12px 13px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: rgba(0,0,0,.2);

    transition:
        transform .25s var(--ease),
        border-color .25s var(--ease),
        background .25s var(--ease);
}

.detail-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.025);
}

.detail-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(255,255,255,.035);
}

.detail-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-card small {
    display: block;
    text-align: left;

    margin-bottom: 3px;

    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: .55rem;
}

.detail-card strong {
    display: block;
    text-align: left;

    color: var(--text-soft);
    font-size: .72rem;
    font-weight: 600;

    word-break: break-all;
}

.detail-card strong.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: .63rem;
    font-weight: 500;
}

.admin-card {
    border-left: 2px solid rgba(255,114,182,.55);
}

.admin-card .detail-icon {
    color: var(--pink);
}

.player-card {
    border-left: 2px solid rgba(87,230,165,.5);
}

.player-card .detail-icon {
    color: var(--green);
}

.time-card {
    border-right: 2px solid rgba(243,204,98,.55);
}

.time-card .detail-icon {
    color: var(--gold);
}

.viewer-actions {
    display: flex;
    justify-content: center;
    gap: 9px;

    margin-top: 20px;
}

.error-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.error-shell {
    width: min(440px, 100%);
    position: relative;
    z-index: 2;
}

.error-card {
    padding: 42px 36px;

    text-align: center;

    border: 1px solid var(--border-strong);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(20,24,34,.86),
            rgba(10,13,19,.78)
        );

    box-shadow:
        0 35px 100px -45px rgba(0,0,0,.95),
        inset 0 1px rgba(255,255,255,.05);
}

.error-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 16px;

    color: var(--red);
    background: rgba(255,104,120,.07);
    border: 1px solid rgba(255,104,120,.16);
}

.error-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.error-code {
    color: var(--red);

    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.06em;
}

.error-card h1 {
    margin-top: 16px;
    font-size: 1.15rem;
}

.error-card p {
    margin: 8px auto 25px;

    color: var(--text-muted);
    font-size: .77rem;
    line-height: 1.9;
}

@media (max-width: 900px) {

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .viewer-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .file-badge {
        width: 100%;
    }
}

@media (max-width: 640px) {

    .home-shell,
    .viewer-shell {
        width: min(100% - 28px, 1120px);
    }

    .home-shell {
        padding-top: 14px;
    }

    .viewer-shell {
        padding-top: 12px;
    }

    .site-header {
        height: 60px;
    }

    .brand-copy small {
        display: none;
    }

    .main-nav a:not(.nav-button) {
        display: none;
    }

    .main-nav .nav-button {
        padding: 7px 10px;
        font-size: .68rem;
    }

    .hero {
        padding: 75px 0 55px;
    }

    .hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-description {
        font-size: .82rem;
        line-height: 1.9;
    }

    .hero-stats {
        width: 100%;
    }

    .hero-stats div {
        min-width: 0;
        width: 33.333%;
        padding: 11px 6px;
    }

    .hero-stats strong {
        font-size: .65rem;
    }

    .hero-stats span {
        font-size: .57rem;
    }

    .content-section {
        padding: 50px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .access-section {
        padding: 50px 0;
    }

    .access-card {
        padding: 38px 20px;
        border-radius: 20px;
    }

    .access-form {
        flex-direction: column;
        align-items: stretch;
    }

    .access-form .btn {
        width: 100%;
    }

    .viewer-header {
        padding: 38px 0 20px;
    }

    .viewer-header h1 {
        font-size: 1.65rem;
    }

    .image-stage {
        min-height: 250px;
        padding: 14px;
    }

    .screenshot {
        max-height: 58vh;
    }

    .details-panel {
        padding: 18px;
        border-radius: 17px;
    }

    .details-header {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .viewer-actions {
        flex-direction: column;
    }

    .viewer-actions .btn {
        width: 100%;
    }

    .error-card {
        padding: 35px 22px;
    }

    .error-code {
        font-size: 3rem;
    }
}

@media (max-width: 420px) {

    body {
        font-size: 14px;
    }

    .brand-copy strong {
        font-size: .82rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        border-radius: 12px;
    }

    .hero-stats div {
        padding: 9px 3px;
    }

    .toolbar-label {
        display: none;
    }

    .viewer-toolbar {
        padding: 0 10px;
    }

    .file-badge {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

:focus-visible {
    outline: 2px solid rgba(126,182,255,.8);
    outline-offset: 3px;
}
