:root {
  --ink: #2f2624;
  --muted: #7d6e69;
  --rose: #c6a197;
  --rose-deep: #8e6a63;
  --blush: #ecd6d0;
  --cream: #efebe4;
  --paper: #faf7f2;
  --kraft: #82493c;
  --manila: #e2d0ad;
  --line: rgba(47, 38, 36, .1);
  --card: #fff;
  --accent: #b27b70;
  --dock-h: 68px;
  --serif: Gloock, "Times New Roman", serif;
  --sans: Jost, "Futura", "Avenir Next", system-ui, sans-serif;
  --hand: Caveat, cursive;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--sans); color: var(--ink); background: #b9a39c;
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- Boot ---------- */
#boot {
  position: fixed; inset: 0; z-index: 20000; background: var(--noise), var(--fibers), var(--kraft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity .7s ease;
}
#boot.done { opacity: 0; pointer-events: none; }
.boot-name { font: 400 clamp(44px, 8vw, 84px)/1 var(--serif); letter-spacing: -.03em; color: #f7efe6; text-align: center; padding: 0 20px; animation: rise .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.boot-bar { width: 160px; height: 1.5px; background: rgba(247, 239, 230, .25); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: #f7efe6; animation: bootfill 1.3s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes bootfill { to { width: 100%; } }

/* ---------- Wallpaper ---------- */
#desktop { position: fixed; inset: 0; }
#wallpaper {
  position: fixed; inset: -24px;
  background:
    radial-gradient(38% 50% at 52% 38%, #6f5650 0, transparent 70%),
    radial-gradient(45% 45% at 50% 95%, #d8cbc6 0, transparent 70%),
    radial-gradient(60% 60% at 15% 20%, #cdb7b0 0, transparent 70%),
    linear-gradient(160deg, #c3aea7, #a88f88);
  background-size: cover; background-position: center;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
/* With a photo: show the whole photo on the left and continue its wall colour to the right */
#wallpaper.photo.portrait { background: linear-gradient(180deg, var(--wall-top, #dde1e2), var(--wall-mid, #e2dccc) 50%, var(--wall-bottom, #d8c2a9)); }
#wallpaper.photo.portrait::before {
  content: ""; position: absolute; inset: 0;
  background: var(--photo) left center / auto 100% no-repeat;
  --pw: calc((100vh + 48px) * var(--ratio, .8));
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--pw) - 90px), transparent var(--pw));
  mask-image: linear-gradient(90deg, #000 calc(var(--pw) - 90px), transparent var(--pw));
}
/* Landscape photo: fills the screen */
/* Landscape photo: the whole photo at full screen height (never cropped top/bottom), centred on Neha.
   Any space left at the sides is filled with a soft, blurred extension of the photo. */
#wallpaper.photo.landscape::before { content: ""; position: absolute; inset: -40px; background: var(--photo) center / cover no-repeat; filter: blur(28px) saturate(.9); }
.wp-photo { display: none; }
#wallpaper.covers .wp-photo { -webkit-mask-image: none !important; mask-image: none !important; }
#wallpaper.photo.landscape .wp-photo {
  display: block; position: absolute; top: 24px; bottom: 24px;
  width: calc(100vh * var(--ratio, 1.5));
  left: var(--photo-left, calc(50% - 100vh * var(--ratio, 1.5) * var(--focus, .46)));
  background: var(--photo) center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent);
}
/* Tall/narrow screens: the photo simply fills the screen */
@media (max-aspect-ratio: 4/5) {
  #wallpaper.photo.portrait::before { background-size: cover; background-position: center; -webkit-mask-image: none; mask-image: none; }
}
#wallpaper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,25,20,.12), transparent 25%, transparent 75%, rgba(40,25,20,.18)); }
/* Film grain over the desktop. Raise/lower opacity to taste (0–1). */
#grain { display: none; } /* off: the wallpaper photos have grain built in. Delete this rule to turn the site grain back on. */
#grain { position: fixed; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); opacity: .32; mix-blend-mode: overlay; pointer-events: none; }

