/* Firmware reference: the supplied DS menu tour, without the initial setup. */
:root {
  --accent: #f73340;
  --accent-light: #ffbec3;
}
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: #fff;
}
.start-screen[hidden] {
  display: none;
}
#start-console {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-family: "Pixel Operator", monospace;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: normal;
  line-height: 1;
  text-transform: lowercase;
  cursor: pointer;
  -webkit-font-smoothing: none;
}
#start-console:focus-visible {
  outline: 2px solid #333;
  outline-offset: -8px;
}
#start-console[hidden], .start-progress[hidden] { display: none; }
#start-console:disabled {
  opacity: 0.5;
  cursor: wait;
}
.boot-whiteout {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: #fff;
  pointer-events: auto;
}
.display-controls,
.display-controls button,
.display-controls b {
  font-family: "Pixel Operator", monospace !important;
  -webkit-font-smoothing: none;
}
.firmware-grid {
  height: 175px;
  background-color: #fbfbfb;
  background-image:
    linear-gradient(#d3d3d3 1px, transparent 1px),
    linear-gradient(90deg, #d3d3d3 1px, transparent 1px),
    linear-gradient(#f3f3f3 1px, transparent 1px);
  background-size:
    16px 16px,
    16px 16px,
    2px 2px;
  background-position:
    -1px -1px,
    -1px -1px,
    0 0;
}
.screen-transition {
  animation: none;
}
.status-bar {
  height: 16px;
  border: 0;
  border-bottom: 1px solid #a1464e;
  padding: 0 3px;
  gap: 3px;
  background: linear-gradient(
    var(--accent-light),
    var(--accent) 50%,
    var(--accent) 80%,
    #b93142
  );
  color: #fff;
  text-shadow: none;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
#digital-time {
  white-space: pre;
  padding-left: 3px;
  border-left: 1px solid #ffffff65;
}
.status-ds-icon {
  display: block;
  flex: 0 0 13px;
  image-rendering: pixelated;
}
.battery {
  width: 13px;
  height: 7px;
  border-color: #000;
  background: #fff;
  margin-right: 1px;
}
.battery:after {
  right: -2px;
  width: 1px;
  background: #000;
}
.battery i {
  background: #30ce59;
}
.clock-calendar {
  position: absolute;
  top: 47px;
  left: 15px;
  display: grid;
  grid-template-columns: 97px 117px;
  gap: 13px;
  width: 227px;
  height: 97px;
  padding: 0;
}
.with-info .clock-calendar { top: 31px; }
.clock, .calendar {
  position: relative;
  border: 0;
  box-shadow: none;
  background: transparent;
  height: 97px;
}
.clock { width: 97px; }
.calendar { width: 117px; }
.clock ds-clock, .calendar ds-calendar {
  position: absolute;
  display: block;
  transform: scale(0.5);
  transform-origin: top left;
  font: 17px / 26px "ds-system", monospace;
  --font-clock: "ds-clock";
  --color: var(--accent);
}
.clock ds-clock { width: 194px; height: 194px; }
.calendar ds-calendar { width: 234px; top: -16px; }
.clock-calendar ds-calendar * { text-transform: none !important; }
/* Keep six-week months in the same native 97px dashboard grid. */
ds-calendar .grid-cols-7:last-child:has(> :nth-child(36)) > div {
  height: calc(148px / 6);
  overflow: hidden;
}
.menu-body {
  padding: 10px 18px 0;
}
.menu-card {
  height: 40px;
  border: 2px solid #b0b0b0;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #888;
  background: #f5f5f5 linear-gradient(#fff, #e5e5e5);
  color: #333;
  padding: 4px;
  gap: 6px;
}
.menu-card strong {
  font-size: 12px;
  letter-spacing: 0;
}
.menu-card small {
  color: #575757;
  font-size: 10px;
}
.menu-middle {
  gap: 5px;
  margin: 5px 0;
}
.menu-middle .menu-card {
  height: 40px;
  padding: 4px;
  gap: 6px;
}
.menu-middle .menu-card strong { font-size: 12px; }
.menu-card .pixel-icon,
.menu-middle .pixel-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}
.menu-card .card-arrow {
  color: #555;
}
.menu-card.selected:before,
.menu-card.selected:after { content: none; }
.menu-footer {
  bottom: 0;
  height: 22px;
  left: 18px;
  right: 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}
.menu-footer .settings-button {
  width: 24px;
  border: 0;
  background: none;
  box-shadow: none;
  margin: 0;
  height: 22px;
}
.menu-footer button {
  width: 24px;
  height: 22px;
  margin: 0;
  padding: 2px;
  line-height: 0;
}
.menu-footer .pixel-icon {
  display: block;
  width: 18px;
  height: 18px;
}
.menu-footer svg {
  width: 16px;
  height: 16px;
}
.pixel-icon {
  flex-shrink: 0;
}
.screen-heading {
  height: 17px;
  padding: 0 5px;
  border: 1px solid #888;
  background: linear-gradient(#fff, #bcbcbc);
  font-size: 12px;
  color: #333;
}
.screen-heading small {
  font-size: 9px;
}
.content-page {
  height: 158px;
  padding: 11px 12px;
  background: #f6f6f6d9;
}
.content-page h2 {
  font-size: 20px;
  color: #333;
}
.content-page p {
  color: #444;
  line-height: 1.2;
}
.eyebrow {
  color: #555;
  font-size: 10px;
  letter-spacing: 0.4px;
}
.tags span {
  background: #e9e9e9;
  border-color: #aaa;
  color: #444;
}
.avatar {
  border: 0;
  background: none;
}
.list-screen {
  padding: 9px 12px 6px;
}
.reader-layout {
  display: grid;
  grid-template-rows: 17px 27px 46px minmax(0, 1fr) 24px;
  overflow: hidden;
}
#console[data-page="about"] .reader-layout {
  grid-template-rows: 17px 42px 38px minmax(0, 1fr) 24px;
}
#console[data-page="contact"] .reader-layout {
  grid-template-rows: 17px minmax(0, 1fr) 24px;
}
.reader-tabs {
  min-width: 0;
  padding: 3px 5px;
}
.reader-tabs .selection-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: auto;
  overflow: visible;
  padding: 0;
  gap: 3px;
}
.reader-tabs .selection-tab,
.about-tabs .reader-tab {
  width: 100%;
  max-width: none;
  min-height: 18px;
  height: 18px;
  padding: 0 2px;
  margin: 0;
  font-size: 10px;
  line-height: 14px;
}
.about-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 3px;
}
.reader-header {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 2px 8px;
  background: #f6f6f6e8;
}
.reader-header > div {
  flex: 1;
  min-width: 0;
}
.reader-header h2 {
  margin: 0 0 2px;
  font-size: 14px;
  line-height: 14px;
  font-weight: normal;
  color: #333;
}
.reader-header p {
  margin: 0;
  font-size: 9px;
  line-height: 10px;
  color: #444;
}
.reader-header > img {
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: auto;
}
.reader-header .profile-portrait {
  object-fit: cover;
  border: 1px solid #777;
}
.reader-body {
  min-height: 0;
  min-width: 0;
  padding: 3px 8px;
  background: #f6f6f6e8;
  color: #333;
}
.reader-body p {
  margin: 0;
  font-size: 12px;
  line-height: 12px;
  overflow-wrap: anywhere;
}
.reader-pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  background: linear-gradient(#eee, #d0d0d0);
  border-top: 1px solid #999;
}
.reader-pagination .firmware-button {
  flex: 0 0 24px;
  min-width: 24px;
  width: 24px;
  min-height: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 15px;
}
.reader-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.reader-count {
  min-width: 31px;
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.reader-pagination .reader-link {
  margin: 0 0 0 auto;
  padding: 0;
  font-size: 10px;
  color: #245fa0;
  background: none;
  border: 0;
  box-shadow: none;
  white-space: nowrap;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}
.social-tile {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  min-width: 0;
  color: #333;
  text-decoration: none;
  border: 2px solid #aaa;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #999;
  background: linear-gradient(#fff, #e7e7e7);
  font-size: 11px;
  line-height: 11px;
}
.social-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.social-tile span {
  flex: 1;
  overflow-wrap: anywhere;
}
.social-tile b {
  font-size: 9px;
  font-weight: normal;
}
.social-tile:hover,
.social-tile:focus-visible {
  border-color: var(--accent);
  outline: 0;
  background: linear-gradient(#fff, var(--accent-light));
}
.social-tile:active {
  box-shadow: inset 1px 1px #888;
}
#console[data-page="about"] .dual-upper {
  grid-template-rows: 17px 60px minmax(0, 1fr) 24px;
}
#console[data-page="about"] .dual-upper.profile-overview {
  grid-template-rows: 17px 104px minmax(0, 1fr) 24px;
}
#console[data-page="about"] .dual-upper.without-pagination {
  grid-template-rows: 17px 60px minmax(0, 1fr);
}
#console[data-page="about"] .dual-upper.profile-overview.without-pagination {
  grid-template-rows: 17px 104px minmax(0, 1fr);
}
#console[data-page="about"] .dual-lower.without-pagination {
  grid-template-rows: 17px minmax(0, 1fr);
}
#console[data-page="about"] .dual-lower {
  grid-template-rows: 17px minmax(0, 1fr) 24px;
}
#console[data-page="projects"] .dual-upper,
#console[data-page="contact"] .dual-upper {
  grid-template-rows: 17px 70px minmax(0, 1fr) 24px;
}
#console[data-page="projects"] .dual-lower {
  grid-template-rows: 17px minmax(0, 1fr) 24px;
}
#console[data-page="contact"] .dual-lower {
  grid-template-rows: 17px minmax(0, 1fr) 24px;
}
#console[data-page="skills"] .dual-upper {
  grid-template-rows: 17px minmax(0, 1fr);
}
#console[data-page="skills"] .dual-lower {
  grid-template-rows: 17px minmax(0, 1fr);
}
.topic-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}
.topic-picker .topic-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 2px;
  margin: 0;
  font-size: 10px;
  line-height: 10px;
}
.topic-tile .pixel-icon {
  width: 41px;
  height: 41px;
  flex: none;
}
.topic-tile > span:not(.pixel-icon) {
  display: block;
  width: 100%;
  text-align: center;
}
.cartridge-picker {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 4px 5px;
}
.cartridge-picker .cartridge-tile {
  display: flex;
  min-height: 0;
  height: 100%;
  padding: 1px 4px;
  margin: 0;
  text-align: left;
}
.cartridge-tile img,
.cartridge-tile .pixel-icon {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  object-fit: contain;
}
.cartridge-tile span {
  flex: 1;
  min-width: 0;
}
.cartridge-tile > .pixel-icon {
  flex: 0 0 27px;
}
.cartridge-tile strong,
.cartridge-tile small {
  display: block;
  font-weight: normal;
  line-height: 12px;
}
.cartridge-tile strong {
  font-size: 12px;
}
.cartridge-tile small {
  font-size: 8px;
}
.cartridge-tile b {
  font-weight: normal;
  font-size: 14px;
}
.selection-info {
  min-width: 0;
  min-height: 0;
  padding: 2px 8px;
  background: #f6f6f6e8;
  color: #444;
}
.selection-info h2 {
  margin: 0 0 2px;
  font-size: 11px;
  line-height: 11px;
  font-weight: normal;
}
.selection-info p {
  margin: 0;
  font-size: 10px;
  line-height: 10px;
}
.project-selection {
  display: flex;
  align-items: center;
}
.contact-reader .social-icon {
  width: 52px;
  height: 52px;
}
.contact-reader h2 {
  font-size: 18px;
  line-height: 20px;
}
.contact-address {
  display: grid;
  align-content: center;
  gap: 7px;
}
.contact-address .connection-status {
  color: #666;
  font-size: 10px;
}
.reader-pagination .contact-open {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #215d9c;
}
.social-tile.active {
  border-color: var(--accent);
  background: linear-gradient(#fff, var(--accent-light));
}
.skill-detail {
  padding: 10px 12px;
  background: #f6f6f6e8;
}
.skill-detail h2 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: normal;
}
.skill-detail .skill-list {
  margin: 0;
}
.skill-detail li {
  padding: 2px 0;
  margin: 0;
  font-size: 12px;
  line-height: 14px;
}
.identity-overview .profile-portrait {
  width: 96px;
  height: 96px;
}
.identity-overview h2 {
  margin-bottom: 3px;
  font-size: 22px;
  line-height: 23px;
}
.legal-name {
  display: block;
  font-size: 9px;
  line-height: 10px;
  color: #555;
}
.profile-facts {
  margin: 6px 0 0;
  padding: 0;
}
.profile-facts > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 3px;
}
.profile-facts dt,
.profile-facts dd {
  margin: 0;
  padding: 0;
  font-size: 9px;
  line-height: 11px;
  font-weight: normal;
  color: #444;
}
.profile-facts dt:after {
  content: ":";
}
.topic-reader > .pixel-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}
.topic-reader h2 {
  font-size: 18px;
  line-height: 19px;
}
.menu-card > span:not(.pixel-icon):not(.card-arrow) {
  display: flex;
  align-items: center;
}
.pixel-icon > img.ds-tile {
  image-rendering: pixelated;
}
#console[data-page="projects"] .cartridge-tile img {
  width: 32px;
  height: 32px;
}
.list-row {
  min-height: 31px;
  padding: 3px 6px;
  margin-bottom: 6px;
  gap: 7px;
  border: 2px solid #b5b5b5;
  background: linear-gradient(#fff, #e4e4e4);
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #999;
  color: #333;
  text-decoration: none;
}
.list-row.active {
  border-color: var(--accent);
  background: linear-gradient(#fff, var(--accent-light));
}
.list-row .pixel-icon {
  width: 22px;
  height: 22px;
}
.list-row .row-number {
  padding: 3px;
  border-color: #aaa;
  color: #555;
}
.skill-list li {
  border-color: #aaa;
}
.skill-list li:before {
  color: #b89d24;
}
.empty-note {
  border-color: #999;
  color: #555;
  background: #f5f5f5;
}
.firmware-button {
  min-height: 23px;
  min-width: 52px;
  border: 1px solid #777;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #aaa;
  background: linear-gradient(#fff, #d6d6d6);
  color: #333;
}
.with-info .date-line {
  display: none;
}
.firmware-description {
  position: absolute;
  inset: auto 0 0;
  height: 52px;
  padding: 2px;
  display: flex;
  gap: 3px;
  border-top: 2px solid #fff;
  background: #b9b9b9;
}
.firmware-description > .pixel-icon {
  width: 38px;
  height: 38px;
  margin-top: 8px;
}
.firmware-description > div {
  flex: 1;
  min-width: 0;
}
.firmware-description h2 {
  margin: 0;
  padding: 1px 2px;
  height: 14px;
  font-size: 12px;
  font-weight: normal;
  color: #333;
  border: 1px solid #888;
  background: linear-gradient(#fff, #bbb);
}
.firmware-description p {
  height: 32px;
  margin: 1px 0 0;
  padding: 3px;
  background: #333;
  color: #fff;
  font-size: 11px;
  line-height: 1.05;
  border: 1px solid #eee;
}
.settings-launcher {
  position: absolute;
  top: 80px;
  left: 29px;
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 10px;
}
.setting-tile {
  width: 42px;
  padding: 0;
  background: none;
  border: 0;
  color: #444;
  font-size: 10px !important;
}
.setting-tile .pixel-icon {
  width: 42px;
  height: 42px;
  box-shadow: 0 0 0 1px #999;
}
.setting-tile span {
  display: block;
  margin-top: 6px;
}
.settings-pane {
  height: 158px;
  padding: 12px 14px;
  overflow: auto;
  scrollbar-width: thin;
}
.settings-pane p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.2;
  color: #444;
}
.settings-row {
  min-height: 26px;
  margin-bottom: 10px;
  color: #333;
}
.color-options {
  gap: 9px;
  margin-bottom: 15px;
}
.color-swatch {
  width: 28px;
  height: 24px;
}
.color-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--accent);
}
.settings-pane .profile-name {
  font-size: 18px;
}
.settings-pane .system-version {
  text-align: center;
  font-size: 10px;
}
.has-3d #console .display-controls {
  display: none;
}
.has-3d #console[data-phase="menu"] .display-controls {
  position: absolute;
  inset: auto 0 0;
  height: 17px;
  z-index: 35;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #a12d39;
  background: linear-gradient(var(--accent), var(--accent-light));
  pointer-events: auto;
}
.has-3d #console[data-phase] .display-controls button,
.has-3d #console[data-phase] .display-controls button.screen-switch {
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 77px;
  height: 13px;
  min-height: 0;
  padding: 0 4px;
  margin: 0;
  font-family: inherit;
  font-size: 10px;
  line-height: 1;
  color: #444;
  border: 1px solid #999;
  border-radius: 0;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #bbb;
  background: linear-gradient(#fff, #d4d4d4);
  pointer-events: auto;
}
.has-3d #console[data-phase] .display-controls .display-overview {
  width: 36px;
}
.display-controls svg {
  width: 10px;
  height: 10px;
  fill: #246fd1;
}

