:root {
  color-scheme: light;
  --ink: #112f3b;
  --muted: #49636c;
  --teal: #00695f;
  --teal-dark: #004f49;
  --line: #d4e6e5;
  --paper: #f5faf9;
  --white: #fff;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.6; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--teal); text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, iframe:focus-visible {
  outline: 3px solid #087897;
  outline-offset: 4px;
}
section[id] { scroll-margin-top: 1rem; }
.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  padding: .55rem .9rem;
  transform: translateY(-200%);
  background: var(--white);
}
.skip:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.55rem;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
  line-height: 1.1;
}
.mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: .68rem;
  background: var(--teal);
}
.mark::before, .mark::after {
  content: "";
  position: absolute;
  width: 1.14rem;
  height: .5rem;
  border-top: 2px solid #d5fff2;
  border-radius: 50%;
  transform: rotate(-16deg);
}
.mark::before { top: .64rem; }
.mark::after { top: 1rem; }
.header-inner nav, .footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem clamp(.7rem, 2vw, 1.6rem);
  font-size: .91rem;
  font-weight: 650;
}
.header-inner nav a, .footer-inner nav a {
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}
.header-inner nav a { padding-block: .38rem; }
.header-inner nav a[aria-current] {
  padding-inline: .82rem;
  border-radius: 99rem;
  background: #def4ec;
  color: var(--teal-dark);
}
.header-inner nav a:hover, .footer-inner nav a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 4.65rem); font-weight: 800; letter-spacing: -.046em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.35rem); letter-spacing: -.034em; }
h3 { font-size: 1.22rem; letter-spacing: -.018em; }

