/**
 * Pop (糖果) theme handwritten CSS.
 *
 * Neo-brutalist candy skin: poster masthead with drawer menu, sticker
 * tiles, hard-shadow panels, poster-style detail. Fixed light scheme
 * (no dark variant). Loaded via <link> from routes/_app.tsx (asset()).
 * Served from static/; not processed by Vite. Author for WeChat / Baidu-class
 * WebViews (see .cursor/rules/legacy-frontend.mdc): no @layer, oklch(),
 * color-mix(), native nesting, :has(), flex/grid gap, aspect-ratio, dvh, or
 * media range syntax. Core layout must work without @supports.
 *
 * Phone single column. Do not add desktop breakpoints. Home carousel is
 * full-width 16:9. Topic / detail covers are full-width 16:9 with crop.
 * Card icon 96.
 */
:root {
  --bg: #fff4d6;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #5b5646;
  --accent: #ff6fb1;
  --accent-ink: #111111;
  --border: #111111;
  --link: #1f45e0;
  --chip: #ffe9a8;
  --yellow: #ffd23f;
  --pink: #ff6fb1;
  --pink-deep: #d4126b;
  --blue: #4d7cff;
  --green: #2ed3a0;
}

.site-canvas,
.site-canvas-reading {
  width: 100%;
}

.site-header,
.site-footer,
.site-main {
  padding: 12px 16px;
}

.site-header {
  display: block;
}

.site-header-row,
.site-header-actions,
.site-channels {
  display: flex;
  align-items: center;
}

.site-header-actions {
  margin-left: auto;
}

.site-main {
  min-height: 50vh;
}

.site-footer {
  margin-top: 24px;
  text-align: center;
}

.site-footer-nav a {
  margin-right: 12px;
}

.site-logo {
  display: inline-block;
}

.site-logo-mark {
  width: 2em;
  height: 2em;
  vertical-align: middle;
  margin-right: 8px;
}

.site-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

.site-page {
  display: flex;
  flex-direction: column;
}

.site-sections,
.site-stack {
  margin-top: 16px;
}

.site-section {
  margin-bottom: 16px;
}

.site-section-title {
  margin: 0 0 12px;
}

.site-section-head {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
}

.site-section-head .site-section-title {
  margin: 0;
}

.site-section-head [data-tag-refresh] {
  margin-left: auto;
}

.site-card-list,
.site-topic-card-list,
.popular-row,
.popular-grid,
.home-list,
.site-crumbs ul,
.site-badge-list,
.site-tag-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-card-list > li,
.site-topic-card-list > li {
  display: block;
  width: 100%;
  margin-bottom: 16px;
}

.site-card {
  padding: 8px;
  overflow: hidden;
}

.site-topic-card-list .site-card {
  padding: 0;
}

.site-card-icon {
  float: left;
  width: 96px;
  height: 96px;
  margin-right: 8px;
}

.site-card-icon img,
.site-card-icon span {
  display: block;
  width: 96px;
  height: 96px;
}

.site-card-body h3 {
  margin: 0 0 4px;
}

.site-card-meta {
  margin: 0 0 8px;
}

.site-topic-cover,
.site-topic-cover-wide {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.site-topic-cover > img,
.site-topic-cover-wide > img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-topic-cover-empty > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-crumbs li {
  display: inline;
}

.site-pager a,
.site-pager span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 6px;
}

.site-status {
  padding: 8px;
}

.site-hero {
  padding: 12px;
  margin-bottom: 16px;
}

.site-hero-icon img {
  max-width: 100%;
  height: auto;
}

.site-stat-list {
  margin: 12px 0 0;
}

.site-stat-list > div {
  margin-bottom: 8px;
}

.site-disclose {
  padding: 8px;
  margin-top: 8px;
}

.site-dl dt {
  margin-top: 8px;
}

.site-dl dd {
  margin-left: 0;
}

.site-prompt {
  padding: 8px;
  margin-bottom: 12px;
}

.site-pre {
  white-space: pre-wrap;
  overflow-x: auto;
}

.site-badge-row {
  clear: both;
  margin: 0;
  white-space: nowrap;
}

.site-badge-row a,
.site-badge-list a,
.site-badge {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 4px;
  padding: 1px 6px;
}

.site-tag-cloud {
  text-align: center;
}

.site-tag-cloud li {
  display: inline-block;
  margin: 0 4px 8px;
  vertical-align: top;
}

.site-tag-cloud li[hidden] {
  display: none;
}

.popular-row {
  overflow-x: auto;
  white-space: nowrap;
}

.popular-row > li,
.popular-grid > li {
  display: inline-block;
  vertical-align: top;
  margin-right: 12px;
  margin-bottom: 8px;
}