.display-controls button:hover {
  filter: brightness(1.08);
}
.has-3d #console[data-focus] .content-page {
  padding-bottom: 12px;
}
.back-button,
.sub-footer {
  display: none;
}
.boot-top {
  position: relative;
}
.boot-top .boot-logo {
  position: absolute;
  top: 61px;
  left: 28px;
  opacity: 0;
  animation: firmware-logo 0.7s 0.15s ease-out forwards;
}
.nintendo-wordmark {
  position: absolute;
  left: 65px;
  top: 136px;
  width: 125px;
  height: 29px;
  object-fit: contain;
  opacity: 0.75;
}
.boot-ghost {
  position: absolute;
  left: 158px;
  top: 39px;
  display: grid;
  gap: 4px;
  opacity: 0;
  animation: firmware-ghost 1.15s ease-out;
}
.boot-ghost i {
  width: 22px;
  height: 16px;
  border: 3px solid #aaa;
  border-radius: 3px;
}
.boot-bottom {
  padding: 15px 12px 0;
}
.health-heading {
  margin-bottom: 15px;
  font-size: 11px;
  font-weight: normal;
}
.warning-icon {
  width: 10px;
  height: 10px;
  vertical-align: -1px;
}
.health-copy {
  font-size: 10px !important;
  line-height: 1.4 !important;
  margin-bottom: 11px !important;
}
.health-link {
  color: #7777bd;
  font-size: 9px;
}
.continue-button {
  bottom: 13px;
  font-size: 11px !important;
  color: #666;
}
.off-screen {
  background: #142019;
}
.console[data-phase="logo"] .console-top {
  animation: none;
}
.lcd button,
.setting-tile .pixel-icon,
.menu-card .pixel-icon {
  transition:
    filter 0.12s,
    background-color 0.12s,
    transform 0.12s;
}
.menu-card:hover .pixel-icon,
.setting-tile:hover .pixel-icon {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.menu-card:active,
.list-row:active {
  background: var(--accent-light);
}
.menu-card.selected:before,
.menu-card.selected:after {
  animation: firmware-select 0.2s ease-out;
}
@keyframes firmware-logo {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes firmware-ghost {
  0% {
    opacity: 0;
    transform: translateY(-25px);
  }
  30% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateY(25px);
  }
}
@keyframes firmware-select {
  from {
    opacity: 0.35;
    filter: brightness(1.5);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}
html[data-animations="reduced"] .boot-ghost {
  display: none;
}
html[data-animations="reduced"] .boot-top .boot-logo {
  animation: none;
  opacity: 1;
}
html[data-animations="reduced"] .lcd * {
  animation: none !important;
  transition: none !important;
}
.lcd,
.display-controls {
  text-transform: lowercase;
}
.lcd *,
.display-controls * {
  text-transform: lowercase !important;
}
#console[data-page="home"] .display-controls .display-menu {
  visibility: hidden;
  pointer-events: none;
}

/* Keep the SVG's backing surface dense when a 256px LCD is enlarged in CSS3D. */
.pixel-icon {
  position: relative;
  display: inline-block;
  image-rendering: auto;
}
.pixel-icon > .icon-vector {
  position: absolute;
  inset: 0 auto auto 0;
  width: 400% !important;
  height: 400% !important;
  transform: scale(0.25);
  transform-origin: top left;
  display: block;
  shape-rendering: crispEdges;
  image-rendering: auto;
}
.selection-strip {
  display: flex;
  gap: 4px;
  padding: 3px 6px;
  height: 30px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.selection-strip .selection-tab {
  flex: 1 0 72px;
  min-width: 0;
  max-width: 130px;
  height: 24px;
  min-height: 24px;
  padding: 2px 4px;
  margin: 0;
  display: block;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#console .selected-detail {
  height: 128px;
  max-height: 128px;
  padding: 5px 9px 12px;
}
.boot-video,
.boot-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
}
.boot-video {
  display: block;
  object-fit: fill;
  image-rendering: auto;
}
.boot-video-fallback > img:first-child {
  position: absolute;
  top: 62px;
  left: 20px;
  width: 216px;
}
.boot-video-fallback > img:last-child {
  position: absolute;
  top: 139px;
  left: 78px;
  width: 100px;
}
.health-heading {
  margin-bottom: 12px;
}
.health-copy {
  line-height: 1.35 !important;
  margin-bottom: 10px !important;
}
.health-link {
  font-size: 9px;
}

/* Native BIOS tiles use untouched PNG sprites supplied with the reference. */
.pixel-icon.native-icon .icon-vector,
.pixel-icon.native-icon image {
  image-rendering: pixelated;
}
.settings-launcher,
.settings-category-rail {
  position: absolute;
  top: 121px;
  left: 33px;
  display: grid;
  grid-template-columns: repeat(4, 45px);
  gap: 3px;
}
.setting-tile,
.native-action {
  position: relative;
  width: 45px;
  height: 45px;
  min-height: 0;
  padding: 1px;
  border: 1px solid #8c8c8c;
  border-radius: 0;
  box-shadow:
    inset 1px 1px #fff,
    1px 1px #fff;
  background: #ddd;
  color: #444;
}
.setting-tile .pixel-icon,
.native-action .pixel-icon {
  display: block;
  width: 41px;
  height: 41px;
  margin: 0;
  box-shadow: none;
}
.setting-tile:focus-visible:before,
.native-action:focus-visible:before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.settings-category-rail .setting-tile {
  opacity: 0.8;
}
.settings-category-rail .setting-tile:hover,
.settings-category-rail .setting-tile:focus-visible {
  opacity: 1;
}
.native-options {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.native-action {
  position: absolute;
  pointer-events: auto;
}
.native-startup {
  left: 33px;
  top: 25px;
}
.native-motion {
  left: 33px;
  top: 73px;
}
.native-sound {
  left: 81px;
  top: 73px;
}
#console .settings-pane {
  height: 104px;
  padding: 7px 10px;
}
.settings-pane p {
  margin-bottom: 6px;
}
.settings-row {
  margin-bottom: 5px;
}
.color-options {
  gap: 9px;
  margin-bottom: 7px;
}
.native-profile-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.native-profile-heading .pixel-icon {
  width: 32px;
  height: 32px;
}
.native-profile-heading .profile-name {
  margin: 0 0 2px;
}
.native-profile-heading p {
  margin: 0;
}
.firmware-info {
  position: absolute;
  inset: auto 0 0;
  height: 47px;
  overflow: hidden;
}
.firmware-info-panel {
  position: absolute;
  inset: 0;
}
[data-motion-retiring] {
  pointer-events: none !important;
}
.firmware-breadcrumb {
  position: absolute;
  top: 0;
  left: 46px;
  right: 2px;
  z-index: 1;
  height: 12px;
  padding: 0 3px;
  border: 1px solid #888;
  background: linear-gradient(#fff, #bcbcbc);
  font-size: 10px;
  color: #333;
}
.firmware-description {
  height: 47px;
  gap: 3px;
  padding: 2px;
  background: #e7e7e7;
  border-top: 1px solid #fff;
}
.firmware-description > .pixel-icon {
  width: 41px;
  height: 41px;
  margin-top: 1px;
}
.firmware-description > div {
  align-self: stretch;
}
.firmware-description h2 {
  height: 12px;
  padding: 0 3px;
  font-size: 10px;
}
.firmware-description p {
  height: 29px;
  padding: 3px 5px;
  font-size: 10px;
  line-height: 1.1;
  background: #242424;
  border: 1px solid #fff;
  border-radius: 2px;
}
.has-breadcrumb .firmware-description > div {
  padding-top: 11px;
}
.has-breadcrumb .firmware-description p {
  height: 19px;
  padding-top: 1px;
  font-size: 9px;
}
.has-3d #console[data-phase="menu"] .display-controls {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
}
.has-3d #console[data-phase] .display-controls .display-overview {
  justify-self: center;
}
.has-3d #console[data-phase] .display-controls button.screen-switch {
  width: 32px;
  padding: 0 3px;
  justify-self: end;
}
.screen-switch svg {
  width: 18px;
  height: 11px;
  overflow: visible;
}
.screen-switch .display-frame {
  fill: #555;
}
.screen-switch .destination-screen,
.screen-switch .swap-arrow {
  fill: #247ac0;
}
.screen-switch .swap-arrow {
  transition: transform 0.15s ease-out;
}
.screen-switch[data-switch="bottom"]:hover .swap-arrow {
  transform: translateY(1px);
}
.screen-switch[data-switch="top"]:hover .swap-arrow {
  transform: translateY(-1px);
}
.screen-switch:hover .destination-screen {
  fill: #33b7f0;
}

