@font-face {
  font-family: Snap;
  src: url("/assets/display.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Shinobi;
  src: url("/assets/body.woff2") format("woff2");
  font-display: swap;
}
:root {
  --ink: #25362e;
  --muted: #625846;
  --paper: #f0e5cc;
  --light: #fff7e4;
  --red: #a64029;
  --gold: #efaa42;
  --line: #b7a583;
  --night: #172824;
  --title: Snap, Impact, sans-serif;
  --body: Shinobi, "Segoe UI", sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--body);
  background-image: repeating-linear-gradient(
    17deg,
    transparent 0 19px,
    #9e825607 20px 21px
  );
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #067995;
  outline-offset: 4px;
}
img,
video {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 400;
  line-height: 1.04;
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(52px, 6.5vw, 100px);
}
h2 {
  font-size: clamp(36px, 4vw, 64px);
}
h3 {
  font-size: 30px;
}
p {
  margin: 0 0 22px;
}
.wrap {
  width: min(1240px, calc(100% - 80px));
  margin: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--night);
  color: var(--light);
  border-bottom: 3px solid var(--gold);
}
.topbar .wrap {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 78px;
}
.brand {
  font: 30px/0.9 var(--title);
  text-decoration: none;
  letter-spacing: 2px;
  transform: rotate(-4deg);
  flex-shrink: 0;
}
.brand span {
  color: var(--gold);
}
.topbar nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 16px;
}
.topbar nav a {
  text-decoration: none;
}
.topbar select {
  background: transparent;
  color: var(--light);
  border: 1px solid #7d8a80;
  padding: 7px;
}
.topbar option {
  color: var(--ink);
}
.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 18px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--light);
  isolation: isolate;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #172824 10%, #172824d9 48%, #17282432),
    url("/assets/world.webp") center/cover;
  z-index: -2;
}
.hero .wrap {
  min-height: 680px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-copy {
  max-width: 650px;
  width: 57%;
  padding: 70px 0;
  z-index: 2;
}
.hero-copy p:not(.eyebrow) {
  max-width: 460px;
  color: #e3e4d7;
}
.hero .eyebrow {
  color: var(--gold);
}
.hero-characters {
  position: absolute;
  right: -85px;
  bottom: 0;
  width: 55%;
  height: 100%;
  z-index: -1;
}
.hero-characters img {
  position: absolute;
  bottom: -6%;
  height: 93%;
  width: 90%;
  object-fit: contain;
}
.hero-characters img:last-child {
  right: -15%;
  height: 95%;
  z-index: -1;
  opacity: 0.85;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  background: var(--red);
  color: var(--light);
  border: 1px solid #743821;
  text-decoration: none;
  font: 23px/1.15 var(--title);
  box-shadow: 0 3px 0 #6f3925;
}
.button:hover {
  filter: brightness(1.1);
}
.button.primary {
  background: var(--gold);
  color: #29291d;
  border-color: #b97627;
  box-shadow: 0 3px 0 #9b651e;
}
.button.secondary {
  background: transparent;
  box-shadow: none;
  color: inherit;
  border-color: currentColor;
}
.hero .recommend {
  font-size: 14px;
  margin: 22px 0 0;
  color: #d2d5c9;
}
.chapter {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.chapter-head {
  display: flex;
  align-items: start;
  gap: 28px;
}
.chapter-number {
  font: 70px/1 var(--title);
  color: #bda989;
  border-top: 3px solid var(--red);
  padding-top: 14px;
  min-width: 74px;
}
.chapter-head p {
  max-width: 670px;
  color: var(--muted);
}
.screen {
  background: #101d21;
  border: 8px solid var(--light);
  box-shadow: 0 10px 25px #2c392526;
  position: relative;
  margin-top: 30px;
}
.screen video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.media-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: #06161955;
  color: white;
  border: 0;
  width: 100%;
  font: 30px var(--title);
}
.media-play span {
  background: var(--red);
  padding: 18px 30px;
  border: 1px solid #f5c991;
}
.media-caption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 70px;
}
.columns img {
  width: 100%;
  height: auto;
}
.notes {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}
.notes p {
  flex: 1;
  font-size: 16px;
}
.notes b {
  display: block;
  font: 26px var(--title);
  margin-bottom: 8px;
}
.dark {
  background: var(--night);
  color: var(--light);
}
.dark .eyebrow {
  color: var(--gold);
}
.dark .chapter-head p,
.dark .media-caption {
  color: #c4ccbc;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.download-option {
  border-top: 3px solid var(--red);
  padding: 28px 0;
}
.download-option.featured {
  border-top-color: #bf822b;
}
.download-option p {
  min-height: 80px;
  color: var(--muted);
}
.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer {
  padding: 36px 0;
  font-size: 14px;
  background: #10201c;
  color: #dbdfcd;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 10px;
  left: 10px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.portal-head {
  padding: 70px 0 40px;
}
.portal-head h1 {
  max-width: 800px;
}
.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 36px;
}
.portal-tabs a {
  font: 24px var(--title);
  text-decoration: none;
}
.portal-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 50px;
  align-items: start;
}
.doc-nav {
  position: sticky;
  top: 105px;
  display: grid;
  gap: 12px;
  font-size: 16px;
}
.doc-nav a {
  text-decoration: none;
}
.docs {
  min-width: 0;
}
.docs section {
  margin-bottom: 50px;
  scroll-margin-top: 110px;
}
.docs h2 {
  font-size: 38px;
}
.docs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.docs th,
.docs td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
pre {
  background: #1d3029;
  color: #f4ead7;
  padding: 24px;
  overflow: auto;
  border-left: 4px solid var(--gold);
  font:
    14px/1.6 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
code {
  font-family: Consolas, monospace;
  font-size: 0.88em;
}
form .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
}
.wide {
  grid-column: 1/-1;
}
input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: var(--light);
  border: 1px solid #998768;
  padding: 12px;
  min-height: 46px;
}
textarea {
  min-height: 110px;
}
form small,
.muted {
  font-size: 14px;
  color: var(--muted);
}
form .actions {
  margin-top: 26px;
}
[hidden] {
  display: none !important;
}
.paper {
  background: var(--light);
  border-top: 4px solid var(--red);
  box-shadow: 0 5px 15px #4f422518;
  padding: 30px;
  margin: 24px 0;
}
.status {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.status.approved {
  background: #d4e6c5;
}
.status.pending {
  background: #f9dfa8;
}
.status.revoked,
.status.rejected {
  background: #edc4b7;
}
.app-card h3 {
  margin-bottom: 12px;
}
.app-card details {
  margin: 20px 0;
}
.app-card summary {
  cursor: pointer;
}
.app-card dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  font-size: 15px;
}
.app-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.notice {
  border-left: 4px solid var(--red);
  padding: 14px 20px;
  background: #fff7e4;
  margin: 24px 0;
}
.error {
  color: #972b20;
  font-weight: bold;
}
.secret {
  overflow-wrap: anywhere;
  user-select: all;
}
.consent-page {
  max-width: 680px;
  margin: 60px auto;
  padding: 24px;
}
.consent-page h1 {
  font-size: 52px;
}
.consent-page ul {
  padding-left: 24px;
}
.locale {
  max-width: 85px;
}
#login-box {
  min-height: 60px;
  width: 100%;
  max-width: 320px;
}
/* Keep the official Google control usable if its external stylesheet is delayed
   or unavailable. Scope these safeguards to the portal login, never page SVGs. */
