/* --------------------------------------------------------------------------
 * Color palette
 * -------------------------------------------------------------------------- */
:root {
    --bg: #061018;
    --bg-deep: #030a12;
    --bg-soft: #0b1724;
    --surface: #111f30;
    --surface-raised: #14263a;
    --surface-strong: #172b3e;
    --surface-glass: rgba(12, 22, 34, 0.84);
    --surface-glass-strong: rgba(17, 31, 48, 0.92);
    --primary: #58d9ff;
    --primary-strong: #18a8df;
    --accent: #98f36f;
    --ember: #ffb454;
    --violet: #a78bfa;
    --text: #f4f8fb;
    --text-muted: #a9bad0;
    --border: rgba(148, 180, 213, 0.2);
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #fb7185;
    --focus-ring: rgba(88, 217, 255, 0.68);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.2);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* --------------------------------------------------------------------------
 * Temel sıfırlama ve genel görünüm
 * -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
    color-scheme: dark;
    background: var(--bg-deep);
}

.skip-link {
    position: absolute;
    top: -3rem;
    left: 16px;
    z-index: 1100;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(7, 17, 31, 0.96);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: top 0.2s ease, transform 0.2s ease;
}

.skip-link:focus-visible {
    top: 16px;
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button,
a,
select {
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

::selection {
    background: rgba(142, 232, 121, 0.28);
    color: var(--text);
}

/* --------------------------------------------------------------------------
 * Tipografi ve ana sayfa düzeni
 * -------------------------------------------------------------------------- */
body {
    margin: 0;
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
    background:
        radial-gradient(circle at 14% 10%, rgba(88, 217, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(255, 180, 84, 0.16), transparent 24rem),
        radial-gradient(circle at 50% 100%, rgba(152, 243, 111, 0.12), transparent 26rem),
        linear-gradient(135deg, rgba(152, 243, 111, 0.08), transparent 35%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.026), rgba(255,255,255,0.026) 1px, transparent 1px, transparent 20px),
        linear-gradient(180deg, #061018 0%, #0b1724 46%, #061018 100%);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    scrollbar-color: rgba(88, 217, 255, 0.5) var(--bg-deep);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(88, 217, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 217, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 74%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 74%);
    contain: paint;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: auto -8rem -10rem auto;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 217, 255, 0.18), transparent 72%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -1;
}

.noscript-banner {
    margin: 0;
    padding: 14px 18px;
    text-align: center;
    background: rgba(251, 113, 133, 0.16);
    color: #ffd7df;
    border-bottom: 1px solid rgba(251, 113, 133, 0.25);
    font-weight: 700;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 12px clamp(18px, 6vw, 88px);
    background: rgba(4, 12, 23, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 180, 213, 0.16);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
 * Üst navigasyon ve dil seçici stilleri
 * -------------------------------------------------------------------------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.logo-image {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(84, 214, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 10px 20px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.logo-text {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-family: "Press Start 2P", monospace;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.language-selector {
    flex: 0 0 auto;
}

#languageSelect {
    background: rgba(18, 35, 58, 0.9);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    min-width: 140px;
}

#languageSelect:hover,
#languageSelect:focus-visible {
    background: rgba(84, 214, 255, 0.15);
    border-color: var(--primary);
    outline: none;
}

#languageSelect option {
    background: var(--surface-strong);
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    display: flex;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    font-weight: 700;
    font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(88, 217, 255, 0.1);
    outline: none;
}

.nav-links a.active {
    color: var(--text);
    background: rgba(88, 217, 255, 0.1);
    box-shadow: inset 0 -2px 0 var(--primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #06101d !important;
    background: var(--primary);
    border: 1px solid transparent;
    box-shadow: 0 10px 26px rgba(24, 168, 223, 0.2);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    color: #06101d !important;
    background: #7ee2ff !important;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    color: var(--text);
    background: rgba(18, 35, 58, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
 * Hero bölümü: ana çağrı ve sunucu bilgi paneli
 * -------------------------------------------------------------------------- */
.hero {
    position: relative;
    text-align: left;
    padding: clamp(74px, 10vw, 126px) clamp(18px, 8vw, 120px) 76px;
    border-bottom: 1px solid rgba(84, 214, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(6, 16, 28, 0.95), rgba(9, 23, 38, 0.82)),
        linear-gradient(120deg, rgba(84, 214, 255, 0.12), transparent 46%, rgba(255, 180, 84, 0.08));
    overflow: hidden;
    isolation: isolate;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto auto -8rem -6rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(152, 243, 111, 0.22), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.032) 1px, transparent 1px, transparent 16px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.026) 1px, transparent 1px, transparent 16px);
    opacity: 0.22;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    align-items: center;
    gap: clamp(28px, 5vw, 68px);
}

.hero-content {
    max-width: 780px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.eyebrow {
    padding: 6px 10px;
    color: #06101d;
    background: var(--accent);
    border-radius: 7px;
    box-shadow: 0 10px 22px rgba(142, 232, 121, 0.12);
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 4.8rem);
    line-height: 1.08;
    margin: 0 0 16px;
    color: #e9f9ff;
    font-weight: 950;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.section-heading p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.16rem);
    margin: 0;
}

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

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(88, 217, 255, 0.28);
    text-decoration: none;
    font-weight: 900;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow-soft);
}

