:root {
  color-scheme: light;
  --background: #f3f0e8;
  --surface: #fbfaf6;
  --surface-raised: #ffffff;
  --text: #171815;
  --muted: #666961;
  --soft: #858980;
  --border: rgba(23, 24, 21, 0.13);
  --border-strong: rgba(23, 24, 21, 0.22);
  --texture-line: rgba(23, 24, 21, 0.035);
  --accent: #dbaa00;
  --accent-ink: #211b06;
  --focus: #aa8200;
  --keyboard-case: #c9c7c0;
  --keyboard-case-edge: #96938b;
  --keyboard-plate: #353633;
  --keycap-top: #fbfaf5;
  --keycap-bottom: #cbc8bf;
  --keycap-edge: #aaa79f;
  --key-icon: #62665f;
  --key-well: #181916;
  --function-key-top: #e2e7eb;
  --function-key-bottom: #bac3ca;
  --function-key-edge: #87939d;
  --function-key-icon: #59646c;
  --home-key-top: #df5b51;
  --home-key-bottom: #b53530;
  --home-key-edge: #79231f;
  --display-screen: #18201b;
  --display-text: #eff8f1;
  --display-muted: #acb9af;
  --display-frame: #2e312d;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #10110f;
  --surface: #171815;
  --surface-raised: #1d1e1a;
  --text: #f2f2eb;
  --muted: #a7aaa0;
  --soft: #85897e;
  --border: rgba(242, 242, 235, 0.12);
  --border-strong: rgba(242, 242, 235, 0.22);
  --texture-line: rgba(242, 242, 235, 0.028);
  --accent: #f0be16;
  --accent-ink: #171407;
  --focus: #f0be16;
  --keyboard-case: #292b27;
  --keyboard-case-edge: #0b0c0a;
  --keyboard-plate: #11120f;
  --keycap-top: #3a3c37;
  --keycap-bottom: #242622;
  --keycap-edge: #171815;
  --key-icon: #afb3aa;
  --key-well: #050605;
  --function-key-top: #515a63;
  --function-key-bottom: #333a41;
  --function-key-edge: #1d2328;
  --function-key-icon: #c1c7ca;
  --home-key-top: #e36a60;
  --home-key-bottom: #ad3933;
  --home-key-edge: #681f1c;
  --display-screen: #080c09;
  --display-text: #ecf6ee;
  --display-muted: #9caaa0;
  --display-frame: #090b09;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 20rem;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(var(--texture-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--texture-line) 1px, transparent 1px),
    radial-gradient(circle at 9% -12%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 26rem),
    var(--background);
  background-size: 24px 24px, 24px 24px, auto, auto;
  background-position: -1px -1px, -1px -1px, 0 0, 0 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 750;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Proportionally scaled mechanical device homepage */

.keyboard-page {
  width: 100%;
  height: 100dvh;
  min-height: 20rem;
  overflow: hidden;
  overscroll-behavior: none;
}

.keyboard-main {
  position: fixed;
  inset: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.keyboard-stack {
  --space-1: 14px;
  --space-2: 28px;
  --keyboard-scale-height: 1;
  --keyboard-scale-width: 1;
  width: 364px;
  height: 760px;
  flex: 0 0 auto;
  transform: scale(min(var(--keyboard-scale-height), var(--keyboard-scale-width)));
  transition: transform 260ms ease;
}

.keyboard {
  position: relative;
  width: 364px;
  height: 760px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--keyboard-case) 62%, white);
  border-radius: 34px;
  background:
    repeating-linear-gradient(0deg, #ffffff07 0 1px, #00000006 1px 2px, transparent 2px 3px),
    linear-gradient(145deg, color-mix(in srgb, var(--keyboard-case) 88%, white), var(--keyboard-case) 42%, color-mix(in srgb, var(--keyboard-case) 82%, black));
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.32),
    inset 0 -7px 10px rgba(0, 0, 0, 0.23),
    0 15px 0 var(--keyboard-case-edge),
    0 24px 32px rgba(0, 0, 0, 0.26),
    0 48px 76px rgba(0, 0, 0, 0.18);
  isolation: isolate;
  transition: filter 320ms ease, opacity 320ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.keyboard::after {
  position: absolute;
  inset: 7px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 27px;
  content: "";
  pointer-events: none;
}

.keyboard-plate {
  position: absolute;
  top: 326px;
  left: var(--space-2);
  width: 308px;
  height: 406px;
  padding: var(--space-1);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--keyboard-plate) 82%, white);
  border-radius: 25px;
  background:
    radial-gradient(circle at 30% 14%, rgba(255, 255, 255, 0.08), transparent 44%),
    var(--keyboard-plate);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.48),
    0 1px 0 rgba(255, 255, 255, 0.16);
}

