:root {
  --ink: #251c23;
  --paper: #fff8e4;
  --paper-soft: #fffdf4;
  --hot: #ff2b91;
  --pink: #ff93c4;
  --cyan: #35d7e5;
  --blue: #5e66f4;
  --yellow: #ffe66d;
  --green: #8bf15d;
  --orange: #ff9b45;
  --shadow: rgba(37, 28, 35, 0.24);
  --theme: #ff2b91;
  --theme-2: #35d7e5;
  --theme-3: #ffe66d;
}

html,
body {
  margin: 0;
  min-height: 100%;
}


body.gloopbook-home {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: url("characters_background_concept.png") center / cover no-repeat #050506;
}

body.gloopbook-home::before,
body.gloopbook-home::after {
  content: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at 12% 14%, rgba(255,255,255,0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 22%, rgba(255,43,145,0.16) 0 5px, transparent 6px),
    radial-gradient(circle at 34% 83%, rgba(53,215,229,0.18) 0 6px, transparent 7px),
    linear-gradient(135deg, #efe2c8, #cbd9cf 48%, #f6d1a0);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.34;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(37, 28, 35, 0.035) 8px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255, 255, 255, 0.18) 12px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(37, 28, 35, 0.42) 0 1px, transparent 1px);
  background-size: 4px 4px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

html.character-consent-pending body.requires-character-consent > :not(.character-consent-gate) {
  filter: blur(7px) saturate(0.72);
  pointer-events: none;
  user-select: none;
}

body.requires-character-consent {
  transition: filter 0.18s ease;
}

.character-consent-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(37, 28, 35, 0.68), rgba(37, 28, 35, 0.72)),
    radial-gradient(circle at 18% 18%, rgba(255, 43, 145, 0.42), transparent 33%),
    radial-gradient(circle at 82% 76%, rgba(53, 215, 229, 0.34), transparent 34%);
}

.character-consent-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 20px;
  border: 4px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 253, 244, 0.94), rgba(255, 253, 244, 0.98)),
    repeating-linear-gradient(-8deg, transparent 0 16px, rgba(255, 43, 145, 0.08) 17px 23px);
  box-shadow:
    9px 9px 0 rgba(255, 43, 145, 0.48),
    16px 16px 0 rgba(53, 215, 229, 0.38),
    0 24px 60px rgba(0, 0, 0, 0.44);
  color: var(--ink);
}

.character-consent-card:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.character-consent-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(132px, 22vw, 190px);
  align-items: center;
  gap: 16px;
}

.character-consent-title-wrap {
  min-width: 0;
}

.character-consent-dragon {
  justify-self: center;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  transform: rotate(3deg);
  filter: drop-shadow(3px 4px 0 rgba(37, 28, 35, 0.22));
}

.character-consent-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 rgba(37, 28, 35, 0.18);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.character-consent-card h2 {
  margin: 0 0 12px;
  color: var(--hot);
  font-size: clamp(32px, 8vw, 52px);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--cyan);
}

