@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --text:    #1c1c1e;
  --muted:   #6c6c70;
  --ios-blue:   #007aff;
  --ios-green:  #34c759;
  --ios-orange: #ff9500;
  --ios-red:    #ff3b30;
  --ios-purple: #af52de;
  --glass:        rgba(255,255,255,0.13);
  --glass-mid:    rgba(255,255,255,0.22);
  --glass-strong: rgba(255,255,255,0.34);
  --glass-border: rgba(255,255,255,0.55);
  --glass-spec:   inset 0 1.5px 0 rgba(255,255,255,0.68);
  --glass-blur:   blur(38px) saturate(200%) brightness(108%);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.14);
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background-color: #f0f4f9;
  background-image:
    radial-gradient(ellipse 900px 600px at 0% 0%, rgba(0,122,255,0.13), transparent 54%),
    radial-gradient(ellipse 700px 500px at 100% 5%, rgba(52,199,89,0.11), transparent 52%),
    radial-gradient(ellipse 600px 440px at 55% 98%, rgba(255,149,0,0.09), transparent 50%),
    radial-gradient(ellipse 500px 400px at 12% 80%, rgba(175,82,222,0.08), transparent 50%),
    linear-gradient(170deg, #f6f9fd 0%, #eef2f8 55%, #f1f5fa 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
}

.bg-orb {
  position: fixed; border-radius: 50%;
  filter: blur(72px); opacity: 0.52;
  z-index: -1; pointer-events: none;
  animation: float 13s ease-in-out infinite;
}
.orb-a {
  width:52vmax; height:52vmax; top:-22vmax; left:-18vmax;
  background: radial-gradient(circle, rgba(200,220,255,0.75), rgba(150,190,255,0.18));
}
.orb-b {
  width:46vmax; height:46vmax; bottom:-20vmax; right:-16vmax;
  background: radial-gradient(circle, rgba(190,245,210,0.65), rgba(130,215,170,0.15));
  animation-delay: 2s;
}

.site-header, main, .site-footer { width: min(1080px,88vw); margin:0 auto; }

.site-header {
  margin-top: 18px; padding: 10px 14px;
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-spec), var(--shadow-md);
  display: flex; justify-content: center; align-items: center;
  position: sticky; top: 14px; z-index: 50; overflow: visible;
}

nav { display: flex; gap: 6px; align-items: center; overflow: visible; }

nav a {
  color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem; font-weight: 500;
  transition: all 0.22s ease;
}
nav a:hover, nav a.active {
  color: var(--text);
  background: var(--glass-mid);
  border-color: var(--glass-border);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.65);
}

.hero, .section, .card, .doc-head, .doc-block, .feature-list li, .search-box input, .status-item {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-spec), var(--shadow-md);
}

main { padding: 40px 0 64px; }

.hero {
  position: relative; overflow: hidden;
  border-radius: 36px;
  padding: clamp(44px,9vw,120px);
}
.hero::after {
  content: ""; position: absolute;
  right: -60px; top: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(200,220,255,0.22) 60%, transparent 72%);
  filter: blur(4px); pointer-events: none;
}
.hero-compact { padding-bottom: 36px; }

.hero-with-cta {
  min-height: clamp(220px, 34vh, 340px);
  padding: clamp(14px,4vw,30px) clamp(12px,3.5vw,30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background: rgba(8, 14, 24, 0.07) !important;
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 8px 20px rgba(0,0,0,0.12) !important;
}

.hero-with-cta::after {
  display: none;
}

.survival-hero {
  font-size: clamp(4.5rem,13vw,10rem);
  font-weight: 800;
  color: var(--ios-green);
  letter-spacing: -0.05em;
  line-height: 1; margin: 0 0 12px;
  text-shadow: 0 0 50px rgba(52,199,89,0.35), 0 0 100px rgba(52,199,89,0.16);
}

.eyebrow {
  color: var(--ios-blue); text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 600; margin: 0 0 10px;
}
h1,h2,h3 { margin:0; letter-spacing:-0.03em; line-height:1.06; }
h1 { font-size: clamp(1.45rem,4.3vw,2.9rem); font-weight:700; }
h2 { font-size: clamp(1.4rem,2.4vw,2.1rem); font-weight:650; }
h3 { font-size: 1.1rem; font-weight:640; }
.lead { color:var(--muted); font-size:1.04rem; max-width:62ch; margin-top:14px; }

.hero-title-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin: 0;
}

.hero-logo {
  display: block;
  height: 56px;
  width: auto;
  max-height: none;
  object-fit: contain;
  transform: scale(1.75);
  transform-origin: center center;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.hero-title-fallback {
  display: none;
}

.hero-title-brand.logo-fallback .hero-title-fallback {
  display: inline;
}

.hero-actions { display:flex; gap:10px; margin-top:24px; flex-wrap:wrap; }

.hero-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(10, 16, 30, 0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px) saturate(120%);
}

.hero-with-cta .hero-cta {
  position: static;
  transform: none;
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(52,199,89,0.04);
  border: 1px solid rgba(52,199,89,0.36);
  color: #62ef97;
  font-family: "SF Mono", Consolas, monospace;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 0 14px rgba(52,199,89,0.10);
}

.hero-cta .btn {
  min-width: 98px;
  text-align: center;
}

.hero-with-cta .btn-primary {
  background: rgba(0,122,255,0.55);
  border-color: rgba(255,255,255,0.40);
  backdrop-filter: blur(8px) saturate(130%);
}

.hero-with-cta .btn-copy-clear {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.38);
  color: #eef4ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.hero-with-cta .btn-copy-clear:hover {
  background: rgba(255,255,255,0.16);
}

.hero-with-cta .btn-primary:hover {
  background: rgba(0,122,255,0.72);
}

.scene-showcase {
  position: relative;
  overflow: hidden;
}

.scene-showcase::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 140%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(114, 198, 255, 0.25), transparent 55%),
    radial-gradient(ellipse at 82% 24%, rgba(255, 156, 77, 0.20), transparent 54%);
}

.scene-lead {
  margin-top: 6px;
}

.scene-wrap {
  position: relative;
  margin-top: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.26);
  background: linear-gradient(160deg, rgba(8, 18, 32, 0.56), rgba(13, 10, 8, 0.38));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 16px 32px rgba(0,0,0,0.20);
  min-height: clamp(340px, 56vh, 560px);
}

#xyn3dCanvas {
  width: 100%;
  height: clamp(340px, 56vh, 560px);
  display: block;
  cursor: grab;
  touch-action: none;
}

#xyn3dCanvas:active {
  cursor: grabbing;
}

.hero-with-cta .btn-ghost {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.34);
  color: #eef4ff;
  backdrop-filter: blur(8px) saturate(120%);
}

.hero-with-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.18);
}

.btn {
  display: inline-block; text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34,1.3,0.64,1);
}

.btn-primary {
  background: rgba(0,122,255,0.84);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff; border-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.42), 0 6px 22px rgba(0,122,255,0.30);
}
.btn-primary:hover {
  background: rgba(0,122,255,0.96);
  transform: translateY(-2px) scale(1.03);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.50), 0 10px 28px rgba(0,122,255,0.36);
}

.btn-ghost {
  background: var(--glass-mid);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  color: var(--text); border-color: var(--glass-border);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.60);
}
.btn-ghost:hover { background: var(--glass-strong); transform: translateY(-2px) scale(1.03); }

.btn-green {
  background: rgba(52,199,89,0.82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff; border-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.38), 0 6px 22px rgba(52,199,89,0.28);
}
.btn-green:hover {
  background: rgba(52,199,89,0.96); transform: translateY(-2px) scale(1.03);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.48), 0 10px 28px rgba(52,199,89,0.36);
}

.section { margin-top: 22px; border-radius: 32px; padding: clamp(20px,3.5vw,36px); }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:18px; }
.section-head a, .card-link, .site-footer a { color:var(--ios-blue); text-decoration:none; font-weight:600; font-size:0.9rem; }

.card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; }
.card { border-radius: 26px; padding: 20px; transition: transform 0.24s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.24s ease; }
.card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--glass-spec), var(--shadow-lg); }
.card p { color: var(--muted); }

