/* Two working instruments, each with its own material and silhouette.
   Footprints and input targets remain identical to the V16 scene geometry. */
.focus-gauge { display: none; }

#space > .today-folio {
  color: #41433c;
  border-color: #fff9e5;
  border-radius: 7px 15px 18px 7px;
  background:
    repeating-linear-gradient(0deg, #6b5e3304 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #ada292 0 3px, #fbf5e5 3px 100%);
  box-shadow: inset 4px 0 #fff9e9, inset 5px 0 #6b665423,
    inset 0 1px #fffef6, 1px 3px #e4dbc8, 2px 4px #a5a69e,
    0 16px 23px -15px #213b4ab3;
}
#space > .today-folio::before {
  width: 24px;
  height: 13px;
  background: repeating-linear-gradient(90deg, #d4964d 0 3px, #e1b773 3px 4px);
  border: 1px solid #cf9d5b;
  border-radius: 2px 4px 4px 2px;
  box-shadow: inset 0 1px #f5deb3;
  transform: translate(6px, 5px);
}
#space .today-folio-header { border-color: #76694f24; padding-left: 7px; }
#space .today-folio-header > span {
  color: #454637;
  font: italic 600 15px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -.45px;
}
#space .today-folio-date { color: #746952; font-size: 8px; letter-spacing: .7px; }
#space .today-folio > .overlay.folio-tool[data-type][data-size] {
  --folio-ink: #46515b;
  --folio-surface: #eae8df;
}
#space .today-folio > .overlay.folio-tool[data-color="blue"] { --folio-ink: #345773; --folio-surface: #e0eaf3; }
#space .today-folio > .overlay.folio-tool[data-color="sage"] { --folio-ink: #466347; --folio-surface: #e3ebd8; }
#space .today-folio > .overlay.folio-tool[data-color="blush"] { --folio-ink: #805768; --folio-surface: #f1e0e4; }
#space .today-folio > .folio-tool[data-type="checklist"] .checklist-items label {
  border-bottom: 1px dashed #9488752e;
}
#space .today-folio > .folio-tool[data-type="checklist"] .checklist-text { color: var(--folio-ink); }
#space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"]::before {
  border-color: #a6a18f;
  border-radius: 50%;
  background: #fffdf7;
  box-shadow: inset 0 1px 2px #645c4e14, 0 1px #fffdf1;
}
#space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"]:checked::before {
  background: #475f6b;
  border-color: #475f6b;
}
#space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"]:checked + .checklist-text {
  color: #7d8075;
  text-decoration: line-through;
  text-decoration-color: #8d927b;
}

/* The gauge counts down with the timer; no independent ornamental clock. */
#space .today-folio > .folio-tool[data-type="timer"][data-size] .overlay-shell {
  height: 74px;
  margin-top: 1px;
  overflow: hidden;
  border: 1px solid #87908c;
  border-radius: 12px 12px 15px 12px;
  background: linear-gradient(145deg, #384852, #25313a 70%);
  box-shadow: inset 0 1px #a4b5ba4d, inset 0 -2px #14232a, 0 1px #fffefa;
}
#space .today-folio > .folio-tool[data-type="timer"] .overlay-header {
  left: 19px;
  right: auto;
  top: 21px;
  width: 65px;
  text-align: center;
  z-index: 2;
}
#space .today-folio > .folio-tool[data-type="timer"] .overlay-title {
  color: #c8b69a;
  font-size: 7px !important;
  letter-spacing: 1.1px;
  opacity: 1;
}
#space .today-folio > .folio-tool[data-type="timer"] .focus-gauge {
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 99px;
  height: 72px;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.focus-gauge path { stroke-width: 3.5; }
