/* Arrowly uses the company header, typography and light/dark theme. */
.arrowly {
  --accent: #c2410c;
  --accent-soft: #fff3e9;
  --game: #7256bb;
}
html[data-theme="dark"] .arrowly {
  --accent: #ffb088;
  --accent-soft: #291b16;
  --game: #bea8fa;
}
.arrowly .container {
  max-width: 1120px;
}
.game-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.game-nav > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 15px;
}
.game-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 650;
}
.game-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.game-nav nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.game-nav nav a {
  padding: 11px 14px;
  font-size: 14px;
  min-height: 44px;
  border-radius: 8px;
  color: var(--muted);
}
.game-nav nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}
.game-nav nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.game-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 84px;
  align-items: center;
  padding-block: 64px 78px;
}
.game-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 27px;
}
.game-label img {
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.game-label p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.game-label strong {
  display: block;
  color: var(--text);
  font-size: 23px;
  letter-spacing: -0.03em;
}
.arrowly h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  max-width: 750px;
  margin: 0 0 24px;
}
.arrowly h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.arrowly h3 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.arrowly p {
  color: var(--muted);
  line-height: 1.8;
}
.game-hero .lead {
  font-size: 18px;
  max-width: 530px;
}
.game-hero h1 span {
  color: var(--game);
}
.game-status {
  display: inline-flex;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
}
.game-hero .small,
.arrowly .small {
  font-size: 13px;
}
.game-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.game-links a,
.arrowly article a,
.arrowly .policy-body a,
.help-email {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.game-links a {
  padding-block: 10px;
  min-height: 44px;
  font-size: 14px;
}
.game-visual {
  margin: 0;
  max-width: 360px;
  justify-self: center;
}
.game-screen {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--raised);
  box-shadow: 0 18px 55px #00000010;
  transform: rotate(2deg);
}
.game-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.game-visual figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}
.game-section {
  padding-block: 60px;
  border-top: 1px solid var(--line);
}
.game-section-head {
  max-width: 630px;
  margin-bottom: 30px;
}
.game-section-head h2 {
  margin: 0 0 14px;
}
.game-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  padding: 26px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.game-card .step {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-size: 12px;
  display: block;
  margin-bottom: 24px;
}
.game-card h3 {
  margin: 0 0 12px;
}
.game-card p {
  font-size: 15px;
  margin: 0;
}
.game-feature-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}
.game-feature-grid > figure {
  margin: 0;
}
.game-feature-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.game-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.game-feature-list h3 {
  margin: 0 0 9px;
}
.game-feature-list p {
  font-size: 15px;
  margin: 0;
}
.game-feature-list article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.game-feature-grid figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.game-help-band {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  background: var(--surface);
  padding: 32px;
  border-radius: 12px;
  margin: 0 0 70px;
}
.game-help-band h2 {
  margin: 0 0 8px;
}
.game-help-band p {
  margin: 0;
}
.help-email {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.policy-header {
  padding-block: 48px 30px;
}
.policy-header .lead {
  max-width: 730px;
  font-size: 18px;
}
.policy-date {
  font-size: 13px;
}
.release-note {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  margin: 22px 0 0;
  line-height: 1.75;
  font-size: 15px;
}
.release-note strong {
  color: var(--text);
}
.release-note p {
  margin: 6px 0 0;
}
.policy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 60px;
  padding-bottom: 72px;
  align-items: start;
}
.policy-toc {
  position: sticky;
  top: 110px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
}
.policy-toc strong {
  font-size: 13px;
}
.policy-toc ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.policy-toc a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
}
.policy-toc a:hover {
  color: var(--accent);
}
.policy-body {
  min-width: 0;
  max-width: 760px;
}
.policy-body section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.policy-body section:first-child {
  padding-top: 0;
}
.policy-body h2 {
  font-size: 25px;
  margin: 0 0 16px;
}
.policy-body p,
.policy-body li {
  font-size: 16px;
  line-height: 1.85;
}
.policy-body p {
  margin: 0 0 16px;
}
.policy-body ul,
.policy-body ol {
  padding-left: 23px;
  color: var(--muted);
}
.policy-body li {
  margin-bottom: 10px;
}
.policy-body strong {
  color: var(--text);
}
.policy-body a {
  overflow-wrap: anywhere;
}
.policy-body details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.policy-body summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 600;
  line-height: 1.5;
}
.policy-body details p {
  padding-top: 14px;
}
.policy-body code {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.arrowly :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.policy-bottom {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.policy-bottom a {
  min-height: 44px;
  padding-block: 10px;
}
@media (max-width: 900px) {
  .game-hero {
    gap: 35px;
  }
  .policy-layout {
    grid-template-columns: 190px 1fr;
    gap: 30px;
  }
  .game-feature-grid {
    gap: 30px;
    grid-template-columns: 230px 1fr;
  }
  .game-nav > .container {
    flex-wrap: wrap;
  }
  .game-hero h1 {
    font-size: 42px;
  }
  .game-help-band {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .game-nav > .container {
    gap: 10px;
  }
  .game-nav nav {
    gap: 0;
    width: 100%;
    justify-content: space-between;
  }
  .game-nav nav a {
    padding: 10px;
    font-size: 13px;
  }
  .game-hero {
    grid-template-columns: 1fr;
    padding-block: 35px 45px;
    gap: 30px;
  }
  .game-hero h1 {
    font-size: 39px;
  }
  .game-hero .lead {
    font-size: 17px;
  }
  .game-visual {
    max-width: 300px;
  }
  .game-screen {
    transform: none;
  }
  .game-cards,
  .game-feature-grid {
    grid-template-columns: 1fr;
  }
  .game-feature-grid > figure {
    max-width: 260px;
    margin: auto;
  }
  .game-feature-list {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .game-section {
    padding-block: 40px;
  }
  .game-cards {
    gap: 14px;
  }
  .policy-layout {
    display: block;
  }
  .policy-toc {
    position: static;
    margin-bottom: 30px;
  }
  .policy-toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
  }
  .policy-header {
    padding-top: 30px;
  }
  .policy-header h1 {
    font-size: 36px;
  }
  .release-note {
    padding: 17px;
  }
  .game-help-band {
    padding: 24px;
  }
  .game-label {
    margin-bottom: 22px;
  }
  .arrowly h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .arrowly * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .game-nav,
  .policy-toc,
  .policy-bottom {
    display: none;
  }
  .policy-layout {
    display: block;
  }
  .arrowly {
    color: #111;
    background: white;
  }
  .arrowly p,
  .policy-body li {
    color: #222;
  }
  .release-note {
    background: #fff;
    border-color: #888;
  }
  .policy-body section {
    break-inside: avoid;
  }
  .policy-header {
    padding-top: 0;
  }
}