.key-row {
  display: flex;
  width: max-content;
  gap: var(--space-1);
}

.key-row + .key-row {
  margin-top: var(--space-1);
}

.keyboard-key {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  padding: 0;
  border: 0;
  border-radius: 19px;
  color: var(--key-icon);
  background: none;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.keyboard-key::before {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  background: var(--key-well);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.06);
  content: "";
}

.keycap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--keycap-top) 74%, var(--keycap-edge));
  border-radius: 17px;
  color: inherit;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(145deg, var(--keycap-top), var(--keycap-bottom));
  box-shadow:
    inset 2px 2px 2px rgba(255, 255, 255, 0.18),
    inset -4px -5px 7px rgba(0, 0, 0, 0.15),
    0 7px 0 var(--keycap-edge),
    0 11px 8px rgba(0, 0, 0, 0.34);
  transform: translateY(-5px);
  transition:
    filter 120ms ease,
    box-shadow 95ms ease,
    transform 95ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.key-symbol {
  --key-symbol: none;
  display: block;
  width: 34px;
  height: 34px;
  background: currentColor;
  -webkit-mask: var(--key-symbol) center / contain no-repeat;
  mask: var(--key-symbol) center / contain no-repeat;
}

.keyboard-key > .keycap > .key-symbol {
  opacity: 0.76;
}

.icon-spacebar {
  --key-symbol: url("assets/icons/remixicon/spacebar.svg");
}

.icon-words {
  --key-symbol: url("assets/icons/remixicon/words.svg");
}

.icon-brew {
  --key-symbol: url("assets/icons/remixicon/brew.svg");
}

.icon-murmel {
  --key-symbol: url("assets/icons/remixicon/murmel.svg");
}

.icon-naext {
  --key-symbol: url("assets/icons/remixicon/naext.svg");
}

.icon-hexplore {
  --key-symbol: url("assets/icons/remixicon/hexplore.svg");
}

.icon-defrag {
  --key-symbol: url("assets/icons/remixicon/defrag.svg?v=20260913-opus-1");
}

.icon-riftworker {
  --key-symbol: url("assets/icons/remixicon/riftworker.svg");
}

.icon-riftclicker {
  --key-symbol: url("assets/icons/remixicon/riftclicker.svg");
}

.icon-moon {
  --key-symbol: url("assets/icons/remixicon/moon.svg");
}

.icon-sun {
  --key-symbol: url("assets/icons/remixicon/sun.svg");
}

.icon-support {
  --key-symbol: url("assets/icons/remixicon/support.svg");
}

.keyboard-key:hover .keycap {
  filter: brightness(1.045);
}

.keyboard-key:is(:active, .is-pressed) .keycap {
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.14),
    inset -2px -2px 4px rgba(255, 255, 255, 0.1),
    0 1px 0 var(--keycap-edge),
    0 3px 3px rgba(0, 0, 0, 0.26);
  transform: translateY(2px);
}

.keyboard-key:focus-visible {
  outline: none;
}

.keyboard-key:focus-visible .keycap {
  outline: 3px solid color-mix(in srgb, var(--focus) 78%, transparent);
  outline-offset: 4px;
}

