:root {
  --ink: #22162b;
  --paper: #fff7df;
  --paper-deep: #f1dfb4;
  --purple: #3c185c;
  --violet: #6d2a80;
  --pink: #dc4f96;
  --rose: #8e254f;
  --green: #236b52;
  --mint: #80d29c;
  --blue: #3569a5;
  --sky: #8bc8df;
  --gold: #f1c13f;
  --orange: #e86e32;
  --shadow: rgba(26, 13, 36, .35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,.1) 2px, transparent 3px) 0 0 / 24px 24px,
    linear-gradient(135deg, #241233 25%, #35154e 25%, #35154e 50%, #241233 50%, #241233 75%, #35154e 75%) 0 0 / 48px 48px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

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

a {
  color: #6f1558;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #c51b72;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px dashed var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  padding: .7rem 1rem;
  color: #fff;
  background: var(--purple);
  border: 3px double #fff;
}

.skip-link:focus {
  transform: none;
}

.wallpaper-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background:
    radial-gradient(circle at 10% 15%, var(--gold) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 24%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 67% 72%, var(--pink) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 81%, #fff 0 1px, transparent 2px);
  background-size: 170px 190px, 230px 210px, 290px 250px, 310px 280px;
}

.page-curtain {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 44px;
  z-index: 9;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #e5b92f 0 7px, #7a244e 7px 14px);
  border-inline: 5px ridge #f6d75d;
  box-shadow: 0 0 14px #130b1c;
}

.page-curtain--left { left: 0; }
.page-curtain--right { right: 0; }

.masthead {
  width: min(1300px, calc(100% - 72px));
  margin: 20px auto 0;
  border: 5px ridge #f3cf59;
  box-shadow: 0 14px 32px rgba(0,0,0,.48);
  background: #f9e6ae;
}

.ticker {
  overflow: hidden;
  color: #fff9bd;
  background: #471b67;
  border-bottom: 3px double #f6ce4b;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ticker__track {
  display: inline-block;
  min-width: max-content;
  padding: 5px 0;
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-collage {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255,246,214,.93), rgba(245,210,231,.75)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(60,24,92,.07) 22px 23px);
}

.sunburst {
  position: absolute;
  inset: -45% 20% -70%;
  z-index: -1;
  opacity: .38;
  background: repeating-conic-gradient(from 10deg, var(--gold) 0 8deg, transparent 8deg 18deg);
  border-radius: 50%;
}

.hero-collage::before,
.hero-collage::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 220px;
  border: 24px double rgba(106, 38, 112, .13);
  border-radius: 50%;
}

.hero-collage::before { left: 27%; top: -110px; }
.hero-collage::after { right: 22%; bottom: -130px; }

.hero-art {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(5px 7px 0 rgba(53, 20, 67, .28));
}

.hero-art--rance {
  left: -24px;
  bottom: -255px;
  width: 500px;
  transform: rotate(-3deg);
}

.hero-art--sill {
  right: -60px;
  bottom: -300px;
  width: 410px;
  transform: rotate(2deg);
}

.hero-art--shizuka {
  right: 318px;
  bottom: -215px;
  z-index: 1;
  width: 330px;
  opacity: .94;
  transform: rotate(-4deg);
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(510px, 48%);
  margin: 0 auto;
  padding: 70px 22px 40px;
  text-align: center;
}

.hero-copy__eyebrow {
  display: inline-block;
  padding: 3px 9px;
  color: #fff;
  background: var(--rose);
  border: 2px solid #401331;
  box-shadow: 4px 4px 0 var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: rotate(-1deg);
}

.hero-copy h1 {
  margin: 18px 0 10px;
  color: #fff8de;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(70px, 8vw, 122px);
  line-height: .72;
  letter-spacing: -3px;
  -webkit-text-stroke: 3px var(--purple);
  text-shadow: 7px 7px 0 var(--pink), 11px 11px 0 var(--gold), 14px 14px 0 var(--purple);
  transform: rotate(-2deg);
}

.hero-copy h1 span {
  display: block;
}

