/* Handwritten revision: personal background, spacious title, visible glass light. */
@font-face { font-family: 'Wordstep Title'; src: url('assets/fonts/wordstep-title.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
:root { --muted: #3d5744; --ws-bg-base: #edf4e7; --ws-bg-a: #b5d3a7; --ws-bg-b: #c0dce2; --ws-bg-c: #e5d8b9; --ws-bg-blur: 0px; --ws-bg-wash: 0; }
html { background: #eef4e9; }
body { isolation: isolate; background: none; min-height: 100vh; }
#ws-background { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ws-background-base, .ws-background-photo, .ws-background-orbs, .ws-background-wash { position: absolute; inset: 0; }
.ws-background-base { background: var(--ws-bg-base); }
.ws-background-photo { inset: -18px; background-image: var(--ws-bg-image,none); background-size: cover; background-position: center; filter: blur(var(--ws-bg-blur)); }
.ws-background-orbs { background: radial-gradient(ellipse at 10% 15%,var(--ws-bg-a),transparent 49%),radial-gradient(ellipse at 93% 36%,var(--ws-bg-b),transparent 53%),radial-gradient(ellipse at 43% 96%,var(--ws-bg-c),transparent 52%); }
.ws-background-wash { background: rgb(248 250 244 / var(--ws-bg-wash)); }
:root[data-ws-background='photo'] .ws-background-orbs { opacity: .12; }
header { padding-top: 21px; padding-bottom: 21px; gap: 12px; background: #ffffff27; border-bottom-color: #ffffffc9; box-shadow: 0 1px 0 #ffffff75,0 8px 24px #315b3c06; -webkit-backdrop-filter: blur(28px) saturate(165%); backdrop-filter: blur(28px) saturate(165%); }
.ws-appearance-header { display: flex; align-items: center; gap: 12px; }
button.ws-appearance-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 13px; font-size: 13px; line-height: 24px; background: #ffffff65; border-color: #ffffffe8; box-shadow: inset 0 1px 0 #fff,0 4px 14px #25482d0a; }
.ws-appearance-open svg { width: 17px; height: 17px; }
.ws-home-intro h1 { font-family: 'Wordstep Title','Songti TC','Noto Serif TC',serif; font-weight: 600; font-size: clamp(36px,4.5vw,54px); line-height: 1.52; letter-spacing: .065em; margin-top: 13px; margin-bottom: 19px; }
.ws-home-intro .ws-keyphrase::after { height: 7%; bottom: 9%; background: #a8c79080; }
.ws-home-intro .ws-title-strokes { right: 5px; top: -12px; opacity: .7; }
.label { color: #3d5744; }

/* Interior reflection sits behind text; the bright, masked rim remains noninteractive. */
.ws-glass-surface { position: relative; isolation: isolate; background-color: #ffffff45; background-image: linear-gradient(135deg,#ffffff68,#ffffff12 48%,#e7f1db21); border-color: #ffffffe6; box-shadow: inset 0 1px 1px #ffffffff,inset 1px 0 0 #ffffff9c,inset 0 -1px 0 #678a5e29,0 2px 4px #254b3609,0 16px 42px #254b3612,0 35px 75px #254b3607; -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); }
.ws-glass-surface::before { content: ''; display: block; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse at var(--ws-light-x,12%) var(--ws-light-y,0%),#ffffff7d 0%,#ffffff12 43%,transparent 68%),linear-gradient(155deg,#ffffff2b,transparent 45%); }
.ws-glass-surface::after { content: ''; position: absolute; z-index: 2; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(135deg,#fff 0%,#ffffffb8 24%,#ffffff24 48%,#5d84652e 74%,#ffffffb3 100%); mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite: exclude; -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: xor; }
.ws-home-summary .stats.ws-glass-surface { background-color: #ffffff38; }
.ws-home-summary .review-home.ws-glass-surface { background-color: #e2eedb42; }
.review-home.ws-glass-surface::before { display: block; opacity: 1; background-size: auto; }
.hero.ws-glass-layout > .art.ws-art.ws-studio.ws-glass-surface { background-color: #ffffff24; background-image: linear-gradient(135deg,#ffffff55,#ffffff08 55%,#ffffff24); box-shadow: inset 0 1px 1px #fff,inset 0 -1px 0 #799c6d26,0 15px 42px #244b3612,0 30px 85px #244b3606; }
#unitCards.ws-unit-rail > .card.ws-glass-surface { background-color: #ffffff40; background-image: linear-gradient(135deg,#ffffff7a,#ffffff14 52%,#ffffff24); border-color: #ffffffed; box-shadow: inset 0 1px 1px #fff,inset 1px 0 0 #ffffff94,inset 0 -1px 0 #78936a2b,0 8px 23px #2b4e3812; }
#unitCards.ws-unit-rail > .card.ws-glass-surface::before { display: block; }
#unitCards.ws-unit-rail .topicicon { background: #ffffff3d; box-shadow: inset 0 1px 0 #ffffffeb,0 3px 12px #30583408; }
.ws-reel { background-image: linear-gradient(135deg,#ffffffa1,#ffffff1f 45%,#ffffff4a); background-color: color-mix(in srgb,var(--reel-color) 24%,transparent); -webkit-backdrop-filter: blur(21px) saturate(170%); backdrop-filter: blur(21px) saturate(170%); box-shadow: inset 0 3px 2px #ffffff94,inset 0 -8px 18px #41633d0f; }
.ws-reel-rim path { stroke: #fffffff0; stroke-width: 1.5; }
.ws-glass-surface .muted, .ws-glass-surface .label { color: #36513d; }
#unitCards.ws-unit-rail .muted { color: #36513d; }
.ws-home-summary .review-home .muted, .ws-home-summary .stats small { color: #3d563d; }
.ws-studio-badge { -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
:root[data-ws-personal='true'] .muted, :root[data-ws-personal='true'] .label, :root[data-ws-personal='true'] .eyebrow, :root[data-ws-personal='true'] .ws-unit-hint, :root[data-ws-personal='true'] .ws-unit-range, :root[data-ws-personal='true'] footer, :root[data-ws-personal='true'] #topicCount { color: #274431; }

.ws-appearance-dialog { width: min(490px,calc(100vw - 32px)); max-height: min(88vh,760px); margin: auto; padding: 25px; border: 1px solid #ffffffed; border-radius: 27px; color: #183a28; background: #f4f8eeed; box-shadow: 0 22px 85px #173c292e,inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(35px) saturate(165%); backdrop-filter: blur(35px) saturate(165%); overflow: auto; }
.ws-appearance-dialog:not([open]) { display: none; }
.ws-appearance-dialog::backdrop { background: #163b263d; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ws-appearance-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ws-appearance-top h2 { margin: 0; font-size: 25px; }
button.ws-appearance-close { width: 44px; min-height: 44px; padding: 0; font-size: 23px; display: grid; place-items: center; }
.ws-appearance-intro { margin: 8px 0 20px; color: #4c6450; font-size: 13px; }
.ws-background-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
button.ws-background-preset { min-width: 0; padding: 0; border: 0; border-radius: 14px; background: none; box-shadow: none; color: #37543b; font-size: 12px; text-align: center; }
.ws-background-swatch { display: block; height: 61px; margin-bottom: 7px; border: 2px solid #ffffffc7; border-radius: 14px; box-shadow: inset 0 1px 0 #fff,0 4px 14px #244a3210; background: var(--swatch); }
.ws-background-preset[aria-pressed='true'] .ws-background-swatch { outline: 2px solid #3e7753; outline-offset: 3px; }
.ws-background-preset[aria-pressed='true'] { color: #104c2c; font-weight: 600; }
.ws-appearance-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 23px 0 0; font-size: 14px; }
.ws-appearance-field small { display: block; color: #52694f; font-size: 11px; margin-top: 3px; }
.ws-appearance-dialog input[type='color'] { width: 50px; height: 44px; min-height: 44px; margin: 0; padding: 3px; border: 1px solid #c7d8bc; border-radius: 12px; cursor: pointer; background: #fff8; }
.ws-appearance-upload { margin-top: 22px; padding: 15px; border: 1px dashed #9eb397; border-radius: 17px; background: #ffffff55; }
.ws-appearance-upload strong { font-size: 14px; }
.ws-appearance-upload p { margin: 4px 0 12px; color: #52694f; font-size: 12px; }
.ws-appearance-upload .actions { margin-top: 10px; gap: 8px; }
.ws-appearance-upload button { font-size: 12px; min-height: 44px; padding: 8px 12px; }
.ws-appearance-dialog input[type='file'][hidden] { display: none; }
.ws-appearance-dialog input[type='range'] { width: 45%; min-height: 44px; padding: 0; margin: 0; border: 0; background: transparent; accent-color: #326e46; box-shadow: none; }
.ws-appearance-status { min-height: 21px; margin: 12px 0 0; color: #496447; font-size: 12px; }
.ws-appearance-bottom { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; }
.ws-appearance-bottom button { min-height: 44px; font-size: 13px; padding: 9px 15px; }
@media (max-width: 760px) { .ws-appearance-header > .pill { display: none; } }
@media (max-width: 650px) {
  header { padding-top: 14px; padding-bottom: 14px; }
  .ws-home-intro h1 { font-size: clamp(36px,7.5vw,44px); line-height: 1.5; letter-spacing: .06em; }
  .ws-home-intro .ws-title-strokes { right: 5px; top: -4px; }
  .ws-appearance-dialog { padding: 20px; }
}
@media (prefers-reduced-transparency: reduce) { .ws-glass-surface, #unitCards.ws-unit-rail > .card.ws-glass-surface, .hero.ws-glass-layout > .art.ws-art.ws-studio.ws-glass-surface { background: #f5f8f0; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .ws-appearance-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; } }