.hero-button:hover,
.hero-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 168, 223, 0.16);
}

.hero-button.primary {
    color: #061018;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-color: transparent;
}

.hero-button.ghost:hover,
.hero-button.ghost:focus-visible {
    color: #061018;
    background: var(--primary);
}

.hero-button:hover,
.hero-button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.hero-cockpit {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(88, 217, 255, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(17, 31, 48, 0.94), rgba(7, 15, 25, 0.88)),
        linear-gradient(135deg, rgba(88, 217, 255, 0.09), rgba(152, 243, 111, 0.04));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero-cockpit::before {
    content: '';
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(90deg, rgba(88, 217, 255, 0.26), transparent 20%, transparent 80%, rgba(152, 243, 111, 0.2)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 14px);
    opacity: 0.55;
    pointer-events: none;
}

.cockpit-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.server-ip {
    color: var(--text);
    font-weight: 850;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
 * Etkileşimli bileşenler: IP kopyalama, durum butonu ve komut chipleri
 * -------------------------------------------------------------------------- */
.ip-box {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(135deg, rgba(24, 43, 69, 0.98), rgba(8, 16, 27, 0.92));
    border: 1px solid rgba(84, 214, 255, 0.62);
    padding: 14px 18px 14px 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font: inherit;
    overflow: hidden;
}

.ip-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(88, 217, 255, 0.1), transparent);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
}

.ip-box:hover::before,
.ip-box:focus-visible::before {
    transform: translateX(120%);
}

.ip-box:hover,
.ip-box:focus-visible {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 18px 54px rgba(24, 168, 223, 0.25);
    outline: none;
}

.copy-text {
    min-width: 104px;
    color: #06101d;
    background: var(--primary);
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.86rem;
    font-weight: 900;
    transition: background 0.2s ease, color 0.2s ease;
}

.copy-text.copied {
    background: var(--success);
}

.copy-text.failed {
    background: var(--danger);
    color: #fff;
}

.server-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-top: 0;
    padding: 11px 16px;
    background: rgba(6, 13, 22, 0.66);
    border-radius: 12px;
    border: 1px solid rgba(84, 214, 255, 0.2);
    box-shadow: var(--shadow-soft);
}

.status-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin: -8px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.world-preview {
    position: relative;
    z-index: 1;
    min-height: 210px;
    border: 1px solid rgba(148, 180, 213, 0.18);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(88, 217, 255, 0.12), transparent 45%),
        linear-gradient(0deg, rgba(152, 243, 111, 0.14), transparent 40%),
        rgba(4, 10, 18, 0.62);
    overflow: hidden;
    perspective: 640px;
}

.world-preview::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 28px;
    height: 92px;
    background:
        linear-gradient(135deg, rgba(88, 217, 255, 0.18), transparent),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.09), rgba(255,255,255,0.09) 1px, transparent 1px, transparent 28px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 1px, transparent 1px, transparent 28px);
    border: 1px solid rgba(88, 217, 255, 0.18);
    transform: rotateX(62deg) rotateZ(-8deg);
    transform-origin: bottom center;
}

