:root {
  color-scheme: dark;
  --bg: #070403;
  --bg-deep: #020202;
  --panel: #22150f;
  --panel-dark: #130a07;
  --paper: #d3b98b;
  --paper-soft: #f0dfb9;
  --paper-ink: #230b04;
  --line: rgba(245, 198, 112, 0.34);
  --line-dark: rgba(58, 18, 9, 0.58);
  --ink: #fff3d7;
  --muted: #c5a980;
  --gold: #f0c066;
  --gold-strong: #ffe19a;
  --red: #7f0d09;
  --red-dark: #390504;
  --blue: #53759f;
  --teal: #5ca8a8;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --ornament:
    linear-gradient(90deg, transparent, rgba(255, 226, 160, 0.24), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(134, 20, 12, 0.5), transparent 34rem),
    linear-gradient(180deg, #170504 0, #070403 28rem, #020202 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.is-menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.language-strip {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 214, 142, 0.22);
  background:
    linear-gradient(180deg, rgba(93, 16, 10, 0.96), rgba(38, 5, 4, 0.96)),
    var(--red-dark);
  color: #e9cda1;
  font-size: 12px;
}

.language-strip strong {
  min-width: 82px;
  border: 1px solid rgba(255, 214, 142, 0.34);
  border-radius: 4px;
  padding: 3px 10px;
  background: rgba(30, 6, 4, 0.55);
  color: var(--gold-strong);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px max(18px, calc((100vw - 1220px) / 2)) 12px;
  border-bottom: 1px solid rgba(247, 198, 112, 0.2);
  background:
    linear-gradient(180deg, rgba(35, 9, 6, 0.94), rgba(7, 4, 3, 0.94)),
    var(--bg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.brand,
.main-nav,
.notice-actions,
.launch-panel-head,
.channel-item,
.site-footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 225, 154, 0.58);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 214, 142, 0.24), rgba(121, 16, 9, 0.42)),
    #150905;
  color: var(--gold-strong);
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.34), 0 14px 28px rgba(0, 0, 0, 0.34);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Cinzel, Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.main-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 10px;
  color: #f4d9ad;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: rgba(255, 225, 154, 0.28);
  background: linear-gradient(180deg, rgba(130, 18, 12, 0.92), rgba(59, 8, 5, 0.92));
  outline: none;
}

.main-nav .nav-download {
  border-color: rgba(255, 225, 154, 0.52);
  background: linear-gradient(180deg, #f0c066, #9c4c17);
  color: #1d0702;
  text-shadow: none;
  box-shadow: 0 12px 28px rgba(148, 32, 12, 0.32);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 225, 154, 0.32);
  border-radius: var(--radius);
  background: rgba(31, 8, 5, 0.78);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.portal-hero {
  position: relative;
  width: min(1220px, calc(100% - 28px));
  min-height: 310px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  border-inline: 1px solid rgba(255, 214, 142, 0.22);
  background: #160504;
  overflow: hidden;
}

.portal-hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 4, 3, 0.88) 0, rgba(75, 8, 6, 0.46) 42%, rgba(20, 4, 3, 0.9) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.72) 100%),
    url("/assets/site/hero-world.png") center / cover;
  filter: saturate(0.9) contrast(1.05);
}

.portal-logo {
  position: relative;
  z-index: 1;
  width: min(760px, 92%);
  margin: 0 auto 92px;
  text-align: center;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.88);
}

.portal-logo span {
  display: block;
  color: #ffe5a5;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(58px, 12vw, 124px);
  font-weight: 800;
  line-height: 0.9;
}

.portal-logo strong {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid rgba(255, 226, 160, 0.24);
  border-radius: 999px;
  padding: 7px 15px;
  background: rgba(21, 5, 4, 0.62);
  color: #f0d5a2;
  font-size: 13px;
  text-transform: uppercase;
}

.download-ribbon {
  position: absolute;
  z-index: 2;
  left: 250px;
  right: 0;
  bottom: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 226, 160, 0.36);
  background:
    linear-gradient(180deg, rgba(133, 19, 12, 0.94), rgba(56, 7, 5, 0.98)),
    var(--red);
  padding: 16px 28px;
  box-shadow: 0 -14px 38px rgba(0, 0, 0, 0.32);
}