.tag {
  display: inline-block; font-size: 0.70rem; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 700; margin-bottom: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(52,199,89,0.12); color: #1e9e40; border: 1px solid rgba(52,199,89,0.25);
}
.tag-blue   { background:rgba(0,122,255,0.10);  color:var(--ios-blue);  border-color:rgba(0,122,255,0.22); }
.tag-orange { background:rgba(255,149,0,0.10);  color:#b86d00;          border-color:rgba(255,149,0,0.22); }
.tag-red    { background:rgba(255,59,48,0.10);  color:#c4281e;          border-color:rgba(255,59,48,0.22); }
.tag-purple { background:rgba(175,82,222,0.10); color:#7e33b0;          border-color:rgba(175,82,222,0.22); }

.split { display:grid; gap:16px; grid-template-columns:1.3fr 1fr; }
.feature-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.feature-list li { border-radius:18px; padding:12px 16px; }

.status-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.status-item { border-radius:24px; padding:18px; }
.status-item h3 { font-size:1rem; margin-bottom:6px; }
.status-item p { font-size:0.88rem; color:var(--muted); margin:0 0 12px; }
.status-pill { display:inline-block; font-size:0.74rem; font-weight:700; padding:4px 12px; border-radius:999px; letter-spacing:0.06em; }
.is-ok   { background:rgba(52,199,89,0.12); color:#1e9e40; border:1px solid rgba(52,199,89,0.30); }
.is-warn { background:rgba(255,149,0,0.12); color:#b86d00; border:1px solid rgba(255,149,0,0.30); }

.search-box { margin-top:18px; }
.search-box input { width:min(600px,100%); border-radius:18px; color:var(--text); padding:12px 16px; font:inherit; outline:none; }
.search-box input::placeholder { color:#999; }
.search-box input:focus { border-color:rgba(0,122,255,0.45); box-shadow: var(--glass-spec), 0 0 0 3px rgba(0,122,255,0.12); }

.hidden { display:none; }
.empty-state { color:var(--muted); margin-top:16px; }

/* LEFT SIDEBAR doc layout */
.doc-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}
.doc-sidebar {
  position: sticky; top: 90px;
  border-radius: 28px; padding: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-spec), var(--shadow-sm);
  display: flex; flex-direction: column; gap: 3px;
}
.sidebar-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--muted); padding: 8px 12px 4px;
}
.sidebar-link {
  display: block; color: var(--muted); text-decoration: none;
  padding: 9px 13px; border-radius: 14px;
  font-size: 0.92rem; font-weight: 500;
  border: 1px solid transparent; transition: all 0.18s ease;
}
.sidebar-link:hover {
  color: var(--text); background: var(--glass-mid);
  border-color: var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.sidebar-link.active {
  color: var(--ios-green); background: rgba(52,199,89,0.10);
  border-color: rgba(52,199,89,0.28); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.doc-content { display:grid; gap:14px; }
.doc-page { margin-top:22px; display:grid; gap:14px; }
.doc-head, .doc-block { border-radius:26px; padding:22px; }
.doc-block h2 { font-size:1.2rem; margin-bottom:12px; }
.doc-block pre {
  margin:0; padding:14px; border-radius:16px;
  background:rgba(255,255,255,0.55); border:1px solid rgba(255,255,255,0.65);
  overflow-x:auto; font-size:0.9rem;
}
.doc-block ol, .doc-block ul { padding-left:20px; color:var(--muted); line-height:1.8; }

.site-footer { color:var(--muted); font-size:0.9rem; padding:0 0 36px; }

.reveal { opacity:0; transform:translateY(12px) scale(0.994); animation: revealIn 0.72s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal:nth-child(2) { animation-delay:0.07s; }
.reveal:nth-child(3) { animation-delay:0.14s; }
.reveal:nth-child(4) { animation-delay:0.21s; }

@keyframes revealIn { to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes float { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(20px) rotate(2deg); } }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns:1fr; }
  .doc-sidebar { position:static; flex-direction:row; flex-wrap:wrap; }
  .sidebar-label { width:100%; }
}
@media (max-width: 840px) {
  .site-header { position:static; }
  .split { grid-template-columns:1fr; }
  .section-head { flex-direction:column; align-items:flex-start; }
  h1 { max-width:none; }
}

/* Shared Minecraft shader theme */
body.minecraft-theme {
  position: relative;
  isolation: isolate;
  background: #070f1b;
  color: #ecf4ff;
}

body.minecraft-theme::before {
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(transparent, rgba(0,0,0,0.36));
  background-size: 28px 28px, 100% 100%;
  z-index: -2;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.minecraft-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(180deg, rgba(5,12,24,0.20), rgba(6,11,18,0.68)),
    url("bg-art.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.minecraft-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 12%, rgba(255,204,86,0.22), transparent 45%),
    radial-gradient(ellipse at 80% 24%, rgba(125,185,255,0.14), transparent 46%),
    linear-gradient(180deg, rgba(10,21,41,0.10), rgba(3,8,14,0.46));
}

body.minecraft-theme .site-header {
  background: rgba(10, 16, 26, 0.56);
  border-color: rgba(255,255,255,0.18);
  z-index: 5000;
}

body.minecraft-theme nav a { color: rgba(255,255,255,0.70); }

body.minecraft-theme nav a:hover,
body.minecraft-theme nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.26);
}

body.minecraft-theme .hero,
body.minecraft-theme .section,
body.minecraft-theme .card,
body.minecraft-theme .doc-head,
body.minecraft-theme .doc-block,
body.minecraft-theme .feature-list li,
body.minecraft-theme .status-item,
body.minecraft-theme .doc-sidebar,
body.minecraft-theme .search-box input {
  background: rgba(10, 20, 34, 0.58);
  border-color: rgba(255,255,255,0.17);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.14), 0 16px 48px rgba(0,0,0,0.38);
}

body.minecraft-theme h1,
body.minecraft-theme h2,
body.minecraft-theme h3 { color: #fff; }

body.minecraft-theme .lead,
body.minecraft-theme .card p,
body.minecraft-theme .doc-block p,
body.minecraft-theme .doc-block li,
body.minecraft-theme .empty-state,
body.minecraft-theme .site-footer,
body.minecraft-theme .search-box input,
body.minecraft-theme .sidebar-label,
body.minecraft-theme .sidebar-link,
body.minecraft-theme .status-item p {
  color: rgba(230,241,255,0.74);
}

body.minecraft-theme .search-box input::placeholder {
  color: rgba(230,241,255,0.55);
}

body.minecraft-theme .site-footer a,
body.minecraft-theme .section-head a,
body.minecraft-theme .card-link {
  color: #6de394;
}

body.minecraft-theme .eyebrow { color: #6de394; }

body.minecraft-theme .btn-ghost {
  color: #ecf4ff;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.32);
}

body.minecraft-theme .btn-ghost:hover {
  background: rgba(255,255,255,0.20);
}

/* Wiki subtabs */
.tabs {
  border-radius: 22px;
}

/* ── Language Switcher ────────────────────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.18);
  transition: all 0.22s ease;
  user-select: none;
  white-space: nowrap;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

.lang-btn .lang-flag { font-size: 1.05rem; line-height: 1; }

.lang-btn .lang-arrow {
  font-size: 0.55rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
  margin-left: 1px;
}

.lang-switcher.open .lang-btn .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: rgba(12, 20, 34, 0.96);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
  z-index: 999;
}

.lang-switcher.open .lang-dropdown {
  display: block;
  animation: langFadeIn 0.18s cubic-bezier(0.22,1,0.36,1);
}

@keyframes langFadeIn {
  from { opacity:0; transform:translateY(-6px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(230,241,255,0.75);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: rgba(255,255,255,0.09); color: #fff; }
.lang-option.active { color: #6de394; font-weight: 700; }
.lang-option .lang-flag { font-size: 1.1rem; }

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: inherit;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.18);
}

.tab-btn.active {
  background: rgba(52,199,89,0.22);
  border-color: rgba(52,199,89,0.48);
  color: #d9ffe7;
  box-shadow: 0 0 18px rgba(52,199,89,0.22);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 840px) {
  .grid-two,
  .grid-three {
    grid-template-columns: 1fr;
  }

  .hero-with-cta {
    min-height: auto;
    padding: clamp(12px, 4.2vw, 20px) clamp(8px, 3.5vw, 12px);
    gap: 8px;
  }

  .hero-with-cta .hero-cta {
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .hero-logo {
    height: 44px;
    transform: scale(1.55);
  }

  .scene-wrap,
  #xyn3dCanvas {
    min-height: 290px;
    height: 290px;
  }
}

.split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .split-two {
    grid-template-columns: 1fr;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── Shop Warning Overlay ────────────────────────────────────────────── */
.shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(12, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.shop-overlay.show {
  opacity: 1;
  visibility: visible;
}

.shop-overlay-text {
  color: #ff2d2d;
  text-align: center;
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.08;
  text-shadow:
    0 0 10px rgba(255, 45, 45, 0.45),
    0 0 24px rgba(255, 45, 45, 0.42),
    0 0 50px rgba(255, 45, 45, 0.36);
  padding: 0 18px;
}

/* Survival rank permission table */
.rank-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 28, 0.45);
  -webkit-overflow-scrolling: touch;
}

.rank-perm-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.rank-perm-table th,
.rank-perm-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.rank-perm-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.rank-perm-table th:first-child,
.rank-perm-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(10, 16, 30, 0.96);
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.18);
}

