@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap");

:root {
  --accent: #05f498;
  --accent-dark: #0a3726;
  --accent-glow: rgba(5, 244, 152, 0.55);
  --text: #ffffff;
  --muted: #bababa;
  --placeholder: #6a6a6a;
  --panel: rgba(0, 0, 0, 0.35);
  --border-from: rgba(255, 255, 255, 0.2);
  --border-to: rgba(255, 255, 255, 0);
  --line: rgba(255, 255, 255, 0.08);
  --danger: #ff5560;
  --warn: #ffb347;
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Kanit", sans-serif;
  --nav-h: 68px;
  --max: 1120px;
  --wiki-max: 1600px;
  --discord: https://discord.gg/time2play;
  --tiktok: https://www.tiktok.com/@time2playrp;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #050507;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul { list-style: none; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Soft atmosphere — like crosshair panel */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top, rgba(5, 244, 152, 0.08), transparent 55%),
    radial-gradient(circle at center, rgba(10, 10, 12, 0.35) 0%, #030406 100%);
}

/* Gradient border utility (from px_crosshair .b-white) */
.b-white {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
}

.b-white::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(142deg, var(--border-from), var(--border-to) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.green-text {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(3, 4, 6, 0.55);
  border-bottom: 1px solid transparent;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(5, 244, 152, 0.25));
}

.brand-text h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-text p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 6px 4px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  transition: 0.18s ease;
}

.nav-links a:hover { color: var(--text); background: transparent; }

