/*
 * Shared visual and motion layer for Everything Hub.
 * Page structure stays in site-design.css; this file owns the visual tokens,
 * common surfaces, responsive launcher treatment, and restrained interactions.
 */
:root {
  --ink: #18203d;
  --muted: #68718a;
  --line: #e1e5f2;
  --bg: #f4f6ff;
  --paper: #fff;
  --green: #16887d;
  --dark: #25264e;
  --accent: #f17368;
  --hub-violet: #6255df;
  --hub-cyan: #27c5cb;
  --hub-focus: #8d7bff;
  --hub-radius-card: 18px;
  --hub-radius-control: 12px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 5% 5%, #e9edff 0, transparent 32%),
    radial-gradient(ellipse at 95% 18%, #e1f8f4 0, transparent 29%),
    var(--bg);
}

.app-shell.os-home,
.app-shell:not(.os-home) {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% 2%, #e8edff 0, transparent 34%),
    radial-gradient(ellipse at 94% 19%, #e3f7f5 0, transparent 30%),
    #f5f7ff;
}

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--hub-focus);
  outline-offset: 3px;
}

/* Shared controls: concise focus/press feedback, without animating layout. */
.btn {
  border-radius: var(--hub-radius-control);
  font-size: 12px;
  font-weight: 750;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn.dark {
  color: #fff;
  background: linear-gradient(125deg, #5548d5, #27357a);
  box-shadow: 0 7px 18px #4037a52c;
}

.btn.outline {
  color: #333e7c;
  background: #fff;
  border-color: #d4d9eb;
}

.field input,
.field select,
.field textarea,
#app input:not([type="checkbox"]):not([type="radio"]),
#app select,
#app textarea {
  border-color: #d7dced;
  border-radius: 11px;
}

.field :is(input, select, textarea):focus,
#app :is(input, select, textarea):focus {
  border-color: #8b7bf1;
  outline: none;
  box-shadow: 0 0 0 4px #7566e41b;
}

@media (hover: hover) and (pointer: fine) {
  .btn.dark:hover {
    background: linear-gradient(125deg, #493bc8, #202e70);
  }

  .btn.outline:hover {
    background: #f4f3ff;
    border-color: #b8b2f2;
  }

  .btn:hover:not(:disabled) {
    transform: translateY(-1px);
  }
}

.btn:active:not(:disabled) {
  transform: scale(.985);
}

/* A single, high-contrast masthead across the launcher and every app. */
.app-shell.os-home .topbar,
.app-shell:not(.os-home) .topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 70px;
  padding: 0 clamp(18px, 4vw, 54px);
  color: #f7f8ff;
  background: linear-gradient(105deg, #191a35, #25214b 63%, #173e4c);
  border: 0;
  border-bottom: 1px solid #ffffff1e;
  box-shadow: 0 8px 28px #16173018;
}

.top-brand,
.breadcrumb strong,
.breadcrumb .app-home-link,
.os-home .breadcrumb .app-home-link,
.os-home .breadcrumb .app-home-link span {
  color: #f5f4ff;
}

.top-brand img {
  border-radius: 9px;
  box-shadow: 0 4px 14px #070a1d55;
}

.breadcrumb,
.top-date {
  color: #c2c8e1;
}

.breadcrumb .breadcrumb-divider {
  color: #8790b6;
}

.app-shell .top-actions {
  gap: 9px;
}

.app-switcher-trigger {
  padding: 9px 13px;
  color: #f5f5ff;
  background: #ffffff10;
  border: 1px solid #ffffff35;
  border-radius: 11px;
  font-size: 11px;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.help-button,
.app-shell .top-avatar {
  width: 34px;
  height: 34px;
  color: #fff;
  background: #ffffff14;
  border: 1px solid #ffffff36;
  border-radius: 50%;
  box-shadow: none;
}

.app-shell .top-avatar {
  color: #202448;
  background: linear-gradient(145deg, #a8f1dc, #9eb2ff);
  border: 0;
  font-size: 13px;
  font-weight: 850;
}

@media (hover: hover) and (pointer: fine) {
  .app-switcher-trigger:hover {
    background: #ffffff20;
    border-color: #ffffff60;
    transform: translateY(-1px);
  }
}

.app-shell:not(.os-home) #app,
.os-home #app {
  padding-top: clamp(26px, 4vw, 46px);
}

/* The launcher hero makes search and today's snapshot the first visual stops. */
.launcher-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  min-height: 220px;
  padding: clamp(25px, 4vw, 42px);
  margin-bottom: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 83% 28%, #50d4d155, transparent 23%),
    linear-gradient(118deg, #252251 0%, #5144a3 55%, #147d8b 100%);
  border: 1px solid #ffffff20;
  border-radius: 26px;
  box-shadow: 0 22px 54px #3933812c;
}

.launcher-heading::before {
  position: absolute;
  z-index: -1;
  top: -55%;
  right: 7%;
  width: 340px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid #ffffff24;
  border-radius: 50%;
  box-shadow: 0 0 0 24px #ffffff08, 0 0 0 52px #ffffff06, 0 0 58px #7ee9dc28;
  pointer-events: none;
}

.launcher-heading::after {
  position: absolute;
  z-index: 0;
  top: 17%;
  right: 10%;
  color: #e9ddffb5;
  content: "✦";
  font-size: 30px;
  text-shadow: 0 0 24px #fff;
  animation: hub-float 4.8s ease-in-out infinite alternate;
  pointer-events: none;
}

.launcher-heading > div,
.launcher-heading .launcher-search {
  position: relative;
  z-index: 1;
}

.launcher-heading h1,
#app .launcher-heading h1 {
  margin: 13px 0 11px;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.02;
}

.launcher-heading > div > p:last-child {
  color: #e4e4ff;
  font-size: 14px;
}

.os-date {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 11px;
  color: #d9eaff;
  background: #ffffff12;
  border: 1px solid #ffffff2c;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.launcher-search {
  width: min(365px, 100%);
  padding: 0 15px;
  color: #5352a3;
  background: #fff;
  border: 1px solid #ffffffb8;
  border-radius: 15px;
  box-shadow: 0 14px 30px #1013313d;
}

.launcher-search input {
  padding: 14px 0;
  color: #25264e;
  font-size: 13px;
}

.launcher-search:focus-within {
  outline: 3px solid #b7f1ea;
  outline-offset: 3px;
}

/* Four compact daily cards form a scannable bento row. */
.os-widget-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  background: transparent;
  border: 0;
}