.keyboard-key.is-unavailable {
  color: color-mix(in srgb, var(--key-icon) 40%, transparent);
  cursor: not-allowed;
}

.keyboard-key.is-unavailable .keycap {
  filter: saturate(0.35) brightness(0.82);
}

.keyboard-key.is-empty {
  cursor: default;
  pointer-events: none;
}

.keyboard-key.is-empty .keycap {
  filter: saturate(0.42) brightness(0.9);
}

.key-utility {
  pointer-events: none;
}

.key-utility::before {
  inset: 8px;
  z-index: 0;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--keyboard-case) 88%, white), var(--keyboard-case) 58%, color-mix(in srgb, var(--keyboard-case) 88%, black));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14), inset 0 -1px 2px rgba(0, 0, 0, 0.12);
}

.key-utility::after {
  position: absolute;
  inset: 14px;
  z-index: 1;
  border-radius: 13px;
  background: var(--key-well);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.82), 0 1px 0 rgba(255, 255, 255, 0.06);
  content: "";
}

.key-utility .keycap {
  inset: 18px;
  z-index: 2;
  border-radius: 11px;
  pointer-events: auto;
  transform: translateY(-3px);
}

.key-utility .key-symbol {
  width: 19px;
  height: 19px;
}

.key-home .keycap {
  border-color: color-mix(in srgb, var(--home-key-top) 74%, var(--home-key-edge));
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(145deg, var(--home-key-top), var(--home-key-bottom));
  box-shadow:
    inset 2px 2px 2px rgba(255, 255, 255, 0.18),
    inset -3px -4px 6px rgba(66, 9, 7, 0.2),
    0 4px 0 var(--home-key-edge),
    0 7px 6px rgba(0, 0, 0, 0.3);
}

.key-home:is(:active, .is-pressed) .keycap {
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.17),
    inset -2px -2px 4px rgba(255, 255, 255, 0.08),
    0 1px 0 var(--home-key-edge),
    0 3px 3px rgba(0, 0, 0, 0.24);
  transform: translateY(2px);
}

.key-theme {
  color: var(--function-key-icon);
}

.key-theme .keycap {
  border-color: color-mix(in srgb, var(--function-key-top) 72%, var(--function-key-edge));
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, var(--function-key-top), var(--function-key-bottom));
  box-shadow:
    inset 2px 2px 2px rgba(255, 255, 255, 0.16),
    inset -3px -4px 6px rgba(0, 0, 0, 0.16),
    0 4px 0 var(--function-key-edge),
    0 7px 6px rgba(0, 0, 0, 0.3);
}

.key-theme:is(:active, .is-pressed) .keycap {
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.17),
    inset -2px -2px 4px rgba(255, 255, 255, 0.08),
    0 1px 0 var(--function-key-edge),
    0 3px 3px rgba(0, 0, 0, 0.26);
}

.key-support {
  color: var(--accent-ink);
}

.key-support .keycap {
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 84%, white), var(--accent));
  box-shadow:
    inset 2px 2px 2px rgba(255, 255, 255, 0.24),
    inset -3px -4px 6px rgba(69, 49, 0, 0.16),
    0 4px 0 color-mix(in srgb, var(--accent) 68%, black),
    0 7px 6px rgba(0, 0, 0, 0.3);
}

.key-support:is(:active, .is-pressed) .keycap {
  box-shadow:
    inset 2px 2px 5px rgba(75, 52, 0, 0.2),
    0 1px 0 color-mix(in srgb, var(--accent) 68%, black),
    0 3px 3px rgba(0, 0, 0, 0.24);
}

.keyboard-key .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .keyboard-key .theme-icon-sun {
  display: block;
}

:root[data-theme="dark"] .keyboard-key .theme-icon-moon {
  display: none;
}

