/* Manrope loads from a <link> in each page with display=block, so text waits
   for it instead of flashing another font. This metric-matched fallback only
   shows if Manrope takes longer than the browser's block period (~3s). */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104.33%;
  ascent-override: 102.23%;
  descent-override: 28.77%;
  line-gap-override: 0%;
}
:root {
  color-scheme: dark;
  --bg: #000000;
  --fill: #000000;
  --raised: #000000;
  --field: #000000;
  --line: #252525;
  --text: #e5edf4;
  --muted: #9aaebe;
  --accent: #66c0f4;
  --blue: #8ed3fa;
  --ink: #000000;
  --success: #a4d66c;
  --danger: #f1b4b0;
  --danger-bg: #39272d;
  font:
    14px/1.65 Manrope,
    "Manrope Fallback",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}
body.site {
  display: flex;
  flex-direction: column;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 20;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--ink);
}
.skip:focus {
  top: 12px;
}
.bar,
.top {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 88px;
  padding: 0 max(28px, calc((100vw - 1200px) / 2));
  background: var(--fill);
  border-bottom: 1px solid var(--line);
}
.identity {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 10px 10px 10px 2px;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand {
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
}
.tag {
  color: var(--muted);
  font-size: 11px;
  margin: -3px 0 0;
  letter-spacing: 0.02em;
}
.links {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 28px;
  margin-left: 28px;
}
.links a {
  display: flex;
  align-items: center;
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.links a:hover,
.links a[aria-current] {
  color: var(--text);
}
.links a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  left: 0;
  right: 0;
  background: var(--accent);
}
#account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.discord,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.discord:hover,
.button:hover,
button:hover {
  background: var(--blue);
  color: var(--ink);
}
.bar .discord {
  padding: 9px 13px;
  min-height: 36px;
  background: var(--raised);
  color: var(--text);
  border-color: var(--line);
  font-size: 12px;
}
.bar .discord:hover {
  border-color: var(--accent);
}
.secondary,
button.secondary {
  background: var(--raised);
  color: var(--text);
  border-color: var(--line);
}
.secondary:hover,
button.secondary:hover {
  border-color: var(--accent);
  background: var(--raised);
  color: var(--text);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button.text-button {
  padding: 0;
  min-height: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}
button.text-button:hover {
  color: var(--accent);
}
.who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.who img,
.letter {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}
.letter {
  display: grid;
  place-items: center;
  background: var(--raised);
  color: var(--accent);
}
.who-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.wrap,
.page {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
main {
  flex: 1;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 14px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 14px;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
p {
  max-width: 75ch;
}
.muted,
.quiet,
.sub,
.deck,
.note,
.empty {
  color: var(--muted);
}
.lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 56ch;
}
.page-top {
  padding-block: 48px 80px;
  min-height: calc(100vh - 240px);
}
.page-title {
  margin-bottom: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 25px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.page-heading p {
  margin-bottom: 0;
}
.breadcrumb {
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb span {
  margin-inline: 10px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  min-height: 415px;
  padding-block: 56px;
}
.hero h1 {
  font-size: clamp(42px, 4.6vw, 64px);
  max-width: none;
  line-height: 1.07;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
}
.hero .lede {
  max-width: 43ch;
  margin-bottom: 26px;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#hero-cta {
  min-width: 175px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.hero-link:hover {
  color: var(--accent);
}
.hero-art {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--fill);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to top right, transparent, black);
}
.hero-art > svg {
  position: absolute;
  width: 300px;
  height: 240px;
  right: 15px;
  top: 7px;
  color: var(--accent);
}
.art-caption {
  position: absolute;
  bottom: 26px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 19px;
}
.art-caption strong {
  display: block;
  font-size: 15px;
}
.art-caption span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.art-caption .small-key {
  font-size: 24px;
  color: var(--accent);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a {
  font-size: 12px;
  text-decoration: none;
}
.section-heading .muted {
  margin: 5px 0 0;
  font-size: 12px;
}
.band {
  padding-block: 8px 44px;
}
.shelf,
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
}
.game {
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.game img,
.cover {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}
.game:hover img,
.game:hover .cover {
  border-color: var(--accent);
}
.game-name {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.game:hover .game-name {
  color: var(--accent);
}
.game-meta {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.cover {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}
.library-state {
  grid-column: 1/-1;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--fill);
}
.library-state svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--muted);
}
.library-state h3 {
  margin: 0 0 5px;
}
.library-state p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.library-state a {
  font-size: 12px;
  display: inline-block;
  margin-top: 10px;
}
.block {
  padding-block: 36px 48px;
  border-top: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps > div {
  position: relative;
  padding-left: 44px;
}
.step-number {
  position: absolute;
  left: 0;
  top: -1px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--raised);
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.steps p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.offline-note {
  display: flex;
  gap: 20px;
  align-items: start;
  background: var(--fill);
  border-left: 3px solid var(--accent);
  border-radius: 0 5px 5px 0;
  padding: 23px 26px;
  margin-bottom: 48px;
}
.offline-note svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.offline-note h3 {
  margin-bottom: 5px;
}
.offline-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 25px;
  margin-top: auto;
}
.foot .brand {
  font-size: 18px;
}
.foot p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.foot nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.foot nav a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--accent);
}
.toolbar {
  margin: 0;
}
.search-label {
  display: block;
  width: 290px;
  position: relative;
}
.search-label svg {
  position: absolute;
  width: 17px;
  height: 17px;
  left: 14px;
  top: 14px;
  color: var(--muted);
}
.search-label input {
  padding-left: 41px;
}
input,
textarea {
  width: 100%;
  padding: 11px 13px;
  min-height: 44px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 5px;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
/* Typing boxes: no extra ring, just light up their own border. */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #13202d;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
input:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: var(--muted);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 32px;
}
.workspace > * {
  min-width: 0;
}
.panel,
.check,
.guide-section {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 28px;
}
.panel h2,
.check h2 {
  font-size: 19px;
  margin-bottom: 9px;
}
.panel > :last-child,
.guide-section > :last-child {
  margin-bottom: 0;
}
.aside {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0 0 24px;
  border-left: 1px solid var(--line);
}
.aside h3 {
  color: var(--text);
  font-size: 13px;
}
.aside ol {
  padding-left: 18px;
  margin-bottom: 24px;
}
li + li {
  margin-top: 10px;
}
.aside a {
  font-size: 12px;
}
.aside .offline-note {
  margin: 24px 0 0;
  padding: 16px;
  border-left-width: 2px;
}
.aside .offline-note p {
  font-size: 12px;
}
.guide-list {
  display: grid;
  gap: 18px;
}
.guide-section {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
}
.guide-section .step-number {
  position: static;
  width: 32px;
  height: 32px;
}
.guide-section h2 {
  font-size: 19px;
  margin: 2px 0 14px;
}
.long {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.check {
  margin-top: 16px;
  position: relative;
  padding-left: 54px;
}
.check::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 34px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}
.check.complete::before {
  border-color: var(--success);
  background: var(--success);
}
.check p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.check input {
  display: block;
  max-width: 370px;
  margin-bottom: 12px;
}
.check label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.check .check-status {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.check.complete .check-status {
  color: var(--success);
}
.notice,
.alert {
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 5px;
  padding: 12px 16px;
  font-size: 13px;
  margin: 16px 0;
}
.note,
.deck {
  font-size: 13px;
}
.drop {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border: 1px dashed var(--muted);
  border-radius: 6px;
  margin-block: 20px;
}
.drop.over {
  border-color: var(--accent);
  background: var(--raised);
}
.drop {
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.drop h3 {
  margin-bottom: 6px;
}
.drop p,
.stack .drop p {
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 2;
}
kbd {
  display: inline-block;
  min-width: 26px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--raised);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}
.touch-hint {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .paste-hint {
    display: none;
  }
  .touch-hint {
    display: inline;
  }
}
.drop > svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 12px;
}
.drop p {
  margin: 0 auto 15px;
  color: var(--muted);
}
.upload-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.drop img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  margin: 20px auto 0;
  border-radius: 4px;
}
.file-input,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.upload-actions label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.counts:empty {
  display: none;
}
.count-card {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
}
.count-card strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.count-card span {
  color: var(--muted);
  font-size: 12px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table.roster {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
.roster th {
  color: var(--muted);
  font-weight: 600;
  background: var(--fill);
  font-size: 11px;
}
.roster td,
.roster th {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.roster td {
  font-size: 12px;
}
.roster tr:last-child td {
  border-bottom: 0;
}
#app > section {
  margin-top: 30px;
}
#app > section h2 {
  font-size: 20px;
}
.sheet {
  width: min(820px, calc(100% - 48px));
  margin: 44px auto 64px;
}
.sheet > .stack,
.sheet > div.stack {
  margin-block: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--fill);
}
.stack {
  display: grid;
  gap: 13px;
}
.stack h2 {
  margin: 0;
}
.stack p,
.stack ol {
  margin-block: 0;
}
.stack > button {
  justify-self: start;
}
.field {
  display: block;
}
.field span {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.actions,
.passline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.passline input {
  flex: 1;
}
.recovery {
  padding: 16px;
  background: var(--raised);
  color: var(--accent);
  font-size: 23px;
  letter-spacing: 0.05em;
  border-radius: 5px;
}
.activity {
  list-style: none;
  padding: 0;
}
.activity li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.activity time {
  color: var(--muted);
}
details {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
summary {
  cursor: pointer;
  color: var(--accent);
}
details[open] summary {
  margin-bottom: 16px;
}
@media (min-width: 1450px) {
  .hero {
    min-height: 470px;
  }
  .hero-art {
    min-height: 340px;
  }
  .hero-art > svg {
    right: 35px;
    top: 15px;
  }
}
@media (max-width: 1050px) {
  .bar {
    gap: 22px;
    padding-inline: 24px;
  }
  .links {
    margin-left: 0;
    gap: 20px;
  }
  .identity .tag {
    display: none;
  }
  .brand {
    font-size: 23px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 26px;
  }
  .hero {
    gap: 30px;
  }
  .shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .bar {
    flex-wrap: wrap;
    min-height: 0;
    padding: 18px 22px 0;
    gap: 15px;
  }
  .bar .identity {
    order: 0;
  }
  #account {
    order: 1;
  }
  .links {
    order: 2;
    width: 100%;
    gap: 28px;
    min-height: 43px;
    overflow-x: auto;
  }
  .wrap,
  .page {
    width: calc(100% - 40px);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 36px;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(28px, 8vw, 43px);
  }
  .hero .lede {
    max-width: 49ch;
  }
  .hero-art {
    min-height: 250px;
  }
  .hero-art > svg {
    height: 210px;
    top: -15px;
    right: 5%;
  }
  .art-caption {
    bottom: 20px;
    left: 22px;
    right: 22px;
  }
  .shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .block {
    padding-block: 28px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .page-top {
    padding-block: 30px 50px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .toolbar,
  .search-label {
    width: 100%;
  }
  .foot {
    align-items: start;
    flex-direction: column;
    gap: 17px;
  }
  .foot nav {
    gap: 20px;
  }
  .panel,
  .guide-section {
    padding: 22px;
  }
  .counts {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .count-card {
    padding: 16px;
  }
  .library-state {
    padding: 25px 22px;
    gap: 18px;
  }
  .library-state svg {
    width: 30px;
  }
  .sheet {
    width: calc(100% - 40px);
    margin-top: 28px;
  }
  .sheet > .stack {
    padding: 22px;
  }
}
@media (max-width: 420px) {
  .bar .discord {
    font-size: 11px;
    padding-inline: 10px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .identity {
    gap: 9px;
  }
  .bar {
    padding-inline: 20px;
  }
  .links {
    gap: 24px;
  }
  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: clamp(28px, 8vw, 38px);
  }
  .hero-art {
    min-height: 230px;
  }
  .hero-art > svg {
    width: 245px;
  }
  .check {
    padding: 24px 20px 24px 44px;
  }
  .check::before {
    left: 20px;
    top: 31px;
  }
  .guide-section {
    grid-template-columns: 27px 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
  .guide-section .step-number {
    width: 26px;
    height: 26px;
  }
  .who-name {
    display: none;
  }
  #account {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Setup forms are rendered inside the live app container. */
.sheet #app > .stack {
  margin-block: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--fill);
}
.sheet #app .stack.boxed {
  margin-block: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--fill);
}
.sheet #app > h1:not(:first-child) {
  font-size: 28px;
  margin-top: 38px;
}
.upload-hint {
  font-size: 11px;
  margin-top: 14px !important;
}
#gate:not(:empty) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 760px) {
  .sheet #app > .stack {
    padding: 22px;
  }
}