.character-consent-copy {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.character-consent-copy p {
  margin: 0 0 12px;
}

.character-consent-copy ul {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.character-consent-copy li {
  padding-left: 3px;
}

.character-consent-mini {
  padding: 9px 10px;
  border: 2px dashed var(--hot);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
}

.character-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.character-consent-actions button {
  min-height: 44px;
  padding: 9px 13px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(37, 28, 35, 0.24);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.character-consent-enter {
  background: var(--green);
}

.character-consent-leave {
  background: #ffc9df;
}

.character-consent-actions button:hover,
.character-consent-actions button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.character-protection-badge {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  width: min(390px, calc(100vw - 20px));
  padding: 8px 10px;
  border: 2px dashed var(--ink);
  border-radius: 6px;
  background: rgba(255, 253, 244, 0.9);
  box-shadow: 3px 3px 0 rgba(37, 28, 35, 0.18);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

button,
summary {
  font: inherit;
}

.site-strip {
  width: min(1180px, calc(100% - 24px));
  margin: 14px auto 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 10;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-link,
.sticker-label,
.paper-button,
.back-tab {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(37, 28, 35, 0.22);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.site-link,
.back-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
}

.gloopbook-home .site-strip {
  position: fixed;
  top: 20px;
  left: 34px;
  z-index: 20;
  display: block;
  width: auto;
  margin: 0;
  pointer-events: none;
}

.character-button-nav {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  pointer-events: auto;
}

.drawn-button {
  --button-tilt: -2deg;
  --button-w: 92px;
  --button-h: 70px;
  --asset-w: 112px;
  --asset-left: -10px;
  --asset-top: -12px;
  position: relative;
  display: block;
  width: var(--button-w);
  height: var(--button-h);
  flex: 0 0 auto;
  overflow: visible;
  transform: translate3d(0, 0, 0) rotate(var(--button-tilt));
  transition: transform 0.16s ease;
  backface-visibility: hidden;
  isolation: isolate;
  will-change: transform;
}

.drawn-button img {
  position: absolute;
  left: var(--asset-left);
  top: var(--asset-top);
  width: var(--asset-w);
  max-width: none;
  filter:
    drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.48));
  transition: none;
  backface-visibility: hidden;
}

.drawn-button:hover,
.drawn-button:focus-visible {
  outline: none;
  transform: translate3d(0, -4px, 0) rotate(var(--button-tilt)) scale(1.04);
}

.drawn-button:hover img,
.drawn-button:focus-visible img {
  filter:
    drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.48));
}

.home-button {
  --button-tilt: -4deg;
  --button-w: 80px;
  --button-h: 62px;
  --asset-w: 97px;
  --asset-left: -7px;
  --asset-top: -11px;
}

.sonas-button {
  --button-tilt: 2deg;
  --button-w: 100px;
  --button-h: 70px;
  --asset-w: 126px;
  --asset-left: -16px;
  --asset-top: -45px;
}

.headworlds-button {
  --button-tilt: -1deg;
  --button-w: 116px;
  --button-h: 70px;
  --asset-w: 140px;
  --asset-left: -10px;
  --asset-top: -23px;
}

.gloopbook-home .rights-note {
  display: none;
}

.site-link:nth-child(2n) {
  background: #c8f5ff;
}

.site-link:nth-child(3n) {
  background: #ffc9df;
}

.rights-note {
  max-width: 390px;
  padding: 10px 12px;
  border: 2px dashed var(--hot);
  border-radius: 6px;
  background: rgba(255, 253, 244, 0.88);
  box-shadow: 3px 3px 0 rgba(255, 43, 145, 0.18);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  transform: rotate(1deg);
}

.character-detail .rights-note {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 500px;
  padding: 8px 12px 8px 10px;
}

.character-detail .rights-note::before {
  content: "";
  display: block;
  width: 72px;
  aspect-ratio: 1;
  background: url("random_gifs/dragonroar.gif") center / contain no-repeat;
  transform: rotate(-1deg);
  filter: drop-shadow(2px 3px 0 rgba(37, 28, 35, 0.24));
}

.gloopbook-home {
  min-height: 100vh;
  padding-bottom: 0;
}

.hub-scene {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: max(100vw, calc(100vh * 1.7786458333));
  height: max(100vh, calc(100vw * 0.5622254758));
  min-height: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: url("") center / 100% 100% no-repeat;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.hub-scene::before {
  content: none;
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background:
    repeating-linear-gradient(90deg, transparent 0 142px, rgba(64, 55, 49, 0.42) 143px 145px),
    repeating-linear-gradient(0deg, transparent 0 156px, rgba(255,255,255,0.2) 157px 158px),
    radial-gradient(circle at 18% 28%, rgba(0,0,0,0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 68%, rgba(255,255,255,0.3) 0 1px, transparent 2px);
}

.hub-scene::after {
  content: none;
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(37, 28, 35, 0.36);
  border-radius: 6px;
  pointer-events: none;
}

.hub-paper,
.hub-decal,
.detail-prop {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(4px 6px 8px rgba(37, 28, 35, 0.18));
}

.sticker-paper {
  width: min(980px, 82vw);
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  opacity: 0.96;
}

.hub-title {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 28px;
  width: min(330px, calc(100% - 56px));
  margin: 0;
  padding: 9px 12px 8px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: #fff29c;
  box-shadow: 5px 5px 0 rgba(255, 43, 145, 0.35);
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 0.86;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.hub-title span {
  display: block;
  color: var(--hot);
  text-shadow: 2px 2px 0 var(--cyan);
}

.hub-kicker {
  position: absolute;
  z-index: 3;
  top: 136px;
  left: 34px;
  width: 260px;
  max-width: calc(100% - 116px);
  margin: 0;
  padding: 9px 11px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 253, 244, 0.9);
  box-shadow: 4px 4px 0 rgba(37, 28, 35, 0.18);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  transform: rotate(1deg);
}

.wall-stamp {
  position: absolute;
  z-index: 2;
  right: 86px;
  top: 258px;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 13px, var(--ink) 14px 22px);
  box-shadow: 4px 4px 0 rgba(37, 28, 35, 0.2);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.mini-sticker {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(2px 4px 3px rgba(37, 28, 35, 0.23));
}

.mini-sticker-1 {
  width: 86px;
  left: 265px;
  top: 292px;
  transform: rotate(-16deg);
}

.mini-sticker-2 {
  width: 88px;
  right: 262px;
  bottom: 225px;
  transform: rotate(12deg);
}

.mini-sticker-3 {
  width: 84px;
  right: 84px;
  top: 426px;
  transform: rotate(-5deg);
}

.studio-logo-link {
  position: absolute;
  left: 44.4%;
  top: 22%;
  z-index: 8;
  width: 12.95%;
  height: auto;
  cursor: pointer;
  transform: translate3d(0, 0, 0) rotate(-0.5deg);
  transition: transform 0.16s ease;
  backface-visibility: hidden;
  isolation: isolate;
  will-change: transform;
}

.studio-logo-link img {
  width: 100%;
  max-width: none;
  height: auto;
  filter:
    drop-shadow(0 6px 3px rgba(0, 0, 0, 0.42))
    drop-shadow(0 14px 9px rgba(0, 0, 0, 0.24));
}

.studio-logo-link:hover,
.studio-logo-link:focus-visible {
  outline: none;
  transform: translate3d(0, -5px, 0) rotate(-0.5deg) scale(1.04);
}

.studio-logo-link:hover img,
.studio-logo-link:focus-visible img {
  filter:
    drop-shadow(0 6px 3px rgba(0, 0, 0, 0.42))
    drop-shadow(0 14px 9px rgba(0, 0, 0, 0.24));
}

.sticker-field {
  position: absolute;
  left: 33.1%;
  top: 38.3%;
  width: 35.5%;
  height: 44.5%;
  transform: none;
  z-index: 4;
}

.gloop-link {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  display: block;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transform: translate3d(0, 0, 0) rotate(var(--tilt));
  transition: transform 0.18s ease;
  backface-visibility: hidden;
  isolation: isolate;
  will-change: transform;
}

.gloop-link img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 7px 3px rgba(0, 0, 0, 0.48))
    drop-shadow(0 15px 10px rgba(0, 0, 0, 0.3));
  transition: none;
  backface-visibility: hidden;
}

.gloop-link:hover,
.gloop-link:focus-visible {
  transform: translate3d(0, -8px, 0) rotate(var(--tilt)) scale(1.05);
  outline: none;
}

.gloop-link:hover img,
.gloop-link:focus-visible img {
  filter:
    drop-shadow(0 7px 3px rgba(0, 0, 0, 0.48))
    drop-shadow(0 15px 10px rgba(0, 0, 0, 0.3));
}

.sticker-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -22px;
  display: inline-block;
  margin-top: -10px;
  padding: 5px 8px;
  background: var(--label-bg, var(--paper));
  font-size: clamp(10px, 1vw, 14px);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity 0.12s ease;
}