.role-ribbon {
  display: inline-block;
  position: relative;
  margin-top: 12px;
  padding: 6px 28px;
  color: #fff;
  background: var(--green);
  border: 3px double #fff1a6;
  box-shadow: 5px 5px 0 rgba(60,24,92,.7);
  font-family: Georgia, serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 700;
  transform: rotate(1.5deg);
}

.hero-intro {
  max-width: 420px;
  margin: 20px auto 14px;
  padding: 8px 10px;
  color: #3d2145;
  background: rgba(255,255,255,.74);
  border-block: 2px dotted var(--pink);
  font-family: Georgia, serif;
  font-size: 16px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.hero-links a,
.hero-links button {
  padding: 4px 9px;
  color: #26142e;
  background: #fff6c7;
  border: 2px outset #a05874;
  box-shadow: 2px 2px 0 rgba(0,0,0,.22);
  cursor: pointer;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.hero-links a:hover,
.hero-links button:hover {
  color: #fff;
  background: var(--pink);
}

.hero-stamp {
  position: absolute;
  z-index: 5;
  left: 33%;
  bottom: 28px;
  display: grid;
  width: 120px;
  height: 120px;
  place-content: center;
  color: rgba(123, 33, 68, .74);
  border: 4px double currentColor;
  border-radius: 50%;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(10deg);
}

.hero-stamp span { font-size: 9px; letter-spacing: 2px; }
.hero-stamp strong { font-family: Georgia, serif; font-size: 16px; }

.sparkle {
  position: absolute;
  z-index: 6;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--rose);
  animation: twinkle 2.6s steps(2) infinite;
}

.sparkle--one { top: 30px; left: 38%; font-size: 48px; }
.sparkle--two { top: 110px; right: 31%; font-size: 34px; animation-delay: -.8s; }
.sparkle--three { bottom: 35px; right: 36%; font-size: 24px; animation-delay: -1.4s; }

@keyframes twinkle {
  50% { transform: scale(.6) rotate(20deg); opacity: .5; }
}

.main-nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: linear-gradient(#5b2474, #371448);
  border-top: 3px ridge #f3cf59;
  text-align: center;
}

.main-nav a {
  display: block;
  padding: 7px 16px;
  color: #fff5bb;
  border: 1px solid transparent;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #30133d;
  background: var(--gold);
  border: 1px outset #fff1a4;
}

.site-grid {
  display: grid;
  grid-template-columns: 215px minmax(0, 820px) 205px;
  gap: 16px;
  align-items: start;
  width: min(1270px, calc(100% - 86px));
  margin: 18px auto 60px;
}

.sidebar {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 14px;
}

.mini-window,
.paper-window {
  background: var(--paper);
  border: 4px ridge #e9bd49;
  box-shadow: 6px 7px 0 rgba(24, 8, 35, .35);
}

.mini-window {
  font-size: 12px;
}

.mini-window__title {
  padding: 4px 7px;
  color: #fff9c9;
  background: var(--purple);
  border-bottom: 2px solid #dcae2e;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.mini-window > p,
.mini-window > dl,
.mini-window > .side-links,
.mini-window > .aldo-button,
.mini-window > .counter {
  margin-inline: 10px;
}

.profile-sprite-wrap {
  margin: 10px;
  padding: 3px;
  background:
    linear-gradient(45deg, #f6c935 25%, transparent 25%, transparent 75%, #f6c935 75%) 0 0 / 12px 12px,
    #8fc7ac;
  border: 2px inset #5a2b6c;
}

.profile-sprite {
  width: 100%;
  height: 112px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #fff9df;
}

.welcome-box p { text-align: center; }
.tiny-note { color: #695d6d; font-size: 10px; }

.side-links {
  display: grid;
  padding-block: 8px;
}

.side-links a {
  padding: 6px;
  border-bottom: 1px dotted #b17d8e;
  font-weight: 800;
  text-decoration: none;
}

.status-light {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  background: #43ae5d;
  border: 1px solid #174e25;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(67,174,93,.18);
  animation: blink 1.8s steps(2) infinite;
}

@keyframes blink { 50% { opacity: .25; } }

.status-message {
  padding: 7px;
  background: #ffe9f1;
  border-left: 4px solid var(--pink);
  font-family: Georgia, serif;
  font-style: italic;
}

.tiny-button {
  display: block;
  margin: 8px auto;
  padding: 4px 7px;
  color: #fff;
  background: var(--rose);
  border: 2px outset #f3a0bf;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.fortune {
  min-height: 43px;
  color: var(--green);
  text-align: center;
  font-weight: 800;
}

.scene-card {
  padding: 7px 7px 20px;
  color: #342039;
  background: #fff5d8;
  border: 1px solid #a2775e;
  box-shadow: 5px 7px 0 var(--shadow);
  text-align: center;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
}

.scene-card--tilted { transform: rotate(-2deg); }
.scene-card img { margin-bottom: 7px; border: 1px solid #694550; }

.counter-box { text-align: center; }
.counter {
  margin-top: 12px;
  padding: 4px;
  color: #ffd83b;
  background: #19111f;
  border: 3px inset #7f687c;
  font-family: "Courier New", monospace;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 4px;
}

main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.paper-window {
  position: relative;
  scroll-margin-top: 20px;
}

.paper-window::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px dashed rgba(97, 51, 91, .28);
}

.window-heading {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 7px 13px;
  color: #fff;
  border-bottom: 3px double #fff4a9;
  box-shadow: inset 0 -4px rgba(0,0,0,.12);
  font-family: Georgia, serif;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.45);
}

.window-heading--pink { background: var(--pink); }
.window-heading--green { background: var(--green); }
.window-heading--purple { background: var(--purple); }
.window-heading--blue { background: var(--blue); }
.window-doodads { font-size: 11px; letter-spacing: 3px; }

.paper-window__body {
  position: relative;
  z-index: 1;
  padding: 26px 28px;
  background:
    linear-gradient(rgba(255,250,229,.94), rgba(255,247,220,.94)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(97,52,108,.09) 25px 26px);
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  align-items: center;
}

.intro-layout p {
  font-family: Georgia, serif;
  font-size: 17px;
}

.dropcap::first-letter {
  float: left;
  margin: 7px 7px 0 0;
  color: var(--rose);
  font-size: 62px;
  font-weight: 900;
  line-height: .7;
}

.contact-scraps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.contact-scraps > * {
  padding: 4px 8px;
  color: #fff;
  background: var(--violet);
  border: 1px dashed #fff;
  box-shadow: 3px 3px 0 var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transform: rotate(-1deg);
}

.contact-scraps > *:nth-child(even) { background: var(--green); transform: rotate(1deg); }

.taped-photo {
  position: relative;
  margin: 0;
  padding: 8px 8px 24px;
  background: #fff;
  border: 1px solid #8b7170;
  box-shadow: 8px 9px 0 rgba(68,31,70,.22);
  transform: rotate(2deg);
}

.taped-photo::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 30%;
  width: 95px;
  height: 28px;
  opacity: .75;
  background: #edd17f;
  transform: rotate(-4deg);
}

.taped-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.taped-photo figcaption { margin-top: 7px; font: italic 11px Georgia, serif; text-align: center; }

.ribbon-divider {
  display: flex;
  justify-content: space-around;
  padding: 3px 10px;
  color: #fff4a4;
  background: var(--rose);
  border: 3px ridge #f3ca4f;
  box-shadow: 4px 5px 0 rgba(0,0,0,.28);
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 20px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inventory-item {
  position: relative;
  min-height: 116px;
  padding: 16px 14px 12px 58px;
  background: #fffdf2;
  border: 2px solid #603357;
  box-shadow: inset 4px 4px #efd99b, 4px 4px 0 rgba(65,30,67,.18);
}

.inventory-item:nth-child(3n+2) { transform: rotate(.8deg); }
.inventory-item:nth-child(3n+3) { transform: rotate(-.6deg); }

.inventory-item__number {
  position: absolute;
  top: 18px;
  left: 11px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border: 2px solid var(--purple);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 900;
}

.inventory-item:nth-child(even) .inventory-item__number { background: var(--green); }
.inventory-item h3 { margin: 0 0 5px; color: var(--purple); font-family: Georgia, serif; font-size: 17px; }
.inventory-item p { margin: 0; font-size: 12px; }

.inventory-guardian {
  position: relative;
  align-self: end;
  min-height: 445px;
  overflow: hidden;
  background: linear-gradient(180deg, #d6ebf7, #9fc0dc);
  border: 4px double #3c4f78;
  box-shadow: 5px 5px 0 var(--gold);
}

.inventory-guardian img {
  position: absolute;
  bottom: -72px;
  left: 50%;
  width: 235px;
  max-width: none;
  transform: translateX(-50%);
}

.inventory-guardian span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 5px;
  color: #fff;
  background: rgba(42,29,64,.8);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.button-wall {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0 20px 22px;
}

.web-button {
  display: grid;
  width: 88px;
  height: 31px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border: 2px outset rgba(255,255,255,.8);
  box-shadow: 2px 2px 0 rgba(0,0,0,.32);
  font: 900 9px/1 "Arial Black", sans-serif;
  letter-spacing: -.2px;
  text-align: center;
  text-shadow: 1px 1px #000;
}

.web-button--php { background: repeating-linear-gradient(45deg, #7561a8 0 5px, #493c76 5px 10px); }
.web-button--laravel { background: linear-gradient(#fc6c5b, #9f211e); }
.web-button--postgres { background: linear-gradient(90deg, #21487f 50%, #3870a8 50%); }
.web-button--queue { color: #3d2642; background: repeating-radial-gradient(circle, #ffe66b 0 2px, #f08c4b 3px 6px); text-shadow: none; }
.web-button--linux { background: #121212; }
.web-button--git { background: repeating-linear-gradient(-45deg, #e84925 0 7px, #f9dfc4 7px 14px); }

.quest-list { display: grid; gap: 18px; }

.quest-card {
  overflow: hidden;
  background: #fffdf4;
  border: 3px solid #4b244f;
  box-shadow: 5px 5px 0 #d7b347;
}

.quest-card summary {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.quest-card summary::-webkit-details-marker { display: none; }
.quest-card--gold summary { background: #8a5c14; }
.quest-card--rose summary { background: var(--rose); }
.quest-card--blue summary { background: var(--blue); }

.quest-marker {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #492149;
  background: var(--gold);
  border: 3px double #fff5c1;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 900;
}

.quest-title strong,
.quest-title small { display: block; }
.quest-title strong { font: 800 19px Georgia, serif; }
.quest-title small { font-size: 11px; }
.quest-card time { font-size: 11px; font-weight: 800; }

.quest-content {
  position: relative;
  padding: 22px 24px 20px;
  background:
    linear-gradient(90deg, transparent 32px, rgba(213,90,115,.22) 32px 34px, transparent 34px),
    repeating-linear-gradient(0deg, #fffdf4 0 27px, #e0d7be 27px 28px);
}

.quest-content ul { margin: 10px 0 0; padding-left: 26px; }
.quest-content li { margin-bottom: 8px; padding-left: 4px; font-size: 13px; }
.quest-content li::marker { color: var(--pink); content: "✦  "; }

.quest-subhead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 18px;
  padding: 8px 9px;
  background: rgba(246,224,165,.82);
  border: 2px solid #78513e;
}

.quest-subhead--second { margin-top: 24px; }
.quest-subhead h3 { margin: 0; font: 800 16px Georgia, serif; }
.quest-subhead span { font-size: 10px; font-style: italic; }

.quest-character {
  position: absolute;
  right: 7px;
  bottom: 4px;
  width: 88px;
  opacity: .22;
  pointer-events: none;
}

.quest-content--with-art { min-height: 315px; padding-right: 250px; }
.quest-figure {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 235px;
  max-height: 310px;
  object-fit: contain;
  object-position: bottom;
}

.short-quest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
}

.short-quest__art {
  width: 145px;
  max-height: 155px;
  object-fit: contain;
}

.project-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: center;
}

.project-kicker {
  display: inline-block;
  margin: 0;
  padding: 3px 6px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.project-copy h2 { margin: 10px 0; font: 900 34px Georgia, serif; }
.project-copy h2 a { color: var(--rose); text-decoration-style: wavy; }
.project-copy p,
.project-copy li { font-family: Georgia, serif; }

.big-link {
  display: inline-block;
  padding: 7px 14px;
  color: #fff;
  background: var(--rose);
  border: 3px outset #f7adc9;
  box-shadow: 4px 4px 0 var(--gold);
  font-weight: 900;
  text-decoration: none;
  transform: rotate(-1deg);
}

.project-art {
  padding: 8px 8px 24px;
  background: #fff;
  border: 1px solid #765b65;
  box-shadow: 7px 8px 0 rgba(55,22,66,.25);
  transform: rotate(2deg);
}

.project-art img { aspect-ratio: 4 / 3; object-fit: cover; }
.project-art__caption { display: block; margin-top: 6px; font: italic 10px Georgia, serif; text-align: center; }

.gallery-note {
  margin-top: 0;
  font-family: Georgia, serif;
  font-style: italic;
  text-align: center;
}

.image-drawer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.image-drawer button {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 0;
  background: #24152f;
  border: 3px outset #e4bd48;
  box-shadow: 5px 5px 0 rgba(60, 24, 92, .24);
  cursor: zoom-in;
}

.image-drawer button:nth-child(4n+2) { transform: rotate(1.5deg); }
.image-drawer button:nth-child(4n+3) { transform: rotate(-1.5deg); }
.image-drawer button:nth-child(6) { grid-row: span 2; aspect-ratio: auto; }
.image-drawer button::after {
  content: attr(data-label);
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 7px;
  color: #fff8dc;
  background: rgba(60, 24, 92, .88);
  border: 1px solid var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.image-drawer img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.image-drawer button:hover img { transform: scale(1.12); }

.contact-window {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.2) 0 4px, transparent 5px) 0 0 / 31px 31px,
    linear-gradient(135deg, var(--rose), var(--purple));
  border: 6px ridge var(--gold);
  box-shadow: 7px 8px 0 rgba(0,0,0,.34);
}

.contact-window__sill {
  position: absolute;
  left: -15px;
  bottom: -390px;
  width: 430px;
  filter: drop-shadow(5px 5px 0 rgba(0,0,0,.25));
}

.contact-window__copy {
  position: relative;
  z-index: 2;
  width: 58%;
  margin-left: auto;
  padding: 70px 36px 40px;
}

.contact-window__overline { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 4px; }
.contact-window h2 { margin: 8px 0; font: 900 42px/.95 Georgia, serif; }
.contact-window p { font-family: Georgia, serif; }
.contact-window__copy a,
.contact-window__copy span { display: block; margin-top: 10px; color: #fff; font-weight: 800; }

.portrait-stack { display: grid; gap: 12px; }
.portrait-card {
  margin: 0;
  padding: 6px 6px 22px;
  overflow: hidden;
  background: #fff9dc;
  border: 1px solid #83586e;
  box-shadow: 6px 7px 0 var(--shadow);
}

.portrait-card--one { transform: rotate(2deg); }
.portrait-card--two { transform: rotate(-2deg); }
.portrait-card img { width: 100%; height: 230px; object-fit: cover; object-position: top; background: #f4d6e6; }
.portrait-card figcaption { margin-top: 5px; font: italic 10px Georgia, serif; text-align: center; }

.now-box dl { padding-block: 5px; }
.now-box dt { margin-top: 6px; color: var(--rose); font-family: Georgia, serif; font-weight: 900; }
.now-box dd { margin: 0 0 6px; }

.sticker {
  margin: 8px auto;
  text-align: center;
  transform: rotate(7deg);
}

.sticker--hire {
  display: grid;
  width: 148px;
  height: 148px;
  place-content: center;
  color: #552146;
  background: var(--gold);
  border: 5px double var(--rose);
  border-radius: 50%;
  box-shadow: 5px 6px 0 rgba(0,0,0,.34);
  font-size: 10px;
  letter-spacing: 2px;
}

.sticker--hire strong { font: 900 18px/.95 Georgia, serif; }

.aldo-button {
  display: grid;
  width: 88px;
  height: 31px;
  margin-top: 12px;
  place-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 30%, #ffd65a 0 2px, transparent 3px),
    repeating-linear-gradient(135deg, #4a1d62 0 7px, #d94e8f 7px 14px);
  border: 2px outset #fff0a8;
  text-align: center;
  text-shadow: 1px 1px #000;
}

.aldo-button span { font: 900 12px/1 "Arial Black", sans-serif; }
.aldo-button small { font-size: 6px; }
.link-box > p { font-size: 9px; text-align: center; }

.side-character {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(5px 7px 0 rgba(0,0,0,.32));
}

.site-footer {
  position: relative;
  z-index: 10;
  width: min(1300px, calc(100% - 72px));
  margin: 0 auto 24px;
  overflow: hidden;
  color: #fff5bd;
  background: #27102f;
  border: 4px ridge var(--gold);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  text-align: center;
}

.footer-marquee {
  overflow: hidden;
  padding: 4px;
  color: #3c174d;
  background: var(--gold);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
}

.footer-marquee span {
  display: inline-block;
  min-width: 100%;
  animation: footer-slide 16s linear infinite alternate;
}

@keyframes footer-slide { to { transform: translateX(20%); } }
.site-footer p { margin: 9px; font-size: 11px; }
.site-footer a { color: #ffd358; }

.lightbox {
  width: min(860px, 92vw);
  max-height: 90vh;
  padding: 15px;
  background: #fff8dd;
  border: 7px ridge var(--gold);
  box-shadow: 0 20px 60px #000;
}

.lightbox::backdrop { background: rgba(24,9,33,.86); backdrop-filter: blur(3px); }
.lightbox img { width: 100%; max-height: calc(90vh - 50px); object-fit: contain; }
.lightbox__close {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--rose);
  border: 2px outset #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cursor-spark {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  color: var(--gold);
  text-shadow: 1px 1px var(--rose);
  animation: cursor-fall .75s ease-out forwards;
}

@keyframes cursor-fall {
  to { transform: translateY(22px) rotate(100deg) scale(.2); opacity: 0; }
}

@media (max-width: 1120px) {
  .site-grid { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar--right { position: static; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .portrait-stack { grid-template-columns: 1fr 1fr; }
  .side-character { max-height: 260px; }
  .hero-art--rance { left: -75px; opacity: .8; }
  .hero-art--sill { right: -95px; opacity: .8; }
  .hero-art--shizuka { display: none; }
  .hero-copy { width: 56%; }
}

@media (max-width: 820px) {
  .page-curtain { display: none; }
  .masthead,
  .site-footer { width: calc(100% - 20px); }
  .site-grid { grid-template-columns: 1fr; width: calc(100% - 20px); }
  .sidebar { position: static; }
  .sidebar--left { grid-template-columns: repeat(2, 1fr); }
  .sidebar--right { grid-template-columns: repeat(2, 1fr); }
  .hero-collage { min-height: 620px; }
  .hero-copy { width: 100%; padding-inline: 14%; }
  .hero-art--rance { left: -90px; bottom: -325px; width: 430px; }
  .hero-art--sill { right: -125px; bottom: -150px; width: 315px; }
  .hero-stamp { display: none; }
  .main-nav { flex-wrap: wrap; }
  .intro-layout,
  .inventory-layout,
  .project-layout { grid-template-columns: 1fr; }
  .inventory-guardian { min-height: 270px; }
  .inventory-guardian img { bottom: -190px; }
  .image-drawer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .masthead { margin-top: 8px; }
  .hero-collage { min-height: 560px; }
  .hero-copy { padding: 58px 8px 20px; }
  .hero-copy h1 { font-size: 70px; -webkit-text-stroke-width: 2px; text-shadow: 4px 4px var(--pink), 7px 7px var(--gold), 9px 9px var(--purple); }
  .role-ribbon { font-size: 19px; }
  .hero-art--rance { left: -125px; bottom: -285px; width: 380px; }
  .hero-art--sill { right: -135px; bottom: -120px; width: 290px; }
  .main-nav a { padding: 5px 7px; font-size: 10px; }
  .sidebar--left,
  .sidebar--right { grid-template-columns: 1fr; }
  .sidebar--left .scene-card { display: none; }
  .paper-window__body { padding: 20px 16px; }
  .inventory-grid { grid-template-columns: 1fr; }
  .quest-card summary { grid-template-columns: 44px 1fr; }
  .quest-card time { grid-column: 2; }
  .quest-content--with-art { padding-right: 18px; padding-bottom: 215px; }
  .quest-figure { width: 185px; }
  .short-quest { min-height: 210px; }
  .image-drawer { grid-template-columns: 1fr; }
  .image-drawer button:nth-child(6) { grid-row: auto; min-height: 430px; }
  .contact-window { min-height: 510px; }
  .contact-window__sill { left: 50%; bottom: -430px; width: 390px; transform: translateX(-50%); }
  .contact-window__copy { width: 100%; padding: 30px 22px; text-align: center; }
  .contact-window h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { color: #000; background: #fff; font-size: 10pt; }
  body::before,
  .wallpaper-stars,
  .page-curtain,
  .ticker,
  .hero-art,
  .sunburst,
  .sparkle,
  .main-nav,
  .sidebar,
  .ribbon-divider,
  .button-wall,
  .inventory-guardian,
  .quest-character,
  .quest-figure,
  .short-quest__art,
  .project-art,
  .gallery-window,
  .contact-window,
  .site-footer,
  .lightbox { display: none !important; }
  .masthead,
  .site-grid { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .hero-collage { min-height: auto; overflow: visible; background: none; }
  .hero-copy { width: 100%; padding: 0 0 12pt; text-align: left; }
  .hero-copy h1 { margin: 0; color: #000; font-family: Georgia, serif; font-size: 30pt; line-height: 1; letter-spacing: 0; -webkit-text-stroke: 0; text-shadow: none; transform: none; }
  .hero-copy h1 span { display: inline; }
  .hero-copy__eyebrow,
  .role-ribbon { margin: 0; padding: 0; color: #000; background: none; border: 0; box-shadow: none; transform: none; }
  .hero-links { justify-content: flex-start; }
  .hero-links a { padding: 0; color: #000; background: none; border: 0; box-shadow: none; }
  .hero-links button { display: none; }
  main { display: block; }
  .paper-window { margin-bottom: 10pt; border: 0; box-shadow: none; break-inside: avoid; }
  .paper-window::after { display: none; }
  .window-heading { min-height: auto; padding: 3pt 0; color: #000; background: none; border-bottom: 1px solid #000; box-shadow: none; text-shadow: none; }
  .paper-window__body { padding: 7pt 0; background: none; }
  .intro-layout,
  .inventory-layout,
  .project-layout { display: block; }
  .taped-photo { display: none; }
  .inventory-grid { grid-template-columns: 1fr 1fr 1fr; gap: 4pt; }
  .inventory-item { min-height: 0; padding: 4pt; border: 1px solid #999; box-shadow: none; transform: none !important; }
  .inventory-item__number { display: none; }
  .quest-card { margin-bottom: 7pt; border: 1px solid #777; box-shadow: none; }
  .quest-card summary { grid-template-columns: 1fr auto; padding: 5pt; color: #000; background: #eee; }
  .quest-marker { display: none; }
  .quest-content { padding: 6pt 9pt; background: none; }
  .quest-content--with-art { min-height: 0; padding-right: 9pt; }
  .project-copy h2 { font-size: 20pt; }
}
