/*
 * The home screen on a 1920 × 1080 stage, with the Android app's measurements (HomeView, DESIGN-TVOS.md), after Apple
 * TV's: the Top Shelf (this hour's pick edge to edge, its text at the bottom left), the status pill and icon-only glass
 * buttons at the top right, the glass Dock with the apps, and the app grid that comes up from below it (↓). HDMI Inputs
 * opens the drawer (inputs, shortcuts, weather). Light by day, dark from sunset to sunrise.
 * No CSS variables, grid or backdrop-filter: older LG TVs (webOS 3 and 4) don't have them, and blur is too heavy for
 * their GPUs; the glass shows a tiny copy of the photo, stretched (already as soft as a blur). Only transform and
 * opacity animate. Everything that can change mid-flight (focus, the Dock, the grid lift, tabs, Control Center, sheets)
 * moves on springs from motion.js, written by home.js (ANIMATIONS-SPEC.md); CSS keeps only short one-shot fades.
 */
@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
}
/* Only the nature screensaver's clock uses Antonio (SIL OFL, fonts/Antonio-OFL.txt); every other text is Inter. */
@font-face {
  font-family: 'Antonio';
  src: url('fonts/Antonio-Light.ttf') format('truetype');
  font-weight: 300;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #F5F5F7;
}

body {
  font-family: 'Inter', 'LG Smart UI', 'Helvetica Neue', Arial, sans-serif;
  color: #1D1D1F;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; outline: none; }

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}

.layer { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }

/* Symbols: Material Symbols as white PNGs, tinted by the background color. */
.sym {
  display: inline-block;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  background-color: currentColor;
}

/* MARK: - Background: the Top Shelf's photo, edge to edge; without picks, a gradient (or the blurred photo). */

/* Keep every photo/art child in the background stacking context.  Media art
 * has its own positive z-index for the Horizon crossfade, but must never
 * rise above the interactive TV layer. */
#sky { z-index: 0; background: #EBEBEF; }
#sky .grad { position: absolute; left: 0; top: 0; width: 100%; height: 100%; -webkit-transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1); }
#sky .day { background: -webkit-linear-gradient(top, #F5F5F7, #E2E2E7); background: linear-gradient(#F5F5F7, #E2E2E7); }
#sky .night { background: -webkit-linear-gradient(top, #0D131F, #1C2638 56%, #080B12); background: linear-gradient(#0D131F, #1C2638 56%, #080B12); opacity: 0; }
#sky .horizon { position: absolute; left: 0; top: 0; width: 100%; height: 100%; -webkit-transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1); }
#sky .horizon.night { opacity: 0; }
.hz-day, #sky #horizonDay {
  background: -webkit-radial-gradient(-8% 69%, 83% 83%, #F5EBD6 0%, transparent 72%),
    -webkit-radial-gradient(53% 48%, 78% 78%, #DCE6EF 0%, transparent 74%),
    -webkit-radial-gradient(106% 104%, 104% 104%, #7E9BB5 0%, transparent 72%),
    -webkit-linear-gradient(top, #B8C7D6 0%, #DCE6EF 56%, #7E9BB5 100%);
  background: radial-gradient(83% 83% at -8% 69%, #F5EBD6 0%, transparent 72%),
    radial-gradient(78% 78% at 53% 48%, #DCE6EF 0%, transparent 74%),
    radial-gradient(104% 104% at 106% 104%, #7E9BB5 0%, transparent 72%),
    linear-gradient(180deg, #B8C7D6 0%, #DCE6EF 56%, #7E9BB5 100%);
}
.hz-night, #sky #horizonNight {
  background: -webkit-radial-gradient(-8% 69%, 83% 83%, #1C2638 0%, transparent 72%),
    -webkit-radial-gradient(53% 48%, 78% 78%, #151E2D 0%, transparent 74%),
    -webkit-radial-gradient(106% 104%, 104% 104%, #080B12 0%, transparent 72%),
    -webkit-linear-gradient(top, #0D131F 0%, #1C2638 56%, #080B12 100%);
  background: radial-gradient(83% 83% at -8% 69%, #1C2638 0%, transparent 72%),
    radial-gradient(78% 78% at 53% 48%, #151E2D 0%, transparent 74%),
    radial-gradient(104% 104% at 106% 104%, #080B12 0%, transparent 72%),
    linear-gradient(180deg, #0D131F 0%, #1C2638 56%, #080B12 100%);
}
/* A fixed two-pixel ordered dither keeps the broad gradients from banding on older TV panels. */
.hz::before, .hz::after, #sky .horizon::before, #sky .horizon::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.hz::before, #sky .horizon::before {
  background: -webkit-repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.004) 0, rgba(255, 255, 255, 0.004) 1px, rgba(0, 0, 0, 0.004) 1px, rgba(0, 0, 0, 0.004) 2px);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.004) 0, rgba(255, 255, 255, 0.004) 1px, rgba(0, 0, 0, 0.004) 1px, rgba(0, 0, 0, 0.004) 2px);
}
.hz-day::after, #sky #horizonDay::after {
  background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.12) 100%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.12) 100%);
}
.hz-night::after, #sky #horizonNight::after {
  background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.18) 100%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.18) 100%);
}
/* The same Frosted Horizon on its own (the intro, the lock): day by day, its twilight at night. */
.hz { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.hz-night, .night .hz-day { opacity: 0; }
.night .hz-night { opacity: 1; }
#sky .photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  -webkit-transition: none;
  transition: none;
}
#sky .photo.on { opacity: 1; }
#wallpaperVideo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: none; pointer-events: none; z-index: 1; }
/* A profile wallpaper is visual-only.  Media art remains above Horizon, but
 * profile states never retain a previous Top Shelf title or controls. */
.profile-background #sky .photo { z-index: 1; }
.media-background #sky .photo { z-index: 2; }
.profile-background #hero, .profile-background #details, .profile-background #dots,
.profile-background #watch, .profile-background #chevron { opacity: 0 !important; visibility: hidden; pointer-events: none; }
/* At night without the profile background (a media page with no art, the first frame), the twilight Horizon shows,
 * not the day one. */
.night #horizonDay { opacity: 0; }
.night #horizonNight { opacity: 1; }
.profile-background #horizonDay { opacity: 1; }
.profile-background #horizonNight { opacity: 0; }
.profile-background.night #horizonDay { opacity: 0; }
.profile-background.night #horizonNight { opacity: 1; }
/* The art, a little wider than the screen: it drifts ±8 px against the focus moving along the Dock. */
#art { position: absolute; left: -8px; top: 0; width: 1936px; height: 100%; z-index: 2; }
/* The blurred copy (behind the grid, Home and Welly): home.js sets its opacity from how far the page has gone. */
#blur { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* Darker only where text sits: the title at the bottom left, the Dock's names, the pill at the top. */
#sky .scrim {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* As in Apple's photo: barely any; only behind the logo (top left), the pill (top) and under the Dock. */
  background: -webkit-radial-gradient(220px 140px, 520px 520px, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0)),
    -webkit-linear-gradient(top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 16%),
    -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 30%);
  background: radial-gradient(520px 520px at 220px 140px, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0)),
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 16%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 30%);
  -webkit-transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Full screen: a soft shade behind the details at the bottom left. */
#sky .scrim::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 45%);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 45%);
  -webkit-transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.full #sky .scrim::after { opacity: 1; }
.has-photo #sky .scrim { opacity: 1; }
#sky canvas { position: absolute; left: -4%; top: -4%; width: 108%; height: 108%; opacity: 0; -webkit-transition: opacity 0.7s cubic-bezier(.2,.8,.2,1); transition: opacity 0.7s cubic-bezier(.2,.8,.2,1); }
#sky canvas.on { opacity: 1; }
#sky .veil { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(245, 245, 247, 0.74); -webkit-transition: background-color 2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition: background-color 2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.has-photo #sky .veil { opacity: 0; }
/* Frosted Horizon and Studio backgrounds are already their own atmosphere;
 * the old neutral veil would wash out their selected Apple colours. */
.profile-background #sky .veil { opacity: 0; }
#sky .lift { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #FFF; opacity: 0; -webkit-transition: background-color 2s cubic-bezier(0.22, 1, 0.36, 1); transition: background-color 2s cubic-bezier(0.22, 1, 0.36, 1); }
.night #sky .day { opacity: 0; }
.night #sky .night { opacity: 1; }
.night #sky .veil { background: rgba(13, 19, 31, 0.22); }
/* Without a photo there's only the Horizon under it: nothing to wash out. */
body:not(.has-photo) #sky .veil { opacity: 0; }
.night #sky .lift { background: #000; }

/* MARK: - Moving parts: the app grid lifts the page; Control Center floats in from the right over everything. */

/* Each part is its own stack, so a focused tile (z-index) never shows over Control Center, a sheet or the screensaver. */
#home { z-index: 1; }
#dim { z-index: 2; }
#drawer { z-index: 3; }
.sheet { z-index: 4; }
#saver { z-index: 5; }

/* Layers that hold others: only what's inside them takes the pointer. */
#tv, #shelftop, #top { pointer-events: none; }
#tv .tile, #platter, #watch, #pill, #ccbtn, #buttons > * { pointer-events: auto; }
/* Control Center keeps the art visible: the page only dims a little behind it (home.js, with the panel). */
#dim { background: #000; opacity: 0; pointer-events: none; }

/* MARK: - Top Shelf (Apple's photo, 1:1): the title's logo top left, nothing else over the art */

#hero {
  position: absolute;
  left: 64px;
  top: 44px;
  width: 640px;
  color: #FFF;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}
