/* macOS Control Center proportions: glass modules, circular controls, SF system type. */
.desktop-card--setting, .desktop-card--clock {
  --widget-glass: linear-gradient(155deg, #ffffffa8, #ffffff48);
  --widget-edge: #ffffffbd;
  --widget-text: #282a30;
  --widget-muted: #666b76;
  --widget-well: #7d85961c;
  --widget-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #ffffff70, 0 5px 14px #2633510b;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color: var(--widget-text);
  -webkit-font-smoothing: antialiased;
}

.control-top { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0; flex-shrink: 0; }
.widget-handle { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; }
.widget-handle:hover { background: transparent; color: inherit; }
.control-top .widget-handle { flex: 1; height: 36px; font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.widget-handle > i { display: block; flex-shrink: 0; width: 18px; height: 4px; border-radius: 4px; background: currentColor; opacity: .15; }
.control-reset { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--widget-muted); }
.control-reset:hover { background: var(--widget-well); color: var(--widget-text); }
.control-reset svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mood-options { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-block: auto; }
.mood-options button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.mood-options i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #007aff; box-shadow: inset 0 1px 1px #fff7,0 1px 3px #25385015; transition: transform 160ms; }
.mood-options [data-mood="lilac"] i { background: #8d40ff; }.mood-options [data-mood="peach"] i { background: #ff761f; }
.mood-options svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.mood-options [aria-pressed="true"] svg { opacity: 1; }
.mood-options button:hover i { transform: scale(1.07); }
.control-options { display: flex; align-items: center; gap: 8px; margin-block: auto; }
.control-options button { display: grid; place-items: center; flex: 1; max-width: 52px; min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 99px; background: var(--widget-well); color: var(--widget-muted); font-family: inherit; font-size: 11px; font-weight: 600; transition: background 160ms, color 160ms, box-shadow 160ms; }
.control-options button[aria-pressed="true"] { color: var(--blue); background: #fff; box-shadow: 0 1px 5px #1b253414; }
.control-options svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.control-slider { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.control-slider output { align-self: flex-end; color: var(--widget-muted); font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.control-range { display: flex; align-items: center; gap: 9px; grid-column: 1 / -1; height: 36px; }
.range-glyph { flex: 0 0 15px; text-align: center; color: var(--widget-text); font-size: 17px; line-height: 1; }
.range-glyph--light { font-weight: 300; }.range-glyph--bold { font-weight: 750; }.range-glyph--small { font-size: 11px; }.range-glyph--large { font-size: 19px; }
.control-range input { display: block; flex: 1; min-width: 0; width: 100%; height: 36px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.control-range input::-webkit-slider-runnable-track { height: 5px; border-radius: 10px; background: linear-gradient(to right,var(--mood-colour) 0 var(--range-fill),#858c9d38 var(--range-fill) 100%); box-shadow: inset 0 0 0 1px #313b5410; }
.control-range input::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6.5px; border: .5px solid #ffffffb3; border-radius: 50%; appearance: none; -webkit-appearance: none; background: #fff; box-shadow: 0 1px 4px #1f2a4a33; }
.control-range input::-moz-range-track { height: 5px; border-radius: 10px; background: #858c9d38; }
.control-range input::-moz-range-progress { height: 5px; border-radius: 10px; background: var(--mood-colour); }
.control-range input::-moz-range-thumb { width: 18px; height: 18px; border: .5px solid #ffffffb3; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #1f2a4a33; }
.control-slider:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.control-range input:focus-visible { outline: 0; }
/* A medium Clock widget: a full dial, city, date, and two compact mode controls. */
:root .desktop-card--clock { display: grid; grid-template-columns: minmax(76px,.95fr) minmax(0,1fr); align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--widget-edge); border-radius: 26px; background: var(--widget-glass); box-shadow: var(--widget-shadow); backdrop-filter: blur(35px) saturate(150%); -webkit-backdrop-filter: blur(35px) saturate(150%); }
.desktop-card--clock .clock-face { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; }
.desktop-card--clock .clock-face time { color: var(--widget-text); font-family: inherit; font-size: clamp(24px,2.8vw,36px); font-weight: 450; line-height: 1; letter-spacing: -.055em; }
.desktop-card--clock .clock-dial { width: 100%; height: auto; max-width: 94px; max-height: none; flex-shrink: 0; aspect-ratio: 1; border: 0; background: #fafafc; box-shadow: 0 2px 4px #24314f16; }
.desktop-card--clock .dial-number { position: absolute; left: var(--dial-x); top: var(--dial-y); right: auto; bottom: auto; translate: -50% -50%; font-family: inherit; font-size: 10px; font-weight: 500; color: #202126; }
.desktop-card--clock .clock-hand--hour { height: 23%; width: 3px; left: calc(50% - 1.5px); }
.desktop-card--clock .clock-hand--minute { height: 33%; width: 2px; left: calc(50% - 1px); }
.desktop-card--clock .clock-pin { width: 5px; height: 5px; background: #ff9500; }
.clock-meta { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.clock-meta .widget-handle { height: auto; min-height: 28px; padding: 0; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.1; letter-spacing: -.015em; text-align: left; }
.clock-meta .widget-handle > i { display: none; }
.clock-meta .clock-date { display: block; font-family: inherit; font-size: 10px; color: var(--widget-muted); line-height: 1.3; }
.clock-meta .clock-switch { display: flex; align-self: start; gap: 3px; min-height: 30px; margin: 6px 0 0; padding: 2px; border: 1px solid #ffffff50; border-radius: 99px; background: var(--widget-well); }
.clock-meta .clock-switch button { display: grid; place-items: center; flex: 0 0 30px; width: 30px; min-height: 26px; padding: 0; border-radius: 99px; background: transparent; font-family: inherit; font-size: 8px; font-weight: 600; color: var(--widget-muted); }
.clock-meta .clock-switch button[aria-pressed="true"] { background: #fff; color: #202126; box-shadow: 0 1px 4px #1f2a3e15; }
.clock-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
:root[data-theme="dark"] .desktop-card--setting, :root[data-theme="dark"] .desktop-card--clock { --widget-glass: linear-gradient(145deg,#777d9155,#454b6152); --widget-edge: #ffffff35; --widget-text: #f3f4f8; --widget-muted: #c0c4ce; --widget-well: #11152340; --widget-shadow: inset 0 1px 1px #ffffff35,inset 0 -1px 1px #ffffff16,0 6px 16px #00000018; }

/* Each setting is its own draggable window. Shared tracks provide a quiet landing grid. */
.desktop-stage { min-height: 860px; }
@media (min-width: 701px) { .hero-footer { bottom: 64px; } }
.desktop-grid--toys { top: 40%; width: calc(100% - 112px); height: 440px; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 22px; }
.desktop-card--note { grid-column: 1; grid-row: 1 / 3; }
.desktop-card--sculpture { grid-column: 2 / 4; grid-row: 1 / 3; }
.desktop-card--mood { grid-column: 4; grid-row: 1; }
.desktop-card--theme { grid-column: 4; grid-row: 2; }
.desktop-card--language { grid-column: 1; grid-row: 3; }
.desktop-card--weight { grid-column: 2; grid-row: 3; }
.desktop-card--size { grid-column: 3; grid-row: 3; }
.desktop-card--clock { grid-column: 4; grid-row: 3; }
:root .desktop-card--setting { display: flex; flex-direction: column; min-width: 0; padding: 10px 18px 18px; z-index: 5; border: 1px solid var(--widget-edge); border-radius: 26px; background: var(--widget-glass); box-shadow: var(--widget-shadow); backdrop-filter: blur(35px) saturate(150%); -webkit-backdrop-filter: blur(35px) saturate(150%); }
.desktop-card--setting .control-top { margin-bottom: 4px; }
.desktop-card--mood .widget-handle > i { display: none; }
:root .desktop-card--note { border-radius: 24px; background: #fffefa; border-color: #fff; box-shadow: 0 12px 30px #40351b12,0 2px 5px #40351b08; }
:root .desktop-card--note .window-bar { height: 44px; flex-shrink: 0; background: #ffcf3c; color: #664b00; border-bottom: 0; font-family: -apple-system,BlinkMacSystemFont,sans-serif; font-size: 12px; font-weight: 600; }
.scratchpad { padding: 20px 22px 0; background: none; }
:root .scratchpad textarea { color: #262522; font-family: -apple-system,BlinkMacSystemFont,sans-serif; font-size: calc(24px * var(--text-scale,1)); line-height: 1.25; letter-spacing: -.035em; caret-color: #cf9400; }
.scratchpad-footer { padding: 8px 16px 10px 22px; }
:root .note-send, :root .note-reset { color: #946800; }
:root .note-status { color: #776334; }
:root[data-theme="dark"] .desktop-card--note { background: #272725; border-color: #45443e; }
:root[data-theme="dark"] .desktop-card--note .window-bar { background: #d9aa21; color: #302300; }
:root[data-theme="dark"] .scratchpad textarea { color: #f4f2e9; }
:root[data-theme="dark"] .note-send, :root[data-theme="dark"] .note-reset, :root[data-theme="dark"] .note-status { color: #f4c546; }
@media (min-width: 701px) and (max-width: 1100px) {
  .desktop-grid--toys { width: calc(100% - 80px); gap: 18px; }
  :root .desktop-card--setting { padding: 8px 12px 14px; border-radius: 22px; }
  .mood-options { gap: 0; }.mood-options button { width: 36px; }.mood-options i { width: 28px; height: 28px; }
  :root .desktop-card--clock { grid-template-columns: 1fr; grid-template-rows: 42px 1fr; padding: 8px 12px; gap: 3px; }
  .desktop-card--clock .clock-face time { font-size: 29px; }
  .desktop-card--clock .clock-dial { width: 44px; }.desktop-card--clock .dial-number { font-size: 6px; }
  .clock-meta { align-items: center; }.clock-meta .widget-handle { justify-content: center; min-height: 20px; font-size: 11px; }
  .clock-meta .clock-switch { align-self: center; margin-top: 2px; }
  .clock-meta .clock-date { display: none; }
  .scratchpad { padding-inline: 16px; }:root .scratchpad textarea { font-size: calc(21px * var(--text-scale,1)); }.scratchpad-footer { padding-left: 16px; }
}
@media (max-width: 700px) {
  .desktop-scene { height: auto; min-height: 0; }
  .desktop-stage { position: relative; height: 1080px; min-height: 1080px; }
  .desktop-grid--toys { top: 280px; transform: translateX(-50%); width: calc(100% - 36px); height: 684px; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 220px 132px 164px 132px; gap: 12px; }
  .desktop-card--note { grid-column: 1; grid-row: 1; }.desktop-card--sculpture { grid-column: 2; grid-row: 1; }
  .desktop-card--mood { grid-column: 1; grid-row: 2; }.desktop-card--theme { grid-column: 2; grid-row: 2; }
  .desktop-card--language { grid-column: 1; grid-row: 3; }.desktop-card--clock { grid-column: 2; grid-row: 3; }
  .desktop-card--weight { grid-column: 1; grid-row: 4; }.desktop-card--size { grid-column: 2; grid-row: 4; }
  :root .desktop-card--setting { padding: 8px 12px 14px; border-radius: 22px; }
  .control-top .widget-handle { height: 36px; font-size: 12px; }
  .control-top .widget-handle > i { width: 12px; }.control-reset { flex-basis: 24px; width: 24px; }
  .mood-options { gap: 0; }.mood-options button { width: 36px; }.mood-options i { width: 29px; height: 29px; }
  .control-range { gap: 5px; }.range-glyph { flex-basis: 12px; }
  :root .desktop-card--clock { grid-template-columns: 1fr; grid-template-rows: 56px 1fr; padding: 10px; gap: 3px; border-radius: 22px; }
  .desktop-card--clock .clock-face time { font-size: 32px; }.desktop-card--clock .clock-dial { width: 58px; }.desktop-card--clock .dial-number { font-size: 7px; }
  .clock-meta { align-items: center; gap: 2px; }.clock-meta .widget-handle { justify-content: center; min-height: 24px; height: 24px; font-size: 11px; }
  .clock-meta .clock-switch { margin-top: 2px; align-self: center; }.clock-meta .clock-date { font-size: 9px; }
  :root .desktop-card--note { border-radius: 22px; }.scratchpad { padding: 12px 13px 0; }:root .scratchpad textarea { font-size: calc(20px * var(--text-scale,1)); }
  .scratchpad-footer { padding: 0 8px 4px 13px; }.note-status { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) { .mood-options i,.control-options button { transition: none; } }
@media (forced-colors: active) {
  :root .desktop-card--setting,:root .desktop-card--clock { border: 1px solid CanvasText; background: Canvas; }
  .control-options button[aria-pressed="true"],.mood-options button[aria-pressed="true"],.clock-switch button[aria-pressed="true"] { outline: 2px solid Highlight; }
  .control-range input { appearance: auto; -webkit-appearance: auto; }
}
/* A larger canvas keeps the original logo geometry and safe rotation framing. */
.sculpture-viewport { inset: -66px -24px; }
.sculpture-shadow { left: 26%; right: 26%; bottom: 7%; opacity: .7; }

/* A plain yellow sticky note, with a soft adhesive edge and no artificial creases. */
:root .desktop-card--note, :root[data-theme="dark"] .desktop-card--note {
  overflow: hidden; border: 0; border-radius: 3px;
  background: linear-gradient(180deg,#f7dc6d 0,#ffe686 18%,#ffe994 100%);
  box-shadow: inset 0 1px #fff0aa,0 3px 6px #64521d0c,0 16px 24px -13px #64521d36;
  backdrop-filter: none;
}
:root .desktop-card--note .window-bar, :root[data-theme="dark"] .desktop-card--note .window-bar { background: transparent; color: #796119; border-bottom: 0; font-weight: 500; }
:root .scratchpad textarea, :root[data-theme="dark"] .scratchpad textarea { color: #4b401d; caret-color: #6e4f00; }
:root .scratchpad textarea::placeholder { color: #8a7736; }
:root .note-send, :root .note-reset, :root .note-status, :root[data-theme="dark"] .note-send, :root[data-theme="dark"] .note-reset, :root[data-theme="dark"] .note-status { color: #6e5617; }

/* Clock face: fine minute marks, rounded black hands and an orange seconds hand. */
.desktop-card--clock .clock-dial { max-width: 108px; background: #fff; box-shadow: 0 0 0 1px #00000005,0 2px 5px #26324b12; }
.clock-dial::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; background: repeating-conic-gradient(from -.5deg,#8c8f96 0deg 1deg,transparent 1deg 6deg); -webkit-mask: radial-gradient(circle,transparent 65%,#000 66%); mask: radial-gradient(circle,transparent 65%,#000 66%); }
.desktop-card--clock .dial-number { font-size: 11px; font-weight: 600; letter-spacing: -.04em; }
.desktop-card--clock .clock-hand--hour { height: 24%; width: 4px; left: calc(50% - 2px); z-index: 1; background: #1c1c1e; }
.desktop-card--clock .clock-hand--minute { height: 35%; width: 3px; left: calc(50% - 1.5px); z-index: 2; background: #1c1c1e; }
.desktop-card--clock .clock-hand--second { height: 40%; width: 1px; left: calc(50% - .5px); z-index: 3; background: #ff8a00; transform: rotate(var(--second-angle,0deg)); }
.clock-hand--second::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 22%; background: inherit; }
.desktop-card--clock .clock-pin { width: 5px; height: 5px; z-index: 4; background: #ff8a00; box-shadow: inset 0 0 0 1.5px #ff8a00; }
@media (min-width: 701px) and (max-width: 1100px) {
  :root .desktop-card--clock { grid-template-columns: 68px minmax(0,1fr); grid-template-rows: 1fr; gap: 6px; padding-inline: 9px; }
  .desktop-card--clock .clock-dial { width: 68px; }.desktop-card--clock .dial-number { font-size: 8px; }
  .desktop-card--clock .clock-face time { font-size: 22px; }
  .clock-meta .widget-handle { font-size: 10px; }.clock-meta .clock-switch button { flex-basis: 24px; width: 24px; }
}
@media (max-width: 700px) {
  .sculpture-viewport { inset: -8px -22px; }
  .sculpture-shadow { bottom: 4%; left: 17%; right: 17%; }
  :root .desktop-card--note { border-radius: 3px; }
  :root .desktop-card--clock { grid-template-rows: 76px 1fr; padding: 9px; gap: 3px; }
  .desktop-card--clock .clock-dial { width: 76px; }.desktop-card--clock .dial-number { font-size: 9px; }
  .clock-meta .clock-date { display: none; }.clock-meta .clock-switch { min-height: 28px; }
  .clock-meta .widget-handle { height: 22px; min-height: 22px; }
}
@media (max-width: 850px) and (min-width: 701px) {
  :root .desktop-card--clock { grid-template-columns: 1fr; grid-template-rows: 62px 1fr; padding: 6px; gap: 0; }
  .desktop-card--clock .clock-dial { width: 60px; }.desktop-card--clock .dial-number { font-size: 7px; }
  .clock-meta .widget-handle { min-height: 18px; }.clock-meta .clock-switch { min-height: 24px; margin: 0; padding: 0; }.clock-meta .clock-switch button { min-height: 22px; }
}

/* Keep objects and introduction in normal flow: the gap cannot grow with viewport height. */
.desktop-scene { height: auto; min-height: 0; padding-bottom: 180px; }
.desktop-stage { height: auto; min-height: 0; padding-block: 24px; }
.desktop-surface { display: flex; flex-direction: column; gap: 56px; height: auto; padding: 104px 40px 48px; }
.desktop-grid--toys { position: relative; top: auto; left: auto; align-self: center; flex-shrink: 0; width: calc(100% - 32px); height: 440px; transform: none; }
.hero-footer { position: relative; inset: auto; width: 100%; }
@media (min-width: 701px) and (max-width: 1100px) {
  .desktop-surface { padding-inline: 28px; gap: 48px; }
  .desktop-grid--toys { width: calc(100% - 24px); }
}
@media (max-width: 700px) {
  .desktop-scene { padding-bottom: 0; }
  .desktop-stage { height: auto; min-height: 0; padding-block: 16px; }
  .desktop-surface { gap: 40px; padding: 32px 18px 40px; }
  .desktop-grid--toys { width: 100%; height: 684px; }
  .hero-footer { order: -1; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) { .desktop-scene { padding-bottom: 0; } }
