@font-face {
  font-family: "Gang of Three";
  src: url("../fonts/go3v2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5eddc;
  --paper: #fffaf0;
  --paper-2: #f9f0dd;
  --ink: #241a16;
  --muted: #6c5d52;
  --red: #b83124;
  --red-dark: #7f2019;
  --green: #9ebd78;
  --green-dark: #60794a;
  --gold: #ddb35b;
  --gold-dark: #a77723;
  --bamboo: #d9d879;
  --bamboo-dark: #6c7439;
  --line: #cfbea4;
  --dark: #221813;
  --twitch: #9146ff;
  --shadow: 7px 8px 0 rgba(36, 26, 22, .10);
  --shadow-soft: 4px 5px 0 rgba(36, 26, 22, .08);
  --shell: 1180px;
  --field-bg: #fff7e8;
  --field-text: #211712;
  --field-border: #0d0907;
  --field-arrow: #211712;
  --simple-b: #241a16;
}

html[data-theme='dark'] {
  --bg: #171310;
  --paper: #251e19;
  --paper-2: #30261f;
  --ink: #f4eadb;
  --muted: #c8b7a7;
  --red: #c34437;
  --red-dark: #ef7a67;
  --green: #9ec17a;
  --green-dark: #75945a;
  --gold: #e6c26c;
  --gold-dark: #bf9135;
  --bamboo: #c7cc73;
  --bamboo-dark: #7f8b4b;
  --line: #504136;
  --dark: #0e0a08;
  --shadow: 7px 8px 0 rgba(0, 0, 0, .28);
  --shadow-soft: 4px 5px 0 rgba(0, 0, 0, .22);
  --field-bg: #342a23;
  --field-text: #f4eadb;
  --field-border: #705c4c;
  --field-arrow: #f4eadb;
  --simple-b: #282828;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px
}

body {
  margin: 0;
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .2s ease, color .2s ease
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--red) 12%, transparent), transparent 22%),
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--green) 14%, transparent), transparent 20%),
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px
}

body.menu-open {
  overflow: hidden
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select {
  font: inherit
}

button,
a {
  -webkit-tap-highlight-color: transparent
}

img {
  display: block;
  max-width: 100%
}

svg {
  display: block;
  width: 1em;
  height: 1em
}

.section-shell {
  width: min(var(--shell), calc(100% - 36px));
  margin-inline: auto
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 99px;
  background: var(--gold);
  margin-right: 8px;
  border: 1px solid color-mix(in srgb, var(--ink) 32%, transparent)
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h2 {
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 10px 0 16px;
  font-weight: 950
}

.section-title-block p,
.section-heading p {
  color: var(--muted);
  font-weight: 700
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px)
}

.topbar-inner {
  width: min(var(--shell), calc(100% - 36px));
  height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 22px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content
}

.brand-mark {
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 15px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--gold)
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1
}

.brand-copy b {
  font-size: 18px;
  letter-spacing: .08em;
  font-weight: 950
}

.brand-copy small {
  margin-top: 5px;
  color: var(--red-dark);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto
}

.nav a {
  font-size: 13px;
  font-weight: 900;
  transition: color .15s ease, transform .15s ease
}

.nav a:hover {
  color: var(--red-dark);
  transform: translateY(-1px)
}

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 14%, transparent);
  cursor: pointer
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 14%, transparent)
}

.theme-icon {
  width: 20px;
  height: 20px
}

.theme-toggle .sun-icon {
  display: none
}

html[data-theme='dark'] .theme-toggle .sun-icon {
  display: block
}

html[data-theme='dark'] .theme-toggle .moon-icon {
  display: none
}

.menu-toggle {
  display: none
}

.menu-toggle svg {
  width: 21px;
  height: 21px
}

.menu-toggle .close-icon {
  display: none
}

.menu-toggle[aria-expanded='true'] .menu-icon {
  display: none
}

.menu-toggle[aria-expanded='true'] .close-icon {
  display: block
}

.twitch-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 950;
  transition: transform .15s ease, box-shadow .15s ease
}

.twitch-btn {
  padding: 10px 14px;
  background: var(--twitch);
  color: #fff;
  border: 2px solid #261b37;
  box-shadow: 3px 3px 0 rgba(38, 27, 55, .45);
  font-size: 12px
}

.twitch-btn svg {
  width: 14px;
  height: 14px
}

.twitch-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translate(-1px, -1px)
}

.mobile-menu {
  display: none
}

/* Hero */
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
  padding: 68px 0 56px
}

.hero h1 {
  margin: 14px 0 22px;
  font-size: clamp(76px, 10vw, 138px);
  line-height: .86;
  letter-spacing: 0;
  font-weight: 1000;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--gold), 6px 6px 0 color-mix(in srgb, var(--ink) 18%, transparent)
}