.sticker-label small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.gloop-link:hover .sticker-label,
.gloop-link:focus-visible .sticker-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gloopbook-home .sticker-label {
  bottom: -18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-image: linear-gradient(90deg, #ff2b91 0%, #ff9b45 16%, #ffe66d 31%, #8bf15d 47%, #35d7e5 64%, #7046f0 82%, #ff2b91 100%);
  background-size: 220% 100%;
  box-shadow: none;
  color: transparent;
  font-size: clamp(11px, 1.1vw, 18px);
  font-weight: 900;
  letter-spacing: 0.04em;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.78);
  text-shadow: none;
  filter: none;
  animation: none;
}

.gloopbook-home .sticker-label small {
  display: none;
}

@keyframes rainbow-glow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 260% 50%;
  }
}

.character-detail {
  --theme: #ff2b91;
  --theme-2: #35d7e5;
  --theme-3: #ffe66d;
  position: relative;
  padding-bottom: 60px;
  background: var(--profile-page-bg,
    radial-gradient(circle at 12% 14%, rgba(255,255,255,0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 22%, rgba(255,43,145,0.16) 0 5px, transparent 6px),
    radial-gradient(circle at 34% 83%, rgba(53,215,229,0.18) 0 6px, transparent 7px),
    linear-gradient(135deg, #efe2c8, #cbd9cf 48%, #f6d1a0));
  background-attachment: fixed;
  background-repeat: var(--profile-page-bg-repeat, repeat);
  background-size: var(--profile-page-bg-size, auto);
}

.theme-gooey {
  --theme: #cc5b80;
  --theme-2: #7046f0;
  --theme-3: #ff8054;
  --profile-page-bg:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
    url("backgrounds/082.gif") center repeat #050506;
    --profile-page-bg-size: 245px auto;
}

.theme-maximum,
html.theme-maximum-root {
  --theme: #f38968;
  --theme-2: #83dfe0;
  --theme-3: #ffe36d;
  --profile-page-bg: 
  linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)),
  url("backgrounds/657.gif") center repeat #8fe0df;
  --profile-page-bg-size: 245px auto;
}

html.theme-maximum-root {
  background: var(--profile-page-bg);
  background-attachment: fixed;
  background-repeat: var(--profile-page-bg-repeat, repeat);
  background-size: var(--profile-page-bg-size, auto);
  overscroll-behavior-y: none;
}

.theme-fidge {
  --theme: #ff6848;
  --theme-2: #625af2;
  --theme-3: #52d2cb;
  --profile-page-bg: 
  linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)),
  url("backgrounds/096.gif") center repeat #321260;
  --profile-page-bg-size: 240px auto;
}

.theme-starstuff {
  --theme: #cc5b80;
  --theme-2: #7046f0;
  --theme-3: #ff8054;
  --profile-page-bg: 
  linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)),
  url("backgrounds/431.gif") center repeat #321260;
  --profile-page-bg-size: 230px auto;
}

.theme-daydreamer {
  --theme: #6d8fcf;
  --theme-2: #88dedb;
  --theme-3: #f0b77f;
  --profile-page-bg: 
  linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)),
  url("backgrounds/pattern 328.gif") center no-repeat #243e87;
  --profile-page-bg-size: 310px auto;
}

.theme-charmi {
  --theme: #e5a323;
  --theme-2: #82b6f7;
  --theme-3: #e7df3e;
  --profile-page-bg: url("backgrounds/flowers 25.gif") center repeat #5a398e;
  --profile-page-bg-size: 520px auto;
}

.profile-side-decor {
  --side-sticker-scale: 1;
  --side-decor-edge: max(10px, calc(50vw - 960px));
  position: absolute;
  top: 0;
  z-index: 2;
  width: clamp(118px, 12vw, 232px);
  min-height: 100%;
  pointer-events: none;
}

.profile-side-decor-left {
  left: var(--side-decor-edge);
}

.profile-side-decor-right {
  right: var(--side-decor-edge);
}

.profile-side-decor-left {
  left: calc(50% - 590px - 260px);
}

.profile-side-decor-right {
  right: calc(50% - 590px - 260px);
}

.profile-side-decor-left {
  left: var(--side-decor-edge);
}

.profile-side-decor-right {
  right: var(--side-decor-edge);
}

.side-sticker {
  position: absolute;
  top: var(--decor-y, 0);
  left: var(--decor-x, 0);
  display: block;
  width: var(--decor-w, 150px);
  max-width: none;
  z-index: var(--decor-layer, 1);
  opacity: var(--decor-opacity, 0.98);
  filter:
    drop-shadow(0 7px 4px rgba(37, 28, 35, 0.24))
    drop-shadow(0 0 6px rgba(255, 253, 244, 0.56));
  transform: translate3d(0, 0, 0) scale(var(--side-sticker-scale)) rotate(var(--decor-tilt, 0deg));
  transform-origin: top left;
}

.profile-side-decor-right .side-sticker {
  right: var(--decor-x, 0);
  left: auto;
  transform-origin: top right;
}

.profile-side-link {
  pointer-events: auto;
}

.profile-side-link .side-sticker {
  pointer-events: none;
}

.side-computer-player {
  position: absolute;
  top: var(--decor-y, 0);
  left: var(--decor-x, 0);
  isolation: isolate;
  display: block;
  width: var(--decor-w, 150px);
  max-width: none;
  margin: 0;
  opacity: var(--decor-opacity, 0.98);
  filter:
    drop-shadow(0 7px 4px rgba(37, 28, 35, 0.24))
    drop-shadow(0 0 6px rgba(255, 253, 244, 0.56));
  transform: translate3d(0, 0, 0) scale(var(--side-sticker-scale)) rotate(var(--decor-tilt, 0deg));
  transform-origin: top left;
}

.side-computer-base {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
}

.side-computer-screen {
  position: absolute;
  z-index: 1;
  left: 34.5%;
  top: 37.8%;
  width: 34%;
  height: 15.9%;
  border-radius: 9% / 12%;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
  transform: rotate(2deg);
  filter:
    saturate(1.08)
    contrast(1.05);
}

/* Sticker controls: --decor-y moves down/up the page, --decor-x moves inward from the side, --decor-w changes size, and --decor-tilt rotates. */
.side-sticker-keychains {
  --decor-y: 205px;
  --decor-w: 110px;
  --decor-x: -5px;
  --decor-tilt: 2deg;
}