.sheet p,
.sheet li,
.aside p {
  overflow-wrap: anywhere;
}

/* ---------- Loading states ---------- */
.narrow {
  max-width: 720px;
}
.lede.left {
  margin-inline: 0;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.skeleton {
  background: linear-gradient(
      90deg,
      var(--fill) 0%,
      var(--raised) 50%,
      var(--fill) 100%
    )
    0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton {
  display: inline-block;
  border-radius: 5px;
}
.skeleton.pill-sm {
  width: 150px;
  height: 36px;
}
.skeleton.pill {
  width: 175px;
  height: 43px;
}
.game img {
  height: auto;
  transition:
    border-color 0.15s,
    opacity 0.25s;
}
.game img:not(.loaded) {
  color: transparent;
}
.library-loading {
  min-height: 157px;
}
.painted > * {
  animation: rise 0.25s ease-out both;
}
.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
}
.loading::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#steps > .loading {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--fill);
}
#gate .discord {
  margin-top: 4px;
}
@media (max-width: 420px) {
  .skeleton.pill-sm {
    width: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .painted > * {
    animation: none !important;
  }
  .loading::before {
    animation-duration: 2s !important;
  }
}

.brand-v {
  color: var(--accent);
}

/* Vplay ribbon monogram; uses the established Steam-blue accent. */
.brand-mark {
  background: transparent;
  border-radius: 0;
  color: var(--accent);
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Keep the hero inside the page gutter, including with classic scrollbars. */
.hero-video-section {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(500px, 40vw, 580px);
  margin-inline: 0;
  padding: 56px 0;
  margin-bottom: 36px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: #000;
}
.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #000 0%,
      rgba(0, 0, 0, 0.97) 25%,
      rgba(0, 0, 0, 0.8) 40%,
      transparent 65%
    ),
    linear-gradient(0deg, #000 0%, transparent 18%);
}
.hero-video-section .hero-copy {
  position: relative;
  z-index: 1;
  width: 52%;
  min-width: 0;
}
@media (max-width: 760px) {
  .hero-video-section {
    padding: 230px 0 40px;
    min-height: 0;
  }
  .hero-video-section .hero-copy {
    width: 100%;
  }
  .hero-media {
    bottom: auto;
    height: 310px;
  }
  .hero-media::after {
    background: linear-gradient(0deg, #000 0%, transparent 70%);
  }
  .hero-media video {
    object-position: right center;
  }
}

.hero-video-section .hero-copy {
  container-type: inline-size;
}
.hero-video-section h1 {
  font-size: clamp(24px, 9cqi, 64px);
}
.hero-video-section h1 strong {
  color: var(--accent);
  font-weight: inherit;
}

/* Shared language controls keep the existing black and Steam-blue palette. */
.language-picker {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}
.language-picker + #account {
  margin-left: 0;
}
.language-trigger {
  min-height: 36px;
  padding: 8px 10px;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.language-flag,
.language-menu img {
  object-fit: cover;
  border-radius: 2px;
  flex: none;
}
.language-chevron {
  transition: transform 0.15s;
}
.language-trigger[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}
.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 30;
  min-width: 175px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 12px 32px #0009;
}
.language-menu button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
}
.language-menu button:hover,
.language-menu button:focus-visible {
  background: #101820;
}
.language-check {
  margin-left: auto;
  color: var(--accent);
  visibility: hidden;
}
.language-menu button[aria-checked="true"] .language-check {
  visibility: visible;
}
.language-dialog {
  width: min(480px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
}
.language-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.language-dialog > img {
  display: block;
  margin-bottom: 22px;
  border-radius: 2px;
}
.language-dialog h2 {
  line-height: 1.6;
  font-size: 23px;
  letter-spacing: 0;
  padding-right: 12px;
}
.language-dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.language-dialog [lang="si"],
.language-menu [lang="si"],
.language-label,
html:lang(si) {
  font-family: "Noto Sans Sinhala", Manrope, "Nirmala UI", sans-serif;
}
.language-dialog .dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  line-height: 1;
  width: 30px;
  min-height: 30px;
}
html:lang(si) {
  line-height: 1.9;
}
html:lang(si) h1,
html:lang(si) h2,
html:lang(si) h3 {
  letter-spacing: 0;
  line-height: 1.6;
}
html:lang(si) .hero h1 span {
  white-space: normal;
}
html:lang(si) .hero-video-section h1 {
  font-size: clamp(23px, 7cqi, 48px);
}
html:lang(si) .brand,
html:lang(si) .brand * {
  font-family: Manrope, sans-serif;
  letter-spacing: -1px;
}
html:lang(si) .links {
  gap: 18px;
}
html:lang(si) .links a {
  font-size: 12px;
}
html:lang(si) button,
html:lang(si) .button,
html:lang(si) .discord {
  line-height: 1.7;
}
@media (max-width: 1050px) {
  .bar {
    flex-wrap: wrap;
    padding: 16px 24px 0;
    gap: 12px 20px;
  }
  .bar .identity {
    order: 0;
  }
  .bar .language-picker {
    order: 1;
    margin-left: auto;
  }
  .bar #account,
  .bar > .button {
    order: 2;
    margin-left: 0;
  }
  .bar .links {
    order: 3;
    width: 100%;
    min-height: 44px;
    margin: 0;
  }
}
@media (max-width: 760px) {
  .bar {
    padding-inline: 20px;
    gap: 10px 12px;
  }
  .bar .links {
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 0;
    overflow: visible;
  }
  .bar .links a {
    padding-block: 10px;
  }
  .bar #account {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .language-dialog {
    padding: 25px;
  }
  .language-dialog h2 {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .language-trigger .language-label {
    display: none;
  }
  .language-trigger {
    padding: 8px;
    gap: 5px;
  }
}