.lead {
  max-width: 690px;
  font-size: clamp(18px, 2.05vw, 24px);
  font-weight: 750;
  line-height: 1.45
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 18px
}

.primary-btn,
.secondary-btn {
  min-height: 50px;
  padding: 0 19px;
  border: 2px solid var(--ink);
  cursor: pointer
}

.primary-btn {
  background: var(--red);
  color: #fff;
  box-shadow: 4px 4px 0 var(--gold)
}

.secondary-btn {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--green) 55%, transparent)
}

.hero-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750
}

.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
  flex: 0 0 auto
}

.hero-scene {
  position: relative;
  min-height: 480px
}

.panda-badge {
  position: absolute;
  inset: 72px auto auto 50%;
  transform: translateX(-50%);
  width: 245px;
  height: 245px;
  padding: 18px;
  border-radius: 48% 52% 45% 55% / 54% 46% 54% 46%;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 3px solid var(--ink);
  box-shadow: 8px 9px 0 color-mix(in srgb, var(--green) 45%, transparent)
}

.panda-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: bob 4.5s ease-in-out infinite
}

.speech-bubble {
  position: absolute;
  right: 10px;
  top: 68px;
  min-width: 165px;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  border-radius: 18px 18px 18px 5px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg)
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: -13px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg)
}

.speech-bubble b,
.speech-bubble span {
  display: block;
  position: relative;
  z-index: 1
}

.speech-bubble b {
  font-size: 18px
}

.speech-bubble span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750
}

.hero-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 112px;
  padding: 13px 16px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transform: rotate(-3deg)
}

.hero-sticker span,
.hero-sticker small {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase
}

.hero-sticker b {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.05em
}

.sticker-red {
  left: 4px;
  bottom: 40px;
  background: var(--red);
  color: #fff
}

.sticker-gold {
  right: 20px;
  bottom: 55px;
  background: var(--gold);
  color: #2a1d16;
  transform: rotate(4deg)
}

.bamboo {
  position: absolute;
  background: linear-gradient(90deg, #b8bf5c, var(--bamboo) 24%, #eef29a 48%, var(--bamboo) 70%, #a8ae4f);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--bamboo-dark) 50%, transparent)
}

.bamboo::before,
.bamboo::after {
  content: "";
  position: absolute;
  background: var(--bamboo-dark);
  border: 2px solid var(--ink);
  border-radius: 8px
}

.bamboo-top {
  height: 30px;
  width: 78%;
  left: 8%;
  top: 18px;
  transform: rotate(-2deg)
}

.bamboo-top::before {
  width: 10px;
  height: 36px;
  left: 26%;
  top: -6px
}

.bamboo-top::after {
  width: 10px;
  height: 36px;
  right: 26%;
  top: -6px
}

.bamboo-left,
.bamboo-right {
  width: 30px;
  height: 78%;
  top: 6%;
  background: linear-gradient(180deg, #b8bf5c, var(--bamboo) 24%, #eef29a 48%, var(--bamboo) 70%, #a8ae4f)
}

.bamboo-left {
  left: 17px;
  transform: rotate(3deg)
}

.bamboo-right {
  right: 10px;
  transform: rotate(-2deg)
}

.bamboo-left::before,
.bamboo-left::after,
.bamboo-right::before,
.bamboo-right::after {
  height: 10px;
  width: 36px;
  left: -6px
}

.bamboo-left::before,
.bamboo-right::before {
  top: 28%
}

.bamboo-left::after,
.bamboo-right::after {
  bottom: 28%
}

.hero-copy h1 {
  font-family: "Gang of Three", sans-serif;
  font-weight: 400;
}

/* Status */
.live-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 94px
}

.live-card {
  position: relative;
  min-width: 0;
  padding: 19px;
  border-radius: 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-soft);
  overflow: hidden
}

.live-card::before {
  content: "";
  position: absolute;
  left: -15px;
  top: -15px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 24%, transparent)
}

.live-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .11em;
  color: var(--muted)
}

.live-label svg {
  width: 15px;
  height: 15px;
  color: var(--red-dark)
}

.live-card strong {
  position: relative;
  display: block;
  margin: 8px 0 3px;
  font-size: clamp(29px, 3.3vw, 41px);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums
}

