:root {
  --bg: #0a0a0a;
  --bg-raised: rgba(20, 12, 24, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2f2f2;
  --text-dim: #cbb7d4;
  --accent: #ffd75e;
  --grad-1: #3b1053;
  --grad-2: #6a2c8f;
  --grad-3: #a52f96;
  --grad-4: #d13d97;
  --grad-5: #ec6fa0;
}

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

body {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--text);
  line-height: 1.5;
  background: linear-gradient(-45deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4), var(--grad-5));
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1, h2, h3, .brand-name {
  font-family: 'Press Start 2P', cursive;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  background: rgba(10, 5, 12, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

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

.brand-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.brand-name {
  font-size: 14px;
  color: var(--accent);
}

.back-link {
  font-size: 18px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.back-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 90px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 30px;
  color: var(--text);
  margin-bottom: 20px;
}

.highlight {
  color: var(--accent);
}

.subtitle {
  font-size: 22px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 34px;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-raised);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 10px 12px 22px;
  margin-bottom: 60px;
}

.ip-label {
  color: var(--text-dim);
  font-size: 12px;
  font-family: 'Press Start 2P', cursive;
}

.ip-value {
  color: var(--text);
  font-size: 24px;
  letter-spacing: 1px;
}

.copy-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 11px;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.copy-btn:hover {
  opacity: 0.85;
}

.copy-btn:active {
  opacity: 0.7;
}

.version-tag {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 0 34px;
}

/* Bubble nav */
.bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-raised);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bubble:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(20, 12, 24, 0.75);
}

.bubble-icon {
  font-size: 34px;
}

.bubble-icon svg {
  width: 34px;
  height: 34px;
}

.bubble-support .bubble-icon {
  color: #ffffff;
}

.bubble-discord .bubble-icon {
  color: #5865f2;
}

.bubble-discord:hover {
  border-color: #5865f2;
}

.bubble-label {
  font-size: 16px;
  color: var(--text);
  text-align: center;
}

/* Page content (sub-pages) */
.page-content {
  padding: 70px 0 90px;
}

.section-title {
  text-align: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-raised);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.feature-card h3 {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 19px;
  color: var(--text-dim);
}

.stats-search {
  display: block;
  max-width: 320px;
  margin: 0 auto 30px;
}

.stats-table-wrap {
  overflow-x: auto;
  background: var(--bg-raised);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
  white-space: nowrap;
}

.stats-table th,
.stats-table td {
  text-align: left;
  padding: 12px 16px;
}

.stats-table thead th {
  font-size: 13px;
  font-family: 'Press Start 2P', cursive;
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.stats-table thead th:hover {
  color: var(--text);
}

.stats-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.stats-table tbody tr:last-child {
  border-bottom: none;
}

.stats-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.stats-table td {
  color: var(--text-dim);
}

.stats-table td:first-child {
  color: var(--text);
}

.steps {
  max-width: 620px;
  margin: 0 auto;
  padding-left: 24px;
  font-size: 20px;
  color: var(--text-dim);
}

.steps li {
  margin-bottom: 16px;
}

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

.steps code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'VT323', monospace;
}

.support-intro {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: -20px auto 40px;
  font-size: 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.support-card {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: var(--bg-raised);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.support-card h3 {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
}

.support-card p {
  font-size: 18px;
  color: var(--text-dim);
}

.support-card-other {
  border-style: dashed;
}

.support-card {
  font-size: inherit;
}

/* Ticket modal */
.ticket-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 8, 0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.ticket-overlay.open {
  display: flex;
}

.ticket-box {
  width: 100%;
  max-width: 440px;
  background: #1a1120;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ticket-header h3 {
  font-size: 15px;
  color: var(--accent);
  font-family: 'Press Start 2P', cursive;
}

.ticket-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.ticket-close:hover {
  color: var(--text);
}

.ticket-label {
  display: block;
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.ticket-label span {
  font-size: 14px;
  opacity: 0.7;
}

.ticket-input {
  display: block;
  width: 100%;
  font-family: 'VT323', monospace;
  font-size: 19px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 16px;
}

.ticket-input:focus {
  outline: none;
  border-color: var(--accent);
}

.ticket-textarea {
  resize: vertical;
}

.ticket-field-suspect {
  display: none;
}

.ticket-submit {
  width: 100%;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.ticket-submit:hover {
  opacity: 0.85;
}

.ticket-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.ticket-status {
  text-align: center;
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-dim);
}

.rules-list {
  max-width: 620px;
  margin: 0 auto;
  list-style: none;
  font-size: 23px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rules-list li {
  padding: 14px 20px 14px 40px;
  position: relative;
  color: var(--text);
  background: var(--bg-raised);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.rules-list li::before {
  content: "\25A0";
  position: absolute;
  left: 16px;
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: rgba(10, 5, 12, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  text-align: center;
  padding: 24px 0;
  font-size: 15px;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .ip-box {
    flex-direction: column;
    border-radius: 20px;
  }
}