.keyboard-display {
  position: absolute;
  top: 48px;
  left: var(--space-2);
  width: 308px;
  height: 236px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--display-frame) 78%, white);
  border-radius: 21px;
  color: var(--display-text);
  background:
    radial-gradient(ellipse at 42% 34%, rgba(187, 255, 202, 0.09), transparent 72%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.025), transparent 32%),
    var(--display-screen);
  box-shadow:
    inset 0 0 0 6px var(--display-frame),
    inset 0 9px 18px rgba(0, 0, 0, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 7px rgba(190, 255, 205, 0.2);
  pointer-events: auto;
}

.keyboard-display::before {
  position: absolute;
  inset: 7px;
  z-index: 3;
  border-radius: 13px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(225, 255, 232, 0.038) 3px 4px),
    repeating-linear-gradient(to right, rgba(255, 80, 80, 0.012) 0 1px, rgba(90, 255, 130, 0.01) 1px 2px, rgba(90, 140, 255, 0.012) 2px 3px);
  content: "";
  pointer-events: none;
}

.keyboard-display::after {
  position: absolute;
  inset: 8px;
  z-index: 4;
  border-radius: 12px;
  background: rgba(204, 255, 216, 0.035);
  content: "";
  opacity: 0.2;
  pointer-events: none;
  animation: crt-flicker 7s steps(1, end) infinite;
}

@keyframes crt-flicker {
  0%, 17%, 19%, 47%, 49%, 78%, 80%, 100% {
    opacity: 0.2;
  }

  18%, 48%, 79% {
    opacity: 0.34;
  }

  18.5%, 48.5% {
    opacity: 0.12;
  }
}

