/* Iri's little room on the internet. Fonts are self-hosted so a visit never
   touches a third party. Light mode is "lights on", dark mode is "lights off". */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("../fonts/silkscreen.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #fbf7fd;
  --paper-2: #f4eaf8;
  --ink: #2b1a3d;
  --ink-2: #58466c;
  --ink-3: #7d6e8f;
  --card: #ffffff;
  --line: #eedcf2;
  --link: #8f43bd;

  --accent: #a153ce;
  --accent-deep: #8f43bd;
  --accent-soft: #f5e7fa;
  --rose: #d13a87;
  --pink: #f29bc8;
  --lilac: #c38be0;
  --lilac-deep: #8f43bd;
  --lilac-soft: #f3e6f9;
  --mint: #c4ecd9;
  --butter: #fff0b0;
  --sky: #d5e8ff;
  --peach: #ffdccb;
  --duo: linear-gradient(100deg, #a153ce, #d13a87);

  --note-ink: #3a2443;
  --paper-hand: #8f43bd;
  --paper-rule: rgba(209, 58, 135, .32);
  --shadow: 0 2px 0 rgba(90, 40, 110, .06), 0 12px 30px rgba(110, 50, 130, .12);
  --shadow-lift: 0 4px 0 rgba(90, 40, 110, .06), 0 22px 44px rgba(110, 50, 130, .18);
  --focus: #a153ce;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --wrap: 1160px;
  --gutter: 24px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #1a0f20;
  --paper-2: #24152e;
  --ink: #f2ebf7;
  --ink-2: #c3b3d1;
  --ink-3: #9b8aad;
  --card: #281a36;
  --line: rgba(210, 160, 235, .16);
  --link: #d9a6f2;
  --accent-soft: rgba(161, 83, 206, .24);
  --lilac-soft: rgba(195, 139, 224, .16);
  --duo: linear-gradient(100deg, #d9a6f2, #f29bc8);
  --shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 12px 30px rgba(0, 0, 0, .35);
  --shadow-lift: 0 4px 0 rgba(0, 0, 0, .25), 0 22px 44px rgba(0, 0, 0, .45);
  --focus: #d9a6f2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s ease, color .6s ease;
}
/* The page background: a cherry branch top-right and a few petals bottom-left
   (a crescent moon and stars at night), so the reading column stays calm. */
:root {
  --bg-glows:
    radial-gradient(1100px 650px at 0% 0%, rgba(192, 95, 189, .16), transparent 70%),
    radial-gradient(900px 650px at 100% 35%, rgba(221, 107, 164, .13), transparent 70%),
    radial-gradient(900px 600px at 25% 100%, rgba(161, 83, 206, .12), transparent 70%);
  --bg-base: #fbf7fd;
  --bg-blossom: url("../art/bg-blossom-day.svg");
  --bg-petals: url("../art/bg-petals-day.svg");
}
:root[data-theme="dark"] {
  --bg-glows:
    radial-gradient(1100px 650px at 0% 0%, rgba(192, 95, 189, .2), transparent 70%),
    radial-gradient(900px 650px at 100% 35%, rgba(221, 107, 164, .11), transparent 70%),
    radial-gradient(900px 600px at 25% 100%, rgba(161, 83, 206, .18), transparent 70%);
  --bg-base: #1a0f20;
  --bg-blossom: url("../art/bg-blossom-night.svg");
  --bg-petals: url("../art/bg-petals-night.svg");
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--bg-blossom) right 0 top 40px / min(46vw, 620px) auto no-repeat,
    var(--bg-petals) left bottom / min(40vw, 500px) auto no-repeat,
    var(--bg-glows), var(--bg-base);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px dashed var(--focus); outline-offset: 4px; border-radius: 12px; }
::selection { background: rgba(217, 107, 255, .35); }
p { margin: 0 0 1em; color: var(--ink-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -.01em; }
/* Italic letters like f lean past their box, and background-clip only paints inside it. */
h1 em, h2 em { font-style: italic; background: var(--duo); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .22em .1em .06em; margin: 0 -.16em 0 -.06em; }
strong, b { color: var(--ink); font-weight: 800; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hand { font-family: var(--hand); font-weight: 600; color: var(--accent-deep); line-height: 1.15; }
:root[data-theme="dark"] .hand { color: #ebb0ff; }
.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: .02em; }
.mark { background: linear-gradient(transparent 55%, var(--butter) 55% 90%, transparent 90%); padding: 0 .1em; color: var(--ink); }
:root[data-theme="dark"] .mark { background: linear-gradient(transparent 55%, rgba(255, 220, 120, .3) 55% 90%, transparent 90%); }
.doodle { stroke: var(--accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--card);
  border-bottom: 2px solid var(--line); box-shadow: 0 6px 24px rgba(118, 50, 150, .08);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 10px clamp(16px, 3vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); justify-self: start; }
.wordmark { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 2rem; line-height: 1; color: var(--ink); position: relative; padding-top: 2px; }
.wordmark .dot { color: var(--pink); font-style: normal; font-size: .5em; vertical-align: super; margin-left: 1px; display: inline-block; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .wordmark .dot { transform: rotate(180deg) scale(1.3); }
.brand small { display: block; font-weight: 800; font-size: .8rem; color: var(--ink-2); line-height: 1.25; }
.nav { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper-2); border: 2px solid var(--line); }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-2);
  font-weight: 800; font-size: .97rem; padding: 8px 17px; border-radius: 999px; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav a .icon { width: 18px; height: 18px; color: var(--accent); }
.nav a:hover { background: var(--accent-soft); color: var(--ink); transform: translateY(-1px); }
.nav a[aria-current] { background: var(--ink); color: var(--paper); }
.nav a[aria-current] .icon { color: #e586fc; }
.lights { justify-self: end; }
.lights {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .85rem; color: var(--ink); background: var(--lilac-soft); border: 2px solid var(--line);
}
.lights .knob { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); color: var(--lilac-deep); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.lights .knob .icon { width: 17px; height: 17px; }
.lights:hover .knob { transform: rotate(-25deg); }
.lights .i-sun, :root[data-theme="dark"] .lights .i-moon { display: none; }
:root[data-theme="dark"] .lights .i-sun { display: block; }
:root[data-theme="dark"] .lights .knob { color: #ffd27a; }

/* Buttons, stickers, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: .98rem; text-decoration: none; letter-spacing: .01em;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn .icon { width: 19px; height: 19px; }
.btn-main { background: linear-gradient(100deg, #a153ce, #d13a87); color: #fff; box-shadow: 0 5px 0 #7a2a8f; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #7a2a8f; }
.btn-main:active { transform: translateY(4px); box-shadow: 0 1px 0 #7a2a8f; }
/* Plain buttons are little paper tabs: cream with plum ink in both themes, like the rest of the paper. */
.btn-soft { background: #fffdf7; color: #3a2443; border-color: rgba(143, 67, 189, .26); box-shadow: 0 4px 0 rgba(143, 67, 189, .26); }
.btn-soft .icon { color: #8f43bd; }
.btn-soft:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(143, 67, 189, .3); }
.btn-soft:active { transform: translateY(4px); box-shadow: 0 0 0 rgba(143, 67, 189, .3); }
:root[data-theme="dark"] .btn-soft { filter: brightness(.92); }
/* A luggage-tag link written by hand, taped to the page. */
.gh-tag {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px 13px; text-decoration: none;
  background: #fffdf7; color: #8f43bd; border-radius: 4px 4px 16px 4px; box-shadow: var(--shadow); transform: rotate(2.5deg);
  font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.1; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.gh-tag:hover { transform: rotate(0deg) translateY(-3px); }
.gh-tag .icon { width: 24px; height: 24px; color: #3a2443; }
:root[data-theme="dark"] .gh-tag { filter: brightness(.92); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.sticker {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .8rem; letter-spacing: .02em;
  padding: 5px 13px; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(118, 50, 150, .18);
  color: #3a1a4a; background: #ecbcff; transform: rotate(var(--r, -2deg));
}
.sticker.lilac { background: #f4d8ff; } .sticker.pink { background: #ffc6e1; } .sticker.mint { background: var(--mint); } .sticker.butter { background: var(--butter); }
.sticker.sky { background: var(--sky); } .sticker.peach { background: var(--peach); }
.tape { position: relative; }
.tape::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; z-index: 2;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .5) 0 5px, transparent 5px 10px), var(--tape, rgba(217, 107, 255, .5));
  transform: rotate(var(--tr, -3deg)); border-radius: 2px; opacity: .9;
}

/* Sticky notes */
.note {
  position: relative; padding: 26px 22px 20px; color: var(--note-ink); background: var(--butter);
  box-shadow: 0 10px 22px rgba(120, 60, 100, .14); transform: rotate(var(--r, -1.5deg));
  border-radius: 3px 3px 18px 3px; transition: transform .25s ease;
}
.note:hover { transform: rotate(0deg) translateY(-4px); }
.note p { color: var(--note-ink); margin: 0; }
.note .hand { color: var(--paper-hand); font-size: 1.5rem; display: block; margin-bottom: 4px; }
.note.pink { background: #ffdcee; } .note.mint { background: #d3f2e3; } .note.lilac { background: #f5dcfd; } .note.sky { background: #d9eaff; } .note.peach { background: #ffe1d3; }
:root[data-theme="dark"] .note { filter: brightness(.9) saturate(.95); }
/* Paper stays paper at night, so the writing on it stays dark. */
:root[data-theme="dark"] :is(.letter, .take, .page-paper, .note, .notebook, .flip-back, .env-letter, .sheet, .tot, .deck, .nail-stand, .paper-list, .vpanel, .lightbox) .hand { color: var(--paper-hand); }
:is(.letter, .page-paper, .note, .notebook, .flip-back, .env-letter) :is(strong, b) { color: #3a1a4a; }
:is(.letter, .page-paper, .note, .notebook, .flip-back, .env-letter) a { color: #af46c0; }
.pin::after { content: ""; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, #cc4dff 22% 100%); box-shadow: 0 2px 3px rgba(0, 0, 0, .25); }

/* Section heads */
.section { padding-top: 70px; }
.head { margin-bottom: 26px; }
.head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.head .hand { font-size: 1.55rem; display: inline-block; transform: rotate(-2deg); }
.head p { margin: 8px 0 0; max-width: 40em; }

/* Page intro */
.page { padding-top: 40px; }
.intro { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 34px; }
.intro h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
.intro .lede { font-size: 1.12rem; max-width: 34em; margin: 14px 0 0; }
.intro .hand { font-size: 1.6rem; display: inline-block; transform: rotate(-3deg); margin-bottom: 6px; }

/* Home: a calm introduction first, then the room */
body.home::before { background: var(--bg-glows), var(--bg-base); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px 64px; align-items: center; padding-top: clamp(40px, 7vh, 84px); padding-bottom: clamp(34px, 5.5vh, 60px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--link); }
.eyebrow::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: var(--duo); }
.hero h1 { font-size: clamp(3.1rem, 7.2vw, 5.8rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.hero h1 .dot { color: var(--rose); }
:root[data-theme="dark"] .hero h1 .dot { color: var(--pink); }
.hero-aka { margin: 14px 0 0; font-size: .92rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); }
.hero-sub { margin: 22px 0 0; max-width: 19em; font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.3; color: var(--ink-2); }
.hero .btn-row { margin-top: 30px; }
.hero-text { font-size: 1.06rem; color: var(--ink-2); }
.hero-text p { margin: 0 0 16px; max-width: 36em; }
.hero-work { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hero-work li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.5; }
.hero-work a { font-family: var(--display); font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.hero-work a:hover, .hero-work a:focus-visible { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.hero > * { animation: hero-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero > :nth-child(2) { animation-delay: .12s; }
.room-intro { text-align: center; padding-bottom: 24px; }
.room-intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.room-intro p { max-width: 34em; margin: 6px auto 0; color: var(--ink-2); }
.room-notes { display: grid; grid-template-columns: 1.25fr .75fr; gap: 34px; align-items: center; padding-top: 34px; }
.room-notes .secrets { display: inline-block; font-size: 1.6rem; transform: rotate(-2deg); }
.room-notes p { max-width: 36em; margin: 8px 0 0; color: var(--ink-2); }
.room-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.room-tools .swipe { font-size: 1.45rem; }
.aka { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.status {
  position: relative; border-radius: 4px 4px 18px 4px; padding: 28px 22px 22px; color: var(--note-ink);
  background: linear-gradient(transparent 52px, rgba(209, 58, 135, .35) 52px 54px, transparent 54px), #fffdf7;
  box-shadow: var(--shadow-lift); transform: rotate(1.5deg);
}
.status .pixel { font-size: .72rem; color: var(--paper-hand); display: flex; justify-content: space-between; gap: 10px; }
.status .online { color: #2f9a6c; }
.status .online::before { content: "●"; margin-right: 5px; animation: blink 1.6s steps(2) 6; }
.status .who { font-family: var(--display); font-style: italic; font-size: 1.9rem; color: #2b1a3d; margin: 14px 0 2px; line-height: 1.1; }
.status .doing { font-size: .95rem; color: var(--note-ink); margin: 0; min-height: 3em; }
.status .doing b { color: var(--paper-hand); }
.hearts { display: flex; gap: 4px; margin-top: 12px; font-size: 1.1rem; color: #e0619c; }
.hearts span:last-child { opacity: .35; }
.status .reroll { position: absolute; right: 14px; bottom: 12px; font: inherit; font-size: .72rem; font-weight: 800; color: var(--paper-hand); background: none; border: 0; cursor: pointer; text-decoration: underline dotted; }
:root[data-theme="dark"] .status { filter: brightness(.92); }

.room-band { position: relative; margin-top: 0; background: #f6e4fd; border-top: 3px solid var(--card); border-bottom: 3px solid var(--card); box-shadow: 0 18px 50px rgba(118, 50, 150, .18); }
.room-scroll { height: clamp(540px, 46vw, 960px); overflow: hidden; }
.room { display: block; width: 100%; height: 100%; }
.room * { transition: opacity .9s ease; }
.room .night { opacity: 0; }
.room .day { opacity: 1; }
:root[data-theme="dark"] .room .night { opacity: 1; }
:root[data-theme="dark"] .room .day { opacity: 0; }
.room .tint { opacity: 0; mix-blend-mode: multiply; pointer-events: none; }
:root[data-theme="dark"] .room .tint { opacity: 1; }
.room .lift { transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); transform-box: fill-box; transform-origin: center bottom; }
.room .hit { cursor: pointer; outline: none; }
.room .hit[data-for="cat"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.room .hit-area { fill: transparent; stroke: transparent; stroke-width: 4; stroke-dasharray: 10 8; rx: 18; }
.room .hit:focus-visible .hit-area { stroke: #cc4dff; }
.room .tag { opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .3s cubic-bezier(.3, 1.5, .5, 1); transform-box: fill-box; pointer-events: none; }
.room .hit:hover .tag, .room .hit:focus-visible .tag, .room.show-tags .tag { opacity: 1; transform: none; }
.room .tag rect { fill: #fff; stroke: #d88bf5; stroke-width: 2.5; }
.room .tag text { font-family: var(--hand); font-weight: 700; font-size: 30px; fill: #9931c4; }
.room .tag path { fill: #fff; stroke: #d88bf5; stroke-width: 2.5; }
.room:has(.hit[data-for="about"]:is(:hover, :focus-visible)) .obj-about,
.room:has(.hit[data-for="contact"]:is(:hover, :focus-visible)) .obj-contact,
.room:has(.hit[data-for="projects"]:is(:hover, :focus-visible)) .obj-projects,
.room:has(.hit[data-for="journal"]:is(:hover, :focus-visible)) .obj-journal,
.room:has(.hit[data-for="world"]:is(:hover, :focus-visible)) .obj-world,
.room:has(.hit[data-for="lamp"]:is(:hover, :focus-visible)) .obj-lamp,
.room:has(.hit[data-for="music"]:is(:hover, :focus-visible)) .obj-music,
.room:has(.hit[data-for="perfume"]:is(:hover, :focus-visible)) .obj-perfume,
.room:has(.hit[data-for="nails"]:is(:hover, :focus-visible)) .obj-nails,
.room:has(.hit[data-for="hair"]:is(:hover, :focus-visible)) .obj-hair,
.room:has(.hit[data-for="games"]:is(:hover, :focus-visible)) .obj-games,
.room:has(.hit[data-for="drinks"]:is(:hover, :focus-visible)) .obj-drinks { transform: translateY(-7px); }
.room .bubble { opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.room .bubble.on { opacity: 1; }
.room .bubble text { font-family: var(--hand); font-weight: 700; font-size: 28px; fill: #a74fbf; }
.room .star-shoot { opacity: 0; }
.room .star-shoot.go { animation: shoot 1.1s ease-out 1; }
.room .zz { animation: zz 3.2s ease-in-out 4; transform-box: fill-box; }
.room .cat-head, .room .cat-body, .room .cat-paws { transform-box: fill-box; transform-origin: center bottom; transition: transform .25s ease; }
.room .cat-tail { transform-box: fill-box; transform-origin: left bottom; }
.room .cat-eyes-happy, .room .cat-smile, .room .cat-purr-lines { opacity: 0; transition: opacity .15s ease; }
.room .cat-eyes-sleep { transition: opacity .15s ease; }
.room .cat-eyes-happy { transform-box: fill-box; transform-origin: center; }
.room.cat-is-purring .cat-eyes-sleep, .room.cat-is-purring .zz, .room.cat-is-purring .hit[data-for="cat"] .tag { opacity: 0; }
.room.cat-is-purring .zz { animation: none; }
.room.cat-is-purring .cat-eyes-happy, .room.cat-is-purring .cat-smile { opacity: 1; }
.room.cat-is-purring .cat-purr-lines { opacity: .7; }
.room.cat-is-purring .cat-head { transform: translateY(-2px) rotate(-2deg); }
.room.cat-is-purring .cat-paws { transform: translateX(-3px); }
.room.cat-is-cozy .cat-paws { transform: translateX(-9px); }
.room.cat-pat .cat-head { animation: cat-nuzzle .65s ease-out; }
.room.cat-pat .cat-eyes-happy { animation: cat-blink .35s ease .15s; }
.room.cat-pat .cat-tail { animation: cat-tail 1.1s ease-in-out; }
.room.cat-pat .cat-body { animation: cat-breathe 1.2s ease-in-out 2; }
.room.cat-pat .cat-purr-lines { animation: cat-purr .7s ease-in-out 2; }
@keyframes cat-nuzzle { 0%, 100% { transform: translateY(-2px) rotate(-2deg); } 45% { transform: translateY(-6px) rotate(-6deg); } }
@keyframes cat-blink { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.15); } }
@keyframes cat-tail { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-15deg); } 65% { transform: rotate(8deg); } }
@keyframes cat-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025,1.045); } }
@keyframes cat-purr { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }
.room .twinkle { animation: twinkle 2.8s ease-in-out 5; }
.tag-toggle { font: inherit; font-weight: 800; font-size: .88rem; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-decoration: underline dotted; }
.swipe { display: none; }

.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.doors.doors-with-drinks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kitchen-invitation { margin: 35px auto 10px; max-width: 720px; --r: -.7deg; }
.kitchen-invitation h2 { font-size: 1.8rem; margin-bottom: 8px; }
.kitchen-invitation a { color: #754480; text-underline-offset: 4px; }
@media (max-width: 1020px) {
  .doors.doors-with-drinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .doors.doors-with-drinks { grid-template-columns: 1fr; }
}
.door {
  position: relative; display: block; text-decoration: none; color: var(--ink); padding: 34px 18px 20px; border-radius: 18px;
  background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); transform: rotate(var(--r, -1deg));
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s ease;
}
.door::before { content: ""; position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.door:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lift); }
.door .where { font-family: var(--pixel); font-size: .64rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.door .hand { display: block; font-size: 1.75rem; margin: 2px 0 6px; }
.door p { font-size: .9rem; margin: 0; }
.door .icon { width: 30px; height: 30px; color: var(--lilac-deep); stroke-width: 1.5; margin-bottom: 6px; }
:root[data-theme="dark"] .door .icon { color: #f1b8ff; }

.board {
  position: relative; border-radius: 30px; padding: 46px 34px 40px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 9px),
    linear-gradient(140deg, #f4defd, #eecffb);
  border: 10px solid #fff; box-shadow: var(--shadow-lift);
}
:root[data-theme="dark"] .board { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 9px), linear-gradient(140deg, #4b275a, #492550); border-color: #3e2149; }
.board-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.board-notes .note { min-height: 150px; }
.promise {
  display: flex; align-items: center; gap: 18px; margin: 34px auto 0; max-width: 720px; padding: 16px 22px; border-radius: 999px;
  background: var(--card); border: 2px dashed var(--accent); color: var(--ink-2); font-weight: 700;
}
.promise .icon { width: 30px; height: 30px; color: var(--pink); }
.promise p { margin: 0; }

/* About: letter, character sheet, beliefs, laptop lid */
.letter {
  position: relative; padding: 46px 48px 36px 74px; border-radius: 6px 6px 24px 6px; color: var(--note-ink);
  background:
    linear-gradient(90deg, transparent 52px, var(--paper-rule) 52px 54px, transparent 54px),
    repeating-linear-gradient(transparent 0 33px, rgba(192, 140, 220, .28) 33px 34px),
    #fffdf7;
  background-position: 0 0, 0 3px, 0 0;
  box-shadow: var(--shadow-lift); transform: rotate(-.8deg); line-height: 34px; font-size: 1.05rem;
}
.letter p { color: var(--note-ink); margin: 0 0 34px; }
.letter .hand { color: var(--paper-hand); font-size: 1.9rem; line-height: 34px; }
.letter .sign { font-size: 2.3rem; display: block; text-align: right; margin-top: -6px; }
:root[data-theme="dark"] .letter { filter: brightness(.92); }

/* A printed RPG character sheet on graph paper. Like the letter, it stays paper at night. */
.sheet {
  position: relative; border-radius: 6px 6px 22px 6px; padding: 34px 30px 30px; color: var(--note-ink);
  background:
    linear-gradient(rgba(161, 83, 206, .08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(161, 83, 206, .08) 1px, transparent 1px) 0 0 / 24px 24px,
    #fffdf7;
  box-shadow: var(--shadow-lift); transform: rotate(-.4deg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px;
}
:root[data-theme="dark"] .sheet { filter: brightness(.92); }
.sheet h3 { font-family: var(--pixel); font-weight: 400; font-size: .8rem; letter-spacing: .06em; color: var(--paper-hand); text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sheet h3::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(143, 67, 189, .45) 0 6px, transparent 6px 10px); }
.sheet p, .sheet li { color: var(--note-ink); }
.sheet-id { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding-bottom: 18px; border-bottom: 2px solid rgba(143, 67, 189, .22); }
.portrait { width: 92px; height: 92px; flex: none; border-radius: 4px; background: linear-gradient(140deg, #dca2f2, #a153ce); display: grid; place-items: center; box-shadow: 0 0 0 7px #fff, 0 8px 18px rgba(110, 50, 130, .25); transform: rotate(-3deg); margin: 6px; }
.portrait svg { width: 62px; height: 62px; }
.sheet-id .name { font-family: var(--display); font-style: italic; font-size: 2.3rem; color: #2b1a3d; line-height: 1; }
.sheet-id .sub { font-weight: 800; font-size: .92rem; color: var(--paper-hand); margin-top: 8px; }
.lv { display: inline-block; font-family: var(--pixel); font-size: .68rem; color: #d13a87; border: 2px solid currentColor; padding: 2px 7px; border-radius: 6px; margin-left: 8px; vertical-align: middle; transform: rotate(-4deg); }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.facts-list li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: .95rem; }
.facts-list span:first-child { font-family: var(--pixel); font-size: .68rem; color: var(--paper-hand); padding-top: 4px; text-transform: uppercase; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.stats li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .92rem; }
.stats .bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.stats .bar i { height: 11px; border-radius: 3px; border: 1.5px solid rgba(143, 67, 189, .3); }
.stats .bar i.on { background: #f29bc8; border-color: #e0619c; }
.stats .bar.lilac i.on { background: #cf9be8; border-color: #a153ce; }
.stats .bar.mint i.on { background: #9adcbc; border-color: #4fb487; }
.stats .val { font-family: var(--pixel); font-size: .68rem; color: #d13a87; }
.inventory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .75); border: 2px dashed rgba(143, 67, 189, .35); display: grid; place-items: center; position: relative; }
.slot svg { width: 58%; height: 58%; }
.slot span { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--pixel); font-size: .55rem; color: #fff; background: var(--paper-hand); padding: 1px 6px; border-radius: 5px; opacity: 0; transition: opacity .2s ease; }
.slot:hover span, .slot:focus-within span { opacity: 1; }


/* About: the girl behind the code, the people behind the pixels */
.girl { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; align-items: start; }
.girl-text { max-width: 41em; font-size: 1.08rem; }
.girl-text p { margin: 0 0 18px; }
.girl-text .girl-hi { font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 3vw, 1.95rem); line-height: 1.3; color: var(--ink); margin-bottom: 26px; }
.girl-text mark { background: linear-gradient(transparent 58%, rgba(209, 58, 135, .22) 58%); color: inherit; padding: 0 1px; }
.girl-text .girl-end { font-size: 1.75rem; line-height: 1.25; margin: 28px 0 0; }
.girl-more { display: grid; gap: 18px; position: sticky; top: 110px; }
.girl-more > .hand { font-size: 1.5rem; transform: rotate(-2deg); }
.girl-more .door { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 14px 16px 14px 12px; }
.girl-more .door::before { display: none; }
.girl-more .door img { width: 64px; height: 64px; object-fit: contain; }
.girl-more .door .hand { font-size: 1.45rem; margin: 0; }
.people { position: relative; padding: 40px 44px 34px; border-radius: 30px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); }
.people-lead { font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.3; color: var(--ink); max-width: 24em; margin: 0 0 26px; }
.people-body { columns: 2; column-gap: 46px; }
.people-body p { margin: 0 0 16px; }
.people-end { font-size: 1.9rem; text-align: right; margin: 8px 0 0; }
.rules-head { margin: 44px 0 26px; }
.rules-head h3 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.holds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.holds li { display: grid; grid-template-columns: 30px 1fr; gap: 6px 14px; align-content: start; padding: 20px 0; border-top: 1px solid var(--line); }
.holds .icon { grid-row: span 2; width: 26px; height: 26px; margin-top: 3px; color: var(--link); stroke-width: 1.6; }
.holds h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.holds p { margin: 0; color: var(--ink-2); }

.beliefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.belief { position: relative; padding: 32px 26px 26px; border-radius: 26px; text-align: center; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); }
.belief .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--accent); stroke-width: 1.4; }
.belief p { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.28rem; line-height: 1.4; color: var(--ink); }

.lid-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.lid {
  position: relative; min-height: 340px; border-radius: 26px; padding: 44px 30px;
  background: linear-gradient(150deg, #f2e0f7, #e7cbef); border: 3px solid #fff; box-shadow: var(--shadow-lift);
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px 10px; overflow: hidden;
}
:root[data-theme="dark"] .lid { background: linear-gradient(150deg, #5b386a, #4a2a58); border-color: #6d4380; }
.lid::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 62px; margin: -31px 0 0 -35px; opacity: .22; background: radial-gradient(circle at 30% 30%, #fff 0 20%, transparent 21%), var(--lilac-deep); clip-path: path("M35 60 C14 46 0 32 0 18 C0 7 8 0 18 0 C26 0 31 5 35 11 C39 5 44 0 52 0 C62 0 70 7 70 18 C70 32 56 46 35 60Z"); }
.lid .sticker { font-size: .95rem; padding: 7px 16px; }
.lid .sticker.big { font-size: 1.15rem; padding: 10px 20px; }
.lid .sticker.star { border-radius: 14px; }

/* My World */
.collection { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.flip { display: block; width: 100%; perspective: 900px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: center; aspect-ratio: 4 / 5; }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; box-shadow: var(--shadow); border: 2px solid var(--line); }
.flip-front { background: var(--card); }
.flip-front img { width: 76%; height: auto; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.flip:hover .flip-front img { transform: rotate(-6deg) scale(1.06); }
.flip-front .hand { font-size: 1.65rem; margin-top: 6px; }
.flip-back { transform: rotateY(180deg); background: var(--bg, #f5dcff); color: var(--note-ink); border-color: transparent; }
.flip-back p { color: var(--note-ink); margin: 0; font-size: 1rem; line-height: 1.5; }
.flip-back .hand { font-size: 1.6rem; color: var(--paper-hand); margin-bottom: 8px; }
.flip .turn { position: absolute; right: 14px; top: 12px; font-family: var(--pixel); font-size: .55rem; color: var(--ink-3); }
/* The drinks sticker is a door: it turns over on hover or focus, and a tap opens my drink bar. */
.flip-link { text-decoration: none; }
.flip-link:is(:hover, :focus-visible) .flip-inner { transform: rotateY(180deg); }
.flip-back .flip-go { display: block; margin: 10px 0 0; font-size: 1.25rem; text-decoration: underline; text-underline-offset: 4px; }
.notebook {
  position: relative; border-radius: 10px 26px 26px 10px; padding: 34px 34px 30px 76px; color: var(--note-ink);
  background:
    linear-gradient(90deg, transparent 54px, var(--paper-rule) 54px 56px, transparent 56px),
    repeating-linear-gradient(transparent 0 39px, rgba(192, 140, 220, .3) 39px 40px), #fffdf7;
  background-position: 0 0, 0 26px, 0 0; box-shadow: var(--shadow-lift);
}
.notebook::before { content: ""; position: absolute; left: 18px; top: 22px; bottom: 22px; width: 18px; background: radial-gradient(circle, #f4dcfa 0 6px, transparent 7px) 0 0 / 18px 40px repeat-y; }
:root[data-theme="dark"] .notebook { filter: brightness(.92); }
.notebook h2 { font-family: var(--hand); font-weight: 700; font-size: 2.4rem; color: var(--paper-hand); line-height: 40px; margin: 0; }
.favs { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.favs li { font-family: var(--hand); font-size: 1.55rem; line-height: 40px; color: var(--note-ink); break-inside: avoid; }
.favs li b { font-family: var(--body); font-size: .78rem; font-weight: 900; color: #a06ab8; text-transform: uppercase; letter-spacing: .06em; margin-right: 8px; }

/* Projects: collectible cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start; }
.tcg {
  position: relative; border-radius: 26px; padding: 12px; color: var(--ink); background: var(--frame, linear-gradient(150deg, #e586fc, #ad46d8));
  box-shadow: var(--shadow-lift); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); transform: rotate(var(--r, 0deg));
}
.tcg:hover { transform: rotate(0deg) translateY(-8px); }
.tcg-inner { position: relative; border-radius: 18px; background: var(--card); overflow: hidden; }
.tcg-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 8px; }
.tcg-top h2 { font-size: 1.6rem; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tcg:has(.card-link) { cursor: pointer; }
.tcg-top .pixel { font-size: .62rem; color: var(--ink-3); text-align: right; line-height: 1.5; }
.tcg-art { position: relative; margin: 0 12px; border-radius: 14px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--art, linear-gradient(160deg, #441f52, #833f8e)); }
.tcg-art svg, .tcg-art img { width: 62%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 12px 18px rgba(33, 0, 40, .35)); }
.tcg-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .45) 38%, rgba(255, 200, 240, .25) 46%, transparent 60%); background-size: 250% 100%; background-position: 120% 0; transition: background-position .9s ease; mix-blend-mode: soft-light; z-index: 2; }
.tcg:hover .tcg-art::after { background-position: -40% 0; }
.tcg-type { margin: 10px 16px 0; font-family: var(--pixel); font-size: .62rem; color: var(--lilac-deep); text-transform: uppercase; letter-spacing: .04em; }
:root[data-theme="dark"] .tcg-type { color: #f1b8ff; }
.tcg-ability { margin: 8px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: .93rem; color: var(--ink-2); line-height: 1.55; }
.tcg-ability b { color: var(--ink); }
.tcg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 16px 0; text-align: center; }
.tcg-stats div { border-radius: 10px; padding: 7px 4px; background: var(--lilac-soft); }
.tcg-stats strong { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.tcg-stats span { font-family: var(--pixel); font-size: .55rem; color: var(--ink-3); text-transform: uppercase; }
.tcg-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; position: relative; z-index: 4; }
.tcg-foot .btn { flex: 1 1 auto; }
.rarity { color: #f6b84a; letter-spacing: 2px; }
.tcg.locked { --frame: repeating-linear-gradient(45deg, #dec2e6 0 10px, #ecd8f2 10px 20px); }
:root[data-theme="dark"] .tcg.locked { --frame: repeating-linear-gradient(45deg, #4e2f5a 0 10px, #5b376a 10px 20px); }
.tcg.locked .tcg-art { background: linear-gradient(160deg, #cdb1d6, #b38fc0); }
:root[data-theme="dark"] .tcg.locked .tcg-art { background: linear-gradient(160deg, #523260, #3e2349); }
.tcg.locked .q { font-family: var(--display); font-style: italic; font-size: 7rem; color: #fff; opacity: .85; line-height: 1; }
.why-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
/* Journal */
.diary { display: grid; gap: 30px; max-width: 860px; margin: 0 auto; }
.entry-card {
  position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 26px; text-decoration: none; color: inherit;
  padding: 30px 30px 28px; border-radius: 6px 26px 26px 6px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s ease;
}
.entry-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.entry-card::after { content: ""; position: absolute; right: 34px; top: -6px; width: 22px; height: 54px; background: var(--ribbon, var(--accent)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.entry-date { text-align: center; border-right: 2px dashed var(--line); padding-right: 22px; }
.entry-date .day { display: block; font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--ink); }
.entry-date .month { font-family: var(--hand); font-size: 1.6rem; color: var(--accent-deep); }
.entry-date .icon { width: 34px; height: 34px; margin: 10px auto 0; color: var(--lilac); }
.entry-card h2 { font-size: 1.75rem; margin: 8px 0 8px; }
.entry-card p { margin: 0; }
.entry-card .more { display: inline-block; margin-top: 12px; font-family: var(--hand); font-size: 1.4rem; color: var(--accent-deep); }

.post { max-width: 760px; margin: 0 auto; }
.post-head { text-align: center; margin: 10px 0 30px; }
.post-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.3rem); margin: 10px 0 12px; }
.post-head .hand { font-size: 1.6rem; }
.page-paper {
  position: relative; padding: 50px 54px 44px 84px; border-radius: 6px 30px 30px 6px; color: var(--note-ink); font-size: 1.1rem; line-height: 36px;
  background:
    linear-gradient(90deg, transparent 60px, var(--paper-rule) 60px 62px, transparent 62px),
    repeating-linear-gradient(transparent 0 35px, rgba(192, 140, 220, .26) 35px 36px), #fffdf7;
  background-position: 0 0, 0 5px, 0 0; box-shadow: var(--shadow-lift);
}
:root[data-theme="dark"] .page-paper { filter: brightness(.93); }
.page-paper p { color: var(--note-ink); margin: 0 0 36px; }
.page-paper h2 { font-family: var(--hand); font-weight: 700; font-size: 2.2rem; line-height: 36px; color: var(--paper-hand); margin: 0; }
.page-paper blockquote { margin: 0 0 36px; padding: 0 0 0 18px; border-left: 4px solid var(--accent); font-family: var(--display); font-style: italic; font-size: 1.25rem; color: #3a1a4a; }
.page-paper blockquote p { margin: 0; color: #3a1a4a; }
.page-paper .sign { font-family: var(--hand); font-size: 2.4rem; color: var(--paper-hand); text-align: right; margin: 0; }
.page-paper .doodle-corner { position: absolute; right: -20px; top: -26px; width: 74px; height: 74px; padding: 14px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); transform: rotate(10deg); }
.post-nav { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* Contact */
.mail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.envelope { position: relative; width: 100%; max-width: 520px; margin: 110px auto 0; aspect-ratio: 3 / 2; }
.env-back { position: absolute; inset: 0; border-radius: 16px; background: #f3a6cc; } 
.env-letter {
  position: absolute; left: 6%; right: 6%; bottom: 8%; height: 118%; border-radius: 10px; padding: 26px 26px 0; color: var(--note-ink);
  background: repeating-linear-gradient(transparent 0 31px, rgba(192, 140, 220, .28) 31px 32px), #fffdf7; background-position: 0 18px;
  box-shadow: 0 -4px 16px rgba(120, 40, 100, .15); animation: letter-up 1.1s cubic-bezier(.3, 1.3, .5, 1) .5s both;
}
.env-letter .hand { font-size: 1.9rem; color: var(--paper-hand); line-height: 32px; }
.env-letter p { color: var(--note-ink); margin: 0; font-size: .98rem; line-height: 32px; }
.env-front { position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(#ffc6e1, #f7b6d5); clip-path: polygon(0 34%, 50% 70%, 100% 34%, 100% 100%, 0 100%); z-index: 2; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .04); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 66%; background: #f7b6d5; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; z-index: 3; animation: flap-open .6s ease-in both; }
.env-seal { position: absolute; left: 50%; top: 60%; width: 54px; height: 54px; margin-left: -27px; z-index: 4; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9fcf, #d9579b); display: grid; place-items: center; color: #fff; font-size: 1.3rem; box-shadow: 0 4px 10px rgba(120, 30, 90, .3); }
.stamp { position: absolute; right: 7%; bottom: 12%; z-index: 4; width: 76px; height: 90px; padding: 6px; background: #fff; transform: rotate(6deg);
  -webkit-mask: radial-gradient(circle 5px at 5px 5px, #0000 98%, #000) -5px -5px / 13px 13px; mask: radial-gradient(circle 5px at 5px 5px, #0000 98%, #000) -5px -5px / 13px 13px; }
.stamp div { width: 100%; height: 100%; background: linear-gradient(160deg, #f6e4fb, #ffd3e8); display: grid; place-items: center; }
.stamp svg { width: 70%; }
.postmark { position: absolute; left: 7%; bottom: 14%; z-index: 4; width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgba(160, 70, 140, .45); display: grid; place-items: center; transform: rotate(-12deg); font-family: var(--pixel); font-size: .55rem; color: rgba(140, 50, 120, .7); text-align: center; line-height: 1.5; }
.ways { display: grid; gap: 16px; }
.way { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; transform: rotate(var(--r, 0deg)); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
a.way:hover { transform: translateY(-4px); }
.way .badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); }
.way .badge .icon { width: 27px; height: 27px; }
.way b { display: block; font-size: 1.05rem; }
.way span { font-size: .9rem; color: var(--ink-3); word-break: break-word; }
.copy { font: inherit; font-size: .8rem; font-weight: 900; color: var(--ink); background: var(--lilac-soft); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* Project pages */
.back { margin-bottom: 18px; }
.proj-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.proj-art {
  position: relative; aspect-ratio: 1; border-radius: 44px; display: grid; place-items: center;
  background: var(--art, linear-gradient(160deg, #3d1f5c, #8a3fb0)); box-shadow: var(--shadow-lift); transform: rotate(-2deg);
}
.proj-art img { width: 68%; filter: drop-shadow(0 22px 30px rgba(30, 0, 40, .35)); }
.proj-art .sticker { position: absolute; font-size: .9rem; padding: 7px 15px; }
.proj-hero h1 { font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; }
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--ink); margin: 10px 0 0; }
.proj-hero .lede { font-size: 1.1rem; margin: 16px 0 0; max-width: 34em; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature {
  padding: 22px 20px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow);
  transform: rotate(var(--r, 0deg)); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.feature:hover { transform: translateY(-4px); }
.feature .badge { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 12px; }
:root[data-theme="dark"] .feature .badge { color: #e9bdfb; }
.feature .badge .icon { width: 26px; height: 26px; }
.feature h3 { font-family: var(--body); font-weight: 900; font-size: 1.02rem; margin-bottom: 4px; }
.feature p { margin: 0; font-size: .93rem; line-height: 1.55; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.paper-list { position: relative; padding: 30px 30px 26px; border-radius: 6px 6px 20px 6px; background: #fffdf7; color: var(--note-ink); box-shadow: var(--shadow-lift); transform: rotate(.8deg); }
:root[data-theme="dark"] .paper-list { filter: brightness(.92); }
.paper-list h2 { font-family: var(--hand); font-weight: 700; font-size: 2.1rem; color: var(--paper-hand); margin-bottom: 12px; }
.paper-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.paper-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--note-ink); }
.paper-list li::before {
  content: "✓"; width: 22px; height: 22px; margin-top: 3px; border-radius: 6px; border: 2px solid var(--paper-hand);
  display: grid; place-items: center; font-size: .8rem; font-weight: 900; line-height: 1; color: #d13a87;
}
.qa { max-width: 860px; }
.page-paper h3 { font-family: var(--hand); font-weight: 700; font-size: 1.85rem; line-height: 36px; color: var(--paper-hand); margin: 0; }
.moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; text-align: center; }
.mood img { width: 72%; margin: 0 auto; }
.mood .hand { display: block; font-size: 1.7rem; margin-top: 8px; }
.mood p { margin: 2px 0 0; font-size: .92rem; }
.levels { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.level { text-align: center; padding: 16px 8px 14px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); }
.level .pixel { display: block; font-size: .62rem; color: var(--accent-deep); margin-bottom: 8px; }
:root[data-theme="dark"] .level .pixel { color: #e9bdfb; }
.level .icon { width: 30px; height: 30px; margin: 0 auto 8px; color: #d13a87; }
.level b { display: block; font-size: .85rem; line-height: 1.25; }
.level.gold { background: linear-gradient(#fff6d8, #ffe2a0); border-color: #f2c96a; }
.level.gold b, .level.gold .pixel, .level.gold .icon { color: #8a5200; }

/* About: ten things, this or that, how I make things */
.tenlist { list-style: none; counter-reset: ten; margin: 0; padding: 0; }
.tenlist li { counter-increment: ten; position: relative; padding-left: 46px; line-height: 36px; color: var(--note-ink); }
.tenlist li::before { content: counter(ten) "."; position: absolute; left: 0; top: 0; width: 36px; text-align: right; font-family: var(--hand); font-weight: 700; font-size: 1.7rem; color: var(--paper-hand); }

/* About: hills I'll happily die on */
.takes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.take { padding: 20px 22px 18px; border-radius: 4px 4px 18px 4px; background: #fffdf7; color: var(--note-ink); box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); transition: transform .25s ease; }
.take:hover { transform: rotate(0) translateY(-4px); }
.take .pixel { font-size: .6rem; letter-spacing: .06em; color: #d13a87; }
.take p { margin: 8px 0 0; font-family: var(--display); font-size: 1.22rem; line-height: 1.35; color: #2b1a3d; }
.take .hand { display: block; margin-top: 10px; font-size: 1.3rem; line-height: 1.2; color: var(--paper-hand); }
:root[data-theme="dark"] .take { filter: brightness(.92); }
.tot { position: relative; padding: 26px 28px 22px; border-radius: 6px 6px 22px 6px; color: var(--note-ink); box-shadow: var(--shadow-lift);
  background: linear-gradient(rgba(161, 83, 206, .08) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(161, 83, 206, .08) 1px, transparent 1px) 0 0 / 24px 24px, #fffdf7; }
:root[data-theme="dark"] .tot { filter: brightness(.92); }
.tot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 14px; padding: 12px 0; border-bottom: 2px dashed rgba(143, 67, 189, .2); }
.tot-or { font-family: var(--hand); font-weight: 700; font-size: 1.4rem; color: var(--paper-hand); }
.tot-opt {
  position: relative; font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: #3a2443; border: 2px solid rgba(143, 67, 189, .3); transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.tot-opt:hover { transform: translateY(-2px); border-color: var(--paper-hand); }
.tot-opt[data-pick="a"] { justify-self: end; }
.tot-opt[data-pick="b"] { justify-self: start; }
.tot-opt.mine { background: #f5e3fb; border-color: var(--paper-hand); }
.tot-opt.iri::after {
  content: "iri ♡"; position: absolute; top: -12px; right: -10px; font-family: var(--hand); font-weight: 700; font-size: 1rem; line-height: 1;
  color: #fff; background: #d13a87; padding: 3px 8px 4px; border-radius: 999px; transform: rotate(8deg);
}
.tot-say { grid-column: 1 / -1; margin: 0; text-align: center; font-family: var(--hand); font-size: 1.4rem; line-height: 1.3; color: var(--paper-hand); min-height: 0; }
.tot-say:empty { display: none; }
.tot-score { margin: 14px 0 0; text-align: center; font-size: 1.7rem; color: #d13a87; }
.tot-score:empty { display: none; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { position: relative; padding-top: 30px; }
.step-num { position: absolute; top: -18px; right: 16px; font-family: var(--hand); font-weight: 700; font-size: 3rem; line-height: 1; color: #d13a87; }

/* Arcade: a little lilac handheld with a paper screen */
.arcade { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 48px; align-items: start; }
.carts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.cart {
  font: inherit; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  border-radius: 10px 10px 4px 4px; background: #fffdf7; color: #3a2443; border: 2px solid rgba(143, 67, 189, .28);
  box-shadow: 0 5px 0 rgba(143, 67, 189, .28); transition: transform .15s ease;
}
.cart .icon { width: 22px; height: 22px; color: #8f43bd; }
.cart:hover { transform: translateY(-2px); }
.cart[aria-pressed="true"] { background: linear-gradient(100deg, #a153ce, #d13a87); color: #fff; border-color: transparent; box-shadow: 0 5px 0 #7a2a8f; }
.cart[aria-pressed="true"] .icon { color: #fff; }
:root[data-theme="dark"] .cart:not([aria-pressed="true"]) { filter: brightness(.92); }
.handheld {
  position: relative; padding: 24px 24px 26px; border-radius: 28px 28px 72px 28px;
  background: linear-gradient(160deg, #ecd3f7, #c99be8); box-shadow: inset 0 -6px 0 rgba(70, 20, 90, .12), var(--shadow-lift);
}
:root[data-theme="dark"] .handheld { filter: brightness(.9) saturate(.95); }
.bezel { padding: 16px 16px 12px; border-radius: 14px 14px 40px 14px; background: #5a3f72; }
.bezel .power { display: flex; align-items: center; gap: 6px; font-family: var(--pixel); font-size: .55rem; color: #d9c2ec; margin-bottom: 8px; }
.bezel .power::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff8fc8; box-shadow: 0 0 8px #ff8fc8; }
.screen { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; background: #fffdf7; }
.screen canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: pointer; }
.overlay {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 24px; text-align: center;
  background: rgba(255, 253, 247, .9); color: #3a2443;
}
.overlay h2 { font-family: var(--hand); font-weight: 700; font-size: 2.3rem; color: #8f43bd; line-height: 1; }
.overlay p { margin: 0; color: #3a2443; font-size: .95rem; max-width: 22em; }
.brandline { margin: 14px 0 0; text-align: center; font-family: var(--pixel); font-size: .78rem; letter-spacing: .1em; color: #6b3f8e; }
.pad { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.dpad { display: flex; gap: 6px; }
.pad button {
  font: inherit; cursor: pointer; border: 0; color: #fff; background: #6b3f8e; box-shadow: 0 4px 0 #4a2a66;
  display: grid; place-items: center; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.pad button:active { transform: translateY(3px); box-shadow: 0 1px 0 #4a2a66; }
.dpad button { width: 52px; height: 52px; border-radius: 14px; }
.dpad .icon { width: 24px; height: 24px; }
.ab { display: flex; gap: 12px; transform: rotate(-12deg); }
.ab button { width: 56px; height: 56px; border-radius: 50%; background: #d13a87; box-shadow: 0 4px 0 #9a2462; font-family: var(--pixel); font-size: .7rem; }
.ab button:active { box-shadow: 0 1px 0 #9a2462; }
.scorecard { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-family: var(--pixel); font-size: .7rem; color: #4a2a66; }
.howto { display: grid; gap: 30px; }
.howto .note p + p { margin-top: 8px; }
.howto kbd { font-family: var(--pixel); font-size: .7rem; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(70, 40, 80, .2); }

/* Music corner */
.rack-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.rack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px; border-radius: 22px; background: linear-gradient(#f3e6fa, #ead6f6); box-shadow: var(--shadow); }
:root[data-theme="dark"] .rack { background: linear-gradient(#3c2850, #33223f); }
.mix {
  font: inherit; cursor: pointer; text-align: left; display: grid; gap: 6px; padding: 10px 10px 12px; border: 0; border-radius: 10px;
  background: var(--shell); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 4px 10px rgba(70, 30, 80, .15);
  transform: rotate(var(--r, 0deg)); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1);
}
.mix:hover { transform: rotate(0deg) translateY(-3px); }
.mix[aria-pressed="true"] { outline: 3px solid #fff; outline-offset: 2px; transform: rotate(0deg) translateY(-3px); }
.mix-label { display: block; padding: 6px 8px; border-radius: 5px; background: #fffdf7; color: #8f43bd; font-family: var(--hand); font-weight: 700; font-size: 1.2rem; line-height: 1.05; min-height: 2.3em; }
.mix-meta { font-family: var(--pixel); font-size: .55rem; letter-spacing: .03em; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.deck {
  position: sticky; top: 100px; padding: 24px; border-radius: 6px 6px 22px 6px; color: var(--note-ink); box-shadow: var(--shadow-lift);
  background: linear-gradient(rgba(161, 83, 206, .08) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(161, 83, 206, .08) 1px, transparent 1px) 0 0 / 24px 24px, #fffdf7;
}
:root[data-theme="dark"] .deck { filter: brightness(.92); }
.deck-stage { min-height: 200px; display: grid; place-items: center; }
.deck-stage iframe { width: 100%; height: 352px; border: 0; border-radius: 12px; }
.deck-tape { width: 100%; max-width: 320px; aspect-ratio: 16 / 10; position: relative; border-radius: 14px; background: var(--shell); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1), var(--shadow); }
.deck-meta { margin: 16px 0 4px; font-size: .68rem; color: #8f43bd; }
.deck-desc { margin: 0 0 12px; color: var(--note-ink); }
.deck .sticker { font-size: .72rem; }
.deck-note { margin: 14px 0 0; font-size: .82rem; color: #7d6e8f; }
.deck-note a, .privacy-note a { color: #68437b; text-underline-offset: 3px; }
.repeat { gap: 12px; }
.listen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.deck.featured { position: relative; top: 0; }
.listen-main, .listen-notes { display: grid; gap: 22px; }
.listen-notes { padding-top: 6px; }
.listen-notes .note .hand { margin-bottom: 10px; }
.listen-small { margin-top: 12px !important; font-size: .82rem; color: #7d6e8f !important; }
.repeat-honorable-label { display: block; margin-top: 3px; font: 400 1.15rem/1.2 var(--hand); color: var(--paper-hand); }
.listen-bands { padding: 4px 6px 0; }
.listen-bands > .hand { display: block; font-size: 1.45rem; }
.listen-bands .aka { margin-top: 8px; }
.listen-bands .btn-row { margin-top: 20px; }
.cassette .label { position: absolute; left: 7%; right: 7%; top: 9%; height: 30%; border-radius: 6px; background: #fffdf7; display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: 1.35rem; color: #8f43bd; line-height: 1; text-align: center; padding: 0 6px; }
.cassette .window { position: absolute; left: 22%; right: 22%; top: 46%; height: 28%; border-radius: 30px; background: rgba(40, 20, 50, .55); display: flex; justify-content: space-between; align-items: center; padding: 0 10%; }
.cassette .reel { width: 26%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(#fffdf7 0 30deg, #e9d8f2 30deg 60deg); border: 3px solid #fffdf7; }
.cassette.playing .reel { animation: spin 1.6s linear infinite; }
.cassette .base { position: absolute; left: 18%; right: 18%; bottom: 0; height: 14%; background: rgba(0, 0, 0, .1); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
/* My shelf */
.shelf-unit { position: relative; padding: 30px 30px 0; border-radius: 22px 22px 8px 8px; background: linear-gradient(#f3e6fa, #ead6f6); box-shadow: var(--shadow); }
:root[data-theme="dark"] .shelf-unit { background: linear-gradient(#3c2850, #33223f); }
.shelf-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; align-items: end; min-height: 260px; }
.shelf-board { height: 22px; margin: 0 -30px; border-radius: 6px; background: linear-gradient(#c99be8, #a87acb); box-shadow: 0 8px 18px rgba(80, 40, 110, .2); }
.case {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left;
  border-radius: 6px 10px 10px 6px; background: var(--case, #a153ce); color: #fff; box-shadow: inset 8px 0 0 rgba(0, 0, 0, .14), 0 8px 16px rgba(60, 20, 70, .25);
  transform: rotate(var(--r, 0deg)); transform-origin: bottom center; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.case:hover, .case[aria-pressed="true"] { transform: rotate(0deg) translateY(-12px); }
.case .t { position: absolute; left: 16%; right: 10%; bottom: 12%; font-family: var(--display); font-size: 1.05rem; line-height: 1.1; }
.case .icon { position: absolute; left: 16%; top: 14%; width: 40%; height: auto; aspect-ratio: 1; color: rgba(255, 255, 255, .9); stroke-width: 1.4; }
.case .sticker { position: absolute; top: -10px; right: -12px; font-size: .62rem; padding: 3px 8px; border-width: 2px; }
.space { width: 100%; aspect-ratio: 5 / 7; border-radius: 6px 10px 10px 6px; border: 2px dashed rgba(143, 67, 189, .4); display: grid; place-items: center; text-align: center; padding: 10px; font-family: var(--hand); font-size: 1.15rem; line-height: 1.15; color: var(--accent-deep); text-decoration: none; }
:root[data-theme="dark"] .space { color: #e3b8f7; border-color: rgba(227, 184, 247, .4); }
.space:hover { background: rgba(255, 255, 255, .35); }
.shelf-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 46px; }
.shelf-notes .note { scroll-margin-top: 120px; transition: transform .25s ease, box-shadow .25s ease; }
.shelf-notes .note.lit { box-shadow: 0 0 0 4px rgba(161, 83, 206, .45), 0 10px 22px rgba(120, 60, 100, .14); }
.shelf-notes .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shelf-notes .tags .sticker { font-size: .72rem; }

@keyframes spin { to { transform: rotate(360deg); } }

/* My World: the nail drawer */
.studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.nail-stand { padding: 26px 22px 18px; border-radius: 6px 6px 22px 6px; box-shadow: var(--shadow-lift); background: #fffdf7; transform: rotate(-.6deg); }
:root[data-theme="dark"] .nail-stand { filter: brightness(.92); }
.nail-card svg { width: 100%; height: auto; }
.nail-caption { margin: 10px 0 0; text-align: center; font-size: 1.45rem; color: #8f43bd; }
.nail-controls { display: grid; gap: 16px; }
.ctl-label { display: block; font-family: var(--pixel); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
:root[data-theme="dark"] .ctl-label { color: #e3b8f7; }
.polishes { display: flex; flex-wrap: wrap; gap: 8px; }
.polish { position: relative; width: 34px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s ease; }
.polish::before { content: ""; position: absolute; left: 11px; top: 0; width: 12px; height: 16px; border-radius: 3px; background: #3a2443; }
:root[data-theme="dark"] .polish::before, :root[data-theme="dark"] .polish span { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .45); }
.polish span { position: absolute; left: 3px; right: 3px; bottom: 0; height: 30px; border-radius: 8px; background: var(--polish); box-shadow: inset 4px 0 0 rgba(255, 255, 255, .35), 0 2px 5px rgba(60, 20, 70, .2); }
.polish:hover { transform: translateY(-3px) rotate(-4deg); }
.polish[aria-pressed="true"] { transform: translateY(-5px); }
.polish[aria-pressed="true"] span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { cursor: pointer; font: inherit; font-weight: 800; font-size: .82rem; padding: 7px 14px; border-radius: 999px; background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.chips .chip:hover { border-color: var(--accent); }
.chips .chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }

/* About: badge collection, ideas drawer */
.medals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
.medal { position: relative; z-index: 0; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 12px 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .75); border: 2px solid rgba(143, 67, 189, .18); }
.medal-coin {
  position: relative; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; color: #6b3d00;
  background: radial-gradient(circle at 35% 30%, #fff4c9, #f6c25a 60%, #e19a2a); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .45), 0 3px 0 #c98420;
}
.medal-coin::before, .medal-coin::after { content: ""; position: absolute; top: 40px; width: 14px; height: 22px; z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.medal-coin::before { left: 10px; background: #a153ce; transform: rotate(14deg); }
.medal-coin::after { right: 10px; background: #d13a87; transform: rotate(-14deg); }
.medal-coin .icon { width: 24px; height: 24px; }
.medal b { display: block; font-size: .86rem; line-height: 1.2; color: #2b1a3d; }
.medal > span:not(.medal-coin):not(.medal-stamp):not(.medal-bar) { font-size: .76rem; line-height: 1.3; color: #7d6e8f; }
.medal-stamp { margin-top: 4px; font-family: var(--pixel); font-size: .55rem; letter-spacing: .04em; color: #d13a87; }
.medal.locked { border-style: dashed; opacity: .8; }
.medal.locked .medal-coin { background: #efe4f3; color: #a596b3; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6); }
.medal.locked .medal-coin::before, .medal.locked .medal-coin::after { background: #d8c8e2; }
.medal-bar { width: 80%; height: 7px; margin-top: 5px; border-radius: 4px; background: #efe4f3; overflow: hidden; }
.medal-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #a153ce, #d13a87); }
.drawer { max-width: 720px; }
.drawer-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px 48px; align-items: center; }
.drawer-front {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; height: 110px; border: 0; cursor: pointer; font: inherit;
  border-radius: 14px; background: linear-gradient(#fbf2ff, #f1e1fa); box-shadow: inset 0 -6px 0 rgba(143, 67, 189, .12), var(--shadow); transition: transform .3s ease;
}
:root[data-theme="dark"] .drawer-front { filter: brightness(.9); }
.drawer-front:hover { transform: translateY(-2px); }
.drawer-label { padding: 4px 14px; border-radius: 4px; background: #fffdf7; color: #8f43bd; font-size: 1.5rem; box-shadow: 0 2px 4px rgba(60, 20, 70, .12); transform: rotate(-3deg); }
.drawer-handle { width: 90px; height: 16px; border-radius: 10px; background: #c58be6; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.drawer-inside { margin: -8px 16px 0; padding: 30px 26px 24px; border-radius: 0 0 14px 14px; text-align: center; color: var(--note-ink);
  background: repeating-linear-gradient(45deg, rgba(161, 83, 206, .05) 0 8px, transparent 8px 16px), #fbf6ff; box-shadow: inset 0 10px 14px -10px rgba(60, 20, 70, .35); }
:root[data-theme="dark"] .drawer-inside { filter: brightness(.92); }
.drawer-empty { font-size: 1.9rem; color: #8f43bd; margin: 0; }
.drawer-sub { margin: 6px 0 0; color: #5a4a66; }
.drawer.open .drawer-front { transform: translateY(0); box-shadow: inset 0 -6px 0 rgba(143, 67, 189, .12); }

/* Diary: the scrapbook */
.scrapbook { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow-lift); background: #f6ecd8; padding: 12px; }
:root[data-theme="dark"] .scrapbook { filter: brightness(.9); }
.scrap-page { min-height: 300px; padding: 26px; display: grid; gap: 18px; align-content: center; justify-items: center; background: #fffaf0; }
.scrap-page:first-child { border-radius: 8px 0 0 8px; box-shadow: inset -12px 0 18px -14px rgba(80, 50, 30, .35); }
.scrap-page:last-child { border-radius: 0 8px 8px 0; box-shadow: inset 12px 0 18px -14px rgba(80, 50, 30, .35); text-align: center; }
.scrap-slot { width: 70%; height: 92px; border: 2px dashed rgba(143, 67, 189, .3); border-radius: 6px; transform: rotate(-2deg); }
.scrap-slot + .scrap-slot { transform: rotate(2deg); width: 55%; }
.scrap-empty { font-size: 1.9rem; color: #8f43bd; margin: 0; }
.scrap-sub { margin: 0; color: #5a4a66; }

/* My World: Beauty & style */
.vanity-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; position: relative; z-index: 1; }
.vtab {
  font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; padding: 11px 18px 13px; margin-bottom: -2px;
  border: 2px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--paper-2); color: var(--ink-2);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.vtab:hover { color: var(--ink); transform: translateY(-2px); }
.vtab[aria-selected="true"] { background: #fffdf7; color: #2b1a3d; transform: none; }
:root[data-theme="dark"] .vtab[aria-selected="true"] { background: #ebe6de; }
.vpanel { padding: 28px; border-radius: 6px 22px 22px 22px; background: #fffdf7; color: var(--note-ink); box-shadow: var(--shadow-lift); border: 2px solid var(--line); }
:root[data-theme="dark"] .vpanel { background: #ebe6de; border-color: transparent; }
.vpanel p { color: var(--note-ink); }
.vpanel a { color: #8f43bd; }
.vpanel.enter { animation: panel-in .35s ease both; }
.vpanel-intro { font-size: 1.05rem; max-width: 44em; margin: 0 0 22px; }
.sub-head { font-family: var(--hand); font-weight: 700; font-size: 1.9rem; color: var(--paper-hand); margin: 30px 0 12px; }
.nail-mine { display: grid; grid-template-columns: .8fr 1fr 1fr 1fr; gap: 18px; align-items: start; }
.frame-card {
  position: relative; margin: 0; padding: 12px 12px 14px; background: #fff; box-shadow: 0 6px 16px rgba(80, 40, 90, .18); transform: rotate(-2.5deg);
  display: grid; gap: 10px; justify-items: center;
}
.frame-empty { width: 100%; aspect-ratio: 1; display: grid; place-items: center; font-size: 2rem; color: #c9a6e0; border: 2px dashed #e1c8ee; background: #faf5fd; }
.frame-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.frame-card figcaption { margin: 0; font-size: 1.35rem; text-align: center; color: #8f43bd; line-height: 1.1; }
.frame-card small { display: block; font-family: var(--body); font-size: .74rem; font-weight: 700; color: #9a88a8; margin-top: 2px; }
.mini-note { padding: 16px 16px 14px; border-radius: 4px 4px 16px 4px; background: #fff; border: 2px solid rgba(143, 67, 189, .14); }
.mini-note.wide { margin-top: 24px; max-width: 560px; }
.mini-note > .hand { display: block; font-size: 1.45rem; color: var(--paper-hand); margin-bottom: 8px; }
.mini-note p { margin: 8px 0 0; font-size: .9rem; }
.mini-note .aka { margin: 0; gap: 6px; }
.mini-note .sticker { font-size: .72rem; padding: 3px 9px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatches i { width: 26px; height: 34px; border-radius: 12px 12px 6px 6px; background: var(--c); box-shadow: inset 3px 0 0 rgba(255, 255, 255, .35), 0 2px 4px rgba(60, 20, 70, .2); }
.swatches i.more { width: auto; height: auto; padding: 4px 8px; font-style: normal; font-size: .75rem; font-weight: 900; color: #8f43bd; background: #f5e3fb; box-shadow: none; border-radius: 999px; }
.blank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.blank-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; font-size: .92rem; }
.blank-list b { color: #3a2443; font-weight: 800; }
.blank-list span { border-bottom: 2px dashed rgba(143, 67, 189, .3); color: #7d6e8f; padding-bottom: 2px; }
.blank-list .blank { font-family: var(--hand); font-size: 1.15rem; color: #b39bc4; }
.vpanel .chips { margin-bottom: 18px; }
.vpanel .chips .chip { background: #fff; color: #3a2443; border-color: rgba(143, 67, 189, .25); }
.vpanel .chips .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.shot {
  position: relative; display: block; padding: 8px 8px 34px; margin: 0; border: 0; cursor: pointer; font: inherit; text-align: center;
  background: #fff; box-shadow: 0 5px 14px rgba(80, 40, 90, .16); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s ease;
}
.shot:nth-child(3n + 1) { transform: rotate(-1.4deg); }
.shot:nth-child(3n + 2) { transform: rotate(1deg); }
.shot:hover, .shot:focus-visible { transform: rotate(0) translateY(-4px) scale(1.02); box-shadow: 0 12px 24px rgba(80, 40, 90, .22); }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; background: #f3ebf6; }
.shot-label { position: absolute; left: 8px; right: 8px; bottom: 7px; font-family: var(--hand); font-weight: 700; font-size: 1.12rem; line-height: 1.1; color: #3a2443; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot.wanted { cursor: default; display: grid; align-content: center; gap: 8px; padding: 18px; aspect-ratio: 4 / 5.6; background: repeating-linear-gradient(45deg, rgba(161, 83, 206, .05) 0 8px, transparent 8px 16px), #fbf7fd; border: 2px dashed rgba(143, 67, 189, .35); box-shadow: none; }
.shot.wanted .hand { font-size: 1.4rem; color: #8f43bd; }
.shot.wanted p { margin: 0; font-size: .85rem; color: #7d6e8f; }
.lightbox { padding: 0; border: 0; border-radius: 18px; max-width: min(980px, calc(100vw - 32px)); width: 100%; background: #fffdf7; color: #3a2443; box-shadow: 0 30px 80px rgba(20, 0, 30, .45); }
.lightbox::backdrop { background: rgba(30, 12, 40, .72); }
.lightbox[open] { animation: panel-in .25s ease both; }
.lb-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.lb-img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #2b1a3d; border-radius: 18px 0 0 18px; }
.lb-text { padding: 28px 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.lb-count { margin: 0; font-size: .64rem; color: #8f43bd; }
.lb-title { margin: 0; font-size: 2.1rem; color: #8f43bd; }
.lb-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0; padding: 12px 14px; border-radius: 12px; background: #f6eefa; }
.lb-details dt { font-family: var(--pixel); font-size: .6rem; text-transform: uppercase; color: #8f43bd; padding-top: 4px; }
.lb-details dd { margin: 0; font-size: .95rem; color: #3a2443; }
.lb-caption { margin: 0; color: #3a2443; font-size: 1.02rem; }
.lb-credit { margin: auto 0 0; font-size: .82rem; color: #7d6e8f; }
.lb-credit a { color: #8f43bd; }
.lb-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.1rem; background: #fff; color: #3a2443; box-shadow: var(--shadow); }
.perfume-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.perfume-shelf { max-width: 640px; }
.bottles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 0 16px; }
.bottle { display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.bottle img { width: 100%; max-width: 110px; height: auto; filter: drop-shadow(0 6px 8px rgba(80, 30, 60, .2)); }
.bottle .hand { font-size: 1.25rem; color: #8f43bd; }
.bottle:hover, .bottle[aria-expanded="true"] { transform: translateY(-8px); }
.perfume-shelf .shelf-board { margin: 0; height: 18px; }
.bottle-notes { max-width: 520px; }

@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { margin-top: 90px; position: relative; }
.scallop { height: 18px; background: radial-gradient(circle at 50% 100%, var(--paper-2) 15px, transparent 16px) 0 0 / 32px 18px repeat-x; }
.footer-body { background: var(--paper-2); padding: 22px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: start; }
.footer-inner p { font-size: .94rem; margin: 10px 0 0; max-width: 34em; }
.footer-inner .hand { font-size: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-weight: 800; font-size: .93rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--link); text-decoration: underline; }
.footer-small { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--ink-3); padding-top: 18px; border-top: 2px dashed var(--line); }

/* 404 */
.lost { text-align: center; max-width: 640px; margin: 40px auto 0; }
.lost svg.cat { width: 220px; margin: 0 auto 10px; }
.lost h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 6px 0 12px; }

/* Little effects */
.pop-heart { position: fixed; z-index: 60; pointer-events: none; color: #ef8fc4; animation: pop 1.1s ease-out forwards; }
.petal-rain { position: fixed; top: -20px; z-index: 70; width: 13px; height: 15px; pointer-events: none; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffd5ea, #f19ccb); animation: rain var(--d, 5s) linear forwards; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; box-shadow: var(--shadow-lift); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes pop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% - 80px)) scale(1.2); } }
@keyframes rain { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate3d(var(--dx, -60px), 105vh, 0) rotate(540deg); opacity: .8; } }
@keyframes shoot { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-150px, 90px); } }
@keyframes zz { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-8px); opacity: .4; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes letter-up { from { transform: translateY(46%); } to { transform: translateY(0); } }
@keyframes flap-open { from { transform: rotateX(0); } to { transform: rotateX(180deg); opacity: .0; } }

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

/* Tablet */
@media (max-width: 1020px) {
  .takes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 8px; }
  .nav { order: 3; width: 100%; justify-content: center; }
  .hero { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .room-notes { grid-template-columns: 1fr; }
  .status { max-width: 420px; }
  .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .arcade { grid-template-columns: 1fr; }
  .handheld { max-width: 470px; margin: 0 auto; width: 100%; }
  .rack-wrap, .studio, .listen { grid-template-columns: 1fr; }
  .nail-mine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perfume-layout { grid-template-columns: 1fr; gap: 26px; }
  .lb-inner { grid-template-columns: 1fr; }
  .lb-img { border-radius: 18px 18px 0 0; max-height: 55vh; }
  .deck { position: relative; top: 0; }
  .shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf-row .space:nth-of-type(n+2) { display: none; }
  .shelf-notes { grid-template-columns: 1fr; }
  .board-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { grid-template-columns: 1fr; }
  .beliefs { grid-template-columns: 1fr; }
  .drawer-wrap { grid-template-columns: 1fr; }
  .holds { grid-template-columns: 1fr; }
  .girl { grid-template-columns: 1fr; gap: 30px; }
  .girl-more { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .girl-more > .hand { grid-column: 1 / -1; }
  .people-body { columns: 1; }
  .lid-wrap { grid-template-columns: 1fr; }
  .collection { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mail { grid-template-columns: 1fr; }
  .why-notes { grid-template-columns: 1fr; gap: 34px; }
  .proj-hero, .two-up { grid-template-columns: 1fr; gap: 34px; }
  .proj-art { max-width: 380px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .levels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .nav a .icon { display: none; }
}

/* Phone */
@media (max-width: 720px) {
  .takes { grid-template-columns: 1fr; }
  :root { --gutter: 16px; }
  .hero { padding-top: 30px; padding-bottom: 30px; gap: 20px; }
  .hero-work { display: none; }
  .room-intro { padding-bottom: 18px; }
  .girl-more .door { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 14px 10px; }
  .girl-more .door img { width: 56px; height: 56px; }
  .people { padding: 28px 20px 24px; border-radius: 24px; }
  body { font-size: 16px; }
  .header-inner { padding: 8px var(--gutter); gap: 8px; }
  body::before {
    background:
      var(--bg-blossom) right 0 top 168px / 54vw auto no-repeat,
      var(--bg-petals) left bottom / 58vw auto no-repeat,
      var(--bg-glows), var(--bg-base);
  }
  .nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 22px; }
  .nav a { justify-content: center; padding: 7px 6px; font-size: .88rem; }
  .lights span.label { display: none; }
  .lights { padding: 0 6px; }
  .intro { grid-template-columns: 1fr; }
  .status { transform: none; }
  .room-scroll { height: 520px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .room-scroll::-webkit-scrollbar { display: none; }
  .room { width: 1156px; max-width: none; }
  .swipe { display: inline; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .board { padding: 36px 18px 30px; border-width: 7px; }
  .board-notes { grid-template-columns: 1fr; }
  .promise { border-radius: 24px; }
  .letter { padding: 36px 22px 26px 50px; background-position: 0 0, 0 27px, 0 0; background-image: linear-gradient(90deg, transparent 34px, var(--paper-rule) 34px 36px, transparent 36px), repeating-linear-gradient(transparent 0 33px, rgba(192, 140, 220, .28) 33px 34px); }
  .sheet { padding: 20px; }
  .facts-list li { grid-template-columns: 96px 1fr; }
  .medals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpanel { padding: 20px 16px; }
  .vtab { font-size: .82rem; padding: 9px 12px 11px; }
  .vanity-tabs { padding: 0 4px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nail-mine { grid-template-columns: 1fr; }
  .frame-card { max-width: 220px; }
  .lb-text { padding: 18px 16px; }
  .lb-img { max-height: 42vh; }
  .lb-title { font-size: 1.7rem; }
  .scrapbook { grid-template-columns: 1fr; }
  .scrap-page:first-child, .scrap-page:last-child { border-radius: 8px; box-shadow: none; }
  .features { grid-template-columns: 1fr; }
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .handheld { padding: 18px 16px 22px; border-radius: 24px 24px 56px 24px; }
  .shelf-unit { padding: 24px 16px 0; }
  .shelf-board { margin: 0 -16px; }
  .shelf-row { gap: 12px; min-height: 0; }
  .shelf-row .space { display: none; }
  .tot { padding: 20px 16px 18px; }
  .tot-row { gap: 6px 8px; }
  .tot-opt { font-size: .88rem; padding: 8px 12px; }
  .tot-say { font-size: 1.25rem; }
  .tenlist li { padding-left: 40px; }
  .tenlist li::before { width: 30px; }
  .proj-art { max-width: 300px; }
  .collection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .flip-back p { font-size: .88rem; }
  .flip-front .hand { font-size: 1.4rem; }
  .notebook { padding: 30px 20px 24px 52px; }
  .notebook::before { left: 10px; }
  .favs { columns: 1; }
  .cards { grid-template-columns: 1fr; }
  .entry-card { grid-template-columns: 1fr; gap: 10px; padding: 24px 22px; }
  .entry-date { border-right: 0; padding: 0; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .entry-date .day { font-size: 2.2rem; }
  .entry-date .icon { display: none; }
  .page-paper { padding: 40px 20px 30px 46px; background-position: 0 0, 0 30px, 0 0; background-image: linear-gradient(90deg, transparent 32px, var(--paper-rule) 32px 34px, transparent 34px), repeating-linear-gradient(transparent 0 35px, rgba(192, 140, 220, .26) 35px 36px); font-size: 1.02rem; }
  .page-paper .doodle-corner { display: none; }
  .way { grid-template-columns: 46px 1fr; }
  .way .badge { width: 46px; height: 46px; }
  .way .copy { grid-column: 2; justify-self: start; }
  .way > .icon { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