/* Page-level actions stay outside the live LCD surfaces. */
.page-tools {
  position: fixed;
  inset: auto 10px 6px;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  font:
    14px/1 "Pixel Operator",
    monospace;
  color: #666;
}
.page-tools button {
  border: 0;
  padding: 8px;
  min-height: 36px;
  background: #ffffffcc;
  pointer-events: auto;
  text-transform: lowercase;
}
#open-credits {
  margin-left: auto;
}
.page-tools .shutdown-console {
  width: 44px;
  height: 44px;
}
.page-tools [hidden] {
  display: none;
}
.page-tools button:hover {
  color: #222;
}
.credits-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100svh - 64px);
  padding: 0;
  border: 2px solid #999;
  border-radius: 0;
  background: #f7f7f7ee;
  color: #333;
  font:
    18px/1.15 "Pixel Operator",
    monospace;
  box-shadow:
    inset 1px 1px #fff,
    0 18px 70px #0002;
}
.credits-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: credits-in 220ms ease-out;
}
.credits-dialog::backdrop {
  background: #ffffff80;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: credits-backdrop 220ms ease-out;
}
.credits-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 2px solid #aaa;
  background: linear-gradient(#fff, #d5d5d5);
}
.credits-dialog h2 {
  margin: 0;
  font: inherit;
  font-size: 24px;
}
.credits-dialog header button {
  border: 0;
  background: none;
  font-size: 28px;
  width: 44px;
  height: 44px;
}
.credits-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 18px 18px;
}
.credits-body dl {
  margin: 0;
}
.credits-body dt {
  margin-top: 17px;
  color: #666;
  font-size: 15px;
}
.credits-body dd {
  margin: 3px 0 0;
}
.credits-body small {
  display: block;
  margin-top: 3px;
  color: #666;
  font-size: 14px;
}
.credits-body a {
  text-underline-offset: 3px;
}
@keyframes credits-in {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes credits-backdrop {
  from {
    background: #ffffff00;
    backdrop-filter: blur(0);
  }
  to {
    background: #ffffff80;
    backdrop-filter: blur(9px);
  }
}
#console[data-phase="off"] {
  pointer-events: none;
}
#console[data-page="skills"] .skill-picker {
  grid-template-columns: repeat(3, 64px);
  grid-template-rows: repeat(2, 64px);
  place-content: center;
  gap: 7px 10px;
  padding: 4px;
}
#console[data-page="skills"] .cartridge-tile {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 64px;
  height: 64px;
  padding: 4px;
}
#console[data-page="skills"] .cartridge-tile .pixel-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
#console[data-page="skills"] .cartridge-tile > span:not(.pixel-icon) {
  flex: 0;
  width: 100%;
  text-align: center;
}
#console[data-page="skills"] .cartridge-tile b { display: none; }