.block {
    position: absolute;
    display: block;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: rotateX(58deg) rotateZ(45deg);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.block::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.block.grass {
    left: 18%;
    bottom: 56px;
    background: linear-gradient(135deg, #98f36f, #4f8d40 56%, #5b3829 57%);
}

.block.ore {
    left: 43%;
    bottom: 86px;
    background: linear-gradient(135deg, #8895a7, #314157 52%, #58d9ff 53%, #58d9ff 62%, #203145 63%);
}

.block.water {
    right: 18%;
    bottom: 48px;
    background: linear-gradient(135deg, #58d9ff, #1c6fb3);
}

.block.tree {
    right: 30%;
    top: 36px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #98f36f, #276749);
}

.block.tree::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 50px;
    left: 14px;
    top: 28px;
    background: #7c4a2f;
    transform: rotateZ(-45deg);
    transform-origin: top;
}

.scan-line {
    position: absolute;
    left: -30%;
    right: -30%;
    top: 42%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(88, 217, 255, 0.85), transparent);
    box-shadow: 0 0 22px rgba(88, 217, 255, 0.55);
    animation: scan 4s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { transform: translateY(-54px); opacity: 0.2; }
    50% { transform: translateY(58px); opacity: 1; }
}

#modFileStatus {
    color: var(--text);
    font-weight: 900;
}

[data-health="online"],
[data-health="ready"] {
    color: var(--success) !important;
}

[data-health="checking"] {
    color: var(--warning) !important;
}

[data-health="offline"],
[data-health="error"] {
    color: var(--danger) !important;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

.status-dot.checking {
    background: var(--warning);
}

.status-dot.online {
    background: var(--success);
}

.status-dot.offline {
    background: var(--danger);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.88); }
}

.status-text {
    font-size: 0.94rem;
    color: var(--text-muted);
}

.status-text strong,
.status-text .player-count {
    color: var(--primary);
    font-weight: 850;
}

.refresh-status {
    min-height: 34px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.refresh-status:hover,
.refresh-status:focus-visible {
    background: rgba(84, 214, 255, 0.12);
    border-color: rgba(84, 214, 255, 0.42);
    outline: none;
}

.quick-grid {
    width: min(1060px, 100%);
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    position: relative;
    z-index: 1;
}

.quick-card {
    min-height: 96px;
    padding: 18px 18px 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
        var(--surface-glass);
    border: 1px solid rgba(84, 214, 255, 0.18);
    border-radius: var(--radius-md);
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035), var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(10px);
}

.quick-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 180, 84, 0.38);
    background: rgba(16, 31, 52, 0.94);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.quick-card dt {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.quick-card dd {
    margin: 0;
}

.quick-card strong {
    color: var(--text);
    font-size: 1.05rem;
}

.map-section,
.wiki-section,
.starter-section,
.rules-section,
.download-section,
.faq-section {
    padding: clamp(56px, 8vw, 92px) clamp(18px, 8vw, 120px);
    border-bottom: 1px solid var(--border);
}

/* Sayfa uzadığında ekran dışındaki bölümleri geç çizerek kaydırma maliyetini azalt. */
@supports (content-visibility: auto) {
    .map-section,
    .wiki-section,
    .starter-section,
    .rules-section,
    .download-section,
    .faq-section {
        content-visibility: auto;
        contain-intrinsic-size: auto 680px;
    }
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2 {
    color: var(--text);
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.1;
    margin: 0 0 12px;
    text-wrap: balance;
}

.map-frame {
    width: 100%;
    height: min(68vh, 680px);
    min-height: 340px;
    border: 1px solid rgba(84, 214, 255, 0.55);
    border-radius: 12px;
    background: var(--bg-soft);
    display: block;
    box-shadow: var(--shadow);
}

.map-shell {
    position: relative;
    width: 100%;
}

.connection-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-glass);
    color: var(--text-muted);
    font-weight: 850;
    text-align: center;
}