.side-sticker-computer {
  --decor-y: 555px;
  --decor-w: 215px;
  --decor-x: 14px;
  --decor-tilt: -2deg;
}

.side-sticker-fidge-gamer {
  --decor-y: 1780px;
  --decor-w: 130px;
  --decor-x: -4px;
  --decor-tilt: -3deg;
}

.side-sticker-fishglobe {
  --decor-y: 900px;
  --decor-w: 166px;
  --decor-x: 28px;
  --decor-tilt: 4deg;
}

.side-sticker-lolly {
  --decor-y: 1185px;
  --decor-w: 150px;
  --decor-x: 25px;
  --decor-tilt: -7deg;
}

.side-sticker-coin {
  --decor-y: 1395px;
  --decor-w: 78px;
  --decor-x: 145px;
  --decor-tilt: 8deg;
}

.side-sticker-block {
  --decor-y: 1605px;
  --decor-w: 178px;
  --decor-x: 22px;
  --decor-tilt: 6deg;
}

.side-sticker-star {
  --decor-y: 122px;
  --decor-w: 92px;
  --decor-x: 26px;
  --decor-tilt: 10deg;
}

.side-sticker-flower {
  --decor-y: 730px;
  --decor-w: 85px;
  --decor-x: 34px;
  --decor-tilt: -8deg;
}

.side-sticker-growlithe {
  --decor-y: 1280px;
  --decor-w: 174px;
  --decor-x: 38px;
  --decor-tilt: 0deg;
}

.side-sticker-marble {
  --decor-y: 1565px;
  --decor-w: 84px;
  --decor-x: 86px;
  --decor-tilt: -7deg;
}

.side-sticker-fidge-sit {
  --decor-y: 2185px;
  --decor-w: 230px;
  --decor-x: 25px;
  --decor-tilt: 4deg;
}

.side-sticker-max-palm-left-tall {
  --decor-y: 175px;
  --decor-w: 325px;
  --decor-x: -45px;
  --decor-tilt: 15deg;
  --decor-layer: 0;
  --decor-opacity: 0.92;
}

.side-sticker-max-coconut {
  --decor-y: 955px;
  --decor-w: 75px;
  --decor-x: 20px;
  --decor-tilt: -15deg;
}

.side-sticker-max-orchid {
  --decor-y: 1075px;
  --decor-w: 245px;
  --decor-x: -65px;
  --decor-tilt: -15deg;
}

.side-sticker-max-butterfly {
  --decor-y: 865px;
  --decor-w: 75px;
  --decor-x: 30px;
  --decor-tilt: 5deg;
}

.side-sticker-max-stamp2 {
  --decor-y: 600px;
  --decor-w: 108px;
  --decor-x: 25px;
  --decor-tilt: 3deg;
}

.side-sticker-max-stamp {
  --decor-y: 700px;
  --decor-w: 110px;
  --decor-x: 15px;
  --decor-tilt: -4deg;
}


.side-sticker-max-palm-left-cluster {
  --decor-y: -330px;
  --decor-w: 245px;
  --decor-x: 165px;
  --decor-tilt: 9deg;
}

.side-sticker-max-phone {
  --decor-y: -285px;
  --decor-w: 185px;
  --decor-x: -5px;
  --decor-tilt: -6deg;
}

.maximum-moodboard-wrap {
  --side-sticker-scale: 1;
  position: relative;
  z-index: 2;
  display: flow-root;
  margin-bottom: 22px;
}

.theme-maximum .detail-grid {
  position: relative;
  z-index: 3;
}

.maximum-moodboard-wrap .mood-panel {
  z-index: 2;
  margin-bottom: 0;
}

.maximum-moodboard-wrap > .side-sticker {
  z-index: 1;
}


.side-sticker-max-palm-right-lean {
  --decor-scale: 1.4;
  --decor-y: 100px;
  --decor-w: 330px;
  --decor-x: -10px;
  --decor-tilt: -14deg;
  --decor-layer: 0;
  --decor-opacity: 0.9;
  transform:
  translate3d(0,0,0)
  scale(calc(var(--side-sticker-scale) * var(--decor-scale, 1)))
  rotate(var(--decor-tilt, 0deg));
}

.side-sticker-max-angelsticker {
  --decor-y: 100px;
  --decor-w: 85px;
  --decor-x: 25px;
  --decor-tilt: 7deg;
}

.side-sticker-max-lucky {
  --decor-y: 480px;
  --decor-w: 285px;
  --decor-x: -125px;
  --decor-tilt: 7deg;
}

.side-sticker-max-cool {
  --decor-y: 2070px;
  --decor-w: 105px;
  --decor-x: -15px;
  --decor-tilt: 7deg;
}

.side-sticker-max-ring {
  --decor-y: 765px;
  --decor-w: 78px;
  --decor-x: -15px;
  --decor-tilt: 9deg;
}

.side-sticker-max-dolphin {
  --decor-y: 865px;
  --decor-w: 128px;
  --decor-x: -30px;
  --decor-tilt: 9deg;
}

.side-sticker-max-coconutcocktail {
  --decor-y: 1115px;
  --decor-w: 135px;
  --decor-x: -10px;
  --decor-tilt: 5deg;
}

.side-sticker-max-sun {
  --decor-y: 1415px;
  --decor-w: 135px;
  --decor-x: -10px;
  --decor-tilt: 5deg;
}

.side-sticker-max-palm-right-small {
  --decor-y: 1850px;
  --decor-w: 724px;
  --decor-x: -352px;
  --decor-tilt: 25deg;
  --decor-layer: 0;
  --decor-opacity: 0.9;
}

.side-sticker-max-wolverine {
  --decor-y: 1645px;
  --decor-w: 128px;
  --decor-x: -25px;
  --decor-tilt: 3deg;
}

