/* Shaste hub — isolated retention-first experience.
   Every selector is scoped to the server-selected `next` version so the
   classic interface stays byte-for-byte functional and visually unchanged. */

body[data-site-version="next"] {
  --next-ink: #2d2119;
  --next-muted: #725b49;
  --next-faint: #9a8068;
  --next-paper: #fffaf1;
  --next-paper-2: #f8eddd;
  --next-line: rgba(93, 62, 39, .16);
  --next-rose: #b34e6d;
  --next-rose-dark: #89384f;
  --next-gold: #b5782f;
  --next-green: #4f8062;
  --next-shadow: 0 20px 55px rgba(80, 47, 22, .10);
  background: #f6ead9;
}

body[data-site-version="next"] .app-shell--next {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 92% 0%, rgba(197, 95, 124, .13), transparent 65%),
    radial-gradient(820px 500px at 0% 4%, rgba(193, 145, 80, .12), transparent 62%),
    linear-gradient(180deg, #fffaf2 0, #f6ead9 58%, #f1dec5 100%);
  color: var(--next-ink);
}

body[data-site-version="next"][data-theme="dark"] {
  --next-ink: #fbf5ec;
  --next-muted: #c8b9ae;
  --next-faint: #998a80;
  --next-paper: #19171a;
  --next-paper-2: #242025;
  --next-line: rgba(255, 238, 221, .13);
  --next-shadow: 0 22px 58px rgba(0, 0, 0, .32);
}

body[data-site-version="next"][data-theme="dark"] .app-shell--next {
  background:
    radial-gradient(900px 480px at 92% 0%, rgba(179, 78, 109, .16), transparent 65%),
    radial-gradient(820px 500px at 0% 4%, rgba(181, 120, 47, .12), transparent 62%),
    #100f12;
}

body[data-site-version="next"] .page--next {
  padding-top: 94px;
  min-height: 100vh;
}