.focus-gauge-track { stroke: #58626a; }
.focus-gauge-progress {
  stroke: #edbd76;
  stroke-dasharray: calc(var(--timer-progress, 1) * 100) 100;
}
.focus-gauge-divisions { stroke: #2c3942; stroke-width: 4.5 !important; stroke-dasharray: .8 3.2; }
#space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-value {
  top: 33px;
  left: 15px;
  width: 73px;
  color: #fff0d4;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -1.4px;
  text-align: center;
  text-shadow: 0 0 10px #f7c2721c;
}
#space .today-folio > .folio-tool[data-type="timer"] .timer-track { display: none; }
#space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-actions {
  top: 12px;
  right: 1px;
  gap: 0;
}
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .round-control {
  position: relative;
  border-width: 4px;
  border-radius: 50%;
  background: linear-gradient(#e6e9e4, #aab5b4) padding-box;
  box-shadow: inset 0 1px #ffffff60;
}
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .timer-toggle {
  background: linear-gradient(#f8d697, #c99551) padding-box !important;
}
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .round-control img {
  filter: none !important;
  opacity: .88;
  width: 14px;
  height: 14px;
}
#space .today-folio > .folio-tool[data-type="timer"] .timer-state {
  display: block;
  position: absolute;
  top: 43px;
  right: 9px;
  width: 72px;
  margin: 0;
  color: #ced5d5;
  font: 500 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}
#space .today-folio > .folio-tool[data-type="timer"][data-running="true"] .timer-state { color: #f5cc8c; }
#space .today-folio > .folio-tool[data-type="timer"][data-running="true"] .timer-state::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 4px;
  border-radius: 50%;
  background: #f5cc8c;
  vertical-align: 1px;
  animation: focus-lamp-v18 2.4s ease-in-out infinite;
}
@keyframes focus-lamp-v18 { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* Breakout: a ceramic handheld shell with one dark, inset screen assembly. */
#space > .overlay[data-type="game"][data-size] .overlay-shell {
  height: 194px;
  overflow: visible;
  border-color: #fcf7e8;
  border-radius: 14px 14px 29px 14px;
  background:
    linear-gradient(130deg, #fffdf365, transparent 35%),
    linear-gradient(#e5e5dc, #d0d5d0 70%, #b7c4c2);
  box-shadow: inset 0 1px #fffdf5, inset -2px -3px #90a1a277,
    inset 2px 0 #f5f6ee, 0 3px #718d96, 0 5px #365867,
    0 16px 24px -13px #18384daa;
}
#space > .overlay[data-type="game"][data-color="blue"] .overlay-shell { background: linear-gradient(135deg, #e8f5f7, #b9d3e3 70%, #9fbacb); }
#space > .overlay[data-type="game"][data-color="sage"] .overlay-shell { background: linear-gradient(135deg, #f0f3db, #c9d5b9 70%, #a7b7a5); }
#space > .overlay[data-type="game"][data-color="blush"] .overlay-shell { background: linear-gradient(135deg, #fff0e9, #e0c7cb 70%, #bba4b3); }
#space > .overlay[data-type="game"][data-size] .overlay-header {
  position: relative;
  height: 24px;
  min-height: 24px;
  padding: 2px 12px 0;
}
#space > .overlay[data-type="game"] .overlay-title {
  color: #465968;
  font-size: 9px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  letter-spacing: 1.5px;
}
#space > .overlay[data-type="game"] .overlay-header::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 26px;
  width: 20px;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #769ab6 0 28%, transparent 28% 36%, #c6b0d8 36% 64%, transparent 64% 72%, #d5ae72 72%);
  transform: skewX(-18deg);
  pointer-events: none;
}
#space > .overlay[data-type="game"] .tool-indicator {
  width: 4px;
  height: 4px;
  background: #758a88;
  box-shadow: 0 0 0 1px #556b6926, inset 0 1px #ffffff80;
}
#space > .overlay[data-type="game"][data-playing="true"] .tool-indicator {
  background: #b88a4c;
  box-shadow: 0 0 5px #eab87599;
}
#space > .overlay[data-type="game"][data-size] .game-wrap { padding: 0 8px 8px; }
#space > .overlay[data-type="game"] .game-screen {
  position: relative;
  height: 112px;
  padding: 3px;
  border: 1px solid #596e77;
  border-radius: 9px 9px 14px 9px;
  background: #20313d;
  box-shadow: inset 0 2px 3px #030c16cc, 0 1px #fffff4;
}
#space > .overlay[data-type="game"] .game-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(119deg, #e2f3ff08 0 25%, #f2f8ff12 25.2% 25.7%, transparent 26% 29%, #d9f1ff09 29.2% 29.8%, transparent 30%);
  pointer-events: none;
}
#space > .overlay[data-type="game"][data-size] .game-scorebar {
  height: 21px;
  min-height: 21px;
  margin: 0;
  padding: 2px 4px;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid #5e758342;
  border-radius: 3px 3px 0 0;
  color: #bac8ce;
  background: #182830;
  box-shadow: none;
  font-size: 8px;
}
#space > .overlay[data-type="game"] .game-scorebar b { color: #f3d697; font-size: 10px; }
#space > .overlay[data-type="game"] .game-scorebar .game-lives { color: #b8c8e0; font-size: 8px; }
#space > .overlay[data-type="game"] .game-lives::before { font-size: 6px; letter-spacing: .4px; }
#space > .overlay[data-type="game"][data-size] .game-canvas {
  display: block;
  height: 82px;
  border: 0;
  border-radius: 0 0 9px 4px;
  background: #0d1c26;
  box-shadow: inset 0 -1px #020d18;
}
#space > .overlay[data-type="game"][data-size] .game-bottom { height: 48px; min-height: 48px; padding: 4px 1px 0 7px; }
#space > .overlay[data-type="game"] .game-bottom::before {
  width: 46px;
  height: 15px;
  border-radius: 3px;
  background: repeating-linear-gradient(100deg, #5a6e74 0 2px, #fffef166 2px 3px, transparent 3px 7px);
  opacity: .76;
  transform: skewY(-7deg);
}
#space > .overlay[data-type="game"] .game-controls { gap: 3px; }
#space > .overlay[data-type="game"] .game-controls button {
  position: relative;
  border: 4px solid transparent;
  border-radius: 50%;
  background: linear-gradient(#f4f2e9, #c5cfcc) padding-box;
  box-shadow: inset 0 1px #fffaf3b3;
}
#space > .overlay[data-type="game"] .game-controls [data-game-play],
#space > .overlay[data-type="game"] .game-controls [data-game-pause] {
  border-radius: 50%;
  background: linear-gradient(#efc59d, #bd784f) padding-box;
}
#space > .overlay[data-type="game"] .game-controls button:active { transform: translateY(1px) scale(.96); }
#space > .overlay[data-type="game"] .game-controls img { filter: none; opacity: .9; }