.popular-item {
  display: inline-block;
  width: 80px;
  text-align: center;
  white-space: normal;
}

.popular-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
}

.popular-icon-empty {
  line-height: 48px;
  text-align: center;
}

.featured-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 8px;
}

.home-list-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.home-list-text {
  display: flex;
  align-items: center;
  flex: 1;
  width: 0;
}

.home-list-text span {
  flex: 1;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-list-text time {
  margin-left: 12px;
  flex-shrink: 0;
}

.home-hero {
  margin-bottom: 16px;
}

.home-hero-col,
.home-hero-carousel {
  margin-bottom: 16px;
}

.home-hero .site-section {
  margin-bottom: 0;
}

.home-carousel-wrap {
  position: relative;
  margin-bottom: 0;
}

.carousel {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.carousel-item {
  display: inline-block;
  vertical-align: top;
  margin-right: 8px;
}

.home-carousel {
  width: 100%;
  font-size: 0;
  -webkit-overflow-scrolling: touch;
  -webkit-scroll-snap-type: x mandatory;
  scroll-snap-type: x mandatory;
}

.home-carousel::-webkit-scrollbar,
.screenshots .carousel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.home-carousel .carousel-item {
  width: 100%;
  margin-right: 0;
  -webkit-scroll-snap-align: start;
  scroll-snap-align: start;
}

.home-carousel-frame {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
}

.home-carousel-frame > a,
.home-carousel-frame > img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Center-crop like topic covers instead of stretching the 16:9 frame. */
.home-carousel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-dots a {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 6px;
}

.screenshots {
  position: relative;
}

.screenshots .carousel {
  display: flex;
  align-items: center;
  height: var(--screenshot-lane);
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.screenshots .carousel-item {
  flex: 0 0 auto;
}

.screenshots .carousel-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: var(--screenshot-lane, 560px);
}

.screenshots[data-screenshot-mixed] .screenshots-ratio {
  position: relative;
  height: 0;
  padding-bottom: var(--screenshot-lane-ratio);
}

.screenshots[data-screenshot-mixed] .screenshots-ratio .carousel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  align-items: stretch;
}

.screenshots[data-screenshot-mixed] .carousel-item {
  height: 100%;
}

.screenshots[data-screenshot-mixed] .carousel-item img {
  height: 100%;
  width: auto;
  max-width: none;
  max-height: none;
}

.rt-center {
  text-align: center;
}

.rt-right {
  text-align: right;
}

.rt-justify {
  text-align: justify;
}

.rt-figure,
.rt-figure-center,
.rt-figure-right {
  margin-top: 16px;
  margin-bottom: 16px;
  max-width: 100%;
}

.rt-figure-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.rt-figure-right {
  margin-left: auto;
  text-align: right;
}

.rt-upload {
  height: auto;
  max-width: 100%;
  width: auto;
}

.rt-table-wrap {
  margin-top: 16px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.rt-check input {
  margin-right: 8px;
}

.rt-rel,
.rt-link {
  max-width: 100%;
}

.rt-text-red {
  color: #ef4444;
}
.rt-text-orange {
  color: #f97316;
}
.rt-text-yellow {
  color: #eab308;
}
.rt-text-green {
  color: #22c55e;
}
.rt-text-blue {
  color: #3b82f6;
}
.rt-text-purple {
  color: #a855f7;
}
.rt-text-pink {
  color: #ec4899;
}

.rt-bg-red {
  background-color: #ef4444;
}
.rt-bg-orange {
  background-color: #f97316;
}
.rt-bg-yellow {
  background-color: #eab308;
}
.rt-bg-green {
  background-color: #22c55e;
}
.rt-bg-blue {
  background-color: #3b82f6;
}
.rt-bg-purple {
  background-color: #a855f7;
}
.rt-bg-pink {
  background-color: #ec4899;
}

/* ---- structural mechanics (neutral; skin below owns every visual) ---- */

.site-modal-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}

.site-modal-toggle:checked + .site-modal {
  display: block;
}

.site-modal-backdrop {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.site-modal-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  margin: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  max-height: 80vh;
  overflow: auto;
  padding: 16px;
}

/* Title centred; close sits in the corner so it does not push the title. */
.site-modal-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-left: 64px;
  padding-right: 64px;
}

.site-modal-head h3 {
  flex: 1;
  margin: 0;
  text-align: center;
}

.site-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  cursor: pointer;
}

.site-modal-sr,
.site-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-modal-trigger {
  display: inline-block;
  cursor: pointer;
}

.site-topic-split {
  margin-top: 16px;
}

.site-topic-split-cover {
  margin-bottom: 16px;
}

.site-topic-split-copy {
  min-width: 0;
}

.site-post-tech .site-dl .site-dl-row,
.site-modal-panel .site-dl .site-dl-row {
  display: flex;
  align-items: baseline;
}