.connection-banner.ready {
    color: var(--success);
    border-color: rgba(74, 222, 128, 0.35);
}

.connection-banner.error {
    color: var(--danger);
    border-color: rgba(251, 113, 133, 0.35);
}

.connection-banner.checking {
    color: var(--warning);
}

.map-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 12px;
    padding: 8px 14px;
    color: var(--text);
    text-decoration: none;
    background: rgba(84, 214, 255, 0.1);
    border: 1px solid rgba(84, 214, 255, 0.22);
    border-radius: 7px;
    font-weight: 850;
}

.map-fallback:hover,
.map-fallback:focus-visible {
    color: #06101d;
    background: var(--primary);
    outline: none;
}

.wiki-section {
    background: rgba(13, 27, 46, 0.6);
}

.starter-section {
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.92), rgba(13, 27, 46, 0.68));
}

.starter-flow,
.feature-grid,
.rules-grid {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.starter-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-step,
.feature-card,
.rule-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(84, 214, 255, 0.17);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
        var(--surface-glass);
    box-shadow: var(--shadow-soft);
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(10px);
}

.flow-step {
    position: relative;
    overflow: hidden;
}

.flow-step::before,
.feature-card::before,
.rule-card::before,
.wiki-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(88, 217, 255, 0.12), transparent 36%, rgba(255, 180, 84, 0.08));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.flow-step::after {
    content: '';
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(84, 214, 255, 0.2);
    transform: rotate(45deg);
}

.flow-step:hover,
.feature-card:hover,
.rule-card:hover {
    transform: translateY(-3px);
    border-color: rgba(84, 214, 255, 0.36);
    background: rgba(16, 31, 52, 0.94);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.flow-step:hover::before,
.feature-card:hover::before,
.rule-card:hover::before,
.wiki-item:hover::before {
    opacity: 1;
}

.step-number,
.rule-card strong {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 900;
}

.flow-step h3,
.feature-card h3,
.rule-card h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.12rem;
}

.flow-step p,
.feature-card p,
.rule-card p {
    margin: 0;
    color: var(--text-muted);
}

.feature-card {
    min-height: 150px;
    border-color: rgba(142, 232, 121, 0.18);
}

.feature-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--primary);
    background: rgba(84, 214, 255, 0.1);
    border: 1px solid rgba(84, 214, 255, 0.18);
    border-radius: 8px;
}

.wiki-item {
    position: relative;
    overflow: hidden;
    max-width: 940px;
    margin: 0 auto 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
        var(--surface-glass);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(84, 214, 255, 0.14);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    backdrop-filter: blur(10px);
}

.wiki-item:hover {
    transform: translateY(-2px);
    border-color: rgba(84, 214, 255, 0.45);
    background: rgba(24, 43, 69, 0.92);
}

.wiki-item h3 {
    color: var(--text);
    margin: 0 0 10px;
    font-size: 1.12rem;
}

.wiki-item p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.75;
}

.wiki-item a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 8px;
    padding: 8px 12px;
    color: var(--primary);
    background: rgba(88, 217, 255, 0.08);
    border: 1px solid rgba(88, 217, 255, 0.2);
    border-radius: 9px;
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.wiki-item a:hover,
.wiki-item a:focus-visible {
    color: #061018;
    background: var(--primary);
    border-color: var(--primary);
}