.download-ribbon::before {
  content: "";
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 226, 160, 0.54);
  border-radius: 7px;
  background:
    linear-gradient(180deg, #f4d084, #9f521c),
    var(--gold);
  box-shadow: inset 0 0 0 4px rgba(54, 10, 5, 0.44);
}

.download-ribbon span,
.download-ribbon small {
  display: block;
}

.download-ribbon span {
  color: #fff2cf;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  text-transform: uppercase;
}

.download-ribbon small {
  margin-top: 3px;
  color: #f2c68c;
  font-size: 13px;
  font-weight: 700;
}

.portal-layout {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.portal-sidebar,
.portal-main {
  min-width: 0;
}

.portal-box,
.parchment-panel,
.notice-panel {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portal-box {
  position: relative;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(238, 211, 161, 0.98), rgba(196, 156, 97, 0.98)),
    var(--paper);
  color: var(--paper-ink);
  padding: 14px;
}

.portal-box::before,
.parchment-panel::before,
.notice-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(83, 27, 12, 0.22);
  border-radius: 5px;
}

.portal-box h2,
.panel-title h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
}

.portal-box h2 {
  min-height: 38px;
  display: grid;
  place-items: center;
  margin: -6px -6px 12px;
  border: 1px solid rgba(255, 226, 160, 0.28);
  border-radius: 6px;
  background: linear-gradient(180deg, #8e160f, #430705);
  color: #ffe7af;
  font-size: 15px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.nav-box a,
.login-box a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  border: 1px solid rgba(69, 17, 8, 0.58);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(135, 18, 11, 0.95), rgba(65, 9, 6, 0.95)),
    var(--red);
  color: #ffe9bb;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
}

.login-box .big-action {
  min-height: 54px;
  background: linear-gradient(180deg, #f3c66d, #9c4b17);
  color: #210803;
  font-size: 15px;
  text-shadow: none;
}

.score-row,
.event-list li {
  border-top: 1px solid rgba(75, 24, 11, 0.22);
  padding: 10px 4px;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-row span,
.event-list span {
  color: #7c4224;
  font-size: 12px;
  font-weight: 700;
}

.score-row strong {
  color: #681209;
  font-size: 12px;
  text-align: right;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-list strong,
.event-list span {
  display: block;
}

.event-list strong {
  color: #2d0d05;
  font-size: 13px;
}

.notice-panel {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #140705;
}

.notice-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 4, 3, 0.12), rgba(10, 4, 3, 0.82)),
    url("/assets/site/hero-world.png") center / cover;
}

.notice-copy {
  position: relative;
  z-index: 1;
  margin: 20px;
  border: 1px solid rgba(255, 226, 160, 0.22);
  border-radius: var(--radius);
  background: rgba(14, 5, 4, 0.76);
  padding: clamp(22px, 4vw, 34px);
}

.notice-copy time,
.panel-title span,
.class-detail span,
.side-news time {
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-copy h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: #ffe7ad;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 0.98;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
}

.notice-copy p {
  max-width: 720px;
  color: #ead3a8;
  font-size: 16px;
  line-height: 1.7;
}

.notice-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 900;
}

.primary-action {
  border: 1px solid rgba(255, 226, 160, 0.58);
  background: linear-gradient(180deg, #f2c56d, #9d4c17);
  color: #210803;
}

.secondary-action {
  border: 1px solid rgba(255, 226, 160, 0.26);
  background: rgba(48, 9, 6, 0.82);
  color: #ffedc7;
}

.parchment-panel {
  position: relative;
  margin-top: 16px;
  background:
    linear-gradient(180deg, rgba(245, 224, 185, 0.98), rgba(204, 168, 111, 0.98)),
    var(--paper);
  color: var(--paper-ink);
  padding: clamp(20px, 4vw, 30px);
}

.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(70, 21, 9, 0.22);
  padding-bottom: 14px;
}

.panel-title h2 {
  color: #260b04;
  font-size: clamp(24px, 4vw, 38px);
}