/* Full-viewport hero uses normal page flow, without viewport-width margins. */
.home-main {
  width: 100%;
  min-width: 0;
}
.home-main > :not(.hero) {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.hero-video-section {
  width: 100%;
  min-height: calc(100svh - var(--site-header-height, 88px));
  padding-inline: max(32px, calc((100% - 1200px) / 2));
}
@media (max-width: 760px) {
  .home-main > :not(.hero) {
    width: calc(100% - 40px);
  }
  .hero-video-section {
    padding-inline: 20px;
  }
  .hero-media {
    inset: 0;
    height: 100%;
  }
  .hero-media::after {
    background: linear-gradient(
      0deg,
      #000 0%,
      rgba(0, 0, 0, 0.96) 48%,
      rgba(0, 0, 0, 0.15) 100%
    );
  }
}

/* Header controls keep the same geometry before and after API/module loading. */
.bar .language-picker {
  width: 128px;
  flex: 0 0 128px;
}
.bar .language-trigger {
  width: 100%;
}
.bar #account {
  flex: 0 0 244px;
  width: 244px;
  min-height: 40px;
  justify-content: flex-end;
}
.bar .who-name {
  max-width: 96px;
}
.bar #account.painted > * {
  animation: none;
}
@media (max-width: 760px) {
  .bar #account {
    flex: 0 0 100%;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .bar .language-picker {
    width: 60px;
    flex-basis: 60px;
  }
}