.command-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.command-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.command-chip:hover,
.command-chip:focus-visible {
    color: var(--text);
    border-color: rgba(84, 214, 255, 0.45);
    background: rgba(84, 214, 255, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.command-chip.copied {
    color: #07111f;
    background: var(--success);
    border-color: transparent;
}

.rules-section {
    background: rgba(7, 17, 31, 0.84);
}

.rules-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rule-card {
    min-height: 210px;
    border-top: 3px solid var(--accent);
}

.download-section {
    text-align: center;
    background:
        linear-gradient(180deg, rgba(13, 27, 46, 0.45), rgba(7, 17, 31, 0.9)),
        linear-gradient(120deg, transparent, rgba(84, 214, 255, 0.06), transparent);
}

.download-card {
    width: min(460px, 100%);
    background:
        linear-gradient(180deg, rgba(88, 217, 255, 0.12), transparent 45%),
        rgba(18, 35, 58, 0.96);
    border: 1px solid rgba(84, 214, 255, 0.26);
    padding: 34px;
    border-radius: var(--radius-lg);
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 54px rgba(24, 168, 223, 0.22);
}

.download-card h3 {
    color: var(--text);
    font-size: 1.45rem;
    margin: 0 0 10px;
}

.download-card p {
    color: var(--text-muted);
    margin: 10px 0;
    line-height: 1.6;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary), #7ee2ff);
    color: #06101d;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 900;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 18px;
    box-shadow: 0 10px 24px rgba(24, 168, 223, 0.2);
}

.download-btn:hover,
.download-btn:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 16px 32px rgba(24, 168, 223, 0.28);
    outline: none;
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
    filter: grayscale(0.35);
}

.download-btn[aria-disabled="true"]:hover,
.download-btn[aria-disabled="true"]:focus-visible {
    transform: none;
    background: var(--primary);
}

.mod-info {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.92rem;
}

.mod-info div {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 5px 0;
}

.mod-info dt,
.mod-info dd {
    margin: 0;
}

.faq-section {
    background: rgba(13, 27, 46, 0.5);
}

.faq-search {
    width: min(900px, 100%);
    margin: 0 auto 18px;
}

.faq-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.faq-search input {
    width: 100%;
    padding: 13px 16px;
    color: var(--text);
    background: var(--surface-glass);
    border: 1px solid rgba(84, 214, 255, 0.24);
    border-radius: var(--radius-md);
    font: inherit;
}

.faq-search input:focus-visible {
    border-color: var(--primary);
    outline: 2px solid rgba(84, 214, 255, 0.28);
    outline-offset: 2px;
}

.faq-empty {
    width: min(900px, 100%);
    margin: 0 auto 18px;
    color: var(--text-muted);
    text-align: center;
}

.faq-list {
    width: min(900px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-list details {
    background: var(--surface-glass);
    border: 1px solid rgba(84, 214, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--text);
    font-weight: 850;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-list summary:hover,
.faq-list summary:focus-visible {
    background: rgba(84, 214, 255, 0.08);
    outline: none;
}

.faq-list summary::marker {
    color: var(--primary);
}

.faq-list details[open] {
    border-color: rgba(84, 214, 255, 0.42);
    background: rgba(17, 31, 48, 0.92);
}

.faq-list p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--text-muted);
}

code {
    background: rgba(84, 214, 255, 0.1);
    border: 1px solid rgba(84, 214, 255, 0.22);
    padding: 3px 7px;
    border-radius: 5px;
    font-family: "Cascadia Code", "Courier New", monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.setup-steps {
    color: var(--text-muted);
    margin: 12px 0;
    padding-left: 20px;
    line-height: 1.8;
}

.setup-steps li {
    margin-bottom: 8px;
}

.setup-steps strong {
    color: var(--primary);
}

footer {
    text-align: center;
    padding: 36px 10%;
    color: var(--text-muted);
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.95), rgba(4, 10, 18, 0.98));
    font-size: 0.95rem;
    border-top: 1px solid rgba(84, 214, 255, 0.16);
}

