/* Main website controls use the landing page's larger, readable proportions. */
[data-experience="main"] .g-fullpage {
  display: flex;
  flex-flow: row nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
[data-experience="main"] .g-fullpage > .g-screen {
  flex: 0 0 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

/* Clip each background layer before it is composited at fractional zoom. */
[data-experience="main"] .g-fullpage > .g-screen .g-background {
  clip-path: inset(0);
}

.g-main-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: clamp(90px, 5.3vw, 112px);
  padding-inline: 3.4vw;
}
.g-main-header > .g-logo { width: clamp(96px, 5.3vw, 124px); height: 100%; }
.g-main-header > .g-main-nav { grid-column: 2; }
.g-main-header > .g-top-actions { grid-column: 3; }
.g-main-nav { gap: clamp(28px, 2.5vw, 64px); margin-left: 0; }
.g-main-nav > a { font-size: clamp(18px, 1vw, 24px); padding-inline: 10px; }
.g-main-nav > a.active:after { bottom: 16px; }
.g-main-header .g-top-actions { justify-self: end; gap: 14px; }
.g-main-header .g-tool, .g-main-header .g-return {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 3px;
  background: #11171f90;
}
.g-main-header .g-icon { width: 24px; height: 24px; }

.g-dialog.g-player-dialog {
  width: min(1080px, calc(100vw - 184px), calc((100svh - 120px) * (var(--g-pv-ratio))));
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 3px solid #8d908b;
  background: #000;
}
.g-player-dialog video { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: var(--g-pv-ratio); object-fit: cover; background: #000; }
.g-player-dialog > .dialog-close {
  top: -3px;
  right: -76px;
  width: 56px;
  height: 56px;
  padding: 12px;
  border: 3px solid #969993;
  border-radius: 50%;
  color: #fff;
  background: #080d12ed;
}
.g-player-dialog > .dialog-close .g-icon { width: 26px; height: 26px; }
.g-player-dialog > .dialog-close:hover { background: #25303a; border-color: #e0e0d5; }
@media (max-width: 680px) {
  .g-dialog.g-player-dialog { width: min(calc(100vw - 32px), calc((100svh - 144px) * (var(--g-pv-ratio)))); }
  .g-player-dialog > .dialog-close { top: -56px; right: 0; width: 44px; height: 44px; padding: 9px; border-width: 2px; }
  .g-player-dialog > .dialog-close .g-icon { width: 22px; height: 22px; }
}

.g-main-downloads {
  width: min(900px, calc(100% - 185px));
  bottom: max(132px, 11vh);
  gap: 24px;
}
.g-main-qr {
  --download-qr-size: clamp(112px, 6vw, 148px);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: auto;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.g-main-qr-frame {
  display: block;
  flex: none;
  padding: 10px;
  border: 3px solid #727372;
  border-radius: 22px;
  background: #111216;
  box-shadow: 0 4px 16px #0006, inset 0 0 0 1px #c8c5bd33;
  transition: border-color .2s;
}
.g-main-qr-frame > img {
  display: block;
  box-sizing: content-box;
  width: var(--download-qr-size);
  height: var(--download-qr-size);
  max-width: none;
  border: 4px solid #555654;
  border-radius: 5px;
  background: #fff;
}
.g-main-qr-frame:hover { border-color: #c8b993; }
.g-main-qr small { font-size: 11px; line-height: 1.4; margin-top: 0; color: #e7e0ce; text-shadow: 0 1px 4px #000b; }
.g-main-platforms { flex: 1; min-width: 0; gap: 12px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main-platforms .g-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  height: clamp(74px, 4.6vw, 87px);
  padding: 11px 20px;
  gap: 15px;
  font-size: clamp(22px, 1.45vw, 28px);
}
.g-main-platforms .g-download > span { grid-area: 1 / 2; text-align: center; }
.g-main-platforms .g-download small { font-size: 12px; margin-top: 6px; opacity: .9; }
.g-main-platforms .g-download-primary > .g-icon { grid-area: 1 / 1; justify-self: end; width: 34px; height: 34px; }
.g-main-platforms .g-download-secondary > .g-icon { grid-area: 1 / 3; justify-self: start; width: 24px; height: 24px; }
.g-more-download { min-height: 32px; font-size: 14px; padding: 5px; }
.g-more-download > .g-icon { width: 19px; height: 19px; }

[data-experience="main"] .g-scroll-tip {
  min-height: 44px;
  font-size: clamp(18px, 1.1vw, 27px);
  line-height: 1.3;
  letter-spacing: .06em;
}
.g-scroll-tip-chevron {
  color: var(--g-gold);
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
}

@media (prefers-reduced-motion: no-preference) {
  .g-scroll-tip-chevron { animation: scroll-tip-nudge 2.4s ease-in-out infinite; }
}

@keyframes scroll-tip-nudge {
  0%, 55%, 100% { transform: translateX(0); opacity: .8; }
  24% { transform: translateX(8px); opacity: 1; }
}

.g-legal {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 3px 14px;
  min-height: 44px;
  font-size: 13px;
  color: #d9dcde;
  background: #0c1119e8;
}
.g-legal > span { white-space: nowrap; }
.g-legal > div { gap: 4px 24px; }
.g-legal button { font-size: inherit; color: #dfcfab; }

@media (min-width: 681px) {
  .g-news-shell { left: calc(50% - 52px); width: min(1420px, calc(100% - 185px)); }
  .g-roster-shell { --roster-rail-gutter: 152px; }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .g-main-header { height: 86px; padding-inline: 22px; }
  .g-main-header > .g-logo { width: 88px; }
  .g-main-nav { gap: 18px; }
  .g-main-nav > a { font-size: 16px; padding-inline: 6px; }
  .g-main-header .g-top-actions { gap: 10px; }
  .g-main-header .g-tool, .g-main-header .g-return { width: 44px; height: 44px; }
  .g-main-downloads { left: calc(50% - 44px); width: min(780px, calc(100% - 152px)); gap: 16px; }
  .g-main-qr { --download-qr-size: 104px; }
  .g-main-platforms { gap: 10px 14px; }
  .g-main-platforms .g-download { height: 68px; padding-inline: 12px; gap: 10px; font-size: 20px; }
  .g-main-platforms .g-download-primary > .g-icon { width: 28px; height: 28px; }
  .g-main-platforms .g-download-secondary > .g-icon { width: 21px; height: 21px; }
  .g-main-platforms .g-download small { font-size: 10px; }
  .g-news-shell { left: calc(50% - 44px); width: calc(100% - 152px); }
  .g-roster-shell { --roster-rail-gutter: 122px; }
}

@media (min-width: 681px) and (max-width: 820px) {
  .g-main-nav { gap: 10px; }
  .g-main-nav > a { font-size: 15px; padding-inline: 3px; }
  .g-main-platforms .g-download { font-size: 18px; gap: 8px; }
  .g-legal { font-size: 12px; padding-inline: 14px; }
  .g-legal > div { gap: 4px 16px; }
}

@media (min-width: 1101px) and (max-height: 720px) {
  .g-main-downloads { width: min(760px, calc(100% - 185px)); }
  .g-main-qr { --download-qr-size: 104px; }
  .g-main-platforms .g-download { height: 66px; }
}

@media (max-width: 680px) {
  .g-main-header { display: flex; height: 76px; padding-inline: 17px; }
  .g-main-header > .g-logo { width: 76px; height: 74px; }
  .g-main-header .g-top-actions { gap: 10px; }
  .g-main-header .g-tool, .g-main-header .g-return { width: 42px; height: 42px; }
  .g-main-header .g-icon { width: 22px; height: 22px; }
  .g-mobile-nav > a { min-height: 52px; font-size: 17px; }
  .g-main-downloads { left: 50%; width: calc(100% - 40px); max-width: 420px; bottom: 143px; gap: 10px; }
  .g-main-qr { --download-qr-size: 88px; }
  .g-main-qr-frame { padding: 7px; border-radius: 18px; }
  .g-main-qr small { font-size: 9px; }
  .g-main-platforms { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .g-main-platforms .g-download { height: 52px; padding: 8px 10px; gap: 8px; font-size: 16px; }
  .g-main-platforms .g-download-primary > .g-icon { width: 24px; height: 24px; }
  .g-main-platforms .g-download-secondary > .g-icon { display: block; width: 18px; height: 18px; }
  .g-more-download { grid-column: 1; font-size: 12px; min-height: 28px; }
  .g-more-download > .g-icon { width: 16px; height: 16px; }
  .g-roster-shell { --roster-choices-bottom: 88px; }
  .g-legal { min-height: 64px; flex-direction: column; flex-wrap: nowrap; gap: 4px; padding: 8px 12px; font-size: 11px; }
  .g-legal > div { gap: 3px 13px; }
}

@media (max-width: 370px) {
  .g-main-header { padding-inline: 14px; }
  .g-main-header .g-top-actions { gap: 8px; }
  .g-main-qr { --download-qr-size: 80px; }
  .g-main-platforms .g-download { height: 50px; font-size: 14px; gap: 6px; }
  .g-main-platforms .g-download-primary > .g-icon { width: 22px; height: 22px; }
  .g-main-platforms .g-download-secondary > .g-icon { width: 16px; height: 16px; }
  .g-legal > div { gap: 3px 9px; }
}

/* Compact news columns keep readable type without stretching the list rows. */
@font-face {
  font-family: "News Serif";
  src: url("assets/fonts/news-serif.ttf?v=1455bd92421b") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:is(.g-news-screen, .news-page) {
  --news-row-height: clamp(56px, 3.3vw, 68px);
  --news-tabs-height: 54px;
  --news-list-gap: 14px;
  --news-carousel-height: 68px;
  --news-heading-size: clamp(48px, 3.6vw, 68px);
  --news-heading-gap: 20px;
}
.g-news-column { min-width: 0; }
.g-experience .g-news-tab, .g-experience .g-news-more { font-family: "News Serif", "STSong", serif; font-weight: 600; }
.g-news-shell > .g-news-column > .g-panel-heading { margin-bottom: var(--news-heading-gap); gap: clamp(8px, 1vw, 18px); }
.g-news-shell .g-panel-heading > div:first-child { gap: clamp(8px, 1vw, 12px); flex: none; }
.g-news-shell .g-panel-heading > div > span {
  font-family: Georgia, "Times New Roman", serif;
  align-self: flex-end;
  padding-bottom: 6px;
  font-size: clamp(14px, .9vw, 20px);
  font-weight: 400;
  letter-spacing: .14em;
  color: #baa98a;
}
.g-news-shell .g-panel-heading h2 {
  order: -1;
  margin: 0;
  font-family: "Section Brush", "STKaiti", "KaiTi", serif;
  font-size: var(--news-heading-size);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: .1em;
  color: #efd6a1;
  text-shadow: 0 2px 0 #19201c, 0 3px 8px #02070ba6;
}
.g-news-heading-rule { flex: 1; min-width: 0; height: 36px; background: url("assets/icons/NewsCloudRule.svg?v=3c23ace402bb") left bottom / 245px 36px no-repeat; opacity: .8; }
.g-news-seal {
  display: grid;
  place-items: center;
  align-self: center;
  width: 26px;
  height: 34px;
  margin-left: 2px;
  border: 1px solid #bd875d;
  outline: 1px solid #884c36;
  outline-offset: 2px;
  border-radius: 2px;
  background: #713a2c;
  color: #f2d3a0;
  font: normal 23px/1 "Section Brush", "KaiTi", serif;
  transform: rotate(-4deg);
}
.g-news-shell .g-panel-heading > small { font-size: 12px; color: #bdc5c6; }
.g-news-toolbar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 10px;
  border: 0;
  background: none;
}
.g-news-toolbar:before, .g-news-toolbar:after { content: ""; position: absolute; pointer-events: none; }
.g-news-toolbar:before {
  z-index: -2;
  inset: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background: linear-gradient(110deg, #d4b57b, #776742 48%, #d4b57b);
}
.g-news-toolbar:after {
  z-index: -1;
  inset: 1px;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  background: linear-gradient(110deg, #1c3032, #101d23 65%, #192b2c);
  box-shadow: inset 0 3px 0 #c6b17c12, inset 0 -3px 0 #0004;
}
.g-news-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; min-width: 0; height: var(--news-tabs-height); gap: 4px; padding: 0; border: 0; }
.g-news-tab {
  isolation: isolate;
  padding-inline: 10px;
  font-size: clamp(18px, 1.15vw, 22px);
  font-weight: 600;
  letter-spacing: .1em;
  white-space: nowrap;
  text-align: center;
  color: #e0d5b7;
  transition: color .18s;
}
.g-news-tab:before { content: ""; position: absolute; z-index: -1; inset: 3px 0; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); background: #c4ad6a17; opacity: 0; transition: opacity .18s; }
.g-news-tab:hover:before { opacity: 1; }
.g-news-tab[aria-selected="true"] { color: #28291f; text-shadow: 0 1px #f9e5ad; }
.g-news-tab[aria-selected="true"]:before { opacity: 1; background: linear-gradient(110deg, #f0dda9, #c9ab6b); box-shadow: inset 0 1px 0 #fff1bf; }
.g-news-tab[aria-selected="true"]:after { bottom: 9px; width: calc(100% - 34px); height: 1px; background: #7f673d70; }
.g-news-more {
  flex: none;
  align-self: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px 9px 18px;
  border: 0;
  border-left: 1px solid #b9a16b59;
  font-size: clamp(20px, 1.15vw, 24px);
  font-weight: 600;
  color: #f4dfad;
  background: none;
}
.g-news-more:hover { color: #fff0c4; }
.g-news-more > .g-icon { width: 22px; height: 22px; transition: transform .18s; }
.g-news-more:hover > .g-icon { transform: translateX(3px); }
.g-news-list {
  display: grid;
  grid-template-rows: repeat(6, var(--news-row-height));
  min-width: 0;
  margin-top: var(--news-list-gap);
  background: #08121d40;
}
.g-news-item { min-height: 0; gap: 14px; padding: 8px 12px; }
.g-news-item strong {
  flex: 1;
  min-width: 0;
  font-size: clamp(18px, 1.15vw, 24px);
  font-weight: 500;
  line-height: 1.65;
  color: #f0f1e9;
}
.g-news-item:hover strong { color: var(--g-gold); }
.g-news-item .g-news-category {
  font-size: clamp(13px, .8vw, 15px) !important;
  padding: 3px 8px !important;
  color: #e0e3da;
  border-color: #c5c7b78c;
}
.g-news-item > small { flex: none; font-size: clamp(12px, .75vw, 15px); color: #bcc8ca; }
.g-news-poster { align-self: end; min-width: 0; min-height: 0; }
.g-news-image { flex: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; border: 1px solid #c6b68d55; }
.g-news-image:after { display: none; }
.g-news-carousel { flex: none; min-height: var(--news-carousel-height); height: auto; gap: 20px; padding: 12px 0; background: none; }
.g-news-caption { flex: 1; min-width: 0; text-align: left; }
.g-news-caption strong { display: block; font-size: clamp(18px, 1.2vw, 24px); line-height: 1.5; font-weight: 500; color: #f0e9da; }
.g-news-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.g-news-controls > button { display: grid; place-items: center; width: 28px; height: 32px; padding: 4px; }
.g-news-carousel .g-icon { width: 20px; height: 20px; opacity: .9; }
.g-news-dots { gap: 2px; }
.g-news-dot { position: relative; width: 20px; height: 32px; padding: 0; border: 0; }
.g-news-dot:after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); background: #a1a7a97a; }
.g-news-dot[aria-selected="true"]:after { background: var(--g-gold); }

@media (min-width: 901px) {
  :is(.g-news-screen, .news-page) {
    --news-column-gap: clamp(32px, 3.5vw, 72px);
    --news-poster-offset: calc(var(--news-heading-size) * 1.15 + var(--news-heading-gap));
    --news-list-height: calc(var(--news-tabs-height) + 10px + var(--news-list-gap) + 6 * var(--news-row-height));
    --news-poster-height: calc((min(1680px, 91vw) - var(--news-column-gap)) * 9 / 32 + var(--news-carousel-height));
    /* Position the heading based on the taller preview column. */
    --news-content-top: max(
      clamp(108px, 6vw, 128px),
      calc((100dvh - var(--news-poster-offset) - max(var(--news-list-height), var(--news-poster-height))) / 2)
    );
  }
  .g-news-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    align-content: start;
    column-gap: var(--news-column-gap);
    left: 50%;
    top: var(--news-content-top);
    bottom: 60px;
    width: min(1680px, calc(100% - 9vw));
    max-width: none;
    max-height: none;
    transform: translateX(-50%);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .g-news-poster {
    align-self: start;
    margin-top: var(--news-poster-offset);
  }
  .g-news-image {
    max-height: max(180px, calc(100dvh - var(--news-content-top) - var(--news-poster-offset) - var(--news-carousel-height) - 60px));
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  :is(.g-news-screen, .news-page) { --news-row-height: 54px; --news-carousel-height: 56px; }
  .g-news-item { padding-inline: 10px; gap: 10px; }
  .g-news-item strong { font-size: 17px; }
  .g-news-item > small { display: none; }
  .g-news-tab { font-size: 17px; padding-inline: 7px; }
  .g-news-toolbar { padding-inline: 6px; gap: 8px; }
  .g-news-more { font-size: 18px; padding-inline: 10px; gap: 7px; }
  .g-news-carousel { gap: 12px; }
  .g-news-caption strong { font-size: 18px; }
  .g-news-controls > button { display: none; }
}

@media (min-width: 901px) and (max-height: 760px) {
  :is(.g-news-screen, .news-page) {
    --news-heading-size: 44px;
    --news-heading-gap: 16px;
    --news-row-height: 46px;
    --news-tabs-height: 48px;
    --news-list-gap: 10px;
  }
  .g-news-tab { font-size: 17px; }
  .g-news-item { padding-block: 6px; }
  .g-news-item strong { font-size: 17px; }
  .g-news-item .g-news-category { font-size: 12px !important; padding-block: 2px !important; }
}

@media (max-width: 900px) {
  :is(.g-news-screen, .news-page) { --news-content-top: 104px; }
  .g-news-shell {
    display: flex;
    flex-direction: column;
    left: 32px;
    right: 32px;
    top: var(--news-content-top);
    bottom: 76px;
    width: auto;
    max-width: none;
    max-height: none;
    transform: none;
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior-y: contain;
  }
  .g-news-shell::-webkit-scrollbar { display: none; }
  .g-news-column { display: contents; }
  .g-news-shell > .g-news-column > .g-panel-heading { flex: none; order: 0; }
  .g-news-toolbar { flex: none; order: 1; }
  .g-news-poster { flex: none; order: 2; align-self: stretch; margin: 18px 0 0; }
  .g-news-image { height: clamp(190px, 26vh, 270px); aspect-ratio: auto; }
  .g-news-list { flex: none; order: 3; margin-top: 8px; }
}

@media (max-width: 680px) {
  :is(.g-news-screen, .news-page) {
    --news-content-top: 88px;
    --news-heading-size: clamp(30px, 9vw, 42px);
    --news-heading-gap: 16px;
    --news-tabs-height: 44px;
  }
  .g-news-shell { bottom: 84px; left: 18px; right: 18px; }
  .g-news-shell > .g-news-column > .g-panel-heading { gap: 8px; }
  .g-news-shell .g-panel-heading > div:first-child { gap: 8px; }
  .g-news-shell .g-panel-heading > div > span { font-size: 13px; letter-spacing: .1em; }
  .g-news-seal { width: 20px; height: 27px; font-size: 18px; }
  .g-news-heading-rule { display: none; }
  .g-news-shell .g-panel-heading > small { font-size: 10px; }
  .g-news-toolbar { gap: 6px; padding: 4px 6px; }
  .g-news-tabs { gap: 2px; }
  .g-news-tab { padding-inline: 3px; font-size: 14px; }
  .g-news-more { min-height: 44px; padding: 6px 8px; gap: 6px; font-size: 16px; }
  .g-news-more > .g-icon { width: 18px; height: 18px; }
  .g-news-tab[aria-selected="true"]:after { bottom: 7px; width: calc(100% - 24px); }
  .g-news-poster { margin-top: 14px; }
  .g-news-image { height: auto; aspect-ratio: 16 / 9; }
  .g-news-carousel { min-height: 52px; gap: 12px; padding-block: 10px; }
  .g-news-caption strong { font-size: 16px; }
  .g-news-controls > button { display: none; }
  .g-news-list { display: block; }
  .g-news-item { min-height: 54px; gap: 10px; padding: 10px; }
  .g-news-item strong { font-size: 15px; line-height: 1.6; white-space: normal; }
  .g-news-item .g-news-category { font-size: 11px !important; padding: 2px 6px !important; }
  .g-news-item > small { display: none; }
}