.rank-perm-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.rank-perm-table tbody tr:hover td:first-child {
  background: rgba(12, 18, 34, 0.98);
}

.cmd-label {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.78rem;
  color: #b8d4ff;
}

.rank-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
}

.rank-player { color: #cbd5e1; }
.rank-legacy { color: #b91c1c; }
.rank-premium { color: #f87171; }
.rank-cloud { color: #86efac; }
.rank-reaper { color: #fb923c; }
.rank-ethereal { color: #e879f9; }
.rank-celestial { color: #22d3ee; }
.rank-divine { color: #c4b5fd; }

.perm-yes {
  color: #4ade80;
  font-weight: 700;
}

.perm-no {
  color: rgba(248, 113, 113, 0.72);
  font-weight: 600;
}

.perm-num {
  color: #93c5fd;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.doc-block code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Supporter shop ──────────────────────────────────────────────────── */
.price-card { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.price-value { font-size:2.2rem; font-weight:800; letter-spacing:-0.02em; }
.price-note { color:var(--muted); font-size:0.9rem; }

.stock-block { margin-top:16px; }
.stock-bar { height:10px; border-radius:999px; background:rgba(0,0,0,0.08); overflow:hidden; }
.stock-bar-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,var(--ios-green),var(--ios-blue)); transition:width 0.3s ease; }
.stock-text { margin:8px 0 0; font-size:0.88rem; font-weight:600; color:var(--muted); }
.stock-block.sold-out .stock-bar-fill { background:var(--ios-red); }
.stock-block.sold-out .stock-text { color:#c4281e; }

.pay-card { border-radius:20px; padding:16px 18px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.pay-card-label { font-size:0.78rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted); margin:0 0 4px; }
.pay-card-value { font-family:"SF Mono", Consolas, monospace; font-size:1rem; font-weight:600; word-break:break-all; }

.btn.disabled, a.btn[aria-disabled="true"] { opacity:0.45; pointer-events:none; filter:grayscale(0.4); }

/* ── Shop page (redesign 2026-09-20) - everything scoped to body.shop-page, nothing else on the site changes ── */
body.shop-page main.shop { margin-top: 24px; display: grid; gap: 56px; padding-bottom: 32px; }
.shop-page main.shop a:not(.btn) { color: #9cc8ff; text-decoration: underline; text-decoration-color: rgba(156,200,255,0.35); text-underline-offset: 3px; }
.shop-page main.shop a:not(.btn):hover { text-decoration-color: currentColor; }
.shop-page main.shop code { font-family: "SF Mono", Consolas, monospace; font-size: 0.86em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,0.10); color: #f2f4f8; }

.shop-hero { text-align: center; padding: 52px 0 4px; }
.shop-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,204,86,0.12); border: 1px solid rgba(255,204,86,0.30); color: #ffd680; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.shop-hero h1 { margin: 18px 0 14px; font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.03em; color: #fff; }
.shop-lead { max-width: 560px; margin: 0 auto; color: #c3cad6; font-size: 1.1rem; line-height: 1.55; }
.shop-star { color: #ffcc56; }
.shop-hero-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.shop-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.shop-chip { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #dfe5ee; font-size: 0.85rem; }

.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.shop-col { display: grid; gap: 52px; min-width: 0; }
.shop-section h2 { margin: 0 0 18px; font-size: 1.45rem; letter-spacing: -0.02em; color: #fff; }

.shop-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shop-feature { padding: 20px; border-radius: 18px; background: rgba(10,14,26,0.58); border: 1px solid rgba(255,255,255,0.09); backdrop-filter: blur(18px); }
.shop-feature svg { width: 26px; height: 26px; color: #ffd680; margin-bottom: 12px; display: block; }
.shop-feature h3 { margin: 0 0 4px; font-size: 1.02rem; color: #fff; }
.shop-feature p { margin: 0; color: #b6bfcd; font-size: 0.93rem; line-height: 1.45; }

.shop-preview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.mc-chat, .mc-menu { border-radius: 16px; background: rgba(6,8,14,0.72); border: 1px solid rgba(255,255,255,0.09); padding: 16px; }
.mc-chat { font-family: "SF Mono", Consolas, monospace; font-size: 0.82rem; line-height: 2.1; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.mc-lv { color: #55FF55; } .mc-rank { color: #aaaaaa; } .mc-sep { color: #666; }
.mc-menu-title { color: #cfd6e2; font-size: 0.8rem; letter-spacing: 0.06em; margin-bottom: 12px; }
.mc-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mc-swatches i { aspect-ratio: 1; border-radius: 6px; border: 1px solid rgba(255,255,255,0.18); }
.mc-swatches i.on { outline: 2px solid #fff; outline-offset: 2px; }
.mc-menu-row { display: flex; gap: 8px; margin-top: 12px; }
.mc-toggle { flex: 1; text-align: center; padding: 7px 4px; border-radius: 8px; background: rgba(255,204,86,0.14); color: #ffd680; font-size: 0.74rem; }
.mc-toggle.off { background: rgba(255,255,255,0.08); color: #b6bfcd; }
.shop-note { margin: 14px 0 0; color: #98a2b3; font-size: 0.9rem; }

.shop-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shop-steps li { padding: 20px; border-radius: 18px; background: rgba(10,14,26,0.58); border: 1px solid rgba(255,255,255,0.09); }
.shop-step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0a84ff; color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.shop-steps h3 { margin: 0 0 4px; font-size: 1.02rem; color: #fff; }
.shop-steps p { margin: 0; color: #b6bfcd; font-size: 0.93rem; line-height: 1.45; }

.shop-use { margin: 0; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #c3cad6; font-size: 0.95rem; }
.shop-use strong { color: #fff; }

.shop-wall-empty { margin: 0; color: #98a2b3; }
.shop-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-wall li { padding: 7px 14px; border-radius: 999px; background: rgba(255,204,86,0.12); border: 1px solid rgba(255,204,86,0.28); color: #ffe3a3; }

.shop-legal { color: #98a2b3; font-size: 0.86rem; }
.shop-legal summary { cursor: pointer; color: #aab3c2; }
.shop-legal p { margin: 10px 0 0; line-height: 1.6; }

.shop-aside { position: sticky; top: 22px; }
.shop-buy { padding: 26px; border-radius: 22px; background: rgba(10,14,26,0.72); border: 1px solid rgba(255,255,255,0.13); backdrop-filter: blur(24px); box-shadow: 0 24px 64px rgba(0,0,0,0.35); }
.shop-buy-label { margin: 0 0 10px; color: #ffd680; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.shop-buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-buy .price-value { color: #fff; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.shop-buy .price-note { color: #98a2b3; font-size: 0.85rem; }
.shop-buy .stock-bar { background: rgba(255,255,255,0.12); }
.shop-buy .stock-text { color: #dfe5ee; }
.shop-buy .stock-block.sold-out .stock-text { color: #ff8a80; }
.shop-buy-until { margin: 6px 0 20px; color: #98a2b3; font-size: 0.85rem; }
.shop-buy-btn { display: block; width: 100%; text-align: center; box-sizing: border-box; margin-top: 10px; }
.shop-iban { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.10); color: #aab3c2; font-size: 0.9rem; }
.shop-iban summary { cursor: pointer; }
.shop-iban .pay-card-label { color: #98a2b3; margin: 12px 0 4px; }
.shop-iban .pay-card-value { color: #fff; font-size: 0.98rem; margin: 0; }
.shop-iban-owner { margin: 4px 0 10px; color: #98a2b3; font-size: 0.82rem; }
.shop-buy-list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,0.10); display: grid; gap: 8px; color: #b6bfcd; font-size: 0.88rem; }
.shop-buy-list li::before { content: "✓"; color: #34c759; font-weight: 700; margin-right: 8px; }

@media (max-width: 920px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-aside { position: static; order: -1; }
  .shop-steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shop-features, .shop-preview { grid-template-columns: 1fr; }
  body.shop-page main.shop { gap: 40px; }
}

/* ── Homepage slimming (2026-09-20): slim one-row strips + one quiet facts line ── */
.hero-meta { margin: 14px 0 0; color: rgba(255,255,255,0.55); font-size: 0.85rem; text-align: center; }
.discord-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.discord-strip h2 { margin: 0 0 4px; }
.discord-strip .lead { margin: 0; }

/* ── Two-language content (2026-09-20): every text exists as <... data-l="en"> and <... data-l="de">; the active
   content language is set on <html data-content-lang> by i18n.js (and by a tiny inline script before first paint) ── */
html[data-content-lang="de"] [data-l="en"], html[data-content-lang="de"] [data-l="pl"],
html[data-content-lang="pl"] [data-l="en"], html[data-content-lang="pl"] [data-l="de"],
html:not([data-content-lang="de"]):not([data-content-lang="pl"]) [data-l="de"],
html:not([data-content-lang="de"]):not([data-content-lang="pl"]) [data-l="pl"] { display: none !important; }

/* ── Homepage, Apple-style (2026-09-20): big type, the IP is the button, large mode tiles. scoped to body.home-page ── */
body.home-page main.home { margin-top: 12px; display: grid; gap: 120px; padding-bottom: 60px; }
.home-hero { text-align: center; padding: 64px 0 0; }
.home-eyebrow { margin: 0; color: rgba(255,255,255,0.6); font-size: 1rem; letter-spacing: 0.02em; }
.home-logo { margin: 18px 0 0; }
.home-logo .hero-logo { width: min(560px, 82%); height: auto; filter: drop-shadow(0 12px 40px rgba(0,0,0,0.45)); }
.home-tagline { margin: 26px 0 0; font-size: clamp(1.6rem, 4.6vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.home-sub { margin: 8px 0 0; color: rgba(255,255,255,0.65); font-size: 1.15rem; }
.ip-chip { margin-top: 34px; display: inline-flex; align-items: center; gap: 14px; padding: 16px 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.10); color: #fff; font: inherit; font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; cursor: pointer; backdrop-filter: blur(22px); box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.ip-chip:hover { transform: scale(1.03); background: rgba(255,255,255,0.16); }
.ip-chip:active { transform: scale(0.98); }
.ip-chip:focus-visible { outline: 3px solid #0a84ff; outline-offset: 4px; }
.ip-chip-icon { width: 1.1em; height: 1.1em; opacity: 0.75; }
.ip-chip .ip-icon-done { display: none; color: #34c759; opacity: 1; }
.ip-chip.copied { border-color: rgba(52,199,89,0.6); }
.ip-chip.copied .ip-icon-copy { display: none; }
.ip-chip.copied .ip-icon-done { display: block; }
.ip-hint { margin: 14px 0 0; min-height: 1.3em; color: rgba(255,255,255,0.55); font-size: 0.92rem; }
.ip-hint-done { display: none; color: #34c759; }
.ip-chip.copied + .ip-hint .ip-hint-idle { display: none; }
.ip-chip.copied + .ip-hint .ip-hint-done { display: inline; }
.home-hero .hero-meta { margin-top: 6px; color: rgba(255,255,255,0.45); }

.home-section h2 { margin: 0 0 32px; text-align: center; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.035em; color: #fff; }
.mode-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mode-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; padding: 30px; border-radius: 30px; overflow: hidden; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 24px 60px rgba(0,0,0,0.35); transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease; }
.mode-tile:hover { transform: translateY(-6px) scale(1.012); box-shadow: 0 34px 80px rgba(0,0,0,0.45); }
.tile-survival { background: radial-gradient(120% 90% at 20% 0%, rgba(52,199,89,0.55), rgba(8,20,16,0.95) 70%); }
.tile-bedwars { background: radial-gradient(120% 90% at 20% 0%, rgba(255,149,0,0.6), rgba(24,12,6,0.95) 70%); }
.tile-permdeath { background: radial-gradient(120% 90% at 20% 0%, rgba(255,59,48,0.6), rgba(22,8,14,0.95) 70%); }
.mode-label { position: absolute; top: 26px; left: 30px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.mode-tile h3 { margin: 0 0 8px; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; }
.mode-tile p { margin: 0 0 18px; color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.4; }
.mode-more { color: #64b5ff; font-weight: 600; font-size: 0.98rem; }
.mode-soon { margin: 22px 0 0; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.95rem; }

.join-switch { display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto 30px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.join-tab { border: 0; background: transparent; color: rgba(255,255,255,0.7); font: inherit; font-weight: 600; padding: 9px 26px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.join-tab.active { background: #fff; color: #111; }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.join-steps li { padding: 28px; border-radius: 26px; background: rgba(10,14,26,0.6); border: 1px solid rgba(255,255,255,0.10); backdrop-filter: blur(18px); }
.join-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0a84ff; color: #fff; font-weight: 700; margin-bottom: 16px; }
.join-steps h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.02em; color: #fff; }
.join-steps p { margin: 0; color: rgba(255,255,255,0.7); }

.home-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-link { display: block; padding: 26px; border-radius: 26px; background: rgba(10,14,26,0.6); border: 1px solid rgba(255,255,255,0.10); backdrop-filter: blur(18px); color: #fff; text-decoration: none; transition: transform .25s ease, background .25s ease; }
.home-link:hover { transform: translateY(-4px); background: rgba(20,28,48,0.75); }
.home-link h3 { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: -0.02em; }
.home-link p { margin: 0 0 14px; color: rgba(255,255,255,0.68); font-size: 0.97rem; }

@media (max-width: 980px) {
  .mode-tiles, .join-steps { grid-template-columns: 1fr; }
  .mode-tile { min-height: 260px; }
  .home-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home-page main.home { gap: 84px; }
}
@media (max-width: 560px) {
  .home-links { grid-template-columns: 1fr; }
  .home-hero { padding-top: 36px; }
}

/* ── Wiki hub (2026-09-20) ── */
.wiki-hub { display: grid; gap: 64px; margin-top: 36px; }
.wiki-hub-section h2 { margin: 0 0 6px; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; color: #fff; }
.wiki-hub-sub { margin: 0 0 22px; color: rgba(255,255,255,0.6); }
.home-logo { display: block; text-align: center; }
.home-logo .hero-logo { display: block; margin: 0 auto; transform: none; height: auto; max-width: 100%; width: min(560px, 82%); }
.home-logo .hero-title-fallback { display: none; font-size: clamp(2.4rem, 8vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.home-logo.logo-fallback .hero-title-fallback { display: inline; }

/* inline links inside wiki / rules / legal text (2026-09-20) */
.doc-content p a:not(.btn), .doc-content li a:not(.btn), .doc-block p a:not(.btn), .doc-block li a:not(.btn), .doc-head p a:not(.btn) {
  color: #6cb6ff;
  text-decoration: underline;
  text-decoration-color: rgba(108, 182, 255, 0.4);
  text-underline-offset: 3px;
}
.doc-content p a:not(.btn):hover, .doc-content li a:not(.btn):hover, .doc-block p a:not(.btn):hover, .doc-block li a:not(.btn):hover, .doc-head p a:not(.btn):hover {
  color: #a5d2ff;
  text-decoration-color: currentColor;
}

.ip-hint-done { visibility: visible; }

/* hero: version line sits right under the IP; the "copied" note floats below it (no reserved gap) */
.home-hero .ip-hint { margin: 0; min-height: 0; height: 0; position: relative; }
.home-hero .ip-hint .ip-hint-done { position: absolute; left: 0; right: 0; top: 3.2em; }
.home-hero .hero-meta { margin-top: 14px; }

/* legal links live in the footer only */
.footer-legal { margin: 8px 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: #fff; }

/* nav: Home hard left, language switch hard right, the rest centred between them */
.site-header nav { width: 100%; }
.site-header nav > a:first-child { margin-right: auto; }
.site-header nav > .lang-switcher { margin-left: auto; }
@media (max-width: 900px) {
  .site-header nav { flex-wrap: nowrap; justify-content: flex-start; gap: 2px; }
}
@media (max-width: 560px) {
  .site-header { padding: 8px 8px; }
  .site-header nav a { padding: 7px 9px; font-size: 0.85rem; }
}
.home-hero .home-sub { margin-top: 20px; }

/* 4th tile: Zonelimit, in maintenance (not clickable) */
.mode-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile-zonelimit { background: radial-gradient(120% 90% at 20% 0%, rgba(142,142,147,0.4), rgba(14,14,18,0.95) 70%); cursor: default; }
.tile-zonelimit h3 { color: rgba(255,255,255,0.7); margin-bottom: 0; }
.tile-zonelimit:hover { transform: none; box-shadow: none; }
.mode-tile { padding: 26px; }
.mode-label { left: 26px; }
@media (max-width: 1180px) { .mode-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .mode-tiles { grid-template-columns: 1fr; } }
.tile-zonelimit { min-height: 360px; }
@media (max-width: 1180px) { .tile-zonelimit { min-height: 260px; } }
.home-hero .home-eyebrow { color: #fff; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.04em; text-shadow: 0 2px 14px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.8); }
.home-hero .hero-meta, .home-hero .home-sub { text-shadow: 0 2px 12px rgba(0,0,0,0.85); }
.home-hero .hero-meta { color: rgba(255,255,255,0.72); }
.home-hero { position: relative; isolation: isolate; }
.home-hero .home-sub { color: rgba(255,255,255,0.85); }
html, body { overflow-x: clip; }

/* compact hero: much less empty space above/left of the title */
.hero.hero-compact { padding: clamp(26px, 3.6vw, 46px) clamp(24px, 4.5vw, 60px) 30px; }
main { padding-top: 32px; }
main { padding-top: 46px; }

.wiki-hub-section.is-off { display: none; }
.wiki-hub { margin-top: 28px; }

/* symmetric cards: equal height per row, the action link always sits on the same line at the bottom */
.card { display: flex; flex-direction: column; }
.card > .card-link { margin-top: auto; align-self: flex-start; }
.card > p:last-of-type:not(:only-child) { margin-bottom: 14px; }
.home-link { display: flex; flex-direction: column; }
.home-link .mode-more, .home-link > span:last-child { margin-top: auto; }

/* wiki hub grids: centred rows (an incomplete last row stays symmetric), tags never stretch */
.wiki-hub .card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.wiki-hub .card-grid > .card { flex: 0 0 calc((100% - 3 * 14px) / 4); min-width: 230px; }
@media (max-width: 1100px) { .wiki-hub .card-grid > .card { flex-basis: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 820px)  { .wiki-hub .card-grid > .card { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 520px)  { .wiki-hub .card-grid > .card { flex-basis: 100%; } }
.card > .tag { align-self: flex-start; }

h1, h2, h3 { font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; letter-spacing: -0.03em; }
button, input, select, textarea { font-family: inherit; }
.mode-tile h3 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); }

/* tile titles scale with the tile itself (never cut off, on any screen) */
.mode-tile { container-type: inline-size; }
.mode-tile h3 { font-size: clamp(1.25rem, 9cqw, 2.1rem); overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.mode-tile p { font-size: clamp(0.92rem, 4.4cqw, 1.05rem); }
@media (max-width: 700px) { .mode-tile { padding: 22px; } .mode-label { left: 22px; top: 22px; } }

/* tiles: label, title, text and link stacked tightly (no big empty gap); link pinned to the bottom edge */
.mode-tile { justify-content: flex-start; min-height: 0; padding: 26px; }
.tile-zonelimit, .tile-zonelimit { min-height: 0; }
.mode-tile .mode-label { position: static; display: block; margin: 0 0 22px; }
.mode-tile h3 { margin: 0 0 10px; }
.mode-tile p { margin: 0 0 22px; }
.mode-tile .mode-more { margin-top: auto; }
.tile-zonelimit h3 { margin-bottom: 0; }
@media (max-width: 1180px) { .tile-zonelimit { min-height: 0; } }
.mode-tile h3 { font-size: clamp(1.3rem, 12cqw, 2.1rem); }

/* discord tile: the logo is the title */
.home-link .dc-title { display: flex; align-items: center; height: 1.6rem; }
.dc-logo { height: 1.75rem; width: auto; color: #5865F2; transition: transform .25s ease, color .25s ease; }
.home-link:hover .dc-logo { transform: scale(1.12); color: #7983f5; }
.home-link h3 { display: flex; align-items: center; height: 2.3rem; margin-bottom: 8px; }
.home-link .dc-title { height: 2.3rem; }
.dc-logo { height: 2.3rem; }
.home-link .dc-title { justify-content: center; }

/* nav: discord logo on the right, next to the language switch */
.site-header nav > .nav-discord { margin-left: auto; margin-right: 6px; padding: 7px 10px; display: inline-flex; align-items: center; color: #8f9bff; border-radius: 999px; }
.site-header nav > .nav-discord svg { height: 1.35rem; width: auto; fill: currentColor; }
.site-header nav > .nav-discord:hover { color: #fff; background: #5865F2; border-color: transparent; box-shadow: none; }
.site-header nav > .nav-discord + .lang-switcher { margin-left: 0; }

/* nav v3: Home left | Rules Wiki Shop truly centred | Discord + language right */
.site-header nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; }
.site-header nav > a:first-child { justify-self: start; margin-right: 0; }
.site-header nav .nav-mid { display: flex; align-items: center; gap: 6px; }
.site-header nav .nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.site-header nav .nav-right > .nav-discord { margin: 0; }
.site-header nav .nav-right > .lang-switcher { margin: 0; }
@media (max-width: 900px) { .site-header nav { flex-wrap: nowrap; justify-content: initial; gap: 0; } }
@media (max-width: 620px) {
  .site-header nav { grid-template-columns: auto 1fr auto; }
  .site-header nav .nav-mid { justify-content: center; gap: 0; }
  .site-header nav .nav-mid a { padding: 7px 8px; }
}
.site-header nav .nav-discord { display: inline-flex; align-items: center; padding: 7px 10px; color: #8f9bff; border-radius: 999px; border: 1px solid transparent; }
.site-header nav .nav-discord svg { height: 1.4rem; width: 1.4rem; fill: currentColor; display: block; }
.site-header nav .nav-discord:hover { color: #fff; background: #5865F2; box-shadow: none; }

.site-header nav .nav-tiktok { color: #e8e8ec; }
.site-header nav .nav-tiktok:hover { color: #fff; background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.site-header nav .nav-tiktok svg { height: 1.25rem; width: 1.25rem; }

/* ═══ nav v4: slim full-width bar, one hairline, no pills ═══════════════════ */
body.minecraft-theme .site-header, .site-header {
  width: 100%; margin: 0; padding: 0; border-radius: 0;
  border: 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 12, 20, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: none;
  position: sticky; top: 0; z-index: 5000;
}
.site-header nav { width: min(1080px, 88vw); margin: 0 auto; height: 46px; }
.site-header nav a, body.minecraft-theme .site-header nav a {
  padding: 0 12px; height: 46px; display: inline-flex; align-items: center;
  border-radius: 0; border: 0; background: none; box-shadow: none;
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.01em; color: rgba(255,255,255,0.66); position: relative;
}
.site-header nav > a:first-child { padding-left: 0; }
.site-header nav a:hover, body.minecraft-theme .site-header nav a:hover { color: #fff; background: none; box-shadow: none; }
.site-header nav a.active, body.minecraft-theme .site-header nav a.active { color: #fff; background: none; box-shadow: none; }
.site-header nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: #fff; border-radius: 2px; }
.site-header nav > a.active:first-child::after { left: 0; }
.site-header nav .nav-right { gap: 2px; }
.site-header nav .nav-discord, .site-header nav .nav-tiktok { padding: 0 9px; height: 46px; border-radius: 0; background: none; }
.site-header nav .nav-discord:hover, .site-header nav .nav-tiktok:hover { background: none; }
.site-header nav .nav-discord:hover { color: #7983f5; }
.site-header nav .nav-tiktok:hover { color: #25f4ee; }
.site-header nav .nav-discord svg { height: 1.25rem; width: 1.25rem; }
.site-header nav .nav-tiktok svg { height: 1.1rem; width: 1.1rem; }
.lang-btn { padding: 4px 10px; font-size: 0.74rem; background: none; border: 1px solid rgba(255,255,255,0.22); margin-left: 6px; }
@media (max-width: 840px) { .site-header { position: sticky; } }
@media (max-width: 620px) { .site-header nav .nav-mid a { padding: 0 8px; } .site-header nav > a:first-child { padding-right: 6px; } }
main { padding-top: 34px; }
/* home link: text flush with the content edge, underline exactly as wide as the text */
body.minecraft-theme .site-header nav > a:first-child { padding-left: 0; }
body.minecraft-theme .site-header nav > a.active:first-child::after { left: 0; right: 12px; }

.home-hero::before { content: none; }

/* background art: crop away the dark letterbox bars of the source image so no faint box/edge shows */
.minecraft-bg { background-size: 100% 100%, auto 197%; background-position: center center, center center; background-repeat: no-repeat, no-repeat; }

/* nav icons: the original hover (filled round pill in the brand colour, white icon) */
.site-header nav .nav-discord, .site-header nav .nav-tiktok { height: 32px; margin: 7px 0; padding: 0 10px; border-radius: 999px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.site-header nav .nav-discord:hover { background: #5865F2; color: #fff; transform: translateY(-1px); }
.site-header nav .nav-tiktok:hover { background: linear-gradient(135deg, #25f4ee, #fe2c55); color: #fff; transform: translateY(-1px); }

/* bigger hero logo */
.home-logo .hero-logo { width: min(760px, 92%); }
.home-logo { margin-top: 26px; }

/* nav icons: hover = filled round pill in the brand colour (beats the theme's nav-link hover rule) */
body.minecraft-theme .site-header nav a.nav-discord:hover { background: #5865F2; color: #fff; box-shadow: 0 6px 18px rgba(88,101,242,0.45); transform: translateY(-1px); }
body.minecraft-theme .site-header nav a.nav-tiktok:hover { background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 100%); color: #fff; box-shadow: 0 6px 18px rgba(254,44,85,0.4); transform: translateY(-1px); }
.home-hero .home-logo { margin-bottom: -28px; }

/* nav: a bit larger (56px bar) */
.site-header nav { height: 56px; }
.site-header nav a, body.minecraft-theme .site-header nav a { height: 56px; font-size: 0.96rem; padding: 0 15px; }
body.minecraft-theme .site-header nav > a:first-child { padding-left: 0; }
.site-header nav a.active::after { left: 15px; right: 15px; height: 2px; }
body.minecraft-theme .site-header nav > a.active:first-child::after { left: 0; right: 15px; }
.site-header nav .nav-discord, .site-header nav .nav-tiktok { height: 38px; margin: 9px 0; padding: 0 12px; }
.site-header nav .nav-discord svg { height: 1.5rem; width: 1.5rem; }
.site-header nav .nav-tiktok svg { height: 1.3rem; width: 1.3rem; }
.lang-btn { padding: 6px 13px; font-size: 0.8rem; }
@media (max-width: 620px) { .site-header nav a, body.minecraft-theme .site-header nav a { font-size: 0.88rem; } .site-header nav .nav-mid a { padding: 0 9px; } .site-header nav a.active::after { left: 9px; right: 9px; } .site-header nav .nav-discord, .site-header nav .nav-tiktok { padding: 0 9px; } }
main { padding-top: 40px; }

/* rank table: no red 'No' words — a quiet dash for 'not included', a tick for 'included' */
.perm-no { color: rgba(255,255,255,0.22) !important; font-weight: 400 !important; }
.perm-yes { color: #34c759 !important; font-weight: 700 !important; }
.perm-yes, .perm-no, .perm-num { text-align: center; }

/* one typeface everywhere (Inter): commands, code, numbers, chat preview, IBAN */
code, kbd, pre, samp, .cmd-label, .mc-chat, .pay-card-value, .shop-page main.shop code, .ip-chip, .doc-table, .rank-perm-table { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; }
code, kbd, samp, .cmd-label { font-weight: 600; letter-spacing: 0; }
table, .rank-perm-table, .doc-table { font-variant-numeric: tabular-nums; }

/* home link tiles: three, centred */
.home-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.home-links > .home-link { flex: 0 0 min(300px, 100%); }
/* footer: always centred */
.site-footer, .site-footer p { text-align: center; }
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.site-footer .footer-legal { justify-content: center; }

/* ═══ signature look: Inter, capitals, wide tracking (the sidebar-label style) — used for every UI label ═══ */
.site-header nav a, body.minecraft-theme .site-header nav a { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 600; padding: 0 16px; }
body.minecraft-theme .site-header nav > a:first-child { padding-left: 0; }
.site-header nav a.active::after { left: 16px; right: 16px; }
body.minecraft-theme .site-header nav > a.active:first-child::after { left: 0; right: 16px; }
.lang-btn { letter-spacing: 0.14em; font-weight: 700; }
.btn, .card-link, .mode-more, .home-link .mode-more, .section-head a, .tag, .eyebrow, .shop-eyebrow, .shop-chip, .mode-label, .join-tabs button, .lang-option,
.doc-table th, .rank-perm-table th, .pay-card-label, .price-note, .sidebar-label, .footer-legal a {
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.74rem;
}
.btn { font-size: 0.78rem; }
.card-link, .mode-more { font-size: 0.72rem; letter-spacing: 0.14em; }
.sidebar-link { text-transform: none; }
.site-footer, .site-footer p { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; }
.site-footer a { font-weight: 700; }
.home-eyebrow { text-transform: uppercase; letter-spacing: 0.3em !important; font-size: 0.82rem !important; font-weight: 600 !important; }
.home-sub { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem !important; }
.hero-meta { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem !important; }
.home-section h2, .wiki-hub-section h2, .shop-section h2 { letter-spacing: -0.02em; }

/* IP: no box at all — just the address and the copy icon (tap = copy) */
.ip-chip { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 6px 4px; border-radius: 8px; text-shadow: 0 2px 18px rgba(0,0,0,0.75); }
.ip-chip:hover { background: none !important; transform: scale(1.04); }
.ip-chip:hover .ip-chip-text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: rgba(255,255,255,0.55); }
.ip-chip.copied { border: 0 !important; }

/* new background art (full-bleed, no letterbox): normal cover, a stronger dark wash so text stays readable */
.minecraft-bg { background-size: 100% 100%, cover; background-image: linear-gradient(180deg, rgba(5,10,20,0.50), rgba(4,8,16,0.84)), url("bg-art.png"); }

/* Zonelimit tile: yellow instead of grey/black */
.tile-zonelimit { background: radial-gradient(120% 90% at 20% 0%, rgba(255,214,10,0.62), rgba(26,20,4,0.95) 70%); }
.tile-zonelimit h3 { color: #fff; }
.tile-zonelimit .mode-label { color: #ff2d2d; text-shadow: 0 0 14px rgba(255,45,45,0.55); font-weight: 800; }
.tile-zonelimit .mode-label { display: inline-block; background: #ff1f1f; color: #fff; text-shadow: none; padding: 5px 11px; border-radius: 7px; box-shadow: 0 0 18px rgba(255,31,31,0.55); }
.tile-zonelimit .mode-label { align-self: flex-start; margin: -5px 0 17px -4px; }

/* the bar is always there: no fade/slide-in on page load (that left a strip above it while navigating) */
.site-header.reveal, .site-header { animation: none !important; opacity: 1 !important; transform: none !important; top: 0; margin-top: 0; }
html, body { margin: 0; padding: 0; }

/* no bright glow blob in the corner of hero boxes */
.hero::after, .hero-with-cta::after, .hero-compact::after { content: none !important; display: none !important; }

/* ═══ shop v3: one centred column, one place to buy ═══ */
.shop-flow { max-width: 900px; margin: 0 auto; display: grid; gap: 56px; }
.shop-flow .shop-section { margin: 0; }
.shop-flow h2 { text-align: center; margin-bottom: 22px; }
.shop-flow .shop-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-flow .shop-note, .shop-flow .shop-use, .shop-flow .shop-wall-empty { text-align: center; }
.shop-flow .shop-aside { position: static; width: auto; }
.shop-flow .shop-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 34px; align-items: center; }
.shop-buy-right { display: grid; gap: 12px; }
.shop-buy-right .shop-buy-btn { margin: 0; width: 100%; text-align: center; }
.shop-flow .price-note { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.9rem; }
.shop-iban { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.10); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.shop-iban .shop-iban-title { grid-column: 1 / -1; margin: 0 0 6px; color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.shop-iban .pay-card-label { display: none; }
.shop-iban .pay-card-value { margin: 0; white-space: nowrap; font-size: clamp(0.9rem, 2.4vw, 1.05rem); font-weight: 600; letter-spacing: 0.02em; }
.shop-iban .shop-iban-owner { margin: 0; grid-column: 1; color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.shop-iban .shop-iban-copy { grid-column: 2; grid-row: 2 / span 2; margin: 0; padding: 7px 12px; font-size: 0.68rem; }
@media (max-width: 820px) { .shop-flow .shop-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shop-flow .shop-buy { grid-template-columns: 1fr; gap: 24px; padding: 24px; } }
.shop-steps code { white-space: nowrap; }
.shop-flow .mc-chat { padding-top: 22px; padding-bottom: 22px; }
.shop-flow .shop-preview { align-items: center; }

/* shop: limited badge + live countdown side by side */
.shop-eyebrow-row { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-eyebrow-timer { font-variant-numeric: tabular-nums; color: #fff !important; border-color: rgba(255,255,255,0.28) !important; background: rgba(255,255,255,0.08) !important; }
.shop-buy-until .shop-countdown { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-chat .mc-rank[class*="rank-"] { font-weight: 700; }
.mc-chat .rank-legacy { color: #ef4444; }

/* ═══ stats page (2026-09-22) — leaderboards in the home look: glass rows, capitals, symmetric ═══ */
.stats { display: grid; gap: 28px; max-width: 900px; margin: 0 auto; padding-bottom: 40px; }
.stats-head h2 { margin-bottom: 10px; }
.stats-sub { margin: 0; text-align: center; color: rgba(255,255,255,0.72); font-size: 1.02rem; }
.stats-controls { display: grid; gap: 16px; justify-items: center; }
.stats-search { display: flex; align-items: center; gap: 10px; width: min(520px, 100%); padding: 0 18px; height: 48px; border-radius: 999px;
  background: var(--glass-mid); border: 1px solid var(--glass-border); box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.5); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.stats-search svg { width: 18px; height: 18px; color: rgba(255,255,255,0.7); flex: none; }
.stats-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 0.98rem; }
.stats-search input::placeholder { color: rgba(255,255,255,0.55); }
.stats-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stats-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--glass-border); margin-bottom: 4px; }
.stats-range { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); }
.stats-range-btn { border: 0; background: none; color: rgba(255,255,255,0.7); padding: 7px 16px; border-radius: 999px; cursor: pointer; font: inherit;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.72rem; transition: background .2s ease, color .2s ease; }
.stats-range-btn.is-on { background: rgba(255,255,255,0.9); color: #111; }
.stats-board-wrap { display: grid; gap: 14px; }
.stats-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stats-row { display: grid; grid-template-columns: 48px 40px 1fr auto; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); color: #fff;
  transition: transform .22s cubic-bezier(.22,1,.36,1), background .22s ease; }
.stats-row:hover { transform: translateY(-2px); background: rgba(255,255,255,0.16); }
.stats-rank { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto; border-radius: 12px; background: rgba(255,255,255,0.10); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; }
.stats-row.top-1 .stats-rank { background: rgba(255,204,0,0.92); color: #1a1400; }
.stats-row.top-2 .stats-rank { background: rgba(230,230,235,0.92); color: #1c1c1e; }
.stats-row.top-3 .stats-rank { background: rgba(255,149,0,0.9); color: #1a0e00; }
.stats-row.is-top { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
.stats-head-img { width: 40px; height: 40px; border-radius: 10px; image-rendering: pixelated; background: rgba(0,0,0,0.25); }
.stats-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-value { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.98rem; }
.stats-empty { margin: 8px 0; text-align: center; color: rgba(255,255,255,0.7); }
.stats-updated { margin: 0; text-align: center; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.68rem; }
@media (max-width: 600px) { .stats-row { grid-template-columns: 40px 36px 1fr auto; gap: 10px; padding: 10px 14px 10px 10px; } .stats-rank { width: 34px; height: 34px; } .stats-head-img { width: 36px; height: 36px; } .stats-tabs .btn { padding: 9px 16px; } }

/* ═══ stats/prices switch + shop prices page (2026-09-22) ═══ */
.stats-switch { display: flex; justify-content: center; gap: 6px; margin: 0 auto 22px; padding: 4px; width: max-content; max-width: 100%; border-radius: 999px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); }
.stats-switch-btn { text-decoration: none; color: rgba(255,255,255,0.72); padding: 8px 18px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.72rem; transition: background .2s ease, color .2s ease; }
.stats-switch-btn:hover { color: #fff; }
.stats-switch-btn.is-on { background: rgba(255,255,255,0.9); color: #111; }
.stats-hot { display: grid; gap: 10px; justify-items: center; }
.stats-hot-label { margin: 0; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.72rem; }
.stats-hot-bonus { color: #ffcc00; }
.stats-hot-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.prices-hot-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; color: #fff; font-size: 0.92rem;
  background: rgba(255,204,0,0.16); border: 1px solid rgba(255,204,0,0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
.prices-hot-chip .prices-icon { width: 26px; height: 26px; }
.prices-hot-chip strong { color: #ffcc00; font-variant-numeric: tabular-nums; }
.prices-cols { display: grid; grid-template-columns: 48px 1fr 150px 150px; gap: 16px; padding: 0 18px 0 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.68rem; }
.prices-cols span:nth-child(n+3) { text-align: right; }
.prices-row { grid-template-columns: 48px 1fr 150px 150px; }
.prices-rank { background: rgba(0,0,0,0.22); }
.prices-icon { width: 32px; height: 32px; image-rendering: pixelated; }
.prices-buy, .prices-sell { text-align: right; display: inline-flex; justify-content: flex-end; align-items: center; gap: 6px; }
.prices-muted { color: rgba(255,255,255,0.45); font-weight: 500; font-size: 0.82rem; }
.prices-trend { font-size: 0.7rem; }
.prices-trend.is-up { color: #34c759; }
.prices-trend.is-down { color: #ff453a; }
.prices-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; background: rgba(255,204,0,0.9); color: #1a1400; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; font-size: 0.6rem; }
.stats-row.is-hot { border-color: rgba(255,204,0,0.45); }
@media (max-width: 640px) { .prices-cols { display: none; } .prices-row { grid-template-columns: 40px 1fr; grid-template-areas: "icon name" "icon prices"; row-gap: 4px; }
  .prices-row .prices-rank { grid-area: icon; } .prices-row .stats-name { grid-area: name; white-space: normal; }
  .prices-row .prices-buy, .prices-row .prices-sell { grid-area: prices; justify-content: flex-start; font-size: 0.86rem; }
  .prices-row .prices-sell { justify-self: end; } }

/* top of the week card (stats page) */
.stats-weekly { display: grid; justify-items: center; }
.stats-weekly-card { width: min(560px, 100%); padding: 18px 22px; border-radius: 22px; text-align: center; color: #fff;
  background: rgba(255,204,0,0.12); border: 1px solid rgba(255,204,0,0.38); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
.stats-weekly-label { margin: 0 0 8px; color: #ffcc00; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; font-size: 0.72rem; }
.stats-weekly-text { margin: 0; color: rgba(255,255,255,0.82); font-size: 0.95rem; line-height: 1.55; }
.stats-weekly-text strong { color: #ffcc00; }
.stats-weekly-last { margin: 10px 0 0; color: rgba(255,255,255,0.7); font-size: 0.86rem; }
.stats-weekly-last strong { color: #fff; }
.stats-weekly-week { color: rgba(255,255,255,0.5); }

/* shop ranks (2026-09-22) */
.rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rank-card { display: flex; flex-direction: column; padding: 22px 20px; border-radius: 22px; background: rgba(10,14,26,0.58); border: 1px solid rgba(255,255,255,0.10); backdrop-filter: blur(18px); color: #fff; }
.rank-card-name { margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; font-size: 0.8rem; }
.rank-card-price { margin: 0 0 14px; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; display: flex; flex-direction: column; }
.rank-card-once { color: #b6bfcd; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.66rem; margin-top: 2px; }
.rank-card-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; color: #b6bfcd; font-size: 0.9rem; line-height: 1.4; flex: 1; }
.rank-card-list li::before { content: "·"; color: #fff; margin-right: 8px; }
.rank-card-list strong { color: #fff; }
.rank-card-btn { align-self: center; }
@media (max-width: 860px) { .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .rank-grid { grid-template-columns: 1fr; } }

/* stats: board with the top-of-the-week card beside it */
.stats-wide { max-width: 1180px; }
.stats-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.stats-layout .stats-weekly { position: sticky; top: 76px; }
.stats-layout .stats-weekly-card { width: 100%; text-align: left; padding: 20px; }
.stats-layout .stats-weekly-text br { display: block; content: ""; margin-top: 8px; }
@media (max-width: 900px) { .stats-layout { grid-template-columns: 1fr; } .stats-layout .stats-weekly { position: static; order: -1; } .stats-layout .stats-weekly-card { text-align: center; } }
/* owner: the box further out on the right, square, the board stays centred */
.stats-wide { max-width: 900px; }
.stats-layout { grid-template-columns: 1fr; position: relative; }
.stats-layout .stats-weekly { position: absolute; left: calc(100% + 48px); top: 0; width: 250px; }
.stats-layout .stats-weekly-card { min-height: 250px; display: flex; flex-direction: column; justify-content: center; padding: 22px; }
.stats-layout .stats-weekly-text { font-size: 0.9rem; }
@media (max-width: 1440px) { .stats-layout .stats-weekly { position: static; width: min(520px, 100%); margin: 0 auto; order: -1; } .stats-layout .stats-weekly-card { min-height: 0; text-align: center; } }
/* owner: a bit higher, a bit wider towards the board */
.stats-layout .stats-weekly { left: calc(100% + 28px); top: -44px; width: 290px; }

/* lou bundles + "pay to win is uncool" (owner 2026-09-22) */
.lou-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lou-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 22px; border-radius: 22px; color: #fff;
  background: rgba(10,14,26,0.58); border: 1px solid rgba(255,255,255,0.10); backdrop-filter: blur(18px); }
.lou-card.is-best { border-color: rgba(0,122,255,0.75); box-shadow: 0 0 0 1px rgba(0,122,255,0.35), 0 18px 50px rgba(0,122,255,0.18); }
.lou-card-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(0,122,255,0.95); color: #fff; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; font-size: 0.62rem; }
.lou-card-icon { display: block; height: 84px; width: auto; margin: 4px auto 14px; filter: drop-shadow(0 8px 18px rgba(70,140,255,0.35)); }
.lou-card-amount { margin: 0 0 4px; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.lou-card-amount span { font-size: 0.85rem; font-weight: 700; color: #b6bfcd; text-transform: uppercase; letter-spacing: 0.12em; }
.lou-card-price { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; color: #ffd680; }
.lou-card-note { margin: 0 0 16px; color: #b6bfcd; font-size: 0.82rem; flex: 1; }
.rank-banner { margin: -10px 0 18px; text-align: center; color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.rank-banner-sub { display: block; margin-top: 4px; color: #b6bfcd; font-size: 0.92rem; font-weight: 500; }
.rank-banner a, .rank-card-hint a { color: #7dc4ff; }
.rank-card-hint { margin: 0 0 12px; text-align: center; color: #ffd680; font-size: 0.8rem; font-weight: 700; }
@media (max-width: 860px) { .lou-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .lou-grid { grid-template-columns: 1fr; } }
.lou-grid { margin-top: 20px; }

/* ═══ first-visit guided tour (2026-09-22, cutout rework 2026-09-23) — blurred backdrop with a real hole
   over the spotlighted element (four strips around it, not one layer + z-index - z-index promotion broke
   on elements with their own stacking context, e.g. `.home-hero`'s `isolation: isolate`) ═══ */
body.xyn-tour-lock { overflow: hidden; }
.xyn-tour-overlay { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.xyn-tour-strip {
  position: absolute; top: 0; left: 0; width: 0; height: 0;
  background: rgba(6,8,14,0.72);
  -webkit-backdrop-filter: blur(7px) saturate(1.1); backdrop-filter: blur(7px) saturate(1.1);
  opacity: 0; pointer-events: none; transition: opacity .35s ease, top .3s ease, left .3s ease, width .3s ease, height .3s ease;
}
.xyn-tour-overlay.is-on .xyn-tour-strip { opacity: 1; pointer-events: auto; }
.xyn-tour-ring {
  position: fixed; z-index: 9001; border-radius: 22px; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.55), 0 0 70px rgba(0,122,255,0.35);
  opacity: 0; transition: opacity .3s ease, top .3s ease, left .3s ease, width .3s ease, height .3s ease;
}
.xyn-tour-ring.is-on { opacity: 1; }
.xyn-tour-card {
  position: fixed; z-index: 9002; top: 50%; left: 50%;
  width: min(440px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  background: var(--glass-mid); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-radius: 26px; padding: 28px 26px 22px; color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, top .4s cubic-bezier(.22,1,.36,1);
}
.xyn-tour-card.is-on { opacity: 1; pointer-events: auto; }
.xyn-tour-card:not(.xyn-tour-card-centered) { transform: translateX(-50%); }
.xyn-tour-pointer {
  position: absolute; display: none; width: 18px; height: 18px;
  background: var(--glass-mid);
  border-top: 1px solid var(--glass-border); border-left: 1px solid var(--glass-border);
  border-right: none; border-bottom: none;
  transform: translateX(-50%) rotate(45deg); border-radius: 3px 0 0 0;
}
.xyn-tour-pointer-up { top: -10px; }
.xyn-tour-pointer-down { bottom: -10px; transform: translateX(-50%) rotate(225deg); }
.xyn-tour-skip {
  position: absolute; top: 16px; right: 18px; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; font-size: 0.66rem;
  font-family: inherit; padding: 4px;
}
.xyn-tour-skip:hover { color: #fff; }
.xyn-tour-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.xyn-tour-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.25); transition: background .2s ease, width .2s ease; }
.xyn-tour-dots span.is-on { background: #007AFF; width: 18px; }
.xyn-tour-text { font-size: 1.02rem; line-height: 1.6; color: rgba(255,255,255,0.92); margin: 0 0 22px; padding-right: 8px; }
.xyn-tour-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
@media (max-width: 480px) { .xyn-tour-card { padding: 24px 20px 18px; } .xyn-tour-text { font-size: 0.96rem; } }
.xyn-tour-replay { color: rgba(255,255,255,0.55); text-decoration: underline; text-underline-offset: 2px; }
.xyn-tour-replay:hover { color: rgba(255,255,255,0.85); }