.detail-shell {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

  .character-detail.has-profile-side-decor .site-strip,
  .character-detail.has-profile-side-decor .detail-shell,
  .character-detail.has-profile-side-decor .page-footnote {
    width: min(1180px, calc(100% - clamp(160px, 17vw, 270px)));
  }

.detail-hero {
  /* Hero row controls: keep the stamp and Pokemon rows on this same lane so their centers match. */
  --hero-graphic-lane-right: 72px;
  --hero-graphic-lane-width: min(555px, 50%);
  /* Override these on one character's .detail-hero when its stamps need a custom spot. */
  --profile-stamp-right: var(--hero-graphic-lane-right);
  --profile-stamp-bottom: 132px;
  --profile-stamp-width: var(--hero-graphic-lane-width);
  --profile-stamp-gap: 10px;
  --profile-stamp-padding: 7px 10px 8px;
  --profile-stamp-img-width: clamp(72px, 6.8vw, 99px);
  --profile-team-right: var(--hero-graphic-lane-right);
  --profile-team-bottom: 34px;
  --profile-team-width: var(--hero-graphic-lane-width);
  --profile-team-padding: 14px 18px 10px;
  --profile-team-sprite-height: 72px;
  position: relative;
  min-height: 560px;
  margin-bottom: 22px;
  padding: 24px;
  overflow: visible;
  border: 4px solid var(--ink);
  border-radius: 6px;
  background: #fffdf4;
  box-shadow: 0 14px 34px var(--shadow);
  isolation: isolate;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 74%, rgba(255, 253, 244, 0.58) 0 18%, rgba(255, 253, 244, 0.18) 44%, transparent 68%),
    linear-gradient(90deg, rgba(255, 253, 244, 0.02), rgba(255, 253, 244, 0.22) 52%, rgba(255, 253, 244, 0.5));
}

.hero-paper-left {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.84;
  transform: none;
  filter: saturate(1.02) contrast(0.94) brightness(1.05);
}

.hero-paper-right {
  display: none;
}

.hero-paper-bottom {
  display: none;
}

.hero-sticker {
  position: absolute;
  z-index: 4;
  left: var(--pagedoll-left, 42px);
  bottom: var(--pagedoll-bottom, 14px);
  width: var(--pagedoll-width, min(480px, 48%));
  margin: 0;
  transform: none;
}

/* Edit one character's page doll here without changing the others. */
.gooey-pagedoll {
  --pagedoll-width: min(416px, 48%);
  --pagedoll-left: 100px;
  --pagedoll-bottom: 10px;
  --pagedoll-tilt: 2.5deg;
}

.maximum-pagedoll {
  --pagedoll-width: min(590px, 48%);
  --pagedoll-left: 42px;
  --pagedoll-bottom: 14px;
  --pagedoll-tilt: -5deg;
}

.fidge-pagedoll {
  --pagedoll-width: min(435px, 48%);
  --pagedoll-left: 42px;
  --pagedoll-bottom: 25px;
  --pagedoll-tilt: -5deg;
}

.starstuff-pagedoll {
  --pagedoll-width: min(480px, 48%);
  --pagedoll-left: 42px;
  --pagedoll-bottom: 25px;
  --pagedoll-tilt: -5deg;
}

.daydreamer-pagedoll {
  --pagedoll-width: min(480px, 48%);
  --pagedoll-left: 42px;
  --pagedoll-bottom: 14px;
  --pagedoll-tilt: -2deg;
}

.charmi-pagedoll {
  --pagedoll-width: min(550px, 48%);
  --pagedoll-left: 25px;
  --pagedoll-bottom: 5px;
  --pagedoll-tilt: -5deg;
}

.hero-sticker img {
  width: 100%;
  transform: rotate(var(--pagedoll-tilt, -5deg));
  transform-origin: center;
  filter:
    drop-shadow(0 16px 5px rgba(37, 28, 35, 0.25))
    drop-shadow(0 0 8px rgba(255,255,255,0.75));
}

.hero-sticker figcaption {
  position: absolute;
  left: calc(var(--pagedoll-credit-left, 10px) - var(--pagedoll-left, 42px));
  bottom: calc(var(--pagedoll-credit-bottom, 8px) - var(--pagedoll-bottom, 14px));
  width: fit-content;
  max-width: 160px;
  margin: 0;
  padding: 2px 5px;
  border: 1px solid rgba(37, 28, 35, 0.68);
  border-radius: 3px;
  background: rgba(255, 253, 244, 0.82);
  box-shadow: 1px 1px 0 rgba(37, 28, 35, 0.12);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: none;
  transform: none;
}

.hero-card {
  position: relative;
  z-index: 4;
  width: min(570px, 55%);
  margin-left: auto;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 253, 244, 0.92);
  box-shadow: 8px 8px 0 rgba(37, 28, 35, 0.16);
  transform: none;
}

.detail-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--theme-3);
  box-shadow: 2px 2px 0 rgba(37, 28, 35, 0.16);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 0 0 10px;
  color: var(--theme);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--theme-2);
}

.hero-card p {
  margin: 0 0 13px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.pill-row,
.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--pill, #fff);
  box-shadow: 2px 2px 0 rgba(37, 28, 35, 0.16);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.swatch {
  width: 52px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--swatch);
  box-shadow: 2px 2px 0 rgba(37, 28, 35, 0.18);
}

.profile-stamp-strip,
.profile-team-sprites {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.profile-stamp-strip {
  right: var(--profile-stamp-right);
  bottom: var(--profile-stamp-bottom);
  justify-content: center;
  width: var(--profile-stamp-width);
  gap: var(--profile-stamp-gap);
  padding: var(--profile-stamp-padding);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 253, 244, 0.6), rgba(255, 253, 244, 0.34)),
    radial-gradient(ellipse at center, rgba(82, 210, 203, 0.18), transparent 68%);
  box-shadow:
    0 10px 18px rgba(37, 28, 35, 0.08),
    inset 0 0 0 1px rgba(255, 253, 244, 0.52);
}

.profile-stamp-strip img {
  width: var(--profile-stamp-img-width);
  height: auto;
  filter:
    drop-shadow(0 2px 1px rgba(37, 28, 35, 0.45))
    drop-shadow(0 0 4px rgba(255, 253, 244, 0.7));
}