.step-grid,
.system-grid {
  display: grid;
  gap: 12px;
}

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

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

.step-grid article,
.system-grid article {
  min-height: 170px;
  border: 1px solid rgba(68, 21, 9, 0.28);
  border-radius: 6px;
  background: rgba(255, 245, 220, 0.4);
  padding: 16px;
}

.step-grid span {
  color: #8a1b0f;
  font-family: Cinzel, Georgia, serif;
  font-weight: 900;
}

.step-grid h3,
.system-grid h3,
.side-news h3 {
  margin-bottom: 8px;
  color: #230b04;
  font-size: 18px;
}

.step-grid p,
.system-grid p,
.class-detail p,
.side-news p {
  margin-bottom: 0;
  color: #6e3f22;
  line-height: 1.58;
}

.step-grid a,
.system-grid a,
.content-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 14px;
  border-bottom: 1px solid currentColor;
  color: #7a140b;
  font-weight: 900;
}

.class-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
}

.class-tabs {
  display: grid;
  gap: 8px;
}

.class-tab {
  min-height: 46px;
  border: 1px solid rgba(68, 21, 9, 0.34);
  border-radius: 5px;
  background: rgba(255, 245, 220, 0.34);
  color: #52200e;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  padding: 0 12px;
}

.class-tab.is-active,
.class-tab:hover {
  background: linear-gradient(180deg, #8e160f, #430705);
  color: #ffe7af;
}

.class-detail {
  min-height: 250px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(68, 21, 9, 0.28);
  border-radius: 6px;
  background: rgba(255, 245, 220, 0.38);
  padding: 18px;
}

.class-detail img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 1px solid rgba(70, 21, 9, 0.28);
  border-radius: 6px;
  background: rgba(29, 8, 4, 0.2);
  padding: 10px;
}

.class-detail span {
  color: #7d170c;
}

.class-detail h3 {
  margin: 4px 0 10px;
  color: #220a04;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(30px, 5vw, 52px);
}

.launch-panel-head {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.launch-panel-head span,
.launch-panel-head strong {
  font-size: 11px;
}

.launch-panel-head span {
  color: #7c4224;
  font-weight: 800;
}

.launch-panel-head strong {
  color: #7a140b;
  text-align: right;
}

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

.countdown-grid div {
  min-height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(69, 17, 8, 0.24);
  border-radius: 5px;
  background: rgba(255, 245, 220, 0.34);
}

.countdown-grid strong,
.countdown-grid span {
  display: block;
}

.countdown-grid strong {
  color: #260b04;
  font-family: Cinzel, Georgia, serif;
  font-size: 24px;
}

.countdown-grid span {
  color: #7c4224;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-list {
  display: grid;
  gap: 7px;
}

.channel-item {
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  border-top: 1px solid rgba(75, 24, 11, 0.18);
  padding: 8px 0;
}

.channel-item span {
  color: #260b04;
  font-weight: 900;
}

.channel-item small {
  color: #7c4224;
  font-size: 11px;
}

.channel-item b {
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(83, 117, 159, 0.14);
  color: #24415c;
  font-size: 10px;
  text-transform: uppercase;
}

.side-news {
  display: grid;
  gap: 12px;
}

.side-news article {
  border-top: 1px solid rgba(75, 24, 11, 0.2);
  padding-top: 10px;
}

.side-news time {
  color: #7a140b;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(18px, calc((100vw - 1220px) / 2));
  border-top: 1px solid rgba(255, 226, 160, 0.14);
  background: #050202;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span,
.footer-links a {
  color: #c1a57a;
  font-size: 13px;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--gold-strong);
}

.content-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 58px;
}

.content-hero {
  min-height: 360px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(255, 226, 160, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(12, 4, 3, 0.92), rgba(62, 8, 5, 0.42)),
    url("/assets/site/hero-world.png") center / cover;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.content-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: #ffe7ad;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.content-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #ead3a8;
  font-size: 17px;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 42px 0;
}

.content-grid article,
.content-note {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(245, 224, 185, 0.98), rgba(204, 168, 111, 0.98)),
    var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.content-grid article {
  min-height: 230px;
  padding: 22px;
}