.social-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 3px;
  text-align: center;
}
.social-tile .social-icon {
  width: 41px;
  height: 41px;
}
.social-tile span {
  flex: 0;
}
.social-tile b {
  display: none;
}
.farewell {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: var(--farewell-top, 25%);
  width: 92%;
  transform: translate(-50%, -50%) translateY(8px);
  opacity: 0;
  text-align: center;
  color: #333;
  font:
    clamp(24px, 3.5vw, 44px) / 1.1 "Pixel Operator",
    monospace;
  pointer-events: none;
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}
.farewell p {
  margin: 0 0 12px;
}
.farewell span {
  font-family: sans-serif;
  font-size: 0.65em;
}
.is-leaving .farewell {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.has-3d #console {
  z-index: 1;
}
/* Fit complete paragraphs to the LCD before introducing another reading page. */
.reader-measure {
  position: absolute;
  visibility: hidden;
  left: 0;
  top: 0;
  width: 256px;
  height: auto;
  pointer-events: none;
  z-index: -1;
}
#console[data-page="about"] .dual-upper {
  grid-template-rows: 17px 42px minmax(0, 1fr) 18px;
}
#console[data-page="about"] .dual-upper.profile-overview {
  grid-template-rows: 17px 104px minmax(0, 1fr) 18px;
}
#console[data-page="about"] .dual-upper.without-pagination {
  grid-template-rows: 17px 42px minmax(0, 1fr);
}
#console[data-page="about"] .dual-upper.profile-overview.without-pagination {
  grid-template-rows: 17px 104px minmax(0, 1fr);
}
#console[data-page="projects"] .dual-upper {
  grid-template-rows: 17px 44px minmax(0, 1fr) 18px;
}
#console[data-page="projects"] .reader-project-image {
  width: 40px;
  height: 40px;
}
#console[data-page="about"] .topic-reader .pixel-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}
#console[data-page="about"] .dual-lower,
#console[data-page="projects"] .dual-lower,
#console[data-page="contact"] .dual-lower,
#console[data-page="banners"] .dual-lower {
  grid-template-rows: 17px minmax(0, 1fr) 18px;
}
#console .dual-lower.without-pagination {
  grid-template-rows: 17px minmax(0, 1fr);
}
.reader-pagination {
  gap: 3px;
  padding: 0 5px;
  background: linear-gradient(var(--accent-light), #f4f4f4);
  border-top: 2px solid var(--accent);
  justify-content: center;
}
.reader-pagination .firmware-button {
  width: 26px;
  min-width: 26px;
  flex-basis: 26px;
  height: 15px;
  min-height: 15px;
  line-height: 12px;
  font-size: 10px;
  color: #333;
  background: linear-gradient(#fff, #d8d8d8);
  border: 1px solid #888;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #aaa;
}
.reader-pagination button:disabled {
  opacity: 0.45;
}
.reader-count {
  min-width: 32px;
  font-size: 11px;
  color: #222;
}
.menu-footer {
  grid-template-columns: repeat(4, 1fr);
}
#console[data-page="banners"] .dual-upper {
  grid-template-rows: 17px minmax(0, 1fr) 18px;
}
#console[data-page="banners"] .dual-upper.without-pagination {
  grid-template-rows: 17px minmax(0, 1fr);
}
.banner-tile img {
  image-rendering: pixelated;
  object-fit: contain;
}
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 88px);
  grid-template-rows: repeat(4, 31px);
  place-content: center;
  gap: 3px 16px;
  padding: 3px;
}
.banner-tile {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  font-size: 10px;
  text-decoration: none;
}
.banner-tile:hover,
.banner-tile:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
  background: var(--accent-light);
}