.live-card small {
  position: relative;
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.xp-live-card {
  transform: rotate(.35deg)
}

.mult-card {
  background: linear-gradient(180deg, #f5e4a8, #ecd078)
}

html[data-theme='dark'] .mult-card {
  background: linear-gradient(180deg, #57451f, #6d5928)
}

.happy-card.active {
  background: var(--red);
  color: #fff
}

.happy-card.active .live-label,
.happy-card.active .live-label svg,
.happy-card.active small {
  color: #ffe9df
}

/* Shared sections */
.intro-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 96px
}

.simple-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.simple-flow>div {
  min-height: 108px;
  padding: 17px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft)
}

.simple-flow>div:nth-child(2),
.simple-flow>div:nth-child(3) {
  background: color-mix(in srgb, var(--green) 18%, var(--paper))
}

.simple-flow b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--gold);
  border: 2px solid var(--ink);
  font-size: 12px;
  color: var(--simple-b)
}

.simple-flow span {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 42px;
  margin-bottom: 28px
}

.section-heading>div {
  max-width: 720px
}

.section-heading p {
  max-width: 440px;
  margin-bottom: 6px;
  font-size: 14px
}

.section-heading.compact {
  display: block
}

.comic-panel {
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--paper)
}

/* Bamboo support board */
.bamboo-board {
  position: relative;
  padding: 34px;
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 58%, var(--paper)), color-mix(in srgb, var(--green) 38%, var(--paper)));
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: visible
}

.bamboo-stick {
  position: absolute;
  z-index: 2;
  background: linear-gradient(90deg, #aeb556, var(--bamboo) 25%, #edf294 48%, var(--bamboo) 72%, #a7ad4d);
  border: 3px solid var(--ink);
  border-radius: 999px
}

.bamboo-stick::before,
.bamboo-stick::after {
  content: "";
  position: absolute;
  background: var(--bamboo-dark);
  border: 2px solid var(--ink);
  border-radius: 8px
}

.bamboo-stick.top,
.bamboo-stick.bottom {
  left: -18px;
  right: -18px;
  height: 28px
}

.bamboo-stick.top {
  top: -15px
}

.bamboo-stick.bottom {
  bottom: -15px
}

.bamboo-stick.top::before,
.bamboo-stick.bottom::before {
  width: 10px;
  height: 34px;
  left: 27%;
  top: -6px
}

.bamboo-stick.top::after,
.bamboo-stick.bottom::after {
  width: 10px;
  height: 34px;
  right: 27%;
  top: -6px
}

.bamboo-stick.left,
.bamboo-stick.right {
  top: -18px;
  bottom: -18px;
  width: 28px;
  background: linear-gradient(180deg, #aeb556, var(--bamboo) 25%, #edf294 48%, var(--bamboo) 72%, #a7ad4d)
}

.bamboo-stick.left {
  left: -15px
}

.bamboo-stick.right {
  right: -15px
}

.bamboo-stick.left::before,
.bamboo-stick.right::before,
.bamboo-stick.left::after,
.bamboo-stick.right::after {
  height: 10px;
  width: 34px;
  left: -6px
}

.bamboo-stick.left::before,
.bamboo-stick.right::before {
  top: 28%
}

.bamboo-stick.left::after,
.bamboo-stick.right::after {
  bottom: 28%
}

.support-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px
}

.support-card {
  padding: 18px 14px;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 3px 4px 0 color-mix(in srgb, var(--ink) 10%, transparent)
}

.support-card:nth-child(even) {
  transform: rotate(.45deg)
}

.support-card:nth-child(odd) {
  transform: rotate(-.35deg)
}

.support-card .icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: #2a1d16
}

.support-card .icon svg {
  width: 25px;
  height: 25px
}

.support-card h3 {
  margin: 15px 0 10px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950
}

.support-card strong {
  display: block;
  color: var(--red-dark);
  font-size: 19px
}

.support-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 26px 0 96px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: color-mix(in srgb, var(--gold) 40%, var(--paper));
  box-shadow: var(--shadow-soft)
}

.notice>svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--red-dark)
}

.notice b,
.notice span {
  display: block
}

.notice b {
  font-size: 13px
}

.notice span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750
}

/* Calculator */
.calc-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 46px;
  align-items: center;
  margin-bottom: 96px
}

.calc-copy p {
  max-width: 500px;
  color: var(--muted);
  font-weight: 700
}

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  background: var(--dark);
  color: #fff;
  border-color: #0d0907;
  transform: rotate(.25deg)
}

.calculator label {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase
}

.calculator select {
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 12px;
  border: 2px solid #0d0907;
  border-radius: 11px;
  background: #fff7e8;
  color: #211712;
  font-size: 14px;
  font-weight: 800;
  outline: none
}

.calculator select:focus {
  box-shadow: 0 0 0 3px rgba(221, 179, 91, .25)
}

.toggle-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
  border: 2px solid rgba(255, 255, 255, .12);
  cursor: pointer
}