footer span.muted {
    opacity: 0.65;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 12px;
        padding-inline: 24px;
    }

    .menu-toggle {
        display: inline-flex;
        order: 2;
        margin-left: 0;
    }

    .language-selector {
        order: 1;
        width: auto;
        margin-left: auto;
    }

    .nav-menu {
        order: 3;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 4px;
    }

    .site-nav.menu-open .nav-menu {
        display: flex;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .site-nav a {
        padding-inline: 8px;
        text-align: center;
    }

    .nav-actions,
    .nav-cta {
        width: 100%;
    }

    .nav-cta {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .hero {
        padding: 72px clamp(24px, 6vw, 64px);
        text-align: center;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        justify-content: center;
    }

    .hero-content {
        max-width: 640px;
        margin-inline: auto;
    }

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

    .hero-cockpit {
        width: min(100%, 560px);
        margin-inline: auto;
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .starter-flow,
    .feature-grid,
    .rules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobil GPU'larda çoklu blur katmanları pahalı olabildiği için koyu görünümü
       koruyup saydamlık efektlerini sadeleştir. */
    .site-nav,
    .hero-cockpit,
    .quick-card,
    .flow-step,
    .feature-card,
    .rule-card,
    .wiki-item,
    .download-card {
        backdrop-filter: none;
    }

    body::before {
        background-size: 56px 56px;
    }

    .site-nav {
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 14px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 4px;
    }

    .site-nav.menu-open .nav-menu {
        display: flex;
    }

    .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .site-nav a {
        text-align: center;
        padding-inline: 8px;
    }

    .nav-actions {
        width: 100%;
    }

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

    .language-selector {
        order: 2;
        width: 100%;
        margin-left: 0;
    }

    #languageSelect {
        width: 100%;
        min-width: unset;
    }

    .ip-box {
        width: 100%;
        flex-direction: column;
        padding: 16px;
    }

    .copy-text {
        width: 100%;
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero {
        text-align: center;
        padding: 60px 14px 58px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 640px;
        margin-inline: auto;
    }

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

    .hero-cockpit {
        width: min(100%, 500px);
        margin-inline: auto;
        padding: 16px;
    }

    .starter-flow,
    .feature-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        text-align: center;
        padding: 16px;
    }

    .map-frame {
        height: 48vh;
        min-height: 300px;
    }

    .flow-step,
    .feature-card,
    .rule-card,
    .wiki-item,
    .download-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .site-nav {
        padding-inline: 14px;
    }

    .hero {
        padding-top: 56px;
        padding-inline: 14px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 12vw, 2.45rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cockpit-header {
        display: grid;
        justify-content: stretch;
        text-align: center;
    }

    .world-preview {
        min-height: 170px;
    }

    .logo {
        font-size: 0.98rem;
    }

    .language-selector {
        order: 4;
        width: 100%;
    }

    .nav-menu {
        order: 3;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }

    .server-status {
        border-radius: 10px;
        align-items: stretch;
        width: 100%;
    }

    .refresh-status {
        width: 100%;
    }

    .wiki-item,
    .flow-step,
    .feature-card,
    .rule-card,
    .download-card {
        padding: 18px;
    }

    .mod-info div {
        display: block;
    }

    .command-chip {
        width: 100%;
        justify-content: space-between;
    }

    .map-frame {
        min-height: 260px;
    }
}

@media (max-width: 360px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }
}

/* Yüksek kontrast tercihinde koyu tema korunurken kart ve odak sınırları belirginleşir. */
@media (prefers-contrast: more) {
    :root {
        --text-muted: #cfdbeb;
        --border: rgba(170, 211, 245, 0.46);
        --focus-ring: #a8eeff;
    }

    .quick-card,
    .flow-step,
    .feature-card,
    .rule-card,
    .wiki-item,
    .download-card,
    .faq-list details {
        border-color: var(--border);
    }
}

/* Bazı bileşenlerin hover stili eski kurallarda odağı bastırıyordu. Odak
   halkasını en sonda tanımlamak, klavye ve yardımcı teknoloji kullanıcıları
   için her etkileşimli kontrolde aynı görünür işareti garanti eder. */
:where(a, button, select, summary):focus-visible {
    outline: 3px solid var(--focus-ring) !important;
    outline-offset: 3px;
}

/* Saydamlık azaltma tercihi, düşük güçlü cihazlarda da daha az GPU maliyeti
   ve daha okunaklı yüzeyler sağlar. Desteklemeyen tarayıcılar bu bloğu yok sayar. */
@media (prefers-reduced-transparency: reduce) {
    .site-nav,
    .hero-cockpit,
    .quick-card,
    .flow-step,
    .feature-card,
    .rule-card,
    .wiki-item,
    .download-card {
        backdrop-filter: none;
        background-color: var(--surface);
    }
}

@media (forced-colors: active) {
    :where(a, button, select, summary):focus-visible {
        outline-color: Highlight !important;
    }
}

/* Görsel hiyerarşi ve yüzey tutarlılığı */
:root {
    --border: rgba(148, 180, 213, 0.24);
    --surface-glass: rgba(12, 22, 34, 0.78);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.22);
    --radius-lg: 20px;
    --radius-md: 14px;
}