#hero .logo { display: none; max-width: 380px; max-height: 200px; -webkit-filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.35)); filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.35)); }
#hero.has-logo .logo { display: block; }
#hero.has-logo h1 { display: none; }
#hero h1 { margin: 0; font-size: 76px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; max-height: 156px; overflow: hidden; }
.wallpaper #chevron { opacity: 0; }

/* The chevron: ↑ for full screen. */
#chevron {
  position: absolute;
  left: 945px;
  top: 712px;
  width: 30px;
  height: 12px;
  opacity: 0.75;
  -webkit-transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#chevron::before, #chevron::after {
  content: '';
  position: absolute;
  top: 5px;
  width: 17px;
  height: 3px;
  border-radius: 2px;
  background: #FFF;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
#chevron::before { left: 1px; -webkit-transform: rotate(-22deg); transform: rotate(-22deg); }
#chevron::after { right: 1px; -webkit-transform: rotate(22deg); transform: rotate(22deg); }
/* It breathes while the Dock has the focus (±2.5 px over 3.2 s), on the compositor: no frames from the page. */
.dock-focus #chevron { -webkit-animation: breathe 3.2s ease-in-out infinite; animation: breathe 3.2s ease-in-out infinite; }
@-webkit-keyframes breathe { 0%, 100% { -webkit-transform: translateY(-2.5px); } 50% { -webkit-transform: translateY(2.5px); } }
@keyframes breathe { 0%, 100% { transform: translateY(-2.5px); } 50% { transform: translateY(2.5px); } }

/* Full screen (↑ on a pick): the Dock recesses (36 px, 0.75) and stays; the details come up above it, bottom left. */
#details {
  position: absolute;
  left: 80px;
  bottom: 330px;
  width: 1000px;
  color: #FFF;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}
/* Entry by hierarchy (metadata, synopsis, then Play, 40 ms apart, on springs in home.js); on exit they go together. */
#details > * { opacity: 0; }
.full #chevron { opacity: 0; }
#details .meta { height: 34px; font-size: 29px; font-weight: 500; line-height: 34px; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
#details .meta .badge {
  display: inline-block;
  height: 27px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-size: 19px;
  font-weight: 650;
  line-height: 27px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  vertical-align: 3px;
  text-shadow: none;
}
#details .meta .badge:first-child { margin-left: 18px; }
#details .overview { margin: 16px 0 26px; max-width: 860px; max-height: 68px; overflow: hidden; font-size: 26px; line-height: 34px; color: rgba(255, 255, 255, 0.75); }
#watch {
  position: relative;
  height: 60px;
  padding: 0 36px 0 30px;
  border-radius: 30px;
  font-size: 28px;
  font-weight: 600;
  line-height: 60px;
  white-space: nowrap;
  color: #FFF;
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.6), inset -1px -1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.2);
  text-shadow: none;
  -webkit-transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
#watch .sym { width: 26px; height: 26px; vertical-align: -5px; margin-right: 12px; }
#watch.focus { background: #FFF; color: #1C1C1E; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
#dots { position: absolute; right: 80px; bottom: 336px; height: 8px; font-size: 0; white-space: nowrap; opacity: 0; -webkit-transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.full #dots { opacity: 1; }
#dots .dot { display: inline-block; width: 8px; height: 8px; margin-left: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.38); }
/* The current page's dot: one white dot that slides between them. */
#dots .cur { position: absolute; left: 14px; top: 0; width: 8px; height: 8px; border-radius: 4px; background: #FFF; }

/* MARK: - The status pill (top right): the time and your profile's avatar, in smoke glass */

#pill {
  position: absolute;
  right: 45px;
  top: 48px;
  height: 57px;
  padding: 0 4px 0 24px;
  border-radius: 29px;
  white-space: nowrap;
  font-size: 28px;
  font-weight: 600;
  line-height: 57px;
  color: #FFF;
  background: rgba(52, 62, 76, 0.52);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34), inset -1px -1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(0, 0, 0, 0.16);
  -webkit-font-feature-settings: 'tnum';
  font-feature-settings: 'tnum';
  -webkit-transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.17s cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.17s cubic-bezier(0.22, 1, 0.36, 1);
}
#pill .time { display: inline-block; margin-right: 20px; vertical-align: top; }
#pill .avatar { position: relative; display: inline-block; width: 49px; height: 49px; margin-top: 4px; border-radius: 18px; background-size: cover; background-position: center; vertical-align: top; }
/* Another profile: the old face over the new one, fading out. */
#pill .avatar .prev { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 18px; background-size: cover; background-position: center; -webkit-transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
/* Focused: white, with a brighter rim (the scale and the avatar's pop are springs in home.js). */
#pill.focus { background: #FFF; color: #1C1C1E; box-shadow: inset 1.5px 1.5px 0 #FFF, 0 10px 26px rgba(0, 0, 0, 0.28); }
.no-picks #pill, .night.no-picks #pill { background: rgba(52, 62, 76, 0.52); }

/* Crypto quotes (show_crypto) or what's playing: left of the pill. */
#quotes {
  position: absolute;
  top: 63px;
  height: 28px;
  font-size: 21px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  -webkit-font-feature-settings: 'tnum';
  font-feature-settings: 'tnum';
}
#quotes .q { display: inline-block; margin-left: 24px; }
#quotes svg { width: 15px; height: 15px; vertical-align: -1px; margin-right: 6px; fill: rgba(255, 255, 255, 0.6); }
#clock { display: none; }

/* Extra top buttons (Top Buttons in Home Settings), left of the pill */
.round {
  position: absolute;
  top: 46px;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  color: #FFF;
  background: rgba(52, 62, 76, 0.52);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34), inset -1px -1px 0 rgba(255, 255, 255, 0.08);
}
.round .sym { position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; }
.round.focus { background: #FFF; color: #1D1D1F; }
.round .tip { display: none; }

/* MARK: - Dock: one Liquid Glass bar of 6 tiles, 244 × 146 (5:3), 57 apart; focused, a tile grows 1.23× in place */

.drawer-open #quotes { opacity: 0; }

#platter {
  position: absolute;
  top: 782px;
  height: 226px;
  border-radius: 64px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}
/* The art behind it, tiny and stretched (as soft as a blur), its colors pushed (the canvas is drawn saturated). */
#platter .bleed, #drawer .bleed { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0; }
.has-photo #platter .bleed, .has-photo #drawer .bleed { opacity: 1; }
#platter .tint, #drawer .tint {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42));
  background: linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42));
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.75), inset -1px -1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
#platter .tint::after, #drawer .tint::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 46%;
  height: 70%;
  border-radius: inherit;
  background: -webkit-radial-gradient(0 0, ellipse, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
  background: radial-gradient(ellipse at 0 0, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
}
/* Over a photo the Dock is a smoky glass, as in Apple's photo: the art shows through, darker. */
.has-photo #platter .tint, .has-photo #drawer .tint {
  background: -webkit-linear-gradient(top, rgba(70, 70, 64, 0.5), rgba(48, 48, 44, 0.46));
  background: linear-gradient(rgba(70, 70, 64, 0.5), rgba(48, 48, 44, 0.46));
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34), inset -1px -1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.night #platter { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.night #platter .tint, .night #drawer .tint {
  background: -webkit-linear-gradient(top, rgba(34, 34, 38, 0.62), rgba(17, 17, 19, 0.52));
  background: linear-gradient(rgba(34, 34, 38, 0.62), rgba(17, 17, 19, 0.52));
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34), inset -1px -1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.night.has-photo #platter .tint, .night.has-photo #drawer .tint {
  background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.5), rgba(20, 20, 22, 0.46));
  background: linear-gradient(rgba(40, 40, 40, 0.5), rgba(20, 20, 22, 0.46));
}
/* Over bright art (home.js measures it, V4): a light frost with dark ink, so the glass keeps its contrast without a
 * dark layer. */
.has-photo.art-bright #platter .tint, .has-photo.art-bright #drawer .tint {
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.34));
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.34));
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.7), inset -1px -1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.has-photo.art-bright #drawer { color: #1D1D1F; }
/* Control Center sits over the page (Welly's chips, the Dock), not only the wallpaper, and old TVs can't blur what's
 * behind it: without a photo it gets a solid base under its glass (as Reduce Transparency does), so nothing under it
 * reads through; over a photo its bleed (the art) is that base. */
#drawer { background: #EEF1F5; }
.night #drawer { background: #1B1C21; }
.has-photo #drawer { background: none; }
#drawer .tint {
  background: -webkit-linear-gradient(top, rgba(248, 249, 251, 0.97), rgba(240, 242, 245, 0.95));
  background: linear-gradient(rgba(248, 249, 251, 0.97), rgba(240, 242, 245, 0.95));
}
.night #drawer .tint {
  background: -webkit-linear-gradient(top, rgba(38, 40, 46, 0.97), rgba(24, 25, 29, 0.95));
  background: linear-gradient(rgba(38, 40, 46, 0.97), rgba(24, 25, 29, 0.95));
}

#tiles, #shadows { position: absolute; left: 0; top: 0; }
/* A focused tile's lift shadow: its own element behind the tile (the tile clips), faded in with the focus. */
.lift-shadow { position: absolute; width: 244px; height: 146px; border-radius: 24px; box-shadow: 0 28px 46px rgba(0, 0, 0, 0.36); opacity: 0; pointer-events: none; }
.night .lift-shadow { box-shadow: 0 28px 46px rgba(0, 0, 0, 0.48); }
.cell .lift-shadow { left: 0; top: 0; }

/*
 * An app tile, flat at rest as in Apple's photo: the backdrop (painted by home.js) and the emblem, nothing baked in
 * (apple-design-materials: the system adds light and shadow). Focused, it grows in place on a snappy spring, lifts on
 * one soft shadow, and one specular sheen moves with a near-subliminal sway (DESIGN-TVOS.md §0b).
 */