.toggle-row>span:first-child {
  display: flex;
  align-items: center;
  gap: 8px
}

.toggle-row svg {
  width: 18px;
  height: 18px;
  color: var(--gold)
}

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.toggle-ui {
  position: relative;
  width: 48px;
  height: 27px;
  margin-left: auto;
  border-radius: 999px;
  background: #66574f;
  border: 2px solid #0d0907
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: transform .16s ease
}

.toggle-row input:checked+.toggle-ui {
  background: var(--green)
}

.toggle-row input:checked+.toggle-ui::after {
  transform: translateX(21px)
}

.calc-result {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 15px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--green) 25%, #18100d);
  border: 2px solid rgba(255, 255, 255, .15)
}

.calc-result small {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  color: #f6d887
}

.calc-result span {
  font-size: 15px;
  color: #efe6dc;
  font-weight: 800
}

.calc-result strong {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.05em;
  color: #fff
}

/* XP */
.xp-panel {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: 14px;
  margin-bottom: 96px
}

.xp-summary {
  position: relative;
  padding: 22px;
  overflow: hidden
}

.panda-corner {
  position: absolute;
  right: -18px;
  top: -18px;
  width: 100px;
  height: 100px;
  opacity: .17;
  transform: rotate(10deg)
}

.panda-corner img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.xp-summary>span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase
}

.xp-summary>strong {
  display: block;
  margin-top: 13px;
  font-size: 23px
}

.big-multi {
  margin-top: 6px;
  font-size: 68px;
  line-height: .95;
  font-weight: 1000;
  letter-spacing: -.06em;
  color: var(--red-dark)
}

.progress,
.goal-progress {
  position: relative;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 80%, var(--green));
  overflow: hidden
}

.progress i,
.goal-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-right: 2px solid var(--ink)
}

.xp-summary small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800
}

.level-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px
}

.level-node {
  padding: 14px 10px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 3px 4px 0 color-mix(in srgb, var(--ink) 10%, transparent);
  text-align: center
}

.level-node:nth-child(3n+1) {
  transform: rotate(-.4deg)
}

.level-node:nth-child(3n+2) {
  transform: rotate(.35deg)
}

.level-node strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.04em;
  color: var(--green-dark)
}

.level-node span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 900
}

.level-node.done {
  background: color-mix(in srgb, var(--gold) 34%, var(--paper))
}

.level-node.done strong {
  color: var(--gold-dark)
}

.level-node.current {
  background: color-mix(in srgb, var(--green) 30%, var(--paper));
  box-shadow: 4px 5px 0 color-mix(in srgb, var(--red) 28%, transparent)
}

.level-node.current strong {
  color: var(--red-dark)
}

/* Happy hour */
.happy-section {
  position: relative;
  margin-bottom: 96px;
  background: linear-gradient(135deg, #241713, #72251f 56%, #52683d);
  color: #fff;
  border-block: 3px solid #0c0806;
  overflow: hidden
}

.happy-section::before {
  content: "";
  position: absolute;
  left: 4%;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05)
}

.happy-inner {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 28px;
  align-items: center;
  padding-block: 40px
}

.happy-symbol {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--gold);
  border: 3px solid #0c0806;
  color: #4d2413;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .25);
  transform: rotate(-3deg)
}

.happy-symbol svg {
  width: 50px;
  height: 50px
}

.section-kicker.light {
  color: #f6d77c
}

.happy-inner h2 {
  color: #fff
}

.happy-inner p {
  max-width: 610px;
  color: #f0dfd3;
  font-size: 15px;
  font-weight: 700
}

.happy-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.happy-rules>div {
  min-width: 105px;
  padding: 14px;
  border: 2px solid #0c0806;
  border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  text-align: center
}

.happy-rules b {
  display: block;
  color: #f6d77c;
  font-size: 30px;
  line-height: 1;
  font-weight: 1000
}

.happy-rules span {
  display: block;
  margin-top: 6px;
  color: #f4e4d8;
  font-size: 10px;
  font-weight: 850
}

/* Goals */
.goal-progress-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr auto;
  align-items: center;
  gap: 18px;
  padding: 19px;
  margin-bottom: 18px
}

.goal-progress-card strong {
  display: block;
  margin-top: 3px;
  font-size: 16px
}

.goal-now {
  color: var(--red-dark);
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: -.04em
}

.goal-progress-card>b {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap
}

.goal-road {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 96px
}

.goal-card {
  position: relative;
  min-height: 165px;
  padding: 17px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-soft)
}

.goal-card:nth-child(4n+2) {
  transform: rotate(.4deg)
}

.goal-card:nth-child(4n) {
  transform: rotate(-.35deg)
}

.goal-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: #2b1f17
}

