/* Frutiger Aero, Windows 7 flavour: sky blue, fresh green, glossy glass and soft light.
   Aero glass = a tinted, blurred pane with diagonal light streaks, a white inner edge and a dark outer edge.
   Gloss = a gradient that breaks at the middle. Glow = a soft light that follows the cursor on buttons. */
:root {
  --ink: #0b3552;
  --muted: #406a86;
  --sky-top: #3fa9f5;
  --sky-low: #dff5ff;
  --aqua-deep: #0a6fd6;
  --rule: #0b355222;
  --font: 'Open Sans', 'Segoe UI', 'Frutiger', 'Helvetica Neue', system-ui, sans-serif;
  --ease: cubic-bezier(.16, .84, .44, 1);
  /* light, card-style glass (text version, labels, hints) */
  --glass: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.62) 48%, rgba(255,255,255,.38) 52%, rgba(255,255,255,.55) 100%);
  --glass-edge: 0 10px 30px rgba(0, 70, 140, .22), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.5);
  /* Windows 7 window glass: tinted sky blue, with two diagonal streaks of light */
  --aero: linear-gradient(115deg, transparent 0 18%, rgba(255,255,255,.28) 22%, transparent 30% 58%, rgba(255,255,255,.2) 62%, transparent 68%),
          linear-gradient(180deg, rgba(180,225,255,.62), rgba(120,190,240,.48));
  --aero-edge: 0 0 0 1px rgba(0, 30, 60, .55), inset 0 0 0 1px rgba(255,255,255,.65), 0 14px 40px rgba(0, 40, 90, .35);
  --button: linear-gradient(180deg, #b9ecff 0%, #5cc8ff 49%, #1ea7f5 51%, #63d0ff 100%);
  --button-on: linear-gradient(180deg, #7fd6ff 0%, #1d9bf0 49%, #0a74d8 51%, #2a9bf0 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--sky-low); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 400 16px/1.6 var(--font);
  background: linear-gradient(180deg, var(--sky-top) 0%, #9fdcff 40%, var(--sky-low) 75%, #c9f0c4 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--aqua-deep); text-underline-offset: .2em; }
a:hover { color: #004a9e; }
:focus-visible { outline: 3px solid #ffb300; outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Content (text version and inside the windows) ---------- */
.sections section, .intro {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.8)); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--glass-edge);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 20px;
}
h1 { font-weight: 800; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: 26px; line-height: 1.2; margin: 0 0 16px; color: var(--ink); }
h3 { font-weight: 700; font-size: 18px; line-height: 1.3; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
.big { font-size: 1.2em; line-height: 1.45; font-weight: 600; }
.lede { font-style: italic; color: var(--muted); }
.project + .project { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.project h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-top: 0; }
.app-icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 3px 10px rgba(0,60,120,.25); }
.shot { margin: 16px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,60,120,.2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0; list-style: none; }
.tags li {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: #0a4a7a;
  background: linear-gradient(180deg, #fff 0%, #e2f6ff 50%, #cdeeff 51%, #e6f8ff 100%);
  border: 1px solid #a9dcf7; box-shadow: inset 0 1px 0 #fff;
}
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a, .copy {
  font: 700 14px/1 var(--font); color: #06243c; text-decoration: none; text-shadow: 0 1px 0 rgba(255,255,255,.6);
  padding: 10px 16px; border-radius: 999px; background: var(--button); border: 1px solid #0b86d6;
  box-shadow: 0 3px 10px rgba(0,110,200,.3), inset 0 1px 0 rgba(255,255,255,.8); cursor: pointer;
  transition: filter .2s, transform .2s;
}
.links a:hover, .copy:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); color: #06243c; }
dl { margin: 0; }
dt { font-weight: 700; margin-top: 14px; }
dd { margin: 2px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  padding: 12px 14px; margin-bottom: 10px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(235,247,255,.8)); border: 1px solid #cfe8f7;
  box-shadow: 0 2px 8px rgba(0,70,140,.1);
}
.timeline h3 { margin: 0 0 2px; font-size: 16px; }
.timeline p { margin: 0; }
.when { font-size: 12px; font-weight: 700; color: #136f2c; text-transform: uppercase; letter-spacing: .06em; }
.email { font-weight: 800; font-size: clamp(18px, 4.4vw, 24px); overflow-wrap: anywhere; }
.copy-status { font-size: 13px; color: var(--muted); margin-left: 10px; }
.socials { list-style: none; padding: 0; margin: 16px 0 0; font-weight: 700; }
.socials li { margin-bottom: 6px; }
.socials span { font-weight: 400; color: var(--muted); margin-left: 6px; }

/* ---------- Text version ---------- */
.sections { max-width: 720px; margin: 0 auto; padding: 40px 16px 80px; display: grid; gap: 20px; }
.sections section, .intro { padding: 26px 24px; }
.footer { text-align: center; font-size: 13px; color: #06243c; text-shadow: 0 0 6px rgba(255,255,255,.8); }

/* The 3D-only chrome is hidden in the text version. */
.stage, .bar, .hint, .hint-touch, .mode, .panel { display: none; }

/* ---------- 3D version ---------- */
html.live, html.live body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.live .sections { display: none; }
html.live .stage { display: block; position: fixed; inset: 0; }
html.live #world { width: 100vw; height: 100dvh; display: block; touch-action: none; cursor: grab; outline: none; image-rendering: pixelated; }
html.live #world.dragging { cursor: grabbing; }
html.live #world.over { cursor: pointer; }

/* Labels: Windows 7 tooltips */
.labels { position: absolute; inset: 0; pointer-events: none; }
.label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 700 13px/1 var(--font); color: #1e3a52; padding: 7px 12px; border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #e4eef8 100%); border: 1px solid #76808a;
  box-shadow: 0 3px 8px rgba(0,30,60,.3);
  transition: opacity .3s, background .2s, color .2s;
}
.label.small { font-size: 11px; padding: 5px 9px; }
.label.hot { background: var(--button); color: #fff; text-shadow: 0 1px 1px rgba(0,60,120,.5); border-color: #0b86d6; }

/* The top bar: Aero glass, curved, with a start orb */
html.live .bar {
  display: flex; align-items: center; gap: 12px; position: fixed; z-index: 3; top: 12px; left: 50%;
  transform: translateX(-50%); width: min(1000px, calc(100% - 24px)); height: 58px; padding: 0 10px 0 6px;
  border-radius: 29px; background: var(--aero); box-shadow: var(--aero-edge);
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  overflow: hidden;
}
/* a curved swoosh of light across the bar */
html.live .bar::before {
  content: ''; position: absolute; left: -10%; right: -10%; top: -150%; height: 200%; pointer-events: none;
  border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.08));
}
.brand { position: relative; display: flex; align-items: center; gap: 10px; color: #06243c; text-decoration: none; font-weight: 800; font-size: 15px; white-space: nowrap; text-shadow: 0 0 8px rgba(255,255,255,.9); }
.orb {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #fff 0, #bfe8ff 18%, #2b8de0 55%, #0a3f8c 100%);
  box-shadow: 0 0 0 1px rgba(0,30,60,.6), inset 0 2px 3px rgba(255,255,255,.9), 0 0 14px rgba(90,200,255,.8);
  transition: box-shadow .3s;
}
.orb img { width: 26px; height: 26px; border-radius: 7px; }
.brand:hover .orb { box-shadow: 0 0 0 1px rgba(0,30,60,.6), inset 0 2px 3px #fff, 0 0 24px 4px rgba(120,230,255,.95); }
.tabs { position: relative; display: flex; gap: 4px; margin: 0 auto; }
.tabs a {
  --mx: 50%;
  position: relative; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 21px;
  font-weight: 700; font-size: 14px; color: #06243c; text-decoration: none; white-space: nowrap; text-shadow: 0 0 8px rgba(255,255,255,.9);
  border: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s;
}
.tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Windows 7 taskbar hover: a coloured glow under the cursor, in a glass button */
.tabs a:hover {
  border-color: rgba(255,255,255,.75);
  background: radial-gradient(70px 40px at var(--mx) 100%, rgba(120,230,255,.7), transparent 70%),
              linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.2) 49%, rgba(255,255,255,.05) 51%, rgba(255,255,255,.25) 100%);
  box-shadow: 0 0 0 1px rgba(0,30,60,.35), inset 0 1px 0 rgba(255,255,255,.8);
  color: #06243c;
}
.tabs a[aria-current] {
  background: radial-gradient(80px 40px at 50% 100%, rgba(140,240,255,.95), transparent 75%), var(--button-on);
  color: #fff; border-color: rgba(255,255,255,.8); text-shadow: 0 1px 2px rgba(0,40,90,.7);
  box-shadow: 0 0 0 1px rgba(0,30,60,.5), inset 0 1px 0 rgba(255,255,255,.7), 0 0 16px rgba(80,200,255,.7);
}
.bubbles {
  position: relative; display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px;
  font-weight: 800; font-size: 14px; color: #0857b0;
  background: linear-gradient(180deg, #fff, #e3f6ff); border: 1px solid #8cc9ee; box-shadow: inset 0 1px 0 #fff;
}
.bubbles svg { width: 18px; height: 18px; fill: rgba(120,210,255,.35); stroke: #19a7f0; stroke-width: 1.6; }
.bubbles.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.2); } }

