:root {
  --bg: #0a0c10;
  --bg-alt: #0f131a;
  --surface: #151a23;
  --surface-hover: #1b222e;
  --border: #252e3d;
  --text: #f3f5f8;
  --text-muted: #9aa4b2;
  --orange: #ff4518;
  --amber: #ff7a18;
  --green: #39e75f;
  --steel: #94a3b8;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-orange {
  top: -140px;
  left: -120px;
  background: var(--orange);
}

.bg-glow-green {
  bottom: -160px;
  right: -120px;
  background: var(--green);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3, h4, .brand-text {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.02em;
  margin-top: 0;
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  color: #f8fafc;
}

kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: #1f2633;
  border: 1px solid #394457;
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 0.15em 0.5em;
  color: #fff;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 69, 24, 0.45);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-accent {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 69, 24, 0.35);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: #3a465c;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--green);
}

.btn-nav-copy {
  background: rgba(255, 69, 24, 0.14);
  color: #ff8a65;
  border-color: rgba(255, 69, 24, 0.4);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-nav-copy:hover {
  background: rgba(255, 69, 24, 0.24);
  color: #fff;
}

.btn-inline {
  background: rgba(57, 231, 95, 0.1);
  color: var(--green);
  border-color: rgba(57, 231, 95, 0.35);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-inline:hover {
  background: rgba(57, 231, 95, 0.2);
}

.btn-small-copy {
  background: #1d2430;
  color: var(--text);
  border-color: var(--border);
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-small-copy:hover {
  border-color: var(--orange);
}

.btn.copied {
  background: rgba(57, 231, 95, 0.2) !important;
  border-color: var(--green) !important;
  color: var(--green) !important;
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  margin-bottom: 1.75rem;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(255, 69, 24, 0.35), rgba(57, 231, 95, 0.2), transparent 72%);
  filter: blur(18px);
  z-index: -1;
}

.hero-logo {
  width: min(320px, 78vw);
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  display: block;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.badge {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.badge-java {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.badge-vanilla {
  color: var(--green);
  border-color: rgba(57, 231, 95, 0.35);
}

.badge-voice {
  color: #ff8a65;
  border-color: rgba(255, 69, 24, 0.4);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 680px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2.25rem;
}

/* IP Card */
.ip-card {
  width: min(640px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
  text-align: left;
}

.ip-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.ip-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.ip-port-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: #0b0e14;
  border: 1px solid #2a3445;
  border-radius: 12px;
  padding: 0.65rem 0.65rem 0.65rem 1rem;
}

.ip-address {
  background: transparent;
  border: none;
  padding: 0;
  font-size: clamp(0.95rem, 2.3vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

.btn-copy-main {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
}

.ip-hint {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #394457;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon-orange {
  background: rgba(255, 69, 24, 0.15);
  color: var(--orange);
}

.feature-icon-green {
  background: rgba(57, 231, 95, 0.14);
  color: var(--green);
}

.feature-icon-steel {
  background: rgba(148, 163, 184, 0.15);
  color: var(--steel);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Rules Section */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: var(--surface);
  border: 1px solid rgba(255, 69, 24, 0.35);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rule-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
}

.rule-num {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rule-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.rule-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rules-footer-note {
  text-align: center;
  color: var(--text-muted);
  margin: 1.75rem 0 0;
  font-size: 0.98rem;
}

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

/* Notice Banner */
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 69, 24, 0.08);
  border: 1px solid rgba(255, 69, 24, 0.35);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}

.notice-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-banner p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps Timeline */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.step-card {
  display: flex;
  gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.step-number {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(255, 69, 24, 0.12);
  border: 1px solid rgba(255, 69, 24, 0.3);
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step-content > p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.step-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.step-header-row h3 {
  margin-bottom: 0;
}

.launcher-tabs {
  display: inline-flex;
  background: #0b0e14;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.launcher-tab {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.launcher-tab:hover {
  color: var(--text);
}

.launcher-tab.active {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff;
}

.launcher-panel {
  display: none;
}

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

.launcher-panel p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.launcher-panel p:last-child {
  margin-bottom: 0;
}

.mod-downloads {
  display: grid;
  gap: 0.9rem;
}

.mod-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #0d1118;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.mod-item p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tag-required,
.tag-voice {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}

.tag-required {
  background: rgba(255, 69, 24, 0.18);
  color: #ff8a65;
}

.tag-voice {
  background: rgba(57, 231, 95, 0.16);
  color: var(--green);
}

.path-box,
.inline-ip-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: #0b0e14;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin: 0.35rem 0 0.85rem;
}

.sub-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.sub-steps li {
  margin-bottom: 0.55rem;
}

/* Voice Chat Panel */
.voice-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
  align-items: center;
}

.voice-left > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.voice-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.voice-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.keycap-big {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(180deg, #273142, #181f2b);
  border-color: #49566e;
  color: var(--green);
}

.voice-bullet {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--orange);
  flex-shrink: 0;
}

.voice-step h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.voice-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.voice-card-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.voice-card-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  background: #0d1118;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-amber { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.voice-card-title {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.voice-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.vc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.vc-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vc-label {
  color: var(--text-muted);
}

.vc-val, .vc-desc {
  font-weight: 600;
  text-align: right;
}

/* Checklist */
.checklist-card {
  max-width: 680px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.check-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.check-item input:checked + span {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Server Status Badge */
.server-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.server-status-badge.large {
  font-size: 1rem;
  padding: 0.45rem 1rem;
}

.server-status-badge.online {
  border-color: rgba(57, 231, 95, 0.4);
  color: var(--green);
  background: rgba(57, 231, 95, 0.08);
}

.server-status-badge.offline {
  border-color: rgba(255, 69, 24, 0.4);
  color: var(--orange);
  background: rgba(255, 69, 24, 0.08);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.server-status-badge.online .status-dot {
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.server-status-badge.offline .status-dot {
  background: var(--orange);
}

.ip-card-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

/* Players Section */
.players-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.players-count-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.players-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.players-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.player-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.player-stat-card.is-online {
  border-color: rgba(57, 231, 95, 0.35);
  background: rgba(57, 231, 95, 0.05);
}

.player-stat-card.is-offline {
  border-color: rgba(148, 163, 184, 0.25);
}

.player-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-stat-value {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--text);
}

.player-stat-card.is-online .player-stat-value {
  color: var(--green);
}

@media (max-width: 640px) {
  .players-stats-grid {
    grid-template-columns: 1fr;
  }
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.player-card:hover {
  transform: translateY(-2px);
  border-color: #3a465c;
}

.player-card.is-online {
  border-color: rgba(57, 231, 95, 0.35);
  background: rgba(57, 231, 95, 0.05);
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  image-rendering: pixelated;
  background: #0b0e14;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.player-info {
  min-width: 0;
}

.player-name {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.player-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.player-status.online {
  color: var(--green);
}

.player-status.online .player-status-dot {
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.player-status.offline {
  color: var(--text-muted);
}

.player-status.offline .player-status-dot {
  background: var(--text-muted);
}

.player-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  padding: 2.5rem;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.player-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem;
}

.players-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

/* Offline Section */
.offline-panel {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.offline-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(255, 69, 24, 0.07);
  border: 1px solid rgba(255, 69, 24, 0.4);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.offline-warning-banner.is-online {
  background: rgba(57, 231, 95, 0.07);
  border-color: rgba(57, 231, 95, 0.4);
}

.offline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
  margin-top: 4px;
}

.offline-warning-banner.is-online .offline-dot {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.offline-warning-banner strong {
  font-size: 1.05rem;
}

.offline-warning-banner p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.offline-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.offline-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.offline-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 69, 24, 0.14);
  border: 1px solid rgba(255, 69, 24, 0.35);
  color: var(--orange);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.offline-step h4 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.offline-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.offline-step a {
  color: var(--green);
  text-decoration: none;
}

.offline-step a:hover {
  text-decoration: underline;
}

.creds-card {
  margin-top: 0.85rem;
  background: #0b0e14;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.cred-row:last-child {
  border-bottom: none;
}

.cred-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 80px;
}

.cred-value-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cred-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: none;
  padding: 0;
}

.offline-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.offline-notice .icon {
  color: var(--steel);
  flex-shrink: 0;
  margin-top: 2px;
}

.offline-notice p {
  margin: 0;
}

/* Footer */
.footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-ip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #141b24;
  color: var(--green);
  border: 1px solid rgba(57, 231, 95, 0.45);
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

  .voice-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .ip-box {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
  }

  .ip-address {
    text-align: center;
  }

  .step-card {
    flex-direction: column;
    gap: 1rem;
  }
}