/* Local spiritov/ds.css assets supply the native font and button relief. */
.display-menu .native-back-key {
  width: 9px;
  height: 9px;
  image-rendering: pixelated;
}
#console .display-controls .display-menu {
  font-family: "ds-system", monospace !important;
  font-size: 10px;
  background-image: url("../assets/vendor/ds-css/assets/images/button.png");
  background-size: 100% 100%;
  background-blend-mode: normal;
}
.native-health {
  position: relative;
  width: 256px;
  height: 192px;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: "ds-system", monospace;
  text-align: center;
}
.native-health h2 {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  margin: 0;
  font: bold 12px / 14px "ds-system", monospace;
}
.native-health h2 svg {
  width: 12px;
  height: 14px;
  vertical-align: -2px;
}
.native-health .health-main {
  position: absolute;
  top: 39px;
  width: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 18px;
}
.native-health .health-region {
  position: absolute;
  top: 124px;
  width: 100%;
  margin: 0;
  font-size: 8px;
  line-height: 12px;
}
.native-health .health-address {
  position: absolute;
  top: 140px;
  width: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 12px;
  color: #8b8bc6;
}
.native-health .health-prompt {
  position: absolute;
  top: 165px;
  left: 0;
  width: 100%;
  font-size: 11px;
  animation: health-prompt 1.6s ease-in-out infinite alternate;
}
.native-health .continue-button {
  position: absolute;
  inset: 0;
  width: 256px;
  height: 192px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  animation: none;
  opacity: 1;
}
.native-health .continue-button:disabled { opacity: 1; }
@keyframes health-prompt { from { opacity: 1; } to { opacity: 0.25; } }
#console[data-page="projects"] .dual-lower {
  grid-template-rows: 17px 21px minmax(0, 1fr) 18px;
}
#console[data-page="projects"] .dual-lower.without-pagination {
  grid-template-rows: 17px 21px minmax(0, 1fr);
}
.project-groups {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 2px;
}
.project-groups button {
  width: 70px;
  height: 17px;
  min-height: 0;
  padding: 0;
  font: inherit;
}
.project-groups .active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.video-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 4px;
}
.video-samples a {
  display: grid;
  gap: 1px;
  text-align: center;
  font-size: 10px;
  line-height: 11px;
}
.video-samples img {
  width: 100%;
  height: 30px;
  object-fit: cover;
  border: 1px solid #888;
}
.skill-detail > .external-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
}
#console [data-page="banners"] .pixel-icon {
  animation: banner-glow 6s ease-in-out infinite alternate;
}
/* The miniature contains the other display's own enlarge control. */
.has-3d #console[data-focus="top"] .top-bezel .screen-switch,
.has-3d #console[data-focus="bottom"] .bottom-bezel .screen-switch {
  visibility: hidden;
}