/* Controls hint and text-version link */
html.live .hint, html.live .hint-touch, html.live .mode {
  display: block; position: fixed; bottom: 16px; margin: 0; border-radius: 14px;
  font-size: 13px; font-weight: 600; color: #06243c; background: var(--aero); box-shadow: var(--aero-edge);
  backdrop-filter: blur(12px) saturate(170%); -webkit-backdrop-filter: blur(12px) saturate(170%);
  text-shadow: 0 0 6px rgba(255,255,255,.9); transition: opacity .6s;
}
html.live .hint { left: 16px; padding: 10px 14px; pointer-events: none; max-width: 420px; }
.hint p { margin: 0; }
.hint .keys { margin-bottom: 4px; }
kbd {
  display: inline-block; min-width: 22px; padding: 1px 6px; margin-right: 2px; border-radius: 4px; text-align: center;
  font: 700 11px/18px var(--font); color: #1e3a52; text-shadow: none;
  background: linear-gradient(180deg, #fff, #dfe9f2); border: 1px solid #8a96a3; box-shadow: 0 1px 0 #8a96a3;
}
html.live .hint-touch { display: none; }
html.live .mode { right: 16px; padding: 8px 14px; text-decoration: none; }
html.moved .hint { opacity: .8; }
html.open .hint, html.open .hint-touch, html.open .mode { opacity: 0; pointer-events: none; }

/* The window: Windows 7 Aero frame around a white page */
html.live .panel {
  display: flex; flex-direction: column; position: fixed; z-index: 2; top: 84px; left: 16px; bottom: 16px;
  width: min(520px, 42vw); padding: 0 8px 8px; border-radius: 10px;
  background: var(--aero); box-shadow: var(--aero-edge);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  opacity: 0; transform: translateY(10px) scale(.97); transform-origin: 30% 0;
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
html.live .panel[hidden], html.live .panel.min { display: none; }
html.live .panel.max { width: auto; right: 16px; transform-origin: 50% 0; }
html.live .panel.in { opacity: 1; transform: none; }
.panel:focus { outline: none; }
.titlebar { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 4px; flex: none; }
.titlebar img { width: 16px; height: 16px; border-radius: 4px; }
.window-title { flex: 1; font-size: 14px; font-weight: 600; color: #000; text-shadow: 0 0 10px #fff, 0 0 10px #fff; }
.caption { display: flex; align-self: flex-start; }
.cap, .close { height: 20px; padding: 0; border: 1px solid rgba(0,30,60,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); cursor: pointer; }
.cap {
  display: grid; place-items: center; width: 27px;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.2) 50%, rgba(160,210,240,.25) 51%, rgba(255,255,255,.4) 100%);
}
.cap:first-child { border-radius: 0 0 0 5px; border-right: 0; }
.cap svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 0 1px rgba(0,20,50,.9)); }
.cap:hover { background: linear-gradient(180deg, #d8f2ff 0%, #7fcbf5 49%, #3aa6e8 51%, #8fd8ff 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 0 8px rgba(90,200,255,.9); }
.cap .two, .panel.max .cap .one { display: none; }
.panel.max .cap .two { display: inline; }
.close {
  display: grid; place-items: center; align-self: flex-start; width: 46px; margin-left: -1px; border-radius: 0 0 5px 0;
  background: linear-gradient(180deg, #e9a99c 0%, #d65c45 49%, #c03c22 51%, #d9704f 100%);
}
.close svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 1px rgba(80,0,0,.8)); }
.close:hover { background: linear-gradient(180deg, #f6b9aa 0%, #ea6a4f 49%, #d4401f 51%, #f08a5f 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 10px rgba(255,120,80,.9); }
.panel-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 30px;
  background: linear-gradient(180deg, #fff 0%, #f4f9fd 100%); border: 1px solid rgba(0,30,60,.5); border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
}
.panel-body > * { animation: rise .5s var(--ease) both; }
.panel-body > *:nth-child(2) { animation-delay: .05s; }
.panel-body > *:nth-child(3) { animation-delay: .1s; }
.panel-body > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Help button, the minimised-window button and the how-to-play dialog */
.help {
  position: relative; width: 32px; height: 32px; border-radius: 50%; padding: 0; cursor: pointer;
  font: 800 16px/1 var(--font); color: #fff; text-shadow: 0 1px 1px rgba(0,50,110,.6);
  background: var(--button); border: 1px solid #0b86d6; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 6px rgba(0,80,160,.3);
}
.help:hover { filter: brightness(1.08); }
html.live .restore:not([hidden]) {
  display: flex; align-items: center; gap: 8px; position: fixed; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%);
  height: 40px; padding: 0 18px 0 12px; border-radius: 20px; cursor: pointer;
  font: 700 14px/1 var(--font); color: #06243c; text-shadow: 0 0 8px rgba(255,255,255,.9);
  background: radial-gradient(80px 30px at 50% 100%, rgba(140,240,255,.8), transparent 75%), var(--aero); box-shadow: var(--aero-edge);
  border: 0; backdrop-filter: blur(12px) saturate(170%); -webkit-backdrop-filter: blur(12px) saturate(170%);
}
.restore:not([hidden]):hover { box-shadow: var(--aero-edge), 0 0 18px rgba(100,220,255,.9); }
.restore img { border-radius: 4px; }
.restore { display: none; }
.tour { display: none; }
html.live .tour:not([hidden]) {
  display: block; position: fixed; z-index: 4; left: 50%; bottom: 90px; transform: translateX(-50%);
  width: min(460px, calc(100% - 24px)); padding: 0 8px 8px; border-radius: 10px;
  background: var(--aero); box-shadow: var(--aero-edge);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  animation: rise .4s var(--ease) both;
}
.tour-body {
  display: flex; gap: 16px; align-items: center; padding: 18px 18px 12px;
  background: linear-gradient(180deg, #fff, #f4f9fd); border: 1px solid rgba(0,30,60,.5); border-bottom: 0; border-radius: 3px 3px 0 0;
}
.tour-body h2 { font-size: 19px; margin: 0 0 6px; }
.tour-text { margin: 0; font-size: 14.5px; line-height: 1.5; }
.tour-art {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font: 800 20px/1 var(--font); color: #fff; text-shadow: 0 1px 2px rgba(0,50,110,.6);
  background: radial-gradient(circle at 50% 28%, #fff 0, #bfe8ff 18%, #2b8de0 58%, #0a3f8c 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.9), 0 3px 10px rgba(0,60,140,.35);
}
.tour-art[data-art="hero"]::before { content: ''; width: 34px; height: 34px; border-radius: 9px; background: url(../assets/favicon.svg) center / cover; }
.tour-art[data-art="keys"]::before { content: 'WASD'; font-size: 14px; }
.tour-art[data-art="look"]::before { content: '\21BB'; font-size: 30px; }
.tour-art[data-art="plaza"]::before { content: ''; width: 34px; height: 12px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 8px #9ff; }
.tour-art[data-art="bubble"]::before { content: ''; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: radial-gradient(circle at 35% 30%, #fff 0 12%, transparent 14%); }
.tour-foot {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: linear-gradient(180deg, #f0f0f0, #e2e6ea); border: 1px solid rgba(0,30,60,.5); border-top: 1px solid #d0d6dc; border-radius: 0 0 3px 3px;
}
.tour-step { flex: 1; font-size: 13px; color: var(--muted); }
/* Windows 7 push buttons */
.btn7 {
  min-width: 76px; height: 28px; padding: 0 12px; border-radius: 3px; cursor: pointer;
  font: 600 13px/1 var(--font); color: #111;
  background: linear-gradient(180deg, #f2f2f2 0%, #ebebeb 49%, #dddddd 51%, #cfcfcf 100%);
  border: 1px solid #707070; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.btn7:hover { background: linear-gradient(180deg, #eaf6fd 0%, #d9f0fc 49%, #bee6fd 51%, #a7d9f5 100%); border-color: #3c7fb1; }
.btn7.primary { border-color: #3c7fb1; box-shadow: inset 0 0 0 1px #8fd0f5; }
.btn7:disabled { color: #9a9a9a; border-color: #adb2b5; background: #f4f4f4; cursor: default; }

/* Brand: name plus a visible way back to the main site */
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-back { font-size: 12px; font-weight: 600; color: #0a3a66; }
.brand:hover .brand-back { text-decoration: underline; }
/* Email me: always one click away */
.email-me {
  position: relative; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px;
  font: 700 14px/1 var(--font); color: #06243c; text-decoration: none; text-shadow: 0 1px 0 rgba(255,255,255,.6);
  background: linear-gradient(180deg, #e9fbd9 0%, #a8ec7c 49%, #6fd145 51%, #a6ef78 100%);
  border: 1px solid #3f9a1f; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 6px rgba(30,100,10,.3);
}
.email-me:hover { color: #06243c; filter: brightness(1.06); }
.email-me svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
/* Inside a window the title bar already names it: keep the heading for screen readers only */
.panel-body > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* While the tour is open, the hint bars would repeat it */
html.touring .hint, html.touring .hint-touch { opacity: 0; }
/* Bigger window buttons for fingers */
@media (pointer: coarse) {
  .cap, .close { height: 30px; }
  .cap { width: 40px; }
  .close { width: 56px; }
}

@media (max-width: 760px) {
  html.live .bar { top: 8px; width: calc(100% - 16px); height: 54px; padding: 0 6px 0 4px; gap: 2px; border-radius: 27px; }
  .brand-text, .bubbles { display: none; }
  .email-me { width: 34px; padding: 0; justify-content: center; flex: none; }
  .email-me span { display: none; }
  .orb { width: 44px; height: 44px; }
  .tabs { gap: 0; margin: 0; flex: 1; justify-content: space-around; }
  .tabs a { flex-direction: column; justify-content: center; gap: 1px; height: 46px; padding: 0 6px; font-size: 11px; border-radius: 14px; }
  .bubbles { padding: 4px 8px; font-size: 13px; }
  .help { width: 28px; height: 28px; flex: none; }
  html.live .tour:not([hidden]) { bottom: 64px; }
  .tour-art { width: 48px; height: 48px; }
  .tour-foot .btn7 { min-width: 0; }
  html.live .hint { display: none; }
  html.live .hint-touch { display: block; left: 12px; right: auto; bottom: 12px; padding: 8px 12px; font-size: 12px; max-width: calc(100% - 150px); }
  html.live .mode { right: 12px; bottom: 12px; font-size: 12px; }
  html.live .panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 62dvh; transform: translateY(24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  html.live, html.live body { height: auto; overflow: visible; }
  html.live .sections { display: grid; }
  .stage, .bar, .hint, .hint-touch, .mode, .panel, .restore, .tour, .shot, .copy-row, .mode-3d { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sections section, .intro { box-shadow: none; border: 1px solid #ccc; background: #fff; }
  .links a { color: #000; background: none; border: none; box-shadow: none; text-shadow: none; padding: 0; }
}