.next-container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.next-page { padding-bottom: 48px; }
.next-kicker,
.next-section-head > div > span,
.next-page-head > div > span,
.next-drop-banner small,
.next-current-plan small,
.next-dashboard-strip small,
.next-code-card > div:first-child > span,
.next-benefits-head > span {
  color: var(--next-rose-dark);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body[data-site-version="next"][data-theme="dark"] :is(.next-kicker, .next-section-head > div > span, .next-page-head > div > span, .next-drop-banner small, .next-current-plan small, .next-dashboard-strip small, .next-code-card > div:first-child > span, .next-benefits-head > span) { color: #df819d; }

/* Navigation */
.next-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 74px;
  background: color-mix(in srgb, var(--next-paper) 88%, transparent);
  border-bottom: 1px solid var(--next-line);
  box-shadow: 0 10px 34px rgba(80, 47, 22, .06);
  backdrop-filter: blur(18px) saturate(1.15);
}

.next-nav__inner {
  width: min(1260px, calc(100% - 36px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.next-nav__brand { display: flex; align-items: center; width: 126px; height: 54px; }
.next-nav__brand img { display: block; width: 100%; height: 44px; object-fit: contain; }
.next-nav__links { display: flex; align-items: center; justify-content: center; gap: 5px; }
.next-nav__links > a,
.next-nav__more > summary {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--next-muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.next-nav__links > a:hover,
.next-nav__links > a.is-active,
.next-nav__more > summary:hover,
.next-nav__more[open] > summary { background: rgba(179, 78, 109, .11); color: var(--next-rose-dark); }
.next-nav__links > a.is-active { box-shadow: inset 0 0 0 1px rgba(179, 78, 109, .12); }
.next-nav__more { position: relative; }
.next-nav__more summary::-webkit-details-marker { display: none; }
.next-nav__more > div {
  position: absolute;
  top: 47px;
  right: 0;
  width: 210px;
  padding: 8px;
  display: grid;
  gap: 3px;
  background: var(--next-paper);
  border: 1px solid var(--next-line);
  border-radius: 14px;
  box-shadow: var(--next-shadow);
}
.next-nav__more > div a { padding: 10px 12px; color: var(--next-ink); text-decoration: none; border-radius: 9px; font-size: 13px; font-weight: 700; }
.next-nav__more > div a:hover { background: var(--next-paper-2); }
.next-nav__account { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.next-coin { padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; background: transparent; color: var(--next-gold); font: inherit; font-size: 13px; font-weight: 850; white-space: nowrap; cursor: pointer; }
.next-coin:hover, .next-coin:focus-visible { background: rgba(181, 120, 47, .11); outline: none; }
.next-icon-button {
  width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--next-line); background: var(--next-paper); color: var(--next-ink); cursor: pointer;
}
.next-avatar { border: 0; padding: 4px 9px 4px 4px; background: transparent; color: var(--next-ink); display: flex; align-items: center; gap: 8px; cursor: pointer; border-radius: 999px; }
.next-avatar:hover { background: var(--next-paper-2); }
.next-avatar > span { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--next-rose), var(--next-gold)); color: #fff; font-weight: 900; }
.next-avatar img { width: 100%; height: 100%; object-fit: cover; }
.next-avatar b { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

/* Home */
.next-home-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  border: 1px solid var(--next-line);
  border-radius: 28px;
  background: var(--next-paper);
  box-shadow: var(--next-shadow);
}
.next-home-hero__copy { padding: clamp(36px, 5vw, 68px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.next-home-hero h1,
.next-page-head h1,
.next-benefits-head h1 {
  margin: 10px 0 14px;
  color: var(--next-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 700;
}
.next-home-hero__copy > p { max-width: 520px; margin: 0; color: var(--next-muted); font-size: 16px; line-height: 1.7; }
.next-home-hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.next-home-hero__game { position: relative; min-height: 430px; overflow: hidden; background: #dac3a8; }
.next-home-hero__game::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 12, 8, .04) 12%, rgba(22, 12, 8, .34) 52%, rgba(19, 10, 7, .94) 100%); }
.next-home-hero__game > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.next-home-hero__game > div { position: absolute; z-index: 2; inset: auto 30px 28px; color: #fffaf1; text-shadow: 0 2px 18px rgba(0, 0, 0, .76); }
.next-home-hero__game > div > span { color: #fffaf1; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.next-home-hero__game h2 { margin: 7px 0 12px; color: #fffaf1 !important; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(27px, 3vw, 41px); line-height: 1; }
.next-home-hero__game small { display: block; margin-top: 8px; color: #fffaf1; font-size: 11px; }
.next-home-hero__game .next-progress { background: rgba(255,255,255,.28); }
.next-home-hero__game .next-progress span { background: #fff; }
.next-dashboard-strip { margin: 18px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next-dashboard-strip article {
  min-height: 112px; padding: 18px; display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  background: color-mix(in srgb, var(--next-paper) 94%, transparent); border: 1px solid var(--next-line); border-radius: 18px;
}
.next-dashboard-strip__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--next-rose-dark); background: rgba(179, 78, 109, .11); }
.next-dashboard-strip article > div { display: grid; align-content: start; gap: 4px; min-width: 0; }
.next-dashboard-strip strong { text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-dashboard-strip article div > span { color: var(--next-muted); font-size: 11px; }
.next-dashboard-strip button { width: max-content; padding: 0; border: 0; background: transparent; color: var(--next-rose-dark); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.next-dashboard-strip button:disabled { color: var(--next-green); cursor: default; }
.next-signup-band,
.next-benefit-note { margin-top: 24px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(179, 78, 109, .2); border-radius: 20px; background: linear-gradient(110deg, rgba(179, 78, 109, .1), rgba(181, 120, 47, .1)); }
.next-signup-band span { color: var(--next-rose-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.next-signup-band h2 { margin: 4px 0; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; }
.next-signup-band p { margin: 0; color: var(--next-muted); font-size: 13px; }

/* Shared page headers and controls */
.next-page-head { margin: 14px 0 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.next-page-head > div { max-width: 760px; }
.next-page-head h1,
.next-benefits-head h1 { font-size: clamp(38px, 4.4vw, 58px); }
.next-page-head p,
.next-benefits-head p,
.next-section-head p { margin: 0; max-width: 720px; color: var(--next-muted); line-height: 1.65; }
.next-search { min-width: 260px; height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--next-line); border-radius: 999px; background: var(--next-paper); color: var(--next-faint); }
.next-search input { min-width: 0; width: 100%; padding: 0; border: 0 !important; outline: 0; background: transparent !important; color: var(--next-ink) !important; box-shadow: none !important; }
.next-section-head { margin: 38px 0 16px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.next-section-head h2 { margin: 4px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.025em; }
.next-section-head button { padding: 6px 0; border: 0; background: transparent; color: var(--next-rose-dark); font-weight: 800; cursor: pointer; }
.next-filter-row { margin: 26px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.next-filter-row button { min-height: 38px; padding: 0 15px; border: 1px solid var(--next-line); border-radius: 999px; background: var(--next-paper); color: var(--next-muted); font-weight: 750; cursor: pointer; }
.next-filter-row button.is-active { background: var(--next-rose-dark); border-color: var(--next-rose-dark); color: #fff; }
.next-empty { padding: 36px; border: 1px dashed var(--next-line); border-radius: 18px; color: var(--next-muted); text-align: center; }

/* EroToy access routes */
.next-access-guide { margin: 0 0 20px; padding: 24px; border: 1px solid color-mix(in srgb, var(--next-rose) 28%, var(--next-line)); border-radius: 22px; background: linear-gradient(120deg, color-mix(in srgb, var(--next-rose) 8%, var(--next-paper)), color-mix(in srgb, var(--next-gold) 8%, var(--next-paper))); }
.next-access-guide > header { max-width: 760px; }
.next-access-guide > header h2 { margin: 5px 0 7px; font: 700 clamp(26px, 3vw, 36px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; }
.next-access-guide > header p { margin: 0; color: var(--next-muted); line-height: 1.55; }
.next-access-guide__routes { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.next-access-guide__routes article { min-width: 0; padding: 16px; display: grid; grid-template-columns: 31px 1fr; gap: 10px; border: 1px solid var(--next-line); border-radius: 16px; background: color-mix(in srgb, var(--next-paper) 94%, transparent); }
.next-access-guide__number { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--next-rose-dark); color: #fff; font-weight: 900; }
.next-access-guide__routes h3 { margin: 4px 0 7px; font-size: 14px; }
.next-access-guide__routes p { min-height: 59px; margin: 0 0 12px; color: var(--next-muted); font-size: 11px; line-height: 1.55; }
.next-access-guide__routes a,
.next-access-guide__routes button { padding: 0; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--next-rose-dark); font: inherit; font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; }
.next-access-guide__routes nav { display: flex; flex-wrap: wrap; gap: 5px 12px; }

/* Game cards and detail */
.next-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next-card-grid--continue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next-game-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--next-line); border-radius: 20px; background: var(--next-paper); box-shadow: 0 14px 36px rgba(80, 47, 22, .07); }
.next-game-card__media { position: relative; height: 200px; overflow: hidden; background: #dfccb2; }
.next-game-card__media::after { content: ''; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(transparent, rgba(35, 20, 13, .48)); }
.next-game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.next-game-card:hover .next-game-card__media img { transform: scale(1.025); }
.next-game-card__media > span { position: absolute; z-index: 2; left: 12px; bottom: 11px; padding: 5px 9px; border-radius: 999px; background: rgba(35, 20, 13, .72); color: #fffaf1; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.next-game-card__body { padding: 17px; display: flex; flex: 1; flex-direction: column; }
.next-game-card h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; letter-spacing: -.015em; }
.next-game-card p { margin: 8px 0 14px; color: var(--next-muted); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.next-progress { height: 5px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--next-ink) 10%, transparent); }
.next-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--next-rose), var(--next-gold)); }
.next-game-card__meta { margin-top: auto; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-game-card__meta small { color: var(--next-faint); font-size: 10px; }
.next-game-card__meta > div { display: flex; align-items: center; gap: 7px; }
.next-link-button { padding: 6px; border: 0; background: transparent; color: var(--next-muted); font-weight: 750; cursor: pointer; }
.next-game-card.is-locked { opacity: .72; }
.next-modal { position: fixed; z-index: 100; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(35, 20, 13, .55); backdrop-filter: blur(8px); }
.next-game-detail { position: relative; width: min(900px, 100%); max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 24px; border: 1px solid var(--next-line); background: var(--next-paper); box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.next-game-detail > img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.next-game-detail > div { padding: 44px 34px; display: flex; flex-direction: column; justify-content: center; }
.next-game-detail h2 { margin: 10px 0; font: 700 40px/1 Georgia, serif; }
.next-game-detail p { color: var(--next-muted); line-height: 1.65; }
.next-game-detail small { margin-top: 9px; color: var(--next-faint); }
.next-game-detail__access { margin-top: 18px; padding: 12px 13px; display: grid; gap: 4px; border: 1px solid color-mix(in srgb, var(--next-gold) 35%, var(--next-line)); border-radius: 13px; background: color-mix(in srgb, var(--next-gold) 9%, var(--next-paper)); }
.next-game-detail__access.is-open { border-color: color-mix(in srgb, #4f9668 40%, var(--next-line)); background: color-mix(in srgb, #4f9668 10%, var(--next-paper)); }
.next-game-detail__access strong { font-size: 12px; }
.next-game-detail__access span { color: var(--next-muted); font-size: 11px; line-height: 1.5; }
.next-game-detail__actions { margin-top: 22px; display: flex; gap: 8px; }
.next-game-detail__close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid var(--next-line); border-radius: 50%; background: var(--next-paper); color: var(--next-ink); font-size: 22px; cursor: pointer; }

/* Code vault */
.next-drop-banner { margin: 4px 0 30px; padding: 22px 24px; display: grid; grid-template-columns: 48px 1fr; gap: 14px; border: 1px solid rgba(179, 78, 109, .22); border-radius: 20px; background: linear-gradient(110deg, rgba(179, 78, 109, .12), rgba(181, 120, 47, .11)); }
.next-drop-banner > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--next-rose-dark); color: #fff; }
.next-drop-banner h2 { margin: 4px 0 11px; font-size: 18px; }
.next-drop-banner nav { display: flex; flex-wrap: wrap; gap: 12px; }
.next-drop-banner a { color: var(--next-rose-dark); font-size: 12px; font-weight: 850; text-decoration: none; }
.next-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.next-code-card { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; border: 1px solid var(--next-line); border-radius: 17px; background: var(--next-paper); }
.next-code-card__content { min-width: 0; }
.next-code-card__brand { width: min(220px, 100%); height: 82px; margin-bottom: 11px; padding: 8px 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255, 250, 241, .14); border-radius: 12px; background: radial-gradient(circle at 50% 20%, #594a4e, #211a1d 74%); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.next-code-card__brand img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.42)); }
.next-code-card__brand--text strong { color: #ffd34f; font: 900 17px/.94 Georgia, 'Times New Roman', serif; letter-spacing: -.03em; text-align: center; text-shadow: 0 2px 0 #6b261c, 0 3px 10px rgba(0,0,0,.65); text-transform: uppercase; }
.next-code-card h3 { margin: 4px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; }
.next-code-card p { margin: 5px 0 0; color: var(--next-muted); font-size: 12px; line-height: 1.45; }
.next-code-card > code { grid-column: 2; grid-row: 1; padding: 10px 12px; border: 1px dashed rgba(179,78,109,.35); border-radius: 10px; background: rgba(179,78,109,.08); color: var(--next-rose-dark); font-size: 12px; font-weight: 850; user-select: all; }
.next-code-card > div:last-child { grid-column: 1 / -1; display: flex; gap: 8px; }
.next-reward-panel { margin-top: 28px; padding: 24px; display: grid; grid-template-columns: 1fr minmax(280px, .7fr); gap: 20px; align-items: center; border: 1px solid var(--next-line); border-radius: 20px; background: var(--next-paper); }
.next-reward-panel h2 { margin: 5px 0; font: 700 26px/1.15 Georgia, serif; }
.next-reward-panel p { margin: 0; color: var(--next-muted); font-size: 13px; }
.next-reward-panel form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.next-form-message { grid-column: 1 / -1; margin: 0 !important; color: var(--next-rose-dark) !important; text-align: right; }
.next-history__login { width: 100%; padding: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px dashed var(--next-line); border-radius: 16px; background: transparent; color: var(--next-ink); cursor: pointer; }
.next-history__login span { display: grid; text-align: left; }
.next-history__login small { margin-top: 3px; color: var(--next-muted); }
.next-history__list { overflow: hidden; border: 1px solid var(--next-line); border-radius: 16px; background: var(--next-paper); }
.next-history__list > div { padding: 14px 16px; display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; border-top: 1px solid var(--next-line); }
.next-history__list > div:first-child { border-top: 0; }
.next-history__list small { color: var(--next-faint); }

/* Benefits */
.next-benefits-head { max-width: 820px; margin: 20px auto 28px; text-align: center; }
.next-benefits-head p { margin-inline: auto; }
.next-current-plan { margin-bottom: 18px; padding: 20px 22px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; border: 1px solid rgba(179,78,109,.2); border-radius: 18px; background: linear-gradient(110deg, rgba(179,78,109,.1), rgba(181,120,47,.08)); }
.next-current-plan > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--next-paper); color: var(--next-rose-dark); }
.next-current-plan > div { display: grid; gap: 3px; }
.next-current-plan strong { text-transform: capitalize; font-size: 17px; }
.next-current-plan p { margin: 0; color: var(--next-muted); font-size: 12px; }
.next-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.next-plan { position: relative; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--next-line); border-radius: 22px; background: var(--next-paper); box-shadow: 0 14px 38px rgba(80,47,22,.06); }
.next-plan.is-featured { border-color: rgba(179,78,109,.48); box-shadow: 0 22px 55px rgba(179,78,109,.16); }
.next-plan__badge { position: absolute; top: 16px; right: 16px; padding: 5px 8px; border-radius: 999px; background: rgba(179,78,109,.12); color: var(--next-rose-dark); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.next-plan > small { color: var(--next-rose-dark); font-weight: 850; }
.next-plan h2 { margin: 7px 0 10px; font: 700 28px/1.05 Georgia, serif; }
.next-plan > p { margin: 0; min-height: 66px; color: var(--next-muted); font-size: 13px; line-height: 1.55; }
.next-plan ul { margin: 20px 0 24px; padding: 0; display: grid; gap: 11px; list-style: none; }
.next-plan li { display: flex; gap: 9px; color: var(--next-muted); font-size: 12px; line-height: 1.45; }
.next-plan li svg { flex: 0 0 auto; margin-top: 1px; color: var(--next-green); }
.next-plan > .btn { margin-top: auto; justify-content: center; }
.next-benefit-note > div { display: flex; align-items: center; gap: 12px; }
.next-benefit-note > div > svg { color: var(--next-rose-dark); flex: 0 0 auto; }
.next-benefit-note > div span { display: grid; gap: 3px; }
.next-benefit-note small { color: var(--next-muted); }
.next-benefit-note > button { border: 0; background: transparent; color: var(--next-rose-dark); font-weight: 850; cursor: pointer; }

/* Version bootstrap */
.next-boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; background: #f6ead9; color: #725b49; }
.next-boot img { width: 180px; height: 82px; object-fit: contain; }
.next-boot span { font-size: 12px; font-weight: 700; letter-spacing: .08em; }

body[data-site-version="next"] .foot { margin-top: 28px; border-color: var(--next-line); color: var(--next-muted); }
body[data-site-version="next"] .foot a { color: inherit; }
body[data-site-version="next"] .admin-mode-panel { color: var(--next-ink); }

@media (max-width: 980px) {
  .next-nav__inner { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 10px; }
  .next-nav__links > a, .next-nav__more > summary { padding-inline: 9px; }
  .next-avatar b, .next-coin { display: none; }
  .next-home-hero { grid-template-columns: 1fr 1fr; }
  .next-home-hero__copy { padding: 36px; }
  .next-dashboard-strip { grid-template-columns: 1fr; }
  .next-dashboard-strip article { min-height: auto; }
  .next-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-plan-grid { grid-template-columns: 1fr; }
  .next-plan > p { min-height: auto; }
}

@media (max-width: 760px) {
  body[data-site-version="next"] .page--next { padding-top: 72px; padding-bottom: 70px; }
  .next-container { width: min(100% - 24px, 620px); }
  .next-nav { height: 62px; }
  .next-nav__inner { width: calc(100% - 20px); grid-template-columns: 98px 1fr; }
  .next-nav__brand { width: 94px; height: 46px; }
  .next-nav__brand img { height: 38px; }
  .next-nav__links {
    position: fixed; inset: auto 8px 8px; z-index: 72; height: 58px; padding: 5px;
    justify-content: space-around; border: 1px solid var(--next-line); border-radius: 18px;
    background: color-mix(in srgb, var(--next-paper) 94%, transparent); box-shadow: 0 12px 42px rgba(50,30,18,.18); backdrop-filter: blur(16px);
  }
  .next-nav__links > a, .next-nav__more > summary { min-height: 46px; padding: 0 10px; font-size: 11px; }
  .next-nav__more > div { top: auto; bottom: 62px; right: 0; }
  .next-nav__account { grid-column: 2; grid-row: 1; }
  .next-home-hero { grid-template-columns: 1fr; min-height: 0; }
  .next-home-hero__copy { padding: 32px 24px; }
  .next-home-hero__game { min-height: 330px; }
  .next-page-head { align-items: stretch; flex-direction: column; }
  .next-search { min-width: 0; width: 100%; }
  .next-card-grid, .next-card-grid--continue, .next-code-grid { grid-template-columns: 1fr; }
  .next-access-guide__routes { grid-template-columns: 1fr; }
  .next-access-guide__routes p { min-height: 0; }
  .next-code-card { grid-template-columns: 1fr; }
  .next-code-card > code { grid-column: 1; grid-row: auto; width: max-content; max-width: 100%; overflow: auto; }
  .next-reward-panel { grid-template-columns: 1fr; }
  .next-game-detail { grid-template-columns: 1fr; }
  .next-game-detail > img { min-height: 260px; max-height: 320px; }
  .next-game-detail > div { padding: 28px 22px; }
  .next-current-plan { grid-template-columns: 44px 1fr; }
  .next-current-plan > .btn { grid-column: 1 / -1; justify-content: center; }
  .next-history__list > div { grid-template-columns: 1fr; gap: 4px; }
  .next-signup-band, .next-benefit-note { align-items: stretch; flex-direction: column; }
}

@media (max-width: 480px) {
  .next-nav__links > a, .next-nav__more > summary { padding-inline: 7px; font-size: 10px; }
  .next-icon-button { display: none; }
  .next-home-hero h1 { font-size: 40px; }
  .next-home-hero__actions .btn { width: 100%; justify-content: center; }
  .next-home-hero__game { min-height: 280px; }
  .next-game-card__meta { align-items: stretch; flex-direction: column; }
  .next-game-card__meta > div { justify-content: space-between; }
  .next-reward-panel form { grid-template-columns: 1fr; }
  .next-modal { padding: 10px; }
  .next-access-guide { padding: 19px 15px; }
  .next-game-detail__actions { align-items: stretch; flex-direction: column; }
  .next-game-detail__actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .next-game-card__media img { transition: none; }
}
