
:root {
  --bg: #050712;
  --bg-alt: #0c0f1c;
  --border: #232637;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #f97373;
  --radius-lg: 16px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  margin-bottom: 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.seal-wrap {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.7);
  padding: 6px;
  background: radial-gradient(circle at top, #020617 0, #020617 60%);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 20px rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.9);
}

h1 {
  margin: 6px 0 2px;
  font-size: 26px;
  font-weight: 600;
}

.subtitle {
  color: var(--text-soft);
  font-size: 14px;
}

.main-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), #020617);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at top left, #111827 0, #020617 45%);
}

.tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease-out;
}

.tab span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.tab.active {
  color: var(--text-main);
  border-color: var(--accent);
  background: radial-gradient(circle at top left, var(--accent-soft) 0, transparent 60%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6);
}

.tab.active span.dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.9);
}

.tab:hover:not(.active) {
  border-color: rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.content-wrap {
  display: flex;
  flex: 1;
  min-height: 0;
}

.side {
  display: none;
}

.content {
  flex: 1;
  padding: 18px 18px 22px;
  overflow-y: auto;
}

@media (min-width: 900px) {
  .content-wrap {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 18px;
    border-right: 1px solid var(--border);
    background: radial-gradient(circle at top left, #020617 0, #020617 45%);
  }
}

.side-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 2px;
}

.side-box {
  padding: 10px 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, #020617 0, #020617 60%);
  font-size: 12px;
  color: var(--text-muted);
}

.side-box strong {
  color: var(--text-main);
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 11px;
  color: var(--text-soft);
  margin-right: 6px;
  margin-top: 4px;
}

.pill.bad {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.pill.good {
  border-color: rgba(52, 211, 153, 0.6);
  color: #bbf7d0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.18s ease-out;
}

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

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

h4 {
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 600;
}

p {
  margin: 4px 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

ul {
  margin: 4px 0 12px 18px;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}

li + li {
  margin-top: 3px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.rule-block {
  margin-bottom: 12px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.rule-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.rule-body {
  font-size: 13px;
  color: var(--text-muted);
}

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

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-soft);
  border-top: 1px dashed rgba(55, 65, 81, 0.8);
  padding-top: 10px;
}

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