.profile-team-sprites {
  right: var(--profile-team-right);
  bottom: var(--profile-team-bottom);
  justify-content: space-between;
  width: var(--profile-team-width);
  min-height: 88px;
  padding: var(--profile-team-padding);
}

.profile-team-sprites::before {
  content: "";
  position: absolute;
  inset: 26px 0 4px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 253, 244, 0.7) 0 28%, rgba(255, 253, 244, 0.28) 58%, transparent 76%),
    linear-gradient(90deg, transparent, rgba(82, 210, 203, 0.16), transparent);
  filter: blur(0.2px);
}

.profile-team-sprites img {
  width: auto;
  max-height: var(--profile-team-sprite-height);
  object-fit: contain;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 4px 1px rgba(37, 28, 35, 0.42))
    drop-shadow(0 0 5px rgba(255, 253, 244, 0.65));
}

.character-tama {
  position: absolute;
  z-index: 7;
  width: clamp(225px, 24vw, 330px);
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: rotate(2.5deg);
}

.fidge-tama {
  top: -5px;
  right: -112px;
}

.character-tama:focus-visible {
  outline: 3px solid var(--theme-3);
  outline-offset: 5px;
  border-radius: 50%;
}

.character-tama-shell {
  width: 100%;
  height: auto;
  pointer-events: none;
  filter:
    drop-shadow(0 13px 8px rgba(37, 28, 35, 0.24))
    drop-shadow(0 0 8px rgba(82, 210, 203, 0.28));
  transition: transform 0.16s ease;
}

.character-tama:hover .character-tama-shell,
.character-tama:focus-visible .character-tama-shell {
  transform: translateY(-4px) scale(1.02);
}

.character-tama-screen {
  position: absolute;
  left: 37%;
  top: 39%;
  width: 33%;
  height: 31%;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: none;
}

.character-tama-sprite {
  position: absolute;
  left: 12%;
  bottom: 10%;
  width: 58%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  transform-origin: center bottom;
  filter: drop-shadow(0 2px 0 rgba(17, 17, 20, 0.36));
  animation:
    tamaSpriteIdle 2.4s ease-in-out infinite,
    tamaSpriteWander 7s ease-in-out infinite;
}

.character-tama-sprite.tama-hop {
  animation:
    tamaActionHop 0.72s ease-out,
    tamaSpriteWander 7s ease-in-out infinite;
}

.character-tama-sprite.tama-spin {
  animation:
    tamaActionSpin 0.82s ease-in-out,
    tamaSpriteWander 7s ease-in-out infinite;
}

.character-tama-sprite.tama-shake {
  animation:
    tamaActionShake 0.62s ease-in-out,
    tamaSpriteWander 7s ease-in-out infinite;
}

@keyframes tamaSpriteIdle {
  0%, 100% { transform: translateY(0) scaleX(1); }
  45% { transform: translateY(-5px) scaleX(0.98); }
  58% { transform: translateY(0) scaleX(1.04); }
}

@keyframes tamaSpriteWander {
  0%, 100% { left: 12%; bottom: 10%; }
  25% { left: 17%; bottom: 12%; }
  50% { left: 10%; bottom: 9%; }
  75% { left: 15%; bottom: 13%; }
}

@keyframes tamaActionHop {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-24px) scale(1.04); }
  48% { transform: translateY(0) scale(1.08, 0.9); }
  70% { transform: translateY(-10px) scale(0.96, 1.04); }
}

@keyframes tamaActionSpin {
  0% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(18deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes tamaActionShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  16% { transform: translateX(-6px) rotate(-8deg); }
  32% { transform: translateX(6px) rotate(8deg); }
  48% { transform: translateX(-4px) rotate(-5deg); }
  64% { transform: translateX(4px) rotate(5deg); }
  80% { transform: translateX(-2px) rotate(-2deg); }
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.facts-panel,
.stack-panel,
.mood-panel,
.gallery-panel {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 253, 244, 0.9);
  box-shadow: 8px 8px 0 rgba(37, 28, 35, 0.14);
}

.facts-panel {
  padding: 18px;
  background:
    linear-gradient(rgba(255,253,244,0.82), rgba(255,253,244,0.88)),
    url("pageprops/paperprop_14.png") center top / cover no-repeat;
}

.facts-panel h2,
.stack-panel h2,
.mood-panel h2,
.gallery-panel h2 {
  margin: 0 0 14px;
  color: var(--theme);
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.fact-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 10px;
  padding: 8px;
  border: 2px solid rgba(37, 28, 35, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
}

.fact-row dt,
.fact-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.fact-row dt {
  font-weight: 700;
  text-transform: uppercase;
}

.fact-row dd {
  font-weight: 700;
}

.stack-panel {
  padding: 18px;
  background:
    linear-gradient(rgba(255,253,244,0.88), rgba(255,253,244,0.92)),
    url("pageprops/paperprop_15.png") center / cover no-repeat;
}

details {
  margin: 0 0 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 3px 3px 0 rgba(37, 28, 35, 0.12);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--theme-3) 72%, white);
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  text-transform: uppercase;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  display: inline-block;
  width: 22px;
  margin-right: 8px;
  color: var(--theme);
  font-weight: 800;
}

details[open] summary::before {
  content: "-";
}

.detail-copy {
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.detail-copy p {
  margin: 0 0 12px;
}

.detail-copy p:last-child {
  margin-bottom: 0;
}

.note-list {
  margin: 0;
  padding-left: 19px;
}

.note-list li {
  margin-bottom: 7px;
}

.mood-panel,
.gallery-panel {
  margin-bottom: 22px;
  padding: 18px;
}

.mood-grid,
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Easy frame presets:
   frame-full = show all of the image
   frame-fill = fill the frame with a little crop
   frame-snug = keep the art whole but pull the inner image border closer
   frame-top/frame-bottom/frame-left/frame-right = choose the important side
   tiny custom nudge = add style="--art-position: 50% 35%;" to a figure */
.mood-tile,
.art-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(37, 28, 35, 0.14);
  transform: rotate(var(--tilt, 0deg));
}

.mood-tile {
  --art-fit: cover;
}