/* Keep language and account controls together, without an empty reserved gap. */
.header-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.bar .header-controls .language-picker {
  margin-left: 0;
}
.bar .header-controls #account {
  flex: 0 0 auto;
  width: auto;
}
.hero-video-section {
  padding-inline: max(40px, calc((100% - 1440px) / 2));
}
.hero-video-section .hero-copy {
  width: min(820px, 62%);
}
.hero-video-section h1 {
  font-size: clamp(28px, 9.5cqi, 80px);
}
.hero-video-section .lede {
  font-size: clamp(16px, 1.1vw, 18px);
  max-width: 48ch;
  line-height: 1.85;
}
.hero-video-section .eyebrow {
  font-size: 14px;
}
.hero-video-section .discord {
  min-height: 50px;
  padding: 13px 22px;
  font-size: 15px;
}
.hero-video-section .hero-link {
  font-size: 14px;
}
html:lang(si) .hero-video-section h1 {
  font-size: clamp(25px, 8.2cqi, 64px);
}
@media (max-width: 1050px) {
  .bar .header-controls {
    order: 1;
  }
}
@media (max-width: 760px) {
  .bar .header-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
  }
  .hero-video-section {
    padding-inline: 20px;
  }
  .hero-video-section .hero-copy {
    width: 100%;
  }
  .hero-video-section .eyebrow {
    font-size: 12px;
  }
  .hero-video-section .discord {
    font-size: 13px;
    min-height: 46px;
    padding-inline: 16px;
  }
  .hero-video-section .hero-link {
    font-size: 12px;
  }
}

/* Shared content alignment with larger hero type inside the same 1200px grid. */
.hero-video-section {
  padding-inline: max(28px, calc((100% - 1200px) / 2));
}
.bar .identity {
  width: 232px;
}
.bar .identity > div {
  min-width: 0;
}
.bar .tag {
  max-width: 183px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar .links a {
  flex: 0 0 auto;
}










.bar #account > .discord {
  width: 216px;
}
.bar .who-name {
  width: auto;
  max-width: 120px;
  text-align: left;
}
.bar #account > .text-button {
  width: 84px;
}
.hero #hero-cta .discord {
  width: 260px;
}
@media (max-width: 1050px) {
  .bar .identity {
    width: 128px;
  }
  .hero-video-section {
    padding-inline: 24px;
  }
}
@media (max-width: 760px) {
  .hero-video-section {
    padding-inline: 20px;
  }





  .hero #hero-cta .discord {
    width: 240px;
  }
}

.bar #account > .discord {
  background: var(--accent);
  color: var(--ink);
  border-color: transparent;
}
.bar #account > .discord:hover {
  background: var(--blue);
  border-color: transparent;
}

/* Native Sinhala fonts avoid a late web-font swap and resulting layout jump. */
html:lang(si),
.language-dialog [lang="si"],
.language-menu [lang="si"] {
  font-family: "Nirmala UI", "Sinhala Sangam MN", sans-serif;
}
.language-label {
  font-family: inherit;
}
@media (max-width: 1280px) {
  .bar {
    flex-wrap: wrap;
    padding: 16px 24px 0;
    gap: 12px 20px;
  }
  .bar .identity {
    order: 0;
  }
  .bar .header-controls {
    order: 1;
  }
  .bar .links {
    order: 3;
    width: 100%;
    min-height: 44px;
    margin: 0;
  }
  .hero-video-section {
    padding-inline: 24px;
  }
}
@media (max-width: 760px) {
  .bar {
    padding-inline: 20px;
    gap: 10px 12px;
  }
  .hero-video-section {
    padding-inline: 20px;
  }
}

@media (min-width: 1281px) {
  .bar,
  .top {
    padding-inline: max(28px, calc((100% - 1200px) / 2));
  }
}
.bar #account > .discord {
  white-space: nowrap;
}
.hero #hero-cta .discord {
  width: 280px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .hero #hero-cta .discord {
    width: 240px;
  }
}

/* Never expose an unpainted video surface when restoring a backgrounded window. */
.hero-media .hero-poster,
.hero-media .hero-freeze {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  background: #000;
}
.hero-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #000;
  transition: none;
}
.hero-media.video-frame-ready video {
  opacity: 1;
}
.hero-media .hero-freeze {
  display: none;
}
.hero-media.has-frozen-frame .hero-freeze {
  display: block;
}