.hero { padding-top: clamp(1.55rem, 3.3vw, 2.8rem); }
.hero-heading { margin-bottom: clamp(1.1rem, 2.2vw, 1.65rem); }
.hero-heading em { color: var(--teal); font-style: normal; }
.hero-heading p { margin-top: .55rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.player {
  padding: .48rem .48rem 0;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--white);
  box-shadow: 0 18px 46px #113f4c12;
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 35rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #143a49;
}
.poster, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage iframe { border: 0; }
.stage:fullscreen { height: 100%; max-height: none; border-radius: 0; background: #071821; }
.poster { display: grid; place-items: center; isolation: isolate; }
.poster img, .poster::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster img { object-fit: cover; object-position: center 48%; }
.poster::after {
  z-index: 0;
  content: "";
  background: linear-gradient(180deg, #0624362b, #0e344754 45%, #092b4073);
}
.poster-action {
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .45rem;
  padding: .75rem;
  color: var(--white);
  font-size: .83rem;
  font-weight: 700;
  text-shadow: 0 1px 4px #042236;
}
.launch {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.35rem;
  padding: .78rem 1.45rem;
  border: 0;
  border-radius: 99rem;
  color: #093731;
  background: #f6fffb;
  box-shadow: 0 5px 22px #0a2e4080;
  text-decoration: none;
  text-shadow: none;
  font-size: 1.1rem;
  font-weight: 800;
}
.launch:hover { background: #c7f9e9; }
.launch:focus-visible { outline-color: white; }
.play-icon { border-block: .35em solid transparent; border-left: .56em solid var(--teal); }
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .1rem .95rem;
  min-height: 3.15rem;
  padding: .3rem .62rem;
  color: var(--muted);
  font-size: .85rem;
}
.credits strong { color: var(--ink); }
.player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.player-actions a, .player-actions button {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.player-status { margin: .55rem .4rem 0; color: var(--muted); font-size: .92rem; }

.quick-start {
  display: grid;
  grid-template-columns: .85fr 1.6fr;
  align-items: start;
  gap: clamp(1.15rem, 3vw, 2.5rem);
  margin-block: clamp(2rem, 5vw, 4rem);
  padding-block: 0 clamp(1.65rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.quick-start h2 { margin-bottom: .45rem; }
.quick-start p, .quick-steps p { color: var(--muted); }
.quick-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quick-steps li { display: flex; gap: .65rem; align-items: flex-start; font-size: .91rem; }
.quick-steps li span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .48rem;
  color: var(--teal-dark);
  background: #def4ec;
  font-weight: 800;
}
.quick-steps p { margin-top: .14rem; }
.guide-section { padding-bottom: clamp(2.2rem, 6vw, 4.7rem); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.guide-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--card-border);
  border-radius: 1.12rem;
  color: var(--ink);
  background: var(--card-bg);
  text-decoration: none;
}
.guide-card:hover { border-color: var(--teal); }
.guide-start { --card-bg: #e8f7f4; --card-border: #c7e8df; }
.guide-controls { --card-bg: #eaf3fa; --card-border: #d0e2ee; }
.guide-upgrades { --card-bg: #fcf5e8; --card-border: #e9dcc3; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .68rem;
  color: var(--teal-dark);
  font-size: .82rem;
  font-weight: 800;
}
.card-arrow { font-size: 1rem; }
.guide-card p { margin-top: .4rem; color: var(--muted); font-size: .93rem; }

.article-page { padding-block: clamp(1.7rem, 4.2vw, 3.6rem) clamp(2.7rem, 6vw, 5rem); }
.article-header {
  padding-bottom: clamp(1.2rem, 3vw, 2.15rem);
  border-bottom: 1px solid var(--line);
}
.article-header h1 { max-width: 52rem; font-size: clamp(2.15rem, 5.5vw, 4rem); }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 700;
}
.article-intro { max-width: 49rem; margin-top: .65rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  color: var(--teal-dark);
  font-size: .91rem;
  font-weight: 750;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(12rem, 16rem);
  gap: 1.2rem clamp(1.4rem, 4vw, 4.2rem);
  align-items: start;
  margin-top: clamp(1.2rem, 3vw, 2.25rem);
}
.contents {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .93rem;
  background: var(--white);
  font-size: .91rem;
}
.contents p { color: var(--ink); font-weight: 800; }
.contents ul { margin: .5rem 0 0; padding: 0; list-style: none; }
.contents a { display: inline-block; padding-block: .18rem; }
.article-body { grid-column: 1; grid-row: 1; min-width: 0; }
.article-body section + section { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-body h2 { font-size: clamp(1.42rem, 2.7vw, 1.88rem); }
.article-body p { margin-top: .68rem; color: var(--muted); }
.article-body strong { color: var(--ink); }
.guide-shot {
  overflow: hidden;
  margin-block: 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--white);
}
.guide-shot img { display: block; width: 100%; height: auto; }
.guide-shot figcaption { padding: .7rem .82rem; color: var(--muted); font-size: .88rem; }
.table-wrap { margin-top: .9rem; border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: .55rem .72rem; text-align: left; vertical-align: top; }
thead th { background: #e6f4f0; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody th { width: 43%; font-weight: 650; }
td { color: var(--muted); }
kbd {
  display: inline-block;
  min-width: 1.45rem;
  padding: .13rem .3rem;
  border: 1px solid #c8dddf;
  border-radius: .22rem;
  background: var(--paper);
  text-align: center;
  font: 650 .8rem ui-monospace, monospace;
}
.answers { display: grid; gap: .55rem; margin-top: .9rem; }
.answers details { padding: .62rem .78rem; border: 1px solid var(--line); border-radius: .68rem; background: var(--white); }
.answers details p { margin-top: .35rem; }
summary { color: var(--teal-dark); font-weight: 750; cursor: pointer; }
.upgrade-list { display: grid; gap: .65rem; margin-block: .95rem; }
.upgrade-list div { padding: .7rem .85rem; border-left: .22rem solid #b8dfd3; background: var(--white); }
.upgrade-list dt { font-weight: 750; }
.upgrade-list dd { margin: 0; color: var(--muted); }
.related { margin-top: clamp(1.7rem, 4vw, 3rem); padding-top: 1.35rem; border-top: 1px solid var(--line); }
.related .guide-grid { max-width: 48rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { padding-block: 1rem; }
.footer-inner p { margin-top: .45rem; color: var(--muted); font-size: .88rem; }

@media (max-width: 57rem) {
  .quick-start { grid-template-columns: 1fr; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 1.65rem); }
  .header-inner { flex-wrap: wrap; gap: .55rem; padding-block: .68rem; }
  .header-inner nav { width: 100%; }
  .guide-grid, .related .guide-grid { grid-template-columns: 1fr; }
  .player { padding: .3rem .3rem 0; border-radius: 1rem; }
  .stage { border-radius: .67rem; }
  .launch { min-height: 2.8rem; padding: .55rem 1rem; font-size: 1rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .contents { position: static; grid-column: 1; grid-row: 1; }
  .article-body { grid-row: 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 30rem) {
  .quick-steps { grid-template-columns: 1fr; }
  .header-inner nav { gap: .34rem .75rem; font-size: .85rem; }
  .header-inner nav a[aria-current] { padding-inline: .6rem; }
  .player-actions { column-gap: .75rem; }
  th, td { padding-inline: .5rem; }
}