.site-post-tech .site-dl dt,
.site-modal-panel .site-dl dt {
  width: 96px;
  flex-shrink: 0;
  margin: 8px 8px 0 0;
}

.site-post-tech .site-dl dd,
.site-modal-panel .site-dl dd {
  flex: 1;
  min-width: 0;
  margin: 8px 0 0;
  word-break: break-all;
}

.site-post-tech .site-dl .site-modal-root {
  display: inline;
}

.site-post-tech .site-dl .site-modal-trigger {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: underline;
}

.site-hero-aside .site-modal-trigger {
  display: block;
  text-align: center;
}

/* ------------------------------------------------------------------ *
 * Pop skin: neo-brutalist candy. Fixed light scheme, no dark variant.
 * Hard 3-4px ink outlines, offset shadows, flat saturated blocks.
 * Outlines on image holders use box-shadow rings so image boxes never
 * change size.
 * ------------------------------------------------------------------ */

html {
  height: 100%;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Tahoma, sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(
    rgba(17, 17, 17, 0.16) 1.5px,
    transparent 1.5px
  );
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.6;
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  min-height: 0;
  padding: 24px 12px 12px;
}

a {
  color: var(--link);
}

a:hover,
a:focus {
  color: var(--pink-deep);
}

a:focus,
button:focus,
summary:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-weight: 900;
}

/* ---- header: poster masthead + drawer menu ---- */

.site-stripe {
  height: 14px;
  border-bottom: 4px solid var(--ink);
  background-image: repeating-linear-gradient(
    135deg,
    #111111,
    #111111 10px,
    #ffd23f 10px,
    #ffd23f 20px
  );
}

.site-header-poster {
  position: relative;
  z-index: 5;
  display: block;
  padding: 0;
  background: var(--yellow);
  border-bottom: 4px solid var(--ink);
}

.site-header-poster .site-header-row {
  padding: 12px 12px 12px 16px;
}

.site-header-poster .site-brand {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

/* Icon and wordmark share one row, icon centered on the wordmark's line box. */
.site-header-poster .site-logo,
.site-footer-colophon .site-logo {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.site-header-poster .site-logo {
  min-width: 0;
}

.site-footer-colophon .site-logo {
  -webkit-justify-content: center;
  justify-content: center;
}

.site-header-poster .site-logo-mark,
.site-footer-colophon .site-logo-mark {
  display: block;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin: 0 10px 0 0;
}

.site-header-poster .site-logo-word,
.site-footer-colophon .site-logo-word {
  line-height: 1.2;
}

/* font-size lives on the wordmark only: .site-logo-mark is 2em of its parent. */
.site-logo-word {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 var(--pink);
}

.site-header-poster .site-logo-word {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-channels-launch,
.site-channels-close {
  display: inline-block;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
}

.site-channels-launch {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  line-height: 0;
}

.site-channels-launch:hover,
.site-channels-close:hover {
  background: var(--pink);
  color: var(--ink);
}

.site-channels-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.site-channels-close {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 900;
}

.site-channels-title .site-channels-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

.site-channels-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-channels-layer {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
}

.site-channels-toggle:checked + .site-channels-layer {
  display: block;
}

.site-channels-scrim {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.6);
}

.site-channels-card {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  z-index: 1;
  margin: 24px 14px 0;
  padding: 16px 14px 14px;
  background: #ffffff;
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
}

.site-channels-head {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.site-channels-title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

/* Two stacked poster blocks: 应用 = blue, 游戏 = pink. Never one merged list. */
.site-kind-cols {
  display: block;
}

.site-kind-zone {
  --zone: var(--blue);
  --zone-ink: #ffffff;
  position: relative;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
}

.site-kind-zone[data-kind-board="games"] {
  --zone: var(--pink);
  --zone-ink: var(--ink);
}

.site-kind-zone + .site-kind-zone {
  margin-top: 16px;
}

.site-kind-zone.is-current-zone {
  background: #fff9e3;
}

.site-kind-zone-title {
  margin: 0;
  font-size: 16px;
}

.site-kind-zone-head {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--zone);
  border-bottom: 3px solid var(--ink);
  color: var(--zone-ink);
  text-decoration: none;
}

/* Global a:hover paints text pink-deep, unreadable on the pink 游戏 bar.
   Invert instead: black bar, text in the zone colour. */
.site-kind-zone-head:hover,
.site-kind-zone-head:focus,
.site-kind-zone-head:active {
  background: var(--ink);
  color: var(--zone);
}

.site-kind-zone-head:hover .site-kind-zone-name,
.site-kind-zone-head:focus .site-kind-zone-name,
.site-kind-zone-head:active .site-kind-zone-name {
  text-shadow: none;
}

.site-kind-zone-mark {
  display: block;
  margin-right: 10px;
  padding: 4px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  line-height: 0;
}

.site-kind-zone-mark .site-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
}

.site-kind-zone-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 2px 2px 0 var(--ink);
}