.goal-icon svg {
  width: 24px;
  height: 24px
}

.goal-card>b {
  display: block;
  color: var(--red-dark);
  font-size: 13px
}

.goal-card>span:not(.goal-tag) {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800
}

.goal-card.reached {
  background: color-mix(in srgb, var(--gold) 30%, var(--paper))
}

.goal-card.reached .goal-icon {
  background: var(--green)
}

.goal-card.next {
  background: color-mix(in srgb, var(--green) 27%, var(--paper));
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--red) 30%, transparent)
}

.goal-tag {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 7px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .07em
}

.goal-card.next .goal-tag {
  background: var(--red);
  color: #fff
}

.goal-card.reached .goal-tag {
  background: var(--green);
  color: #18210e
}

.special-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 78px
}

.info-panel {
  position: relative;
  padding: 27px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden
}

.info-panel h2 {
  font-size: clamp(31px, 4vw, 46px);
  margin-bottom: 12px
}

.info-panel p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700
}

.panel-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: #2d2119;
  transform: rotate(3deg)
}

.panel-icon svg {
  width: 27px;
  height: 27px
}

.last-chance {
  background: var(--dark);
  color: #fff
}

.last-chance .section-kicker {
  color: #f4d477
}

.last-chance p {
  color: #ddcfc4
}

.last-chance .panel-icon {
  background: var(--red);
  color: #fff
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 96px
}

.faq-grid article {
  min-height: 155px;
  padding: 19px;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-soft)
}

.faq-grid article:nth-child(even) {
  background: color-mix(in srgb, var(--green) 18%, var(--paper))
}

.faq-grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 23px;
  color: var(--red-dark)
}

.faq-grid b {
  display: block;
  font-size: 16px
}

.faq-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 27px max(18px, calc((100vw - var(--shell))/2));
  background: var(--dark);
  color: #fff;
  border-top: 3px solid #0c0806
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.footer-brand img {
  width: 36px;
  height: 36px
}

.footer-brand span {
  display: flex;
  flex-direction: column
}

.footer-brand b {
  font-size: 14px;
  letter-spacing: .08em
}

.footer-brand small {
  margin-top: 2px;
  color: #cbbdaf;
  font-size: 10px
}

footer>a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e8ded6;
  font-size: 12px;
  font-weight: 850
}

footer>a svg {
  width: 14px;
  height: 14px
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg)
  }

  50% {
    transform: translateY(-8px) rotate(1deg)
  }
}

@media(max-width:1060px) {
  .desktop-nav {
    gap: 17px
  }

  .desktop-twitch {
    display: none
  }

  .hero {
    grid-template-columns: 1fr .9fr;
    gap: 26px
  }

  .support-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .xp-panel {
    grid-template-columns: 1fr
  }

  .happy-inner {
    grid-template-columns: 90px 1fr
  }

  .happy-rules {
    grid-column: 1/-1
  }

  .goal-road {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:760px) {
  html {
    scroll-padding-top: 76px
  }

  .section-shell {
    width: min(100% - 28px, var(--shell))
  }

  .topbar-inner {
    width: calc(100% - 28px);
    height: 64px
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px
  }

  .brand-copy b {
    font-size: 16px
  }

  .brand-copy small {
    font-size: 9px
  }

  .desktop-nav,
  .desktop-twitch {
    display: none
  }

  .theme-toggle {
    margin-left: auto
  }

  .menu-toggle {
    display: grid
  }

  .mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 9px 14px 16px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .12);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease
  }

  .mobile-menu:not([hidden]) {
    display: block
  }

  .mobile-menu.open {
    opacity: 1;
    transform: translateY(0)
  }

  .mobile-menu nav {
    display: grid;
    border: 2px solid var(--ink);
    border-radius: 15px;
    background: var(--paper);
    overflow: hidden
  }

  .mobile-menu nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 15px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 900
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0
  }

  .mobile-menu nav svg {
    width: 16px;
    height: 16px;
    color: var(--red-dark)
  }

  .mobile-twitch {
    width: 100%;
    min-height: 48px;
    margin-top: 9px
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 50px 0 38px
  }

  .hero h1 {
    font-size: clamp(62px, 20vw, 102px)
  }

  .lead {
    font-size: 18px
  }

  .hero-scene {
    min-height: 430px
  }

  .panda-badge {
    width: 210px;
    height: 210px;
    top: 76px
  }

  .speech-bubble {
    right: 0;
    top: 58px
  }

  .hero-sticker {
    min-width: 100px
  }

  .sticker-left {}

  .bamboo-top {
    width: 75%
  }

  .live-strip {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 70px
  }

  .live-card {
    padding: 15px
  }

  .live-card strong {
    font-size: 30px
  }

  .intro-grid,
  .calc-section {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .intro-grid {
    margin-bottom: 72px
  }

  .section-heading {
    display: block
  }

  .section-heading p {
    max-width: 100%
  }

  .support-grid {
    grid-template-columns: 1fr 1fr
  }

  .bamboo-board {
    padding: 28px 22px
  }

  .notice {
    margin-bottom: 72px
  }

  .calculator {
    grid-template-columns: 1fr;
    padding: 17px
  }

  .calc-result {
    grid-column: auto
  }

  .xp-panel {
    margin-bottom: 72px
  }

  .level-track {
    grid-template-columns: repeat(2, 1fr)
  }

  .big-multi {
    font-size: 58px
  }

  .happy-section {
    margin-bottom: 72px
  }

  .happy-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 34px
  }

  .happy-symbol {
    width: 72px;
    height: 72px
  }

  .happy-symbol svg {
    width: 38px;
    height: 38px
  }

  .happy-rules {
    grid-template-columns: repeat(3, 1fr)
  }

  .goal-progress-card {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .goal-progress {
    order: 3
  }

  .goal-progress-card>b {
    order: 2
  }

  .goal-road {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 72px
  }

  .special-grid {
    grid-template-columns: 1fr;
    margin-bottom: 64px
  }

  .faq-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 72px
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px
  }
}

