﻿/* ===== CSS Variables ===== */
:root {
    --ar-bg-dark: #090b10;
    --ar-bg-panel: #11151d;
    --ar-bg-panel-2: #171c25;
    --ar-gold: #c99a3b;
    --ar-gold-light: #f1ca72;
    --ar-ember: #d16d4f;
    --ar-teal: #5fb7a7;
    --ar-ink: #05070b;
    --ar-text: #edf2f7;
    --ar-text-muted: #aab4c3;
    --ar-border: rgba(241, 202, 114, 0.24);
    --ar-soft-border: rgba(255, 255, 255, 0.1);
    --ar-navbar-h: 70px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--ar-bg-dark);
    color: var(--ar-text);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    padding-top: var(--ar-navbar-h);
}

img {
    max-width: 100%;
}

/* ===== Navbar ===== */
.ar-navbar {
    height: var(--ar-navbar-h);
    background: rgba(9, 11, 16, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ar-border);
    transition: background 0.3s;
}

.ar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ar-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--ar-border);
    object-fit: cover;
}

.ar-brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ar-gold-light);
    letter-spacing: 0;
}

.ar-nav-link {
    color: var(--ar-text) !important;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.ar-nav-link:hover {
    color: var(--ar-gold-light) !important;
    background: rgba(201, 168, 76, 0.08);
}

.ar-nav-discord {
    background: rgba(88, 101, 242, 0.16);
    border: 1px solid rgba(118, 129, 246, 0.58);
    color: #dfe2ff !important;
    font-weight: 700;
}

.ar-nav-discord:hover {
    background: #5865f2;
    border-color: #7681f6;
    color: #fff !important;
}

.ar-toggler {
    border-color: var(--ar-border);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ===== Hero Section ===== */
.ar-hero {
    position: relative;
    min-height: calc(92vh - var(--ar-navbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/bg-sky.png');
    background-image: image-set(
        url('/images/bg-sky-1920.webp') 1x,
        url('/images/bg-sky-2560.webp') 2x
    );
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.ar-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 7, 11, 0.42) 0%,
        rgba(5, 7, 11, 0.5) 48%,
        rgba(9, 11, 16, 0.94) 100%
    );
}

.ar-hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 1rem 6rem;
}

.ar-kicker {
    color: var(--ar-teal);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.ar-hero-icon {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    border: 1px solid var(--ar-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    object-fit: cover;
}

.ar-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
    letter-spacing: 0;
    line-height: 1.18;
    margin-bottom: 1rem;
}

.ar-hero-title span {
    display: block;
}

.ar-hero-desc {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: #d7dee8;
    line-height: 1.9;
    max-width: 680px;
    margin: 0;
    overflow-wrap: anywhere;
}

.ar-hero-desc span {
    display: block;
}

.ar-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.ar-hero-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(17, 21, 29, 0.84);
    border: 1px solid var(--ar-soft-border);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
}

.ar-panel-label {
    color: var(--ar-teal);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.ar-panel-title {
    color: var(--ar-gold-light);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.ar-panel-text {
    color: var(--ar-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
}

.ar-panel-text span {
    display: block;
}

.ar-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.ar-hero-metrics div {
    background: rgba(5, 7, 11, 0.72);
    border: 1px solid var(--ar-soft-border);
    border-radius: 8px;
    padding: 0.95rem;
}

.ar-hero-metrics span {
    display: block;
    color: var(--ar-text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.ar-hero-metrics strong {
    color: var(--ar-text);
    font-size: 1rem;
}

.ar-hero-scroll-hint {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ar-gold);
    font-size: 1.5rem;
    animation: ar-bounce 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes ar-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ===== Buttons ===== */
.ar-btn-primary {
    background: var(--ar-gold-light);
    color: var(--ar-ink);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.72rem 1.25rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 12px 24px rgba(201, 154, 59, 0.24);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.ar-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(201, 154, 59, 0.3);
    color: var(--ar-ink);
}

.ar-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ar-text);
    font-size: 0.95rem;
    padding: 0.72rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--ar-soft-border);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-decoration: none;
}

.ar-btn-outline:hover {
    border-color: var(--ar-gold);
    color: var(--ar-gold-light);
    background: rgba(201, 168, 76, 0.06);
}

/* ===== Sections ===== */
.ar-section {
    padding: 5rem 0;
}

.ar-section-dark {
    background-color: var(--ar-bg-dark);
}

.ar-section-split {
    background: #0d1017;
}

.ar-section-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.ar-section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--ar-gold-light);
    letter-spacing: 0;
    position: relative;
    display: inline-block;
}

.ar-section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, var(--ar-gold), var(--ar-teal));
    margin: 0.5rem auto 0;
}

.ar-section-lead,
.ar-section-text {
    color: var(--ar-text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ar-section-lead {
    margin: 1.25rem auto 0;
    max-width: 680px;
}

/* ===== Feature Cards ===== */
.ar-card {
    background: linear-gradient(180deg, var(--ar-bg-panel), var(--ar-bg-panel-2));
    border: 1px solid var(--ar-soft-border);
    border-radius: 8px;
    padding: 1.6rem 1.35rem;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.ar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    border-color: var(--ar-gold);
}

.ar-card-index {
    color: var(--ar-teal);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.ar-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ar-gold-light);
    margin-bottom: 0.75rem;
}

.ar-card-text {
    color: var(--ar-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
}

.ar-image-frame {
    border: 1px solid var(--ar-soft-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--ar-bg-panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.ar-image-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ar-progress-list {
    display: grid;
    gap: 10px;
    margin-top: 2rem;
}

.ar-progress-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--ar-soft-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.95rem 1rem;
}

.ar-progress-item span {
    color: var(--ar-ink);
    background: var(--ar-teal);
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    min-width: 34px;
    padding: 0.25rem 0.4rem;
    text-align: center;
}

.ar-progress-item p {
    color: var(--ar-text);
    margin: 0;
    overflow-wrap: anywhere;
}

/* ===== Join Section (bg image) ===== */
.ar-section-bg {
    position: relative;
    background-size: cover;
    background-position: center;
}

.ar-section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 11, 0.82);
}

.ar-server-address {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(17, 21, 29, 0.9);
    border: 1px solid var(--ar-soft-border);
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ar-server-label {
    font-size: 0.8rem;
    color: var(--ar-text-muted);
    text-transform: uppercase;
    letter-spacing: 0;
}

.ar-server-ip {
    font-size: 1.1rem;
    color: var(--ar-teal);
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Courier New', monospace;
}

.ar-access-links {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    margin-top: 1rem;
}

.ar-access-links span {
    background: var(--ar-soft-border);
    display: inline-block;
    height: 18px;
    width: 1px;
}

.ar-link {
    color: var(--ar-gold-light);
    text-decoration: none;
}

.ar-link:hover {
    color: var(--ar-teal);
}

/* ===== Page Hero (inner pages) ===== */
.ar-page-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background-size: cover;
    background-position: center;
}

.ar-page-hero--sky {
    background-image: url('/images/bg-sky.png');
    background-image: image-set(
        url('/images/bg-sky-1920.webp') 1x,
        url('/images/bg-sky-2560.webp') 2x
    );
}

.ar-page-hero--town {
    background-image: url('/images/bg-town.png');
    background-image: image-set(
        url('/images/bg-town-1920.webp') 1x,
        url('/images/bg-town-2560.webp') 2x
    );
}

.ar-page-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    letter-spacing: 0;
}