.site-kind-zone[data-kind-board="games"] .site-kind-zone-name {
  text-shadow: 2px 2px 0 #ffffff;
}

.site-kind-zone-en {
  flex: 1;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.site-kind-zone-go {
  padding: 3px 12px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.site-kind-zone-go::after {
  content: " \203A";
}

.site-kind-zone-head.is-current .site-kind-zone-go {
  background: var(--ink);
  color: #ffffff;
}

.site-kind-zone-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 8px 6px;
}

.site-kind-zone-list li {
  box-sizing: border-box;
  width: 50%;
  padding: 4px 5px 6px;
}

.site-kind-zone-list li:last-child {
  width: 100%;
}

.site-kind-col-link {
  display: block;
  padding: 9px 10px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.site-kind-col-link:hover,
.site-kind-col-link:focus {
  background: var(--zone);
  color: var(--zone-ink);
}

.site-kind-col-link.is-current {
  background: var(--ink);
  color: #ffffff;
}

/* ---- footer ---- */

.site-footer-colophon {
  margin-top: 32px;
  padding: 0 16px 24px;
  text-align: center;
  background: var(--ink);
  border-top: 4px solid var(--ink);
  color: #fff1c2;
}

.site-footer-colophon .site-stripe {
  margin: 0 -16px 28px;
  border-bottom: 0;
  background-image: repeating-linear-gradient(
    135deg,
    #ff6fb1,
    #ff6fb1 10px,
    #111111 10px,
    #111111 20px
  );
}

.site-footer-colophon .site-brand {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--yellow);
  text-decoration: none;
}

.site-footer-colophon .site-logo-word {
  font-size: 22px;
  text-shadow: 2px 2px 0 var(--pink);
}

.site-footer-colophon .site-footer-nav {
  margin-bottom: 16px;
}

.site-footer-colophon .site-footer-nav a {
  display: inline-block;
  margin: 0 5px 6px;
  padding: 2px 14px;
  border: 2px solid #fff1c2;
  border-radius: 999px;
  color: #fff1c2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-colophon .site-footer-nav a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.site-footer-colophon aside {
  font-size: 13px;
}

.site-footer-colophon aside p {
  margin: 0 0 6px;
}

.site-footer-colophon aside a {
  color: #fff1c2;
}

/* ---- ribbons: section titles ---- */

.site-section {
  margin-bottom: 28px;
}

.site-section-title,
.site-section > h2:not(.site-section-title) {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 16px;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--pink);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.04em;
  -webkit-transform: rotate(-1.2deg);
  transform: rotate(-1.2deg);
}

.site-section-title a {
  color: var(--yellow);
  text-decoration: none;
}

.site-section-title a:hover {
  color: #ffffff;
}

.site-section-title .site-icon {
  margin-right: 8px;
}

.site-stack > .site-section:nth-child(2n) > .site-section-title,
.site-sections > .site-section:nth-child(2n) > h2:not(.site-section-title) {
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--ink);
  color: #ffffff;
  -webkit-transform: rotate(1deg);
  transform: rotate(1deg);
}

.site-stack > .site-section:nth-child(2n) > .site-section-title a {
  color: #ffffff;
}

.site-section-head {
  margin: 0 0 18px;
}

.site-section-head .site-section-title {
  margin: 0;
}

.site-section-meta {
  display: inline-block;
  margin-left: 8px;
  padding: 0 10px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  vertical-align: middle;
}

.site-page-heading {
  display: inline-block;
  margin: 0 0 24px;
  padding: 4px 18px;
  background: var(--pink);
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  font-size: 24px;
  line-height: 1.3;
  -webkit-transform: rotate(-1.5deg);
  transform: rotate(-1.5deg);
}

/* ---- breadcrumbs / pager ---- */

.site-crumbs {
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 700;
}

.site-crumbs a {
  display: inline-block;
  padding: 0 10px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  line-height: 20px;
  text-decoration: none;
}

.site-crumbs a:hover {
  background: var(--yellow);
}

.site-crumbs [aria-current="page"] {
  display: inline-block;
  padding: 0 10px;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 999px;
  line-height: 20px;
}

.site-crumb-sep::before {
  content: "\2192";
  margin: 0 6px;
  font-weight: 900;
}

.site-pager {
  margin-top: 16px;
  text-align: center;
}