/* The lower shell now has an actual two-way paddle rocker, not a prop.
   Its silhouette borrows the familiar handheld grammar without a brand logo. */
#space > .overlay[data-type="game"][data-size] .overlay-shell {
  border-radius: 12px 12px 38px 12px;
  background:
    repeating-linear-gradient(0deg, #55687804 0 1px, transparent 1px 3px),
    linear-gradient(115deg, #eee9df, #d7d6cc 60%, #bdc9c6);
  box-shadow: inset 0 2px #fffdf0, inset 3px 0 #fffdf370,
    inset -3px -4px #9bada9, 0 3px #81958f, 0 6px #496571,
    0 17px 22px -13px #18384dc0;
}
#space > .overlay[data-type="game"][data-color="blue"] .overlay-shell { background: linear-gradient(135deg, #e8f5f7, #b9d3e3 70%, #9fbacb); }
#space > .overlay[data-type="game"][data-color="sage"] .overlay-shell { background: linear-gradient(135deg, #f0f3db, #c9d5b9 70%, #a7b7a5); }
#space > .overlay[data-type="game"][data-color="blush"] .overlay-shell { background: linear-gradient(135deg, #fff0e9, #e0c7cb 70%, #bba4b3); }
#space > .overlay[data-type="game"] .game-screen {
  border-width: 2px 5px 4px;
  border-color: #485864 #6a787e #a2acaa #647077;
  border-radius: 7px 7px 17px 7px;
  background: #172933;
  box-shadow: inset 0 2px 3px #020d19cc, 0 1px #fffff4;
}
#space > .overlay[data-type="game"][data-size] .game-canvas { height: 78px; }
#space > .overlay[data-type="game"][data-size] .game-bottom {
  position: relative;
  justify-content: space-between;
  padding: 4px 6px 0 0;
  gap: 4px;
}
#space > .overlay[data-type="game"] .game-bottom::before { display: none; }
#space > .overlay[data-type="game"] .game-bottom::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 10px;
  left: 50%;
  top: 23px;
  background: repeating-linear-gradient(110deg, #778886 0 2px, #fff8e670 2px 3px, transparent 3px 5px);
  transform: translateX(-50%) rotate(-12deg);
  pointer-events: none;
}
#space > .overlay[data-type="game"] .game-dpad {
  position: relative;
  display: flex;
  flex: 0 0 88px;
  width: 88px;
  height: 44px;
}
#space > .overlay[data-type="game"] .game-dpad::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 40px;
  left: 9px;
  top: 2px;
  clip-path: polygon(34% 0, 66% 0, 66% 22%, 100% 22%, 100% 78%, 66% 78%, 66% 100%, 34% 100%, 34% 78%, 0 78%, 0 22%, 34% 22%);
  border-radius: 2px;
  background: linear-gradient(#4a5560, #26343e);
  box-shadow: inset 0 1px #8a999e, inset 0 -3px #11212c;
  pointer-events: none;
}
#space > .overlay[data-type="game"] .game-dpad button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  touch-action: none;
}
#space > .overlay[data-type="game"] .game-dpad button img {
  width: 14px;
  height: 14px;
  opacity: .86;
  filter: invert(1);
}
#space > .overlay[data-type="game"] [data-game-left] img { transform: rotate(180deg); }
#space > .overlay[data-type="game"] .game-dpad button:active { background: #111e3030; }
#space > .overlay[data-type="game"] .game-dpad button:focus-visible { outline: 2px solid #5489b0; outline-offset: -2px; }
#space > .overlay[data-type="game"] .game-controls {
  gap: 1px;
  transform: rotate(-12deg);
  transform-origin: center;
}
#space > .overlay[data-type="game"] .game-controls button {
  background: linear-gradient(#a26780, #673949) padding-box;
  box-shadow: inset 0 1px #db9dad66;
}
#space > .overlay[data-type="game"] .game-controls [data-game-play],
#space > .overlay[data-type="game"] .game-controls [data-game-pause] {
  background: linear-gradient(#bf7794, #814256) padding-box;
}
#space > .overlay[data-type="game"] .game-controls img { filter: invert(1) !important; }