/* The original LCD buttons have straight corners; small bezel controls keep ds.css relief. */
#console .lcd button {
  clip-path: none;
  border-radius: 0;
  background-blend-mode: normal;
}
.menu-body { display: grid; gap: 5px; }
.menu-middle { margin: 0; }
.menu-footer button,
.menu-footer .settings-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  clip-path: none;
}
.menu-footer button:hover .pixel-icon { filter: brightness(1.08); }
#console .list-row.active { border-color: #999; }
.project-groups .active { border-color: #888; box-shadow: inset 0 0 0 1px #bbb; }
html[data-input="pointer"] #console button,
html[data-input="pointer"] #console a,
html[data-input="pointer"] #console .lcd {
  outline: none !important;
}
html[data-input="pointer"] .setting-tile::before,
html[data-input="pointer"] .native-action::before { content: none; }
html[data-input="keyboard"] #console .lcd button:focus,
html[data-input="keyboard"] #console .lcd a:focus {
  outline: 1px solid var(--accent) !important;
  outline-offset: -2px;
}
.start-screen {
  align-content: center;
  gap: 16px;
}
.start-progress {
  width: 140px;
  height: 7px;
  padding: 1px;
  border: 1px solid #555;
  box-shadow: inset 1px 1px #ddd;
}
.start-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #555;
  transition: width 120ms linear;
}
.site-exit {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #fff;
}
@keyframes banner-glow {
  from { filter: drop-shadow(0 0 1px #ffd74b55); }
  to { filter: drop-shadow(0 0 3px #ffd74baa) drop-shadow(0 0 5px #ffe48c66); }
}

.native-health h2,
.native-health .health-main,
.native-health .health-region { text-transform: uppercase !important; }
html[data-input="pointer"] #start-console { outline: none; }
#console[data-phase="health"] .lcd:after { display: none; }

/* Removing upper Back must not move the two remaining bezel controls. */
.has-3d #console[data-phase="menu"] .display-menu { grid-column: 1; }
.has-3d #console[data-phase="menu"] .display-overview { grid-column: 2; }
.has-3d #console[data-phase="menu"] .screen-switch { grid-column: 3; }

/* First paint is white, then only the progress bar appears while scripts prepare. */
.start-screen[data-load-state="blank"] .start-progress {
  animation: loading-entrance 160ms both;
}
@keyframes loading-entrance {
  0%, 50% { opacity: 0; }
  100% { opacity: 1; }
}
body:has(#start-screen:not([hidden])) .page-tools {
  visibility: hidden;
  pointer-events: none;
}
html[data-animations="reduced"] .start-progress span { transition: none; }
