/* Glass desktop: a pink light-beam wallpaper, glass windows that open, drag, minimise
   to the taskbar and close, a smoky taskbar with a round cherry button, desktop icons
   and two gadgets. Generic shapes only: no operating-system logos or artwork. */
:root {
  --pink: #FF6FA8; --rose: #D6246E; --rose-deep: #8E1046; --blush: #FFC2DA;
  --aqua: #9FE3EC; --aqua-deep: #2BB3C9;
  --text: #2E2228; --soft: #6E5A64; --line: #E9C3D4; --pane: #FCF3F7;
  --font: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --bar: 46px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; font: 400 15px/1.55 var(--font); color: var(--text); background: #B8155E; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.todo { background: #FFF1B8; color: #5C4700; border-radius: 3px; padding: 0 .3em; }

.gloss-text { display: inline-grid; font-family: "Baloo 2", sans-serif; font-weight: 800; line-height: 1.05; }
.gloss-text > span { grid-area: 1 / 1; position: relative; }
.gloss-text .ol { color: var(--rose-deep); -webkit-text-stroke: .17em var(--rose-deep); filter: drop-shadow(0 .06em .12em rgba(60,0,30,.45)); }
.gloss-text .wh { color: #fff; -webkit-text-stroke: .07em #fff; }
.gloss-text .fr { color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.2) 46%, rgba(255,255,255,0) 50%), linear-gradient(180deg, #FF86BD 0%, #F2408C 50%, #C81E6A 52%, #F0609F 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------- Wallpaper ---------- */
.wall { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 50% 38% at 62% 46%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(255,160,205,.9), rgba(255,160,205,0) 60%),
    radial-gradient(ellipse 60% 50% at 10% 95%, rgba(159,227,236,.45), rgba(159,227,236,0) 60%),
    linear-gradient(155deg, #9C0F4E 0%, #D23580 38%, #F27AB0 58%, #C41E68 82%, #8A0D47 100%); }
.wall svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Desktop ---------- */
.desktop { position: fixed; z-index: 1; inset: 0 0 var(--bar) 0; overflow: hidden; }
.brandline { position: absolute; left: 22px; top: 14px; display: flex; align-items: center; gap: 16px; }
.brandline img { width: 92px; filter: drop-shadow(0 5px 8px rgba(40,0,20,.4)); }
.brandline .gloss-text { font-size: 66px; }
/* Icons run down the left and wrap into a second column on short screens. */
.icons { position: absolute; left: 18px; top: 140px; bottom: 16px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 98px); gap: 0 8px; align-content: start; }
.icon { display: grid; justify-items: center; gap: 4px; width: 96px; padding: 6px 4px; border-radius: 4px; border: 1px solid transparent; background: none; cursor: pointer; color: #fff; font-size: 13px; text-align: center; text-shadow: 0 1px 3px rgba(40,0,20,.9), 0 0 8px rgba(40,0,20,.5); }
.icon:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); }
.icon.sel { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.7); }
.icon .pic { width: 48px; height: 48px; display: grid; place-items: center; filter: drop-shadow(0 3px 4px rgba(40,0,20,.45)); }
.icon .pic img, .icon .pic svg { width: 46px; height: 46px; }
.gadgets { position: absolute; right: 24px; top: 24px; display: grid; gap: 22px; justify-items: center; }
.clock { width: 160px; height: 160px; filter: drop-shadow(0 8px 14px rgba(50,0,25,.45)); }
.note { width: 184px; padding: 14px 16px 18px; transform: rotate(1.5deg); border-radius: 2px; background: linear-gradient(180deg, #FFE3EF, #FFD0E3); color: #4A2A38; font-size: 14px; box-shadow: 0 8px 18px rgba(50,0,25,.4); }
.note b { display: block; margin-bottom: 4px; color: var(--rose-deep); }

/* ---------- Glass windows ---------- */
.win { position: absolute; display: flex; flex-direction: column; border-radius: 8px; padding: 0 7px 7px;
  background: linear-gradient(180deg, rgba(255,220,236,.66) 0%, rgba(255,178,212,.55) 60%, rgba(255,190,220,.6) 100%);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(70,8,38,.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 16px 46px rgba(50,0,25,.55); }
.win[hidden] { display: none; }
/* Windows behind the front one go paler, the way glass frames did. */
.win:not(.active) { background: linear-gradient(180deg, rgba(255,236,245,.5), rgba(255,214,232,.42)); border-color: rgba(70,8,38,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 8px 24px rgba(50,0,25,.32); }
.win:not(.active) .titlebar span { opacity: .65; }
.win::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 40px, rgba(255,255,255,.14) 40px 70px, rgba(255,255,255,0) 70px 140px, rgba(255,255,255,.08) 140px 150px, rgba(255,255,255,0) 150px 230px); }
.win > * { position: relative; }
.win.maxed { border-radius: 0; }
.titlebar { flex: none; height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 130px 0 3px; font-size: 14px; color: #24101A; white-space: nowrap; overflow: hidden; cursor: default; user-select: none; touch-action: none; }
.titlebar span { text-shadow: 0 0 9px #fff, 0 0 9px #fff, 0 0 4px #fff; }
.titlebar img, .titlebar svg { width: 17px; height: 17px; flex: none; }
.caps { position: absolute; top: 0; right: 6px; display: flex; }
.caps button { display: grid; place-items: center; height: 20px; width: 27px; padding: 0; cursor: pointer; border: 1px solid rgba(60,0,28,.6); border-top: 0; border-left-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,230,240,.45) 48%, rgba(240,160,195,.5) 50%, rgba(255,220,235,.6) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.caps button:first-child { border-left-width: 1px; border-bottom-left-radius: 5px; }
.caps button:hover { background: linear-gradient(180deg, #fff 0%, #FFE6F1 48%, #FFB7D5 50%, #FFD9EA 100%); box-shadow: inset 0 0 0 1px #fff, 0 0 8px rgba(255,255,255,.8); }
.caps .b-x { width: 47px; border-bottom-right-radius: 5px; background: linear-gradient(180deg, #FFA6CA 0%, #F2559A 48%, #D6246E 50%, #EE6AA4 100%); }
.caps .b-x:hover { background: linear-gradient(180deg, #FFC2DA 0%, #FF6FA8 48%, #E8357F 50%, #FF86BD 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 10px rgba(255,111,168,.9); }
.caps svg { width: 11px; height: 11px; pointer-events: none; }
.client { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid rgba(70,8,38,.45); border-radius: 1px; }

@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
@keyframes drop { to { opacity: 0; transform: translateY(45vh) scale(.25); } }
@keyframes shut { to { opacity: 0; transform: scale(.94); } }
.win.pop { animation: pop .18s ease-out; }
.win.minimizing { animation: drop .22s ease-in forwards; pointer-events: none; }
.win.closing { animation: shut .14s ease-in forwards; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .win.pop, .win.minimizing, .win.closing { animation: none; } }

/* Buttons inside programs. */
.btn { position: relative; display: inline-block; padding: 11px 30px; border-radius: 4px; font: 700 16px var(--font); color: #fff; cursor: pointer;
  border: 1px solid #8E1046; background: linear-gradient(180deg, #FF9CC6 0%, #F24C92 49%, #D6246E 50%, #E8478C 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 2px 6px rgba(142,16,70,.35); text-shadow: 0 1px 1px rgba(100,0,40,.5); transition: box-shadow .2s; }
.btn:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 14px 3px rgba(255,111,168,.65); }
.btn.soon { cursor: default; }
.ok { display: inline-block; padding: 4px 18px; min-width: 86px; text-align: center; border-radius: 3px; cursor: pointer; border: 1px solid #B97C97; font-size: 13.5px;
  background: linear-gradient(180deg, #FFFDFE 0%, #FBEAF2 49%, #F4D3E2 50%, #FAE4EE 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.ok:hover:not(:disabled) { border-color: #E0559A; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 0 8px rgba(255,111,168,.6); }
.ok:disabled { color: #B8A5AE; border-color: #DCC9D2; cursor: default; }
.ok.main { border-color: #D6246E; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 0 0 1px rgba(214,36,110,.25); }

/* ---------- Shop window ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; padding: 28px 26px 24px 30px; }
.eyebrow { margin: 0 0 6px; color: var(--aqua-deep); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
/* Bubbly Fredoka with a glossy candy shine and a thin white edge. The shine is on the inner
   span, cloned per line, so each line of a wrapped headline gets its own highlight. */
h1 { margin: 0; font: 700 46px/1.1 "Fredoka", var(--font); filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 3px 4px rgba(142,16,70,.3)); }
h1 span { color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.1) 46%, rgba(255,255,255,0) 50%), linear-gradient(180deg, #E8458C 0%, #C8186A 50%, #8E1046 52%, #B8125E 100%);
  -webkit-background-clip: text; background-clip: text; }
.lede { margin: 12px 0 22px; font-size: 17px; color: var(--soft); }
.buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* The price on a round, glossy sticker. */
.sticker { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; transform: rotate(-8deg);
  background: radial-gradient(circle at 50% 118%, #FFC2DA 0 22%, #F24C92 55%, #B0105A 100%); border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(142,16,70,.35), 0 6px 14px rgba(142,16,70,.35); text-shadow: 0 1px 2px rgba(100,0,40,.5); }
.sticker::before { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: 4%; height: 44%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.08)); }
.sticker b { font: 700 27px/1 var(--font); }
.sticker sup { font-size: .5em; vertical-align: top; position: relative; top: .1em; margin-left: 1px; }
.sticker small { margin-top: 3px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.incl { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--aqua-deep); }
/* Pink banner and swoosh behind the top of the shop. */
.shop .client { position: relative; }
.banner { position: absolute; left: 0; right: 0; top: 0; height: 200px; pointer-events: none; background: linear-gradient(180deg, #FFD3E6 0%, #FFEDF5 55%, rgba(255,255,255,0) 100%); }
.banner svg { width: 100%; height: 100%; display: block; }
.shop .hero, .shop .got { position: relative; }
/* Product photo gallery: a big view with arrows, and thumbnails underneath. */
.gallery { display: grid; gap: 8px; min-width: 0; }
/* Plain white behind the cut-out photos, which have see-through backgrounds. */
.studio { background: #fff; }
.g-main { position: relative; height: 330px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; touch-action: pan-y; cursor: zoom-in; }
.g-view { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--soft); }
.g-view img.photo-img { position: absolute; inset: 14px 44px; width: calc(100% - 88px); height: calc(100% - 28px); object-fit: contain; filter: drop-shadow(0 10px 12px rgba(90,40,60,.18)); }
.g-hint { position: absolute; left: 8px; bottom: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(60,6,32,.55); opacity: 0; transition: opacity .15s; pointer-events: none; }
.g-main:hover .g-hint { opacity: 1; }
.g-view .ph img { display: block; width: 64px; margin: 0 auto 10px; }
.g-prev, .g-next { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 50%; border: 1px solid rgba(110,0,45,.5);
  background: linear-gradient(180deg, rgba(255,140,190,.9), rgba(214,36,110,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 6px rgba(110,0,45,.3); opacity: .85; transition: opacity .15s, box-shadow .15s; }
.g-prev { left: 8px; } .g-next { right: 8px; }
.g-prev:hover, .g-next:hover { opacity: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 12px rgba(255,111,168,.8); }
.g-prev svg, .g-next svg { width: 14px; height: 14px; }
.g-count { position: absolute; right: 8px; bottom: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(60,6,32,.55); }
.g-thumbs { display: flex; gap: 6px; padding: 2px; }
.g-thumb { flex: 1 1 0; min-width: 40px; max-width: 72px; aspect-ratio: 1; padding: 0; cursor: pointer; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 12px; color: var(--soft); }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.g-thumb:hover { border-color: #E9A9C6; box-shadow: 0 0 6px rgba(255,111,168,.45); }
.g-thumb.sel { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(214,36,110,.35); }
/* The shop fits its window without scrolling: the photo grows to fill the space and the
   three features sit in a bar along the bottom. */
.shop .client { display: flex; flex-direction: column; }
.shop .hero { flex: 1; min-height: 330px; grid-template-rows: minmax(0, 1fr); align-items: center; padding-top: 22px; padding-bottom: 18px; }
.shop .gallery { height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.shop .g-main { height: auto; min-height: 0; }
.got { flex: none; padding: 10px 18px; border-top: 1px solid #EBC6D7; background: linear-gradient(180deg, #FFF8FB, #FCE7F0); }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border: 1px solid transparent; border-radius: 3px; }
.item .pic { flex: none; width: 46px; height: 46px; }
.item b { display: block; color: var(--rose-deep); font-size: 14.5px; line-height: 1.3; }
.item p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--soft); }

/* ---------- Setup wizard ---------- */
.wizard .client { display: flex; flex-direction: column; overflow: hidden; }
.wpage { flex: 1; min-height: 0; overflow: auto; }
.wpage[hidden] { display: none; }
.wpage.cover { display: grid; grid-template-columns: 180px 1fr; }
.wpage.cover[hidden] { display: none; }
.wside { position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(170deg, #FF9CC6 0%, #E8478C 45%, #A3125A 100%); }
.wside::before { content: ""; position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 30px, rgba(255,255,255,.5) 30px 34px, rgba(255,255,255,0) 34px 80px); }
.wside img { position: relative; width: 96px; filter: drop-shadow(0 6px 10px rgba(60,0,30,.45)); }
.wtext { padding: 28px 30px; }
.wtext h2 { margin: 0 0 14px; font: 400 25px/1.25 var(--font); color: var(--rose-deep); }
.wtext p { margin: 0 0 12px; }
.whead { padding: 14px 24px 12px; border-bottom: 1px solid #F0DCE5; }
.whead b { display: block; font-size: 15px; }
.whead span { font-size: 13.5px; color: var(--soft); }
.wbody { padding: 22px 28px; max-width: 560px; }
.wbody p { margin: 0 0 10px; }
.wbody ul { margin: 0 0 10px; padding-left: 20px; }
.tip { display: flex; gap: 8px; padding: 8px 10px; border: 1px solid #F3D6E3; border-radius: 3px; background: #FFF7FA; font-size: 13.5px; }
.tip svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.wfoot { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid #F0DCE5; background: var(--pane); }
.wstep { font-size: 13px; color: var(--soft); white-space: nowrap; }
.progress { flex: 1; height: 15px; margin-right: 10px; border: 1px solid #C98AA6; border-radius: 3px; background: linear-gradient(180deg, #F3E9EE, #FFFFFF); overflow: hidden; }
.progress i { position: relative; display: block; height: 100%; width: 0; overflow: hidden; transition: width .3s ease; background: linear-gradient(180deg, #FFB0D0 0%, #F2559A 50%, #D6246E 51%, #F06AA6 100%); }
.progress i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -60px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(255,255,255,0)); animation: shine 2.2s linear infinite; }
@keyframes shine { to { left: 100%; } }

/* ---------- Messenger ---------- */
.chat .client { display: flex; flex-direction: column; overflow: hidden; }
.buddy { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #F0DCE5; background: linear-gradient(180deg, #FFF8FB, #FDEAF3); }
.avatar { width: 52px; height: 52px; padding: 5px; border-radius: 6px; background: linear-gradient(180deg, #fff, #FFE0EE); box-shadow: 0 0 0 1px #E2A7C0, 0 2px 5px rgba(142,16,70,.2); }
.avatar img { width: 100%; height: 100%; }
.buddy b { display: block; font-size: 15px; }
.buddy .status { font-size: 13px; color: var(--soft); }
.buddy .status i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #D8FAFF, #2BB3C9 60%); box-shadow: 0 0 0 1px #1A8597; }
.log { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; }
.line { margin: 0 0 10px; }
.line .who { display: block; font-size: 13px; color: #8F7B85; }
.line .say { display: block; padding-left: 12px; }
.line.them .say { color: #7A1040; }
.line.me .say { color: #33262D; }
.typing { flex: none; height: 24px; padding: 2px 16px; font-size: 12.5px; font-style: italic; color: var(--soft); }
.asks { flex: none; padding: 10px 12px 4px; border-top: 1px solid #F0DCE5; background: var(--pane); }
.asks p { margin: 0 0 6px; font-size: 13px; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 12px; border-radius: 999px; cursor: pointer; font-size: 13.5px; border: 1px solid #E0A2BE; background: linear-gradient(180deg, #FFFFFF 0%, #FFEFF6 49%, #FFDCEB 50%, #FFEAF3 100%); }
.chip:hover:not(:disabled) { border-color: #D6246E; box-shadow: 0 0 8px rgba(255,111,168,.5); }
.chip:disabled { cursor: default; opacity: .5; }
.chip.asked { opacity: .55; }
.typebox { flex: none; display: flex; gap: 8px; align-items: stretch; padding: 8px 12px 12px; background: var(--pane); }
.typebox span { flex: 1; padding: 7px 10px; border: 1px solid #DCC1CE; border-radius: 3px; background: #fff; font-size: 13.5px; color: #A08C96; }

/* ---------- Mail ---------- */
.mail .client { display: flex; flex-direction: column; overflow: hidden; }
.mtool { flex: none; display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid #EBC6D7; background: linear-gradient(180deg, #FFF8FB 0%, #FDEBF3 48%, #FADBE9 50%, #FCE6EF 100%); font-size: 13.5px; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 3px; border: 1px solid transparent; background: none; cursor: pointer; }
.tool svg { width: 18px; height: 18px; }
.tool:hover:not(:disabled) { border-color: #E9A9C6; background: linear-gradient(180deg, #FFF4F9, #FFD6E7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.tool:disabled { opacity: .45; cursor: default; }
.mbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px 250px 1fr; }
.folders { padding: 8px 6px; border-right: 1px solid #F0DCE5; background: var(--pane); font-size: 13.5px; }
.folder { display: flex; width: 100%; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer; text-align: left; }
.folder svg { width: 16px; height: 16px; flex: none; }
.folder.sel { border-color: #F0B7D0; background: linear-gradient(180deg, #FFF6FA, #FFE0EE); font-weight: 600; }
.folder .count { margin-left: auto; color: var(--rose); font-weight: 700; }
.list { border-right: 1px solid #F0DCE5; overflow: auto; }
.msg { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #F6E6ED; background: none; cursor: pointer; text-align: left; font-size: 13.5px; }
.msg.sel { background: linear-gradient(180deg, #FFF3F8, #FFE3EF); box-shadow: inset 3px 0 0 var(--rose); }
.msg b { display: flex; justify-content: space-between; gap: 8px; }
.msg b small { font-weight: 400; color: var(--soft); }
.msg span { display: block; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.unread span:first-of-type { color: var(--text); font-weight: 600; }
.empty { padding: 20px 14px; color: var(--soft); font-size: 13.5px; }
.pane { min-height: 0; overflow: auto; }
.read { padding: 18px 22px; }
.read[hidden] { display: none; }
.read h3 { margin: 0 0 6px; font-size: 19px; color: var(--rose-deep); }
.read .meta { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #F0DCE5; font-size: 13px; color: var(--soft); }
.read p { margin: 0 0 12px; }
.read a.addr { color: var(--rose); font-weight: 700; }
.compose { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 14px 18px; height: 100%; }
.compose[hidden] { display: none; }
.field { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 13.5px; }
.field label { color: var(--soft); }
.field input, .compose textarea { width: 100%; padding: 6px 8px; border: 1px solid #DCC1CE; border-radius: 3px; font: inherit; color: var(--text); background: #fff; }
.field input:focus, .compose textarea:focus { outline: none; border-color: #E0559A; box-shadow: 0 0 0 2px rgba(255,111,168,.2); }
.to { padding: 4px 10px; border-radius: 3px; background: #FFF0F6; border: 1px solid #F3D0DF; width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.compose textarea { resize: none; min-height: 120px; }
.send { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--soft); }

/* ---------- Photo Viewer ---------- */
.viewer .client { display: flex; flex-direction: column; overflow: hidden; }
.v-stage { position: relative; flex: 1; min-height: 0; }
.v-stage img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; filter: drop-shadow(0 14px 16px rgba(90,40,60,.18)); touch-action: pan-y; }
.v-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 12px; border-top: 1px solid #EBC6D7; background: linear-gradient(180deg, #FFF8FB 0%, #FDEBF3 48%, #FADBE9 50%, #FCE6EF 100%); }
.v-bar button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 50%; border: 1px solid rgba(110,0,45,.5);
  background: radial-gradient(circle at 50% 115%, #FFC2DA 0 22%, #F24C92 55%, #B0105A 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 5px rgba(110,0,45,.3); }
.v-bar button:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 12px rgba(255,111,168,.8); }
.v-bar svg { width: 14px; height: 14px; }
.v-count { min-width: 60px; text-align: center; font-size: 13.5px; color: var(--soft); }

/* ---------- Notepad and About ---------- */
.notepad .client { padding: 0; }
.menu-strip { display: flex; gap: 2px; padding: 2px 4px; border-bottom: 1px solid #F0DCE5; background: var(--pane); font-size: 13px; color: #5A4650; }
.menu-strip span { padding: 1px 8px; }
.notepad pre { margin: 0; padding: 12px 14px; font: 14px/1.6 "Courier New", ui-monospace, monospace; white-space: pre-wrap; }
.about .client { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px 22px 10px; }
.about .client img { width: 60px; }
.about p { margin: 0 0 8px; font-size: 14px; }
.about .row { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding: 8px 0 6px; border-top: 1px solid #F0DCE5; }

/* ---------- Taskbar ---------- */
.taskbar { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; height: var(--bar); display: flex; align-items: center; gap: 4px; padding: 0 0 0 64px;
  background: linear-gradient(180deg, rgba(90,20,55,.55) 0%, rgba(55,8,32,.68) 45%, rgba(40,4,22,.75) 100%);
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.orb { position: absolute; left: 6px; bottom: 2px; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 50% 115%, #FFC2DA 0 22%, #F24C92 48%, #8E1046 78%, #4A0626 100%);
  box-shadow: 0 0 0 1px rgba(30,0,15,.7), inset 0 0 0 1px rgba(255,255,255,.35), 0 0 12px rgba(255,111,168,.45); transition: box-shadow .2s; }
.orb::before { content: ""; position: absolute; left: 9%; right: 9%; top: 4%; height: 48%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.05)); }
.orb img { position: relative; width: 30px; filter: drop-shadow(0 1px 1px rgba(40,0,20,.6)); }
.orb:hover, .orb[aria-expanded="true"] { box-shadow: 0 0 0 1px rgba(30,0,15,.7), inset 0 0 0 1px rgba(255,255,255,.5), 0 0 20px 6px rgba(255,140,190,.75); }
.pin { position: relative; width: 56px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 3px; border: 1px solid transparent; background: none; cursor: pointer; }
.pin svg, .pin img { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.pin:hover, .pin.running { border-color: rgba(255,255,255,.32); background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.06) 50%, rgba(255,255,255,0) 51%, rgba(255,170,210,.12)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.pin.active { border-color: rgba(255,255,255,.5); background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.1) 50%, rgba(255,255,255,0) 51%, rgba(255,170,210,.22)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 -8px 14px rgba(255,111,168,.45); }
.tray { margin-left: auto; display: flex; align-items: center; height: 100%; }
.tray .time { padding: 0 14px; color: #fff; font-size: 12.5px; line-height: 1.3; text-align: center; }
.peek { width: 14px; height: 100%; padding: 0; border: 0; border-left: 1px solid rgba(255,255,255,.3); cursor: pointer; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); }
.peek:hover { background: linear-gradient(90deg, rgba(255,255,255,.3), rgba(255,255,255,.1)); }

/* ---------- Start menu ---------- */
.startmenu { position: fixed; z-index: 999; left: 0; bottom: var(--bar); width: 360px; display: grid; grid-template-columns: 1fr 110px; padding: 7px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(110,25,65,.78), rgba(50,6,28,.88)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 -6px 30px rgba(30,0,15,.5); }
.startmenu[hidden] { display: none; }
.startmenu .list2 { background: #fff; border-radius: 3px; padding: 6px; display: grid; gap: 2px; align-content: start; }
.startmenu .list2 button, .startmenu .list2 a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 3px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; font-size: 14px; }
.startmenu .list2 button:hover, .startmenu .list2 a:hover { border-color: #F0B7D0; background: linear-gradient(180deg, #FFF6FA, #FFE0EE); }
.startmenu .list2 svg, .startmenu .list2 img { width: 28px; height: 28px; flex: none; }
.startmenu .list2 small { display: block; color: var(--soft); font-size: 12px; }
.startmenu .side { padding: 12px 8px; display: grid; place-items: start center; }
.startmenu .side img { width: 60px; }

/* ---------- Narrow screens ---------- */
.phone-only { display: none !important; }
@media (max-height: 860px) and (min-width: 761px) {
  .icons { top: 128px; grid-template-rows: repeat(auto-fill, 86px); }
  .icon { gap: 2px; padding: 4px; }
  .icon .pic { width: 42px; height: 42px; }
  .icon .pic img, .icon .pic svg { width: 40px; height: 40px; }
  /* A little tighter in the shop so it still fits without scrolling. */
  .shop .hero { min-height: 0; padding-top: 16px; padding-bottom: 12px; }
  h1 { font-size: 40px; }
  .lede { margin: 8px 0 14px; font-size: 16px; }
  .sticker { width: 86px; height: 86px; }
  .sticker b { font-size: 24px; }
  .sticker small { font-size: 9.5px; }
  .incl { margin-top: 6px; }
  .got { padding: 8px 18px; }
}
@media (max-width: 1100px) { .gadgets { display: none; } }
@media (max-width: 760px) {
  .brandline { left: 0; right: 0; top: clamp(28px, 7vh, 70px); flex-direction: column; gap: 6px; }
  .brandline .gloss-text { font-size: 46px; }
  .brandline img { width: 104px; }
  /* The phone desktop is a home screen: big icons, the clock, one program at a time. */
  .phone-only { display: grid !important; }
  .desk-only { display: none !important; }
  .icons { left: 12px; right: 12px; top: clamp(250px, 40vh, 380px); bottom: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 0; }
  .icon { width: 33.3%; font-size: 14px; }
  .icon .pic { width: 60px; height: 60px; }
  .icon .pic img, .icon .pic svg { width: 58px; height: 58px; }
  .caps .b-min { display: none; }
  .caps .b-x { border-left-width: 1px; border-bottom-left-radius: 5px; }
  .taskbar .pin, .peek { display: none; }
  /* One program at a time, full screen. */
  .win { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; padding: 0 3px 3px; }
  .titlebar { padding-right: 60px; }
  .caps .b-x { width: 46px; } .caps .b-max { display: none; }
  .hero { grid-template-columns: 1fr; padding: 22px 18px; }
  h1 { font-size: 36px; }
  .g-main { height: 300px; }
  .g-view img.photo-img { inset: 10px 40px; width: calc(100% - 80px); height: calc(100% - 20px); }
  .g-hint { opacity: 1; }
  .items { grid-template-columns: 1fr; }
  .shop .hero { flex: none; min-height: 0; }
  .shop .g-main { height: 300px; }
  .wpage.cover { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
  .wside { height: 120px; }
  .wbody { padding: 16px 18px; }
  .wstep { display: none; }
  .mbody { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .folders { display: none; }
  .list { border-right: 0; border-bottom: 1px solid #F0DCE5; max-height: 30vh; }
  .mail.composing .list { display: none; }
  .pin { width: 48px; }
  .startmenu { width: 100%; grid-template-columns: 1fr; }
  .startmenu .side { display: none; }
}
