* {
  box-sizing: border-box;
}

html,
body,
div,
h1,
p,
ul,
li,
dl,
dt,
dd,
header,
nav,
main,
footer {
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  overflow-y: scroll;
}

body {
  min-width: 320px;
  background: #001127;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

ul,
li {
  list-style: none;
}

button {
  font: inherit;
}

.wrapper {
  min-width: 320px;
  overflow: hidden;
  background-color: #ecebe9;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .24) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .24) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(190, 189, 187, .18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(190, 189, 187, .18) 75%);
  background-position: 0 0, 0 16px, 16px -16px, -16px 0;
  background-size: 32px 32px;
}

.section-body {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.code-header {
  position: relative;
  min-height: 149px;
  padding: 15px 0 14px;
  border-bottom: 1px solid #ac5705;
  background: #ffd534 url("../images/code-header.jpg") no-repeat center top;
  background-size: auto 100%;
  text-align: center;
}

.game-logo {
  display: inline-block;
  width: 84px;
  height: 53px;
  margin-bottom: 0;
  overflow: hidden;
  background: var(--game-logo-image, url("../images/game-logo.png")) no-repeat center;
  background-size: contain;
  text-indent: 110%;
  white-space: nowrap;
  vertical-align: top;
}

html[lang="en"] {
  --game-logo-image: url("../images/game-logo-en.png");
}

html[lang="es"] {
  --game-logo-image: url("../images/game-logo-es.png");
}

html[lang="fr"] {
  --game-logo-image: url("../images/game-logo-fr.png");
}

html[lang="nl"] {
  --game-logo-image: url("../images/game-logo-en.png");
}

.language-nav {
  position: absolute;
  z-index: 10;
  top: 15px;
  left: 50%;
  width: 102px;
  margin-left: 47px;
  background: #ffba14;
  color: #fff;
  font-size: 14px;
  text-align: left;
}

.language-current {
  position: relative;
  display: block;
  width: 100%;
  height: 28px;
  padding: 0 24px 0 14px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.language-current::after {
  position: absolute;
  top: 11px;
  right: 8px;
  width: 10px;
  height: 6px;
  background: url("../images/dropdown-arrow.png") no-repeat center;
  background-size: 10px auto;
  content: "";
  transition: transform .15s ease;
}

.language-nav.is-open .language-current::after {
  transform: rotate(180deg);
}

.language-list {
  display: none;
  padding: 8px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  text-align: center;
}

.language-nav.is-open .language-list {
  display: block;
}

.language-list a {
  display: block;
  height: 30px;
  color: #fff;
  line-height: 30px;
}

.language-list a:hover,
.language-list a:focus {
  color: #ffff66;
}

.language-list .is-current a {
  color: #a06d01;
}

.language-list .is-pending a {
  color: rgba(255, 255, 255, .55);
  cursor: default;
}

.blank-content {
  min-height: 330px;
  border-top: 1px solid rgba(255, 255, 255, .65);
}

.home-content {
  padding: 42px 16px 56px;
  color: #17314d;
  font-size: 16px;
  line-height: 1.55;
}

.home-shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.home-intro {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-kicker,
.section-label {
  color: #b24b00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-intro h2 {
  margin-top: 5px;
  color: #0e4b79;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.home-intro > p:not(.home-kicker) {
  max-width: 680px;
  margin: 14px auto 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.home-button {
  appearance: none;
  min-width: 210px;
  padding: 13px 24px;
  border: 3px solid #6f3a00;
  border-radius: 15px;
  box-shadow: inset 0 3px rgba(255, 255, 255, .6), 0 4px 0 #9a5d05;
  color: #2e2109;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.home-button:hover,
.home-button:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.home-button-primary {
  background: linear-gradient(#fff387, #ffc629);
}

.home-button-discord {
  border-color: #263b75;
  background: linear-gradient(#aebaff, #697ce6);
  box-shadow: inset 0 3px rgba(255, 255, 255, .55), 0 4px 0 #384a9a;
  color: #fff;
}

.is-unavailable {
  cursor: default;
  filter: grayscale(.65);
  opacity: .62;
}

.home-panel,
.info-card {
  border: 2px solid #0e4b79;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 0 rgba(0, 35, 62, .14);
}

.home-panel {
  padding: clamp(22px, 4vw, 38px);
}

body.has-download-modal {
  overflow: hidden;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 17, 39, .76);
  backdrop-filter: blur(3px);
}

.download-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
}

.download-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 2px solid #0e4b79;
  border-radius: 50%;
  background: #fff;
  color: #0e4b79;
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
  cursor: pointer;
}

.download-close:hover,
.download-close:focus {
  background: #edf8ff;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.info-card h2 {
  margin-top: 2px;
  color: #0e4b79;
  font-size: 26px;
  line-height: 1.2;
}

.section-heading > p:last-child {
  margin-top: 7px;
}

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

.platform-card {
  overflow: hidden;
  border: 2px solid #b8d9ee;
  border-radius: 16px;
  background: #edf8ff;
}

.platform-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: #0e4b79;
  color: #fff;
}

.platform-heading h3 {
  font-size: 21px;
  line-height: 1.15;
}

.platform-heading p {
  color: #bfe8ff;
  font-size: 13px;
}

.platform-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #77b72e;
  font-size: 22px;
  font-weight: 900;
}

.platform-icon-ios {
  background: #60728a;
  font-family: Georgia, serif;
}

.download-options {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.download-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
  border: 2px solid #d58b00;
  border-radius: 12px;
  background: linear-gradient(#fff9c2, #ffe36c);
  color: #362806;
}

.download-option:hover,
.download-option:focus {
  text-decoration: none;
}

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

.download-option strong {
  font-size: 17px;
}

.download-option small {
  color: #6e684f;
  font-size: 12px;
}

.download-option b {
  color: #9b3b00;
  font-size: 13px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.info-card {
  min-height: 190px;
  padding: 22px;
}

.info-card > p:not(.section-label) {
  margin-top: 10px;
  color: #52687e;
  font-size: 14px;
}

.weekly-card .weekly-tribe {
  color: #0e4b79;
  font-weight: 800;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #0e4b79;
  font-size: 22px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a7afb6;
  box-shadow: 0 0 0 4px rgba(167, 175, 182, .2);
}

.status-dot.is-online {
  background: #48aa38;
  box-shadow: 0 0 0 4px rgba(72, 170, 56, .18);
}

.status-dot.is-offline {
  background: #d34a39;
  box-shadow: 0 0 0 4px rgba(211, 74, 57, .18);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: #0e4b79;
  font-weight: 800;
  text-decoration: underline;
}

.quickstart,
.faq {
  margin-top: 26px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: steps;
}

.step-grid li {
  position: relative;
  padding: 18px 16px 18px 66px;
  border-radius: 14px;
  background: #edf8ff;
}

.step-grid span {
  position: absolute;
  top: 18px;
  left: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #ffc629;
  color: #6f3a00;
  font-weight: 900;
}

.step-grid h3 {
  color: #0e4b79;
  font-size: 18px;
}

.step-grid p {
  margin-top: 4px;
  color: #52687e;
  font-size: 14px;
  line-height: 1.45;
}

.faq details {
  border-top: 1px solid #c3d7e4;
}

.faq details:last-child {
  border-bottom: 1px solid #c3d7e4;
}

.faq summary {
  padding: 15px 34px 15px 2px;
  color: #0e4b79;
  font-weight: 800;
  cursor: pointer;
}

.faq details p {
  padding: 0 28px 16px 2px;
  color: #52687e;
  font-size: 14px;
}

.home-disclaimer {
  margin-top: 26px;
  padding: 18px 20px;
  border: 2px solid #d58b00;
  border-radius: 14px;
  background: rgba(255, 227, 108, .72);
  color: #513900;
  font-size: 14px;
}

.sub-header {
  padding: 11px 0 15px;
  border-bottom: 1px solid #00233e;
  background: #0e4b79;
  text-align: center;
}

.sub-header .game-logo {
  width: 100px;
  height: 63px;
  margin: 0;
  background-size: contain;
}

.subPageBody {
  padding-bottom: 20px;
  color: #000;
  word-break: break-word;
}

.subPageBody .section_body {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
}

.subPageBody a {
  color: #000;
  text-decoration: underline;
}

.subPageBody .head {
  padding-top: 26px;
}

.subPageBody .head .ttl {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: bold;
}

.subPageBody .head .date,
.subPageBody .head .headTxt {
  font-size: 12px;
  line-height: 15px;
}

.subPageBody .head date {
  margin-left: .5em;
}

.subPageBody .noteDList dt {
  margin-top: 13px;
  font-size: 14px;
  font-weight: bold;
  line-height: 15px;
}

.subPageBody .noteDList dd {
  margin-top: 5px;
  font-size: 12px;
  line-height: 15px;
}

.subPageBody .noteDList .noteTxt {
  margin-top: 15px;
}

.subPageBody .noteDList .noteTxt:first-child {
  margin-top: 0;
}

.subPageBody .noteDList .noteTxt em {
  font-style: italic;
}

.subPageBody .noteDList .noteTxt2 {
  margin-top: 5px;
}

.subPageBody .noteDList .noteList li {
  margin-top: 5px;
  padding-left: 1em;
  text-indent: -.6em;
}

.subPageBody .noteDList ol.noteList li {
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.fan-notice {
  margin-top: 18px;
  padding: 14px 16px;
  border: 2px solid #d58b00;
  border-radius: 8px;
  background: rgba(255, 225, 106, .7);
  font-size: 12px;
  line-height: 17px;
}

.fan-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #6f0300;
  font-size: 14px;
}

.fan-notice p + p {
  margin-top: 8px;
}

.legal-list {
  margin: 8px 0 0 20px;
}

.legal-list li {
  margin-top: 5px;
  list-style: disc;
}

.subPageBody .foot {
  margin-top: 13px;
}

.subPageBody .foot .ttl {
  font-size: 14px;
  font-weight: bold;
  line-height: 15px;
}

.subPageBody .foot .footTxt {
  margin-top: 15px;
  font-size: 12px;
  line-height: 15px;
}

.subPageBody .goTop {
  margin-top: 30px;
  text-align: center;
}

.subPageBody .goTop a {
  position: relative;
  display: inline-block;
  padding-left: 24px;
  color: #6f0300;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

.subPageBody .goTop a::before {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 0;
  height: 0;
  margin-top: -6px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #6f0300;
  content: "";
}

.footer {
  position: relative;
  padding: 28px 0;
  background: #001024;
  color: #315a91;
  font-size: 11px;
  text-align: center;
}

.footer-area {
  max-width: 480px;
  margin: 0 auto;
}

.footer-row {
  overflow: hidden;
  text-align: center;
}

.footer-row dt,
.footer-row dd {
  display: inline-block;
  width: 126px;
  padding-top: 5px;
  text-align: left;
  line-height: 1.2;
  vertical-align: top;
}

.footer-row dd {
  position: relative;
  width: 125px;
  padding-left: 10px;
}

.footer-row dd::before {
  position: absolute;
  top: 50%;
  left: -1px;
  margin-top: -.3em;
  color: #122c4c;
  content: "|";
  font-size: 10px;
  line-height: 1;
}

.footer-links {
  margin: 20px 0;
  font-size: 0;
}

.footer-links li {
  display: inline-block;
  margin: 0 15px;
  font-size: 11px;
}

.footer-links a {
  color: #315a91;
  text-decoration: underline;
}

.company-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 15px;
}

.company-logos img {
  display: block;
  width: auto;
  max-width: 78px;
  height: 31px;
  object-fit: contain;
}

.copyright {
  margin-top: 12px;
}

.copyright small {
  display: block;
  font-size: 11px;
}

.copyright small + small {
  margin-top: 3px;
}

@media screen and (min-width: 769px) {
  body,
  .wrapper {
    min-width: 960px;
  }

  .wrapper {
    background-size: 64px 64px;
  }

  .section-body {
    min-width: 960px;
    max-width: 960px;
  }

  .code-header {
    min-height: 298px;
    padding: 38px 0;
    border-bottom-width: 2px;
    background-size: auto 100%;
  }

  .game-logo {
    width: 214px;
    height: 136px;
    margin-bottom: 0;
    background-size: contain;
  }

  .language-nav {
    top: 23px;
    width: 135px;
    margin-left: 344px;
    background: rgba(244, 176, 11, .95);
  }

  .language-current {
    height: 42px;
    padding: 0 32px 0 16px;
  }

  .language-current::after {
    top: 17px;
    right: 21px;
    width: 11px;
    height: 7px;
    background-size: 11px auto;
  }

  .language-list {
    padding: 12px 0;
    text-align: left;
  }

  .language-list a {
    height: 24px;
    padding: 0 16px;
    line-height: 24px;
  }

  .blank-content {
    min-height: 440px;
  }

  .sub-header {
    padding: 38px 0 34px;
    border-bottom-width: 2px;
  }

  .sub-header .game-logo {
    width: 214px;
    height: 136px;
    background-size: contain;
  }

  .subPageBody .section_body {
    max-width: 960px;
    padding-right: 0;
    padding-left: 0;
  }

  .subPageBody .head {
    padding-top: 50px;
  }

  .subPageBody .head .ttl,
  .subPageBody .noteDList dt,
  .subPageBody .foot .ttl {
    font-size: 18px;
    line-height: 22px;
  }

  .subPageBody .head .date,
  .subPageBody .head .headTxt {
    font-size: 14px;
    line-height: 22px;
  }

  .subPageBody .noteDList dt,
  .subPageBody .foot {
    margin-top: 18px;
  }

  .subPageBody .noteDList dd,
  .subPageBody .foot .footTxt {
    font-size: 14px;
    line-height: 18px;
  }

  .subPageBody .noteDList .noteTxt,
  .subPageBody .foot .footTxt {
    margin-top: 17px;
  }

  .fan-notice {
    padding: 18px 20px;
    font-size: 14px;
    line-height: 20px;
  }

  .fan-notice strong {
    font-size: 18px;
  }

  .subPageBody .goTop {
    margin-top: 50px;
  }

  .footer {
    padding: 40px 0;
    font-size: 14px;
  }

  .footer-area {
    max-width: 960px;
  }

  .footer-row dt {
    width: 210px;
    padding: 0 10px 10px 0;
  }

  .footer-row dd {
    width: 218px;
    padding: 0 0 0 15px;
    white-space: nowrap;
  }

  .footer-row dd::before {
    left: 0;
    margin-top: -.5em;
  }

  .footer-links {
    margin: 15px 0 0;
  }

  .footer-links li {
    margin: 0 10px;
    font-size: 14px;
  }

  .company-logos {
    margin-top: 20px;
    gap: 30px;
  }

  .company-logos img {
    height: 34px;
  }

  .copyright {
    margin-top: 10px;
  }

  .copyright small {
    display: inline-block;
    font-size: 12px;
  }

  .copyright small + small {
    margin: 0 0 0 4px;
  }
}

@media screen and (max-width: 768px) {
  .home-content {
    padding: 30px 12px 42px;
  }

  .platform-grid,
  .info-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 0;
  }

  .home-button {
    width: 100%;
  }

  .download-modal {
    align-items: start;
    padding: 12px;
    overflow-y: auto;
  }

  .download-dialog {
    max-height: none;
    margin: 12px 0;
    padding: 26px 18px 20px;
  }

  .download-close {
    top: 8px;
    right: 8px;
  }

  .download-dialog .section-heading {
    padding-right: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-current::after {
    transition: none;
  }
}