@media(max-width:430px) {
  .section-shell {
    width: calc(100% - 22px)
  }

  .topbar-inner {
    width: calc(100% - 22px)
  }

  .brand-copy small {
    display: none
  }

  .hero-actions {
    display: grid
  }

  .primary-btn,
  .secondary-btn {
    width: 100%
  }

  .hero-scene {
    min-height: 405px
  }

  .panda-badge {
    width: 180px;
    height: 180px;
    top: 86px
  }

  .speech-bubble {
    min-width: 145px;
    padding: 11px 13px;
    right: -2px
  }

  .speech-bubble b {
    font-size: 16px
  }

  .hero-sticker {
    min-width: 88px;
    padding: 11px
  }

  .hero-sticker b {
    font-size: 30px
  }

  .sticker-red {
    left: 0;
    bottom: 35px
  }

  .sticker-gold {
    right: 0;
    bottom: 45px
  }

  .bamboo-left {
    left: 4px
  }

  .bamboo-right {
    right: 3px
  }

  .live-card strong {
    font-size: 27px
  }

  .live-card small {
    font-size: 10px
  }

  .simple-flow,
  .support-grid,
  .goal-road,
  .faq-grid {
    grid-template-columns: 1fr
  }

  .support-card:nth-child(even),
  .support-card:nth-child(odd),
  .goal-card:nth-child(4n+2),
  .goal-card:nth-child(4n) {
    transform: none
  }

  .support-card {
    display: grid;
    grid-template-columns: 45px 1fr;
    column-gap: 13px;
    align-items: center
  }

  .support-card .icon {
    grid-row: 1/4
  }

  .support-card h3 {
    margin: 0 0 5px
  }

  .support-card strong {
    font-size: 16px
  }

  .happy-rules {
    grid-template-columns: 1fr
  }

  .level-track {
    grid-template-columns: 1fr 1fr
  }

  .level-node {
    padding: 11px
  }

  .level-node strong {
    font-size: 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important
  }
}

/* Live-Verbindungsstatus */
.live-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px
}

.live-heading-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase
}

.live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent)
}

.connection-status {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--ink) 12%, transparent);
}

.connection-icon {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  display: none;
}

/* Verbunden */
.connection-status[data-status="live"],
.connection-status[data-status="preview"] {
  color: #3fa653;
  border-color: #3fa653;
  background: color-mix(in srgb, #3fa653 10%, var(--paper));
}

.connection-status[data-status="live"] .connection-icon-online,
.connection-status[data-status="preview"] .connection-icon-online {
  display: block;
}

/* Getrennt / Verbindungsaufbau */
.connection-status[data-status="connecting"],
.connection-status[data-status="reconnecting"],
.connection-status[data-status="offline"] {
  color: #d43b32;
  border-color: #d43b32;
  background: color-mix(in srgb, #d43b32 10%, var(--paper));
}

.connection-status[data-status="connecting"] .connection-icon-offline,
.connection-status[data-status="reconnecting"] .connection-icon-offline,
.connection-status[data-status="offline"] .connection-icon-offline {
  display: block;
}

.connection-status[data-status="connecting"],
.connection-status[data-status="reconnecting"] {
  animation: connectionPulse 1.15s ease-in-out infinite;
}

@keyframes connectionPulse {
  50% {
    opacity: .55;
    transform: scale(.94);
  }
}

@media(max-width:430px) {
  .live-heading {
    align-items: flex-end
  }

  .live-heading-copy {
    font-size: 9px
  }

  .connection-status {
    font-size: 8px;
    padding: 0 8px
  }
}

/* v8: Theme, Forms & Footer polish */
.theme-icon {
  display: none
}

html[data-theme-preference='auto'] .theme-toggle .auto-icon {
  display: block
}

html[data-theme-preference='light'] .theme-toggle .sun-icon {
  display: block
}

html[data-theme-preference='dark'] .theme-toggle .moon-icon {
  display: block
}

.theme-toggle {
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, color .2s ease
}

.theme-toggle::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  opacity: 0
}

html[data-theme-preference='auto'] .theme-toggle::after {
  opacity: 1
}

:where(a, button, select, input):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 78%, #fff);
  outline-offset: 3px
}