#login-box svg {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  flex: 0 0 20px;
}
#login-box [role="button"] {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #3c4043;
  font: 500 14px/20px Arial, sans-serif;
  cursor: pointer;
  overflow: hidden;
}
#login-box [role="button"] > div:last-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
}
#login-box .nsm7Bb-HzV7m-LgbsSe-Bz112c {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
}
#login-box .nsm7Bb-HzV7m-LgbsSe-MJoBVe {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#login-box .L6cTce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#login-box [role="button"]:hover {
  background: #f8faff;
  border-color: #c6d5ef;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .topbar .wrap {
    gap: 16px;
    min-height: 68px;
  }
  .topbar nav {
    gap: 14px;
    font-size: 14px;
  }
  .topbar nav a:nth-child(-n + 2) {
    display: none;
  }
  .hero .wrap {
    min-height: 760px;
    align-items: start;
  }
  .hero-copy {
    width: 100%;
    padding: 46px 0 330px;
    max-width: 540px;
  }
  .hero-copy h1 {
    font-size: 60px;
    max-width: 390px;
  }
  .hero-characters {
    height: 430px;
    width: 85%;
    right: -20px;
    opacity: 0.85;
  }
  .hero:before {
    background:
      linear-gradient(#172824 10%, #172824b0 60%, #17282440),
      url("/assets/world.webp") center/cover;
  }
  .hero .recommend {
    max-width: 250px;
  }
  .chapter {
    padding: 64px 0;
  }
  .chapter-head {
    gap: 18px;
  }
  .chapter-number {
    font-size: 50px;
    min-width: 45px;
  }
  .columns,
  .download-grid,
  .portal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .notes {
    gap: 20px;
    flex-wrap: wrap;
  }
  .notes p {
    min-width: 150px;
  }
  .screen {
    border-width: 4px;
  }
  .community-banner,
  .footer .wrap {
    align-items: start;
    flex-direction: column;
  }
  .doc-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  .portal-head {
    padding-top: 40px;
  }
  .portal-head h1 {
    font-size: 52px;
  }
  form .fields {
    grid-template-columns: 1fr;
  }
  .paper {
    padding: 20px;
  }
  .docs table {
    font-size: 14px;
  }
  .docs td {
    padding: 10px 5px;
    overflow-wrap: anywhere;
  }
  .app-card dl {
    grid-template-columns: 1fr;
  }
  .app-card dd {
    margin-bottom: 12px;
  }
  .media-play {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Make mobile availability and direct downloads clear on the first screen. */
.hero .hero-platforms { font-size: 17px; letter-spacing: 1.5px; }
.hero-downloads { display: grid; align-items: stretch; grid-template-columns: 1fr 1fr; max-width: 520px; }
.hero-downloads .button { padding: 14px 12px; font-size: clamp(19px, 1.65vw, 24px); text-align: center; }
.hero-downloads .hero-browser { grid-column: 1 / -1; border-color: #849488; }
.hero-downloads .hero-browser,
.download-option .button[data-play] {
  position: relative;
  background: linear-gradient(115deg, #f6a338, #ffd580);
  color: #292315;
  border-color: #ffe1a4;
  box-shadow: 0 3px 0 #a36422;
}
.hero-downloads .hero-browser::after,
.download-option .button[data-play]::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid #ffe6ad;
  box-shadow: 0 0 20px 4px #ffbb4f88;
  pointer-events: none;
  animation: browser-invite-glow 2.4s ease-in-out infinite;
}
@keyframes browser-invite-glow {
  0%, 100% { opacity: .15; }
  50% { opacity: .95; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-downloads .hero-browser::after,
  .download-option .button[data-play]::after {
    animation: none;
    opacity: .35;
  }
}
.hero-copy .hero-mobile-note { font-size: 16px; margin: 14px 0 0; }
.hero .recommend { margin-top: 10px; }
@media (max-width: 600px) {
  .hero .hero-platforms { font-size: 15px; letter-spacing: 1px; }
  .hero .recommend { max-width: 340px; }
}

.platform-icon { width: 23px; height: 23px; flex: 0 0 23px; --platform-eye: var(--red); }
.button.primary .platform-icon { --platform-eye: var(--gold); }
.hero-downloads .button { gap: 9px; }
@media (max-width: 600px) { .hero-downloads .button { padding-inline: 8px; gap: 7px; } .hero-downloads .platform-icon { width: 21px; height: 21px; flex-basis: 21px; } }