.ar-page-hero-sub {
    font-family: 'Cinzel', serif;
    color: var(--ar-gold-light);
    letter-spacing: 0;
    font-size: 0.95rem;
    margin: 0;
}

/* ===== Release notes ===== */
.ar-release-page {
    background:
        radial-gradient(circle at 12% 12%, rgba(95, 183, 167, 0.08), transparent 28rem),
        radial-gradient(circle at 88% 35%, rgba(201, 154, 59, 0.08), transparent 30rem),
        var(--ar-bg-dark);
}

.ar-release-hero {
    border-bottom: 1px solid var(--ar-border);
}

.ar-release-content {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.ar-release-heading {
    margin: 0 auto 2.5rem;
    max-width: 760px;
    text-align: center;
}

.ar-release-heading .ar-section-lead {
    margin-bottom: 0;
}

.ar-release-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.ar-release-card {
    background: linear-gradient(145deg, rgba(23, 28, 37, 0.96), rgba(10, 13, 19, 0.98));
    border: 1px solid var(--ar-soft-border);
    border-top: 2px solid var(--ar-gold);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 1.45rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ar-release-card:hover {
    border-color: rgba(241, 202, 114, 0.6);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.ar-release-card__meta,
.ar-release-document__meta {
    align-items: center;
    color: var(--ar-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    gap: 0.75rem;
    justify-content: space-between;
}

.ar-release-version {
    background: rgba(95, 183, 167, 0.12);
    border: 1px solid rgba(95, 183, 167, 0.34);
    border-radius: 999px;
    color: #a8e2d7;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
}

.ar-release-card h2 {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 1.3rem 0 0.75rem;
}

.ar-release-card h2 a {
    color: var(--ar-gold-light);
    text-decoration: none;
}

.ar-release-card h2 a:hover {
    color: #fff0c7;
}

.ar-release-card p {
    color: var(--ar-text-muted);
    line-height: 1.8;
    margin: 0 0 1.25rem;
    overflow-wrap: anywhere;
}

.ar-release-card .ar-text-link {
    margin-top: auto;
}

.ar-release-content--detail {
    padding-top: clamp(3rem, 7vw, 6rem);
}

.ar-release-document {
    margin: 0 auto;
    max-width: 920px;
}

.ar-release-document__meta {
    border-bottom: 1px solid var(--ar-soft-border);
    justify-content: flex-start;
    margin-bottom: 2.2rem;
    padding-bottom: 1.2rem;
}

.ar-markdown-content {
    color: var(--ar-text-muted);
    font-size: 0.98rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ar-markdown-content h1,
.ar-markdown-content h2,
.ar-markdown-content h3,
.ar-markdown-content h4 {
    color: var(--ar-gold-light);
    line-height: 1.45;
    margin: 2.2rem 0 0.8rem;
}

.ar-markdown-content h1 { font-size: 1.8rem; }
.ar-markdown-content h2 { font-size: 1.45rem; }
.ar-markdown-content h3 { font-size: 1.15rem; }

.ar-markdown-content p,
.ar-markdown-content ul,
.ar-markdown-content ol,
.ar-markdown-content blockquote,
.ar-markdown-content pre,
.ar-markdown-content table {
    margin-bottom: 1.2rem;
}

.ar-markdown-content ul,
.ar-markdown-content ol {
    padding-left: 1.4rem;
}

.ar-markdown-content li::marker {
    color: var(--ar-gold);
}

.ar-markdown-content a {
    color: var(--ar-gold-light);
    text-decoration-color: rgba(241, 202, 114, 0.5);
    text-underline-offset: 0.25em;
}

.ar-markdown-content a:hover {
    color: #fff0c7;
}

.ar-markdown-content blockquote {
    border-left: 3px solid var(--ar-teal);
    color: #cbd5df;
    margin-left: 0;
    padding-left: 1rem;
}

.ar-markdown-content code {
    background: rgba(5, 7, 11, 0.7);
    border: 1px solid var(--ar-soft-border);
    border-radius: 3px;
    color: #b5e8df;
    padding: 0.1rem 0.3rem;
}

.ar-markdown-content pre {
    background: rgba(5, 7, 11, 0.78);
    border: 1px solid var(--ar-soft-border);
    border-radius: 4px;
    overflow-x: auto;
    padding: 1rem;
}

.ar-markdown-content pre code {
    background: transparent;
    border: 0;
    padding: 0;
}

.ar-markdown-content table {
    border-collapse: collapse;
    display: block;
    max-width: 100%;
    overflow-x: auto;
    width: max-content;
}

.ar-markdown-content th,
.ar-markdown-content td {
    border: 1px solid var(--ar-soft-border);
    padding: 0.55rem 0.75rem;
}

.ar-markdown-content th {
    background: rgba(201, 154, 59, 0.1);
    color: var(--ar-gold-light);
}

.ar-release-back {
    border-top: 1px solid var(--ar-soft-border);
    display: inline-flex;
    margin-top: 2.5rem;
    padding-top: 1.4rem;
}

/* ===== Terms ===== */
.ar-terms-box {
    max-width: 820px;
    margin: 0 auto;
}

.ar-terms-intro {
    color: var(--ar-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    border-left: 3px solid var(--ar-teal);
    padding-left: 1.2rem;
    margin-bottom: 3rem;
}

.ar-terms-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ar-terms-section:last-of-type {
    border-bottom: none;
}

.ar-terms-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ar-gold-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ar-terms-num {
    font-size: 0.75rem;
    background: var(--ar-gold-light);
    color: var(--ar-ink);
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0;
}

.ar-terms-section p {
    color: var(--ar-text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.ar-terms-list {
    color: var(--ar-text-muted);
    font-size: 0.95rem;
    line-height: 2;
    padding-left: 1.5rem;
    margin: 0.5rem 0 0;
    overflow-wrap: anywhere;
}

.ar-terms-list li::marker {
    color: var(--ar-gold);
}

.ar-terms-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ar-border);
    text-align: right;
    color: var(--ar-text-muted);
    font-size: 0.85rem;
}

.ar-terms-footer p {
    margin: 0;
    line-height: 1.8;
}

/* ===== Legal pages ===== */
.ar-legal-page {
    background:
        radial-gradient(circle at 15% 8%, rgba(95, 183, 167, 0.08), transparent 28rem),
        radial-gradient(circle at 88% 32%, rgba(201, 154, 59, 0.08), transparent 32rem),
        #07090e;
}

.ar-legal-hero {
    border-bottom: 1px solid var(--ar-border);
    isolation: isolate;
    min-height: 360px;
    overflow: hidden;
}

.ar-legal-hero .ar-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 7, 11, 0.72), rgba(5, 7, 11, 0.36), rgba(5, 7, 11, 0.72)),
        linear-gradient(180deg, rgba(5, 7, 11, 0.2), #07090e 100%);
    z-index: -1;
}

.ar-legal-stars {
    background-image:
        radial-gradient(circle, rgba(241, 202, 114, 0.76) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(141, 216, 202, 0.52) 0 1px, transparent 1.5px);
    background-position: 0 0, 46px 68px;
    background-size: 91px 91px, 137px 137px;
    inset: 0;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
    opacity: 0.35;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.ar-legal-hero .container {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
}

.ar-legal-hero .ar-home-kicker {
    margin-bottom: 1rem;
}

.ar-legal-content {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.ar-legal-shell {
    backdrop-filter: blur(16px);
    background: linear-gradient(145deg, rgba(17, 21, 29, 0.96), rgba(9, 12, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top-color: rgba(241, 202, 114, 0.42);
    border-radius: 4px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.34);
    max-width: 980px;
    padding: clamp(1.4rem, 5vw, 3.5rem);
}

.ar-legal-shell .ar-terms-intro {
    background: rgba(95, 183, 167, 0.06);
    border: 1px solid rgba(95, 183, 167, 0.18);
    border-left: 3px solid var(--ar-teal);
    margin-bottom: 3.5rem;
    padding: 1.25rem 1.4rem;
}

.ar-legal-shell .ar-terms-section {
    scroll-margin-top: calc(var(--ar-navbar-h) + 1rem);
}

.ar-terms-subheading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.6rem;
}

.ar-terms-subheading:first-of-type {
    margin-top: 1rem;
}

.ar-terms-note {
    background: rgba(255, 255, 255, 0.035);
    border-left: 2px solid rgba(241, 202, 114, 0.5);
    margin-top: 1rem !important;
    padding: 0.85rem 1rem;
}

.ar-legal-contact {
    align-items: center;
    border: 1px solid rgba(88, 101, 242, 0.58);
    color: #c8cdfd;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.45rem;
    margin-top: 1.4rem;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ar-legal-contact:hover {
    background: rgba(88, 101, 242, 0.14);
    border-color: #8e97fa;
    color: #fff;
}

.ar-privacy-data-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.2rem 0 0;
}

.ar-privacy-data-list > div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
    padding: 1rem;
}

.ar-privacy-data-list dt {
    color: var(--ar-gold-light);
    font-size: 0.86rem;
}

.ar-privacy-data-list dd {
    color: var(--ar-text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
    overflow-wrap: anywhere;
}

/* ===== Admin Item Master ===== */
.ar-admin-hero {
    background-position: center 36%;
}

.ar-items-page {
    background:
        linear-gradient(180deg, rgba(9, 11, 16, 0.96), rgba(13, 16, 23, 1));
}

.ar-item-filter {
    background: rgba(17, 21, 29, 0.92);
    border: 1px solid var(--ar-soft-border);
    border-radius: 8px;
    padding: 1.25rem;
}

.ar-item-filter .form-label {
    color: var(--ar-text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}

.ar-input {
    background-color: rgba(5, 7, 11, 0.72);
    border: 1px solid var(--ar-soft-border);
    color: var(--ar-text);
}

.ar-input:focus {
    background-color: rgba(5, 7, 11, 0.92);
    border-color: var(--ar-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 154, 59, 0.18);
    color: var(--ar-text);
}

.ar-input option {
    background: var(--ar-bg-panel);
    color: var(--ar-text);
}

.ar-filter-checks {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ar-filter-checks .form-check {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    margin: 0;
}

.ar-filter-checks .form-check-input {
    background-color: rgba(5, 7, 11, 0.72);
    border-color: var(--ar-soft-border);
    margin: 0;
}

.ar-filter-checks .form-check-input:checked {
    background-color: var(--ar-gold);
    border-color: var(--ar-gold);
}

.ar-filter-checks .form-check-label {
    color: var(--ar-text-muted);
    font-size: 0.9rem;
}

.ar-alert,
.ar-empty {
    background: rgba(209, 109, 79, 0.12);
    border: 1px solid rgba(209, 109, 79, 0.36);
    border-radius: 8px;
    color: #f4c1b2;
    margin-top: 1.5rem;
    padding: 1rem;
}

.ar-empty {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ar-soft-border);
    color: var(--ar-text-muted);
    text-align: center;
}

.ar-item-summary {
    align-items: center;
    color: var(--ar-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 0.75rem;
    justify-content: space-between;
    margin: 1.4rem 0 1rem;
}

.ar-item-summary span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ar-soft-border);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
}

.ar-item-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.ar-item-card {
    background:
        linear-gradient(180deg, rgba(23, 28, 37, 0.96), rgba(12, 15, 22, 0.98));
    border: 1px solid var(--ar-soft-border);
    border-left: 3px solid var(--ar-gold);
    border-radius: 8px;
    min-width: 0;
    padding: 1rem;
}

.ar-item-card.rarity-common { border-left-color: #ffffff; }
.ar-item-card.rarity-uncommon { border-left-color: #55ff55; }
.ar-item-card.rarity-rare { border-left-color: #55ffff; }
.ar-item-card.rarity-epic { border-left-color: #ff55ff; }
.ar-item-card.rarity-legendary { border-left-color: #ffaa00; }
.ar-item-card.rarity-mythic { border-left-color: #ff5555; }

.ar-item-head {
    align-items: center;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 64px minmax(0, 1fr);
}

.ar-item-icon {
    align-items: center;
    background: #20242c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    display: grid;
    height: 64px;
    justify-items: center;
    overflow: hidden;
    position: relative;
    width: 64px;
}

.ar-item-icon img {
    image-rendering: pixelated;
    max-height: 42px;
    max-width: 42px;
}

.ar-item-icon span {
    color: var(--ar-text-muted);
    display: none;
    font-size: 0.58rem;
    inset: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
    padding: 0.35rem;
    place-items: center;
    position: absolute;
    text-align: center;
    text-transform: lowercase;
}

.ar-item-title-block {
    min-width: 0;
}

.ar-item-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

.ar-item-id {
    color: var(--ar-text-muted);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.ar-item-tags,
.ar-item-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.ar-item-tags span,
.ar-item-extra span {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--ar-soft-border);
    border-radius: 6px;
    color: var(--ar-text-muted);
    font-size: 0.72rem;
    padding: 0.24rem 0.45rem;
}

.ar-item-tags .ar-rarity {
    color: var(--ar-gold-light);
}

.ar-item-lore {
    background: rgba(5, 7, 11, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0.75rem;
}

.ar-item-lore li {
    font-size: 0.84rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ar-item-lore li + li {
    margin-top: 0.2rem;
}

.ar-item-data {
    display: grid;
    gap: 0.45rem 0.7rem;
    grid-template-columns: max-content 1fr;
    margin: 0.85rem 0 0;
}

.ar-item-data dt {
    color: var(--ar-text-muted);
    font-size: 0.72rem;
    font-weight: 400;
}

.ar-item-data dd {
    color: var(--ar-text);
    font-size: 0.78rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.ar-item-block {
    margin-top: 0.9rem;
}

.ar-item-block h3 {
    color: var(--ar-teal);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.45rem;
}

.ar-item-block ul {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ar-item-block li {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.45rem 0.55rem;
}

.ar-item-block li span,
.ar-item-block li em {
    color: var(--ar-text-muted);
    font-size: 0.74rem;
    font-style: normal;
    overflow-wrap: anywhere;
}

.ar-item-block li strong {
    color: var(--ar-gold-light);
    font-size: 0.8rem;
    font-weight: 700;
}

.mc-black { color: #000000; }
.mc-dark-blue { color: #0000aa; }
.mc-dark-green { color: #00aa00; }
.mc-dark-aqua { color: #00aaaa; }
.mc-dark-red { color: #aa0000; }
.mc-dark-purple { color: #aa00aa; }
.mc-gold { color: #ffaa00; }
.mc-gray { color: #aaaaaa; }
.mc-dark-gray { color: #555555; }
.mc-blue { color: #5555ff; }
.mc-green { color: #55ff55; }
.mc-aqua { color: #55ffff; }
.mc-red { color: #ff5555; }
.mc-light-purple { color: #ff55ff; }
.mc-yellow { color: #ffff55; }
.mc-white { color: #ffffff; }

/* ===== Footer ===== */
.ar-footer {
    background: #05070b;
    border-top: 1px solid var(--ar-border);
    padding: 2.5rem 0 1.5rem;
}

.ar-footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--ar-border);
    object-fit: cover;
}

.ar-footer-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ar-gold-light);
    letter-spacing: 0;
}

.ar-footer-sub {
    font-size: 0.78rem;
    color: var(--ar-text-muted);
}

.ar-footer-links a {
    color: var(--ar-text-muted);
    text-decoration: none;
    font-size: 0.85rem; 
    transition: color 0.2s;
}

.ar-footer-links a:hover {
    color: var(--ar-gold-light);
}

.ar-footer-hr {
    border-color: var(--ar-border);
    margin: 1.5rem 0 1rem;
}

.ar-footer-copy {
    font-size: 0.78rem;
    color: var(--ar-text-muted);
    opacity: 0.6;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ar-bg-dark); }
::-webkit-scrollbar-thumb { background: var(--ar-gold); border-radius: 3px; }

@media (max-width: 991.98px) {
    .ar-navbar {
        height: auto;
        min-height: var(--ar-navbar-h);
    }

    .ar-navbar .container {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .navbar-collapse {
        padding-top: 0.85rem;
    }

    .ar-hero {
        min-height: auto;
    }

    .ar-hero-content {
        padding-top: 4rem;
    }

    .ar-hero-actions {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    :root {
        --ar-navbar-h: 67px;
    }

    body {
        padding-top: var(--ar-navbar-h);
    }

    .ar-brand-text {
        font-size: 1rem;
    }

    .ar-navbar .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .ar-hero-content {
        padding: 2rem 1rem 2.6rem;
    }

    .ar-hero-desc {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .ar-hero-actions {
        gap: 8px;
        margin-top: 1.25rem;
    }

    .ar-hero-panel {
        align-items: center;
        gap: 12px;
        padding: 0.85rem;
    }

    .ar-hero-icon {
        width: 66px;
        height: 66px;
    }

    .ar-panel-title {
        font-size: 1.18rem;
        margin-bottom: 0.25rem;
    }

    .ar-panel-text {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .ar-hero-metrics {
        display: none;
    }

    .ar-btn-primary,
    .ar-btn-outline {
        width: 100%;
    }

    .ar-section {
        padding: 3.5rem 0;
    }

    .ar-section-split .row {
        --bs-gutter-x: 0;
    }

    .ar-hero-scroll-hint {
        bottom: 0.35rem;
    }

    .ar-server-address,
    .ar-access-links {
        display: flex;
        width: 100%;
    }

    .ar-item-grid {
        grid-template-columns: 1fr;
    }

    .ar-item-card {
        padding: 0.85rem;
    }

    .ar-item-block li {
        align-items: start;
        grid-template-columns: 1fr;
    }
}

/* ===== Public home / open alpha ===== */
.ar-skip-link {
    background: var(--ar-gold-light);
    border-radius: 0 0 8px 0;
    color: var(--ar-ink);
    font-weight: 700;
    left: 0;
    padding: 0.7rem 1rem;
    position: fixed;
    top: -80px;
    transition: top 0.2s;
    z-index: 1100;
}

.ar-skip-link:focus {
    color: var(--ar-ink);
    top: 0;
}

.ar-brand-alpha {
    border: 1px solid rgba(95, 183, 167, 0.48);
    border-radius: 999px;
    color: #8dd8ca;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.18rem 0.42rem;
}

.ar-nav-login {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
}

.ar-nav-login span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ar-soft-border);
    border-radius: 999px;
    color: var(--ar-text-muted);
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
}

.ar-home {
    --pointer-x: 0px;
    --pointer-y: 0px;
    background: #07090e;
    overflow: hidden;
}

.ar-home-hero {
    align-items: center;
    display: flex;
    isolation: isolate;
    min-height: calc(100svh - var(--ar-navbar-h));
    overflow: hidden;
    position: relative;
}

.ar-home-hero__sky,
.ar-home-hero__town,
.ar-home-hero__glow,
.ar-home-stars {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.ar-home-hero__sky {
    background-image: url('/images/bg-town.png');
    background-image: image-set(
        url('/images/bg-town-1920.webp') 1x,
        url('/images/bg-town-2560.webp') 2x
    );
    background-position: center;
    background-size: cover;
    filter: saturate(0.78) brightness(0.52);
    transform: translate3d(calc(var(--pointer-x) * -0.16), calc(var(--pointer-y) * -0.12), 0) scale(1.08);
    transition: transform 0.35s ease-out;
    z-index: -5;
}

.ar-home-hero__town {
    background-image: url('/images/bg-town.png');
    background-image: image-set(
        url('/images/bg-town-1920.webp') 1x,
        url('/images/bg-town-2560.webp') 2x
    );
    background-position: center bottom;
    background-size: cover;
    clip-path: polygon(0 58%, 34% 49%, 62% 55%, 100% 43%, 100% 100%, 0 100%);
    filter: saturate(0.9) brightness(0.38);
    opacity: 0.45;
    transform: translate3d(calc(var(--pointer-x) * -0.35), calc(var(--pointer-y) * -0.26), 0) scale(1.13);
    transition: transform 0.28s ease-out;
    z-index: -4;
}

.ar-home-hero__glow {
    background:
        radial-gradient(circle at 72% 43%, rgba(95, 183, 167, 0.22), transparent 27%),
        radial-gradient(circle at 28% 45%, rgba(201, 154, 59, 0.18), transparent 36%),
        linear-gradient(90deg, rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.7) 47%, rgba(5, 7, 11, 0.5) 100%),
        linear-gradient(180deg, rgba(5, 7, 11, 0.12) 55%, #07090e 100%);
    z-index: -3;
}

.ar-home-stars {
    background-image:
        radial-gradient(circle, rgba(241, 202, 114, 0.8) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(141, 216, 202, 0.62) 0 1px, transparent 1.5px);
    background-position: 0 0, 46px 68px;
    background-size: 91px 91px, 137px 137px;
    mask-image: linear-gradient(to bottom, black, transparent 74%);
    opacity: 0.38;
    z-index: -2;
}

.ar-home-hero__content {
    padding-bottom: 6.5rem;
    padding-top: 6rem;
    position: relative;
    z-index: 1;
}

.ar-alpha-badge {
    align-items: center;
    background: rgba(23, 28, 37, 0.74);
    border: 1px solid rgba(95, 183, 167, 0.52);
    border-radius: 999px;
    color: #a8e2d7;
    display: inline-flex;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 0.5rem;
    letter-spacing: 0.17em;
    margin: 0 0 1.3rem;
    padding: 0.4rem 0.75rem;
}

.ar-home-kicker {
    color: var(--ar-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    margin: 0 0 0.8rem;
    text-transform: uppercase;
}

.ar-home-title {
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(2.65rem, 6vw, 4.55rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.08;
    margin: 0;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.54);
}

.ar-home-title span {
    display: block;
}

.ar-home-title span:last-child {
    background: linear-gradient(100deg, #fff 4%, var(--ar-gold-light) 72%, #dfac53 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ar-home-intro {
    color: #d2d9e2;
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    line-height: 2;
    margin: 1.7rem 0 0;
    max-width: 660px;
}

.ar-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.ar-home-button {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
    min-height: 49px;
    padding: 0.75rem 1.35rem;
    position: relative;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
}

.ar-home-button--primary {
    background: linear-gradient(135deg, #f1ca72, #c99a3b);
    border: 1px solid #f4d48d;
    box-shadow: 0 10px 36px rgba(201, 154, 59, 0.25);
    color: #171006;
}

.ar-home-button--primary:hover {
    box-shadow: 0 15px 42px rgba(201, 154, 59, 0.38);
    color: #171006;
    transform: translateY(-2px);
}

.ar-home-button--ghost {
    background: rgba(7, 9, 14, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f4f8;
}

.ar-home-button--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(241, 202, 114, 0.55);
    color: #fff;
    transform: translateY(-2px);
}

.ar-astral-mark {
    aspect-ratio: 1;
    margin: 0 auto;
    max-width: 440px;
    perspective: 800px;
    position: relative;
    transform: translate3d(calc(var(--pointer-x) * 0.42), calc(var(--pointer-y) * 0.38), 0) rotateX(calc(var(--pointer-y) * -0.05deg)) rotateY(calc(var(--pointer-x) * 0.05deg));
    transition: transform 0.25s ease-out;
}

.ar-astral-mark::before {
    background: radial-gradient(circle, rgba(95, 183, 167, 0.34), rgba(201, 154, 59, 0.12) 35%, transparent 67%);
    content: '';
    filter: blur(12px);
    inset: -15%;
    position: absolute;
}

.ar-astral-mark__core {
    background: linear-gradient(145deg, rgba(241, 202, 114, 0.24), rgba(9, 11, 16, 0.84));
    border: 1px solid rgba(241, 202, 114, 0.5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 42px rgba(241, 202, 114, 0.09);
    height: 44%;
    left: 28%;
    padding: 13px;
    position: absolute;
    top: 28%;
    transform: rotate(45deg);
    width: 44%;
}

.ar-astral-mark__core img {
    height: 100%;
    object-fit: cover;
    transform: rotate(-45deg);
    width: 100%;
}

.ar-astral-mark__orbit {
    border: 1px solid rgba(241, 202, 114, 0.4);
    border-radius: 50%;
    inset: 6%;
    position: absolute;
}

.ar-astral-mark__orbit::before,
.ar-astral-mark__orbit::after {
    background: var(--ar-gold-light);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(241, 202, 114, 0.75);
    content: '';
    height: 7px;
    left: 50%;
    position: absolute;
    top: -4px;
    width: 7px;
}

.ar-astral-mark__orbit::after {
    background: var(--ar-teal);
    bottom: -4px;
    box-shadow: 0 0 16px rgba(95, 183, 167, 0.75);
    left: auto;
    right: 50%;
    top: auto;
}

.ar-astral-mark__orbit--outer {
    animation: ar-spin 30s linear infinite;
    border-style: dashed;
    transform: rotateX(68deg) rotateZ(12deg);
}

.ar-astral-mark__orbit--inner {
    animation: ar-spin-reverse 22s linear infinite;
    inset: 18%;
    transform: rotateY(66deg) rotateZ(-24deg);
}

.ar-astral-mark__rune {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Cinzel', serif;
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    position: absolute;
    text-shadow: 0 0 12px rgba(95, 183, 167, 0.8);
}

.ar-astral-mark__rune--one { left: 2%; top: 48%; transform: rotate(-90deg); }
.ar-astral-mark__rune--two { right: 4%; top: 22%; }
.ar-astral-mark__rune--three { bottom: 4%; left: 41%; }

.ar-scroll-cue {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    bottom: 1.8rem;
    display: grid;
    height: 38px;
    left: 50%;
    place-items: start center;
    position: absolute;
    transform: translateX(-50%);
    width: 23px;
    z-index: 2;
}

.ar-scroll-cue span {
    animation: ar-scroll-dot 1.8s ease-in-out infinite;
    background: var(--ar-gold-light);
    border-radius: 50%;
    height: 4px;
    margin-top: 7px;
    width: 4px;
}

.ar-home-section {
    padding: 7.5rem 0;
    scroll-margin-top: var(--ar-navbar-h);
}

.ar-feature-section {
    background:
        radial-gradient(circle at 50% 0, rgba(95, 183, 167, 0.07), transparent 36%),
        #07090e;
}

.ar-home-heading {
    margin-bottom: 3.3rem;
    max-width: 730px;
}

.ar-home-heading--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ar-home-heading h2,
.ar-world-copy h2 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.22;
    margin: 0;
}

.ar-home-heading > p:last-child,
.ar-world-copy > p:not(.ar-home-kicker) {
    color: var(--ar-text-muted);
    line-height: 1.95;
    margin: 1.1rem 0 0;
    max-width: 650px;
}

.ar-home-heading--center > p:last-child {
    margin-left: auto;
    margin-right: auto;
}

.ar-feature-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(12, 1fr);
}

.ar-feature-card {
    background:
        linear-gradient(145deg, rgba(23, 28, 37, 0.96), rgba(10, 13, 19, 0.98));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
    min-height: 340px;
    overflow: hidden;
    padding: 2rem;
    position: relative;
    transform-style: preserve-3d;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.ar-feature-card::before {
    background: radial-gradient(circle, var(--feature-glow), transparent 67%);
    content: '';
    height: 250px;
    opacity: 0.18;
    position: absolute;
    right: -110px;
    top: -110px;
    width: 250px;
}

.ar-feature-card:hover {
    border-color: rgba(241, 202, 114, 0.42);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.34);
    transform: translateY(-7px) rotateX(1deg);
}

.ar-feature-card--combat {
    --feature-glow: #d16d4f;
    background-image:
        linear-gradient(145deg, rgba(7, 10, 15, 0.64), rgba(7, 10, 15, 0.94)),
        image-set(
            url('/images/feature-combat-800.webp') 1x,
            url('/images/feature-combat-1600.webp') 2x
        );
    background-position: center;
    grid-column: span 5;
}

.ar-feature-card--adventure {
    --feature-glow: #5fb7a7;
    background-image:
        linear-gradient(145deg, rgba(7, 10, 15, 0.58), rgba(7, 10, 15, 0.94)),
        image-set(
            url('/images/feature-adventure-800.webp') 1x,
            url('/images/feature-adventure-1600.webp') 2x
        );
    background-position: center 44%;
    grid-column: span 7;
}

.ar-feature-card--community {
    --feature-glow: #c99a3b;
    background-image:
        linear-gradient(145deg, rgba(7, 10, 15, 0.62), rgba(7, 10, 15, 0.93)),
        image-set(
            url('/images/feature-community-800.webp') 1x,
            url('/images/feature-community-1600.webp') 2x
        );
    background-position: center 54%;
    grid-column: 3 / span 8;
    min-height: 300px;
}

.ar-feature-card__number {
    color: rgba(255, 255, 255, 0.08);
    font-family: 'Cinzel', serif;
    font-size: 4.7rem;
    font-weight: 900;
    line-height: 1;
    position: absolute;
    right: 1.4rem;
    top: 1rem;
}

.ar-feature-card__icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--ar-gold-light);
    display: flex;
    font-size: 1.2rem;
    height: 42px;
    justify-content: center;
    margin-bottom: 2.8rem;
    width: 42px;
}

.ar-feature-card h3 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.ar-feature-card p {
    color: var(--ar-text-muted);
    line-height: 1.85;
    margin: 0;
    max-width: 600px;
}

.ar-feature-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
}

.ar-feature-card li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #cbd3dc;
    font-size: 0.73rem;
    padding: 0.28rem 0.65rem;
}

.ar-world-section {
    align-items: center;
    display: flex;
    isolation: isolate;
    min-height: 680px;
    overflow: hidden;
    padding: 7rem 0;
    position: relative;
}

.ar-world-section__image,
.ar-world-section__shade {
    inset: 0;
    position: absolute;
}

.ar-world-section__image {
    background-image: url('/images/bg-sky.png');
    background-image: image-set(
        url('/images/bg-sky-1920.webp') 1x,
        url('/images/bg-sky-2560.webp') 2x
    );
    background-position: center;
    background-size: cover;
    filter: saturate(0.68) brightness(0.58);
    transform: translate3d(0, calc(var(--pointer-y) * -0.22), 0) scale(1.08);
    transition: transform 0.4s ease-out;
    z-index: -2;
}

.ar-world-section__shade {
    background:
        linear-gradient(90deg, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.78) 48%, rgba(5, 7, 11, 0.18) 100%),
        linear-gradient(180deg, #07090e 0%, transparent 18%, transparent 82%, #090c12 100%);
    z-index: -1;
}

.ar-world-copy {
    background: rgba(7, 9, 14, 0.56);
    border-left: 2px solid var(--ar-gold);
    max-width: 610px;
    padding: 2.4rem;
}

.ar-text-link {
    color: var(--ar-gold-light);
    display: inline-flex;
    font-weight: 700;
    gap: 0.45rem;
    text-decoration-color: rgba(241, 202, 114, 0.45);
    text-underline-offset: 0.3em;
}

.ar-text-link:hover {
    color: #fff0c7;
    text-decoration-color: #fff0c7;
}

.ar-world-copy .ar-text-link {
    margin-top: 1.5rem;
}

.ar-discord-section {
    background:
        radial-gradient(circle at 12% 30%, rgba(88, 101, 242, 0.16), transparent 34%),
        #07090e;
    padding: clamp(4rem, 8vw, 7rem) 0;
    scroll-margin-top: var(--ar-navbar-h);
}

.ar-discord-panel {
    align-items: center;
    background:
        linear-gradient(125deg, rgba(88, 101, 242, 0.3), rgba(17, 21, 35, 0.94) 48%, rgba(9, 12, 20, 0.98));
    border: 1px solid rgba(118, 129, 246, 0.54);
    border-radius: 4px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.6rem);
    grid-template-columns: auto minmax(0, 1fr) auto;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.7rem, 5vw, 3.2rem);
    position: relative;
}

.ar-discord-panel::before {
    background: radial-gradient(circle, rgba(118, 129, 246, 0.34), transparent 68%);
    content: '';
    height: 430px;
    left: -180px;
    position: absolute;
    top: -210px;
    width: 430px;
    z-index: -1;
}

.ar-discord-panel::after {
    background: linear-gradient(90deg, #5865f2, #9ba4ff, transparent 78%);
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.ar-discord-panel__mark {
    align-items: center;
    background: #5865f2;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(88, 101, 242, 0.34);
    display: flex;
    gap: 7px;
    height: 78px;
    justify-content: center;
    transform: rotate(-3deg);
    width: 78px;
}

.ar-discord-panel__mark span {
    background: #fff;
    border-radius: 50%;
    height: 7px;
    opacity: 0.92;
    width: 7px;
}

.ar-discord-panel__eyebrow {
    color: #b9c0ff;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0 0 0.55rem;
}

.ar-discord-panel__copy h2 {
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin: 0;
}

.ar-discord-panel__copy > p:not(.ar-discord-panel__eyebrow) {
    color: #c8cfdd;
    line-height: 1.85;
    margin: 0.9rem 0 0;
    max-width: 700px;
}

.ar-discord-panel__copy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
}

.ar-discord-panel__copy li {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #e2e5ef;
    font-size: 0.76rem;
    padding: 0.32rem 0.72rem;
}

.ar-discord-panel__button {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 3px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    color: #30399b;
    flex: 0 0 auto;
    font-weight: 700;
    padding: 0.95rem 1.35rem;
    white-space: nowrap;
}

.ar-discord-panel__button:hover {
    background: #eef0ff;
    border-color: #eef0ff;
    color: #222a7c;
    transform: translateY(-2px);
}

.ar-join-section {
    background-image:
        linear-gradient(rgba(9, 12, 18, 0.95), rgba(9, 12, 18, 0.98)),
        url('/images/bg-town.png');
    background-image:
        linear-gradient(rgba(9, 12, 18, 0.95), rgba(9, 12, 18, 0.98)),
        image-set(
            url('/images/bg-town-1920.webp') 1x,
            url('/images/bg-town-2560.webp') 2x
        );
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.ar-edition-card {
    background: rgba(15, 19, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 4px;
    height: 100%;
    padding: clamp(1.3rem, 4vw, 2rem);
    position: relative;
}

.ar-edition-card--available {
    border-color: rgba(95, 183, 167, 0.42);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.04);
}

.ar-edition-card--available::before {
    background: linear-gradient(90deg, var(--ar-teal), var(--ar-gold));
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.ar-edition-card__head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.ar-edition-card__eyebrow {
    color: var(--ar-text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.ar-edition-card h3 {
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    margin: 0.3rem 0 0;
}

.ar-edition-card > p {
    color: var(--ar-text-muted);
    line-height: 1.85;
}

.ar-edition-state {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--ar-text-muted);
    flex: 0 0 auto;
    font-size: 0.69rem;
    padding: 0.28rem 0.62rem;
}

.ar-edition-state--open {
    background: rgba(95, 183, 167, 0.12);
    border-color: rgba(95, 183, 167, 0.42);
    color: #9de4d7;
}

.ar-address-button {
    align-items: center;
    background: rgba(5, 7, 11, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
}

.ar-address-button:hover,
.ar-address-button[data-copy-state="done"] {
    background: rgba(95, 183, 167, 0.1);
    border-color: rgba(95, 183, 167, 0.64);
}

.ar-address-button > span:first-child {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.ar-address-button small,
.ar-address-button__copy {
    color: var(--ar-text-muted);
    font-size: 0.68rem;
}

.ar-address-button strong {
    color: #a8e2d7;
    font-family: 'Courier New', monospace;
    font-size: clamp(1.05rem, 4vw, 1.32rem);
    overflow-wrap: anywhere;
}

.ar-address-button__copy {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 3px;
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem;
}

.ar-address-help,
.ar-copy-status {
    color: var(--ar-text-muted);
    font-size: 0.74rem;
    margin: 0.55rem 0 0;
}

.ar-copy-status {
    color: #9de4d7;
    min-height: 1.1rem;
}

.ar-join-steps {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 1.35rem 0 0;
    padding: 0;
}

.ar-join-steps li {
    align-items: center;
    color: #d4dbe4;
    display: flex;
    font-size: 0.88rem;
    gap: 0.75rem;
}

.ar-join-steps span {
    border: 1px solid rgba(241, 202, 114, 0.38);
    color: var(--ar-gold-light);
    display: grid;
    flex: 0 0 auto;
    font-family: 'Cinzel', serif;
    height: 27px;
    place-items: center;
    width: 27px;
}

.ar-join-steps li span {
    line-height: 1;
}

.ar-edition-card--planned {
    background: linear-gradient(145deg, rgba(20, 23, 31, 0.88), rgba(11, 14, 20, 0.96));
}

.ar-alpha-notice {
    background: rgba(209, 109, 79, 0.07);
    border: 1px solid rgba(209, 109, 79, 0.32);
    border-radius: 4px;
    display: grid;
    gap: 1.3rem;
    grid-template-columns: auto 1fr;
    margin: 0 0 2rem;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.ar-alpha-notice__mark {
    align-items: center;
    border: 1px solid rgba(209, 109, 79, 0.62);
    color: #ef9e87;
    display: flex;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.ar-alpha-notice h3 {
    color: #f4c1b2;
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
}

.ar-alpha-notice__eyebrow {
    color: #ef9e87;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0 0 0.35rem;
}

.ar-alpha-notice__lead {
    color: #d5dbe3;
    font-size: 0.88rem;
    line-height: 1.75;
    margin: 0 0 0.8rem;
}

.ar-alpha-notice ul {
    color: #c3cbd6;
    display: grid;
    font-size: 0.87rem;
    gap: 0.5rem;
    line-height: 1.7;
    margin: 0;
    padding-left: 1.25rem;
}

.ar-alpha-notice li::marker {
    color: #d97c61;
}

.ar-join-footer {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.ar-join-footer p {
    color: var(--ar-text-muted);
    font-size: 0.82rem;
    margin: 0;
}

.ar-join-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ar-join-footer .ar-text-link {
    font-size: 0.82rem;
}

/* ===== Login unavailable ===== */
.ar-login-page {
    align-items: center;
    display: flex;
    isolation: isolate;
    min-height: calc(100svh - var(--ar-navbar-h));
    overflow: hidden;
    padding: 6rem 0;
    position: relative;
}

.ar-login-page__backdrop {
    background-image:
        linear-gradient(rgba(5, 7, 11, 0.7), rgba(5, 7, 11, 0.92)),
        url('/images/bg-sky.png');
    background-image:
        linear-gradient(rgba(5, 7, 11, 0.7), rgba(5, 7, 11, 0.92)),
        image-set(
            url('/images/bg-sky-1920.webp') 1x,
            url('/images/bg-sky-2560.webp') 2x
        );
    background-position: center;
    background-size: cover;
    filter: saturate(0.66);
    inset: 0;
    position: absolute;
    transform: scale(1.04);
    z-index: -1;
}

.ar-login-card {
    backdrop-filter: blur(18px);
    background: rgba(10, 13, 19, 0.88);
    border: 1px solid rgba(241, 202, 114, 0.3);
    border-radius: 4px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48);
    padding: clamp(1.5rem, 5vw, 2.7rem);
}

.ar-login-card h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0 0 1.4rem;
}

.ar-alpha-badge--muted {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--ar-text-muted);
}

.ar-login-card__notice {
    background: rgba(209, 109, 79, 0.09);
    border-left: 3px solid var(--ar-ember);
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.6rem;
    padding: 1rem 1.15rem;
}

.ar-login-card__notice strong {
    color: #f4c1b2;
}

.ar-login-card__notice span {
    color: var(--ar-text-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.ar-login-card fieldset[disabled] {
    opacity: 0.52;
}

.ar-disabled-input,
.ar-disabled-input:disabled {
    background: rgba(5, 7, 11, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--ar-text-muted);
}

.ar-login-card__foot {
    color: var(--ar-text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 1.6rem 0 0;
    text-align: center;
}

.ar-login-card__foot a {
    color: var(--ar-gold-light);
}

.ar-home a:focus-visible,
.ar-home button:focus-visible,
.ar-legal-page a:focus-visible,
.ar-login-page a:focus-visible,
.ar-login-page button:focus-visible,
.ar-navbar a:focus-visible,
.ar-navbar button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

@keyframes ar-spin {
    from { transform: rotateX(68deg) rotateZ(12deg); }
    to { transform: rotateX(68deg) rotateZ(372deg); }
}

@keyframes ar-spin-reverse {
    from { transform: rotateY(66deg) rotateZ(-24deg); }
    to { transform: rotateY(66deg) rotateZ(-384deg); }
}

@keyframes ar-scroll-dot {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(17px); }
}

@media (max-width: 991.98px) {
    .ar-home-hero {
        min-height: 820px;
    }

    .ar-home-hero__glow {
        background:
            linear-gradient(90deg, rgba(5, 7, 11, 0.92), rgba(5, 7, 11, 0.66)),
            linear-gradient(180deg, transparent 54%, #07090e 100%);
    }

    .ar-feature-card--combat,
    .ar-feature-card--adventure,
    .ar-feature-card--community {
        grid-column: span 12;
        min-height: auto;
    }

    .ar-discord-panel {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ar-discord-panel__button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .ar-world-section {
        min-height: 600px;
    }

    .ar-world-section__shade {
        background:
            linear-gradient(90deg, rgba(5, 7, 11, 0.92), rgba(5, 7, 11, 0.56)),
            linear-gradient(180deg, #07090e 0%, transparent 18%, transparent 82%, #090c12 100%);
    }

    .ar-join-section {
        background-attachment: scroll;
    }
}

@media (max-width: 767.98px) {
    .ar-page-hero--sky {
        background-image: image-set(
            url('/images/bg-sky-640.webp') 1x,
            url('/images/bg-sky-1280.webp') 2x
        );
    }

    .ar-page-hero--town {
        background-image: image-set(
            url('/images/bg-town-640.webp') 1x,
            url('/images/bg-town-1280.webp') 2x
        );
    }

    .ar-hero,
    .ar-world-section__image {
        background-image: image-set(
            url('/images/bg-sky-640.webp') 1x,
            url('/images/bg-sky-1280.webp') 2x
        );
    }

    .ar-home-hero__sky,
    .ar-home-hero__town {
        background-image: image-set(
            url('/images/bg-town-640.webp') 1x,
            url('/images/bg-town-1280.webp') 2x
        );
    }

    .ar-join-section {
        background-image:
            linear-gradient(rgba(9, 12, 18, 0.95), rgba(9, 12, 18, 0.98)),
            image-set(
                url('/images/bg-town-640.webp') 1x,
                url('/images/bg-town-1280.webp') 2x
            );
    }

    .ar-login-page__backdrop {
        background-image:
            linear-gradient(rgba(5, 7, 11, 0.7), rgba(5, 7, 11, 0.92)),
            image-set(
                url('/images/bg-sky-640.webp') 1x,
                url('/images/bg-sky-1280.webp') 2x
            );
    }
}

@media (max-width: 575.98px) {
    .ar-brand-alpha {
        display: none;
    }

    .ar-home-hero {
        min-height: calc(100svh - var(--ar-navbar-h));
    }

    .ar-home-hero__content {
        padding-bottom: 5rem;
        padding-top: 4rem;
    }

    .ar-home-title {
        font-size: clamp(2.55rem, 13vw, 3.7rem);
    }

    .ar-home-intro {
        line-height: 1.85;
    }

    .ar-legal-hero,
    .ar-legal-hero .container {
        min-height: 300px;
    }

    .ar-privacy-data-list > div {
        gap: 0.35rem;
        grid-template-columns: 1fr;
    }

    .ar-home-actions,
    .ar-home-button {
        width: 100%;
    }

    .ar-discord-panel {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .ar-discord-panel__mark {
        border-radius: 17px;
        height: 60px;
        width: 60px;
    }

    .ar-discord-panel__button {
        grid-column: auto;
        text-align: center;
        white-space: normal;
        width: 100%;
    }

    .ar-scroll-cue {
        display: none;
    }

    .ar-home-section {
        padding: 5rem 0;
    }

    .ar-feature-card {
        padding: 1.45rem;
    }

    .ar-feature-card__icon {
        margin-bottom: 2rem;
    }

    .ar-world-section {
        min-height: 580px;
        padding: 5rem 0;
    }

    .ar-world-copy {
        padding: 1.4rem;
    }

    .ar-address-button {
        align-items: stretch;
        flex-direction: column;
    }

    .ar-address-button__copy {
        text-align: center;
    }

    .ar-alpha-notice {
        grid-template-columns: 1fr;
    }

    .ar-join-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ar-join-footer > div {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .ar-home-hero__sky,
    .ar-home-hero__town,
    .ar-astral-mark,
    .ar-world-section__image {
        transform: none !important;
    }
}