.nav-links a.active {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  box-shadow: none;
  text-shadow: 0 0 10px var(--accent-glow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 0 14px rgba(5, 244, 152, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(250, 250, 250, 0.1);
  color: var(--text);
}

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

.btn-gradient {
  background: linear-gradient(90deg, #0d9b6c 0%, #3ecf8e 50%, #d4f542 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(5, 244, 152, 0.25);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(250, 250, 250, 0.12);
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.menu-toggle span::before { content: ""; position: absolute; top: -5px; }
.menu-toggle span::after { content: ""; position: absolute; top: 5px; }

/* Hero — open layout like newloading */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 72px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  top: 48%;
  right: 8%;
  transform: translateY(-50%);
  width: min(62vh, 560px);
  height: min(62vh, 560px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.hero-orbit svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: orbitSpin 80s linear infinite;
}

.orbit-accent {
  stroke: var(--accent);
  fill: none;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.orbit-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-copy {
  max-width: 560px;
  margin-inline: auto 0;
  text-align: center;
  justify-self: center;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-lead {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  justify-content: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
}

.stat {
  padding: 0;
  background: none;
  border: none;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
  gap: 14px;
}

.hero-char-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: grid;
  place-items: end center;
  animation: floatHero 6s ease-in-out infinite;
}

.hero-char-stage img,
#hero-char-img {
  max-height: 560px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 78%, transparent 100%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#hero-char-img.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#hero-char-img.is-fading {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.hero-char-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.char-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  transition: 0.15s ease;
}

.char-nav:hover {
  color: var(--accent-dark);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(5, 244, 152, 0.35);
}

.char-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.char-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: 0.2s ease;
}

.char-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.char-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section {
  padding: 56px 0 72px;
}

.section-head {
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head .hint {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 168px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(5, 244, 152, 0.3);
  transform: translateY(-2px);
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(5, 244, 152, 0.12);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  flex: 1;
}

.feature-card .card-link {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Accordion quick rules */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-item {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.acc-item.open {
  border-color: rgba(5, 244, 152, 0.35);
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  transition: background 0.15s ease;
}

.acc-btn:hover { background: rgba(255, 255, 255, 0.04); }

.acc-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

.acc-btn h4 {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acc-btn i {
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.acc-item.open .acc-btn i { transform: rotate(180deg); color: var(--accent); }

.acc-body {
  display: none;
  padding: 0 16px 16px 38px;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.92rem;
}

.acc-item.open .acc-body { display: block; }

/* About split (home) */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  margin-top: 14px;
}

.about-panel {
  padding: 36px 8px;
  background: transparent;
  border: none;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-panel .kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.about-panel h2 {
  position: relative;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.about-panel h2::after {
  content: attr(data-watermark);
  position: absolute;
  left: 0;
  top: -18%;
  font-size: 1.55em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  white-space: nowrap;
  z-index: -1;
}

.about-panel p {
  color: var(--muted);
  font-weight: 300;
  max-width: 420px;
}

/* Page hero */
.page-hero {
  padding: 36px 0 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-hero-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: none;
  padding: 40px 24px 12px;
}

.page-hero-center p {
  margin-inline: auto;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  font-size: 0.95rem;
}

/* Wiki fullscreen */
.wiki-page {
  width: min(var(--wiki-max), calc(100% - 40px));
  margin-inline: auto;
  padding-bottom: 40px;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 40px;
}

.wiki-layout-3,
.wiki-fullscreen {
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  gap: 18px;
  min-height: calc(100vh - var(--nav-h) - 140px);
}

.wiki-sidebar,
.wiki-toc {
  position: sticky;
  top: calc(var(--nav-h) + 14px);
  max-height: calc(100vh - var(--nav-h) - 28px);
  overflow: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 244, 152, 0.55) transparent;
}

.wiki-toc {
  gap: 6px;
}

.toc-link {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  transition: 0.15s ease;
}

.toc-link:hover {
  color: var(--text);
  background: rgba(5, 244, 152, 0.08);
}

.sidebar-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 2px 4px 6px;
}

.rules-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.rules-search:focus { border-color: rgba(5, 244, 152, 0.4); }

.rules-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 11px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.rules-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.rules-tab.active {
  background: rgba(5, 244, 152, 0.12);
  border-color: rgba(5, 244, 152, 0.35);
  box-shadow: 0 0 16px rgba(5, 244, 152, 0.12);
}

.rules-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(5, 244, 152, 0.1);
  color: var(--accent);
  flex-shrink: 0;
  font-size: 12px;
}

.rules-tab.active .rules-tab-icon {
  background: var(--accent);
  color: var(--accent-dark);
}

.rules-tab-meta { min-width: 0; }

.rules-tab-tag {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.rules-tab-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wiki-main {
  position: relative;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: calc(100vh - var(--nav-h) - 150px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rules-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.rules-progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.1s linear;
}

.wiki-main-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.wiki-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wiki-main-head .kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.wiki-main-head h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wiki-meta {
  margin-top: 4px;
  color: var(--placeholder);
  font-size: 11px;
}

.wiki-tools {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: 0.15s ease;
}

.tool-btn:hover:not(:disabled) {
  color: var(--accent-dark);
  background: var(--accent);
}

.tool-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.content-search { margin-top: 0; }

.wiki-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(5, 244, 152, 0.12);
  color: var(--accent);
}

.wiki-content {
  padding: 22px 26px 36px;
  overflow: auto;
  max-height: calc(100vh - var(--nav-h) - 200px);
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 244, 152, 0.55) transparent;
}

.wiki-content.fade-in {
  animation: contentFade 0.28s ease;
}

@keyframes contentFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.rule-section {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: contentFade 0.35s ease both;
}

.rule-section.pulse {
  box-shadow: 0 0 0 1px rgba(5, 244, 152, 0.55);
}

.rule-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-align: left;
  transition: background 0.15s ease;
}

.rule-section-toggle:hover {
  background: rgba(5, 244, 152, 0.05);
}

.rule-section-toggle i {
  color: var(--muted);
  font-size: 11px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.rule-section.collapsed .rule-section-toggle i {
  transform: rotate(-90deg);
}

.rule-section.collapsed .rule-section-panel {
  display: none;
}

.rule-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.rule-section-panel {
  padding: 0 18px 18px;
}

.rule-section-body {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

.rule-section-body p { margin-bottom: 8px; }

.rule-lead {
  color: var(--accent) !important;
  font-weight: 500 !important;
}

.inline-sanction {
  color: #ffb4b8;
  background: rgba(255, 85, 96, 0.08);
  border-radius: 4px;
  padding: 0 3px;
}

.rule-section-body mark {
  background: rgba(5, 244, 152, 0.28);
  color: #fff;
  border-radius: 3px;
  padding: 0 2px;
}

.rule-sanction {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 85, 96, 0.08);
  border: 1px solid rgba(255, 85, 96, 0.22);
  color: #ffb4b8;
  font-size: 0.88rem;
}

.rule-sanction-label {
  display: inline-block;
  margin-right: 8px;
  color: var(--danger);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

.rule-loading,
.rule-empty {
  color: var(--muted);
  padding: 28px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(5, 244, 152, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Shop */
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.shop-tab {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: 0.15s ease;
}

.shop-tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.shop-tab.active {
  color: var(--accent-dark);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(5, 244, 152, 0.35);
}

.shop-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.2);
  color: #ffd7a0;
  font-size: 0.88rem;
  font-weight: 300;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  padding-bottom: 64px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}

.shop-card-vehicle {
  padding: 0;
  min-height: 0;
}

.shop-card-media {
  position: relative;
  height: 160px;
  background:
    radial-gradient(ellipse at center, rgba(5, 244, 152, 0.12), transparent 65%),
    rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-card-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96%;
  max-height: 92%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  padding: 0;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.05);
}

.shop-card-media.is-empty {
  background: rgba(255, 255, 255, 0.03);
}

.shop-card-media.is-empty::after {
  content: "🚗";
  font-size: 2rem;
  opacity: 0.35;
}

.shop-card-media.is-empty img {
  display: none;
}

.shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 16px;
  flex: 1;
}

.shop-card:hover {
  border-color: rgba(5, 244, 152, 0.3);
  transform: translateY(-2px);
}

.shop-card .cat {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.shop-card h3 {
  font-size: 14px;
  font-weight: 600;
}

.shop-card p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 300;
  flex: 1;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.price { font-weight: 700; font-size: 1rem; }
.price.coins { color: var(--warn); }
.price.money { color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); }
.price.euro { color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); }

.shop-benefits {
  margin: 4px 0 8px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.55;
  flex: 1;
}

.shop-benefits li { margin-bottom: 4px; }

.shop-home-wrap {
  padding-bottom: 64px;
}

.shop-home {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shop-welcome {
  padding: 28px 8px 8px;
  text-align: center;
}

.shop-welcome h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shop-welcome p {
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  margin-inline: auto;
}

.shop-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.shop-home-card {
  text-align: left;
  padding: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.shop-home-card:hover {
  border-color: rgba(5, 244, 152, 0.35);
  transform: translateY(-2px);
}

.shop-home-card .cat {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.shop-home-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.shop-home-card p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 300;
}

.shop-bundle-note {
  text-align: center;
  color: #ffd7a0;
  font-size: 0.88rem;
  font-weight: 300;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.2);
}

.badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.badge.soon {
  background: rgba(255, 85, 96, 0.12);
  color: #ff8a92;
}

/* Guide */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 28px;
}

.faq-item,
.tutorial-item,
.setting-item {
  padding: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.faq-item:hover,
.tutorial-item:hover,
.setting-item:hover {
  border-color: rgba(5, 244, 152, 0.28);
  transform: translateY(-1px);
}

.faq-item h4,
.tutorial-item h4,
.setting-item h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.faq-item p,
.tutorial-item p,
.setting-item p {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.9rem;
}

.jobs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  padding-bottom: 64px;
}

.job-card {
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.job-card:hover {
  border-color: rgba(5, 244, 152, 0.28);
  transform: translateY(-1px);
}

.job-tier {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.job-card h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.job-card p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 300;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at bottom, rgba(5, 244, 152, 0.05), transparent 50%),
    rgba(0, 0, 0, 0.35);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 40px 0 28px;
}

.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .logo-row img {
  width: 36px;
  height: 36px;
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.9rem;
  max-width: 300px;
  margin-bottom: 16px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: 0.15s ease;
}

.socials a:hover {
  color: var(--accent-dark);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(5, 244, 152, 0.35);
}

.footer-col h4 {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(5, 244, 152, 0.35);
  display: inline-block;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.footer-ticker {
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}

.footer-ticker .track {
  display: inline-block;
  padding: 8px 0;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer-bottom {
  padding: 14px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--placeholder);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

/* Scrollbar like crosshair */
/* Custom scrollbars (webkit + firefox) */
.custom-scrollbar,
.wiki-sidebar,
.wiki-toc,
.wiki-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 244, 152, 0.55) transparent;
}

.custom-scrollbar::-webkit-scrollbar,
.wiki-sidebar::-webkit-scrollbar,
.wiki-toc::-webkit-scrollbar,
.wiki-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track,
.wiki-sidebar::-webkit-scrollbar-track,
.wiki-toc::-webkit-scrollbar-track,
.wiki-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
.wiki-sidebar::-webkit-scrollbar-thumb,
.wiki-toc::-webkit-scrollbar-thumb,
.wiki-content::-webkit-scrollbar-thumb {
  background: rgba(5, 244, 152, 0.45);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
.wiki-sidebar::-webkit-scrollbar-thumb:hover,
.wiki-toc::-webkit-scrollbar-thumb:hover,
.wiki-content::-webkit-scrollbar-thumb:hover {
  background: rgba(5, 244, 152, 0.75);
}

.custom-scrollbar::-webkit-scrollbar-button,
.wiki-sidebar::-webkit-scrollbar-button,
.wiki-toc::-webkit-scrollbar-button,
.wiki-content::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp 0.55s ease forwards;
}
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.28s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .wiki-layout-3,
  .wiki-fullscreen {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .wiki-toc { display: none; }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-split,
  .wiki-layout,
  .wiki-layout-3,
  .guide-grid,
  .cards-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
    order: -1;
  }

  .hero-orbit {
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 0.45;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 56px;
  }

  .wiki-sidebar,
  .wiki-toc {
    position: static;
    max-height: none;
  }

  .wiki-content { max-height: none; }
}

@media (max-width: 780px) {
  .menu-toggle { display: inline-flex; }
  .nav-links,
  .nav-actions .btn { display: none; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px;
    background: rgba(5, 5, 7, 0.96);
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }

  .nav-links.open a {
    width: 100%;
    border-radius: var(--radius);
  }

  .hero-stats { gap: 28px; }
  .container { width: min(var(--max), calc(100% - 28px)); }
}