:where(button, select, input) {
  color-scheme: light
}

html[data-theme='dark'] :where(button, select, input) {
  color-scheme: dark
}

/* Native form controls: consistent cross-browser appearance */
.calculator select,
input[type='number'] {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--field-border);
  border-radius: 11px;
  background-color: var(--field-bg);
  color: var(--field-text);
  font-weight: 850;
  box-shadow: inset 0 -2px 0 rgba(36, 26, 22, .08);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
}

.calculator select {
  width: 100%;
  height: 48px;
  margin-top: 7px;
  padding: 0 46px 0 13px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--field-arrow) 50%),
    linear-gradient(135deg, var(--field-arrow) 50%, transparent 50%),
    linear-gradient(to right, color-mix(in srgb, var(--field-arrow) 18%, transparent), color-mix(in srgb, var(--field-arrow) 18%, transparent));
  background-position:
    calc(100% - 20px) 20px,
    calc(100% - 14px) 20px,
    calc(100% - 38px) 8px;
  background-size: 6px 6px, 6px 6px, 1px 30px;
  background-repeat: no-repeat;
}

.calculator select:hover,
input[type='number']:hover {
  border-color: var(--gold);
  box-shadow: inset 0 -2px 0 rgba(36, 26, 22, .08), 0 0 0 2px rgba(221, 179, 91, .10)
}

.calculator select:focus,
.calculator select:focus-visible,
input[type='number']:focus,
input[type='number']:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(221, 179, 91, .24);
  outline: none
}

.calculator select:active {
  transform: translateY(1px)
}

.calculator select:disabled,
input[type='number']:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: saturate(.6)
}

.calculator select option {
  background: var(--field-bg);
  color: var(--field-text);
  font-weight: 750
}

/* Hide browser number spinners; controls remain keyboard accessible. */
input[type='number'] {
  -moz-appearance: textfield;
  min-height: 46px;
  padding: 0 12px
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0
}

input[type='number']::placeholder {
  color: #776b62;
  opacity: .8
}

/* Theme corrections for components with intentionally fixed dark surfaces. */
html[data-theme='dark'] .topbar {
  border-bottom-color: rgba(244, 234, 219, .14)
}

html[data-theme='dark'] .brand-mark,
html[data-theme='dark'] .theme-toggle,
html[data-theme='dark'] .menu-toggle {
  box-shadow: 3px 3px 0 rgba(230, 194, 108, .24)
}

html[data-theme='dark'] .bamboo-board {
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 38%, var(--paper)), color-mix(in srgb, var(--green) 22%, var(--paper)))
}

html[data-theme='dark'] .support-card,
html[data-theme='dark'] .goal-card,
html[data-theme='dark'] .faq-grid article,
html[data-theme='dark'] .simple-flow>div {
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .26)
}

html[data-theme='dark'] .connection-status {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .28)
}

html[data-theme='dark'] .speech-bubble::after {
  background: var(--paper)
}

html[data-theme='dark'] .primary-btn {
  color: #fff7ed
}

html[data-theme='dark'] .happy-card.active {
  color: #fff8f0
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e8ded6;
  font-size: 12px;
  font-weight: 850;
  transition: color .15s ease, transform .15s ease
}

.footer-links a:hover {
  color: #fff;
  transform: translateY(-1px)
}

.footer-links a svg {
  width: 14px;
  height: 14px
}

/* Simple legal page used by the footer link. */
.legal-shell {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 96px
}

.legal-shell h1 {
  font-size: clamp(46px, 8vw, 84px);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 14px 0 28px;
  color: var(--red);
  text-shadow: 2px 2px 0 var(--gold)
}

.legal-card {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow)
}

.legal-card h2 {
  font-size: 24px;
  margin: 28px 0 10px;
  letter-spacing: -.02em
}