.display-home,
.app-card {
  position: absolute;
  inset: 7px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 13px;
  color: var(--display-text);
  transition:
    opacity 240ms ease,
    filter 420ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.display-home {
  justify-content: center;
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transform: scale(1);
}

.display-wordmark {
  margin-bottom: 7px;
  color: var(--display-muted);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.display-home h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.display-home p {
  margin: 10px 0 0;
  color: var(--display-muted);
  font-size: 0.875rem;
  line-height: 1.2;
}

.app-card {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transform: scale(0.965);
}

.keyboard-display.is-visible .display-home {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transform: scale(0.97);
}

.keyboard-display.is-visible .app-card {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transform: scale(1);
}

.keyboard-display.is-visible .app-card.is-switching {
  filter: blur(7px);
  opacity: 0.2;
  transform: scale(0.975);
}

.app-card-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-card-heading {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.app-card-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(239, 248, 241, 0.15);
  border-radius: 8px;
  color: var(--display-text);
  background: rgba(239, 248, 241, 0.08);
}

.app-card-icon .key-symbol {
  width: 20px;
  height: 20px;
}

.app-card h2 {
  overflow: hidden;
  margin: 0;
  padding-right: 2px;
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card p {
  display: -webkit-box;
  margin: 7px 0;
  overflow: hidden;
  color: var(--display-muted);
  font-size: 0.875rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.app-card-action {
  display: inline-flex;
  min-height: 34px;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 6px 11px;
  border: 1px solid rgba(220, 255, 228, 0.28);
  border-radius: 8px;
  color: var(--display-text);
  background: rgba(220, 255, 228, 0.075);
  box-shadow: inset 0 0 0 1px rgba(220, 255, 228, 0.025), 0 0 12px rgba(150, 255, 176, 0.025);
  font-size: 0.875rem;
  font-weight: 790;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.app-card-action:hover {
  border-color: rgba(220, 255, 228, 0.42);
  background: rgba(220, 255, 228, 0.12);
  box-shadow: inset 0 0 0 1px rgba(220, 255, 228, 0.04), 0 0 14px rgba(150, 255, 176, 0.05);
  transform: translateY(-1px);
}

.app-card-action.is-disabled {
  color: var(--display-muted);
  border-color: rgba(239, 248, 241, 0.12);
  background: rgba(239, 248, 241, 0.08);
  pointer-events: none;
}

.app-card-action:focus-visible {
  outline: 2px solid rgba(220, 255, 228, 0.6);
  outline-offset: 3px;
}

.site-legal-bar {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #989d95;
  background: #090a09;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.site-legal-bar nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-legal-bar a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-legal-bar a:hover {
  color: #f0f3ed;
}

.site-legal-bar a:focus-visible {
  border-radius: 2px;
  outline: 2px solid color-mix(in srgb, var(--accent) 78%, transparent);
  outline-offset: 3px;
  color: #f0f3ed;
}

/* Shared legal and error pages */

.content-shell,
.message-shell {
  position: relative;
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
}

.theme-toggle {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.floating-theme-toggle {
  position: absolute;
  z-index: 30;
  top: clamp(1rem, 2.5vh, 1.5rem);
  right: 0;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-raised);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

.theme-toggle:focus-visible,
.text-link:focus-visible,
.back-link:focus-visible,
.content-main a:focus-visible,
.message-main a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, transparent);
  outline-offset: 3px;
}

.content-main {
  margin-top: clamp(2rem, 7vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 25px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 42%, transparent), transparent 18rem),
    var(--surface);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 34%, transparent),
    0 10px 0 color-mix(in srgb, var(--keyboard-case-edge) 58%, transparent),
    0 24px 56px rgba(0, 0, 0, 0.14);
}

.content-status {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #8f968e;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(225, 255, 232, 0.024) 3px 4px),
    #090a09;
  font-size: 0.65rem;
  font-weight: 730;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.content-wordmark {
  color: #d5dbd3;
  font-size: 0.72rem;
  font-weight: 840;
  text-decoration: none;
}

.content-main .content-wordmark:hover {
  color: #ffffff;
}

.content-body {
  padding: clamp(1.65rem, 5vw, 3rem);
}

.content-main h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.message-main h1 {
  margin: 0;
  font-size: clamp(2.7rem, 9vw, 4.5rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.content-date,
.message-copy {
  margin: 0.85rem 0 2.75rem;
  color: var(--muted);
}

.content-main h2 {
  margin: 2.5rem 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.content-main p,
.content-main ul {
  margin: 0 0 1rem;
}

.content-main ul {
  padding-left: 1.25rem;
}

.content-main li {
  margin-bottom: 0.35rem;
}

.content-main a,
.message-main a,
.text-link {
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.2em;
}

.content-main a:hover,
.message-main a:hover,
.text-link:hover {
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  font-weight: 720;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.75rem 0 3rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.message-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: 1fr auto;
}

.message-main {
  align-self: center;
  padding: 3rem 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-height: 43.75rem) {
  .keyboard-stack {
    --keyboard-scale-height: 0.9;
  }
}

@media (max-height: 38.75rem) {
  .keyboard-stack {
    --keyboard-scale-height: 0.78;
  }
}

@media (max-height: 32.5rem) {
  .keyboard-stack {
    --keyboard-scale-height: 0.64;
  }
}

@media (max-height: 26.25rem) {
  .keyboard-stack {
    --keyboard-scale-height: 0.52;
  }
}

@media (max-width: 22.5rem) {
  .keyboard-stack {
    --keyboard-scale-width: 0.9;
  }
}

@media (max-width: 20rem) {
  .keyboard-stack {
    --keyboard-scale-width: 0.8;
  }
}

@media (max-width: 38rem) {
  .keyboard-page {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  .keyboard-main {
    position: relative;
    inset: auto;
    min-height: 100dvh;
  }

  .site-legal-bar {
    position: relative;
    min-height: 48px;
    flex-wrap: wrap;
    padding: 13px 16px;
    line-height: 1.25;
  }

  .content-shell,
  .message-shell {
    width: min(100% - 1.5rem, 46rem);
  }

  .content-main {
    margin-top: 1.25rem;
    border-radius: 20px;
  }

  .content-body {
    padding: 1.5rem;
  }

  .theme-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* DY-01: brushed case, raised chrome badge and locally hosted CRT type. */
@font-face {
  font-family: Silkscreen;
  src: url("assets/fonts/silkscreen/Silkscreen-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.keyboard-display { font-family: Silkscreen, ui-monospace, monospace; font-synthesis: none; -webkit-font-smoothing: auto; }
.display-home h1 { font-size: 22px; font-weight: 400; line-height: 1.3; letter-spacing: -.04em; }
.display-wordmark { font-size: 10px; font-weight: 400; letter-spacing: .06em; }
.display-home p { font-size: 11px; line-height: 1.6; }
.device-audio-rail { position: absolute; top: 286px; left: 35px; right: 34px; height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.speaker-grille { width: 154px; height: 18px; border-radius: 9px; background: radial-gradient(circle, #131712b3 0 .8px, #ffffff50 1px 1.25px, transparent 1.5px) 0 0 / 5px 5px; opacity: .66; }
:root[data-theme="dark"] .speaker-grille { opacity: .85; }
.device-rail { position: absolute; top: 10px; left: 34px; height: 30px; display: flex; align-items: center; }
.device-name { display: flex; align-items: center; }
.device-name strong {
  font-size: 19px; line-height: 1.1; letter-spacing: -.06em; font-weight: 850;
  color: #d6d9d9;
  background: linear-gradient(180deg, #f8ffff 0%, #c3cbcd 28%, #656d70 46%, #f6ffff 51%, #d8e0e1 62%, #727d80 90%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .3px #636b6d;
  filter: drop-shadow(0 -1px 0 #ffffffad) drop-shadow(0 1px 0 #3e4446b3) drop-shadow(0 2px 1px #00000038);
}
.sound-toggle { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px 0 7px; border: 0; background: none; color: var(--text); cursor: pointer; touch-action: manipulation; }
.sound-label { font: 7px/1 ui-monospace, monospace; letter-spacing: .08em; }
.sound-track { width: 31px; height: 15px; padding: 2px; border-radius: 4px; background: #242722; box-shadow: inset 0 2px 3px #000b,0 1px 0 #fff5; }
.sound-track > span { display: block; width: 14px; height: 11px; border-radius: 2px; background: repeating-linear-gradient(90deg,transparent 0 3px,#0002 3px 4px),linear-gradient(#d9d9cd,#93968c); box-shadow: 0 1px 2px #0009; transition: transform 130ms ease; }
.sound-toggle[aria-checked="true"] .sound-track { background: #78933f; }
.sound-toggle[aria-checked="true"] .sound-track > span { transform: translateX(13px); }
.sound-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 4px; }
.app-card { display: grid; grid-template-columns: minmax(0,1fr) 94px; gap: 7px; }
.app-card-copy { display: flex; flex-direction: column; min-width: 0; }
.app-card-heading { grid-template-columns: 24px minmax(0,1fr); gap: 7px; }
.app-card-icon { width: 24px; height: 26px; border-radius: 4px; }
.app-card-icon .key-symbol { width: 17px; height: 17px; }
.app-card h2 { font-size: 12px; font-weight: 400; letter-spacing: -.05em; overflow: visible; white-space: normal; line-height: 1.25; }
.app-card p { display: block; margin: 12px 0; overflow: visible; font-size: 10px; line-height: 1.7; }
.app-card-action { min-height: 34px; gap: 3px; padding: 5px 6px; border: 1px solid #baffca66; border-radius: 3px; color: #c5fbd3; background: #baffca0d; box-shadow: inset 0 0 8px #baffca08, 0 0 7px #9bffb10a; text-shadow: 0 0 5px #aaffbf38; font: 400 10px/1.4 Silkscreen, ui-monospace, monospace; }
.app-card-action:hover { color: #e0ffe8; border-color: #caffd799; background: #bdffce1c; box-shadow: 0 0 12px #a0ffb620; }
.app-card-action svg { width: 14px; height: 14px; flex: 0 0 14px; }
.app-card-action.is-disabled { box-shadow: none; }
.app-card-visual { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 32px; }
.app-card-visual canvas { width: 100px; max-width: 100%; height: auto; aspect-ratio: 100/158; margin: auto 0; }
.app-likes { position: absolute; top: 9px; right: 11px; max-width: 94px; }
.like-button { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 3px 4px; border-radius: 3px; color: #b3c8b9; background: transparent; font: 9px/1.2 Silkscreen,ui-monospace,monospace; cursor: pointer; touch-action: manipulation; }
.like-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.like-button[aria-pressed="true"] { color: #c3ffd2; }
.like-button[aria-pressed="true"] svg { fill: currentColor; filter: drop-shadow(0 0 3px #98ffb3); }
.like-button:hover { color: #edfff2; }
.like-button:disabled { opacity: .6; cursor: wait; }
.like-button:focus-visible { outline: 1px solid #c3ffd2; outline-offset: 1px; }
.app-card.is-support h2 { font-size: 11px; }
.app-card.is-support .app-card-action { color: #ffe6a0; border-color: #ffe28a66; background: #ffe28a0d; box-shadow: 0 0 8px #ffd04c12; }
.app-card.is-support .app-card-action:hover { background: #ffe28a20; border-color: #ffe28a99; }
.keyboard.is-charging { animation: device-supercharge 1.8s ease-out; }
.keyboard.is-charging .keyboard-display { box-shadow: inset 0 0 0 6px var(--display-frame),inset 0 0 38px #ffe07430,0 0 20px #ffc92835; }
@keyframes device-supercharge {
  0%,100% { filter: none; transform: translateX(0); }
  8% { filter: sepia(.65) saturate(1.8) brightness(1.16) drop-shadow(0 0 15px #ffcb3866); transform: translateX(-2px) rotate(-.3deg); }
  13% { transform: translateX(2px) rotate(.3deg); }
  18% { transform: translateX(-2px); }
  23% { transform: translateX(1px); }
  32% { filter: sepia(.5) saturate(1.6) brightness(1.12) drop-shadow(0 0 22px #ffcf3866); transform: translateX(0); }
}
@media (min-width: 38.01rem) and (max-height: 49rem) { .keyboard-stack { --keyboard-scale-height: .88; } }
@media (min-width: 38.01rem) and (max-height: 39rem) { .keyboard-stack { --keyboard-scale-height: .70; } }
@media (min-width: 38.01rem) and (max-height: 32.5rem) { .keyboard-stack { --keyboard-scale-height: .57; } }
@media (min-width: 38.01rem) and (max-height: 26.25rem) { .keyboard-stack { --keyboard-scale-height: .45; } }
@media (max-width: 38rem) { .keyboard-main { min-height: max(100dvh, 680px); } }
@media (prefers-reduced-motion: reduce) { .keyboard.is-charging { animation: none; filter: sepia(.35) saturate(1.35); } }

/* A luminous metal shell keeps the charge vivid against the dark housing. */
.keyboard::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: linear-gradient(135deg, #fffdd3 0%, #fff290 28%, #cda746 47%, #fff7b3 54%, #f6d268 78%, #b58d31); }
:root[data-theme="dark"] .keyboard.is-charging::before { animation: dark-charge-shell 1.8s ease-out; }
@keyframes dark-charge-shell { 0%,100% { opacity: 0; } 8%,32% { opacity: .96; box-shadow: 0 0 30px #ffdb6880, inset 0 1px 2px #fff; } 65% { opacity: .65; box-shadow: 0 0 18px #ffdb6840; } }
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="dark"] .keyboard.is-charging::before { animation: none; opacity: .72; }
}

.site-legal-bar .dryyyve-signature { gap:4px; white-space:nowrap; }
.dryyyve-signature .signature-cup { width:14px; height:14px; flex:none; }
.dryyyve-signature strong { font:400 12px/1 Silkscreen,monospace; letter-spacing:-.04em; }

/* Mixtape: original cassette symbol, shared by device key and app card. */
.icon-mixtape { --key-symbol: url("assets/icons/mixtape.svg"); }

.icon-37 { --key-symbol: url("assets/icons/37.svg"); }
.icon-stacks { --key-symbol: url("assets/icons/stacks.svg"); }