.frame-full {
  --art-fit: contain;
}

.frame-fill {
  --art-fit: cover;
}

.frame-top {
  --art-position: center top;
}

.frame-bottom {
  --art-position: center bottom;
}

.frame-left {
  --art-position: left center;
}

.frame-right {
  --art-position: right center;
}

.frame-square {
  --art-ratio: 1 / 1;
}

.frame-wide {
  --art-ratio: 16 / 10;
}

.frame-landscape {
  --art-ratio: 4 / 3;
}

.frame-tall {
  --art-ratio: 4 / 5;
}

.frame-portrait {
  --art-ratio: 3 / 4;
}

.mood-tile img,
.art-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: var(--art-ratio, 1 / 1);
  object-fit: var(--art-fit, contain);
  object-position: var(--art-position, center);
  border: 1px solid rgba(37, 28, 35, 0.22);
  background: var(--art-bg, #eee5d8);
}

.mood-tile figcaption,
.art-tile figcaption {
  min-height: 14px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.wide-art {
  grid-column: span 2;
}

.wide-art img {
  aspect-ratio: var(--art-ratio, 16 / 10);
}

.frame-snug img {
  width: var(--snug-width, 62%);
  height: auto;
  aspect-ratio: var(--snug-ratio, 1 / 1);
  justify-self: center;
  align-self: center;
}

.page-footnote {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 24px));
  margin: 20px auto 0;
  padding: 12px 14px;
  border: 2px dashed var(--ink);
  border-radius: 6px;
  background: rgba(255, 253, 244, 0.8);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.character-rules-note {
  text-align: left;
}