.site-pager a,
.site-pager span {
  min-width: 38px;
  box-sizing: border-box;
  margin: 0 4px 6px;
  padding: 4px 10px;
  text-align: center;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.site-pager a:hover {
  background: var(--yellow);
}

.site-pager [aria-current="page"] {
  background: var(--pink);
}

.site-pager [aria-disabled="true"] {
  background: #f1e6bf;
  box-shadow: none;
  color: #8c8566;
}

/* ---- sticker tiles: post cards, 2 columns ---- */

.site-post-card-list {
  display: block;
  font-size: 0;
}

.site-post-card-list > li {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  width: 47%;
  margin: 0 6% 24px 0;
  font-size: 16px;
}

.site-post-card-list > li:nth-child(2n) {
  margin-right: 0;
}

.site-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
}

.site-card-tile {
  -webkit-transition: -webkit-transform 0.12s, box-shadow 0.12s;
  transition: transform 0.12s, box-shadow 0.12s;
}

.site-card-tile:hover {
  -webkit-transform: translate(-3px, -3px);
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.site-post-card-list > li:nth-child(4n+1) .site-card-tile {
  background: var(--yellow);
}

.site-post-card-list > li:nth-child(4n+2) .site-card-tile {
  background: #ffa8d0;
}

.site-post-card-list > li:nth-child(4n+3) .site-card-tile {
  background: #b9ccff;
}

.site-post-card-list > li:nth-child(4n) .site-card-tile {
  background: #9cf0d4;
}

.site-card-top {
  display: block;
  padding: 14px 2px 8px;
  text-align: center;
}

.site-card-top .site-card-icon {
  display: block;
  float: none;
  margin: 0 auto 16px;
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--ink);
}

.site-card-body {
  min-width: 0;
  text-align: center;
}