.tile, .cell .face {
  position: absolute;
  top: 822px;
  width: 244px;
  height: 146px;
  border-radius: 24px;
  overflow: hidden;
  color: #FFF;
  -webkit-transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tile.gone { opacity: 0; }
.tile img, .cell .face img, #recents .face img { position: absolute; left: 50%; top: 50%; max-width: 76%; max-height: 62%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
.tile img.logo, .cell .face img.logo, #recents .face img.logo { width: 66%; height: 46%; max-width: none; max-height: none; object-fit: contain; }
/* An app with only a launcher icon: the icon, square, centred on its colour. */
.tile img.icon, .cell .face img.icon, #recents .face img.icon { width: auto; height: 58%; max-width: none; max-height: none; border-radius: 18%; }
.tile .word, .cell .face .word, #recents .face .word {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  margin-top: -19px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #FFF;
}
.tile .sym.big, .cell .face .sym.big, #recents .face .sym.big { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; color: #FFF; }
/* The one specular sheen, only on focus; it slides against the tilt (home.js). */
.tile .sheen, .cell .face .sheen {
  position: absolute;
  left: -20%;
  top: -40%;
  width: 90%;
  height: 120%;
  background: -webkit-radial-gradient(50% 50%, ellipse, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 65%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 65%);
  opacity: 0;
  pointer-events: none;
}
/* The glare: a band of light with a 1.5 px bright edge along the top bevel, swept across a focused tile (home.js). */
.tile .glare, .cell .face .glare {
  position: absolute;
  left: 50%;
  top: 0;
  width: 54px;
  height: 100%;
  margin-left: -27px;
  background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.7);
  opacity: 0;
  pointer-events: none;
}
/* Focused: on top of its neighbours. Its scale, tilt, sheen and parallax are springs (home.js, ANIMATIONS-SPEC.md §2.1). */
.tile.focus, .cell.focus .face, .cell.focus .lift-shadow { z-index: 2; }
.cell.focus { z-index: 2; }
.glint { display: none; }
.more { position: absolute; width: 17px; height: 17px; color: rgba(255, 255, 255, 0.8); }
.more.back { -webkit-transform: scaleX(-1); transform: scaleX(-1); }
#dockname { display: none; }

/* MARK: - Control Center: a floating Liquid Glass panel on the right, the art still showing behind it */

/* Under the status pill (which stays, as tvOS's status does over Control Center), from 124; as tall as it needs. */
#drawer {
  position: absolute;
  left: 1300px;
  top: 124px;
  width: 560px;
  height: 908px;
  border-radius: 44px;
  overflow: hidden;
  color: #FFF;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  /* Presented on SHEET_OPEN from +480 px and dismissed on SHEET_CLOSE (home.js); its own layer (it's small). */
  will-change: transform, opacity;
}
#drawer .bleed { left: -1300px; top: -124px; }
#drawer .body { position: absolute; left: 28px; top: 28px; right: 28px; bottom: 28px; }
/* Over the bright day Frosted Horizon the panel's glass is light: dark text; over a photo or at night, white. */
.no-picks #drawer, .profile-background #drawer { color: #1D1D1F; }
.night #drawer, .has-photo #drawer { color: #FFF; }
/* Its rows (home.js places them): the profiles, the weather platter, the bento, the volume, the round buttons. */
#drawer .ccrow, #drawer .ccgroup, #drawer .ccinputs { position: absolute; left: 0; right: 0; }
#drawer .who { position: absolute; top: 0; text-align: center; }
#drawer .who .face { display: block; width: 72px; height: 72px; margin: 0 auto; border-radius: 16px; background-size: cover; background-position: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); }
/* Round art (a disc on transparent corners) is read closer, so the disc fills the shape (Profiles.fitAvatar). */
#pill .avatar.roundface, #drawer .who .face.roundface, #setup .who .face.roundface { background-size: 142%; }
#drawer .who.on .face { box-shadow: 0 0 0 3px #FFF, 0 6px 16px rgba(0, 0, 0, 0.22); }
#drawer .who.focus .face { box-shadow: 0 0 0 4px #FFF, 0 14px 30px rgba(0, 0, 0, 0.36); }
#drawer .who .name { display: block; margin-top: 8px; font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The tiles inside the panels (the weather, the pills, the cluster, the inputs, the round buttons): flat, quiet fills.
   The panel is the glass; a rim or highlight on each tile too would be glass on glass. */
#weather, .cctile, .cccell, .ccvolume, .ccmedia, .inrow {
  position: absolute;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
}
.night #weather, .night .cctile, .night .cccell, .night .ccvolume, .night .ccmedia, .night .inrow,
.has-photo #weather, .has-photo .cctile, .has-photo .cccell, .has-photo .ccvolume, .has-photo .ccmedia, .has-photo .inrow {
  background: rgba(255, 255, 255, 0.09);
}
.has-photo.art-bright #weather, .has-photo.art-bright .cctile, .has-photo.art-bright .cccell, .has-photo.art-bright .ccvolume, .has-photo.art-bright .ccmedia,
.has-photo.art-bright .inrow { background: rgba(255, 255, 255, 0.62); }
/* Focused: white, dark ink, a soft lift (tvOS's focused platter). */
#weather.focus, .cctile.focus, .cccell.focus, .ccvolume.focus, .ccmedia.focus, .inrow.focus {
  background: #FFF;
  color: #1C1C1E;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}
#weather.focus, .cctile.focus, .cccell.focus, .ccvolume.focus, .ccmedia.focus, .inrow.focus { z-index: 2; }

/* The weather: city, temperature and sky in the left 220 px; four hours (or days) in their own columns to its right. */
#weather { left: 0; top: 0; width: 504px; height: 152px; border-radius: 26px; }
#weather .head { position: absolute; left: 22px; top: 16px; width: 200px; font-size: 19px; font-weight: 600; opacity: 0.62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#weather .now { position: absolute; left: 20px; top: 40px; height: 58px; white-space: nowrap; }
#weather .now .sym { width: 36px; height: 36px; vertical-align: 6px; margin-right: 10px; }
#weather .now .temp { font-size: 52px; font-weight: 300; line-height: 58px; letter-spacing: -0.02em; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#weather .cond { position: absolute; left: 22px; top: 100px; width: 200px; font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#weather .range { position: absolute; left: 22px; top: 124px; font-size: 18px; font-weight: 500; opacity: 0.62; white-space: nowrap; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#weather { overflow: hidden; }
#weather .hours { position: absolute; left: 240px; top: 22px; width: 252px; height: 110px; }
#weather .hour { position: absolute; top: 0; text-align: center; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#weather .hour .t { font-size: 17px; font-weight: 600; opacity: 0.62; white-space: nowrap; }
#weather .hour .sym { display: block; width: 28px; height: 28px; margin: 14px auto 12px; }
#weather .hour .d { font-size: 21px; font-weight: 500; }