/* Profile menu: the signed-in name opens a menu with the next step, Account and Sign out. */
.profile {
  position: relative;
}
.profile > .who {
  position: relative;
  min-height: 40px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.profile > .who:hover,
.profile > .who[aria-expanded="true"] {
  border-color: var(--accent);
  background: transparent;
}
.profile > .who:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.profile > .who.pending::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--canvas, #000);
}
.profile-chevron {
  color: var(--muted);
  transition: transform 0.15s ease;
}
.profile > .who[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}
.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0d10;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.profile-menu[hidden] {
  display: none;
}
.profile-menu > a,
.profile-menu > button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.profile-menu > a:hover,
.profile-menu > button:hover,
.profile-menu > a:focus-visible,
.profile-menu > button:focus-visible {
  background: #151b22;
  color: var(--accent);
  outline: none;
}
.profile-menu > .profile-next {
  color: var(--accent);
  font-weight: 700;
}
.profile-menu > .profile-out {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .profile-chevron {
    transition: none;
  }
}

/* Connection-check result page. */
.result-card {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0d10;
  text-align: center;
}
.result-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
}
.result-card.is-ok .result-icon {
  color: #3ecf8e;
  background: rgba(62, 207, 142, 0.12);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.35);
}
.result-card.is-fail .result-icon {
  color: #f5b544;
  background: rgba(245, 181, 68, 0.12);
  box-shadow: 0 0 0 1px rgba(245, 181, 68, 0.35);
}
.result-card h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.result-lede {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.result-steps {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 20px 20px 20px 40px;
  border-radius: 10px;
  background: #000;
  text-align: left;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.result-steps strong {
  color: var(--text);
}
.result-note,
.result-help {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.result-help {
  margin-inline: auto;
  max-width: 46ch;
  text-align: center;
}
.result-note {
  padding: 12px 14px;
  border: 1px solid rgba(245, 181, 68, 0.35);
  border-radius: 8px;
  color: #f2d39b;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.result-actions .button {
  min-width: 180px;
}
@media (max-width: 480px) {
  .result-card {
    padding: 28px 18px;
  }
  .result-actions .button {
    width: 100%;
  }
}

/* Space between the last account step and the Steam sign-in button. */
.steps-next {
  margin: 24px 0 0;
}

/* Play page: after Steam signs in. Confirmation, then the offline rules, highlighted. */
.signin-result {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.signin-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(62, 207, 142, 0.35);
  border-radius: 10px;
  background: rgba(62, 207, 142, 0.1);
  color: #3ecf8e;
  font-size: 15px;
}
.signin-done strong {
  color: #3ecf8e;
}
.signin-tick {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3ecf8e;
}
.signin-tick::before {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border-left: 2.5px solid #000;
  border-bottom: 2.5px solid #000;
  transform: rotate(-45deg);
}
.signin-where {
  color: var(--muted);
}
.signin-rules {
  padding: 20px 20px 18px;
  border: 1px solid rgba(245, 181, 68, 0.45);
  border-radius: 12px;
  background: rgba(245, 181, 68, 0.06);
}
.signin-rules h3 {
  margin: 0 0 12px;
  color: #f5b544;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.signin-rules ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
.signin-rules li::marker {
  color: #f5b544;
  font-weight: 800;
}
.signin-tip {
  margin: 12px 0 0;
  color: #f2d39b;
  font-size: 14px;
  line-height: 1.5;
}
.signin-ban {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(240, 97, 109, 0.5);
  border-radius: 8px;
  background: rgba(240, 97, 109, 0.12);
  font-size: 14px;
  line-height: 1.5;
}
.signin-ban strong {
  color: #ff8a94;
  font-size: 15px;
}
.signin-ban span {
  color: var(--text);
}
.signin-tip,
.signin-ban {
  max-width: none;
}

/* Profile menu icons. */
.profile-menu > a,
.profile-menu > button {
  gap: 10px;
}
.profile-menu .menu-icon {
  flex: none;
  color: var(--muted);
}
.profile-menu > .profile-next .menu-icon,
.profile-menu > a:hover .menu-icon,
.profile-menu > button:hover .menu-icon,
.profile-menu > a:focus-visible .menu-icon,
.profile-menu > button:focus-visible .menu-icon {
  color: var(--accent);
}

/* Site-wide field focus changes only the existing border color. */
input:not([type="checkbox"]):not([type="radio"]):focus,
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
  border-color: var(--accent);
  background: var(--field);
}
input:not([type="checkbox"]):not([type="radio"]):focus,
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline-width: 0;
}

.library-growth {
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: #050b0f;
  margin-bottom: 26px;
}
.library-growth strong {
  display: block;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 5px;
}
.library-growth p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 85ch;
  line-height: 1.8;
}
.library-growth small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 600px) {
  .library-growth {
    padding: 18px 20px;
  }
}
html { scrollbar-gutter: stable; }
@media(max-width:600px) { .hero-video-section h1 { font-size: clamp(26px, 9.5cqi, 80px); } }

/* Account: ready panel and compact checklist once every check is done. */
.ready-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(62, 207, 142, 0.4);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.1), rgba(102, 192, 244, 0.06));
}
.ready-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3ecf8e;
  color: #000;
}
.ready-icon svg {
  width: 24px;
  height: 24px;
}
.ready-text h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}
.ready-text p {
  margin: 0;
  color: var(--muted);
}
.ready-button {
  min-width: 200px;
  font-size: 16px;
}
@media (max-width: 640px) {
  .ready-panel {
    grid-template-columns: auto 1fr;
  }
  .ready-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.checklist {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.checklist h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.checklist ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.checklist li:first-child {
  border-top: 0;
}
.checklist-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.15);
  color: #3ecf8e;
}
.checklist-state {
  margin-left: auto;
  color: #3ecf8e;
  font-size: 13px;
  font-weight: 600;
}
/* While steps are left, finished ones shrink to one line. */
#steps .check.complete {
  padding-block: 14px;
}
#steps .check.complete p {
  display: none;
}

/* Rule boxes that must never be missed. */
.rule-callout {
  position: relative;
  padding: 18px 18px 16px 52px;
  border: 1px solid rgba(245, 181, 68, 0.45);
  border-radius: 12px;
  background: rgba(245, 181, 68, 0.06);
}
.rule-callout::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f5b544;
  color: #000;
  font-weight: 800;
  font-size: 15px;
}
.rule-callout h3 {
  margin-top: 0;
  color: #f5b544;
}
.rule-callout p {
  color: var(--text);
}
.rule-callout p:last-child {
  margin-bottom: 0;
}
.offline-note.rule-callout > div {
  border: 0;
  padding: 0;
}