html {
    scroll-padding-top: 96px;
}

body {
    background:
        radial-gradient(ellipse at 12% 4%, rgba(88, 217, 255, 0.14), transparent 34rem),
        radial-gradient(ellipse at 90% 18%, rgba(167, 139, 250, 0.09), transparent 30rem),
        linear-gradient(180deg, #061018 0%, #0b1724 48%, #061018 100%);
}

body::before {
    background-size: 56px 56px;
    opacity: 0.62;
}

.site-nav {
    background: rgba(4, 12, 23, 0.92);
    border-bottom-color: rgba(148, 180, 213, 0.2);
}

.hero {
    background:
        radial-gradient(ellipse at 78% 40%, rgba(88, 217, 255, 0.1), transparent 34rem),
        linear-gradient(135deg, rgba(6, 16, 28, 0.98), rgba(9, 23, 38, 0.9));
}

.hero h1 {
    letter-spacing: -0.055em;
}

.section-heading {
    margin-bottom: clamp(28px, 4vw, 42px);
}

.section-heading span {
    margin-bottom: 14px;
    padding: 6px 11px;
    border: 1px solid rgba(88, 217, 255, 0.2);
    border-radius: 999px;
    background: rgba(88, 217, 255, 0.08);
    color: var(--primary);
    letter-spacing: 0.08em;
}

.section-heading h2 {
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 62ch;
    margin-inline: auto;
    line-height: 1.75;
}

.quick-grid {
    width: min(1100px, 100%);
    gap: 12px;
}

.quick-card,
.flow-step,
.feature-card,
.rule-card,
.wiki-item,
.download-card,
.faq-list details {
    border-color: var(--border);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.quick-card,
.flow-step,
.feature-card,
.rule-card,
.wiki-item {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 58%),
        var(--surface-glass);
}

.rule-card {
    min-height: 0;
    padding-top: 26px;
    border-top-width: 2px;
}

.rule-card strong {
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid rgba(152, 243, 111, 0.25);
    border-radius: 11px;
    background: rgba(152, 243, 111, 0.09);
    font-variant-numeric: tabular-nums;
}

.flow-step h3,
.feature-card h3,
.rule-card h3,
.wiki-item h3 {
    line-height: 1.35;
    text-wrap: balance;
}

.flow-step p,
.feature-card p,
.rule-card p,
.wiki-item p,
.faq-list p {
    line-height: 1.75;
}

.wiki-item {
    padding: clamp(20px, 3vw, 28px);
}

.wiki-item + .wiki-item {
    margin-top: 18px;
}

.map-frame {
    border-color: rgba(88, 217, 255, 0.34);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.connection-banner {
    border-color: var(--border);
}

.download-card {
    border-radius: 24px;
}

.faq-list details[open] {
    box-shadow: var(--shadow);
}

.faq-list summary {
    min-height: 60px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.refresh-status:disabled {
    cursor: wait;
    opacity: 0.66;
}

@media (hover: hover) and (pointer: fine) {
    .quick-card:hover,
    .flow-step:hover,
    .feature-card:hover,
    .rule-card:hover,
    .wiki-item:hover,
    .download-card:hover {
        border-color: rgba(88, 217, 255, 0.42);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
    }
}

@media (min-width: 901px) {
    .rules-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .map-section,
    .wiki-section,
    .starter-section,
    .rules-section,
    .download-section,
    .faq-section {
        padding-inline: clamp(20px, 5vw, 48px);
    }
}

@media (max-width: 480px) {
    .section-heading {
        margin-bottom: 26px;
    }

    .section-heading h2 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .map-section,
    .wiki-section,
    .starter-section,
    .rules-section,
    .download-section,
    .faq-section {
        padding-inline: 16px;
    }

    .rule-card {
        padding: 20px;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .site-nav {
    position: relative;
    top: auto;
    z-index: auto;
}