/* Real photographic place faces. Local remains the browser's timezone;
   its coastal picture is an ambient postcard, not a geolocation claim. */
#space > .overlay[data-type="clock"][data-size] .overlay-shell {
  border-color: #ffffffcc;
  background: linear-gradient(140deg, #f4f3e7, #b9c8cb);
  box-shadow: inset 0 1px #fff, inset 0 -2px #8c9ea6,
    0 3px #547482, 0 10px 15px -10px #234956bb;
}
#space > .overlay[data-type="clock"][data-size] .world-times { padding: 4px !important; gap: 3px; }
#space > .overlay[data-type="clock"][data-size] .world-times > div {
  justify-content: space-between;
  gap: 0;
  padding: 6px 5px 7px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  color: #fff9e6;
  box-shadow: inset 0 0 0 1px #173d5460, inset 0 1px 3px #091d3040;
  background:
    linear-gradient(#061b3d50, #102b3240 28%, #092330cd),
    url('/assets/clock-places/pacific-coast.jpg') 53% center / cover;
}
#space > .overlay[data-type="clock"][data-size] .world-times > div + div {
  background:
    linear-gradient(#09183120, #13294215 32%, #081f35d9),
    url('/assets/clock-places/london-westminster.jpg') center 55% / cover;
}
#space > .overlay[data-type="clock"][data-size] .world-times .zone-label,
#space > .overlay[data-type="clock"][data-size] .world-times > div:first-child .zone-label {
  color: #fffcf3;
  font-size: 8px;
  text-shadow: 0 1px 3px #071c37;
}
#space > .overlay[data-type="clock"][data-size] .world-times time,
#space > .overlay[data-type="clock"][data-size] .world-times > div:first-child time {
  color: #fff9e8;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.5px;
  text-shadow: 0 1px 3px #001a36;
}
#space > .overlay[data-type="clock"] .world-times .zone-daylight { background: #ffd88a; }
#space > .overlay[data-type="clock"] .world-times [data-night="true"] .zone-daylight { background: #e7f2ff; }

html[data-motion="paused"] .timer-state::before,
html[data-motion-preference="paused"] .timer-state::before,
html[data-visible="false"] .timer-state::before,
html[data-hero-visible="false"] .timer-state::before {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  #space .today-folio .timer-state::before { animation: none !important; }
}
@media (prefers-contrast: more) {
  #space > .today-folio { border-color: #665e4d; }
  #space .today-folio-date { color: #494032; }
  #space > .overlay[data-type="game"] .overlay-shell { border-color: #425a67; }
}
