@import url("./language-picker.css");

:root {
  --bg: #111921;
  --panel: #19242e;
  --text: #f2f4f6;
  --muted: #b7c4ce;
  --accent: #a7e5cf;
  --line: #344452;
  --violet: #d3c5fa;
}

body { font-size: 16px; line-height: 1.65; }
html { scroll-behavior: auto; scroll-padding-top: 110px; }
.container { width: min(1280px, calc(100% - 72px)); }
.top { background: var(--bg); backdrop-filter: none; }
.top-inner { height: auto; min-height: 76px; gap: 22px; padding-block: 10px; }
.brand { flex: 0 0 auto; }
#main-nav { align-items: center; gap: 5px; font-size: 14px; }
#main-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; }
#main-nav a:is([aria-current], :hover) { color: #edf9f5; border-color: #405966; background: #223440; text-decoration: none; }
#main-nav a[aria-current] { box-shadow: inset 0 -2px #a7e5cf; }
.language-control { background: var(--panel); }
.language-control select { background: var(--panel); font-size: 14px; min-width: 82px; }
.button, .button.small, .header-buy { min-height: 46px; font-size: 14px; padding: 10px 17px; border-radius: 10px; gap: .55em; text-decoration: none; }
.button:not(.primary):not(.pale) { background: linear-gradient(160deg,#263646,#1a2835); border-color: #485c70; color: #f2f6fa; }
.button.primary { background: linear-gradient(130deg,#c9f9e7,#9edbc6); color: #112e2b; border-color: #c8f2dd; }
.button.pale { background: linear-gradient(135deg,#ecddff,#ccb8fa); color: #261c3d; border-color: #e7d8ff; }
.button:not(:is(:disabled,[aria-disabled="true"],.disabled-link)):is(:hover,:focus-visible) { box-shadow: 0 6px 17px #030b1790; border-color: #c3e9e0; }
.button:is(:disabled,[aria-disabled="true"],.disabled-link) { filter: none; box-shadow: none; }
.button:focus-visible, a.text-link:focus-visible { outline: 2px solid #bdf8e5; outline-offset: 3px; }
a.text-link, a.nexus-alternative-download {
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px; max-width: 100%; padding: .45em .78em;
  border: 1px solid #476172; border-radius: 9px; background: #213240; color: #e3f4f1;
  font-size: .9rem; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none;
}
a.text-link:is(:hover,:focus-visible), a.nexus-alternative-download:is(:hover,:focus-visible) { color:#fff; background:#2c4554; border-color:#7faeb0; text-decoration:none; }
.action-icon { inline-size: 18px; block-size: 18px; flex: none; }
.skip { border-radius: 5px; }
.skip:not(:focus-visible) { clip-path: inset(50%); pointer-events: none; }
.hero, .bottom-cta { background: none; }
.hero { padding-block: clamp(52px, 7vw, 102px); }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
h1 { font-size: clamp(38px, 5.3vw, 70px); font-weight: 680; letter-spacing: -.045em; line-height: 1.09; margin-block: 0 22px; }
h2 { font-size: clamp(27px, 3.5vw, 40px); font-weight: 650; letter-spacing: -.025em; line-height: 1.18; }
.lead { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; max-width: 61ch; }
.eyebrow { font-size: 12px; letter-spacing: .09em; margin-block-end: 12px; }
.eyebrow::before { display: none; }
.fine, .status-note, .payment-methods span, .payment-methods small { font-size: 13px; line-height: 1.6; }
.home-preview { margin: 0; min-width: 0; }
.home-preview a { display: block; }
.home-preview img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.home-preview figcaption { margin-block-start: 9px; color: var(--muted); font-size: 14px; }
.home-hero { border-bottom: 1px solid var(--line); }
.home-hero .actions { margin-block-end: 0; align-items: center; }
.home-editions .edition-card { border-top: 3px solid var(--accent); }
.home-editions .edition-card.gaming { border-top-color: var(--violet); }
.home-nexus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #172234;
}
.home-nexus img { width: clamp(62px, 8vw, 92px); height: auto; }
.home-nexus h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.home-nexus p, .home-live p { margin: 0; max-width: 65ch; color: var(--muted); }
.home-live { border-top: 1px solid var(--line); }
.home-live .actions { align-items: center; margin-block-end: 0; }
.home-live .text-link { margin: 0; }
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-heading p, .split p, .features li, .checkout-explainer p, .order-summary > p, .reading p, details p, summary { font-size: 15px; line-height: 1.65; }
.edition-card, .edition-card.gaming { background: var(--panel); border-color: var(--line); border-radius: 10px; box-shadow: none; }
.edition-card.gaming { border-top: 3px solid var(--violet); }
.edition-card.gaming:hover { transform: none; box-shadow: none; }
.edition-card h3 { font-size: 26px; font-weight: 650; margin: 0 0 10px; }
.edition-card p { margin-block: 10px; font-size: 16px; line-height: 1.6; }
.edition-card .text-link { margin-top: 9px; }
.home-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
.home-links h2 { font-size: 28px; margin: 0 0 10px; }
.home-links p { color: var(--muted); margin: 0; max-width: 53ch; }
.gaming-showcase { box-shadow: none; background: var(--panel); border-color: var(--line); border-radius: 10px; }
.gaming-showcase figure, .gaming-showcase:hover figure { transform: none; }
.gaming-showcase img { box-shadow: none; }
.table-wrap { max-width: 100%; }
.table-wrap th, .table-wrap td { font-size: 14px; }
.comparison-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-block-end: 12px;
  padding: 7px 12px;
  min-height: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.3;
}
.comparison-filter[hidden], #edition-comparison tr[hidden] { display: none; }
.comparison-filter:hover { border-color: var(--accent); }
.comparison-filter input { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-grid > * { min-width: 0; overflow-wrap: anywhere; }
.contact-form .button { white-space: normal; text-align: center; }
.contact-form label, .contact-form .consent { font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
.footer-top p, .footer-top > div, .footer-bottom { font-size: 14px; }
.footer-top > div > a:not(.brand) { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid #304654; border-radius: 8px; min-height: 44px; padding: 7px 10px; background: #182631; color: #dbe7f0; text-decoration: none; }
.footer-top > div > a:not(.brand)::after { content: '›' / ''; color: #9edbc6; font-size: 1.12em; }
.footer-top > div > a:not(.brand):is(:hover,:focus-visible,[aria-current]) { background: #263d48; border-color: #52707b; color: #fff; text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .footer-top { grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); }
.site-footer .footer-top h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}
.site-footer .footer-brand .brand { width: fit-content; }
.site-footer .footer-brand p { margin-block-start: 6px; max-width: 28ch; }
.catalog-card, .hub-banner { background: var(--panel); border-color: var(--line); border-radius: 10px; box-shadow: none; }
.catalog-card:hover { transform: none; }
.catalog-card img, .hub-banner img { object-fit: contain; }
.news-card img[src="assets/apps/hub.svg"] { object-fit: contain; padding: 24px; background: var(--panel); }
.nexus-news img { object-fit: contain; padding: 32px; background: #172234; }
.nexus-news time { display: block; margin-block-end: 8px; color: var(--muted); font-size: 14px; }

.game-gallery-page { padding-block: clamp(38px, 6vw, 76px); }
.game-gallery-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 30px; margin-block-end: 26px; }
.game-gallery-heading h1 { margin: 0; }
.game-release { color: var(--muted); font-size: clamp(16px, 2vw, 20px); margin: 0; }
.game-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.game-gallery h2 { grid-column: 1 / -1; font-size: 14px; font-weight: 550; letter-spacing: 0; margin: 0; color: var(--muted); }
.game-gallery figure { margin: 0; min-width: 0; }
.game-gallery .gallery-cover { grid-column: 1 / -1; }
.game-gallery a { display: block; border-radius: 8px; }
.game-gallery img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.game-gallery a:hover img { border-color: var(--accent); }

.top-inner { gap: 14px; }
#main-nav { gap: 4px; }
#main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 7px;
  line-height: 1.3;
}
#main-nav a:hover, #main-nav a[aria-current="page"] {
  color: var(--text);
  background: #243342;
}
#main-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
#main-nav a.mobile-download { display: none; }
.nav-icon { flex: none; width: 17px; height: 17px; color: var(--accent); }
.button, .nav-toggle, #main-nav a, .text-link, .catalog-card, details > summary {
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.button { white-space: normal; text-align: center; line-height: 1.25; }
.button.primary:not(:disabled):not([aria-disabled="true"]):hover {
  color: #132821;
  background: #d0f9e8;
  border-color: #d0f9e8;
}
.button:not(.primary):not(.pale):not(:disabled):not([aria-disabled="true"]):hover { background: #25384a; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.text-link:hover { color: #e0fff2; text-underline-offset: .24em; }
.catalog-card:hover, .game-gallery a:hover { border-color: var(--accent); }
details > summary { cursor: pointer; }
details > summary:hover { color: var(--accent); }
.site-footer .footer-top a:not(.brand) { line-height: 1.45; padding-block: 4px; }

.news-page, .story-page { padding-block: clamp(36px, 6vw, 80px); }
.news-heading { padding-block-end: clamp(22px, 4vw, 44px); }
.news-heading h1, .story-heading h1 { text-wrap: balance; }
.news-heading .lead, .story-heading .lead { margin-block-end: 0; }
.story-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2637, #1a2f33);
  border: 1px solid #38515e;
  border-radius: 16px;
}
.story-feature-image {
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: radial-gradient(ellipse at 50% 30%, #24484f, #121c2a 72%);
}
.story-feature-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #455b69;
  box-shadow: 0 18px 38px #080f19aa;
}
.story-feature-copy { align-self: center; padding: clamp(22px, 3.5vw, 48px); }
.story-feature h2 { margin-block: 16px 12px; max-width: 19ch; }
.story-feature p { color: var(--muted); margin-block: 0 24px; max-width: 42ch; }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .875rem; }
.story-meta span { color: var(--accent); font-weight: 700; }
.story-meta time { color: var(--muted); }
.story-meta img { border-radius: 8px; }
.news-archive { padding-block-start: clamp(36px, 5vw, 68px); }
.news-archive > h2 { margin-block: 0 18px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.story-card { min-width: 0; }
.story-card > a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.story-card > a:hover { background: #202e3b; border-color: var(--accent); box-shadow: 0 12px 30px #080f184d; }
.story-media { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #152335; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s; }
.story-card > a:hover .story-media img { transform: scale(1.025); }
.story-apps .story-media { background: radial-gradient(ellipse at 50% 0, #2c4567, #152335 72%); }
.story-apps .story-media img { width: min(35%, 120px); height: auto; }
.story-system .story-media img { object-position: center 30%; }
.story-card-copy { padding: clamp(17px, 2vw, 25px); display: flex; flex: 1; flex-direction: column; }
.story-card-copy h3 { margin-block: 10px; font-size: clamp(19px, 2vw, 25px); line-height: 1.25; }
.story-card-copy p { margin-block: 0 18px; color: var(--muted); }
.story-card-copy .story-link { margin-block-start: auto; color: var(--accent); font-weight: 700; font-size: .9rem; }
.story-link::after, .story-back::before {
  content: "";
  display: inline-block;
  flex: none;
  width: .48em;
  height: .48em;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  margin-inline-start: .55em;
  vertical-align: .12em;
}
.story-back { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; margin-block: 0 18px; }
.story-back::before { transform: rotate(-135deg); margin: 0 .65em 0 .2em; }
.story-heading { max-width: 70ch; margin-block: 0 clamp(24px, 5vw, 55px); }
.story-heading h1 { margin-block-start: 12px; }
.story-app-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; max-width: 100ch; }
.story-app-heading img { width: clamp(70px, 13vw, 150px); height: auto; }
.story-cover { margin: 0 0 clamp(28px, 5vw, 48px); max-width: 960px; }
.story-cover img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.story-cover figcaption { margin-block-start: 6px; color: var(--muted); font-size: .88rem; }
.story-body { max-width: 69ch; }
.story-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.story-body p { color: var(--muted); margin: 0 0 26px; line-height: 1.75; }
.story-body .actions { margin-block: 26px 0; }

@media (min-width: 1161px) and (max-width: 1250px) {
  .nav-icon { display: none; }
}
@media (min-width: 761px) and (max-width: 1160px) {
  .top-inner { flex-wrap: wrap; gap: 5px 16px; }
  .language-control { margin-inline-start: auto; }
  #main-nav { order: 4; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .top { position: relative; }
  .top-inner { flex-wrap: wrap; gap: 8px; }
  .top-inner .brand { margin-inline-end: auto; }
  .top .header-buy { display: none; }
  .language-control { order: 1; margin: 0; }
  .language-control select { font-size: 16px; }
  .nav-toggle { display: none; order: 2; min-height: 44px; min-width: 54px; padding: 8px; font-size: 14px; }
  .has-mobile-menu .nav-toggle { display: inline-block; }
  #main-nav { display: flex; flex-wrap: wrap; justify-content: flex-start; order: 4; width: 100%; gap: 0 14px; padding: 6px 0 0; border: 0; border-radius: 0; background: transparent; }
  .has-mobile-menu #main-nav { display: none; }
  .has-mobile-menu #main-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #main-nav a { min-width: 0; padding-block: 10px; background: #19242e; }
  #main-nav a.mobile-download { display: inline-flex; grid-column: 1 / -1; justify-content: center; margin-block-start: 4px; }
  #main-nav a.mobile-download:not(:disabled) { color: #132821; background: var(--accent); }
  .mobile-download .nav-icon { color: currentColor; }
  .hero-grid, .home-links, .game-gallery { grid-template-columns: minmax(0, 1fr); }
  .support-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero h1 { hyphens: auto; overflow-wrap: anywhere; }
  .home-links { gap: 28px; }
  .home-nexus { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-nexus .button { justify-self: start; }
  .site-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-gallery-heading { display: block; }
  .game-release { margin-top: 8px; }
  .table-wrap { overflow-x: auto; }
  .story-feature, .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-feature h2 { max-width: none; }
  .story-media { aspect-ratio: 16 / 8; }
}

@media (max-width: 440px) {
  .site-footer .footer-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