.os-widget-grid .os-widget {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 136px;
  padding: 20px;
  overflow: hidden;
  color: #202546;
  background: linear-gradient(150deg, #fff, #fbfbff);
  border: 1px solid #e4e7f3;
  border-radius: 19px;
  box-shadow: 0 10px 26px #25315b0d;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.os-widget-grid .os-widget::after {
  position: absolute;
  z-index: -1;
  right: -54px;
  bottom: -62px;
  width: 120px;
  aspect-ratio: 1;
  content: "";
  background: #8273ef12;
  border-radius: 50%;
}

.os-widget-grid .os-widget span,
.os-widget-grid .os-widget small {
  color: #626b86;
}

.os-widget-grid .os-widget span {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.os-widget-grid .os-widget strong {
  position: relative;
  z-index: 1;
  margin: 11px 0 6px;
  color: #1c2343;
  font-size: 16px;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.os-widget-grid .os-widget small {
  font-size: 11px;
  line-height: 1.45;
}

.os-widget-grid .os-widget b {
  position: absolute;
  top: 17px;
  right: 18px;
  color: #7970d7;
}

.os-widget-grid .os-widget.os-clock {
  color: #fff;
  background: linear-gradient(135deg, #23224b, #5140a3 72%, #3e6d9b);
  border: 0;
  box-shadow: 0 14px 30px #35308124;
}

.os-widget-grid .os-widget.os-clock::after {
  right: -55px;
  bottom: -88px;
  width: 170px;
  background: transparent;
  border: 1px solid #ffffff2a;
  box-shadow: 0 0 0 18px #ffffff08, 0 0 36px #8fdfff24;
}

.os-widget-grid .os-widget.os-clock span,
.os-widget-grid .os-widget.os-clock small {
  color: #e0e5ff;
}

.os-widget-grid .os-widget.os-clock strong {
  color: #fff;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -.06em;
}

.os-widget-grid .os-widget.os-clock b {
  color: #a9a3ff;
}

.os-section-heading {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 42px 0 17px;
  padding: 0 0 12px;
  color: #1d2144;
  border: 0;
}

.os-section-heading::after {
  height: 1px;
  flex: 1;
  content: "";
  background: linear-gradient(90deg, #cfd2ee, transparent);
}

.os-section-heading h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.os-section-heading p {
  color: #626b86;
  font-size: 11px;
}

/* Pins and recent apps stay visible without competing with the directory. */
.home-quick-access {
  margin-top: 18px;
  padding: 22px 24px;
  background: linear-gradient(140deg, #fff, #fbfbff);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 26px #25315b0b;
}

.home-quick-access[hidden] {
  display: none;
}

.quick-app-heading h2 {
  color: #202447;
  font-size: 19px;
  letter-spacing: -.04em;
}

.quick-app-heading button {
  color: #564cbe;
  background: #f3f2ff;
  border-color: #e0def9;
  border-radius: 10px;
}

.quick-app-list {
  gap: 8px;
}

.quick-app-link {
  min-height: 46px;
  color: #2c345c;
  background: #fff;
  border: 1px solid #e6e8f3;
  border-radius: 12px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.quick-app-link .switcher-icon {
  color: #4d55bd;
  background: linear-gradient(145deg, #eeeefe, #e7f7f4);
  border-radius: 9px;
}

.quick-app-empty,
.home-quick-access h3 {
  color: #626b86;
}

/* Categorised app links have consistent touch targets and clear affordances. */
.os-app-grid.home-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-directory-group {
  min-width: 0;
  padding: 18px;
  background: #ffffffdc;
  border: 1px solid #e2e6f3;
  border-radius: 21px;
  box-shadow: 0 10px 28px #29375d0c;
}

.home-directory-group[hidden] {
  display: none !important;
}

.home-group-heading {
  padding-bottom: 12px;
  margin-bottom: 11px;
  color: #2a2d58;
  border-bottom-color: #e8e9f3;
}

.home-group-heading h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.home-group-heading span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #5b53c9;
  background: #f0efff;
  border-radius: 9px;
  font-weight: 800;
}

.home-group-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.os-app-grid.home-directory .hub-tile,
.os-app-grid.home-directory .hub-tile.dashboard-action {
  position: relative;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 14px;
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 0;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #eaebf4;
  border-radius: 13px;
  color: #222849;
  background: linear-gradient(150deg, #fff, #fbfbff);
  box-shadow: 0 4px 12px #24254e07;
  column-gap: 10px;
  row-gap: 3px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.os-app-grid.home-directory .hub-tile[hidden] {
  display: none !important;
}

.os-app-grid.home-directory .hub-tile-icon,
.os-app-grid.home-directory .hub-tile:nth-child(n) .hub-tile-icon {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #5953c8;
  background: linear-gradient(145deg, #eceaff, #e6f8f4);
}

.os-app-grid.home-directory .hub-tile:nth-child(4n + 2) .hub-tile-icon {
  color: #c55d55;
  background: linear-gradient(145deg, #fff0e8, #ffe2d7);
}

.os-app-grid.home-directory .hub-tile:nth-child(4n + 3) .hub-tile-icon {
  color: #317d9f;
  background: linear-gradient(145deg, #e3f7fb, #d9eaff);
}

.os-app-grid.home-directory .hub-tile:nth-child(4n) .hub-tile-icon {
  color: #8253ae;
  background: linear-gradient(145deg, #f4e9ff, #ebe2ff);
}

.os-app-grid.home-directory .hub-tile strong {
  grid-row: 1;
  grid-column: 2;
  color: #242b50;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.os-app-grid.home-directory .hub-tile p {
  display: block;
  grid-row: 2;
  grid-column: 2;
  margin: 0;
  color: #616b86;
  font-size: 10px;
  line-height: 1.35;
}

.os-app-grid.home-directory .hub-tile-arrow {
  position: static;
  grid-row: 1 / 3;
  grid-column: 3;
  align-self: center;
  color: #7974bb;
  font-size: 14px;
}

/* Common surfaces keep a clear hierarchy across the site's many small apps. */
#app :is(
  .content-card, .school-panel, .school-day, .everyday-card, .bookmark-row,
  .topic-row, .task, .reward-card, .resource-card, .deck-card, .subject-card,
  .video-card, .game-mode-card, .game-set-card, .practice-setup,
  .practice-question, .practice-review, .practice-summary, .live-panel,
  .book-card, .reader-settings, .books-aside > *, .featured-card, .embed-card,
  .arcade-game-card, .game-type, .ai-panel, .bookmarks-add, .timetable-add,
  .mini-panel, .overview-panel, .home-extra, .streak-panel, .subject-settings,
  .creator, .note-card, .note-form
) {
  border-color: var(--line);
  border-radius: var(--hub-radius-card);
  box-shadow: 0 8px 25px #2733580b;
}

.app-shell:not(.os-home) #app h1 {
  color: #1d2244;
  font-family: inherit;
  font-weight: 780;
  letter-spacing: -.05em;
}

.app-shell:not(.os-home) #app :is(
  .hub-page-head h1, .view-intro h1, .everyday-head h1,
  .books-heading h2, .timetable-header h1, .bookmarks-header h1
) {
  font-size: clamp(31px, 4vw, 42px);
  line-height: 1.08;
}

.app-shell:not(.os-home) #app :is(
  .text-link, .back-link, .arcade-back, .everyday-actions button, .everyday-clear
) {
  color: #5148bc;
}

.app-shell:not(.os-home) #app :is(
  .subject-card, .deck-card, .video-card, .game-set-card, .resource-card,
  .featured-card, .embed-card, .book-card, .game-type, .arcade-game-card,
  .bookmark-tile, .hub-tile, .quick-app-link
) {
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.app-shell:not(.os-home) #app :is(
  .task, .school-day, .everyday-card, .bookmark-row, .resource-card,
  .deck-card, .subject-card, .video-card, .game-mode-card, .game-set-card,
  .practice-setup, .practice-question, .practice-review, .practice-summary,
  .live-panel, .book-card, .reader-settings, .featured-card, .embed-card,
  .arcade-game-card, .game-type, .ai-panel, .bookmarks-add, .timetable-add,
  .mini-panel, .content-card
) {
  background-color: #fff;
}

.app-shell:not(.os-home) #app :is(
  .eyebrow, .game-eyebrow, .everyday-kicker, .lists-eyebrow, .notes-kicker,
  .books-kicker, .ai-kicker, .bookmarks-kicker, .timetable-kicker
) {
  color: #5149ad;
}

.app-shell:not(.os-home) #app .bar span,
.app-shell:not(.os-home) #app .reader-progress span {
  background: linear-gradient(90deg, #6254dd, #2ec5bb);
}

@media (hover: hover) and (pointer: fine) {
  .os-widget-grid .os-widget:not(.os-clock):hover,
  .os-app-grid.home-directory .hub-tile:hover,
  .quick-app-link:hover,
  .app-shell:not(.os-home) #app :is(
    .subject-card, .deck-card, .video-card, .game-set-card, .resource-card,
    .featured-card, .embed-card, .book-card, .game-type, .arcade-game-card,
    .bookmark-tile
  ):hover {
    transform: translateY(-2px);
    border-color: #c5c0f1;
    background-color: #fff;
  }
}

/* Dialog surfaces share the same focus-friendly, high-contrast treatment. */
dialog {
  color: #202546;
  background: #fff;
  border: 1px solid #e3e5f1;
  border-radius: 20px;
  box-shadow: 0 26px 90px #14153142;
}

dialog::backdrop {
  background: #10132d88;
}

#appSwitcher {
  color: #202546;
}

.switcher-head p {
  color: #5d55c9;
}

.switcher-head h2 {
  font: 800 28px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.04em;
}

.switcher-head button {
  color: #4f4aaa;
  background: #f4f3ff;
  border-radius: 10px;
}

.switcher-row {
  border-color: #ececf5;
}

.switcher-row > a {
  color: #24284c;
  border-radius: 12px;
}

.switcher-icon {
  color: #514fc0;
  background: linear-gradient(145deg, #eceaff, #e3f7f5);
  border-radius: 10px;
}

.switcher-row > button {
  color: #6156cf;
  border-radius: 10px;
}

.switcher-search input,
.bookmark-search input,
.resource-search input,
.task-search input,
.book-sort select {
  border-color: #dadeed;
  border-radius: 11px;
}

/* Keep sign-in visually related without competing with the sign-in card. */
#landing.entry-screen {
  color: #fff;
  background:
    radial-gradient(ellipse at 18% 18%, #30c9cd35, transparent 33%),
    radial-gradient(ellipse at 88% 76%, #a47cff38, transparent 35%),
    linear-gradient(132deg, #17182f 0%, #2a275c 54%, #145867 100%);
}

.entry-intro .brand {
  color: #fff;
}

.entry-intro .brand > span > span {
  color: #8ce9d8;
}

.entry-intro .brand-mark {
  border-radius: 13px;
  box-shadow: 0 8px 25px #070b2a59;
}

.entry-intro .entry-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 44px 0 16px;
  padding: 6px 12px;
  color: #bcd6ff;
  background: #ffffff0d;
  border: 1px solid #ffffff30;
  border-radius: 50px;
  font-weight: 800;
}

.entry-intro h1 {
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 850;
  letter-spacing: -.075em;
  line-height: .98;
  text-shadow: 0 10px 34px #1113345c;
}

.entry-intro > p:not(.entry-kicker) {
  color: #d9def5;
  font-size: 16px;
}

.entry-index,
.entry-index > div {
  border-color: #ffffff28;
}

.entry-index span {
  color: #83ead6;
  font-weight: 800;
}

.entry-index strong {
  color: #f7f7ff;
}

.entry-index small {
  color: #c1c8e4;
}

.entry-card {
  background: linear-gradient(155deg, #fff, #f7f7ff);
  border: 1px solid #ffffffa6;
  border-radius: 24px;
  box-shadow: 0 30px 90px #0c102b62;
}

.entry-card .entry-kicker {
  color: #5e55cb;
}

.entry-card h2 {
  color: #202345;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -.05em;
}

.entry-card > p:not(.entry-kicker):not(.entry-note) {
  color: #626b87;
}

.entry-actions .btn.dark {
  background: linear-gradient(125deg, #5f51dc, #28367f);
  box-shadow: 0 9px 22px #4337b533;
}

.entry-register {
  color: #5049b2;
}

.entry-card .entry-note {
  color: #626b86;
  border-color: #e5e7f2;
}

/* Route and home entrances use transform/opacity only; no script or layout work. */
#app > :is(.everything-home, .mini-app, .ai-page, .school-tools, .bookmarks-workspace, .timetable-workspace) {
  animation: hub-page-enter 240ms cubic-bezier(.2, .72, .25, 1) both;
}

.home-directory-group,
.os-widget-grid .os-widget {
  animation: hub-card-enter 340ms cubic-bezier(.2, .72, .25, 1) both;
}

.home-directory-group:nth-child(2),
.os-widget-grid .os-widget:nth-child(2) {
  animation-delay: 35ms;
}

.home-directory-group:nth-child(3),
.os-widget-grid .os-widget:nth-child(3) {
  animation-delay: 70ms;
}

.home-directory-group:nth-child(4),
.os-widget-grid .os-widget:nth-child(4) {
  animation-delay: 105ms;
}

@keyframes hub-page-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hub-card-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hub-float {
  from { transform: translateY(2px) rotate(-6deg); }
  to { transform: translateY(-5px) rotate(6deg); }
}

@media (max-width: 900px) {
  .os-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .os-app-grid.home-directory {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .home-directory-group {
    padding: 16px;
  }

  .home-group-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .app-shell.os-home .topbar,
  .app-shell:not(.os-home) .topbar {
    height: 62px;
    padding: 0 17px;
  }

  .app-shell .top-actions {
    gap: 7px;
  }

  .app-switcher-trigger {
    padding: 8px 10px;
  }

  .top-date {
    display: none;
  }

  .launcher-heading {
    display: grid;
    align-items: start;
    gap: 21px;
    min-height: 0;
    padding: 25px;
    border-radius: 21px;
  }

  .launcher-heading::before {
    top: -72%;
    right: -15%;
  }

  .launcher-heading::after {
    top: 13%;
    right: 10%;
  }

  .launcher-heading h1,
  #app .launcher-heading h1 {
    font-size: clamp(36px, 9vw, 50px);
  }

  .launcher-search {
    width: 100%;
  }

  .os-widget-grid .os-widget {
    min-height: 124px;
    padding: 16px;
    border-radius: 16px;
  }

  .os-widget-grid .os-widget.os-clock strong {
    font-size: 30px;
  }

  .os-section-heading {
    margin-top: 33px;
  }

  .home-quick-access {
    padding: 17px;
    border-radius: 16px;
  }

  .home-directory-group {
    border-radius: 17px;
  }
}

@media (max-width: 480px) {
  .top-brand {
    gap: 7px;
  }

  .app-shell .top-actions {
    gap: 5px;
  }

  .app-switcher-trigger {
    padding: 7px 8px;
    font-size: 10px;
  }

  .help-button,
  .app-shell .top-avatar {
    width: 31px;
    height: 31px;
  }

  .launcher-heading {
    padding: 22px;
  }

  .os-app-grid.home-directory .hub-tile,
  .os-app-grid.home-directory .hub-tile.dashboard-action {
    min-height: 66px;
    padding: 8px;
  }

  .os-app-grid.home-directory .hub-tile-icon,
  .os-app-grid.home-directory .hub-tile:nth-child(n) .hub-tile-icon {
    width: 33px;
    height: 33px;
  }

  .home-group-links {
    gap: 7px;
  }

  .home-directory-group {
    padding: 13px;
  }

  .quick-app-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-app-heading button {
    align-self: flex-start;
  }
}

@media (max-width: 380px) {
  .app-shell.os-home .topbar,
  .app-shell:not(.os-home) .topbar {
    padding: 0 10px;
  }

  .app-shell .topbar-start {
    gap: 8px;
  }

  .top-brand {
    font-size: 12px;
  }

  .app-shell .top-actions {
    gap: 4px;
  }

  .app-shell #copyAppLink {
    width: 31px;
    height: 31px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .app-shell #copyAppLink::before {
    content: "↗";
    font-size: 14px;
  }

  .app-switcher-trigger {
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* A visible daily hook helps learners find a small reason to return. */
.home-daily-challenge {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 17px 0 0;
  padding: 20px 23px;
  overflow: hidden;
  background: linear-gradient(115deg, #fff, #f0f0ff 62%, #eaf9f6);
  border: 1px solid #e0e2f3;
  border-radius: 18px;
}

.home-daily-star {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #6156cb;
  background: #e8e6ff;
  border-radius: 14px;
  font-size: 21px;
}

.home-daily-star::before {
  content: "✦";
}

.home-daily-challenge .daily-app-label,
.daily-app-label {
  margin: 0 0 5px;
  color: #554db5;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
}

.home-daily-challenge h2 {
  margin: 0;
  color: #222549;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  letter-spacing: -.04em;
}

.home-daily-challenge > div > p:last-child {
  margin: 5px 0 0;
  color: #626b86;
  font-size: 12px;
  line-height: 1.45;
}

.home-daily-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 43px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(120deg, #5548d5, #28377c);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 150ms ease, background-color 150ms ease;
}

.home-daily-link:focus-visible {
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .home-daily-link:hover {
    transform: translateY(-1px);
  }
}

/* Daily Brain Break: playful, legible and entirely user-paced. */
.daily-challenge-app {
  max-width: 760px;
  margin: 0 auto;
}

.daily-challenge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.daily-challenge-head > div:first-child > p:last-child {
  margin: 0;
  color: #68718a;
  font-size: 12px;
  line-height: 1.5;
}

.daily-streak-card {
  flex: none;
  min-width: 112px;
  padding: 12px 15px;
  background: #f0efff;
  border: 1px solid #e1defb;
  border-radius: 14px;
  text-align: center;
}

.daily-streak-card span,
.daily-streak-card strong {
  display: block;
}

.daily-streak-card span {
  color: #5f5b9c;
  font-size: 10px;
  font-weight: 750;
}

.daily-streak-card strong {
  margin-top: 4px;
  color: #38367b;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.daily-date {
  margin: 16px 0 0;
  color: #707892;
  font-size: 11px;
  font-weight: 700;
}

.daily-welcome,
.daily-game,
.daily-done {
  margin-top: 14px;
  padding: clamp(20px, 4vw, 32px);
  background: linear-gradient(145deg, #fff, #f7f7ff 65%, #f1fbf8);
  border: 1px solid #e2e5f3;
  border-radius: 18px;
}

.daily-round-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  color: #514bb1;
  background: #eeedff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.daily-welcome h2,
.daily-done h2 {
  margin: 18px 0 8px;
  color: #202345;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.daily-welcome > p:not(.daily-saved-summary),
.daily-instruction {
  max-width: 520px;
  color: #626b86;
  font-size: 13px;
  line-height: 1.6;
}

.daily-saved-summary {
  margin: 18px 0 13px;
  color: #514c9d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.daily-welcome .btn,
.daily-game .btn,
.daily-done > .btn {
  min-height: 44px;
  padding: 0 18px;
}

.daily-meter {
  height: 8px;
  margin-bottom: 22px;
  overflow: hidden;
  background: #e8e9f3;
  border-radius: 999px;
}

.daily-meter > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #6254dd, #27bfb9);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.daily-round-label {
  margin: 0 0 8px;
  color: #5c55bf;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.daily-game h2 {
  margin: 0;
  color: #212447;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.daily-prompt {
  display: inline-block;
  margin: 18px 0 7px;
  padding: 12px 16px;
  color: #272953;
  background: #f0efff;
  border: 1px solid #e5e2fc;
  border-radius: 12px;
  font-size: clamp(18px, 3vw, 25px);
  font-weight: 800;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.daily-instruction {
  margin: 5px 0 17px;
}

#dailyAnswerForm {
  max-width: 470px;
}

#dailyAnswerForm label {
  display: block;
  margin-bottom: 7px;
  color: #373d67;
  font-size: 11px;
  font-weight: 750;
}

#dailyAnswerForm input {
  width: 100%;
  min-height: 48px;
  max-width: none;
  padding: 11px 13px;
  color: #202345;
  background: #fff;
  border: 1px solid #d8dced;
  border-radius: 11px;
  font: inherit;
  font-size: 16px;
}

#dailyAnswerForm input:disabled {
  color: #525a79;
  background: #f7f7fb;
}

.daily-feedback {
  min-height: 1.5em;
  margin: 8px 0 12px;
  color: #515a75;
  font-size: 12px;
  line-height: 1.5;
}

.daily-feedback:empty {
  visibility: hidden;
}

.daily-feedback.is-correct {
  color: #18785e;
  font-weight: 750;
}

.daily-feedback.is-incorrect {
  color: #944b52;
}

.daily-done > .daily-app-label {
  margin-top: 0;
}

.daily-final-score {
  display: block;
  margin: 12px 0 3px;
  color: #5145c3;
  font-size: clamp(40px, 7vw, 54px);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: -.06em;
}

.daily-final-streak {
  color: #4b488d;
  font-weight: 750;
}

.daily-save-note {
  color: #65708a;
  font-size: 11px;
  line-height: 1.5;
}

.daily-share-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e3e6f1;
  border-radius: 12px;
}

.daily-share-card code {
  flex: 1;
  min-width: 0;
  color: #303457;
  font: 700 11px/1.5 system-ui, sans-serif;
  overflow-wrap: anywhere;
}

.daily-share-card .btn {
  flex: none;
}

.daily-share-card > p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* QR Code Maker: private, high-contrast output with a direct PNG download. */
#miniQrForm > label {
  display: block;
}

#miniQrText {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 92px;
  margin-top: 7px;
  padding: 12px;
  color: #202345;
  background: #fff;
  border: 1px solid #d8dced;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.qr-controls {
  align-items: end;
  margin-top: 17px;
}

.qr-controls input[type="color"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 3px;
  background: #fff;
  border: 1px solid #d8dced;
  border-radius: 10px;
}

.qr-controls select {
  max-width: none;
  border-radius: 10px;
}

#miniQrStatus {
  margin: 16px 0;
  font-size: 12px;
}

.qr-output {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: #f7f8ff;
  border: 1px solid #e2e5f3;
  border-radius: 15px;
}

.qr-output[hidden] {
  display: none !important;
}

.qr-output img {
  display: block;
  width: 100%;
  height: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #e1e4ef;
  border-radius: 10px;
  image-rendering: pixelated;
}

.qr-output > div > p {
  margin: 0 0 7px;
  color: #626b86;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.qr-output code {
  display: block;
  margin-bottom: 14px;
  color: #293052;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

.qr-output .btn {
  min-height: 40px;
  text-decoration: none;
}

@media (max-width: 700px) {
  .home-daily-challenge {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 17px;
  }

  .home-daily-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 550px) {
  .daily-challenge-head {
    align-items: flex-start;
  }

  .daily-streak-card {
    min-width: 95px;
    padding: 10px;
  }

  .daily-share-card {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-share-card .btn {
    align-self: flex-start;
  }

  .qr-output {
    grid-template-columns: minmax(0, 1fr);
  }

  .qr-output img {
    width: min(100%, 260px);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-meter > span {
    transition: none;
  }
}

/* Quick, repeatable creative and skills apps. */
.typing-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.typing-controls label,
.typing-sprint-app > label,
.pixel-colour-tools > label {
  display: grid;
  gap: 7px;
  color: #373d67;
  font-size: 11px;
  font-weight: 750;
}

.typing-controls select {
  width: 100%;
  max-width: none;
  min-height: 42px;
  border-radius: 10px;
}

.typing-clock {
  min-width: 76px;
  padding: 8px 12px;
  color: #37367d;
  background: #efeeff;
  border: 1px solid #e0defa;
  border-radius: 12px;
  text-align: center;
}

.typing-clock span,
.typing-clock strong {
  display: block;
}

.typing-clock span {
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .12em;
}

.typing-clock strong {
  margin-top: 2px;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.typing-prompt {
  margin: 18px 0 14px;
  padding: 17px;
  color: #59617c;
  background: #f7f8ff;
  border: 1px solid #e1e5f2;
  border-radius: 13px;
  font: 500 16px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.typing-prompt .is-correct {
  color: #167c6e;
  background: #e1f7f0;
}

.typing-prompt .is-incorrect {
  color: #b83755;
  background: #ffe6eb;
  text-decoration: underline wavy;
}

.typing-prompt .is-current {
  color: #272953;
  box-shadow: inset 0 -2px #6254dd;
}

#typingInput {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 7px;
  padding: 12px;
  color: #202345;
  background: #fff;
  border: 1px solid #d8dced;
  border-radius: 11px;
  font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
}

.typing-input-meta,
.pixel-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 11px;
}

.typing-input-meta > span,
.typing-best,
.pixel-save-note {
  color: #626b86;
  font-size: 11px;
}

.typing-input-meta > span {
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}

.typing-result {
  margin-top: 17px;
  padding: 16px;
  background: #f5fbf9;
  border: 1px solid #d8ece5;
  border-radius: 14px;
}

.typing-result h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.typing-result > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.typing-result > div p {
  margin: 0;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
}

.typing-result > div strong,
.typing-result > div span {
  display: block;
}

.typing-result > div strong {
  color: #236b5c;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.typing-result > div span {
  color: #626b86;
  font-size: 9px;
}

.pixel-colour-tools {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.pixel-colour-tools input[type="color"] {
  width: 64px;
  height: 42px;
  padding: 3px;
  background: #fff;
  border: 1px solid #d8dced;
  border-radius: 9px;
}

.pixel-colour-tools select {
  width: 126px;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #202345;
  background: #fff;
  border: 1px solid #d8dced;
  border-radius: 9px;
}

.pixel-size-help {
  margin: -3px 0 12px;
  color: #626b86;
  font-size: 11px;
}

.pixel-palette {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.pixel-palette button {
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--pixel-swatch);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d9ddea;
}

.pixel-palette button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #6254dd;
}

.pixel-board {
  display: grid;
  grid-template-rows: repeat(var(--pixel-grid-size, 16), minmax(0, 1fr));
  width: min(100%, 448px);
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ccd2e2;
  border-radius: 6px;
  box-shadow: 0 7px 22px #18203d14;
  touch-action: manipulation;
}

.pixel-board [role="row"] {
  display: grid;
  grid-template-columns: repeat(var(--pixel-grid-size, 16), minmax(0, 1fr));
  min-height: 0;
}

.pixel-cell {
  min-width: 0;
  min-height: 0;
  padding: 0;
  background-color: #fff;
  border: 0;
  border-right: 1px solid #e7e9f0;
  border-bottom: 1px solid #e7e9f0;
  border-radius: 0;
  cursor: crosshair;
}

.pixel-cell:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #202447;
  outline-offset: -3px;
}

.pixel-actions .btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 11px;
}

@media (max-width: 600px) {
  .typing-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .typing-clock {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .typing-result > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .pixel-palette button {
    width: 28px;
    height: 28px;
  }
}

/* Daily discovery and faster paths through the app directory. */
.home-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
  padding: clamp(18px, 3vw, 25px);
  background: linear-gradient(110deg, #fff8ef, #f6f4ff 58%, #effaf9);
  border: 1px solid #e8e4f2;
  border-radius: 18px;
}

.home-featured[hidden] {
  display: none !important;
}

.home-featured h2 {
  margin: 3px 0 5px;
  color: #202345;
  font-size: clamp(20px, 3vw, 27px);
  letter-spacing: -.04em;
}

.home-featured p:not(.daily-app-label) {
  margin: 0;
  color: #68718a;
  font-size: 12px;
}

.home-featured-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-featured-actions .btn {
  min-height: 40px;
  padding: 0 13px;
  font-size: 11px;
  text-decoration: none;
}

.home-category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 11px;
  scrollbar-width: thin;
}

.home-category-filters button {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 0 11px 0 13px;
  color: #56607a;
  background: #fff;
  border: 1px solid #dfe3ef;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.home-category-filters button[aria-pressed="true"] {
  color: #fff;
  background: #292a57;
  border-color: #292a57;
}

.home-category-filters button small {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: #647087;
  background: #eef1f7;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.home-category-filters button[aria-pressed="true"] small {
  color: #292a57;
  background: #fff;
}

.hub-new-badge {
  position: absolute;
  top: 11px;
  right: 41px;
  padding: 4px 6px;
  color: #255e57;
  background: #e4f7ef;
  border: 1px solid #cfece0;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
}

.directory-empty {
  margin: 8px 0 14px;
  padding: 14px 16px;
  color: #5f687f;
  background: #fff;
  border: 1px dashed #ccd2e3;
  border-radius: 12px;
  font-size: 12px;
}

.directory-empty[hidden] {
  display: none !important;
}

.directory-empty button {
  margin-left: 6px;
  padding: 4px 8px;
  color: #5148b5;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.app-discovery-footer {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px 24px;
  max-width: 1050px;
  margin: 30px auto 24px;
  padding: clamp(16px, 3vw, 24px);
  background: linear-gradient(125deg, #fff, #f4f7ff 55%, #f0fbf8);
  border: 1px solid #e0e5f1;
  border-radius: 17px;
}

.app-discovery-footer > div:first-child h2 {
  margin: 5px 0;
  color: #232647;
  font-size: 20px;
  letter-spacing: -.035em;
}

.app-discovery-footer > div:first-child > p:last-child {
  margin: 0;
  color: #68718a;
  font-size: 11px;
  line-height: 1.5;
}

.app-discovery-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app-discovery-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: inherit;
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 12px;
  text-decoration: none;
}

.app-discovery-link > span:nth-child(2) {
  min-width: 0;
}

.app-discovery-link strong,
.app-discovery-link small {
  display: block;
  overflow-wrap: anywhere;
}

.app-discovery-link strong {
  color: #303457;
  font-size: 10px;
}

.app-discovery-link small {
  margin-top: 3px;
  color: #737b91;
  font-size: 8px;
  line-height: 1.35;
}

.app-discovery-link > span:last-child {
  margin-left: auto;
  color: #6557cc;
}

.app-discovery-link .switcher-icon {
  flex: none;
  width: 30px;
  height: 30px;
}

.app-discovery-all {
  justify-self: end;
  color: #4d49a1;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.app-help-related {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.app-help-related > strong {
  font-size: 12px;
}

@media (max-width: 760px) {
  .home-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-featured-actions {
    justify-content: flex-start;
  }

  .app-discovery-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-discovery-all {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .app-discovery-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-discovery-link small {
    font-size: 9px;
  }
}

.os-app-grid.home-directory .hub-tile {
  position: relative;
}

#pinCurrentApp[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .app-shell #pinCurrentApp {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .app-shell #pinCurrentApp::before {
    content: "☆";
    font-size: 16px;
  }

  .app-shell #pinCurrentApp[aria-pressed="true"]::before {
    content: "★";
  }
}

/* Common practical apps and a low-pressure word puzzle. */
.calculator-keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:420px;margin:14px 0}.calculator-keypad button{min-height:46px;border:1px solid #d9e0da;border-radius:7px;background:#f7f8f4;color:#2d4850;font-size:16px;font-weight:700}.calculator-keypad button:hover{background:#eaf1eb;border-color:#a9c2b0}.calculator-keypad .calculator-equals{background:#2e674e;color:#fff;border-color:#2e674e}.popular-help{color:#687879;font-size:12px;line-height:1.6}.popular-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 20px}.popular-fields label{margin:0}.popular-fields select{display:block;margin-top:7px}.stopwatch-app>p:first-child,.word-scramble-app>p:first-child{color:#5e6d70;line-height:1.6}.stopwatch-display{display:block;padding:26px 14px;border:1px solid #dce3dc;border-radius:10px;background:#f3f6ef;color:#23463f;font-size:clamp(30px,8vw,58px);font-weight:750;letter-spacing:.04em;text-align:center;font-variant-numeric:tabular-nums}.stopwatch-actions,.scramble-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.stopwatch-actions button:disabled{opacity:.5;cursor:default}.stopwatch-laps{display:grid;gap:6px;max-height:250px;overflow:auto;padding-left:27px;color:#445d58;font-size:13px;font-variant-numeric:tabular-nums}.word-scramble-app{max-width:560px;margin:auto}.scramble-clue{padding:15px 17px;background:#f3f5eb;border-left:3px solid #92b4a0;border-radius:4px;color:#415b50;line-height:1.6}.scramble-letters{margin:22px 0;text-align:center;color:#315575;font-size:clamp(25px,6vw,42px);font-weight:800;letter-spacing:.16em;overflow-wrap:anywhere}.word-scramble-app input{display:block;width:100%;max-width:none!important;margin:8px 0 12px}.scramble-actions{justify-content:center}.scramble-actions button{min-width:130px}

/* Profile pictures, chat-name colours, and cosmetic picture frames. */
.top-avatar{position:relative;overflow:visible;padding:0;flex:none;border:2px solid transparent}.top-avatar-picture{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);border-radius:50%;object-fit:cover}.top-avatar-reward{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:16px;height:16px;border:1px solid #fff;border-radius:50%;font-size:8px;line-height:1;box-shadow:0 1px 3px #17251d55}.top-avatar[data-avatar-border="frame-mint"],.profile-picture-preview[data-avatar-border="frame-mint"],.reward-avatar-preview[data-avatar-border="frame-mint"],.community-avatar[data-avatar-border="frame-mint"]{border-color:#48a88e}.top-avatar[data-avatar-border="frame-violet"],.profile-picture-preview[data-avatar-border="frame-violet"],.reward-avatar-preview[data-avatar-border="frame-violet"],.community-avatar[data-avatar-border="frame-violet"]{border-color:#8668d7}.top-avatar[data-avatar-border="frame-coral"],.profile-picture-preview[data-avatar-border="frame-coral"],.reward-avatar-preview[data-avatar-border="frame-coral"],.community-avatar[data-avatar-border="frame-coral"]{border-color:#dc715f}.top-avatar[data-avatar-border="frame-gold"],.profile-picture-preview[data-avatar-border="frame-gold"],.reward-avatar-preview[data-avatar-border="frame-gold"],.community-avatar[data-avatar-border="frame-gold"]{border-color:#d7a638}.profile-picture-settings{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:18px;margin:20px 0;padding:16px;border:1px solid #e1e6df;border-radius:9px;background:#fbfcf8}.profile-picture-preview,.reward-avatar-preview,.community-avatar{position:relative;display:grid;place-items:center;overflow:hidden;flex:none;border:4px solid transparent;border-radius:50%;background:#e8efea;color:#375b4d;font-weight:800}.profile-picture-preview{width:84px;height:84px;font-size:24px}.profile-picture-preview img,.reward-avatar-preview img,.community-avatar img{width:100%;height:100%;object-fit:cover}.profile-picture-reward{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:23px;height:23px;border:2px solid white;border-radius:50%;font-size:12px}.profile-picture-copy h3{margin:0;font-size:14px}.profile-picture-copy p,.profile-picture-status{color:#657472;font-size:11px;line-height:1.55}.profile-picture-actions{display:flex;flex-wrap:wrap;gap:7px}.profile-picture-actions .btn{width:auto!important;margin:0!important}.profile-picture-status{margin:8px 0 0}.profile-picture-preview img+.profile-picture-reward{z-index:1}.reward-chat-preview{display:flex;flex-direction:column;justify-content:center;align-items:center;width:112px;height:58px;margin-bottom:18px;border-radius:12px;color:#fff}.reward-chat-preview strong{font-size:16px}.reward-chat-preview small{font-size:9px;opacity:.9}.reward-chat-preview[data-chat-color="chat-lagoon"]{background:#176b70}.reward-chat-preview[data-chat-color="chat-violet"]{background:#6543a5}.reward-chat-preview[data-chat-color="chat-coral"]{background:#a33c39}.reward-chat-preview[data-chat-color="chat-gold"]{background:#78530e}.reward-avatar-preview{width:64px;height:64px;margin-bottom:18px;font-size:20px}.community-avatar{width:32px;height:32px;border-width:2px;font-size:12px}.community-avatar[hidden]{display:none}.community-avatar img{border-radius:50%}.community-message-head{align-items:center}.community-message-head .chat-author{min-width:0;flex:1}.community-message-head .community-message-action{flex:none}.community-message.mine .community-author[data-chat-color="chat-lagoon"]{color:#176b70}.community-message.mine .community-author[data-chat-color="chat-violet"]{color:#6543a5}.community-message.mine .community-author[data-chat-color="chat-coral"]{color:#a33c39}.community-message.mine .community-author[data-chat-color="chat-gold"]{color:#78530e}
@media(max-width:560px){.popular-fields{grid-template-columns:1fr}.calculator-keypad{gap:6px}.calculator-keypad button{min-height:42px}.profile-picture-settings{grid-template-columns:68px minmax(0,1fr);gap:12px;padding:12px}.profile-picture-preview{width:64px;height:64px}.profile-picture-actions{flex-direction:column;align-items:stretch}.profile-picture-actions .btn{width:100%!important}.stopwatch-actions button{flex:1}.scramble-actions button{flex:1}}
.profile-picture-actions [hidden]{display:none!important}

/* Give each earned frame its own finish, with a prismatic heirloom for the verified owner. */
.top-avatar[data-avatar-border="frame-mint"],.profile-picture-preview[data-avatar-border="frame-mint"],.reward-avatar-preview[data-avatar-border="frame-mint"],.community-avatar[data-avatar-border="frame-mint"]{border-color:#44a98d;box-shadow:0 0 0 2px #e8fff5,0 0 0 4px #32866f,0 0 10px #65d6b380}
.top-avatar[data-avatar-border="frame-violet"],.profile-picture-preview[data-avatar-border="frame-violet"],.reward-avatar-preview[data-avatar-border="frame-violet"],.community-avatar[data-avatar-border="frame-violet"]{border-color:#8b70e8;box-shadow:0 0 0 2px #f2edff,0 0 0 4px #6850be,0 0 12px #9a80ed80}
.top-avatar[data-avatar-border="frame-coral"],.profile-picture-preview[data-avatar-border="frame-coral"],.reward-avatar-preview[data-avatar-border="frame-coral"],.community-avatar[data-avatar-border="frame-coral"]{border-color:#e97865;box-shadow:0 0 0 2px #fff2ed,0 0 0 4px #ca4f51,0 0 10px #f2927580}
.top-avatar[data-avatar-border="frame-gold"],.profile-picture-preview[data-avatar-border="frame-gold"],.reward-avatar-preview[data-avatar-border="frame-gold"],.community-avatar[data-avatar-border="frame-gold"]{border-color:#dfb84c;box-shadow:0 0 0 2px #fff8de,0 0 0 4px #9e6a1d,0 0 12px #f0c75f75}
.top-avatar[data-avatar-border="frame-owner-aurora"],.profile-picture-preview[data-avatar-border="frame-owner-aurora"],.reward-avatar-preview[data-avatar-border="frame-owner-aurora"],.community-avatar[data-avatar-border="frame-owner-aurora"]{border-color:#9a7adb;background:linear-gradient(transparent,transparent) padding-box,conic-gradient(from 210deg,#fbf6d7,#f1a9d8,#9387ff,#62e3d4,#f1ca63,#fbf6d7) border-box;box-shadow:0 0 0 2px #fff,0 0 0 5px #9878e455,0 0 15px #7be3d270}
.top-avatar[data-avatar-border="frame-owner-aurora"]::after,.profile-picture-preview[data-avatar-border="frame-owner-aurora"]::after,.reward-avatar-preview[data-avatar-border="frame-owner-aurora"]::after,.community-avatar[data-avatar-border="frame-owner-aurora"]::after{content:"✦";position:absolute;top:1px;left:50%;z-index:3;display:grid;place-items:center;width:14px;height:14px;transform:translateX(-50%);border:1px solid #fff;border-radius:50%;background:linear-gradient(145deg,#fff1b9,#a7f3e8 55%,#b39bff);box-shadow:0 1px 5px #30215170;color:#493b77;font:700 9px/1 Georgia,serif}
.community-avatar[data-avatar-border="frame-owner-aurora"]::after{width:9px;height:9px;font-size:6px}
.reward-card[data-owner-exclusive]{border-color:#d7c9ed;background:linear-gradient(145deg,#fffdf4,#fff 58%,#f7f1ff);box-shadow:0 8px 24px #9277c326}
.owner-exclusive-tag{display:inline-flex;align-items:center;gap:5px;margin:0 0 12px;padding:6px 9px;border:1px solid #d9caed;border-radius:999px;background:linear-gradient(110deg,#fff7d9,#ecfefb 55%,#f2edff);color:#604b8d;font-size:9px;font-weight:800;letter-spacing:.09em}

/* A small no-account preview lets new visitors try the learning loop first. */
.entry-demo{width:min(100%,570px);margin-top:22px;border:1px solid #ffffff35;border-radius:17px;background:#ffffff0d;color:#f7f8ff;overflow:hidden;box-shadow:0 12px 30px #10132b25}
.entry-demo>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;cursor:pointer;list-style:none}
.entry-demo>summary::-webkit-details-marker{display:none}
.entry-demo>summary>span:first-child{display:grid;gap:3px}
.entry-demo>summary strong{font-size:13px;letter-spacing:-.01em}
.entry-demo>summary small{color:#c5c9e4;font-size:11px}
.entry-demo-toggle{display:grid;place-items:center;width:28px;height:28px;border:1px solid #ffffff35;border-radius:50%;color:#a8f0dd;font-size:19px;line-height:1;transition:transform 160ms ease;}
.entry-demo[open] .entry-demo-toggle{transform:rotate(45deg)}
.entry-demo>summary:hover{background:#ffffff0a}
.entry-demo-body{padding:0 18px 17px;border-top:1px solid #ffffff22}
.entry-demo-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin:14px 0 10px;color:#b8c4ee;font-size:9px;font-weight:750;letter-spacing:.07em}
.entry-demo-meta span:last-child{color:#a4e8d9}
.entry-demo h2{margin:0 0 14px;color:#fff;font-size:17px;font-weight:720;letter-spacing:-.025em;line-height:1.4}
.entry-demo-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.entry-demo-option{min-height:44px;padding:10px 12px;border:1px solid #ffffff38;border-radius:10px;background:#ffffff12;color:#f5f6ff;text-align:left;font-size:12px;font-weight:650;cursor:pointer;transition:background-color 140ms ease,border-color 140ms ease,transform 140ms ease;}
.entry-demo-option:hover:not(:disabled){background:#ffffff22;border-color:#b7b8ff;transform:translateY(-1px)}
.entry-demo-option.is-correct{background:#c9f6e7;border-color:#8ce0c5;color:#15473f}
.entry-demo-option.is-incorrect{background:#ffe3e8;border-color:#ffc0cc;color:#722c3c}
.entry-demo-option:disabled{cursor:default}
#entryDemoFeedback{min-height:36px;margin:12px 0 6px;color:#e3e7fb;font-size:11px;line-height:1.55}
#entryDemoFeedback[data-outcome="correct"]{color:#aaf2d7}
#entryDemoFeedback[data-outcome="try-again"]{color:#ffd6df}
.entry-demo-next{padding:8px 0;border:0;background:transparent;color:#b8f2e2;font-size:11px;font-weight:800;cursor:pointer}
.entry-demo-next:disabled{color:#aab0cd;cursor:not-allowed}
.entry-demo-footnote{margin:8px 0 0;color:#bac1dc;font-size:9px;line-height:1.5}
@media(max-width:520px){.entry-demo-options{grid-template-columns:1fr}.entry-demo>summary{padding:14px}.entry-demo-body{padding:0 14px 15px}.entry-demo-meta{font-size:8px}}

/* The Games app brings original, local-play adventures to the front. */
.games-home{max-width:1320px;margin:0 auto}
.games-home-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(260px,.88fr);align-items:center;gap:20px;min-height:320px;padding:clamp(28px,5vw,58px);border-radius:26px;overflow:hidden;background:radial-gradient(ellipse at 75% 20%,#7669d2 0,transparent 38%),linear-gradient(125deg,#242452,#343679 58%,#1f5970);color:#fff;box-shadow:0 18px 45px #28295925}
.games-home-copy{position:relative;z-index:2;max-width:590px}
.games-home-copy>.game-eyebrow{color:#b7efd9}
.app-shell:not(.os-home) #app .games-home-hero h1{margin:0 0 14px;color:#fff;font-size:clamp(39px,6vw,68px);font-weight:850;line-height:.99;letter-spacing:-.065em}
.games-home-hero h1 em{color:#ffe39b;font-family:Georgia,serif;font-weight:500;letter-spacing:-.06em}
.games-home-copy>p:not(.game-eyebrow){max-width:490px;margin:0;color:#e0e0f8;font-size:14px;line-height:1.7}
.games-home-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:23px}
.games-home-actions a{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:43px;padding:0 16px;border:1px solid #ffffff40;border-radius:11px;background:#ffffff12;color:#fff;font-size:12px;font-weight:800;transition:transform 150ms ease,background-color 150ms ease;}
.games-home-actions a:first-child{border-color:#ffe39b;background:#ffe39b;color:#29264b}
.games-home-actions a:hover{transform:translateY(-2px);background-color:#ffffff24}
.games-home-actions a:first-child:hover{background:#fff0bb}
.games-home-proof{display:flex;flex-wrap:wrap;gap:9px 20px;margin-top:23px;color:#c9c9eb;font-size:10px}
.games-home-proof span{display:flex;align-items:center;gap:5px}
.games-home-proof strong{color:#a2f0d6;font-size:13px}
.games-home-art{position:relative;justify-self:center;width:min(100%,380px);height:230px;perspective:700px}
.games-art-orbit{position:absolute;inset:26px 12px 15px;border:1px dashed #ffffff62;border-radius:50%;transform:rotate(-20deg)}
.games-art-spark{position:absolute;z-index:3;color:#ffdf92;font-size:27px;text-shadow:0 0 18px #fff1ad}
.games-art-spark-one{top:8px;right:25px}
.games-art-spark-two{bottom:17px;left:6px;color:#96efe2;font-size:20px}
.games-art-block{position:absolute;width:116px;height:116px;border:1px solid #c9fff757;border-radius:19px;transform:rotate(32deg) skew(-8deg,-8deg);box-shadow:10px 14px 0 #1c265655,0 18px 35px #11133544}
.games-art-block-back{top:38px;left:126px;background:linear-gradient(145deg,#ffd982 0 35%,#d68a60 35% 67%,#875083 67%)}
.games-art-block-mid{top:78px;left:200px;background:linear-gradient(145deg,#77e5c7 0 35%,#4cae9c 35% 67%,#3c5988 67%);transform:rotate(32deg) skew(-8deg,-8deg) scale(.83)}
.games-art-block-front{top:100px;left:93px;background:linear-gradient(145deg,#a898ff 0 35%,#745fc0 35% 67%,#39457e 67%);transform:rotate(32deg) skew(-8deg,-8deg) scale(.7)}
.games-art-avatar{position:absolute;z-index:2;top:67px;left:164px;width:52px;height:82px;transform:rotate(-9deg);filter:drop-shadow(4px 7px 0 #1e204a88)}
.games-art-avatar i{position:absolute;top:0;left:13px;width:30px;height:27px;border-radius:10px 10px 7px 7px;background:#ffd5a8;box-shadow:0 -7px 0 -2px #2e315d}
.games-art-avatar b{position:absolute;top:25px;left:8px;width:40px;height:33px;border-radius:10px;background:#48cbb4}
.games-art-avatar span{position:absolute;top:54px;left:12px;width:13px;height:28px;border-radius:4px;background:#344568;box-shadow:20px 0 #344568}
.game-type-grid{margin-bottom:40px}
.library-type{background:#e2f2ed}
.library-type .type-icon{color:#2b8474}
.library-type strong{color:#236c5d}
.game-type:focus-visible,.games-home-actions a:focus-visible,.arcade-game-card:focus-visible{outline:3px solid #ffdc88;outline-offset:3px}
.games-original-section{margin:28px 0 42px}
.games-original-section .game-feature-heading{margin-bottom:15px}
.game-feature-heading h2{color:#24274e}
.games-original-section .game-feature-heading p:not(.game-eyebrow){max-width:650px;line-height:1.55}
.arcade-game-shelf{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.arcade-game-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid #dfe3ef;border-radius:16px;background:#fff;color:#24284a;text-decoration:none;box-shadow:0 7px 22px #262a5210;transition:transform 160ms ease,border-color 160ms ease;}
.arcade-game-card:hover{transform:translateY(-4px);border-color:#a9a6e7;box-shadow:0 14px 30px #282c5c1c}
.arcade-card-art{position:relative;display:grid;place-items:center;height:auto;min-height:135px;aspect-ratio:16/10;overflow:hidden;background:#252a50}
.arcade-card-art>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 240ms ease;}
.arcade-game-card:hover .arcade-card-art>img{transform:scale(1.045)}
.arcade-card-art-blockworld{background:linear-gradient(180deg,#86d7ed 0 60%,#bae6bd 60% 72%,#386f55 72% 100%)}
.arcade-card-art-obby{background:radial-gradient(circle at 70% 22%,#ffdca0 0 10%,transparent 11%),linear-gradient(145deg,#53459c,#292d66 66%,#1d6075)}
.arcade-card-badge{position:absolute;top:10px;right:10px;padding:5px 8px;border:1px solid #ffffff76;border-radius:999px;background:#18223ccd;color:#fff;font-size:8px;font-weight:850;letter-spacing:.1em}
.block-art-sun{position:absolute;top:17px;right:22px;color:#fff1a0;font-size:41px;text-shadow:0 0 17px #fff7b9}
.block-art-tree{position:absolute;left:25%;bottom:28px;z-index:1;color:#8b5940;font-size:70px;line-height:1;text-shadow:0 -14px 0 #358663,0 -26px 0 #3c9b6f}
.block-art-ground{position:absolute;bottom:15px;left:0;width:100%;color:#a9744d;text-align:center;font-size:26px;letter-spacing:8px;text-shadow:0 8px 0 #4b805c}
.obby-art-star{position:absolute;top:19px;left:21%;color:#ffe38c;font-size:32px;text-shadow:0 0 13px #ffd55f}
.obby-art-portal{position:absolute;top:20px;right:22%;display:grid;place-items:center;width:69px;height:89px;border:6px solid #8effe4;border-radius:50%;color:#d5fff7;font-size:29px;box-shadow:0 0 25px #7affeb99,inset 0 0 21px #79fbe78c}
.obby-art-platform{position:absolute;bottom:26px;left:16%;color:#82f0d2;font-size:43px;letter-spacing:-12px;text-shadow:0 7px 0 #484b90}
.arcade-card-copy{display:flex;flex:1;flex-direction:column;padding:15px}
.arcade-card-copy small{color:#6667a3;font-size:9px;font-weight:850;letter-spacing:.1em}
.arcade-card-copy h3{margin:7px 0 6px;color:#26294c;font-size:16px;font-weight:800;line-height:1.2;letter-spacing:-.03em}
.arcade-card-copy p{flex:1;min-height:51px;margin:0 0 14px;color:#6c7085;font-size:11px;line-height:1.5}
.arcade-card-copy strong{display:flex;align-items:center;justify-content:space-between;color:#4d4c9a;font-size:11px}
.arcade-card-copy strong span{font-size:17px}
.games-classroom-section{margin-top:42px}
.games-classroom-section .featured-heading{margin-top:0}
.games-classroom-section .featured-heading p{line-height:1.55}

/* Shared responsive canvas controls for the two new original experiences. */
.creative-game{max-width:1340px;margin:0 auto}
.creative-game>.arcade-back{margin-bottom:19px}
.creative-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:19px}
.app-shell:not(.os-home) #app .creative-heading h1{margin:0 0 7px;color:#22264a;font-size:clamp(29px,4.1vw,43px);font-weight:820;line-height:1.06;letter-spacing:-.055em}
.creative-heading>div:first-child>p:last-child{margin:0;color:#676d84;font-size:13px;line-height:1.55}
.creative-heading-actions{display:flex;flex:none;gap:8px}
.creative-primary,.creative-secondary{min-height:41px;padding:0 14px;border:1px solid #d9ddec;border-radius:10px;background:#fff;color:#39416c;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.creative-primary{border-color:#514da0;background:#514da0;color:#fff}
.creative-primary:hover{background:#403d85}
.creative-secondary:hover{background:#f3f3fb}
.creative-primary:disabled,.creative-secondary:disabled{opacity:.5;cursor:not-allowed}
.creative-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;align-items:start;gap:17px}
.creative-main{min-width:0;overflow:hidden;border:1px solid #28365a;border-radius:18px;background:#202744;box-shadow:0 11px 30px #20244920}
.creative-hud{display:flex;align-items:center;gap:clamp(13px,2.5vw,27px);min-height:65px;padding:12px 17px;color:#fff}
.creative-hud>div{display:flex;flex:none;flex-direction:column;gap:4px}
.creative-hud>div>span{color:#b4c2e0;font-size:8px;font-weight:850;letter-spacing:.12em}
.creative-hud>div>strong{color:#fff;font-size:16px;font-variant-numeric:tabular-nums}
.creative-hud>p{min-width:0;margin:0 0 0 auto;color:#d9e5f3;font-size:10px;line-height:1.45;text-align:right}
.creative-screen{position:relative;overflow:hidden;aspect-ratio:16/9;background:#435a7a;line-height:0}
.creative-screen canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px}
.creative-screen canvas:focus-visible{outline:3px solid #ffe28e}
.creative-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:#11152bcc;color:#fff;text-align:center;line-height:1.45}
.creative-overlay[hidden]{display:none}
.creative-overlay>div{max-width:430px}
.creative-overlay-kicker{color:#a9f1dc;font-size:9px;font-weight:850;letter-spacing:.15em}
.creative-overlay h2{margin:7px 0 8px;color:#fff;font-size:clamp(22px,4vw,34px);font-weight:820;letter-spacing:-.04em}
.creative-overlay p{margin:0 auto 16px;color:#e0e6f6;font-size:12px;line-height:1.6}
.creative-guide{padding:21px;border:1px solid #e0e4f0;border-radius:16px;background:#fff;color:#343a60;box-shadow:0 8px 22px #22244d0d}
.creative-guide h2{margin:0 0 14px;color:#282b54;font-size:19px;line-height:1.25;letter-spacing:-.035em}
.creative-guide ol{display:grid;gap:13px;margin:0;padding:0;list-style:none;counter-reset:guide-step}
.creative-guide li{display:grid;gap:3px;counter-increment:guide-step}
.creative-guide li::before{content:"0" counter(guide-step);grid-row:1 / 3;grid-column:1;width:22px;height:22px;margin-right:8px;border-radius:7px;background:#efefff;color:#5a54a7;text-align:center;font-size:9px;font-weight:850;line-height:22px}
.creative-guide li strong,.creative-guide li span{grid-column:2}
.creative-guide li strong{color:#34385f;font-size:11px}
.creative-guide li span{color:#70758a;font-size:10px;line-height:1.55}
.creative-guide-note{margin-top:19px;padding:13px;border-radius:11px;background:#eff8f4}
.creative-guide-note strong{color:#327864;font-size:10px}
.creative-guide-note p{margin:5px 0 0;color:#64766e;font-size:10px;line-height:1.6}
.creative-touch-controls{display:flex;justify-content:center;gap:8px;padding:10px 12px 5px}
.creative-touch-controls button{min-width:66px;min-height:43px;padding:0 14px;border:1px solid #68759a;border-radius:10px;background:#343d63;color:#fff;font-size:15px;font-weight:850;touch-action:none;user-select:none}
.creative-touch-controls button:nth-child(2){min-width:96px;background:#5952a4}
.creative-touch-controls button:active{background:#6673a5}
.creative-hint{margin:6px 14px 14px;color:#c4d1e5;font-size:9px;line-height:1.55;text-align:center}
.builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-top:1px solid #ffffff16;background:#1c243f}
.builder-tools{display:flex;flex:none;gap:5px}
.builder-tools button{min-height:37px;padding:0 10px;border:1px solid #5c6688;border-radius:9px;background:#29324f;color:#dfe6fa;font-size:10px;font-weight:800;cursor:pointer}
.builder-tools button[aria-pressed="true"]{border-color:#8cead0;background:#3a735f;color:#fff}
.builder-hotbar{display:grid;grid-template-columns:repeat(6,minmax(55px,1fr));gap:5px}
.builder-material{display:grid;grid-template-columns:17px 1fr auto;align-items:center;gap:5px;min-width:0;min-height:38px;padding:4px 6px;border:1px solid #45506f;border-radius:8px;background:#252e4b;color:#ecf1ff;font-size:8px;font-weight:700;text-align:left;cursor:pointer}
.builder-material[aria-pressed="true"]{border-color:#ffe296;box-shadow:0 0 0 1px #ffe29655}
.builder-material[data-empty]{opacity:.56}
.builder-material strong{color:#c9d8ed;font-size:9px;font-variant-numeric:tabular-nums}
.builder-swatch{display:block;width:15px;height:15px;border:1px solid #ffffff70;border-radius:4px;background:#70c77d}
.block-swatch-dirt{background:#a97850}.block-swatch-stone{background:#85919b}.block-swatch-crystal{background:#7ff0dc}.block-swatch-wood{background:#a76b43}.block-swatch-leaf{background:#48a66d}
.obby-hud{gap:clamp(11px,2vw,22px)}
.obby-hud>p{max-width:260px}
.creative-game :is(button,a):focus-visible{outline:3px solid #ffe28e;outline-offset:2px}
.embedded-game-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.embedded-game-actions button{font-family:inherit}
.embedded-game-status{min-height:1.4em;margin:7px 0 10px;color:#626984;font-size:11px;line-height:1.5}
#embeddedGameStatus:empty{display:none}
@media(max-width:1050px){.arcade-game-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}.arcade-card-art{min-height:150px}}
@media(max-width:900px){.creative-layout{grid-template-columns:minmax(0,1fr)}.creative-guide{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:23px}.creative-guide>.game-eyebrow,.creative-guide h2{grid-column:1/-1}.creative-guide ol{grid-column:1;grid-row:3}.creative-guide-note{grid-column:2;grid-row:3;margin-top:0}}
@media(max-width:760px){.games-home-hero{grid-template-columns:minmax(0,1fr) 220px;min-height:275px;padding:28px}.games-home-art{width:230px;height:190px;transform:scale(.85);transform-origin:center}.games-art-block-back{left:61px}.games-art-block-mid{left:132px}.games-art-block-front{left:38px}.games-art-avatar{left:102px}.game-type-grid{gap:11px}.game-type{gap:13px;padding:19px}.type-icon{width:44px;height:44px;border-radius:13px;font-size:24px}.game-type h2{font-size:19px}.arcade-game-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}.arcade-card-art{min-height:135px}.creative-heading{align-items:flex-start}.creative-heading-actions{gap:6px}.creative-heading-actions button{min-height:38px;padding:0 10px}.builder-toolbar{align-items:stretch;flex-direction:column}.builder-tools button{flex:1}.builder-hotbar{grid-template-columns:repeat(6,minmax(0,1fr))}.builder-material{grid-template-columns:15px 1fr;gap:3px}.builder-material strong{grid-column:2}.creative-hud{flex-wrap:wrap}.creative-hud>p{flex:1 0 100%;margin:0;text-align:left}.creative-guide{padding:17px}}
@media(max-width:560px){.games-home-hero{grid-template-columns:minmax(0,1fr);min-height:0;padding:26px 23px}.games-home-art{position:absolute;right:-78px;bottom:-64px;width:230px;height:190px;opacity:.24;transform:scale(.9)}.games-home-copy{max-width:100%}.games-home-copy>p:not(.game-eyebrow){max-width:92%}.games-home-proof{gap:7px 13px}.games-home-proof span{font-size:9px}.game-type-grid{grid-template-columns:minmax(0,1fr);margin-bottom:30px}.game-type{padding:17px}.game-type p{margin-bottom:10px}.arcade-game-shelf{gap:10px}.arcade-card-copy{padding:12px}.arcade-card-copy h3{font-size:14px}.arcade-card-copy p{min-height:58px;font-size:10px}.arcade-card-art{min-height:112px}.creative-heading{flex-direction:column;align-items:stretch}.creative-heading-actions{align-self:flex-start}.creative-layout{gap:12px}.creative-main{border-radius:13px}.creative-hud{min-height:56px;padding:9px 10px;gap:10px}.creative-hud>div>strong{font-size:13px}.creative-hud>p{font-size:9px}.creative-overlay{padding:10px}.creative-overlay p{font-size:10px;margin-bottom:10px}.creative-overlay h2{font-size:22px}.creative-primary,.creative-secondary{min-height:37px;padding:0 10px;font-size:10px}.creative-touch-controls{gap:6px}.creative-touch-controls button{min-width:57px;min-height:41px;padding:0 10px}.creative-touch-controls button:nth-child(2){min-width:84px}.creative-hint{margin:5px 10px 12px;font-size:8px}.builder-hotbar{grid-template-columns:repeat(3,minmax(0,1fr))}.builder-material{grid-template-columns:16px 1fr auto;min-height:35px;font-size:8px}.builder-material strong{grid-column:auto}.creative-guide{display:block}.creative-guide ol{margin-top:10px}.creative-guide-note{margin-top:15px}.embedded-play-heading{align-items:flex-start;flex-direction:column}.embedded-game-actions{align-self:flex-start}}
@media(max-width:390px){.games-home-copy>p:not(.game-eyebrow){max-width:100%}.games-home-actions a{flex:1}.games-home-proof{font-size:8px}.arcade-card-art{min-height:95px}.arcade-card-copy p{min-height:67px}.creative-hud{gap:8px}.creative-hud>div>span{font-size:7px}.creative-hud>div>strong{font-size:12px}.builder-hotbar{gap:4px}.builder-material{padding:4px}.creative-touch-controls button{min-width:50px;font-size:13px}.creative-touch-controls button:nth-child(2){min-width:77px}}
@media(prefers-reduced-motion:reduce){.arcade-game-card,.arcade-card-art>img,.games-home-actions a{transition:none;}.arcade-game-card:hover,.games-home-actions a:hover{transform:none;}}

/* VoxelCraft embed and the independent 3D parkour course. */
.creative-3d-screen{background:linear-gradient(180deg,#80c3df,#b6d9dd 55%,#20364c);}
.creative-3d-screen canvas{cursor:grab;}
.creative-3d-screen canvas:active{cursor:grabbing;}
.creative-crosshair{position:absolute;top:50%;left:50%;color:#fff;font:700 17px/1 monospace;text-shadow:0 1px 5px #18233c,0 0 12px #fff;pointer-events:none;transform:translate(-50%,-50%);opacity:.82;}
.obby-3d-touch{display:grid;grid-template-columns:repeat(5,minmax(45px,1fr));max-width:390px;margin:0 auto;}
.obby-3d-touch button:nth-child(2){min-width:0;background:#343d63;}
.obby-3d-touch button:nth-child(5){background:#5952a4;}
@media(max-width:560px){.obby-3d-touch{grid-template-columns:repeat(3,minmax(52px,1fr));max-width:250px;}.obby-3d-touch button:nth-child(4){grid-column:1;}.obby-3d-touch button:nth-child(5){grid-column:2;}}

/* Local humanizer: quiet colours and familiar Everything Hub controls. */
#app .text-editor-app { color:#2b3d46; }
#app .text-editor-notice { display:flex; align-items:flex-start; gap:12px; margin:0 0 22px; padding:13px 15px; border:1px solid #d8dfd8; border-left:3px solid #668a9a; background:#f1f3ee; color:#536568; font-size:12px; line-height:1.55; }
#app .text-editor-notice strong { flex:none; color:#36566a; font-size:12px; }
#app .text-editor-toolbar { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:16px; margin:0 0 20px; }
#app .text-editor-toolbar>label { display:grid; gap:7px; color:#52666d; font-size:12px; font-weight:700; }
#app .text-editor-app select { min-width:230px; min-height:42px; padding:9px 32px 9px 11px; border:1px solid #cbd4d0; border-radius:4px; background:#fffefa; color:#293f48; font:inherit; }
#app .text-editor-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
#app .text-editor-actions button { min-height:39px; padding:9px 13px; border:1px solid #cbd4d0; border-radius:4px; background:#fffefa; color:#36566a; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
#app .text-editor-actions button:hover { background:#edf1ee; border-color:#9aafb0; }
#app .text-editor-actions .btn.dark { border-color:#34566c; background:#34566c; color:#fff; }
#app .text-editor-actions .btn.dark:hover { background:#294a5e; }
#app .text-editor-workspace { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#app .text-editor-column { min-width:0; }
#app .text-editor-column-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 8px; }
#app .text-editor-column-head label { margin:0; color:#344b56; font-size:13px; font-weight:750; }
#app .text-editor-column-head span { color:#71817f; font-size:11px; }
#app .text-editor-column textarea { display:block; width:100%; min-height:280px; resize:vertical; padding:14px; border:1px solid #cbd4d0; border-radius:4px; background:#fffefa; color:#293941; font:14px/1.65 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
#app .text-editor-column textarea::placeholder { color:#87938e; }
#app .text-editor-column textarea:focus,#app .text-editor-app select:focus { outline:3px solid #a9c0c4; outline-offset:2px; border-color:#668a9a; }
#app .text-editor-result-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px 22px; margin-top:16px; padding-top:15px; border-top:1px solid #dfe3dc; }
#app .text-editor-status { flex:1 1 280px; margin:0; color:#687875; font-size:12px; line-height:1.55; }
#app .text-editor-app :is(button,select,textarea):focus-visible { outline:3px solid #9db7c5; outline-offset:2px; }
@media(max-width:760px) {
 #app .text-editor-workspace { grid-template-columns:1fr; }
 #app .text-editor-column textarea { min-height:220px; }
 #app .text-editor-notice { display:grid; gap:4px; }
}
@media(max-width:480px) {
 #app .text-editor-toolbar { align-items:stretch; }
 #app .text-editor-toolbar>label,#app .text-editor-app select { width:100%; }
 #app .text-editor-actions { width:100%; }
 #app .text-editor-actions button { flex:1 1 auto; }
 #app .text-editor-result-row .text-editor-actions { width:100%; }
}

/* Subtle Launch Orbit credit at the foot of the intro copy. */
.launch-orbit-badge {
  display:block;
  width:120px;
  height:32px;
  margin:16px 0 0 auto;
  opacity:.72;
  line-height:0;
  transition:opacity .16s ease;
}
.launch-orbit-badge img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.launch-orbit-badge:hover,
.launch-orbit-badge:focus-visible { opacity:1; }
.launch-orbit-badge:focus-visible { outline:2px solid #bcd6ff; outline-offset:4px; border-radius:4px; }
@media(prefers-reduced-motion:reduce) { .launch-orbit-badge { transition:none; } }
@media(max-width:480px) { .launch-orbit-badge { width:105px; height:28px; margin-top:12px; } }

/* Search-friendly overview below the sign-in landing content. */
.landing-details {
  margin: 30px 0 0;
  padding: clamp(28px, 5vw, 58px);
  color: #252a48;
  background: #f5f6fb;
  border: 1px solid #ffffff38;
  border-radius: 24px;
}
.landing-details-inner { width: min(100%, 1120px); margin: 0 auto; }
.landing-details-kicker { margin: 0 0 12px; color: #5d58bd; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.landing-details h2 { max-width: 760px; margin: 0 0 14px; color: #242744; font: 800 clamp(25px, 3.5vw, 37px)/1.18 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.045em; }
.landing-details-intro { max-width: 850px; margin: 0 0 25px; color: #59617a; font-size: 14px; line-height: 1.75; }
.landing-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 24px 0 40px; }
.landing-details-grid article { padding: 22px; background: #fff; border: 1px solid #e2e4ef; border-radius: 15px; }
.landing-details-grid h3 { margin: 0 0 10px; color: #2f3154; font-size: 15px; line-height: 1.4; }
.landing-details-grid p,
.landing-details-guidance p { margin: 0; color: #59617a; font-size: 13px; line-height: 1.75; }
.landing-details-guidance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 20px; }
.landing-details-guidance p { padding: 18px; background: #eceefa; border-radius: 12px; }
@media (max-width: 760px) {
  .landing-details { margin-top: 20px; padding: 27px 22px; border-radius: 18px; }
  .landing-details-grid,
  .landing-details-guidance { grid-template-columns: 1fr; }
  .landing-details-grid { margin-bottom: 32px; }
}

/* Small local-first utilities added to the searchable launcher. */
.password-generator-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px 16px; margin:18px 0; padding:16px; border:1px solid #d9ded9; border-radius:8px; }
.password-generator-options legend { padding:0 6px; color:#334650; font-size:12px; font-weight:750; }
.mini-panel .password-generator-options label,
.mini-panel .password-generator-ambiguous { display:flex; align-items:flex-start; gap:8px; margin:0; color:#40544b; font-size:13px; line-height:1.5; }
.mini-panel .password-generator-options input[type="checkbox"],
.mini-panel .password-generator-ambiguous input[type="checkbox"] { flex:0 0 auto; width:16px; min-height:16px; margin:2px 0 0; }
.password-generator #generatedPassword { max-width:620px; font-family:ui-monospace,"Cascadia Code",monospace; font-size:16px; letter-spacing:.025em; }
.password-generator #copyGeneratedPassword { display:block; margin-top:10px; }
.image-resizer #imageFile { display:block; max-width:100%; }
.image-resizer-preview-frame { display:grid; justify-items:start; gap:12px; margin-top:20px; padding:14px; border:1px solid #d9ded9; border-radius:8px; background:#f7f8f4; }
.image-resizer-preview { display:block; max-width:100%; max-height:420px; object-fit:contain; }
.image-resizer-preview-frame .btn { min-height:42px; padding:10px 14px; }
@media(max-width:560px) { .password-generator-options { grid-template-columns:1fr; } }