/* ---------- Pill nav ---------- */
#nav {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 9500;
  display: flex; gap: 14px;
}
.pill {
  font: 500 17px/1 var(--sans); padding: 8px 28px 9px; border-radius: 99px; white-space: nowrap;
  border: 1.5px solid currentColor; color: #fff;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
body[data-theme="photo"] .pill { text-shadow: 0 1px 6px rgba(40,20,15,.25); }
.pill:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.pill.on { background: #e3d0c8; color: #8c766e; border-color: #e3d0c8; text-decoration: none; text-shadow: none; }
body[data-theme="kraft"] .pill { color: #f6ede4; }
body[data-theme="kraft"] .pill.on { background: #d8b8ae; border-color: #d8b8ae; color: #8a6258; }
body[data-theme="cream"] .pill { color: var(--ink); }
body[data-theme="cream"] .pill:hover { background: rgba(47,38,36,.06); }
body[data-theme="cream"] .pill.on { background: #6a605d; border-color: #6a605d; color: #fff; }

/* ---------- Menus ---------- */
.menu {
  position: fixed; z-index: 15000; min-width: 210px; padding: 5px;
  background: rgba(250, 247, 242, .88); color: var(--ink);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  border-radius: 10px; font-size: 14px;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.15), 0 10px 40px rgba(40,20,15,.25);
  animation: pop .12s ease-out;
}
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.menu button { display: block; width: 100%; text-align: left; padding: 5px 10px; border-radius: 6px; }
.menu button:hover { background: var(--rose); color: #fff; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------- Desktop icons ---------- */
#icons, #notes { position: fixed; inset: 0; pointer-events: none; }
#notes { z-index: 5; }
#icons { z-index: 10; }
.icon {
  position: absolute; pointer-events: auto; touch-action: none; outline: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px;
  border-radius: 6px; animation: iconIn .6s cubic-bezier(.2, .9, .3, 1.25) both;
}
@keyframes iconIn { from { opacity: 0; transform: scale(.7) translateY(12px); } }
.icon .img { display: grid; place-items: center; transition: transform .2s cubic-bezier(.2, .9, .3, 1.4); filter: drop-shadow(0 6px 12px rgba(40,20,15,.28)); }
.icon:hover .img { transform: translateY(-4px) rotate(-2deg); }
.icon.dragging { opacity: .85; }
.icon .label {
  font: 600 14px/1.2 var(--sans); color: #fff; text-align: center; white-space: nowrap;
  padding: 2px 8px; border-radius: 6px; text-shadow: 0 1px 2px rgba(40,20,15,.4);
  background: rgba(47,34,30,.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.icon.selected .img { outline: 2px solid rgba(255,255,255,.55); outline-offset: 3px; border-radius: 4px; }
.icon.selected .label, .icon:focus-visible .label { background: rgba(142,106,99,.9); text-shadow: none; }
.thumb { background: var(--bg, #ccc); background-size: cover; background-position: center; }
.film { filter: blur(.5px) saturate(.92) contrast(.95); }

.folder { position: relative; width: 84px; height: 68px; }
.folder svg { width: 100%; height: 100%; display: block; }
.folder .glyph { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); font-size: 21px; }
.doc { position: relative; width: 50px; height: 64px; }
.doc svg { width: 100%; height: 100%; display: block; }
.doc .doc-glyph { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 400 20px var(--serif); color: var(--rose-deep); }
.doc .doc-tag { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 8px; font-weight: 600; color: #fff; background: var(--rose-deep); padding: 1px 4px; border-radius: 2px; }
.retro { width: 70px; height: 70px; padding: 10px; background: #c9c9c9; border: 2px solid #1b1b1b; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #7b7b7b; }
.pixel { width: 70px; height: 70px; }
.tile {
  container-type: size; width: 100%; height: 100%; aspect-ratio: 1; border-radius: 23%;
  display: grid; place-items: center; background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.15), 0 2px 6px rgba(0,0,0,.25);
}
.tile > span { font-size: 56cqh; line-height: 1; }
.tile .term-glyph { font: 600 34cqh/1 "JetBrains Mono", monospace; color: #3cf06e; }

/* ---------- Sticky notes (Neko Notes style) ---------- */
.c1 { --paper: #fff6c4; --paper2: #ffe896; --ink: #5c4a12; --check: #e3a21f; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='rgba(214,165,30,.2)'%3E%3Cpath d='M22 9l2.6 5.4 5.9.7-4.4 4 1.2 5.8-5.3-3-5.3 3 1.2-5.8-4.4-4 5.9-.7z'/%3E%3Cpath d='M3 31l1.3 2.7 3 .4-2.2 2 .6 2.9L3 37.6.3 39l.6-2.9L-1.3 34l3-.4z'/%3E%3C/g%3E%3C/svg%3E"); --ear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M2 24C3 12 7 4 13 1c2-1 4 0 5 2 4 6 7 13 8 21z' fill='%23fff2b4'/%3E%3Cpath d='M8 21c1-6 3-11 6-14 3 4 5 8 6 14z' fill='%23f6b9c7'/%3E%3C/svg%3E"); }
.c2 { --paper: #ffe3ec; --paper2: #ffcadb; --ink: #6b2a3c; --check: #e0607f; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='rgba(222,104,138,.18)'%3E%3Cpath d='M22 27s-7.5-4.6-7.5-9.6a4.2 4.2 0 0 1 7.5-2.2 4.2 4.2 0 0 1 7.5 2.2c0 5-7.5 9.6-7.5 9.6z'/%3E%3Cpath d='M4 42s-3.6-2.2-3.6-4.6a2 2 0 0 1 3.6-1 2 2 0 0 1 3.6 1C7.6 39.8 4 42 4 42z'/%3E%3C/g%3E%3C/svg%3E"); --ear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M2 24C3 12 7 4 13 1c2-1 4 0 5 2 4 6 7 13 8 21z' fill='%23ffdbe6'/%3E%3Cpath d='M8 21c1-6 3-11 6-14 3 4 5 8 6 14z' fill='%23f6b9c7'/%3E%3C/svg%3E"); }
.c3 { --paper: #e2f6e8; --paper2: #c6ebd2; --ink: #24513a; --check: #3fa36b; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='rgba(56,150,98,.17)'%3E%3Ccircle cx='22' cy='18' r='4'/%3E%3Ccircle cx='15' cy='11' r='2.2'/%3E%3Ccircle cx='22' cy='9' r='2.2'/%3E%3Ccircle cx='29' cy='11' r='2.2'/%3E%3Ccircle cx='4' cy='38' r='2'/%3E%3C/g%3E%3C/svg%3E"); --ear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M2 24C3 12 7 4 13 1c2-1 4 0 5 2 4 6 7 13 8 21z' fill='%23dbf3e3'/%3E%3Cpath d='M8 21c1-6 3-11 6-14 3 4 5 8 6 14z' fill='%23f6b9c7'/%3E%3C/svg%3E"); }
.c4 { --paper: #eee6fc; --paper2: #dccff6; --ink: #3d2f66; --check: #8a6ad8; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='rgba(122,92,206,.17)'%3E%3Cpath d='M22 8c1 6 3 8 9 9-6 1-8 3-9 9-1-6-3-8-9-9 6-1 8-3 9-9z'/%3E%3Cpath d='M4 33c.5 3 1.5 4 4.5 4.5C5.5 38 4.5 39 4 42c-.5-3-1.5-4-4.5-4.5C2.5 37 3.5 36 4 33z'/%3E%3C/g%3E%3C/svg%3E"); --ear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M2 24C3 12 7 4 13 1c2-1 4 0 5 2 4 6 7 13 8 21z' fill='%23e8dffb'/%3E%3Cpath d='M8 21c1-6 3-11 6-14 3 4 5 8 6 14z' fill='%23f6b9c7'/%3E%3C/svg%3E"); }
.sticky {
  position: absolute; pointer-events: auto; touch-action: none; cursor: grab;
  width: 280px; padding: 24px 22px 22px; border-radius: 22px;
  color: var(--ink); font: 600 16.5px/1.45 Nunito, var(--sans);
  background: var(--pattern) 0 0 / 44px 44px, linear-gradient(170deg, var(--paper), var(--paper2));
  transform: rotate(var(--r, -3deg));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 22px 36px -16px rgba(60,30,80,.42), 0 3px 8px rgba(60,30,80,.12);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s;
}
.sticky::before, .sticky::after { content: ""; position: absolute; top: -17px; width: 30px; height: 26px; background: var(--ear) center / contain no-repeat; z-index: -1; }
.sticky::before { left: 26px; transform: rotate(-14deg); }
.sticky::after { right: 26px; transform: rotate(14deg) scaleX(-1); }
.sticky:hover { transform: rotate(calc(var(--r, -3deg) * .5)) scale(1.02); }
.sticky.dragging { cursor: grabbing; transform: rotate(0) scale(1.05); box-shadow: 0 34px 44px -14px rgba(60,30,80,.5); transition: box-shadow .25s; }
.sticky.hello { animation: dropIn .9s cubic-bezier(.2, .9, .3, 1.25) .2s both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-60px) rotate(12deg) scale(1.2); } }
.kao { font: 500 11px/1 ui-monospace, Menlo, monospace; letter-spacing: 1px; color: var(--ink); opacity: .45; }
.n-title { font: 600 30px/1.08 Fredoka, var(--sans); letter-spacing: -.01em; margin-top: 12px; }
.n-list { list-style: none; display: grid; gap: 9px; margin-top: 14px; }
.n-list li, .n-list button { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; color: inherit; }
.ck { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.8px solid currentColor; opacity: .45; }
.done .ck { opacity: 1; border-color: var(--check); background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.done .t { text-decoration: line-through; opacity: .5; }
.n-list .leave:hover .t { text-decoration: underline wavy; text-underline-offset: 4px; }
.n-list .leave:hover .ck { opacity: .8; }
.sticky.user { width: 210px; min-height: 190px; padding: 22px 18px 16px; }
.sticky.user .body { outline: none; min-height: 120px; margin-top: 10px; cursor: text; user-select: text; -webkit-user-select: text; white-space: pre-wrap; }
.sticky.user .x { position: absolute; top: 10px; right: 12px; width: 20px; height: 20px; font: 600 15px/1 var(--sans); color: var(--ink); opacity: 0; transition: opacity .15s; }
.sticky.user:hover .x { opacity: .5; }

/* ---------- Pages ---------- */
.page {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; overflow-x: hidden;
  padding: 120px 24px 150px; user-select: text; -webkit-user-select: text;
  opacity: 0; visibility: hidden; transform: translateY(40px);
  transition: opacity .45s ease, transform .7s cubic-bezier(.2, .8, .2, 1), visibility 0s .7s;
}
.page.show { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.kraft { background: var(--noise), var(--fibers), var(--kraft); color: #f7efe6; }
.cream { background: var(--noise), var(--fibers), var(--cream); color: var(--ink); }
.display { font: 400 clamp(58px, 9vw, 128px)/.92 var(--serif); letter-spacing: -.035em; text-align: center; white-space: pre-line; }
.lede { max-width: 620px; margin: 28px auto 0; text-align: center; font-size: 18px; line-height: 1.6; }
.lede + .lede { margin-top: 12px; }
.page .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.page.show .reveal { opacity: 1; transform: none; }
.page.show .reveal.d1 { transition-delay: .12s; } .page.show .reveal.d2 { transition-delay: .24s; } .page.show .reveal.d3 { transition-delay: .36s; } .page.show .reveal.d4 { transition-delay: .48s; }

/* Manila folders with polaroids */
.folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1180px; margin: 80px auto 0; }
.mfolder { text-align: center; color: inherit; }
.mf-art { position: relative; aspect-ratio: 1 / .95; margin: 0 auto; width: 100%; max-width: 360px; }
.mf-back { position: absolute; left: 8%; right: 14%; top: 4%; bottom: 4%; border-radius: 6px; background: var(--noise), var(--manila); box-shadow: 0 16px 30px -12px rgba(0,0,0,.45); }
.mf-back::before { content: ""; position: absolute; right: -7px; top: 3%; bottom: 3%; width: 12px; border-radius: 0 5px 5px 0; background: #eee5d3; box-shadow: 2px 0 0 #e6ddf0; }
.mf-back::after { content: ""; position: absolute; right: -30px; top: 6%; height: 42%; width: 30px; border-radius: 0 10px 10px 0; background: var(--noise), var(--manila); }
.mf-tab { position: absolute; right: 7%; top: 12%; writing-mode: vertical-rl; font: 500 17px/1 var(--hand); color: #3e3129; z-index: 1; }
.pola {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: var(--ar, 1);
  background: #f7f5f0; padding: 5px; transform: rotate(var(--r));
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
  transition: transform .5s cubic-bezier(.2, .9, .3, 1.3);
}
.pola.dark { background: #111; }
.pola.bare { padding: 0; }
.pola .shot { width: 100%; height: 100%; background: var(--bg); background-size: cover; background-position: center; }
.mfolder:hover .pola, .mfolder:focus-visible .pola { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * 1.8)) scale(1.04); }
.mfolder h2 { font: 400 clamp(40px, 4.4vw, 58px)/1 var(--serif); letter-spacing: -.02em; margin-top: 34px; }
.mfolder p { font-size: 17px; line-height: 1.5; margin: 12px auto 0; max-width: 330px; }
.mfolder .go { display: inline-block; margin-top: 14px; font: 500 22px var(--hand); opacity: 0; transform: translateY(-4px); transition: .3s; }
.mfolder:hover .go { opacity: .85; transform: none; }

.facts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 80px auto 0; }
.opill { padding: 8px 18px; border-radius: 99px; border: 1.2px solid currentColor; font-size: 15px; opacity: .92; text-decoration: none; }
button.opill:hover, a.opill:hover { background: rgba(255,255,255,.12); }
.cream button.opill:hover, .cream a.opill:hover { background: rgba(47,38,36,.06); }
.opill.solid { background: #6a605d; color: #fff; border-color: #6a605d; }
.opill.solid:hover { background: #4f4644 !important; }
.center-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Work page */
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 60px 44px; max-width: 1080px; margin: 80px auto 0; }
.wcard { position: relative; text-align: left; background: #fbfaf6; padding: 12px 12px 18px; box-shadow: 0 14px 28px -10px rgba(40,20,15,.35); transform: rotate(var(--r)); transition: transform .45s cubic-bezier(.2, .9, .3, 1.3), box-shadow .3s; }
.wcard::before { content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%) rotate(calc(var(--r) * -1.5)); background: rgba(236, 214, 208, .75); }
.wcard:hover { transform: rotate(0) translateY(-10px) scale(1.03); box-shadow: 0 26px 40px -14px rgba(40,20,15,.4); }
.wcard .cover { aspect-ratio: 1; background: var(--bg); background-size: cover; background-position: center; display: grid; place-items: center; font: 400 72px/1 var(--serif); color: rgba(255,255,255,.8); }
.wcard .cap { font: 400 24px/1.1 var(--serif); letter-spacing: -.01em; margin-top: 14px; }
.wcard small { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* Contact page */
.contact-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; min-height: calc(100vh - 270px); }
.contact-wrap .display { text-align: left; font-size: clamp(56px, 7vw, 104px); }
.contact-copy p { font-size: 18px; line-height: 1.6; margin-top: 26px; max-width: 470px; }
.contact-copy .center-row { justify-content: flex-start; margin-top: 26px; }
.collage { position: relative; aspect-ratio: 1.05; width: 100%; max-width: 620px; }
.collage .mf-back { left: 12%; right: 16%; top: 16%; bottom: 6%; transform: rotate(-24deg); }
.collage .mf-tab { z-index: 0; right: auto; left: 12%; top: 30%; transform: rotate(-24deg); writing-mode: horizontal-tb; font-size: 26px; }
.collage:hover .pola { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * 1.4)); }
.receipt {
  position: absolute; left: -6%; top: 6%; width: 30%; min-width: 170px; padding: 18px 16px 22px; z-index: 0;
  background: var(--noise), #fbf9ec; color: #5a554b; font: 11.5px/1.7 "JetBrains Mono", monospace;
  transform: rotate(-20deg); box-shadow: 0 8px 18px rgba(40,20,15,.2);
}
.receipt .r-h { text-align: center; letter-spacing: .15em; margin-bottom: 6px; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1.5px dashed #b8b2a4; margin: 8px 0; }
.clip { position: absolute; width: 6.5%; left: 19%; top: 29%; z-index: 5; transform: rotate(-40deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }

/* ---------- Windows ---------- */
#windows { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.window {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column; overflow: hidden;
  min-width: 280px; min-height: 200px;
  background: rgba(250, 247, 242, .93); color: var(--ink);
  backdrop-filter: blur(40px) saturate(160%); -webkit-backdrop-filter: blur(40px) saturate(160%);
  border-radius: 12px;
  box-shadow: 0 0 0 .5px rgba(40,20,15,.3), 0 24px 70px 4px rgba(40,20,15,.35);
  animation: winOpen .32s cubic-bezier(.2, .9, .3, 1.15);
  transition: opacity .25s, transform .35s cubic-bezier(.4, 0, .2, 1), left .3s, top .3s, width .3s, height .3s, border-radius .3s;
}
.window:not(.active) { box-shadow: 0 0 0 .5px rgba(40,20,15,.25), 0 12px 36px rgba(40,20,15,.2); }
.window.dragging, .window.resizing { transition: none; }
@keyframes winOpen { from { opacity: 0; transform: scale(.88) translateY(24px); } }
.window.closing { animation: winClose .18s ease-in forwards; }
@keyframes winClose { to { opacity: 0; transform: scale(.92); } }
.window.minimized { transform: translateY(90vh) scale(.08); opacity: 0; pointer-events: none; }
.window.maximized { left: 0 !important; top: 70px !important; width: 100% !important; height: calc(100% - 70px - var(--dock-h) - 18px) !important; border-radius: 0; }
.titlebar { height: 40px; flex: none; position: relative; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); touch-action: none; }
.lights { display: flex; gap: 8px; position: relative; z-index: 1; }
.light { width: 12px; height: 12px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.light.close { background: #ff5f57; } .light.min { background: #febc2e; } .light.max { background: #28c840; }
.window:not(.active) .light { background: rgba(128,128,128,.3); }
.window:not(.active) .lights:hover .light.close { background: #ff5f57; }
.window:not(.active) .lights:hover .light.min { background: #febc2e; }
.window:not(.active) .lights:hover .light.max { background: #28c840; }
.light::after { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 system-ui, sans-serif; color: rgba(0,0,0,.55); opacity: 0; }
.lights:hover .light::after { opacity: 1; }
.light.close::after { content: "×"; font-size: 11px; } .light.min::after { content: "−"; } .light.max::after { content: "+"; }
.wtitle { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--muted); pointer-events: none; }
.window.active .wtitle { color: var(--ink); }
.wbody { flex: 1; overflow: auto; position: relative; user-select: text; -webkit-user-select: text; }
.resize { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; z-index: 2; }

/* ---------- Dock ---------- */
#dock {
  position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 9000;
  height: var(--dock-h); display: flex; align-items: flex-end; gap: 6px; padding: 7px 9px;
  background: rgba(255, 244, 238, .22);
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .32); border-radius: 22px;
  box-shadow: 0 10px 40px rgba(40,20,15,.22);
}
.dock-item { position: relative; width: 52px; height: 52px; flex: none; display: flex; align-items: flex-end; justify-content: center; transition: width .18s ease, height .18s ease; }
.dock-item .tile { width: 100%; height: 100%; }
.dock-item .tip { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); background: rgba(47,38,36,.85); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.dock-item:hover .tip { opacity: 1; }
.dock-item.running::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,.95); }
.dock-item.bounce .tile { animation: bounce .7s cubic-bezier(.3, 0, .3, 1); }
@keyframes bounce { 30% { transform: translateY(-22px); } 55% { transform: translateY(0); } 75% { transform: translateY(-8px); } }
.dock-sep { width: 1px; align-self: stretch; margin: 2px 3px; background: rgba(255,255,255,.4); }

/* ---------- Spotlight & toast ---------- */
#spotlight { position: fixed; inset: 0; z-index: 16000; display: flex; justify-content: center; padding-top: 18vh; background: rgba(40,20,15,.1); }
.spot-box { width: min(620px, calc(100% - 32px)); height: fit-content; border-radius: 16px; overflow: hidden; background: rgba(250,247,242,.88); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); box-shadow: 0 0 0 .5px rgba(0,0,0,.15), 0 24px 60px rgba(40,20,15,.3); animation: pop .15s ease-out; }
.spot-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--muted); }
.spot-input input { flex: 1; border: 0; background: none; outline: none; font-size: 22px; color: var(--ink); }
#spotResults:not(:empty) { border-top: 1px solid var(--line); padding: 6px; max-height: 50vh; overflow: auto; }
.spot-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border-radius: 8px; text-align: left; font-size: 15px; }
.spot-row .k { margin-left: auto; font-size: 12px; opacity: .6; }
.spot-row.sel { background: var(--rose); color: #fff; }
#toast { position: fixed; left: 50%; top: 80px; transform: translate(-50%, -20px); z-index: 17000; background: rgba(250,247,242,.92); padding: 10px 18px; border-radius: 12px; font-size: 15px; box-shadow: 0 10px 30px rgba(40,20,15,.25); opacity: 0; pointer-events: none; transition: .3s cubic-bezier(.2, .9, .3, 1.2); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Window content ---------- */
.pad { padding: 24px 28px; }
.muted { color: var(--muted); }
.btn { padding: 8px 18px; border-radius: 99px; font-size: 14px; font-weight: 500; border: 1.2px solid var(--ink); transition: transform .1s, background .2s; text-decoration: none; display: inline-block; }
.btn:hover { background: rgba(47,38,36,.06); }
.btn:active { transform: scale(.97); }
.btn.primary { background: #6a605d; border-color: #6a605d; color: #fff; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 14px; border-radius: 99px; font-size: 14px; border: 1px solid rgba(47,38,36,.3); }
button.chip.on { background: #6a605d; border-color: #6a605d; color: #fff; }

.finder { display: flex; height: 100%; }
.sidebar { width: 180px; flex: none; padding: 12px 8px; background: rgba(236,214,208,.35); border-right: 1px solid var(--line); }
.side-h { font-size: 12px; font-weight: 500; color: var(--muted); padding: 4px 10px 6px; }
.sidebar button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 10px; border-radius: 6px; font-size: 14px; text-align: left; }
.sidebar button:hover { background: rgba(142,106,99,.14); }
.finder-main { flex: 1; overflow: auto; padding: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.ficon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 10px; font-size: 13px; text-align: center; }
.ficon:hover { background: rgba(142,106,99,.1); }
.ficon .img { height: 70px; display: grid; place-items: center; }
.ficon .img > * { transform: scale(.8); }
.ficon .tile { width: 60px; height: 60px; }

.pdetail .cover { aspect-ratio: 16 / 9; border-radius: 4px; background: var(--bg); background-size: cover; background-position: center; margin: 24px 0 4px; display: grid; place-items: center; font: 400 90px var(--serif); color: rgba(255,255,255,.8); }
.pdetail h2 { font: 400 36px/1.05 var(--serif); letter-spacing: -.02em; }
.pdetail p { line-height: 1.65; margin-top: 12px; font-size: 16px; }

.pdfview { background: var(--noise), #b8aba6; min-height: 100%; padding: 24px 16px; }
.pdfbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 8px 12px; background: #f5f1eb; border-bottom: 1px solid var(--line); }
.page-sheet { background: #fff; color: var(--ink); max-width: 560px; margin: 0 auto; padding: 46px 46px 52px; box-shadow: 0 6px 24px rgba(40,20,15,.3); }
.page-sheet h1 { font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.page-sheet .sub { color: var(--muted); font-size: 14px; margin-top: 8px; }
.page-sheet h4 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--rose-deep); margin: 30px 0 12px; }
.tl { border-left: 1.5px solid #e9dfdb; padding-left: 16px; margin-left: 4px; position: relative; margin-bottom: 16px; }
.tl::before { content: ""; position: absolute; left: -6.5px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 1.5px solid var(--rose-deep); }
.tl b { font-weight: 600; font-size: 15px; }
.tl .when { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tl p { font-size: 14.5px; margin-top: 6px; line-height: 1.5; }

.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 6px; }
.ph { aspect-ratio: 1; position: relative; overflow: hidden; }
.ph .thumb { position: absolute; inset: 0; transition: transform .4s; }
.ph:hover .thumb { transform: scale(1.06); }
.ph small { position: absolute; left: 8px; bottom: 6px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.viewer { height: 100%; display: flex; flex-direction: column; background: var(--noise), #2a2321; color: #f3ebe6; }
.viewer .stage { flex: 1; display: grid; place-items: center; padding: 20px; min-height: 0; }
.viewer .big { height: 100%; max-width: 100%; aspect-ratio: 1; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.viewer .big.src { width: 100%; aspect-ratio: auto; background-size: contain; background-repeat: no-repeat; box-shadow: none; }
.viewer .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 14px; }
.viewer .bar button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font-size: 16px; }
.viewer .bar button:hover { background: rgba(255,255,255,.1); }

.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.gcard { background: #fff; border-radius: 16px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: 0 0 0 .5px var(--line); transition: transform .2s; }
.gcard:hover { transform: translateY(-4px) rotate(-1deg); }
.gcard .tile { width: 70px; height: 70px; }
.gcard b { font: 400 20px var(--serif); }
.gcard small { color: var(--muted); font-size: 13px; }

.mail { display: flex; flex-direction: column; height: 100%; }
.mail-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.mrow { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mrow span { color: var(--muted); width: 62px; flex: none; }
.mrow input { flex: 1; border: 0; background: none; outline: none; padding: 11px 0; }
.mail textarea { flex: 1; border: 0; outline: none; resize: none; padding: 16px; background: #fff; font-size: 16px; line-height: 1.55; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.socials a { color: var(--rose-deep); text-decoration: none; font-weight: 500; }

.term { background: rgba(28, 23, 22, .97); color: #ece4e0; font: 13px/1.55 "JetBrains Mono", ui-monospace, Menlo, monospace; padding: 12px 14px; cursor: text; }
.term-out div { white-space: pre-wrap; word-break: break-word; }
.term .dim { color: #8f8480; }
.term .pink { color: #f0b7ad; }
.term b { color: #f3d19a; font-weight: 600; }
.term-line { display: flex; gap: 8px; }
.prompt { color: #9fd49a; flex: none; }
.term-line input { flex: 1; border: 0; outline: none; background: none; color: #fff; font: inherit; caret-color: #f0b7ad; }
.window:has(.term) .titlebar { background: #2f2826; border-color: #000; }
.window:has(.term) .wtitle { color: #cdbfba; }

.game { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; min-height: 100%; }
.hud { display: flex; justify-content: space-between; width: 100%; max-width: 400px; font-size: 15px; }
.hud b { font: 400 22px var(--serif); margin-left: 6px; }
.canvas-wrap { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 .5px var(--line), 0 8px 24px rgba(40,20,15,.15); }
.canvas-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(47, 38, 36, .5); color: #fff; backdrop-filter: blur(3px); }
.overlay .big { font-size: 54px; }
.overlay p { margin: 8px 0 16px; font-size: 15px; }
.overlay .btn { border-color: #fff; background: #fff; color: var(--ink); }
.pads { display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; }
.pads button { height: 44px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px var(--line); font-size: 18px; }
.pads .u { grid-column: 2; } .pads .l { grid-column: 1; grid-row: 2; } .pads .d { grid-column: 2; grid-row: 2; } .pads .r { grid-column: 3; grid-row: 2; }
@media (pointer: fine) { .pads { display: none; } }

.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 400px; }
.mcard { aspect-ratio: 1; perspective: 600px; }
.mcard .in { position: relative; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.mcard.flip .in, .mcard.done .in { transform: rotateY(180deg); }
.mcard .face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.mcard .front { background: var(--noise), linear-gradient(135deg, #d4b0a6, #b1877d); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 8px rgba(40,20,15,.15); font: 400 28px var(--serif); color: rgba(255,255,255,.75); }
.mcard .back { background: #fff; transform: rotateY(180deg); font-size: 34px; box-shadow: 0 0 0 .5px var(--line); }
.mcard.done .back { background: #f3e4df; }
.win-msg { font: 400 19px var(--serif); min-height: 24px; text-align: center; }

.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 300px; }
.tcell { aspect-ratio: 1; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px var(--line); font: 400 54px/1 var(--serif); transition: background .2s; }
.tcell:hover:empty { background: #f7eeeb; }
.tcell.x { color: #b27b70; } .tcell.o { color: #4f4644; }
.tcell.win { background: #f3e4df; }
.tcell span { display: inline-block; animation: pop .25s cubic-bezier(.2, .9, .3, 1.5); }

.trash-list { list-style: none; }
.trash-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 15px; transition: .4s; }
.trash-list li:nth-child(odd) { background: rgba(142,106,99,.07); }
.trash-list li.gone { opacity: 0; transform: translateX(40px); }

.aboutsite { text-align: center; padding: 34px 24px; }
.aboutsite h2 { font: 400 44px var(--serif); letter-spacing: -.02em; }
.aboutsite p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .folders { grid-template-columns: 1fr; max-width: 380px; gap: 70px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-copy { order: -1; }
}
@media (max-width: 700px) {
  :root { --dock-h: 60px; }
  #nav { top: 14px; gap: 6px; }
  .pill { font-size: 14px; padding: 7px 11px 8px; }
  .page { padding: 86px 18px 130px; }
  .lede { font-size: 16px; }
  .window, .window.maximized { left: 0 !important; top: 56px !important; width: 100% !important; height: calc(100% - 56px - var(--dock-h) - 16px) !important; border-radius: 14px; min-width: 0; }
  .resize { display: none; }
  #dock { gap: 4px; padding: 6px 7px; max-width: calc(100% - 16px); }
  .dock-item { width: 44px; height: 44px; }
  .dock-item .tip, .dock-extra { display: none; }
  .icon .label { font-size: 13px; }
  .sidebar { display: none; }
  .pad { padding: 18px; }
  .page-sheet { padding: 28px 22px; }
  .receipt { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   New apps: Documents/Pages, TV, Music, Library, Notes Wall, Neko Notes
   ===================================================================== */
.appimg { width: 66px; height: 66px; display: block; }
.ficon .appimg { width: 60px; height: 60px; }
.dock-item .appimg { width: 100%; height: 100%; }
.tile .tv-glyph { font: 600 38cqh/1 -apple-system, "SF Pro Display", system-ui, sans-serif; color: #fff; letter-spacing: -.04em; }
.tile .music-glyph { font: 400 58cqh/1 system-ui, sans-serif; color: #fff; }

/* Cork board icon */
.corkicon { position: relative; width: 70px; height: 56px; border-radius: 4px; background: radial-gradient(circle at 30% 30%, rgba(0,0,0,.08) 1px, transparent 1.5px) 0 0 / 5px 5px, #c89b6d; border: 4px solid #8a5d3b; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.corkicon i { position: absolute; width: 20px; height: 18px; box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.corkicon i:nth-child(1) { left: 5px; top: 5px; background: #fbe7e2; transform: rotate(-6deg); }
.corkicon i:nth-child(2) { left: 25px; top: 18px; background: #fbf4dc; transform: rotate(4deg); }
.corkicon i:nth-child(3) { left: 42px; top: 6px; background: #e8eee2; transform: rotate(-2deg); }
.dock-item .corkicon { transform: scale(.7); }

/* Sticky note: "leave me a note" button + composer */
#composer { position: fixed; inset: 0; z-index: 8500; pointer-events: none; }
.sticky.compose { width: 270px; padding: 28px 20px 16px; z-index: 1; animation: dropIn .6s cubic-bezier(.2, .9, .3, 1.25) both; }
.sticky.compose .x { position: absolute; top: 6px; right: 10px; font: 600 18px/1 var(--sans); color: rgba(0,0,0,.4); }
.c-head { font: 700 28px/1 var(--hand); }
.compose textarea { display: block; width: 100%; height: 118px; margin-top: 10px; resize: none; border: 0; outline: none; background: repeating-linear-gradient(transparent 0 27px, rgba(74,52,48,.16) 27px 28px); font: 500 24px/28px var(--hand); color: inherit; }
.compose .c-name { width: 100%; margin-top: 6px; border: 0; outline: none; background: none; font: 600 22px var(--hand); color: inherit; }
.compose .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.c-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.swatches { display: flex; gap: 6px; }
.sw { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); }
.sw.on { outline: 2px solid #4a3430; outline-offset: 2px; }
.sw.c1 { background: #f3cfc7; } .sw.c2 { background: #f1e3b5; } .sw.c3 { background: #cfdcc4; } .sw.c4 { background: #dccde6; }
.count { font: 12px var(--sans); opacity: .6; }
.compose .stick { width: 100%; margin-top: 12px; padding: 9px; border-radius: 99px; background: #4a3430; color: #fbe7e2; font: 500 15px var(--sans); }
.compose .stick:disabled { opacity: .6; }
.c-msg { font: 12.5px/1.4 var(--sans); margin-top: 10px; opacity: .75; }
.c-msg a { color: inherit; }
.sticky.compose.sent { animation: peel .7s ease-in forwards; }
@keyframes peel { 30% { transform: rotate(-4deg) scale(1.05); } to { transform: translate(40vw, 30vh) rotate(25deg) scale(.1); opacity: 0; } }

/* Documents (Finder list) */
.docs { display: flex; flex-direction: column; height: 100%; }
.docs-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.crumb { font-weight: 500; }
.docs-search { width: 180px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; outline: none; font-size: 13px; }
.docs-head, .docs-row { display: grid; grid-template-columns: 1fr 110px 60px; gap: 12px; align-items: center; padding: 6px 16px; font-size: 13px; }
.docs-head { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.docs-list { overflow: auto; flex: 1; }
.docs-row { width: 100%; text-align: left; padding: 10px 16px; color: var(--muted); }
.docs-row:nth-child(even) { background: rgba(142,106,99,.05); }
.docs-row:hover { background: rgba(198,161,151,.25); }
.docs-row .dname { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.docs-row b { display: block; font-weight: 500; font-size: 14px; }
.docs-row small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 380px; }
.pagesicon { position: relative; flex: none; width: 30px; height: 38px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px #e2d9d5, 0 2px 4px rgba(0,0,0,.08); }
.pagesicon::before { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 16px; background: repeating-linear-gradient(#d8ccc7 0 1.5px, transparent 1.5px 4px); }
.pagesicon i { position: absolute; right: -4px; bottom: -3px; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #ffb347, #f7852d); }
.docs-empty { padding: 30px; text-align: center; color: var(--muted); }

/* Pages document viewer */
.pages { display: flex; flex-direction: column; height: 100%; }
.pages-bar { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: rgba(250,247,242,.9); overflow-x: auto; }
.pb { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 50px; padding: 3px 6px; border-radius: 6px; font-size: 10.5px; color: var(--muted); }
.pb b { font-size: 16px; font-weight: 400; color: var(--ink); }
button.pb:hover { background: rgba(142,106,99,.1); }
.pages-bar .grow { flex: 1; }
.pages-canvas { flex: 1; overflow: auto; background: #d9d4d1; padding: 36px 20px 60px; }
.sheet { max-width: 680px; margin: 0 auto; background: #fff; padding: 72px 76px 80px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 12px 30px rgba(40,20,15,.12); color: #2a2220; user-select: text; -webkit-user-select: text; }
.sheet-meta { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.sheet h1 { font: 400 clamp(32px, 4vw, 46px)/1.05 var(--serif); letter-spacing: -.02em; margin: 10px 0 28px; }
.prose { font: 17px/1.75 Georgia, "Times New Roman", serif; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin-top: 1.6em; }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 22px; }
.prose a { color: var(--rose-deep); }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; border-radius: 4px; }
.prose iframe { aspect-ratio: 16 / 9; width: 100%; border: 0; }
.prose blockquote { border-left: 3px solid var(--rose); padding-left: 18px; font-style: italic; color: #5d4f4b; }
.prose figure { margin: 1.4em 0; } .prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose code { background: #f4efec; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.sheet-sign { margin-top: 40px; font: 700 30px var(--hand); color: var(--rose-deep); }

/* TV */
.tv { background: #0b0b0d; color: #f5f5f7; font-family: -apple-system, "SF Pro Text", var(--sans); }
.window:has(.tv) .titlebar { background: #1a1a1d; border-color: #000; }
.window:has(.tv) .wtitle { color: #cfcfd4; }
.tv-top { position: sticky; top: 0; z-index: 2; display: flex; gap: 22px; padding: 12px 24px; font-size: 14px; color: #8e8e93; background: linear-gradient(#0b0b0d, rgba(11,11,13,.85)); }
.tv-top .on { color: #fff; font-weight: 600; }
.tv-top a { margin-left: auto; color: #fff; text-decoration: none; opacity: .8; }
.tv-hero { position: relative; aspect-ratio: 21 / 9; min-height: 260px; margin: 0 24px; border-radius: 14px; overflow: hidden; background: var(--img); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.tv-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.35) 55%, transparent), linear-gradient(0deg, rgba(0,0,0,.6), transparent 60%); }
.tv-hero-copy { position: relative; padding: 28px 30px; max-width: 520px; }
.tv-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #bbb; }
.tv-hero h2 { font: 700 30px/1.1 -apple-system, system-ui, sans-serif; margin: 6px 0 10px; letter-spacing: -.01em; }
.tv-hero p { font-size: 14px; color: #d0d0d5; line-height: 1.5; }
.tv-btn { display: inline-block; margin-top: 16px; padding: 10px 26px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; font-size: 15px; text-decoration: none; }
.tv-btn:hover { background: #e5e5ea; }
.tv-row-h { margin: 26px 24px 10px; font-size: 18px; font-weight: 600; }
.tv-row { display: flex; gap: 16px; overflow-x: auto; padding: 0 24px 24px; scroll-snap-type: x mandatory; }
.tv-card { flex: none; width: 250px; text-align: left; scroll-snap-align: start; }
.tv-thumb { aspect-ratio: 16 / 9; border-radius: 10px; background-size: cover; background-position: center; display: grid; place-items: center; transition: transform .25s; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.tv-thumb span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.tv-card:hover .tv-thumb { transform: scale(1.04); }
.tv-card:hover .tv-thumb span { opacity: 1; }
.tv-cap { font-size: 14px; margin-top: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card small { color: #8e8e93; font-size: 12px; }
.tv-player { position: absolute; inset: 0; z-index: 5; background: #000; display: flex; flex-direction: column; }
.tv-player iframe { flex: 1; width: 100%; border: 0; }
.tv-back { align-self: flex-start; margin: 10px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font-size: 14px; }
.tv-empty { display: grid; place-items: center; gap: 12px; text-align: center; padding: 60px 20px; color: #aaa; }
.tv-empty h3 { color: #fff; font-size: 22px; }
.static { width: 220px; aspect-ratio: 4 / 3; border-radius: 18px; border: 8px solid #222; background: var(--noise), #555; background-size: 120px; animation: static .25s steps(4) infinite; }
@keyframes static { 25% { background-position: 30px 10px; } 50% { background-position: -20px 40px; } 75% { background-position: 50px -30px; } }

/* Music */
.music { display: flex; flex-direction: column; background: #fbfaf8; }
.m-top { display: grid; grid-template-columns: auto 1fr 120px; align-items: center; gap: 18px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(#f6f2ee, #efe9e4); }
.m-ctrl { display: flex; gap: 6px; }
.m-ctrl button { width: 34px; height: 34px; border-radius: 50%; font-size: 15px; color: var(--ink); }
.m-ctrl .m-play { width: 42px; height: 42px; background: var(--ink); color: #fff; font-size: 16px; }
.m-lcd { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.m-disc { flex: none; width: 44px; height: 44px; border-radius: 50%; background: repeating-radial-gradient(#1b1b1b 0 1.5px, #2c2c2c 1.5px 3px); display: grid; place-items: center; }
.m-disc-art { width: 18px; height: 18px; border-radius: 50%; background: var(--rose); background-size: cover; background-position: center; }
.music.playing .m-disc { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-lcd-text { flex: 1; min-width: 0; text-align: center; }
.m-lcd-text b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-lcd-text small { display: block; font-size: 12px; color: var(--muted); }
.m-prog { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.m-seek, .m-vol { -webkit-appearance: none; appearance: none; height: 3px; border-radius: 3px; background: rgba(47,38,36,.18); accent-color: var(--ink); }
.m-seek { flex: 1; }
.m-seek::-webkit-slider-thumb, .m-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.m-body { flex: 1; display: flex; min-height: 0; }
.m-side { width: 170px; flex: none; padding: 12px 8px; background: rgba(236,214,208,.3); border-right: 1px solid var(--line); }
.m-side button { display: block; width: 100%; text-align: left; padding: 5px 10px; border-radius: 6px; font-size: 13.5px; }
.m-side button.on { background: rgba(242,58,94,.12); color: #d42a4c; }
.m-main { flex: 1; overflow: auto; }
.m-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.m-table th { position: sticky; top: 0; background: #fbfaf8; text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.m-table td { padding: 7px 10px; border-bottom: 1px solid rgba(0,0,0,.04); }
.m-table tr[data-i] { cursor: default; }
.m-table tr[data-i]:hover { background: rgba(198,161,151,.15); }
.m-table tr.now td { color: #d42a4c; font-weight: 500; }
.m-cover { display: block; width: 32px; height: 32px; border-radius: 4px; background: linear-gradient(135deg, #f3cfc7, #b98b82); background-size: cover; background-position: center; }
.m-empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 50px 20px; color: var(--muted); }
.m-empty h3 { font: 400 28px var(--serif); color: var(--ink); }
.vinyl { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #f3cfc7 0 18%, #1c1c1c 19% 21%, transparent 22%), repeating-radial-gradient(#1b1b1b 0 2px, #2b2b2b 2px 4px); box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: spin 6s linear infinite; }

/* Library / bookshelf */
.library { background: var(--noise), #efe7de; display: flex; flex-direction: column; }
.lib-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 28px 8px; }
.lib-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 28px 28px; }
.lib-head h2 { font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.lib-stats { color: var(--muted); font-size: 14px; }
.lib-sort { padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(47,38,36,.3); background: transparent; font: inherit; font-size: 13px; }
.lib-shelves { flex: 1; padding: 6px 28px 26px; }
.shelf { position: relative; display: flex; align-items: flex-end; gap: 2px; min-height: 216px; padding: 0 18px; margin-top: 18px; border-bottom: 16px solid #8a5d3b; box-shadow: 0 14px 12px -8px rgba(40,20,15,.35); background: linear-gradient(transparent 92%, rgba(0,0,0,.06)); }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 4px; background: #a8764f; }
.spine { position: relative; width: var(--w); height: var(--h); flex: none; border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 12%, rgba(255,255,255,.12) 45%, transparent 60%, rgba(0,0,0,.2)), var(--c); color: #fbf6f0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 0 10px; transform: rotate(var(--tilt)); transform-origin: bottom left; transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); }
.spine.light { color: #3b2f2b; }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: var(--a, currentColor); opacity: .85; }
.spine::before { top: 6px; } .spine::after { bottom: 26px; }
.spine:hover, .spine:focus-visible { transform: translateY(-14px) rotate(var(--tilt)); z-index: 1; }
.spine .st { writing-mode: vertical-rl; transform: rotate(180deg); font: 400 13px/1.1 var(--serif); max-height: calc(var(--h) - 48px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spine .sa { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; max-width: calc(var(--w) - 4px); overflow: hidden; }

.lib-detail { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; background: rgba(47,38,36,.35); backdrop-filter: blur(3px); animation: pop .2s; }
.book-card { position: relative; display: flex; gap: 26px; width: min(620px, 100%); max-height: 100%; overflow: auto; padding: 28px; border-radius: 16px; background: #faf7f2; box-shadow: 0 30px 60px rgba(40,20,15,.35); }
.lib-close { position: absolute; top: 10px; right: 14px; font-size: 22px; color: var(--muted); }
.book-cover { position: relative; flex: none; width: 170px; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; background: var(--c); box-shadow: 0 16px 30px -8px rgba(40,20,15,.5), inset 6px 0 0 rgba(0,0,0,.12); animation: bookIn .5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes bookIn { from { transform: translateY(30px) rotateY(-30deg); opacity: 0; } }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover .fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 14px; color: #fbf6f0; text-align: center; }
.book-cover .fallback.light { color: #3b2f2b; }
.book-cover .fallback b { font: 400 20px/1.15 var(--serif); }
.book-cover .fallback span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.book-info h3 { font: 400 28px/1.1 var(--serif); letter-spacing: -.01em; }
.book-stars { color: #c8903a; font-size: 18px; letter-spacing: 2px; margin: 10px 0 4px; }
.small { font-size: 13px; }
.book-review { margin: 14px 0; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.book-info .btn { margin-top: 12px; }

/* Notes wall */
.wall { display: flex; flex-direction: column; background: radial-gradient(circle at 20% 30%, rgba(0,0,0,.07) 1px, transparent 1.6px) 0 0 / 7px 7px, radial-gradient(circle at 70% 60%, rgba(255,255,255,.08) 1px, transparent 1.6px) 0 0 / 9px 9px, #c89b6d; }
.wall-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: rgba(250,247,242,.9); border-bottom: 5px solid #8a5d3b; }
.wall-head h2 { font: 400 30px/1 var(--serif); }
.wall-head small { color: var(--muted); }
.wall-board { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 22px; padding: 30px 26px 40px; align-content: start; }
.pinned { position: relative; min-height: 150px; padding: 26px 16px 14px; font-family: var(--hand); color: #4a3430; transform: rotate(var(--r)); box-shadow: 0 12px 16px -8px rgba(40,20,15,.5); transition: transform .3s cubic-bezier(.2, .9, .3, 1.4); animation: iconIn .5s both; }
.pinned:hover { transform: rotate(0) scale(1.05); z-index: 1; }
.pinned.c1 { background: linear-gradient(175deg, #fbe7e2, #f3cfc7); } .pinned.c2 { background: linear-gradient(175deg, #fbf4dc, #f1e3b5); }
.pinned.c3 { background: linear-gradient(175deg, #e8eee2, #cfdcc4); } .pinned.c4 { background: linear-gradient(175deg, #efe6f3, #dccde6); }
.pinned p { font-size: 23px; line-height: 1.1; word-break: break-word; }
.pinned .by { margin-top: 10px; font-size: 20px; opacity: .75; }
.pin { position: absolute; top: 6px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8a, #c0392b 60%, #7d1f16); box-shadow: 1px 3px 3px rgba(0,0,0,.35); }
.wall-empty { grid-column: 1 / -1; text-align: center; padding: 40px; font: 700 26px var(--hand); color: #4a3430; background: rgba(250,247,242,.85); border-radius: 6px; }

/* Neko Notes in a Safari window */
.safari { display: flex; flex-direction: column; background: #fff; }
.s-bar { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: #f7f4f1; }
.s-nav { color: var(--muted); letter-spacing: 6px; font-size: 18px; }
.s-url { flex: 1; max-width: 520px; margin: 0 auto; padding: 5px 12px; border-radius: 8px; background: rgba(47,38,36,.07); font-size: 13px; text-align: center; color: #4a403d; }
.s-open { text-decoration: none; font-size: 16px; color: var(--muted); }
.safari iframe { flex: 1; width: 100%; border: 0; }

@media (max-width: 700px) {
  .docs-head, .docs-row { grid-template-columns: 1fr 90px; }
  .docs-head span:last-child, .docs-row > span:last-child { display: none; }
  .docs-search { width: 120px; }
  .sheet { padding: 40px 24px 50px; }
  .pages-canvas { padding: 16px 8px 40px; }
  .m-top { grid-template-columns: auto 1fr; } .m-vol { display: none; }
  .m-side { display: none; }
  .m-table th:nth-child(4), .m-table td:nth-child(4) { display: none; }
  .tv-hero { aspect-ratio: 4 / 3; margin: 0 12px; } .tv-row { padding: 0 12px 20px; } .tv-row-h { margin-left: 12px; }
  .book-card { flex-direction: column; align-items: center; text-align: center; }
  .lib-shelves { padding: 6px 12px 30px; } .shelf { padding: 0 8px; }
}

/* Suggest-a-book library card */
.lib-card { position: relative; width: min(480px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px 20px; border-radius: 4px; color: #3b2f2b;
  background: #fbf6ea;
  box-shadow: 0 30px 60px rgba(40,20,15,.35); animation: bookIn .45s cubic-bezier(.2, .9, .3, 1.2); }
.lc-top { display: flex; justify-content: space-between; font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .12em; color: #b0463b; padding-bottom: 8px; border-bottom: 2px solid #d9807a; }
.lib-card h3 { font: 400 26px/1.1 var(--serif); margin: 14px 0 6px; }
.lc-row { position: relative; display: flex; align-items: flex-end; gap: 10px; min-height: 36px; border-bottom: 1px solid rgba(120,150,190,.5); }
.lc-row textarea { background: repeating-linear-gradient(transparent 0 33px, rgba(120,150,190,.5) 33px 34px); }
.lc-row > span { flex: none; width: 108px; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8a7a74; padding-bottom: 9px; }
.lc-row input, .lc-row textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 600 22px/34px var(--hand); color: #2f3f6b; resize: none; padding: 0; }
.lc-why { align-items: flex-start; } .lc-why > span { padding: 12px 0 0; }
.lc-results { position: absolute; left: 118px; right: 0; top: 34px; z-index: 2; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(40,20,15,.25); padding: 4px; }
.lc-results button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 6px; text-align: left; }
.lc-results button:hover { background: #f5ece8; }
.lc-results b { display: block; font-size: 13.5px; font-weight: 500; }
.lc-results small { display: block; font-size: 12px; color: var(--muted); }
.lc-thumb { flex: none; width: 28px; height: 40px; border-radius: 2px; background: #e5dcd6 center / cover; }
.lc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.lc-msg { font-size: 13px; color: #b0463b; }
.lib-card .hp { position: absolute; left: -9999px; opacity: 0; }
.lc-stamp { position: absolute; right: 26px; bottom: 60px; padding: 8px 14px; border: 3px solid #b0463b; border-radius: 8px; color: #b0463b; font: 700 24px/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-align: center; transform: rotate(-12deg); animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) both; background: rgba(251,246,234,.8); }
.lc-stamp small { display: block; font: 600 16px var(--hand); letter-spacing: 0; margin-top: 2px; }
@keyframes stamp { from { transform: rotate(-12deg) scale(2.4); opacity: 0; } }
@media (max-width: 700px) { .lc-row > span { width: 76px; } .lc-results { left: 0; } }

/* About page closing line */
.lede.outro { margin-top: 70px; font: 400 clamp(20px, 2.2vw, 26px)/1.45 var(--serif); max-width: 700px; }

/* Side Quests window */
.quests { background: var(--noise), #f4eee6; }
.q-head { padding: 24px 30px 6px; }
.q-head h2 { font: 400 38px/1 var(--serif); letter-spacing: -.02em; }
.q-head small { color: var(--muted); font-size: 14px; }
.q-list { display: grid; gap: 18px; padding: 18px 30px 34px; }
.q-card { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: #fffdf8; border-radius: 4px; transform: rotate(var(--r)); box-shadow: 0 10px 22px -12px rgba(40,20,15,.35), 0 0 0 .5px var(--line); transition: transform .3s cubic-bezier(.2, .9, .3, 1.4); }
.q-card:hover { transform: rotate(0) translateY(-3px); }
.q-emoji { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--blush); }
.q-card h3 { font: 400 24px/1.1 var(--serif); }
.q-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
.q-card .btn { margin-top: 12px; }

/* Composer + notes wall in the Neko Notes style */
.sticky.compose { width: 280px; padding: 24px 20px 18px; }
.sticky.compose .x { top: 12px; right: 14px; color: var(--ink); opacity: .5; }
.c-head { font: 600 24px/1.1 Fredoka, var(--sans); margin-top: 10px; }
.compose textarea { background: none; height: 110px; font: 600 17px/1.5 Nunito, var(--sans); }
.compose textarea::placeholder, .compose .c-name::placeholder { color: var(--ink); opacity: .45; }
.compose .c-name { font: 700 15px Nunito, var(--sans); border-top: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); padding-top: 8px; }
.sw { background: var(--paper2) !important; }
.compose .stick { background: var(--ink); color: var(--paper); font: 600 15px Nunito, var(--sans); }
.pinned { border-radius: 18px; color: var(--ink); font-family: Nunito, var(--sans); background: var(--pattern) 0 0 / 40px 40px, linear-gradient(170deg, var(--paper), var(--paper2)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 18px -10px rgba(60,30,80,.45); }
.pinned p { font: 600 16.5px/1.45 Nunito, var(--sans); }
.pinned .by { font: 700 14px Nunito, var(--sans); }
@media (max-width: 700px) { .sticky { width: 240px; } .n-title { font-size: 26px; } }