.character-rules-note h2 {
  margin: 0 0 8px;
  color: var(--theme);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.character-rules-note p {
  margin: 0 0 9px;
}

.character-rules-note ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 980px) {
  .profile-side-decor-right {
    right: -8px;
  }

  .site-strip {
    flex-direction: column;
  }

  .rights-note {
    max-width: none;
    transform: none;
  }

  .hub-scene {
    min-height: 720px;
    padding: 22px 18px 26px;
  }

  .hub-scene::after {
    inset: 12px;
  }

  .hub-title,
  .hub-kicker,
  .sticker-field {
    position: relative;
    inset: auto;
  }

  .hub-title {
    width: auto;
  }

  .hub-kicker {
    width: auto;
    margin-top: 16px;
  }

  .hub-paper,
  .hub-decal,
  .mini-sticker {
    display: block;
  }

  .sticker-field {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
    margin: 24px 0 22px;
    width: 100%;
    height: auto;
    transform: none;
  }

  .sticker-paper {
    display: none;
  }

  .gloop-link {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: rotate(var(--tilt));
  }

  .gloop-link img {
    width: min(220px, 88%);
    margin: 0 auto;
  }

  .detail-hero {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .detail-prop:not(.hero-paper-left) {
    display: none;
  }

  .hero-sticker,
  .hero-card {
    position: relative;
    inset: auto;
    margin: 0;
  }

  .hero-card {
    width: 100%;
  }

  .profile-stamp-strip,
  .profile-team-sprites,
  .character-tama,
  .fidge-tama {
    position: relative;
    inset: auto;
    right: auto;
    bottom: auto;
    top: auto;
  }

  .hero-sticker {
    width: var(--pagedoll-mobile-width, 100%);
    transform: none;
  }

  .hero-sticker img {
    width: min(430px, 100%);
    margin: 0 auto;
    transform: rotate(var(--pagedoll-mobile-tilt, var(--pagedoll-tilt, -5deg)));
  }

  .hero-sticker figcaption {
    left: 8px;
    bottom: 8px;
  }

  .profile-stamp-strip {
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: -2px;
  }

  .profile-stamp-strip img {
    width: 88px;
  }

  .profile-team-sprites {
    order: 4;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    width: 100%;
    min-height: auto;
    padding: 10px 12px;
  }

  .profile-team-sprites::before {
    inset: 8px 0;
  }

  .profile-team-sprites img {
    max-height: 64px;
  }

  .character-tama {
    order: 5;
    justify-self: center;
    width: min(275px, 72vw);
    margin-top: -6px;
    transform: rotate(2deg);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .mood-grid,
  .art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .profile-side-decor {
    --side-sticker-scale: 0.42;
    opacity: 0.76;
  }

  .profile-side-decor-left {
    left: -18px;
  }

  .profile-side-decor-right {
    right: -18px;
  }

  .site-strip,
  .hub-scene,
  .detail-shell,
  .page-footnote {
    width: calc(100% - 18px);
  }

  .site-link {
    min-height: 36px;
    padding: 7px 9px;
  }

  .hub-title {
    font-size: 42px;
  }

  .hub-kicker {
    font-size: 16px;
  }

  .sticker-field,
  .mood-grid,
  .art-grid {
    grid-template-columns: 1fr;
  }

  .hero-card h1 {
    font-size: 42px;
  }

  .profile-stamp-strip {
    gap: 7px;
    padding: 7px;
  }

  .profile-stamp-strip img {
    width: 74px;
  }

  .profile-team-sprites {
    gap: 8px 10px;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .wide-art {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .character-tama-sprite,
  .character-tama-sprite.tama-hop,
  .character-tama-sprite.tama-spin,
  .character-tama-sprite.tama-shake {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  body.gloopbook-home {
    overflow: hidden;
  }

  .gloopbook-home .site-strip {
    top: 14px;
    left: 18px;
    flex-direction: row;
    transform: scale(0.84);
    transform-origin: top left;
  }

  .gloopbook-home .hub-scene {
    position: fixed;
    left: 50%;
    top: 50%;
    width: max(100vw, calc(100vh * 1.7786458333));
    height: max(100vh, calc(100vw * 0.5622254758));
    min-height: 0;
    padding: 0;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .gloopbook-home .sticker-field {
    position: absolute;
    left: 33.1%;
    top: 38.3%;
    display: block;
    width: 35.5%;
    height: 44.5%;
    margin: 0;
    transform: none;
  }

  .gloopbook-home .gloop-link {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    transform: rotate(var(--tilt));
  }

  .gloopbook-home .gloop-link img {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 620px) {
  .gloopbook-home .site-strip {
    top: 10px;
    left: 12px;
    transform: scale(0.68);
  }

  .character-consent-card {
    padding: 16px;
  }

  .character-consent-head {
    grid-template-columns: minmax(0, 1fr) min(30vw, 112px);
    gap: 10px;
  }

  .character-consent-card h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .character-detail .rights-note {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }

  .character-detail .rights-note::before {
    width: 58px;
  }

  .character-consent-actions {
    display: grid;
  }

  .character-protection-badge {
    font-size: 10px;
  }
}

body.gooeygarage-home,
body.character-stickerbook {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background-color: #050506;
}

body.gooeygarage-home {
  height: 100vh;
  overflow: hidden;
}

body.character-stickerbook {
  overflow-x: hidden;
  background: url("backgrounds/065C.jpg") center / cover fixed no-repeat #050506;
}

body.gooeygarage-home::before,
body.gooeygarage-home::after,
body.character-stickerbook::before,
body.character-stickerbook::after {
  content: none;
}

.gooeygarage-home .site-strip,
.character-stickerbook .site-strip {
  position: fixed;
  top: 20px;
  left: 34px;
  z-index: 20;
  display: block;
  width: auto;
  margin: 0;
  pointer-events: none;
}

.gooeygarage-home .rights-note,
.character-stickerbook .rights-note {
  display: none;
}

.gooeygarage-scene {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: max(100vw, calc(100vh * 1.7777777778));
  height: max(100vh, calc(100vw * 0.5625));
  overflow: hidden;
  background: url("backgrounds/gooeygarage_backgroundclosed.png") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%);
}

.gooeygarage-open-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: url("backgrounds/gooeygarage_backgroundopen.png") center / 100% 100% no-repeat;
  transition: opacity 0.16s ease;
}

.gooeygarage-door-link {
  position: absolute;
  left: 34.3%;
  top: 40.6%;
  z-index: 3;
  width: 33.7%;
  height: 43.5%;
  cursor: pointer;
}

.gooeygarage-studio-link {
  position: absolute;
  left: 45.2%;
  top: 32.2%;
  z-index: 4;
  width: 10%;
  transform: translate3d(0, 0, 0) rotate(-0.5deg);
  transition: transform 0.16s ease;
  backface-visibility: hidden;
}

.gooeygarage-studio-link img {
  width: 100%;
  height: auto;
  max-width: none;
  filter:
    drop-shadow(0 5px 3px rgba(0, 0, 0, 0.42))
    drop-shadow(0 12px 8px rgba(0, 0, 0, 0.24));
}

.gooeygarage-studio-link:hover,
.gooeygarage-studio-link:focus-visible {
  outline: none;
  transform: translate3d(0, -4px, 0) rotate(-0.5deg) scale(1.04);
}

.gooeygarage-door-link:hover + .gooeygarage-open-state,
.gooeygarage-door-link:focus-visible + .gooeygarage-open-state,
.gooeygarage-scene.garage-door-open .gooeygarage-open-state {
  opacity: 1;
}

.gooeygarage-door-link:focus-visible {
  outline: 3px solid rgba(255, 230, 109, 0.86);
  outline-offset: 5px;
}

.stickerbook-scene {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 130px clamp(18px, 5vw, 76px) 70px;
}

.stickerbook-field {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  align-items: end;
  justify-items: center;
  gap: clamp(34px, 5vw, 72px) clamp(22px, 5vw, 60px);
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
}

.character-stickerbook .gloop-link {
  position: relative;
  left: auto;
  top: auto;
  display: grid;
  justify-items: center;
  width: clamp(130px, 16vw, 235px);
  text-align: center;
  transform: translate3d(0, 0, 0) rotate(var(--tilt));
}

.character-stickerbook .gloop-link:hover,
.character-stickerbook .gloop-link:focus-visible {
  transform: translate3d(0, -8px, 0) rotate(var(--tilt)) scale(1.05);
}

.character-stickerbook .gloop-link img {
  width: 100%;
  max-height: 255px;
  object-fit: contain;
  margin: 0;
}

.character-stickerbook .sticker-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -18px;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-image: linear-gradient(90deg, #ff2b91 0%, #ff9b45 16%, #ffe66d 31%, #8bf15d 47%, #35d7e5 64%, #7046f0 82%, #ff2b91 100%);
  background-size: 220% 100%;
  box-shadow: none;
  color: transparent;
  font-size: clamp(11px, 1.1vw, 18px);
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.78);
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.9),
    0 0 9px rgba(255, 43, 145, 0.55),
    0 0 12px rgba(53, 215, 229, 0.42);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.34));
  animation: rainbow-glow 2.4s linear infinite;
}

.character-stickerbook .sticker-label small {
  display: none;
}

.character-stickerbook .gloop-link:hover .sticker-label,
.character-stickerbook .gloop-link:focus-visible .sticker-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

img,
a {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

img {
  pointer-events: none;
}
.character-button-nav a,
.nav-link,
.drawn-button {
  pointer-events: auto;
}

img,
a {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

img {
  pointer-events: none;
}
.character-button-nav a,
.nav-link,
.drawn-button {
  pointer-events: auto;
}

@media (max-width: 860px) {
  .gooeygarage-home .site-strip,
  .character-stickerbook .site-strip {
    top: 14px;
    left: 18px;
    transform: scale(0.84);
    transform-origin: top left;
  }

  .stickerbook-field {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 520px) {
  .gooeygarage-home .site-strip,
  .character-stickerbook .site-strip {
    top: 10px;
    left: 12px;
    transform: scale(0.68);
  }

  .stickerbook-scene {
    padding-top: 104px;
  }

  .stickerbook-field {
    grid-template-columns: 1fr;
  }
}

.character-detail.has-profile-side-decor .profile-side-decor {
  --side-sticker-scale: 1 !important;
}

/* TEMP PERFORMANCE TEST */

* {
  animation: none !important;
}

img {
  filter: none !important;
}

::-webkit-scrollbar-thumb {
  animation: none !important;
}
