:root {
  --bg-deep: #070a10;
  --bg-sea: #0d121b;
  --bg-bronze: #1a2635;
  --panel: rgba(12, 18, 28, 0.94);
  --paper: #e9e5d8;
  --paper-soft: #c3c7cf;
  --muted: #919cad;
  --line: rgba(139, 154, 179, 0.26);
  --line-strong: rgba(174, 191, 214, 0.36);
  --gold: #b9c7da;
  --teal: #6f90b3;
  --danger: #be6e68;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--paper);
  background:
    radial-gradient(900px 520px at 14% -6%, rgba(94, 122, 157, 0.2), transparent 58%),
    radial-gradient(1200px 700px at 86% 0%, rgba(50, 68, 95, 0.2), transparent 56%),
    linear-gradient(180deg, #0f1622 0%, #0a1019 38%, #070b12 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  filter: blur(4px);
}

body::before {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 140px;
  background: radial-gradient(circle, rgba(96, 122, 155, 0.28), transparent 68%);
}

body::after {
  width: 540px;
  height: 540px;
  right: -180px;
  top: 80px;
  background: radial-gradient(circle, rgba(53, 75, 108, 0.3), transparent 68%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 18, 0.78);
  border-bottom: 1px solid rgba(139, 154, 179, 0.22);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #eef1f6;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(159, 179, 205, 0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(170, 189, 214, 0.26), transparent 34%),
    linear-gradient(180deg, #2e4058, #141d2b);
  display: grid;
  place-items: center;
  color: #edf2fb;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(197, 212, 232, 0.1);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-kicker {
  color: #a6b3c6;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.brand-title {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(158, 178, 205, 0.24);
  background: rgba(15, 22, 32, 0.55);
}

.theme-switch-btn {
  border: 1px solid rgba(158, 178, 205, 0.24);
  border-radius: 9px;
  background: transparent;
  color: #c6d1e2;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  cursor: pointer;
}

.theme-switch-btn.active {
  border-color: rgba(164, 184, 210, 0.5);
  background: linear-gradient(180deg, rgba(57, 76, 104, 0.98), rgba(32, 44, 62, 0.98));
  color: #f0f4fb;
}

.top-tab-btn.active {
  border-color: rgba(164, 184, 210, 0.42);
  background: linear-gradient(180deg, rgba(56, 75, 102, 0.98), rgba(30, 42, 60, 0.98));
  color: #eef1f6;
}

body.tabs-enabled [data-tab-panel] {
  display: none;
}

body.tabs-enabled [data-tab-panel].tab-panel-active {
  display: block;
}

.panel {
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(128, 155, 189, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(14, 20, 31, 0.96), rgba(7, 11, 18, 0.98));
  box-shadow:
    0 28px 68px var(--shadow),
    inset 0 1px 0 rgba(188, 206, 232, 0.08);
}

.btn {
  border: 1px solid rgba(168, 189, 214, 0.3);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  color: #eef2f8;
  background: linear-gradient(180deg, rgba(58, 77, 103, 0.98), rgba(34, 46, 64, 0.98));
  cursor: pointer;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(205, 221, 242, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

.btn.alt {
  border-color: rgba(124, 154, 193, 0.35);
  background: linear-gradient(180deg, rgba(74, 103, 141, 0.98), rgba(42, 63, 91, 0.98));
}

.btn.dark,
.btn.ghost {
  border-color: rgba(158, 178, 205, 0.24);
  background: linear-gradient(180deg, rgba(30, 41, 57, 0.98), rgba(16, 24, 35, 0.98));
  color: #d5deeb;
}

main {
  padding: 30px 0 20px;
}

.hero {
  padding-bottom: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 390px;
  gap: 18px;
}

.hero-main,
.hero-access {
  padding: 34px;
}

.hero-kicker,
.panel-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: #f3e5c1;
  font-weight: 700;
}

h1 {
  margin-top: 12px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h2 {
  margin-top: 10px;
  font-size: 34px;
  line-height: 0.98;
}

.hero-lead,
.access-copy,
.auth-note,
.auth-state,
.value-copy,
.world-story p,
.feature-row p,
details p {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 52ch;
  color: #d8c49f;
  font-size: 18px;
  line-height: 1.6;
}

.hero-access-logo {
  position: relative;
  isolation: isolate;
}

.access-logo-badge {
  margin: 2px auto 4px;
  width: min(95%, 360px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  line-height: 0;
}

.access-logo-badge img {
  width: 95%;
  height: 95%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.3);
  transform-origin: center;
  opacity: 0.95;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.34));
}

.value-card {
  border: 1px solid rgba(223, 190, 132, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 16px;
}

.value-title {
  color: #f1ddb3;
  font-size: 20px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.value-copy {
  color: #ad9878;
  font-size: 13px;
  line-height: 1.5;
}

.slider {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.slider-window {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.32s ease;
}

.slide {
  min-width: 100%;
}

.slider-nav {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(223, 190, 132, 0.24);
  background: rgba(22, 18, 15, 0.86);
  color: #f0ddb0;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.slider-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 132, 0.28);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.slider-dot.active {
  background: rgba(118, 176, 182, 0.9);
  border-color: rgba(118, 176, 182, 1);
}

.hero-access {
  display: grid;
  align-content: start;
  gap: 14px;
}

.access-copy {
  margin: 0;
  color: #b79f7c;
  font-size: 15px;
  line-height: 1.45;
}

.auth-state {
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 246, 223, 0.08);
  border: 1px solid rgba(223, 190, 132, 0.18);
  color: #e4d3ac;
  font-size: 15px;
  min-height: 46px;
  display: flex;
  align-items: center;
}

.auth-state[data-state="loading"] {
  color: #f0ddb0;
  border-color: rgba(223, 190, 132, 0.22);
  background: rgba(223, 190, 132, 0.08);
}

.auth-state[data-state="ready"] {
  color: #cfe4cf;
  border-color: rgba(153, 191, 146, 0.24);
  background: rgba(115, 150, 108, 0.12);
}

.auth-state[data-state="guest"] {
  color: #e4d3ac;
}

.auth-state[data-state="error"] {
  color: #f1c1b7;
  border-color: rgba(177, 90, 74, 0.28);
  background: rgba(177, 90, 74, 0.12);
}

.auth-note {
  color: #9b8768;
  font-size: 14px;
  line-height: 1.45;
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.auth-actions .btn {
  width: 100%;
  text-align: center;
  font-size: 16px;
  padding: 14px 15px;
}

#openCompactBtn,
#openOnlineBtn,
#logoutBtn {
  display: none;
}

#tgLoginBox:empty {
  display: none;
}

.world {
  padding: 0 0 18px;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.world-story,
.world-features {
  padding: 26px;
}

.world-story p {
  color: #b7a07f;
  font-size: 15px;
  line-height: 1.6;
}

.feature-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.feature-row {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(223, 190, 132, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.feature-row h3 {
  font-size: 20px;
  line-height: 1.05;
  color: #f0ddb0;
}

.feature-row p {
  margin: 8px 0 0;
  color: #ac9677;
  font-size: 13px;
  line-height: 1.5;
}

.ratings-wrap {
  padding: 0 0 18px;
}

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rating-card {
  padding: 26px;
}

.rating-switch {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-switch-btn {
  border: 1px solid rgba(223, 190, 132, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #ccb48d;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

.rating-switch-btn.active {
  border-color: rgba(223, 190, 132, 0.38);
  color: #f0ddb0;
  background: rgba(223, 190, 132, 0.12);
}

.rating-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rating-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(223, 190, 132, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #cfba94;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.rating-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rating-name-main {
  color: #e2cd9f;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-name-sub {
  color: #a99270;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-score {
  color: #e9d6ab;
  font-weight: 700;
  white-space: nowrap;
}

.about-wrap {
  padding: 0 0 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.about-card {
  padding: 26px;
}

.about-card p {
  color: #b7a07f;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.news-wrap {
  padding: 0 0 18px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  padding: 26px;
}

.news-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.news-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(223, 190, 132, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.news-date {
  color: #bfa37a;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-title {
  margin-top: 6px;
  color: #f0ddb0;
  font-size: 20px;
  line-height: 1.05;
}

.news-item p {
  margin: 8px 0 0;
  color: #ac9677;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.flint-card .news-item {
  border-color: rgba(118, 176, 182, 0.22);
  background: rgba(107, 165, 167, 0.08);
}

.faq-wrap {
  padding: 0 0 24px;
}

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

details {
  border: 1px solid rgba(223, 190, 132, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #f0ddb0;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 10px 0 0;
  color: #ab9574;
  line-height: 1.45;
  font-size: 13px;
}

.guides-wrap {
  margin-top: 12px;
}

.guide-jump-actions {
  margin-top: 14px;
}

.guides-card {
  padding: 26px;
}

.guides-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(223, 190, 132, 0.12);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.guide-title {
  color: #f0ddb0;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 700;
}

.guide-item p {
  margin: 0;
  color: #ac9677;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.guide-page {
  padding-top: 24px;
}

.guide-nav-panel {
  padding: 26px;
}

.guide-nav-links {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-nav-link {
  border: 1px solid rgba(223, 190, 132, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: #dfc79c;
  background: rgba(255, 255, 255, 0.03);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.guide-content-wrap {
  padding: 12px 0 0;
}

.guide-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.guide-block {
  padding: 26px;
}

.guide-rich-text {
  margin-top: 12px;
  color: #cfba94;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.guide-rich-text b {
  color: #f0ddb0;
}

.guide-rich-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #f3e3bd;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 1px 5px;
}

.footer {
  border-top: 1px solid rgba(223, 190, 132, 0.08);
  color: #8f7e63;
  padding: 18px 0 28px;
  font-size: 12px;
  letter-spacing: 0.3px;
}

body.theme-light,
body.theme-ivory {
  color: #202737;
  background:
    radial-gradient(900px 520px at 14% -6%, rgba(194, 208, 229, 0.46), transparent 58%),
    radial-gradient(1200px 700px at 86% 0%, rgba(176, 194, 224, 0.42), transparent 56%),
    linear-gradient(180deg, #f0f4fb 0%, #e8eef8 42%, #dfe7f4 100%);
}

body.theme-ivory::before {
  background: radial-gradient(circle, rgba(153, 174, 208, 0.24), transparent 68%);
}

body.theme-ivory::after {
  background: radial-gradient(circle, rgba(130, 156, 194, 0.22), transparent 68%);
}

body.theme-ivory .topbar {
  background: rgba(232, 238, 248, 0.9);
  border-bottom-color: rgba(120, 142, 177, 0.32);
}

body.theme-ivory .brand,
body.theme-ivory h1,
body.theme-ivory h2,
body.theme-ivory h3,
body.theme-ivory .guide-title,
body.theme-ivory .value-title,
body.theme-ivory .news-title {
  color: #1f2a3c;
}

body.theme-ivory .brand-kicker,
body.theme-ivory .panel-kicker,
body.theme-ivory .hero-kicker,
body.theme-ivory .news-date {
  color: #546a8f;
}

body.theme-ivory .brand-mark {
  border-color: rgba(127, 148, 180, 0.34);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(180deg, #dce6f4, #b8c9e2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 6px 18px rgba(67, 90, 126, 0.12);
}

body.theme-ivory .panel {
  border-color: rgba(123, 145, 177, 0.3);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(151, 174, 208, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(246, 249, 253, 0.97), rgba(232, 239, 248, 0.98));
  box-shadow:
    0 22px 50px rgba(28, 42, 66, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-ivory .btn {
  border-color: rgba(114, 138, 173, 0.42);
  color: #f5f8fc;
  background: linear-gradient(180deg, rgba(72, 102, 141, 0.98), rgba(51, 73, 102, 0.98));
  box-shadow: inset 0 1px 0 rgba(223, 235, 251, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

body.theme-ivory .btn.dark,
body.theme-ivory .btn.ghost {
  border-color: rgba(127, 148, 180, 0.36);
  color: #24344d;
  background: linear-gradient(180deg, rgba(238, 244, 251, 0.98), rgba(220, 230, 244, 0.98));
}

body.theme-ivory .top-tab-btn.active {
  border-color: rgba(98, 126, 167, 0.55);
  background: linear-gradient(180deg, rgba(89, 117, 154, 0.98), rgba(57, 82, 117, 0.98));
  color: #f7f9fd;
}

body.theme-ivory .theme-switch {
  border-color: rgba(127, 148, 180, 0.36);
  background: rgba(219, 229, 244, 0.7);
}

body.theme-ivory .theme-switch-btn {
  border-color: rgba(127, 148, 180, 0.32);
  color: #2f4260;
}

body.theme-ivory .theme-switch-btn.active {
  border-color: rgba(98, 126, 167, 0.55);
  background: linear-gradient(180deg, rgba(89, 117, 154, 0.98), rgba(57, 82, 117, 0.98));
  color: #f7f9fd;
}

body.theme-ivory .hero-lead,
body.theme-ivory .access-copy,
body.theme-ivory .auth-note,
body.theme-ivory .value-copy,
body.theme-ivory .world-story p,
body.theme-ivory .about-card p,
body.theme-ivory .feature-row p,
body.theme-ivory details p,
body.theme-ivory .rating-row,
body.theme-ivory .guide-item p,
body.theme-ivory .news-item p {
  color: #485d80;
}

body.theme-ivory .slider-dots button,
body.theme-ivory .slider-dots .slider-dot,
body.theme-ivory .news-item strong,
body.theme-ivory .guide-rich-text code {
  color: #445b80;
}

body.theme-ivory .guide-nav-link {
  color: #4f668b;
}

body.theme-ivory .guide-rich-text {
  color: #4c6287;
}

body.theme-ivory .guide-rich-text b {
  color: #2d4364;
}

body.theme-ivory .rating-switch-btn {
  border-color: rgba(127, 148, 180, 0.32);
  color: #4d6285;
  background: rgba(255, 255, 255, 0.42);
}

body.theme-ivory .rating-switch-btn.active {
  border-color: rgba(98, 126, 167, 0.55);
  color: #f7f9fd;
  background: linear-gradient(180deg, rgba(89, 117, 154, 0.98), rgba(57, 82, 117, 0.98));
}

body.theme-ivory .rating-name-main {
  color: #324666;
}

body.theme-ivory .rating-name-sub {
  color: #5f7293;
}

body.theme-ivory .rating-score {
  color: #395074;
}

body.theme-ivory .auth-state {
  color: #2f435f;
  background: rgba(244, 249, 255, 0.86);
  border-color: rgba(126, 150, 183, 0.35);
}

body.theme-ivory .value-card,
body.theme-ivory .feature-row,
body.theme-ivory .rating-row,
body.theme-ivory details,
body.theme-ivory .news-item,
body.theme-ivory .guide-item,
body.theme-ivory .guide-nav-link {
  border-color: rgba(126, 150, 183, 0.26);
  background: rgba(255, 255, 255, 0.52);
}

body.theme-ivory .footer {
  border-top-color: rgba(121, 142, 175, 0.22);
  color: #657b9c;
}

body.theme-classic {
  color: #ead7b1;
  background:
    radial-gradient(900px 520px at 14% -6%, rgba(108, 76, 40, 0.24), transparent 58%),
    radial-gradient(1200px 700px at 86% 0%, rgba(52, 92, 99, 0.16), transparent 56%),
    linear-gradient(180deg, #1a120d 0%, #110d0b 38%, #0a0908 100%);
}

body.theme-classic::before {
  background: radial-gradient(circle, rgba(120, 83, 38, 0.34), transparent 68%);
}

body.theme-classic::after {
  background: radial-gradient(circle, rgba(55, 99, 105, 0.28), transparent 68%);
}

body.theme-classic .topbar {
  background: rgba(10, 9, 8, 0.78);
  border-bottom: 1px solid rgba(209, 174, 113, 0.12);
}

body.theme-classic .brand {
  color: #f3e3bd;
}

body.theme-classic .brand-mark {
  border: 1px solid rgba(223, 190, 132, 0.28);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 235, 187, 0.32), transparent 34%),
    linear-gradient(180deg, #8c5d30, #472b1a);
  color: #f8e5bc;
  box-shadow: inset 0 1px 0 rgba(255, 234, 184, 0.08);
}

body.theme-classic .brand-kicker {
  color: #bfa37a;
}

body.theme-classic .panel {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(224, 185, 110, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(28, 19, 14, 0.96), rgba(12, 10, 9, 0.98));
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 234, 184, 0.05);
}

body.theme-classic .btn {
  border: 1px solid rgba(223, 190, 132, 0.28);
  color: #f6e7c1;
  background: linear-gradient(180deg, rgba(128, 85, 44, 0.98), rgba(78, 50, 28, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 234, 184, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

body.theme-classic .btn.alt {
  border-color: rgba(118, 176, 182, 0.28);
  background: linear-gradient(180deg, rgba(63, 112, 118, 0.98), rgba(39, 71, 76, 0.98));
}

body.theme-classic .btn.dark,
body.theme-classic .btn.ghost {
  border-color: rgba(223, 190, 132, 0.18);
  background: linear-gradient(180deg, rgba(47, 34, 25, 0.98), rgba(24, 18, 14, 0.98));
  color: #e0cda3;
}

body.theme-classic .top-tab-btn.active {
  border-color: rgba(223, 190, 132, 0.38);
  background: linear-gradient(180deg, rgba(128, 85, 44, 0.98), rgba(78, 50, 28, 0.98));
  color: #f3e5bd;
}

body.theme-classic .theme-switch {
  border-color: rgba(223, 190, 132, 0.24);
  background: rgba(25, 18, 14, 0.55);
}

body.theme-classic .theme-switch-btn {
  border-color: rgba(223, 190, 132, 0.24);
  color: #d9c59d;
}

body.theme-classic .theme-switch-btn.active {
  border-color: rgba(223, 190, 132, 0.48);
  background: linear-gradient(180deg, rgba(128, 85, 44, 0.98), rgba(78, 50, 28, 0.98));
  color: #f3e5bd;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(224, 185, 110, 0.55);
  outline-offset: 3px;
}

.btn[aria-disabled="true"],
.btn:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .world-grid,
  .faq-grid,
  .news-grid,
  .ratings-grid,
  .guides-list,
  .guide-nav-links {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-access {
    padding: 26px;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 20px);
  }

  .topbar-inner {
    min-height: 0;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0;
    flex-direction: column;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-kicker {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .brand-title {
    font-size: 18px;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .top-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 42px;
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 12px;
  }

  .top-actions .top-tab-btn {
    min-height: 40px;
  }

  .top-actions .top-tab-btn:nth-child(5),
  .top-actions .top-tab-btn:nth-child(6) {
    grid-column: span 2;
  }

  .top-actions .theme-switch {
    grid-column: 1 / 4;
    width: 100%;
    justify-content: stretch;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
  }

  .top-actions .theme-switch-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    font-size: 11px;
  }

  .top-actions #openAuthBtnTop {
    grid-column: 4;
  }

  main {
    padding-top: 16px;
  }

  .hero-main,
  .hero-access,
  .world-story,
  .world-features,
  .about-card,
  .news-card,
  .rating-card,
  .guides-card {
    padding: 18px;
    border-radius: 22px;
  }

  .access-logo-badge img {
    width: 95%;
    height: 95%;
    transform: scale(1.22);
  }

  .access-copy {
    font-size: 14px;
    line-height: 1.48;
  }

  .auth-state {
    font-size: 12px;
    line-height: 1.35;
  }

  .auth-note {
    font-size: 11px;
  }

  .auth-actions .btn {
    font-size: 13px;
    padding: 12px 14px;
  }

  h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  h2 {
    font-size: 28px;
  }

  .slider {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .slider-nav {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}