/* One-time rules agreement before the first sign-in. */
body.rules-open {
  overflow: hidden;
}
.rules-shade {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.82);
  overflow-y: auto;
}
.rules-dialog {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(245, 181, 68, 0.5);
  border-radius: 14px;
  background: #0b0d10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.rules-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #f5b544;
  color: #000;
  font-size: 22px;
  font-weight: 800;
}
.rules-dialog h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}
.rules-intro {
  margin: 0 0 16px;
  color: var(--muted);
}
.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 16px 16px 36px;
  border-radius: 10px;
  background: #000;
  line-height: 1.5;
}
.rules-list li::marker {
  color: #f5b544;
  font-weight: 800;
}
.rules-ban {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(240, 97, 109, 0.5);
  border-radius: 8px;
  background: rgba(240, 97, 109, 0.12);
  color: #ff8a94;
  font-weight: 700;
}
.rules-tick {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-weight: 600;
  cursor: pointer;
}
.rules-tick input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: #66c0f4;
}
.rules-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.rules-actions button {
  min-width: 200px;
}
.rules-tick input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

/* Account: one full-width column, trust rules right under the sign-in panel. */
.account-main {
  display: grid;
  gap: 16px;
}
.account-main #steps {
  display: grid;
  gap: 16px;
}
.account-main #steps .checklist {
  margin-top: 0;
}
.trust-callout {
  padding: 20px 24px 18px 56px;
}
.trust-callout::before {
  left: 20px;
  top: 19px;
}
.trust-callout h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
.trust-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.trust-columns {
  gap: 14px;
}
.trust-columns p {
  position: relative;
  margin: 0;
  max-width: none;
  line-height: 1.6;
  padding: 16px 18px 16px 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}
.trust-columns p::before {
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}
.trust-columns p:first-child::before {
  content: "♥";
  background: rgba(94, 224, 181, 0.14);
  color: #5ee0b5;
}
.trust-columns p:last-child {
  border-color: rgba(255, 120, 100, 0.28);
}
.trust-columns p:last-child::before {
  content: "!";
  background: rgba(255, 120, 100, 0.16);
  color: #ff8a73;
}
.trust-link {
  margin: 12px 0 0;
}
@media (max-width: 760px) {
  .trust-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.ready-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.steam-logo {
  width: 20px;
  height: 20px;
  flex: none;
}

/* The caution box already has its own "!" badge, so hide the older icon. */
.offline-note.rule-callout {
  display: block;
  margin-bottom: 32px;
}
.offline-note.rule-callout > svg {
  display: none;
}

/* "We're just getting started": a calm, growing-library card with a swaying seedling. */
.library-growth {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(94, 224, 181, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(94, 224, 181, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(102, 192, 244, 0.1), rgba(10, 16, 22, 0.6));
}
.growth-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(94, 224, 181, 0.14);
  box-shadow: inset 0 0 0 1px rgba(94, 224, 181, 0.3);
  color: #5ee0b5;
}
.growth-icon svg {
  transform-origin: 50% 90%;
  animation: growth-sway 4s ease-in-out infinite;
}
@keyframes growth-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.library-growth strong {
  display: block;
  margin-bottom: 4px;
  color: #e5edf4;
  font-size: 17px;
}
.library-growth p {
  margin: 0 0 10px;
  color: var(--muted);
}
.library-growth small {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(102, 192, 244, 0.12);
  color: #9fd6f7;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .library-growth {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .growth-icon svg {
    animation: none;
  }
}

/* Play: a chosen screenshot fills the upload box without changing its size. */
.drop {
  position: relative;
}
.drop.has-picture #preview {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}
.drop.has-picture {
  border-style: solid;
  border-color: var(--accent);
}
.preview-reset {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  min-height: 0;
  padding: 8px 14px;
  font-size: 13px;
}
.drop.has-picture {
  box-sizing: border-box;
}

