:root {
  --color-bg: #2d3436;
  --color-surface: #353b3c;
  --color-primary: #4a6fa5;
  --color-accent: #74b9ff;
  --color-text: #dfe6e9;
  --color-muted: #b2bec3;
  --color-border: #4a5568;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.28);
  --max-width: 1180px;
  --radius-card: 6px;
  --font-heading: "Fjalla One", sans-serif;
  --font-body: "Hind", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--color-bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(116, 185, 255, 0.08), transparent 30%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 3px,
      transparent 3px,
      transparent 18px
    ),
    var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
}

body:has(#ck-banner) {
  padding-bottom: 92px;
}

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

img {
  max-width: 100%;
  display: block;
}

main {
  min-height: 60vh;
  overflow-x: clip;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(45, 52, 54, 0.92);
  border-bottom: 1px solid rgba(116, 185, 255, 0.24);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid rgba(116, 185, 255, 0.35);
  border-radius: 8px;
  background: rgba(45, 52, 54, 0.95);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tagline {
  display: block;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--color-muted);
  font-weight: 600;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
  background: rgba(116, 185, 255, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  border-bottom: 2px solid rgba(116, 185, 255, 0.3);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(116, 185, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.24), transparent 45%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 32px
    );
  pointer-events: none;
}

.hero-inner,
.split-layout,
.content-grid {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(116, 185, 255, 0.3);
  background: rgba(53, 59, 60, 0.8);
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.eyebrow::before {
  content: "ᚠ";
  font-size: 0.95rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.1rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 16px;
}

.hero-copy p {
  max-width: 62ch;
  color: var(--color-text);
  font-size: 1.08rem;
}

.hero-panel {
  padding: 28px;
  background: linear-gradient(180deg, rgba(53, 59, 60, 0.96), rgba(38, 44, 45, 0.96));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.hero-stat {
  padding: 18px;
  border-radius: var(--radius-card);
  background: rgba(116, 185, 255, 0.08);
  border: 1px solid rgba(116, 185, 255, 0.14);
}

.hero-stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid rgba(116, 185, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-primary), #3b5a86);
  color: #f5fbff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover,
button.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #5b81b7, #45699b);
}

.button.secondary {
  background: transparent;
  color: var(--color-text);
}

.section {
  padding: 76px 0;
  border-bottom: 1px solid rgba(116, 185, 255, 0.24);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title p,
.lead,
.muted {
  color: var(--color-muted);
}

.divider {
  width: 92px;
  height: 3px;
  margin: 18px 0 22px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.grid-3,
.grid-4,
.news-grid,
.faq-preview,
.criteria-grid,
.category-grid,
.form-grid,
.footer-grid,
.stats-grid {
  display: grid;
  gap: 24px;
}

.grid-3,
.news-grid,
.criteria-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.category-grid,
.faq-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.news-card,
.info-card,
.faq-item,
.category-panel,
.rank-card,
.guide-card,
.contact-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(53, 59, 60, 0.98), rgba(42, 48, 49, 0.98));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.card::before,
.news-card::before,
.info-card::before,
.faq-item::before,
.category-panel::before,
.rank-card::before,
.guide-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--color-accent), rgba(116, 185, 255, 0.18));
  transition: width 0.25s ease;
}

.card:hover::before,
.news-card:hover::before,
.info-card:hover::before,
.faq-item:hover::before,
.category-panel:hover::before,
.rank-card:hover::before,
.guide-card:hover::before,
.contact-panel:hover::before {
  width: 5px;
}

.card-media,
.rank-media,
.game-inline-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-media img,
.rank-media img,
.game-inline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body,
.news-body,
.info-card-body,
.rank-body,
.contact-body {
  padding: 24px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(116, 185, 255, 0.3);
  background: rgba(116, 185, 255, 0.08);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.chip-set,
.filter-group,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 16px;
}

.chip:hover,
.chip.active-filter {
  background: rgba(116, 185, 255, 0.18);
}