/* The bento's capsule tiles: a round glyph (blue when the thing is on), the name, its state under it. */
.cctile { top: 0; width: 244px; height: 72px; border-radius: 36px; }
.cctile .dot, .inrow .dot { position: absolute; left: 11px; top: 11px; width: 50px; height: 50px; border-radius: 25px; background: rgba(120, 120, 128, 0.16); }
.cctile .dot .sym, .inrow .dot .sym { position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; }
.cctile.on .dot { background: #007AFF; color: #FFF; }
/* Do Not Disturb turned on: the moon swings in from −40° and grows to size (transform only). */
.cctile .dot.pop .sym { -webkit-animation: moonin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); animation: moonin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@-webkit-keyframes moonin { 0% { -webkit-transform: rotate(-40deg) scale(0.55); } 100% { -webkit-transform: none; } }
@keyframes moonin { 0% { transform: rotate(-40deg) scale(0.55); } 100% { transform: none; } }
.cctile.wide { width: 504px; }
.cctile .label { position: absolute; left: 74px; right: 14px; top: 11px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cctile .detail { position: absolute; left: 74px; right: 14px; top: 37px; font-size: 19px; font-weight: 500; opacity: 0.62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cctile.solo .label { top: 23px; }
.cctile.solo .detail { display: none; }

/* The profile panel's last row: Lock, Home Settings, TV Settings, each a cell with its glyph over its name. */
.cccell { top: 0; height: 92px; border-radius: 26px; }
.cccell .icon { position: absolute; left: 50%; top: 14px; width: 72px; height: 38px; margin-left: -36px; }
.cccell .icon .sym { position: absolute; left: 22px; top: 4px; width: 28px; height: 28px; }
#drawer .cccell .icon .glyph-lock { position: absolute; left: 25px; top: 16px; width: 22px; height: 17px; margin: 0; opacity: 1; }
#drawer .cccell .icon .glyph-lock::before { left: 2.5px; top: -12px; width: 11px; height: 13px; border-width: 3px; }
.cccell .label { position: absolute; left: 8px; right: 8px; top: 56px; text-align: center; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The volume under Control Center's grid: speaker, track and level in one capsule; ← → change it, OK mutes. */
.ccvolume { left: 0; top: 0; width: 504px; height: 72px; border-radius: 36px; }
.ccmedia { position: absolute; left: 0; top: 0; width: 504px; height: 96px; border-radius: 32px; }
.ccmedia .song { position: absolute; left: 24px; top: 20px; width: 290px; }
.ccmedia .line, .ccmedia .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccmedia .line { font-size: 22px; font-weight: 600; line-height: 30px; }
.ccmedia .sub { font-size: 17px; line-height: 24px; opacity: 0.65; }
.ccmedia .mediabtns { position: absolute; right: 16px; top: 24px; width: 156px; height: 48px; }
.ccmedia .mb { position: absolute; top: 0; width: 52px; height: 48px; }
.ccmedia .mb.prev { left: 0; } .ccmedia .mb.play { left: 52px; } .ccmedia .mb.next { left: 104px; }
.ccmedia .mb::before, .ccmedia .mb::after { content: ''; position: absolute; }
.ccmedia .mb.play::before, .ccmedia .mb.play::after { left: 18px; top: 13px; width: 6px; height: 22px; background: currentColor; }
.ccmedia .mb.play::after { left: 28px; }
.ccmedia .mb.play.paused::before { left: 18px; top: 12px; width: 0; height: 0; background: none; border-left: 19px solid currentColor; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.ccmedia .mb.play.paused::after { display: none; }
.ccmedia .mb.next::before { left: 16px; top: 14px; width: 0; height: 0; border-left: 14px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.ccmedia .mb.next::after { left: 32px; top: 14px; width: 3px; height: 20px; background: currentColor; }
.ccmedia .mb.prev::before { left: 22px; top: 14px; width: 0; height: 0; border-right: 14px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.ccmedia .mb.prev::after { left: 17px; top: 14px; width: 3px; height: 20px; background: currentColor; }
.ccvolume > .sym { position: absolute; left: 22px; top: 22px; width: 28px; height: 28px; }
.ccvolume .track { position: absolute; left: 66px; right: 96px; top: 32px; height: 8px; border-radius: 4px; background: rgba(120, 120, 128, 0.24); overflow: hidden; }
.ccvolume .fill { width: 100%; height: 8px; border-radius: 4px; background: currentColor; -webkit-transform-origin: 0 50%; transform-origin: 0 50%; }
.ccvolume .num { position: absolute; right: 22px; top: 22px; width: 70px; text-align: right; font-size: 21px; font-weight: 600; line-height: 28px; white-space: nowrap; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }

/* Drawn glyphs: the lock (lock.css), power and a timer, at the symbols' size. */
#drawer .dot .glyph-lock, #drawer .disc .glyph-lock { position: absolute; left: 25px; top: 32px; width: 22px; height: 17px; margin: 0; opacity: 1; }
#drawer .dot .glyph-lock::before, #drawer .disc .glyph-lock::before { left: 2.5px; top: -12px; width: 11px; height: 13px; border-width: 3px; }
.glyph-timer { position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; }
.glyph-timer::before { content: ''; position: absolute; left: 2px; top: 3px; width: 17px; height: 17px; border: 3px solid currentColor; border-radius: 50%; }
.glyph-timer::after { content: ''; position: absolute; left: 11.5px; top: 7px; width: 3px; height: 9px; border-radius: 2px; background: currentColor; -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; -webkit-transform: rotate(40deg); transform: rotate(40deg); }

/* Inputs: a list that slides in over the tiles (OK on Inputs); Back or ← returns. */
.ccinputs { opacity: 0; visibility: hidden; }
.cchead { position: absolute; left: 0; top: 0; height: 44px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 40px; }
.cchead .sym.back { position: absolute; left: 0; top: 10px; width: 20px; height: 20px; opacity: 0.6; -webkit-transform: scaleX(-1); transform: scaleX(-1); }
.cchead .title { position: absolute; left: 30px; white-space: nowrap; }
.inrow { left: 0; width: 504px; height: 72px; border-radius: 36px; }
.inrow .name { position: absolute; left: 76px; right: 64px; top: 12px; font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inrow .status { position: absolute; left: 76px; top: 40px; font-size: 17px; font-weight: 500; opacity: 0.62; white-space: nowrap; }
.inrow.solo .name { top: 22px; }
.inrow.off .dot, .inrow.off .name { opacity: 0.6; }
.inrow .sym.check { position: absolute; right: 24px; top: 24px; width: 24px; height: 24px; color: #007AFF; }

/* The volume HUD: a Liquid Glass capsule on the left edge, its fill rising from the bottom, the speaker morphing with
   the level (mute, then 1, 2, 3 arcs) and the number over it; dark ink where the white fill is under it. */
/* The volume and the brightness, as an iPhone shows its volume: a glass pill out of the left edge, where an iPhone's
   buttons are, that narrows to a line (its own glass and fill, cross-faded) before it goes. No number, as an iPhone. */
#volhud { position: absolute; left: 22px; top: 415px; width: 52px; height: 250px; z-index: 49; opacity: 0; visibility: hidden; color: #FFF; }
#volhud .pill, #volhud .line { position: absolute; left: 0; top: 0; height: 250px; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); }
#volhud .pill { width: 52px; border-radius: 26px; }
#volhud .line { width: 12px; border-radius: 6px; opacity: 0; }
#volhud .glass { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: inherit; background: rgba(60, 60, 67, 0.46); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.night #volhud .glass { background: rgba(30, 30, 35, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
#volhud .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: #FFF; -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; }
/* The level just above the glyph at the pill's foot: white on the glass, ink once the fill reaches it. */
#volhud .num { position: absolute; left: 0; right: 0; bottom: 45px; text-align: center; font-size: 18px; font-weight: 600; line-height: 22px; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#volhud.numlit .num { color: #1D1D1F; }
#volhud .spk { position: absolute; left: 11px; bottom: 14px; width: 34px; height: 28px; }
#volhud.lit .spk { color: #1D1D1F; }
#volhud .cone { position: absolute; left: 2px; top: 9px; width: 6px; height: 10px; border-radius: 1px; background: currentColor; }
#volhud .cone::after { content: ''; position: absolute; left: 4px; top: -6px; width: 0; height: 0; border-style: solid; border-width: 11px 9px 11px 0; border-color: transparent currentColor transparent transparent; }
#volhud .arc { position: absolute; top: 50%; border: 2.5px solid currentColor; border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; -webkit-transition: opacity 0.15s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.15s cubic-bezier(0.22, 1, 0.36, 1); }
#volhud .a1 { left: 7px; width: 14px; height: 14px; margin-top: -9.5px; }
#volhud .a2 { left: 2px; width: 24px; height: 24px; margin-top: -14.5px; }
#volhud .a3 { left: -3px; width: 34px; height: 34px; margin-top: -19.5px; }
#volhud.arcs0 .a1, #volhud.arcs0 .a2, #volhud.arcs0 .a3, #volhud.arcs1 .a2, #volhud.arcs1 .a3, #volhud.arcs2 .a3, #volhud.muted .arc { opacity: 0; }
#volhud .slash { position: absolute; left: 18px; top: 3px; width: 2.5px; height: 22px; border-radius: 2px; background: currentColor; opacity: 0; -webkit-transform: rotate(-40deg); transform: rotate(-40deg); }
#volhud.muted .slash { opacity: 1; }
/* The same HUD for the brightness ([ and ]): the sun instead of the speaker. */
#volhud .sunglyph { position: absolute; left: 13px; bottom: 14px; width: 26px; height: 26px; display: none; }
#volhud.bright .spk { display: none; }
#volhud.bright .sunglyph { display: block; }
#volhud.bright.lit .sunglyph { background-color: #1D1D1F; }

/* The brightness: black over everything (pointer-events none), up to 0.65 at 0 % (home.js). */
#bright { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: #000; opacity: 0; visibility: hidden; pointer-events: none; z-index: 100; }

/* Control Center's bubble, left of the pill: the same smoke glass, Apple's two toggles; white when focused or open. */
#ccbtn {
  position: absolute;
  right: 300px;   /* home.js puts it 14 px left of the pill */
  top: 52px;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  color: #FFF;
  background: rgba(52, 62, 76, 0.52);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34), inset -1px -1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(0, 0, 0, 0.16);
  -webkit-transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.17s cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.17s cubic-bezier(0.22, 1, 0.36, 1);
}
#ccbtn .sym { position: absolute; left: 11px; top: 11px; width: 26px; height: 26px; }
/* The dynamic dot's live activities (DESIGN-DYNAMIC-DOT.md), beside the tab bar: the bar's smoke glass and rim, as
   tall as the bar, with a white symbol as the round buttons have. home.js draws each shape from two round caps and a
   stretched middle (only transforms move), so it can open into a capsule without its round ends going oval; open,
   its rim brightens. */
.live { position: absolute; left: 1200px; top: 48px; width: 57px; height: 57px; z-index: 1; opacity: 0; visibility: hidden; color: #FFF; -webkit-transform-origin: 28.5px 28.5px; transform-origin: 28.5px 28.5px; pointer-events: auto; }
.live .shape { position: absolute; left: 0; top: 0; opacity: 0.52; }
.live .cap, .live .mid { position: absolute; left: 0; top: 0; height: 57px; background: rgb(52, 62, 76); -webkit-transform-origin: 0 50%; transform-origin: 0 50%; }
.live .cap { width: 28.5px; }
/* The bar's rim (white 0.34 over its 0.52 glass), lifted to match inside the one 0.52 layer. */
.live .cap.l { border-radius: 28.5px 0 0 28.5px; box-shadow: inset 1.5px 1.5px 0 rgb(152, 158, 166); }
.live .cap.r { border-radius: 0 28.5px 28.5px 0; box-shadow: inset 0 1.5px 0 rgb(152, 158, 166), inset -1px -1px 0 rgb(68, 77, 90); }
.live .mid { width: 1px; box-shadow: inset 0 1.5px 0 rgb(152, 158, 166), inset 0 -1px 0 rgb(68, 77, 90); }
.live.open .cap.l { box-shadow: inset 1.5px 1.5px 0 rgb(206, 209, 213); }
.live.open .cap.r { box-shadow: inset 0 1.5px 0 rgb(206, 209, 213), inset -1px -1px 0 rgb(84, 92, 104); }
.live.open .mid { box-shadow: inset 0 1.5px 0 rgb(206, 209, 213), inset 0 -1px 0 rgb(84, 92, 104); }
.live .face { position: absolute; left: 0; top: 0; width: 57px; height: 57px; opacity: 0; visibility: hidden; }
.live .face.on { visibility: visible; }
.live .sym { position: absolute; left: 0; top: 14.5px; width: 28px; height: 28px; }
.live .txt { position: absolute; left: 80px; top: 0; opacity: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25); }
.live .txt .t, .live .txt .s { position: absolute; left: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live .txt .t { top: 0; font-size: 24px; font-weight: 600; line-height: 30px; }
.live .txt .s { top: 30px; font-size: 19px; font-weight: 500; line-height: 24px; color: rgba(255, 255, 255, 0.7); }
.live .ctrl, .live .ctrls { position: absolute; left: 0; top: 6.5px; height: 44px; opacity: 0; }
.live .ctrl { width: 44px; margin-left: -6px; }
.live .ctrls { width: 144px; }
/* Each control: a 44 px circle, white with an ink glyph when it has the focus (the tvOS focus). */
.live .c { position: absolute; top: 0; width: 44px; height: 44px; border-radius: 22px; color: #FFF; }
.live .c.focus { background: #FFF; color: #1C1C1E; }
.live .ctrls .prev { left: 2px; }
.live .ctrls .pp { left: 50px; }
.live .ctrls .next { left: 98px; }
.live .c i { position: absolute; border-radius: 2px; background: currentColor; }
.live .pp i { top: 11px; width: 5.5px; height: 22px; }
.live .pp i:first-child { left: 14px; }
.live .pp i + i { left: 24.5px; }
.live .pp.paused i:first-child { left: 15px; top: 10px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent currentColor; }
.live .pp.paused i + i { display: none; }
/* ⏮ and ⏭: a bar and a triangle. */
.live .prev i:first-child, .live .next i:first-child { top: 12px; width: 3px; height: 20px; }
.live .prev i:first-child { left: 12px; }
.live .next i:first-child { left: 29px; }
.live .prev i + i, .live .next i + i { top: 12px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; }
.live .prev i + i { left: 15px; border-width: 10px 16px 10px 0; border-color: transparent currentColor transparent transparent; }
.live .next i + i { left: 13px; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent currentColor; }
.live .plus i:first-child { left: 11px; top: 20px; width: 22px; height: 4px; }
.live .plus i + i { left: 20px; top: 11px; width: 4px; height: 22px; }
.live .plus.ends { -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.live .minus i:first-child { left: 12px; top: 20px; width: 20px; height: 4px; }
.live .minus i + i { display: none; }
.live .ctrls .minus { left: 2px; }
.live .ctrls .plus { left: 50px; }
.live .ctrls .plus.ends { left: 98px; }
.live .c.off { opacity: 0.35; }
.live .ctrl .sym { position: absolute; left: 11px; top: 11px; width: 22px; height: 22px; }
/* The focus in the dynamic dot: the tab bar's lens and its selected name step back (the focus isn't on Welly). */
#tabs .lens { -webkit-transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
#tabs.away .lens { opacity: 0.25; }
#tabs.away .tab.sel { color: rgba(255, 255, 255, 0.7); }
.grid-open .live { visibility: hidden !important; }
.drawer-open:not(.drawer-profile) #ccbtn, .drawer-open.drawer-profile #pill { background: rgba(255, 255, 255, 0.86); color: #1C1C1E; }
#ccbtn.focus { background: #FFF; color: #1C1C1E; box-shadow: inset 1.5px 1.5px 0 #FFF, 0 10px 26px rgba(0, 0, 0, 0.28); }

/* Frosted Glass (Settings → Appearance & Startup → Glass, or the welcome setup): no specular rims, a softer fill. */
.frosted #pill, .frosted #ccbtn { box-shadow: 0 2px 10px rgba(22, 33, 45, 0.08); }
.frosted #drawer { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22); }
.frosted #platter .tint { box-shadow: none; }

/* MARK: - Sheets over the home screen: All Apps, Settings, Shelf, Language, About */

.sheet {
  background: rgba(22, 33, 45, 0.34);
  color: #FFF;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* while it fades out, the pointer goes to what's under it, not to its rows */
}
/* Open: SHEET_OPEN from 1.04 (home.js sets the opacity and scale). */
/* Sheets only tint the wallpaper (as Android's Settings: 0.34 by day, 0.15 at night). */
.night .sheet { background: rgba(22, 33, 45, 0.15); }
.sheet.open { pointer-events: auto; }
.sheet h2 { position: absolute; left: 0; right: 0; top: 84px; margin: 0; text-align: center; font-size: 40px; font-weight: 600; }

/* The app grid: always there under the Dock (its first row peeks at the bottom of the screen); ↓ lifts the page 722. */
#apps.sheet { background: none; opacity: 1; visibility: visible; pointer-events: none; z-index: 1; -webkit-transform: translateY(722px); transform: translateY(722px); }
#apps.sheet.open { pointer-events: auto; }
#apps h2 { display: none; }
#apps .grid { position: absolute; left: 0; top: 0; width: 1920px; }
.cell { position: absolute; width: 244px; height: 146px; }
.cell .face { top: 0; left: 0; }
.cell .label { position: absolute; left: -40px; right: -40px; top: 182px; text-align: center; font-size: 25px; font-weight: 600; color: #1D1D1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
.night .cell .label, .has-photo .cell .label { color: #FFF; }

#settings .box, #shelfedit .box, #langpick .box, #citypick .box, #keypick .box, #wallpaperpick .box, #about .box {
  position: absolute;
  left: 560px;
  top: 150px;
  width: 800px;
  border-radius: 40px;
  padding: 30px 30px 26px;
  box-sizing: border-box;
  background: -webkit-linear-gradient(top, rgba(34, 36, 44, 0.96), rgba(18, 20, 26, 0.97));
  background: linear-gradient(rgba(34, 36, 44, 0.96), rgba(18, 20, 26, 0.97));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.box .title { font-size: 38px; font-weight: 700; padding: 6px 18px 18px; letter-spacing: -0.01em; }
.box .title .sym { width: 36px; height: 36px; vertical-align: -5px; margin-right: 14px; color: rgba(255, 255, 255, 0.85); }
.box .list { position: relative; overflow: hidden; }
.box .row { position: relative; height: 70px; margin-bottom: 8px; border-radius: 20px; font-size: 30px; font-weight: 600; line-height: 70px; padding: 0 24px; white-space: nowrap; -webkit-transition: background-color 0.13s cubic-bezier(0.22, 1, 0.36, 1); transition: background-color 0.13s cubic-bezier(0.22, 1, 0.36, 1); }
.box .row.focus { background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.box .row .value { position: absolute; right: 24px; top: 0; color: rgba(255, 255, 255, 0.92); font-weight: 500; }
.box .row .value .chev { color: rgba(255, 255, 255, 0.35); margin: 0 10px; }
.box .row .value .sym { width: 26px; height: 26px; vertical-align: -3px; }
.box .row.dim { color: rgba(255, 255, 255, 0.4); }
#about .row .value { font-feature-settings: 'tnum'; }
#about .row .value.cut { overflow: hidden; text-overflow: ellipsis; }
.box .hint { padding: 14px 18px 0; font-size: 22px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.toggle { position: absolute; right: 24px; top: 13px; width: 78px; height: 44px; border-radius: 22px; background: #3A3D45; -webkit-transition: background-color 0.14s cubic-bezier(0.22, 1, 0.36, 1); transition: background-color 0.14s cubic-bezier(0.22, 1, 0.36, 1); }
.toggle::after { content: ''; position: absolute; left: 4px; top: 4px; width: 36px; height: 36px; border-radius: 18px; background: #FFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); -webkit-transition: -webkit-transform 0.32s cubic-bezier(0.3, 1.35, 0.5, 1); transition: transform 0.32s cubic-bezier(0.3, 1.35, 0.5, 1); }
.toggle.on { background: #3FD69B; }
.toggle.on::after { -webkit-transform: translateX(34px); transform: translateX(34px); }

#wallpaperpick .box { left: 280px; top: 110px; width: 1360px; min-height: 790px; }
/* At 1360 px it's half the screen: light glass instead of a dark slab, with dark ink by day. It sits over the Dock and
 * old TVs can't blur, so a solid base under the glass keeps the tiles from reading through (as Control Center's). */
#wallpaperpick .box {
  color: #1D1D1F;
  background: #EEF1F5 -webkit-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));
  background: #EEF1F5 linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));
  box-shadow: 0 40px 90px rgba(22, 33, 45, 0.22), inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
#wallpaperpick .box .title .sym { color: rgba(29, 29, 31, 0.8); }
#wallpaperpick .box .row.focus { background: rgba(255, 255, 255, 0.86); box-shadow: 0 8px 20px rgba(22, 33, 45, 0.14); }
#wallpaperpick .box .row.dim { color: rgba(29, 29, 31, 0.4); }
#wallpaperpick .box .hint { color: rgba(29, 29, 31, 0.55); }
.night #wallpaperpick .box {
  color: #FFF;
  background: #1B2130 -webkit-linear-gradient(top, rgba(44, 52, 70, 0.6), rgba(20, 26, 38, 0.2));
  background: #1B2130 linear-gradient(rgba(44, 52, 70, 0.6), rgba(20, 26, 38, 0.2));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35), inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.night #wallpaperpick .box .title .sym { color: rgba(255, 255, 255, 0.85); }
.night #wallpaperpick .box .row.focus { background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.night #wallpaperpick .box .row.dim { color: rgba(255, 255, 255, 0.4); }
.night #wallpaperpick .box .hint { color: rgba(255, 255, 255, 0.5); }
#wallpaperpick .panes { position: relative; height: 570px; }
#wallpaperpick .categories, #wallpaperpick .options { position: absolute; top: 0; width: 410px; }
#wallpaperpick .categories { left: 0; } #wallpaperpick .options { left: 440px; }
#wallpaperpick .preview { position: absolute; left: 870px; top: 0; width: 410px; height: 231px; border-radius: 24px; background: #B8C7D6; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
#wallpaperpick .preview .status { position: absolute; left: 20px; bottom: 16px; font-size: 19px; color: rgba(255,255,255,.78); text-shadow: 0 1px 3px #000; }

/* MARK: - Screensaver: the picks' photos, slowly moving, and a clock */

#saver { background: transparent; opacity: 0; visibility: hidden; -webkit-transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 1.2s; transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 1.2s; }
#saver.on { opacity: 1; visibility: visible; -webkit-transition-delay: 0s; transition-delay: 0s; }
/* Coming in it settles from 1.06 to 1.0 over the 1.2 s dissolve; each photo drifts from rest (home.js). */
#saver .zoom { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; -webkit-transition: -webkit-transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1); transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1); }
#saver .photo { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background-size: cover; background-position: center; opacity: 0; -webkit-transition: opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1); }
#saver .photo.on { opacity: 1; }
/* The nature clock (Settings → Screensaver Style): two scene canvases cross-fading, each drawn once a minute. */
#saver canvas.scene { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0; -webkit-transition: opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1); }
#saver canvas.scene.on { opacity: 1; }
/* The place's name (tvOS 12's Aerials): bottom left, 32 px above the 60 px safe area, in and out in half a second. */
#saver .place { position: absolute; left: 80px; bottom: 92px; font-size: 30px; font-weight: 600; letter-spacing: -0.005em; color: #FFF; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); opacity: 0; -webkit-transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
#saver .place.on { opacity: 1; }
#saver .clock { -webkit-transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
#saver.placing .clock { opacity: 0; }
#saver .font-probe { position: absolute; left: -2000px; top: 0; font-size: 20px; opacity: 0; }
#saver .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 520px; background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35)); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35)); }
#saver .clock {
  position: absolute;
  left: 80px;
  bottom: 90px;
  padding: 26px 46px 30px;
  border-radius: 46px;
  color: #FFF;
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  background: linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 1.5px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
#saver .clock .time { font-size: 150px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#saver .clock .date { margin-top: 10px; font-size: 34px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
#saver .clock .title { margin-top: 18px; font-size: 26px; font-weight: 500; color: rgba(255, 255, 255, 0.65); }
#saver .clock .hint { margin-top: 8px; font-size: 22px; color: rgba(255, 255, 255, 0.55); }
/* Over the bright day Horizon (no photos): dark ink and lighter glass, as the lock; white again at night. */
#saver.bare .clock { color: #1D1D1F; background: rgba(255, 255, 255, 0.42); box-shadow: 0 30px 70px rgba(22, 33, 45, 0.18), inset 0 1.5px 0 rgba(255, 255, 255, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
#saver.bare .clock .date { color: rgba(29, 29, 31, 0.78); }
#saver.bare .clock .title, #saver.bare .clock .hint { color: rgba(29, 29, 31, 0.6); }
.night #saver.bare .clock { color: #FFF; background: rgba(255, 255, 255, 0.14); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 1.5px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.night #saver.bare .clock .date { color: rgba(255, 255, 255, 0.82); }
.night #saver.bare .clock .title, .night #saver.bare .clock .hint { color: rgba(255, 255, 255, 0.6); }

/* MARK: - Tab bar (top centre): TV · Home · Welly in a smoke-glass capsule, as the pill; focusing a tab selects it */

#tabs {
  position: absolute;
  left: 960px;
  top: 48px;
  height: 57px;
  padding: 0 3px;
  border-radius: 29px;
  white-space: nowrap;
  font-size: 28px;
  font-weight: 600;
  line-height: 51px;
  background: rgba(52, 62, 76, 0.52);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34), inset -1px -1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px rgba(0, 0, 0, 0.16);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
#tabs .tab {
  position: relative;
  display: inline-block;
  height: 51px;
  margin-top: 3px;
  padding: 0 30px;
  border-radius: 26px;
  vertical-align: top;
  color: rgba(255, 255, 255, 0.7);
  -webkit-transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1);
}
#tabs .tab.sel { color: #FFF; }
#tabs .tab.focus { background: #FFF; color: #1C1C1E; }
#tabs .welly-mini { width: 25px; height: 25px; margin: 13px 7px 0 -13px; vertical-align: top; }
/* The selected tab's lens: it slides between tabs and stretches with its speed (home.js drawLens). */
#tabs .lens { position: absolute; left: 3px; top: 3px; width: 0; height: 51px; }
#tabs .lens .box { position: absolute; left: 0; top: 0; height: 51px; will-change: transform; }
#tabs .lens .cap, #tabs .lens .mid { position: absolute; left: 0; top: 0; height: 51px; background: rgba(255, 255, 255, 0.18); }
#tabs .lens .cap { width: 25.5px; }
#tabs .lens .cap.l { border-radius: 25.5px 0 0 25.5px; }
#tabs .lens .cap.r { border-radius: 0 25.5px 25.5px 0; }
#tabs .lens .mid { width: 1px; -webkit-transform-origin: 0 0; transform-origin: 0 0; }
/* While it moves, the glass catches the light: a soft highlight that runs against the motion. */
#tabs .lens .shine { position: absolute; left: 0; top: 3px; width: 80px; height: 45px; border-radius: 23px; opacity: 0; background: -webkit-radial-gradient(50% 50%, ellipse, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%); background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%); }
.grid-open #tabs { opacity: 0; }

/* Home and Welly: the TV tab's content steps aside; the same background stays, frosted and dimmed as under the grid. */
.tab-home #hero, .tab-home #details, .tab-home #dots, .tab-home #chevron, .tab-home #quotes, .tab-home #platter, .tab-home #tiles, .tab-home #dockname, .tab-home #apps.sheet,
.tab-welly #hero, .tab-welly #details, .tab-welly #dots, .tab-welly #chevron, .tab-welly #quotes, .tab-welly #platter, .tab-welly #tiles, .tab-welly #dockname, .tab-welly #apps.sheet {
  pointer-events: none;
}
.tab-home #quotes, .tab-welly #quotes { opacity: 0; }
/* Home and Welly tint the wallpaper slate as the tabs swap (TAB_SWAP; home.js), so its colours stay. */
#sky .shade { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #16212D; opacity: 0; }
/* Above the TV tab's layer, under the dimmer that Control Center brings. The tabs slide in and out (home.js). */
#house, #welly, #tabs { z-index: 1; }
#house, #welly { opacity: 0; visibility: hidden; color: #FFF; }

/* MARK: - Toast */

#toast {
  position: absolute;
  left: 50%;
  top: 64px;
  max-width: 820px;
  -webkit-transform: translate(-50%, -16px);
  transform: translate(-50%, -16px);
  padding: 18px 30px;
  border-radius: 32px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(17, 17, 19, 0.86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  -webkit-transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 50;
}
#toast.on { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }

/* The Magic Remote's pointer: no text selection, no outlines. */
* { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* Tizen 2 (see tv.js): no shadows or animations, which its GPU can't keep up with while the focus moves. */
.lite * { box-shadow: none !important; -webkit-transition: none !important; transition: none !important; -webkit-animation: none !important; animation: none !important; }

/* Apple's continuous corners (DESIGN-TVOS.md §0b #1): superellipse(1.39) is the exponent 2.62 fitted to Apple's
   Bézier corner, over 1.245× the radius. Browsers without corner-shape (all TVs today) keep the plain radius. */
@supports (corner-shape: superellipse(1.39)) {
  .tile, .cell .face { corner-shape: superellipse(1.39); border-radius: 30px; }
  #platter { corner-shape: superellipse(1.39); border-radius: 80px; }
  #drawer { corner-shape: superellipse(1.39); border-radius: 55px; }
  #weather { corner-shape: superellipse(1.39); border-radius: 32px; }
  #watch { corner-shape: superellipse(1.39); }
}

/* Reduce Motion: motion.js makes the springs jump (no tilt, bump or drift); the CSS fades get short and the loops stop.
   !important so they win over every state rule above. */
@media (prefers-reduced-motion: reduce) {
  #stage *, #stage *::before, #stage *::after { -webkit-animation: none !important; animation: none !important; }
  #sky .photo, #sky canvas, #toast, #pill, #watch, #tabs .tab, .tile, .cctile, #saver, #saver .photo, #saver .zoom, .box .row, #pill .avatar .prev {
    -webkit-transition-duration: 0.15s !important;
    transition-duration: 0.15s !important;
  }
  #toast, #toast.on { -webkit-transform: translate(-50%, 0) !important; transform: translate(-50%, 0) !important; }
}

/* Reduce Transparency: the glass becomes near-opaque, whatever the time of day or the picks. */
@media (prefers-reduced-transparency: reduce) {
  #pill, #tabs, .round, .no-picks #pill, .night.no-picks #pill { background: rgba(44, 48, 56, 0.96) !important; }
  .live .cap, .live .mid { background: rgb(44, 48, 56) !important; }
  .live .shape { opacity: 0.96 !important; }
  #pill.focus { background: #FFF !important; }
  #platter .tint, #drawer .tint { background: rgba(36, 36, 40, 0.96) !important; }
  #platter .bleed, #drawer .bleed { opacity: 0 !important; }
  #toast { background: rgba(17, 17, 19, 0.98) !important; }
  .sheet:not(#apps) { background: rgba(22, 33, 45, 0.34) !important; }
  #saver .clock { background: rgba(30, 30, 34, 0.94) !important; }
}

/* MARK: - Folders: in All Apps a frosted squircle with four of its apps; open, a floating frosted card that springs out
   of it over the home screen (home.js: openFolder), the folder's name in a white badge at the top. */
.cell .face.folderface {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.65), 0 10px 26px rgba(22, 33, 45, 0.12);
}
.night .cell .face.folderface { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1.5px 0 rgba(255, 255, 255, 0.24); }
.folderface .mini { position: absolute; width: 98px; height: 54px; border-radius: 12px; overflow: hidden; }
.folderface .mini .word { margin-top: -9px; height: 18px; line-height: 18px; }
.folderface .mini .sym.big { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
#folder { z-index: 5; opacity: 0; visibility: hidden; color: #1D1D1F; }
.night #folder { color: #FFF; }
#folder .veil { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: rgba(22, 33, 45, 0.5); }
.night #folder .veil { background: rgba(0, 0, 0, 0.5); }
#folder .card {
  position: absolute;
  border-radius: 40px;
  background: rgba(246, 247, 250, 0.985);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 1.5px 0 rgba(255, 255, 255, 0.85), 0 40px 90px rgba(0, 0, 0, 0.32);
}
.night #folder .card { background: rgba(40, 44, 54, 0.985); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1.5px 0 rgba(255, 255, 255, 0.22), 0 40px 90px rgba(0, 0, 0, 0.45); }
.frosted #folder .card { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.3); }
#folder .badge {
  position: absolute;
  left: 50%;
  top: 34px;
  height: 52px;
  padding: 0 30px;
  border-radius: 26px;
  background: #FFF;
  color: #1D1D1F;
  font-size: 24px;
  font-weight: 600;
  line-height: 52px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
#folder .cell .label { color: inherit; opacity: 0.85; }
/* The scrolling window: the rows in view; the grid inside it slides a row at a time. */
#folder .view { position: absolute; left: 0; right: 0; top: 92px; overflow: hidden; }
#folder .grid { position: absolute; left: 0; top: 0; right: 0; }


/* Text Size (Settings → Appearance, tvOS 27): the text at 90 % or 115 % (no CSS variables on old TVs). */
.text-small .cctile .label { font-size: 19px; }
.text-small .cctile .detail { font-size: 17px; }
.text-small .cccell .label { font-size: 16px; }
.text-small #drawer .who .name { font-size: 17px; }
.text-small .inrow .name { font-size: 20px; }
.text-small .inrow .status { font-size: 15px; }
.text-small .cchead { font-size: 22px; }
.text-small .cell .label { font-size: 22px; }
.text-small #tabs .tab { font-size: 23px; }
.text-large .cctile .label { font-size: 24px; }
.text-large .cctile .detail { font-size: 22px; }
.text-large .cccell .label { font-size: 21px; }
.text-large #drawer .who .name { font-size: 22px; }
.text-large .inrow .name { font-size: 25px; }
.text-large .inrow .status { font-size: 20px; }
.text-large .cchead { font-size: 28px; }
.text-large .cell .label { font-size: 29px; }
.text-large #tabs .tab { font-size: 30px; }

/* AirPods (an AirPods or Beats output joined): the glyph left of Control Center's bubble, the card at the top right. */
#airglyph { position: absolute; right: 360px; top: 59px; width: 40px; height: 34px; background-color: #FFF; opacity: 0; -webkit-mask-image: url(symbols/airpods.png); -webkit-mask-size: 36px 23px; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
#airglyph.on { opacity: 0.92; }
#volhud .airglyph { position: absolute; left: 13px; bottom: 14px; width: 26px; height: 26px; display: none; }
#volhud.lit .airglyph, #volhud.lit .sunglyph { color: #1D1D1F; }
#volhud.air .spk { display: none; }
#volhud.air .airglyph { display: block; }
#volhud.bright .airglyph { display: none; }
.folderface .mini .sym.big { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* An Apple guide (FaceTime, Fitness+, Podcasts, Apple Music): its AirPlay steps and a QR code, over the home screen. */
#guide { z-index: 60; opacity: 0; color: #FFF; -webkit-transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
#guide.open { opacity: 1; }
#guide .veil { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: rgba(0, 0, 0, 0.55); }
#guide .card { position: absolute; left: 260px; top: 170px; width: 1400px; height: 740px; border-radius: 44px; background: rgba(28, 28, 30, 0.92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1.5px 0 rgba(255, 255, 255, 0.2), 0 40px 90px rgba(0, 0, 0, 0.45); -webkit-transform: scale(0.94); transform: scale(0.94); -webkit-transition: -webkit-transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1); transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1); }
#guide.open .card { -webkit-transform: none; transform: none; }
#guide .plate { position: absolute; left: 80px; top: 80px; width: 150px; height: 150px; border-radius: 34px; overflow: hidden; }
#guide .plate .sym { position: absolute; left: 36px; top: 36px; width: 78px; height: 78px; color: #FFF; }
#guide .title { position: absolute; left: 270px; top: 98px; font-size: 64px; font-weight: 700; line-height: 72px; }
#guide .sub { position: absolute; left: 270px; top: 180px; font-size: 28px; font-weight: 500; opacity: 0.7; }
#guide .steps { position: absolute; left: 80px; top: 300px; width: 900px; margin: 0; padding: 0; list-style: none; }
#guide .steps li { position: relative; min-height: 44px; margin-bottom: 40px; padding-left: 70px; font-size: 30px; line-height: 40px; }
#guide .steps .n { position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, 0.95); color: #1C1C1E; font-size: 26px; font-weight: 600; line-height: 44px; text-align: center; }
#guide .qr { position: absolute; left: 1020px; top: 110px; width: 300px; height: 300px; padding: 20px; border-radius: 28px; background: #FFF; }
#guide .qr img { display: block; width: 300px; height: 300px; image-rendering: pixelated; }
#guide .scan { position: absolute; left: 1020px; top: 470px; width: 340px; text-align: center; font-size: 24px; font-weight: 500; opacity: 0.7; }
#guide .foot { position: absolute; left: 80px; right: 80px; bottom: 50px; text-align: center; font-size: 22px; opacity: 0.6; }

/* The text fields of the city and TMDB key sheets. */
#citypick .row.field input, #keypick .row.field input {
  width: 100%;
  height: 70px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #FFF;
  font: inherit;
  line-height: 70px;
}
#citypick .row.field, #keypick .row.field { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18); }
#citypick .row.field input::-webkit-input-placeholder, #keypick .row.field input::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.4); }
#citypick .row.field input::placeholder, #keypick .row.field input::placeholder { color: rgba(255, 255, 255, 0.4); }
#citypick .row { overflow: hidden; text-overflow: ellipsis; }
.box .hint.warn { color: #FFC266; }
.box .hint.steps { white-space: pre-line; line-height: 1.4; }

/* Samsungs up to 2 GB (see tv.js): the parts that move lose their soft shadows, which the TV repainted on every frame of
   a move, and what slides is a layer from the start, so a move starts at once. */
.flat .tab, .flat .card .img, .flat .tile, .flat .key { box-shadow: none !important; }
.flat .cell.focus .face { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4) !important; }
.flat #home, .flat #drawer, .flat #cards, .flat .card, .flat #tiles, .flat .tile { will-change: transform; }
.flat #top { will-change: opacity; }

/* MARK: - Moving apps (home.js: startMove). The cursor is white with a dark edge and a soft shadow, so it reads on the
   light grid as on the dark one: a line between two apps, an outline (ring) on one. The carried app rides above it. */
#move { z-index: 6; pointer-events: none; display: none; }
#move.on { display: block; }
#move .line, #move .ring, #move .carry { position: absolute; left: 0; top: 0; opacity: 0; }
#move .line {
  width: 8px;
  height: 178px;
  border-radius: 4px;
  background: #FFF;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(0, 0, 0, 0.14), 0 3px 10px rgba(0, 0, 0, 0.32);
}
#move .ring {
  width: 278px;
  height: 180px;
  box-sizing: border-box;
  border: 6px solid #FFF;
  border-radius: 41px;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(0, 0, 0, 0.36), 0 0 0 6px rgba(0, 0, 0, 0.14), 0 3px 12px rgba(0, 0, 0, 0.32);
}
.night #move .line { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.25), 0 3px 10px rgba(0, 0, 0, 0.45); }
.night #move .ring { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.25), inset 0 0 0 1.5px rgba(0, 0, 0, 0.25), 0 3px 12px rgba(0, 0, 0, 0.45); }
#move .carry .face { top: 0; left: 0; box-shadow: 0 28px 46px rgba(0, 0, 0, 0.4); }
/* The tile the carried app lands on waits until it's there. */
.tile.landing, .cell.landing { visibility: hidden; }
/* Behind an outlined app, the folder-to-be: the folder tile's frosted card, a little bigger than the app. */
.cell::before {
  content: '';
  position: absolute;
  left: -12px;
  top: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.65);
  opacity: 0;
  -webkit-transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.night .cell::before { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.cell.forming::before { opacity: 1; }

/* The hint: what OK does here, and the keys. Under the tab bar over the home screen; at the bottom over All Apps. */
#movehint {
  position: absolute;
  left: 50%;
  top: 124px;
  height: 62px;
  padding: 0 26px 0 14px;
  border-radius: 31px;
  white-space: nowrap;
  font-size: 25px;
  line-height: 62px;
  color: #FFF;
  background: rgba(17, 17, 19, 0.86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  -webkit-transform: translate(-50%, -12px);
  transform: translate(-50%, -12px);
  -webkit-transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 47;
  pointer-events: none;
}
#movehint.low { top: 982px; }
#movehint.on { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }
#movehint > * { display: inline-block; vertical-align: middle; }
#movehint .mini { position: relative; width: 58px; height: 35px; border-radius: 9px; overflow: hidden; margin-right: 16px; background: rgba(255, 255, 255, 0.2); color: #FFF; }
#movehint .mini img { position: absolute; left: 50%; top: 50%; max-width: 76%; max-height: 62%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
#movehint .mini .sym { position: absolute; left: 17px; top: 6px; }
#movehint .name { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
#movehint .sep { width: 2px; height: 28px; margin: 0 18px; background: rgba(255, 255, 255, 0.25); }
#movehint .where { color: rgba(255, 255, 255, 0.78); font-weight: 500; max-width: 620px; overflow: hidden; text-overflow: ellipsis; margin-right: 44px; }
#movehint .key {
  height: 32px;
  min-width: 40px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1.6px solid rgba(255, 255, 255, 0.7);
  border-radius: 9px;
  font-size: 17px;
  font-weight: 600;
  line-height: 29px;
  text-align: center;
  margin-right: 10px;
}
#movehint .verb { font-weight: 600; margin-right: 28px; }
#movehint .cancel { color: rgba(255, 255, 255, 0.78); font-weight: 500; }

/* An open folder's name, focused (↑ from its first row): it lifts and turns dark; OK renames it. */
#folder .badge {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
#folder .badge.focus { background: #1D1D1F; color: #FFF; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); -webkit-transform: translateX(-50%) scale(1.12); transform: translateX(-50%) scale(1.12); }
.night #folder .badge.focus { background: #FFF; color: #1D1D1F; }

/* Naming a folder: the folder-to-be, its name big, the suggestions as pills (focused: inverted, as tvOS's buttons). */
#namecard { z-index: 8; opacity: 0; visibility: hidden; color: #1D1D1F; }
.night #namecard { color: #FFF; }
#namecard .veil { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: rgba(22, 33, 45, 0.4); }
.night #namecard .veil { background: rgba(0, 0, 0, 0.5); }
#namecard .card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1040px;
  margin-left: -520px;
  -webkit-transform-origin: 50% 0;
  transform-origin: 50% 0;
  margin-top: -300px;
  padding: 56px 64px 60px;
  box-sizing: border-box;
  border-radius: 40px;
  text-align: center;
  background: rgba(246, 247, 250, 0.985);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 40px 90px rgba(0, 0, 0, 0.32);
}
.night #namecard .card { background: rgba(40, 44, 54, 0.985); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px rgba(0, 0, 0, 0.45); }
#namecard .preview { position: relative; display: inline-block; vertical-align: top; }
#namecard .title { margin-top: 36px; font-size: 22px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.6; }
#namecard .big { margin-top: 18px; height: 70px; font-size: 58px; font-weight: 600; line-height: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#namecard .caption { margin-top: 6px; font-size: 25px; font-weight: 500; opacity: 0.6; }
#namecard .pills { margin-top: 44px; }
#namecard .pill {
  display: inline-block;
  height: 64px;
  margin: 0 9px 18px;
  padding: 0 30px;
  border-radius: 32px;
  font-size: 26px;
  font-weight: 600;
  line-height: 64px;
  background: rgba(0, 0, 0, 0.08);
  -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.night #namecard .pill { background: rgba(255, 255, 255, 0.14); }
#namecard .pill.focus { background: #1D1D1F; color: #FFF; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28); -webkit-transform: scale(1.06); transform: scale(1.06); }
.night #namecard .pill.focus { background: #FFF; color: #1D1D1F; }
#namecard .field {
  display: none;
  position: absolute;
  left: 60px;
  right: 60px;
  top: 286px;
  height: 84px;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 58px;
  font-weight: 600;
  color: inherit;
}
#namecard .card.typing .field { display: block; }
#namecard .card.typing .big { visibility: hidden; }

/* MARK: - An app's launch screen (home.js: showCard): the tile grows into a full-screen card in its colours, its logo in
   the middle, and holds until the app takes over; tvOS's spinner under it once the app is slow. */
#launchcard { z-index: 9; display: none; pointer-events: none; }
#launchcard.on { display: block; }
#launchcard .bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; -webkit-transform-origin: 0 0; transform-origin: 0 0; }
#launchcard .mark { position: absolute; left: 0; top: 0; color: #FFF; }
#launchcard .mark img { position: absolute; left: 50%; top: 50%; max-width: 76%; max-height: 62%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
#launchcard .mark img.logo { width: 66%; height: 46%; max-width: none; max-height: none; object-fit: contain; }
#launchcard .mark .word { position: absolute; left: 0; right: 0; top: 50%; margin-top: -20px; height: 40px; line-height: 40px; text-align: center; font-weight: 700; }
#launchcard .spin { position: absolute; left: 937px; top: 820px; width: 46px; height: 46px; opacity: 0; -webkit-animation: launchspin 1s steps(8) infinite; animation: launchspin 1s steps(8) infinite; }
#launchcard .spin i { position: absolute; left: 20.5px; top: 0; width: 5px; height: 12px; border-radius: 3px; background: #FFF; -webkit-transform-origin: 2.5px 23px; transform-origin: 2.5px 23px; }
@-webkit-keyframes launchspin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } }
@keyframes launchspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* The website (tv.mahit.dev) only. Music Glow: the screen's edges in the art's colours, the warm one on the beat. */
#glow { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; opacity: 0; -webkit-transition: opacity 1.6s ease; transition: opacity 1.6s ease; }
#glow i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: opacity; }
#glow .a { box-shadow: inset 0 0 60px 4px rgba(255, 150, 70, 0.8), inset 0 0 200px 24px rgba(255, 110, 40, 0.3); -webkit-animation: glowBeat 0.571s ease-out infinite; animation: glowBeat 0.571s ease-out infinite; }
#glow .b { box-shadow: inset 0 0 130px 16px rgba(90, 120, 255, 0.55); -webkit-animation: glowDrift 4.57s ease-in-out infinite alternate; animation: glowDrift 4.57s ease-in-out infinite alternate; }
body.glowing #glow { opacity: 0.62; }
@-webkit-keyframes glowBeat { 0% { opacity: 1; } 20% { opacity: 0.8; } 100% { opacity: 0.22; } }
@keyframes glowBeat { 0% { opacity: 1; } 20% { opacity: 0.8; } 100% { opacity: 0.22; } }
@-webkit-keyframes glowDrift { 0% { opacity: 0.25; } 100% { opacity: 0.95; } }
@keyframes glowDrift { 0% { opacity: 0.25; } 100% { opacity: 0.95; } }

/* Settings in a browser: where the browser's own settings are, and mahitTV's. */
#websheet { position: absolute; z-index: 900; left: 0; top: 0; width: 1920px; height: 1080px; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; -webkit-transition: opacity 0.35s ease, visibility 0s 0.35s; transition: opacity 0.35s ease, visibility 0s 0.35s; }
#websheet.on { opacity: 1; visibility: visible; -webkit-transition: opacity 0.35s ease; transition: opacity 0.35s ease; }
#websheet .card { position: absolute; left: 50%; top: 50%; width: 820px; margin-left: -410px; padding: 60px 64px 54px; box-sizing: border-box; border-radius: 52px; text-align: center; color: #fff;
  background: rgba(34, 36, 42, 0.94); box-shadow: 0 50px 140px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  -webkit-transform: translate(0, -50%) scale(0.92); transform: translate(0, -50%) scale(0.92); -webkit-transition: -webkit-transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
#websheet.on .card { -webkit-transform: translate(0, -50%) scale(1); transform: translate(0, -50%) scale(1); }
#websheet .gear { width: 124px; height: 124px; margin: 0 auto 30px; border-radius: 30px; background: linear-gradient(180deg, #9A9AA1, #56565C); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
#websheet .gear .sym { display: block; margin: 0 auto; position: relative; top: 24px; color: #fff; }
#websheet .title { font-size: 46px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 16px; }
#websheet .text { font-size: 28px; line-height: 1.42; color: rgba(255, 255, 255, 0.66); }
#websheet .url { display: inline-block; margin-top: 26px; padding: 14px 30px; border-radius: 20px; background: rgba(255, 255, 255, 0.1); font: 500 32px Menlo, Consolas, monospace; color: #fff; }
#websheet .btns { margin-top: 46px; }
#websheet button { display: inline-block; min-width: 280px; margin: 0 10px; padding: 20px 36px; border-radius: 40px; font-size: 29px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.12); cursor: pointer;
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s, color 0.2s; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s, color 0.2s; }
#websheet button.focus { background: #fff; color: #1D1D1F; -webkit-transform: scale(1.07); transform: scale(1.07); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }

/* The first visit's hint, under the screen. */
#webhint { position: fixed; left: 50%; bottom: 24px; padding: 11px 22px; border-radius: 30px; white-space: nowrap; pointer-events: none; opacity: 0;
  font: 500 14px/1.2 Inter, -apple-system, 'Helvetica Neue', sans-serif; letter-spacing: 0.2px; color: rgba(255, 255, 255, 0.86); background: rgba(22, 22, 26, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-transform: translate(-50%, 16px); transform: translate(-50%, 16px); -webkit-transition: opacity 0.6s ease, -webkit-transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
#webhint.on { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }
#webhint b { color: #fff; font-weight: 600; }