/* How it works side panel: button and links as one tidy block. */
.aside-actions {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.aside-actions #hero-cta .discord,
.aside-actions #hero-cta .button {
  width: 100%;
  justify-content: center;
}
.aside-links {
  display: grid;
  border-top: 1px solid var(--line);
}
.aside-links p {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  text-decoration: none;
  font-weight: 600;
}
.aside-links a::after {
  content: "→";
  color: var(--muted);
}
.aside-links a[target="_blank"]::after {
  content: "↗";
}
.aside-links a:hover::after {
  color: var(--accent);
}
.aside-footnote {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== Caution style, site-wide =====
   Same friendly card as the "growing library" note, in amber: soft corner glow,
   rounded card, and an icon in a gently pulsing circle. */
.rule-callout,
.signin-rules,
.result-note,
.rules-dialog {
  border: 1px solid rgba(245, 181, 68, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(245, 181, 68, 0.13), transparent 55%),
    linear-gradient(135deg, rgba(245, 181, 68, 0.06), rgba(14, 12, 8, 0.65));
}
.rules-dialog {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(245, 181, 68, 0.13), transparent 55%),
    #0d0c09;
}
.rule-callout {
  position: relative;
  min-height: 52px;
  padding: 22px 24px 22px 94px;
}
.rule-callout::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(245, 181, 68, 0.14);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
  /* "Wi-Fi off": offline play. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l20 20'/%3E%3Cpath d='M8.5 16.5a5 5 0 0 1 7 0'/%3E%3Cpath d='M5 12.9a10 10 0 0 1 5.2-2.8'/%3E%3Cpath d='M19 12.9a10 10 0 0 0-2.2-1.7'/%3E%3Cpath d='M2 8.8a15 15 0 0 1 4.2-2.7'/%3E%3Cpath d='M22 8.8A15 15 0 0 0 10.7 5'/%3E%3Cpath d='M12 20h.01'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.32), 0 0 0 0 rgba(245, 181, 68, 0.28);
  color: transparent;
  font-size: 0;
  animation: caution-pulse 3.2s ease-out infinite;
}
.trust-callout::before {
  /* Shield with a heart: access shared in trust. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6l-8-3Z'/%3E%3Cpath d='M12 15.5s-3-1.8-3-3.9a1.6 1.6 0 0 1 3-.8 1.6 1.6 0 0 1 3 .8c0 2.1-3 3.9-3 3.9Z'/%3E%3C/svg%3E");
}
@keyframes caution-pulse {
  0% { box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.32), 0 0 0 0 rgba(245, 181, 68, 0.28); }
  70% { box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.32), 0 0 0 12px rgba(245, 181, 68, 0); }
  100% { box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.32), 0 0 0 0 rgba(245, 181, 68, 0); }
}
.rule-callout h3 {
  margin: 0 0 6px;
  color: #f7c66b;
  font-size: 17px;
}
.rule-callout p {
  color: #d8dee5;
}
.trust-callout {
  padding: 22px 24px 20px 94px;
}
.trust-callout::before {
  left: 24px;
  top: 22px;
}
@media (max-width: 560px) {
  .rule-callout,
  .trust-callout {
    padding: 84px 18px 18px;
  }
  .rule-callout::before,
  .trust-callout::before {
    left: 18px;
    top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rule-callout::before {
    animation: none;
  }
}
.steam-logo svg {
  display: block;
}

/* Account: WhatsApp step as three clear numbered steps. */
.wa-guide {
  margin: 16px 0 18px;
}
.wa-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wa;
}
.wa-steps > li {
  position: relative;
  padding-left: 40px;
  counter-increment: wa;
}
.wa-steps > li::before {
  content: counter(wa);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(102, 192, 244, 0.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.wa-steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
.wa-steps p {
  margin: 0;
  color: var(--muted);
}
.wa-message {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #050a0e;
}
.wa-label {
  width: 64px;
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wa-word {
  padding: 4px 14px;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.14);
  color: #4be08a;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wa-number {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wa-copy {
  margin-left: auto;
  min-height: 0;
  padding: 6px 12px;
  font-size: 13px;
}
.wa-open {
  display: inline-flex;
  margin-top: 12px;
  background: #25d366;
  color: #04170b;
}
.wa-open:hover {
  background: #3ee07a;
}
.wa-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(102, 192, 244, 0.08);
  color: #b9dcf3;
  font-size: 14px;
}
.wa-note {
  max-width: none;
}

/* Header: on full-size screens the mark spans the name and tagline. */
@media (min-width: 1051px) {
  .identity {
    gap: 12px;
  }
  .identity .brand-mark,
  .identity .brand-mark img {
    width: 52px;
    height: 52px;
  }
}

/* WhatsApp step: message and number in one card, with icons. */
.wa-card {
  margin-top: 10px;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 14px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(37, 211, 102, 0.08), transparent 55%),
    #060b0e;
  overflow: hidden;
}
.wa-card .wa-message {
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: none;
}
.wa-card .wa-message + .wa-message {
  border-top: 1px solid var(--line);
}
.wa-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 112px;
}
.wa-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  color: #4be08a;
}
.wa-word {
  font-size: 22px;
  padding: 6px 16px;
  box-shadow: inset 0 0 0 1px rgba(75, 224, 138, 0.35);
}
.wa-number {
  font-size: 19px;
  letter-spacing: 0.02em;
}
.wa-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-height: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d141a;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.wa-copy .wa-icon {
  width: auto;
  height: auto;
  background: none;
  color: var(--muted);
}
.wa-copy .wa-icon svg {
  width: 15px;
  height: 15px;
}
.wa-copy:hover {
  border-color: var(--accent);
}
.wa-copy.done {
  border-color: rgba(75, 224, 138, 0.5);
  color: #4be08a;
}
.wa-copy.done .wa-icon {
  color: #4be08a;
}
@media (max-width: 560px) {
  .wa-label {
    width: auto;
  }
  .wa-label > span:last-child {
    display: none;
  }
  .wa-word {
    font-size: 18px;
  }
  .wa-number {
    font-size: 16px;
  }
}

/* How it works: video tutorial above the written guide. */
.tutorial {
  margin: 0 0 32px;
}
.tutorial h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.tutorial-video {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
}

/* Discord: icon button in the header, link in the footer. */
.discord-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #aab4ff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.discord-link:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.14);
  color: #fff;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.foot-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.foot-discord svg {
  width: 14px;
  height: 14px;
}

/* Footer legal links and the legal pages. */
.foot .foot-legal a {
  color: var(--muted);
  text-decoration: none;
}
.foot .foot-legal a:hover {
  color: var(--accent);
}
.legal-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.legal-body {
  max-width: 760px;
  padding-bottom: 48px;
  line-height: 1.7;
}
.legal-body h2 {
  margin: 36px 0 10px;
  font-size: 20px;
}
.legal-body h3 {
  margin: 20px 0 6px;
  font-size: 15px;
}
.legal-body p,
.legal-body li {
  color: #c5ced6;
}
.legal-body ul {
  padding-left: 20px;
}
.legal-body li + li {
  margin-top: 6px;
}
.legal-body a {
  color: var(--accent);
}
.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.legal-table td:first-child {
  font-family: ui-monospace, Consolas, monospace;
  white-space: nowrap;
}

/* Play: unfinished setup is shown first, as a clear checklist. */
.setup-card {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(102, 192, 244, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(102, 192, 244, 0.12), transparent 55%),
    #060b0e;
}
.setup-card h2 {
  margin: 0 0 6px;
}
.setup-card > p {
  margin: 0 0 16px;
}
.setup-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.setup-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}
.setup-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--muted);
}
.setup-list li.done .setup-dot {
  border-color: #4be08a;
  background: #4be08a;
}
.setup-list li.done .setup-dot::after {
  content: "✓";
  color: #04170b;
  font-size: 12px;
  font-weight: 800;
}
.setup-list li.done {
  color: var(--muted);
}
.setup-list li.todo {
  border-color: rgba(255, 196, 92, 0.35);
}
.setup-list li.todo .setup-dot {
  border-color: #ffc45c;
}
.setup-state {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
}
.setup-list li.done .setup-state {
  color: #4be08a;
}
.setup-list li.todo .setup-state {
  color: #ffc45c;
}
.panel > #gate:not(:empty) {
  margin: 0 0 20px;
  font-size: 14px;
}
.panel > #gate .setup-card {
  margin-bottom: 0;
  color: var(--text);
}

