:root {
  --bg: #0a0518;
  --bg-deep: #050210;
  --bg-panel: #15102a;
  --text: #ffffff;
  --text-secondary: #b9b3d6;
  --text-muted: #7a7596;
  --gold: #ffd24a;
  --neon: #ff3df0;
  --cyan: #29e7ff;
  --green: #2ee082;
  --border: rgba(255, 255, 255, 0.08);
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(900px 600px at 80% -10%, rgba(255, 61, 240, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(41, 231, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #0a0518 0%, #050210 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.locale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 4, 22, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.locale-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
}

.locale-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(41, 231, 255, 0.2), rgba(255, 61, 240, 0.2));
  color: var(--cyan);
  font-size: 1.25rem;
}

.locale-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.locale-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.locale-main h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.locale-intro {
  margin: 0 0 32px;
  color: var(--text-secondary);
}

.locale-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 210, 74, 0.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 210, 74, 0.08), rgba(138, 61, 255, 0.08));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.locale-primary-value {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  word-break: break-all;
}

.locale-primary-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.locale-section {
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(21, 16, 42, 0.72);
}

.locale-section h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.locale-table {
  width: 100%;
  border-collapse: collapse;
}

.locale-table th,
.locale-table td {
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.locale-table tr:last-child th,
.locale-table tr:last-child td {
  border-bottom: none;
}

.locale-table th {
  width: 38%;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding-right: 16px;
}

.locale-table td {
  color: var(--text);
  word-break: break-word;
}

.locale-table code {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.9em;
  color: var(--green);
}

.locale-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.locale-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.locale-list li:last-child {
  border-bottom: none;
}

.locale-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(41, 231, 255, 0.12);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
}

.locale-list code {
  font-family: "Cascadia Code", "Consolas", monospace;
  color: var(--gold);
}

.locale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.locale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.locale-btn:hover {
  border-color: rgba(255, 210, 74, 0.4);
  background: rgba(255, 210, 74, 0.08);
}

.locale-btn-primary {
  border-color: rgba(255, 210, 74, 0.35);
  background: rgba(255, 210, 74, 0.12);
  color: var(--gold);
}

.locale-footer {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .locale-header {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .locale-table th {
    width: 42%;
  }
}