.content-grid span {
  color: #8a1b0f;
  font-family: Cinzel, Georgia, serif;
  font-weight: 900;
}

.content-grid h2,
.content-note h2 {
  margin: 8px 0 10px;
  color: #230b04;
  font-size: 22px;
}

.content-grid p,
.content-note p {
  margin-bottom: 0;
  color: #6e3f22;
  line-height: 1.65;
}

.content-note {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
}

.download-panel .primary-action {
  width: min(280px, 100%);
  justify-self: end;
}

.requirements-table,
.ranking-table {
  display: grid;
  gap: 8px;
}

.requirements-table div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(75, 24, 11, 0.2);
  padding: 12px 0;
}

.requirements-table strong {
  color: #230b04;
}

.requirements-table span {
  color: #6e3f22;
  line-height: 1.5;
}

.ranking-board,
.notice-state {
  position: relative;
  margin-top: 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(245, 224, 185, 0.98), rgba(204, 168, 111, 0.98)),
    var(--paper);
  color: var(--paper-ink);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow);
}

.ranking-board::before,
.notice-state::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(83, 27, 12, 0.22);
  border-radius: 5px;
}

.ranking-head {
  position: relative;
  z-index: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 226, 160, 0.28);
  border-radius: 6px;
  background: linear-gradient(180deg, #8e160f, #430705);
  color: #ffe7af;
  padding: 0 14px;
}

.ranking-head span {
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

.ranking-head strong {
  font-size: 12px;
  text-transform: uppercase;
}

.ranking-table {
  position: relative;
  z-index: 1;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 1.2fr 1fr 0.6fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(68, 21, 9, 0.22);
  border-radius: 5px;
  background: rgba(255, 245, 220, 0.38);
  padding: 0 12px;
}

.ranking-row.is-head {
  color: #4d1708;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-empty {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(68, 21, 9, 0.3);
  border-radius: 5px;
  color: #6e3f22;
  text-align: center;
  padding: 18px;
}

.notice-state strong {
  display: block;
  margin-bottom: 8px;
  color: #7a140b;
  font-family: Cinzel, Georgia, serif;
  font-size: 24px;
}

.notice-state p {
  margin-bottom: 0;
  color: #6e3f22;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .portal-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .right-sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .right-sidebar .portal-box {
    margin-bottom: 0;
  }

  .download-ribbon {
    left: 210px;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 70px;
    padding-inline: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 100px;
    left: 18px;
    right: 18px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    border: 1px solid rgba(255, 226, 160, 0.22);
    border-radius: var(--radius);
    background: rgba(15, 4, 3, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    justify-content: flex-start;
    min-height: 46px;
  }

  .download-ribbon {
    left: 0;
  }

  .step-grid,
  .system-grid,
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .class-layout,
  .content-note,
  .requirements-table div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar,
  .right-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .portal-box {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .language-strip {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .portal-hero,
  .portal-layout {
    width: calc(100% - 20px);
  }

  .portal-hero {
    min-height: 300px;
  }

  .portal-logo {
    margin-bottom: 112px;
  }

  .download-ribbon {
    min-height: 94px;
    padding: 15px;
  }

  .download-ribbon::before {
    width: 42px;
    height: 42px;
  }

  .portal-sidebar,
  .right-sidebar,
  .step-grid,
  .system-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .notice-panel {
    min-height: 520px;
  }

  .notice-copy {
    margin: 12px;
  }

  .notice-copy h1 {
    font-size: 38px;
  }

  .notice-actions a,
  .final-cta .primary-action,
  .download-panel .primary-action {
    width: 100%;
  }

  .download-panel .primary-action {
    justify-self: stretch;
  }

  .ranking-row {
    grid-template-columns: 40px 1fr;
  }

  .ranking-row span:nth-child(3),
  .ranking-row span:nth-child(4) {
    display: none;
  }

  .panel-title,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .class-tab {
    text-align: center;
  }

  .class-detail {
    grid-template-columns: 1fr;
  }

  .content-page {
    width: calc(100% - 28px);
    padding-top: 34px;
  }

  .content-hero {
    min-height: 420px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