.list-check {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.list-check li {
  margin-bottom: 10px;
  color: var(--color-text);
}

.list-check li::before {
  content: "✓";
  color: var(--color-accent);
  margin-right: 10px;
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.rune-block,
.stone-panel,
.highlight-panel,
.newsletter-panel {
  padding: 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, rgba(53, 59, 60, 0.96), rgba(36, 42, 43, 0.96)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 5px,
      transparent 5px,
      transparent 22px
    );
  box-shadow: var(--shadow-soft);
}

.rune-block strong {
  color: var(--color-accent);
}

.news-thumb {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(74, 111, 165, 0.82), rgba(116, 185, 255, 0.3)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 3px,
      transparent 3px,
      transparent 18px
    );
  position: relative;
}

.news-thumb::after {
  content: "ᚱ ᚢ ᚾ ᛖ";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-heading);
  letter-spacing: 0.3em;
}

.news-meta,
.rank-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.rank-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 31, 33, 0.9);
  color: var(--color-accent);
  border: 1px solid rgba(116, 185, 255, 0.3);
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.icon-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon-point span {
  font-size: 1.5rem;
  line-height: 1;
}

.guide-card,
.contact-panel,
.info-card {
  padding: 26px;
}

.newsletter-form,
.contact-form {
  display: grid;
  gap: 14px;
}

.newsletter-inline,
.form-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: rgba(20, 24, 25, 0.72);
  color: var(--color-text);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(116, 185, 255, 0.18);
  border-color: var(--color-accent);
}

.faq-item {
  padding: 0;
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question span:last-child {
  color: var(--color-accent);
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--color-muted);
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-item.open .faq-answer {
  max-height: 320px;
}

.filter-group button {
  appearance: none;
  border: 1px solid rgba(116, 185, 255, 0.25);
  background: rgba(116, 185, 255, 0.08);
  color: var(--color-text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter-group button.active-filter,
.filter-group button:hover {
  background: rgba(116, 185, 255, 0.2);
  color: #fff;
}

.hidden-card {
  display: none;
}

.site-footer {
  padding: 42px 0 70px;
  background: rgba(19, 22, 23, 0.9);
}

.footer-grid {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  align-items: start;
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-links,
.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a,
.footer-policy-links a {
  color: var(--color-muted);
}

.footer-links a:hover,
.footer-policy-links a:hover {
  color: var(--color-accent);
}

.table-wrap {
  overflow-x: auto;
}

#ck-banner {
  flex-wrap: wrap;
}

#ck-banner span {
  flex: 1 1 640px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th,
td {
  padding: 14px 16px;
  border: 1px solid rgba(116, 185, 255, 0.18);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(116, 185, 255, 0.12);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.page-hero {
  padding: 70px 0 46px;
}

.page-hero p {
  max-width: 72ch;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.notice-inline {
  padding: 18px 20px;
  border-left: 4px solid var(--color-accent);
  background: rgba(116, 185, 255, 0.08);
  border-radius: var(--radius-card);
}

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

.mini-game {
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: rgba(20, 24, 25, 0.48);
}

.mini-game p:last-child,
.card-body p:last-child,
.news-body p:last-child,
.info-card p:last-child,
.guide-card p:last-child,
.contact-panel p:last-child,
.stone-panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(44vw, 220px);
  }

  .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1100;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 14px 14px;
    background: rgba(45, 52, 54, 0.98);
    border: 1px solid rgba(116, 185, 255, 0.3);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .split-layout,
  .content-grid,
  .grid-3,
  .grid-4,
  .news-grid,
  .criteria-grid,
  .category-grid,
  .faq-preview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: row;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .newsletter-inline,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .brand-logo,
  .footer-logo {
    width: 44px;
    height: 44px;
  }

  .brand > div {
    display: none;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
    overflow-wrap: anywhere;
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 54px;
  }

  .section,
  .site-footer {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .hero-panel,
  .rune-block,
  .stone-panel,
  .highlight-panel,
  .newsletter-panel,
  .card-body,
  .news-body,
  .rank-body,
  .contact-panel,
  .info-card,
  .guide-card {
    padding: 20px;
  }

  .hero-stats,
  .mini-game-grid {
    grid-template-columns: 1fr;
  }

  #ck-banner {
    padding-bottom: 18px !important;
  }
}