.site-card-body h3 {
  margin: 0 0 6px;
  padding: 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.site-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.site-card-body h3 a:hover {
  text-decoration: underline;
}

.site-card-meta,
.site-stat-list {
  color: #3c382c;
}

.site-card-byline {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.site-badge-row {
  clear: none;
  margin: 8px 0 0;
  white-space: normal;
  text-align: center;
}

.site-badge-row a,
.site-badge-list a,
.site-badge {
  display: inline-block;
  margin: 0 4px 6px;
  padding: 0 10px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}

.site-badge-list a,
.site-hero .site-badge-list a {
  margin: 0;
}

/* Post tiles: tighter gap between tags (2px + 2px) so three fit on one row. */
.site-card-tile .site-badge-row a {
  margin: 0 2px 6px;
}

.site-badge-row a:hover,
.site-badge-list a:hover,
.site-badge:hover {
  background: var(--ink);
  color: var(--yellow);
}

/* ---- news: postcards ---- */

.site-news-card-list > li {
  display: block;
  width: 100%;
  margin: 0 0 22px;
}

.site-news-card {
  padding: 16px 16px 14px;
  background: #ffffff;
  border-left-width: 12px;
}

.site-news-card-list > li:nth-child(4n+1) .site-news-card {
  border-left-color: var(--pink);
}

.site-news-card-list > li:nth-child(4n+2) .site-news-card {
  border-left-color: var(--blue);
}

.site-news-card-list > li:nth-child(4n+3) .site-news-card {
  border-left-color: var(--green);
}

.site-news-card-list > li:nth-child(4n) .site-news-card {
  border-left-color: var(--yellow);
}

.site-news-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.site-news-card > a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.site-news-card > a:hover h3 {
  text-decoration: underline;
}

.site-news-card p {
  margin: 0 0 10px;
  color: #3c382c;
}

.site-news-card time {
  display: inline-block;
  padding: 0 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.site-news-card:hover {
  box-shadow: 9px 9px 0 var(--ink);
}

/* ---- topic cards: poster frames ---- */

.site-topic-card-list > li {
  margin-bottom: 30px;
}

.site-topic-card-list .site-card {
  overflow: visible;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 0 4px var(--ink), 6px 6px 0 4px var(--ink);
}

.site-topic-card-list .site-card h3 {
  margin: 0;
  padding: 10px 14px;
  overflow: hidden;
  background: var(--yellow);
  border-top: 4px solid var(--ink);
  font-size: 16px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-topic-card-list > li:nth-child(3n+2) .site-card h3 {
  background: #ffa8d0;
}

.site-topic-card-list > li:nth-child(3n) .site-card h3 {
  background: #9cf0d4;
}

.site-topic-card-list .site-card a {
  color: var(--ink);
  text-decoration: none;
}

.site-topic-card-list .site-card:hover {
  -webkit-transform: translate(-3px, -3px);
  transform: translate(-3px, -3px);
  box-shadow: 0 0 0 4px var(--ink), 8px 8px 0 4px var(--ink);
}

.site-topic-cover-empty,
.popular-icon-empty {
  background: #ffe9a8;
  color: var(--ink);
  font-weight: 900;
}

/* ---- popular chips ---- */

.popular-row {
  padding: 4px 8px 12px 4px;
}

.popular-row > li,
.popular-grid > li {
  margin-right: 16px;
  margin-bottom: 14px;
}

.popular-item {
  padding: 10px 4px 8px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.popular-row > li:nth-child(4n+1) .popular-item,
.popular-grid > li:nth-child(4n+1) .popular-item {
  background: var(--yellow);
}

.popular-row > li:nth-child(4n+2) .popular-item,
.popular-grid > li:nth-child(4n+2) .popular-item {
  background: #ffa8d0;
}

.popular-row > li:nth-child(4n+3) .popular-item,
.popular-grid > li:nth-child(4n+3) .popular-item {
  background: #b9ccff;
}

.popular-row > li:nth-child(4n) .popular-item,
.popular-grid > li:nth-child(4n) .popular-item {
  background: #9cf0d4;
}

.popular-item:hover {
  -webkit-transform: translate(-2px, -2px);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}

/* ---- home hero: framed carousel + sticker rail ---- */

.home-hero {
  margin-bottom: 32px;
}

.home-hero-carousel {
  padding: 4px 12px 12px 4px;
}

.home-carousel-wrap {
  box-shadow: 0 0 0 4px var(--ink), 8px 8px 0 4px var(--pink);
}

/* Tag clouds under the carousel. */
.home-hero-tags {
  margin-top: 20px;
}

.home-hero-tags .site-stack {
  margin-top: 0;
}

.home-hero .home-hero-tags .site-section {
  margin-bottom: 20px;
}

.home-hero .home-hero-tags .site-section:last-child {
  margin-bottom: 0;
}

/* No carousel (or no hero at all): tags take a full row instead. */
.home-hero-tags-wide {
  margin-top: 20px;
  margin-bottom: 32px;
}

.home-hero-rail {
  margin-top: 20px;
}

.home-hero-rail .site-section {
  margin-bottom: 20px;
  padding: 14px 14px 8px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
}

.home-hero-rail .site-section:last-child {
  margin-bottom: 0;
  background: #d9fbee;
}

.home-hero-rail .site-section-title {
  margin-bottom: 14px;
}

.home-hero-split {
  display: block;
}

.home-hero-split .home-hero-rail {
  margin-left: 0;
}

.home-list-row {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 2px dashed var(--ink);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.home-list-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 10px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.home-list-row:hover {
  color: var(--blue);
}

.home-list-text time {
  padding: 0 8px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  line-height: 18px;
}

.home-list > li:last-child .home-list-row {
  border-bottom: 0;
}

/* ---- carousel indicators ---- */

.home-carousel-wrap .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 0;
  text-align: center;
  background: var(--ink);
}

.home-carousel-wrap .carousel-dots a {
  display: inline-block;
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  padding: 0;
  vertical-align: middle;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.home-carousel-wrap .carousel-dots a:last-child {
  margin-right: 0;
}

.home-carousel-wrap .carousel-dots a::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  box-sizing: content-box;
  background: transparent;
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.home-carousel-wrap .carousel-dots a.is-current::after {
  background: var(--pink);
  border-color: var(--pink);
}

/* ---- tag stickers ---- */

.site-tag-cloud {
  text-align: left;
}

.site-tag-cloud li {
  margin: 0 10px 14px 0;
}

.site-tag-cloud a {
  display: inline-block;
  box-sizing: border-box;
  height: 36px;
  padding: 0 18px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 30px;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: top;
}

.site-tag-cloud li:nth-child(4n+1) a {
  background: var(--yellow);
}

.site-tag-cloud li:nth-child(4n+2) a {
  background: #ffa8d0;
}

.site-tag-cloud li:nth-child(4n+3) a {
  background: #b9ccff;
}

.site-tag-cloud li:nth-child(4n) a {
  background: #9cf0d4;
}

.site-tag-cloud a:hover,
.site-tag-cloud a:focus {
  background: var(--ink);
  color: var(--yellow);
}

/* /tags/: one colour per tag class (data-tag-variant on each group section).
   --tag = ribbon + shadow, --tag-soft = chip fill, --tag-ink = ribbon text. */
.site-section[data-tag-variant] {
  --tag: var(--yellow);
  --tag-soft: #ffe98a;
  --tag-ink: var(--ink);
}

.site-section[data-tag-variant="contexts"] {
  --tag: #ffd23f;
  --tag-soft: #ffe98a;
  --tag-ink: #111111;
}

.site-section[data-tag-variant="capabilities"] {
  --tag: #ff6fb1;
  --tag-soft: #ffa8d0;
  --tag-ink: #111111;
}

.site-section[data-tag-variant="positioning"] {
  --tag: #4d7cff;
  --tag-soft: #b9ccff;
  --tag-ink: #ffffff;
}

.site-section[data-tag-variant="gameplay"] {
  --tag: #2ed3a0;
  --tag-soft: #9cf0d4;
  --tag-ink: #111111;
}

.site-section[data-tag-variant="theme"] {
  --tag: #ff9a3c;
  --tag-soft: #ffc999;
  --tag-ink: #111111;
}

.site-section[data-tag-variant="form"] {
  --tag: #b58cff;
  --tag-soft: #d9c6ff;
  --tag-ink: #111111;
}

.site-sections > .site-section[data-tag-variant] {
  box-shadow: 5px 5px 0 var(--tag);
}

.site-sections > .site-section[data-tag-variant] > h2:not(.site-section-title) {
  background: var(--tag);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--tag-ink);
}

.site-section[data-tag-variant] .site-tag-cloud li a {
  background: var(--tag-soft);
}

.site-section[data-tag-variant] .site-tag-cloud li a:hover,
.site-section[data-tag-variant] .site-tag-cloud li a:focus {
  background: var(--ink);
  color: var(--tag);
}

[data-tag-refresh] {
  margin-left: auto;
  padding: 4px 18px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

[data-tag-refresh]:hover,
[data-tag-refresh]:focus {
  background: var(--green);
}

/* ---- cards for sections inside reading pages ---- */

.site-sections > .site-section {
  padding: 20px 14px 16px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

.site-sections > .site-section > h2:not(.site-section-title),
.site-sections > .site-section > .site-section-title {
  margin-top: -39px;
}

.site-status {
  padding: 14px 16px;
  background: #ffffff;
  border: 3px dashed var(--ink);
  border-radius: 14px;
  font-weight: 700;
}

.site-prompt {
  margin-bottom: 14px;
  padding: 14px 18px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 14px;
}

/* ---- topic masthead ---- */

.site-topic-masthead {
  background: var(--blue);
}

.site-sections > .site-topic-masthead {
  padding: 18px 14px;
  background: #b9ccff;
}

.site-topic-masthead h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.25;
  text-shadow: 3px 3px 0 #ffffff;
}

.site-topic-split-copy time {
  display: inline-block;
  margin: 0 0 12px;
  padding: 0 12px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
}

.site-topic-slogan {
  color: #3c382c;
  font-size: 16px;
  font-weight: 700;
}

.site-topic-seo {
  line-height: 1.7;
}

/* Rings via box-shadow: the cover box keeps its full-width 16:9 frame. */
.site-topic-cover-wide {
  box-shadow: 0 0 0 4px var(--ink), 6px 6px 0 4px var(--pink);
}

/* ---- post detail: poster hero ---- */

.site-hero {
  margin-bottom: 28px;
  padding: 18px 16px;
  background: #b9ccff;
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}

.site-hero-row {
  display: block;
}

.site-hero-copy {
  min-width: 0;
}

.site-hero-reading h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
  text-shadow: 3px 3px 0 #ffffff;
}

.site-hero-lead {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.site-hero-toolbar {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
}

.site-hero-icon {
  margin: 0 20px 0 4px;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--ink), 6px 6px 0 4px var(--pink);
}

.site-hero-meta {
  flex: 1;
  min-width: 0;
}

.site-hero-aside {
  width: auto;
  margin: 12px 0 0;
}

.site-hero .site-badge-list {
  margin: 0;
}

.site-hero .site-badge-list li {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 4px;
}

.site-hero .site-stat-list {
  margin: 0;
}

.site-hero .site-stat-list > div {
  display: block;
  margin-right: 0;
  margin-bottom: 4px;
}

.site-hero .site-stat-list dt,
.site-hero .site-stat-list dd {
  display: inline;
  margin: 0;
}

.site-hero .site-stat-list dt {
  margin-right: 6px;
  font-weight: 700;
}

.site-hero .site-stat-list dd {
  padding: 0 8px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
}

/* ---- spec table ---- */

.site-post-tech .site-dl,
.site-modal-panel .site-dl {
  overflow: hidden;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.site-post-tech .site-dl .site-dl-row,
.site-modal-panel .site-dl .site-dl-row {
  align-items: stretch;
  border-bottom: 2px solid var(--ink);
}

.site-post-tech .site-dl .site-dl-row:last-child,
.site-modal-panel .site-dl .site-dl-row:last-child {
  border-bottom: 0;
}

.site-post-tech .site-dl dt,
.site-post-tech .site-dl dd,
.site-modal-panel .site-dl dt,
.site-modal-panel .site-dl dd {
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
}

.site-post-tech .site-dl dt,
.site-modal-panel .site-dl dt {
  width: 104px;
  background: #fff0b3;
  border-right: 2px solid var(--ink);
  font-weight: 900;
}

.site-post-tech .site-dl .site-modal-trigger {
  color: var(--blue);
  font-weight: 900;
}

code {
  padding: 0 6px;
  background: #ffe9a8;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
}

.site-pre {
  padding: 12px 14px;
  background: var(--ink);
  border-radius: 10px;
  color: var(--yellow);
  font-size: 12px;
}

/* ---- screenshots folio ---- */

.screenshots {
  box-shadow: 0 0 0 4px var(--ink), 8px 8px 0 4px var(--green);
}

.screenshots-folio {
  margin: 0;
  padding: 8px 0;
  text-align: center;
  background: var(--ink);
}

.screenshots-folio button {
  display: inline-block;
  padding: 2px 16px;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.screenshots-folio button:hover,
.screenshots-folio button:focus {
  background: var(--pink);
  border-color: var(--pink);
}

/* Scroll progress: the thumb is as wide as the visible share of the track and
   slides with scrollLeft, so the last screenshots can still reach the end. */
.screenshots-folio-bar {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 8px;
  margin: 0 12px;
  vertical-align: middle;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.screenshots-folio-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--pink);
  border-radius: 999px;
}

/* ---- changelog disclosure ---- */

.site-disclose {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 0;
  background: #fff7d6;
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.site-disclose:last-child {
  margin-bottom: 0;
}

.site-changelog summary {
  position: relative;
  padding: 12px 48px 12px 18px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  list-style: none;
}

.site-changelog summary::-webkit-details-marker {
  display: none;
}

.site-changelog summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
}

.site-changelog .site-disclose[open] summary::after {
  content: "\2212";
  background: var(--green);
}

.site-changelog .site-disclose-body {
  padding: 0 18px 16px;
}

/* ---- modal ---- */

.site-modal-toggle:checked + .site-modal {
  display: block;
}

.site-modal-backdrop {
  background: rgba(17, 17, 17, 0.6);
}

.site-modal-panel {
  background: #fff4d6;
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--pink);
}

.site-modal-head {
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
}

.site-modal-head h3 {
  font-size: 20px;
}

.site-modal-close {
  padding: 2px 14px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
}

.site-modal-close:hover {
  background: var(--yellow);
}

.site-modal-trigger {
  padding: 8px 20px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.site-modal-trigger-primary {
  background: var(--yellow);
  font-size: 17px;
}

.site-modal-trigger:hover {
  background: var(--pink);
}

.site-modal-body [role="alert"] {
  margin: 12px 0 0;
  color: #d4002a;
  font-weight: 700;
}

.site-modal-body .site-download-row button,
.site-download-row a {
  display: block;
  box-sizing: border-box;
  width: 120px;
  height: 38px;
  margin: 0 auto 10px;
  padding: 0 14px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 32px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  cursor: pointer;
}

.site-download-row a {
  background: #ffffff;
}

.site-modal-body .site-download-row button:hover,
.site-download-row a:hover {
  background: var(--pink);
  color: var(--ink);
}

.site-download-row > :last-child {
  margin-bottom: 0;
}

/* ---- back to top ---- */

.site-back-top-slot {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 32px;
  z-index: 80;
  pointer-events: none;
}

.site-back-top-inner {
  width: 100%;
}

.site-back-top {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
}

.site-back-top.is-visible {
  display: flex;
}

.site-back-top[hidden] {
  display: none;
}

.site-back-top-icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

/* ---- reading canvas / legal / error ---- */

.site-canvas-reading {
  box-sizing: border-box;
  padding: 18px 14px;
  background: #ffffff;
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
}

.site-canvas-reading h1 {
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 4px solid var(--ink);
  font-size: 24px;
  line-height: 1.3;
  text-shadow: 3px 3px 0 var(--yellow);
}

.site-canvas-reading header time,
.site-canvas-reading header p {
  color: #3c382c;
  font-weight: 700;
}

.site-error {
  margin: 24px 6px 24px 0;
  padding: 20px 16px;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
}

.site-error > p:first-child {
  margin: 0 0 8px;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 4px 4px 0 var(--pink);
}

/* ---- rich text extras ---- */

.site-section blockquote,
.site-canvas-reading blockquote {
  margin: 14px 0;
  padding: 6px 18px;
  background: #fff7d6;
  border-left: 8px solid var(--pink);
}

.rt-table-wrap table {
  border-collapse: collapse;
}

.rt-table-wrap th,
.rt-table-wrap td {
  padding: 6px 12px;
  border: 2px solid var(--ink);
}

.rt-table-wrap th {
  background: var(--yellow);
}

hr {
  border: 0;
  border-top: 4px dotted var(--ink);
}