.legal-card h2:first-child {
  margin-top: 0
}

.legal-card p {
  color: var(--muted);
  font-weight: 700
}

.legal-placeholder {
  padding: 14px 16px;
  border: 2px dashed var(--red-dark);
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 24%, var(--paper));
  color: var(--ink) !important
}

.legal-back {
  display: inline-flex;
  margin-top: 22px;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--red-dark)
}

/* -------------------------------------------------------
   Support CTA
------------------------------------------------------- */

.support-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 26px;
  align-items: center;

  margin: 24px 0 18px;
  padding: 24px;

  border: 2px solid var(--text);
  border-radius: 22px;

  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--green) 16%, var(--paper)),
      var(--paper));

  box-shadow:
    5px 5px 0 color-mix(in srgb, var(--text) 16%, transparent);
}

.support-cta::before,
.support-cta::after {
  content: "";
  position: absolute;

  width: 16px;
  top: -7px;
  bottom: -7px;

  border: 2px solid color-mix(in srgb, var(--text) 75%, transparent);
  border-radius: 10px;

  background:
    repeating-linear-gradient(0deg,
      var(--green-deep) 0 18px,
      var(--green) 18px 21px,
      var(--green-deep) 21px 38px);

  z-index: 0;
}

.support-cta::before {
  left: 18px;
}

.support-cta::after {
  right: 18px;
}

.support-cta>* {
  position: relative;
  z-index: 1;
}

.support-cta-copy {
  padding-inline: 18px;
}

.support-cta-copy>strong {
  display: block;

  margin-top: 8px;

  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.support-cta-copy p {
  max-width: 440px;

  margin: 9px 0 0;

  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.support-cta-actions {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 11px;

  padding-inline: 18px;
}

.support-action {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 19, 17, 0.22);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.support-action:hover {
  transform: translate(-1px, -2px);

  box-shadow:
    6px 7px 0 rgba(23, 19, 17, 0.19);

  filter: brightness(1.04);
}

.support-action:active {
  transform: translate(1px, 1px);

  box-shadow:
    2px 2px 0 rgba(23, 19, 17, 0.24);
}

.support-action:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.support-action-twitch {
  background:
    linear-gradient(145deg,
      var(--red),
      var(--red-deep));
}

.support-action-tip {
  background:
    linear-gradient(145deg,
      var(--green),
      var(--green-deep));
}

.support-action-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  background: var(--gold);
  color: #251a12;
}

.support-action-icon svg {
  width: 25px;
  height: 25px;
}

.support-action-copy {
  min-width: 0;
}

.support-action-copy strong,
.support-action-copy small {
  display: block;
}

.support-action-copy strong {
  font-size: 14px;
  line-height: 1.18;
  font-weight: 900;
}

.support-action-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
}

.support-action-arrow {
  width: 17px;
  height: 17px;

  opacity: 0.78;
}


/* Tablet */

@media (max-width: 900px) {
  .support-cta {
    grid-template-columns: 1fr;
  }

  .support-cta-actions {
    grid-template-columns: 1fr 1fr;
  }
}


/* Mobile */

@media (max-width: 600px) {
  .support-cta {
    padding: 20px 10px;
  }

  .support-cta-actions {
    grid-template-columns: 1fr;
  }

  .support-action {
    min-height: 70px;
  }
}

@media(max-width:760px) {
  .footer-links {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 16px
  }

  .legal-shell {
    width: calc(100% - 28px);
    padding: 50px 0 72px
  }
}

/* Resolve legacy two-state icon rules: preference controls the single visible icon. */
html[data-theme-preference] .theme-toggle .theme-icon {
  display: none
}

html[data-theme-preference='auto'] .theme-toggle .auto-icon {
  display: block
}

html[data-theme-preference='light'] .theme-toggle .sun-icon {
  display: block
}

html[data-theme-preference='dark'] .theme-toggle .moon-icon {
  display: block
}

/* Generic number inputs follow the active page theme. */
input[type='number'] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ink) 8%, transparent)
}

input[type='number']:hover {
  border-color: var(--gold-dark);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ink) 8%, transparent), 0 0 0 2px color-mix(in srgb, var(--gold) 12%, transparent)
}

input[type='number']:focus,
input[type='number']:focus-visible {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 24%, transparent)
}

input[type='number']::placeholder {
  color: var(--muted)
}

.toggle-row input:focus-visible+.toggle-ui {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 48%, transparent)
}

/* Legal pages */
.legal-card code {
  font-size: .92em;
  overflow-wrap: anywhere
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px
}

.legal-nav .legal-back {
  margin-top: 0
}

@media(max-width:520px) {
  .legal-nav {
    align-items: flex-start;
    flex-direction: column
  }
}