/* Native scrollbars share the Vplay palette on pages and nested surfaces. */
.donate-page { padding-block: 70px 90px; }
.donate-intro { max-width: 740px; margin-bottom: 60px; }
.donate-intro .tag { color: var(--accent); margin-bottom: 22px; }
.donate-intro h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 24px; }
.donate-intro h1 span { color: var(--accent); }
.donate-intro .lede { max-width: 62ch; }
.donate-page section > h2 { font-size: 20px; margin-bottom: 24px; }
.donation-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.donation-methods article { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.donation-method-number { display: block; color: var(--accent); font-size: 11px; margin-bottom: 22px; font-weight: 700; }
.donation-methods h3 { font-size: 18px; margin-bottom: 10px; }
.donation-methods p { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 0; max-width: 46ch; }
.donation-contact { display: flex; gap: 32px; justify-content: space-between; align-items: center; border-left: 3px solid var(--accent); padding: 30px; margin-top: 40px; }
.donation-contact h2 { font-size: 21px; }
.donation-contact p { max-width: 65ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.donation-contact .button { flex-shrink: 0; background: #25d366; border-color: #25d366; color: #000; }
.donation-contact .button:hover { background: #20bd5a; border-color: #20bd5a; color: #000; }
.donation-thanks { margin: 35px 0 0; color: var(--muted); font-size: 12px; max-width: 85ch; }
@media (max-width: 760px) {
  .donate-page { padding-block: 40px 60px; }
  .donate-intro { margin-bottom: 36px; }
  .donation-contact { flex-direction: column; align-items: flex-start; gap: 22px; padding: 22px; }
}
@media (max-width: 480px) { .donation-methods { grid-template-columns: minmax(0, 1fr); } }
* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: var(--bg); }
*::-webkit-scrollbar-thumb { background: var(--accent); border: 2px solid var(--bg); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: var(--blue); }
*::-webkit-scrollbar-corner { background: var(--bg); }
@media (forced-colors: active) { * { scrollbar-color: auto; } }
.bar .links a.nav-tutorial { align-self: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 750; text-decoration: none; }
.bar .links a.nav-tutorial:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.bar .links a.nav-tutorial[aria-current]::after { display: none; }
.nav-tutorial svg { flex-shrink: 0; }
.tutorial-page-heading { margin-bottom: 28px; max-width: 760px; }
.tutorial-page-heading .tag { color: var(--accent); margin-bottom: 14px; }
.tutorial-page-heading h1 { font-size: clamp(32px, 4vw, 48px); }
.tutorial-page-heading .lede { margin-bottom: 0; }
.tutorial-player { position: relative; }
.tutorial-player .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tutorial-player .tutorial-video { border-radius: 7px; }
.tutorial-next { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 28px; padding: 26px 0 0; border-top: 1px solid var(--line); }
.tutorial-next h2 { font-size: 17px; margin-bottom: 8px; }
.tutorial-next p { max-width: 75ch; color: var(--muted); font-size: 13px; margin: 0; }
.tutorial-next .button { flex-shrink: 0; }
@media (max-width: 760px) {
  .bar .links a.nav-tutorial { min-height: 40px; padding: 9px 13px; font-size: 12px; margin-block: 5px; }
  .tutorial-next { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* Phone header: one row (logo, controls, menu button); links fold into a panel. */
.nav-toggle {
  display: none;
}
@media (max-width: 760px) {
  .bar.has-nav-toggle {
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    padding: 12px 16px;
  }
  .bar.has-nav-toggle .identity {
    order: 0;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
  }
  .bar.has-nav-toggle .tag {
    display: none;
  }
  .bar.has-nav-toggle .header-controls {
    order: 1;
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .bar.has-nav-toggle #account {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
  }
  .bar.has-nav-toggle #account > .discord {
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
    gap: 7px;
    font-size: 0;
  }
  .bar.has-nav-toggle #account > .discord::after {
    content: "Sign in";
    font-size: 13px;
  }
  html:lang(si) .bar.has-nav-toggle #account > .discord::after {
    content: "පිවිසෙන්න";
  }
  .bar.has-nav-toggle .who-name,
  .bar.has-nav-toggle .profile-chevron {
    display: none;
  }
  .nav-toggle {
    order: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--text, #e5edf4);
    cursor: pointer;
  }
  .nav-toggle .nav-toggle-close,
  .bar.nav-open .nav-toggle .nav-toggle-open {
    display: none;
  }
  .bar.nav-open .nav-toggle .nav-toggle-close {
    display: inline;
  }
  .bar.has-nav-toggle .links {
    order: 3;
    display: none;
    width: 100%;
    min-height: 0;
    margin: 12px 0 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .bar.has-nav-toggle.nav-open .links {
    display: flex;
  }
  .bar.has-nav-toggle .links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    font-size: 16px;
  }
  .bar.has-nav-toggle .links a[aria-current]::after {
    display: none;
  }
  .bar.has-nav-toggle .links a[aria-current] {
    color: var(--accent);
  }
  .bar.has-nav-toggle .links a.nav-tutorial {
    align-self: stretch;
    justify-content: center;
    min-height: 48px;
    margin: 10px 0 4px;
    font-size: 15px;
  }
}
@media (max-width: 400px) {
  .bar.has-nav-toggle .discord-link {
    display: none;
  }
}

/* Phone content: less nested padding so text gets the width. */
@media (max-width: 760px) {
  .panel,
  .check {
    padding: 18px;
  }
  .panel .rule-callout {
    margin-inline: 0;
    padding: 84px 16px 18px;
  }
  .panel .rule-callout::before {
    left: 16px;
    top: 18px;
  }
  .guide-section {
    display: block;
    padding: 20px 18px;
  }
  .guide-section .step-number {
    display: grid;
    margin-bottom: 12px;
  }
  .guide-section h2 {
    margin-top: 0;
  }
  .guide-section .long {
    padding-left: 20px;
  }
}
