:root {
  --bg: #dde2ea;
  --paper: #f8f9fd;
  --ink: #14142b;
  --muted: #40456a;
  --link: #1f23d6;
  --visited: #7a35c2;
  --accent: #ffcf3f;
  --edge: #14142b;
  --sh: #14142b;
  --glow: rgba(31, 35, 214, .14);
  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Literata", Georgia, serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme]) {
    --bg: #12102a;
    --paper: #1e1b45;
    --ink: #efeeff;
    --muted: #b4b0e6;
    --link: #929aff;
    --visited: #c79cff;
    --accent: #ffd24d;
    --edge: #8b86e6;
    --sh: #05041a;
    --glow: rgba(146, 154, 255, .18);
  }
}

:root[data-theme="dark"] {
  --bg: #12102a;
  --paper: #1e1b45;
  --ink: #efeeff;
  --muted: #b4b0e6;
  --link: #929aff;
  --visited: #c79cff;
  --accent: #ffd24d;
  --edge: #8b86e6;
  --sh: #05041a;
  --glow: rgba(146, 154, 255, .18);
}

html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
  height: 100%
}

@media (prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior: smooth
  }
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 20%, transparent) 1px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.075rem;
  line-height: 1.7;
  min-height: 100%;
  overflow-x: hidden
}

#web {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .8
}

.shell {
  position: relative;
  z-index: 1
}

a {
  color: var(--link);
  text-decoration-thickness: .1em;
  text-underline-offset: .22em
}

a:visited {
  color: var(--visited)
}

a:hover {
  color: var(--ink);
  background: var(--accent);
  text-decoration-color: var(--ink)
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--edge);
  border-radius: 4px
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  background: var(--accent);
  color: #14142b;
  border: 2px solid #14142b;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  font-family: var(--f-head);
  font-weight: 800;
  text-decoration: none;
  transition: top .2s
}

.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + .75rem)
}

/* barra superior */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--edge)
}

.topbar .nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: .4rem .9rem;
  transition: background .2s, border-color .2s
}

.topbar .nav-link:hover {
  background: var(--glow);
  color: var(--ink)
}

.topbar .nav-link[aria-current] {
  background: var(--accent);
  color: #14142b;
  border-color: var(--edge);
  box-shadow: 3px 3px 0 var(--sh)
}

.tools {
  flex: 1 1 18rem;
  justify-content: flex-end
}

.search {
  position: relative;
  flex: 1 1 12rem;
  max-width: 22rem
}

.search .form-control {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--edge);
  border-radius: 10px;
  min-height: 44px;
  padding-left: 2.5rem;
  font-family: var(--f-head);
  box-shadow: 3px 3px 0 var(--sh)
}

.search .form-control:focus {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--link);
  box-shadow: 3px 3px 0 var(--link)
}

.s-ico {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none
}

.results,
.menu {
  position: absolute;
  top: calc(100% + .5rem);
  list-style: none;
  margin: 0;
  padding: .35rem;
  background: var(--paper);
  border: 2px solid var(--edge);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--sh);
  z-index: 10
}

.results {
  left: 0;
  right: 0;
  max-height: 18rem;
  overflow: auto
}

.results li {
  padding: .55rem .8rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  line-height: 1.35
}

.results li strong {
  font-family: var(--f-head)
}

.results li span {
  font-size: .88rem;
  color: var(--muted)
}

.results li[aria-selected="true"],
.results li[role=option]:hover {
  background: var(--accent);
  color: #14142b
}

.results li[aria-selected="true"] span,
.results li[role=option]:hover span {
  color: #14142b
}

.results li.none {
  cursor: default;
  color: var(--muted)
}

.lang {
  position: relative
}

.menu {
  right: 0;
  min-width: 10.5rem
}

.menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  padding: .6rem .85rem;
  min-height: 44px;
  border-radius: 8px;
  font-family: var(--f-head);
  font-weight: 500
}

.menu button:hover {
  background: var(--glow)
}

.menu button[aria-current="true"] {
  font-weight: 800;
  background: var(--accent);
  color: #14142b
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--edge);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--sh);
  transition: transform .12s, box-shadow .12s, background .2s
}

.icon-btn:hover {
  background: var(--accent);
  color: #14142b
}

.icon-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--sh)
}

.icon-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper)
}

/* ventanas */
.win {
  --bar: var(--link);
  position: relative;
  background: var(--paper);
  border: 2px solid var(--edge);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--sh);
  padding: 3.4rem 1.7rem 1.6rem;
  transition: transform .15s, box-shadow .15s
}

.win::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2rem;
  border-bottom: 2px solid var(--edge);
  border-radius: 12px 12px 0 0;
  background: repeating-linear-gradient(var(--bar) 0 2px, var(--paper) 2px 5px)
}

.win::after {
  content: "";
  position: absolute;
  left: .7rem;
  top: .5rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--edge);
  background: var(--paper);
  border-radius: 3px
}

.hero {
  max-width: 62rem;
  margin: clamp(2rem, 6vw, 4.5rem) auto 0;
  text-align: center;
  padding: 4.2rem clamp(1.2rem, 5vw, 4rem) 3rem;
  --bar: var(--accent)
}

.hero::before {
  height: 2.4rem
}

.hero::after {
  top: .65rem
}

h1,
dt {
  font-family: var(--f-head)
}

h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .28em;
  font-weight: 800;
  font-size: clamp(3rem, 10.5vw, 6.8rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0 0 1.6rem;
  text-shadow: 4px 4px 0 var(--accent)
}

@keyframes rise {
  from {
    transform: translateY(105%)
  }

  to {
    transform: none
  }
}

.lead-text {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  max-width: 40rem;
  margin: 0 auto
}

.intro-links {
  max-width: 40rem;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 3px dashed var(--edge)
}

.cue {
  display: block;
  margin: 2rem auto;
  color: var(--ink);
  animation: bob 1.6s steps(4) infinite
}

@keyframes bob {
  50% {
    transform: translateY(8px)
  }
}

.wins {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem 1.75rem;
  margin: 0 0 2rem;
  padding: 0 .4rem
}

.wins .win {
  grid-column: span 3;
  scroll-margin-top: 6rem
}

.wins .wide {
  grid-column: span 6
}

.wins .win:nth-child(3n+1) {
  --bar: var(--link)
}

.wins .win:nth-child(3n+2) {
  --bar: var(--accent)
}

.wins .win:nth-child(3n) {
  --bar: var(--visited)
}

.wins .win:nth-child(odd) {
  transform: rotate(-.35deg)
}

.wins .win:nth-child(even) {
  transform: rotate(.35deg)
}

.wins .win:hover {
  transform: translate(-3px, -3px) rotate(0);
  box-shadow: 10px 10px 0 var(--sh)
}

dt {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .4rem
}

dt a {
  color: var(--ink)
}

dt a:visited {
  color: var(--ink)
}

dd {
  margin: 0;
  color: var(--muted)
}

.chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .4rem;
  vertical-align: middle;
  margin: .3rem 0
}

.chips .ref {
  border: 2px solid var(--edge);
  border-radius: 8px;
  padding: 0 .7rem;
  font-size: .95rem;
  text-decoration: none;
  background: var(--bg);
  box-shadow: 2px 2px 0 var(--sh)
}

.flash {
  animation: flash 1.8s steps(12)
}

@keyframes flash {

  0%,
  60% {
    outline: 4px solid var(--accent);
    outline-offset: 5px
  }

  100% {
    outline: 4px solid transparent;
    outline-offset: 5px
  }
}

.js .reveal {
  opacity: 0
}

.js .reveal.in {
  animation: pop .45s steps(6) both
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.94)
  }

  to {
    opacity: 1
  }
}

@media (max-width:767.98px) {
  .wins {
    grid-template-columns: 1fr
  }

  .wins .win,
  .wins .wide {
    grid-column: auto
  }
}

@media (max-width:575.98px) {
  .tools {
    justify-content: stretch
  }

  .search {
    max-width: none
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }

  .js .reveal {
    opacity: 1
  }
}

@media (forced-colors:active) {

  .win,
  .results,
  .menu,
  .icon-btn {
    border: 2px solid CanvasText
  }

  .topbar .nav-link[aria-current] {
    outline: 2px solid Highlight
  }
}

/* v4: nav ampliada, buscador terminal, imágenes */
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 8.5rem)
}

.wins .win {
  scroll-margin-top: 8.5rem
}

.tools {
  flex: 1 1 100%;
  justify-content: flex-start
}

.search {
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 30rem
}

.lang {
  margin-left: auto
}

.nav-strip {
  position: relative;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: .35rem;
  padding: .35rem .9rem .5rem;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 .8rem, #000 calc(100% - .8rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 .8rem, #000 calc(100% - .8rem), transparent 100%)
}

.nav-strip .nav-item {
  flex: 0 0 auto;
  scroll-snap-align: center
}

.topbar .nav-link {
  min-height: 40px;
  white-space: nowrap
}

.search .form-control {
  background: #07140d;
  color: #6dff9c;
  border-color: var(--edge);
  font-family: "VT323", ui-monospace, monospace;
  font-size: 1.4rem;
  letter-spacing: .04em;
  caret-color: #6dff9c;
  caret-shape: block;
  text-shadow: 0 0 6px rgba(109, 255, 156, .7);
  box-shadow: 3px 3px 0 var(--sh), inset 0 0 18px rgba(109, 255, 156, .12)
}

.search .form-control:focus {
  background: #07140d;
  color: #6dff9c;
  border-color: #6dff9c;
  box-shadow: 3px 3px 0 #6dff9c, inset 0 0 18px rgba(109, 255, 156, .18)
}

.search .form-control::placeholder {
  color: #3fa869;
  opacity: 1
}

.search .form-control::-webkit-search-cancel-button {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(80deg)
}

.s-ico {
  color: #6dff9c
}

.search .form-control.tick {
  animation: tick .14s steps(3)
}

@keyframes tick {
  0% {
    text-shadow: -2px 0 #ff4d6d, 2px 0 #4dd2ff, 0 0 12px #6dff9c;
    transform: translateX(1px)
  }

  100% {
    text-shadow: 0 0 6px rgba(109, 255, 156, .7);
    transform: none
  }
}

.results {
  background: #07140d;
  border-color: #6dff9c;
  box-shadow: 5px 5px 0 #6dff9c;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
  font-family: "VT323", ui-monospace, monospace
}

.results li {
  color: #6dff9c;
  animation: type .5s steps(18) both
}

.results li strong {
  font-family: "VT323", ui-monospace, monospace;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .03em
}

.results li span {
  color: #3fa869;
  font-size: 1.05rem
}

.results li[aria-selected="true"],
.results li[role=option]:hover {
  background: #6dff9c;
  color: #07140d
}

.results li[aria-selected="true"] span,
.results li[role=option]:hover span {
  color: #07140d
}

.results li.none {
  color: #3fa869
}

@keyframes type {
  from {
    clip-path: inset(0 100% 0 0)
  }

  to {
    clip-path: inset(0 0 0 0)
  }
}

/* v5: contenido ampliado */
.more {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 2px dashed var(--edge);
  color: var(--ink);
  font-size: 1.02rem
}

.dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem
}

.dates li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: baseline
}

.dates b {
  font-family: var(--f-head);
  font-weight: 800;
  color: var(--link)
}

/* v6: responsive + hamburguesa + zoom */
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
  hyphens: auto
}

body {
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word
}

.container {
  padding-left: max(.75rem, env(safe-area-inset-left));
  padding-right: max(.75rem, env(safe-area-inset-right))
}

.wins .win {
  scroll-margin-top: 5.5rem
}

.topbar .container {
  max-width: 1320px
}

.bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: nowrap
}

.burger .bars {
  display: grid;
  gap: 5px;
  width: 22px
}

.burger .bars i {
  display: block;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s steps(4), opacity .2s steps(2)
}

.burger[aria-expanded="true"] .bars i:nth-child(1) {
  transform: translateY(8px) rotate(45deg)
}

.burger[aria-expanded="true"] .bars i:nth-child(2) {
  opacity: 0
}

.burger[aria-expanded="true"] .bars i:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg)
}

.mainnav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 2px solid var(--edge);
  box-shadow: 0 8px 0 var(--sh);
  padding: .6rem max(.75rem, env(safe-area-inset-left));
  max-height: calc(100svh - 4.5rem);
  overflow: auto
}

.mainnav.open {
  display: block;
  animation: drop .3s steps(5)
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }
}

.mainnav .nav {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: .25rem;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
  overflow: visible
}

.mainnav .nav-link {
  min-height: 48px;
  font-size: 1.1rem
}

.tools {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: flex-end;
  margin-left: 0
}

.search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  position: relative
}

.field {
  position: relative
}

.lang {
  margin-left: 0
}

@media (min-width:1280px) {
  .burger {
    display: none
  }

  .mainnav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible
  }

  .mainnav .nav {
    flex-direction: row
  }

  .mainnav .nav-link {
    min-height: 44px;
    font-size: 1rem
  }

  .tools {
    flex: 0 0 auto;
    margin-left: auto
  }

  .search {
    width: 11.5rem;
    flex: 0 0 auto
  }

  .topbar .nav-link {
    padding: .4rem .55rem;
    font-size: .95rem
  }

  .mainnav .nav {
    gap: .15rem
  }
}

@media (max-width:575.98px) {
  .search {
    position: static
  }

  .results {
    left: .75rem;
    right: .75rem;
    top: calc(100% + .25rem)
  }

  .win {
    padding: 3.1rem 1.1rem 1.2rem;
    box-shadow: 5px 5px 0 var(--sh)
  }

  .hero {
    padding: 3.6rem 1rem 2rem
  }

  dt {
    font-size: 1.35rem
  }

  .wins {
    gap: 1.6rem;
    padding: 0 .25rem
  }

  .dates li {
    grid-template-columns: 3.4rem 1fr
  }
}

/* v8: WWW que revela cada palabra por separado */
h1.logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  column-gap: .22em;
  font-size: clamp(3rem, 14vw, 9rem);
  line-height: .95;
  letter-spacing: 0.01em;
  margin: 0 0 1.2rem
}

.wd {
  display: inline-flex;
  align-items: baseline;
  padding-bottom: .08em;
  cursor: pointer;
  outline-offset: 6px
}

.wd:nth-child(1) {
  color: var(--ink)
}

.wd:nth-child(2) {
  color: var(--link)
}

.wd:nth-child(3) {
  color: var(--visited)
}

.wd b {
  font-weight: 800;
  display: inline-block;
  animation: rise .8s steps(8) both
}

.wd:nth-child(2) b {
  animation-delay: .14s
}

.wd:nth-child(3) b {
  animation-delay: .28s
}

.rest {
  display: inline-grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns .45s steps(7)
}

.rest>i {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-style: normal
}

.wd.on .rest,
.wd:focus-within .rest {
  grid-template-columns: 1fr
}

@media (hover:hover) {
  .wd:hover .rest {
    grid-template-columns: 1fr
  }
}

h1.logo::after {
  content: "";
  width: .4em;
  height: .1em;
  background: var(--ink);
  align-self: flex-end;
  margin: 0 0 .12em .05em;
  animation: blink 1s steps(2) infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

h1.logo.glitch {
  animation: glitch .35s steps(3)
}

@keyframes glitch {
  0% {
    text-shadow: -4px 0 #ff4d6d, 4px 0 #4dd2ff
  }

  100% {
    text-shadow: 4px 4px 0 var(--accent)
  }
}

.more.extra {
  border-top: 0;
  margin-top: .55rem;
  padding-top: 0
}

/* v8: banderas en el selector de idioma */
.flag {
  width: 24px;
  height: 16px;
  flex: none;
  display: block;
  margin: 1px;
  box-shadow: 0 0 0 1px var(--edge);
  border-radius: 1px
}

#langBtn {
  width: auto;
  min-width: 44px;
  padding: 0 .6rem;
  display: flex;
  align-items: center;
  gap: .5rem
}

.menu button {
  display: flex;
  align-items: center;
  gap: .7rem
}

.menu {
  min-width: 11.5rem
}

/* v8: botón de tema con 3 estados */
#themeBtn svg {
  display: none
}

#themeBtn svg.cur {
  display: block
}

/* ===== v8: tema RETRO (navegador de 1993 sobre un escritorio de Windows 3.x) ===== */
:root[data-theme="retro"] {
  --bg: #008080;
  --paper: #c0c0c0;
  --ink: #000;
  --muted: #1a1a1a;
  --link: #0000ee;
  --visited: #551a8b;
  --accent: #000080;
  --edge: #000;
  --sh: #000;
  --glow: rgba(0, 0, 128, .16);
  --f-head: "Times New Roman", Times, "Liberation Serif", serif;
  --f-body: "Times New Roman", Times, "Liberation Serif", serif;
  --f-ui: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Verdana, Arial, sans-serif;
  scrollbar-color: #c0c0c0 #e4e4e4;
}

[data-theme="retro"] #web {
  display: none
}

[data-theme="retro"] body {
  background-image: none;
  font-size: 1.15rem;
  line-height: 1.4
}

[data-theme="retro"] ::selection {
  background: #000080;
  color: #fff
}

[data-theme="retro"] a:hover {
  background: #000080;
  color: #fff;
  text-decoration-color: #fff
}

[data-theme="retro"] :focus-visible {
  outline: 2px dotted #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
  border-radius: 0
}

[data-theme="retro"] .skip-link {
  background: #000080;
  color: #fff;
  border-radius: 0;
  font-family: var(--f-ui)
}

[data-theme="retro"] .cue {
  color: #fff
}

/* barra superior = barra de herramientas gris */
[data-theme="retro"] .topbar {
  background: #c0c0c0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 2px solid #000;
  box-shadow: inset 0 1px #fff, inset 0 -1px #808080
}

[data-theme="retro"] .topbar .nav-link {
  border-radius: 0;
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: .95rem
}

[data-theme="retro"] .topbar .nav-link:hover {
  background: #c0c0c0;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080
}

[data-theme="retro"] .topbar .nav-link[aria-current] {
  background: #000080;
  color: #fff;
  border-color: #000;
  box-shadow: none
}

[data-theme="retro"] .mainnav {
  border-radius: 0;
  box-shadow: 0 3px 0 #000
}

[data-theme="retro"] .icon-btn {
  border-radius: 0;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080
}

[data-theme="retro"] .icon-btn:hover {
  background: #d4d0c8;
  color: #000
}

[data-theme="retro"] .icon-btn:active {
  border-color: #000 #fff #fff #000;
  box-shadow: inset 1px 1px #808080;
  transform: none
}

[data-theme="retro"] .flag {
  border-radius: 0
}

/* buscador: campo hundido, como el <ISINDEX> de la época */
[data-theme="retro"] .search .form-control,
[data-theme="retro"] .search .form-control:focus {
  background: #fff;
  color: #000;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  border-radius: 0;
  box-shadow: inset 1px 1px #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  letter-spacing: 0;
  text-shadow: none;
  caret-shape: auto
}

[data-theme="retro"] .search .form-control::placeholder {
  color: #555
}

[data-theme="retro"] .search .form-control::-webkit-search-cancel-button {
  filter: none
}

[data-theme="retro"] .search .form-control.tick {
  animation: none
}

[data-theme="retro"] .s-ico {
  color: #000
}

[data-theme="retro"] .results,
[data-theme="retro"] .menu {
  background: #fff;
  background-image: none;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 3px 3px 0 #000;
  font-family: "Courier New", Courier, monospace
}

[data-theme="retro"] .menu {
  background: #c0c0c0;
  font-family: var(--f-ui)
}

[data-theme="retro"] .results li {
  color: #000;
  border-radius: 0
}

[data-theme="retro"] .results li strong {
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0
}

[data-theme="retro"] .results li span {
  color: #333;
  font-size: .88rem
}

[data-theme="retro"] .results li[aria-selected="true"],
[data-theme="retro"] .results li[role=option]:hover {
  background: #000080;
  color: #fff
}

[data-theme="retro"] .results li[aria-selected="true"] span,
[data-theme="retro"] .results li[role=option]:hover span {
  color: #fff
}

[data-theme="retro"] .results li.none {
  color: #333
}

[data-theme="retro"] .menu button {
  border-radius: 0;
  font-family: var(--f-ui);
  font-weight: 400;
  color: #000
}

[data-theme="retro"] .menu button:hover,
[data-theme="retro"] .menu button[aria-current="true"] {
  background: #000080;
  color: #fff
}

[data-theme="retro"] .menu button[aria-current="true"] {
  font-weight: 700
}

/* ventanas = ventanas de Windows 3.x con título de archivo */
[data-theme="retro"] .win {
  border-radius: 0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080, 4px 4px 0 #000;
  padding-top: 2.9rem;
  transition: none
}

[data-theme="retro"] .hero {
  padding-top: 3.4rem
}

[data-theme="retro"] .win::before {
  inset: 3px 3px auto 3px;
  height: 1.5rem;
  border: 0;
  border-radius: 0;
  background: #000080;
  color: #fff;
  content: "";
  font: 700 .85rem/1.5rem var(--f-ui);
  letter-spacing: 0;
  text-align: left;
  padding-left: 2.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

[data-theme="retro"] .hero::before {
  height: 1.5rem
}

[data-theme="retro"] .win::after {
  left: 5px;
  top: 5px;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  border-radius: 0;
  background: linear-gradient(#000, #000) center/55% 2px no-repeat, #c0c0c0;
  box-shadow: inset -1px -1px #808080
}

[data-theme="retro"] .hero::after {
  top: 5px
}

[data-theme="retro"] #top::before {
  content: "TheProject.html"
}

[data-theme="retro"] #e1::before {
  content: "DataSources/Top.html"
}

[data-theme="retro"] #e2::before {
  content: "Help.html"
}

[data-theme="retro"] #e3::before {
  content: "Status.html"
}

[data-theme="retro"] #e4::before {
  content: "Technical.html"
}

[data-theme="retro"] #e5::before {
  content: "Bibliography.html"
}

[data-theme="retro"] #e6::before {
  content: "People.html"
}

[data-theme="retro"] #e7::before {
  content: "History.html"
}

[data-theme="retro"] #e8::before {
  content: "Helping.html"
}

[data-theme="retro"] #e9::before {
  content: "README.html"
}

[data-theme="retro"] .wins .win:nth-child(odd),
[data-theme="retro"] .wins .win:nth-child(even),
[data-theme="retro"] .wins .win:hover {
  transform: none;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080, 4px 4px 0 #000
}

[data-theme="retro"] h1 {
  text-shadow: none
}

[data-theme="retro"] h1.logo {
  letter-spacing: -.02em
}

[data-theme="retro"] .wd b {
  font-weight: 700
}

[data-theme="retro"] dt {
  font-weight: 700;
  letter-spacing: 0
}

[data-theme="retro"] .intro-links {
  border-top: 3px groove #808080
}

[data-theme="retro"] .more {
  border-top: 2px groove #808080
}

[data-theme="retro"] .chips .ref {
  border-radius: 0;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080;
  font-family: var(--f-ui);
  font-size: .85rem
}

/* v10: pie de página */
.foot {
  position: relative;
  background: var(--paper);
  border-top: 2px solid var(--edge);
  margin-top: 3.5rem;
  padding: 3.4rem 0 1.8rem
}

.foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: .9rem;
  border-bottom: 2px solid var(--edge);
  background: repeating-linear-gradient(var(--link) 0 2px, var(--paper) 2px 5px)
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: start
}

.foot-brand {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 .6rem
}

.foot-tag {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
  max-width: 17rem
}

.totop {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--sh);
  font-family: var(--f-head);
  font-weight: 700;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .2s
}

.totop:visited {
  color: var(--ink)
}

.totop:hover {
  background: var(--accent);
  color: #14142b
}

.totop:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--sh)
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.8rem 2.5rem
}

.foot-h {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
  padding-bottom: .55rem;
  border-bottom: 2px dashed var(--edge)
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.25;
  padding: .2rem 0
}

.foot-links a:visited {
  color: var(--link)
}

.foot-links a:hover {
  color: var(--ink)
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 3px dashed var(--edge)
}

.addr {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .9rem;
  max-width: 100%;
  padding: .4rem .95rem .45rem;
  background: #07140d;
  color: #6dff9c;
  border: 2px solid var(--edge);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--sh);
  font-family: "VT323", ui-monospace, monospace;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: .03em;
  text-decoration: none;
  overflow-wrap: anywhere
}

.addr:visited {
  color: #6dff9c
}

.addr-k {
  color: #3fa869
}

.addr-u {
  text-shadow: 0 0 6px rgba(109, 255, 156, .6)
}

.addr:hover {
  background: #6dff9c;
  color: #07140d
}

.addr:hover .addr-k,
.addr:hover .addr-u {
  color: #07140d;
  text-shadow: none
}

.foot-note {
  margin: 0;
  color: var(--muted);
  font-size: .92rem
}

@media (max-width:767.98px) {
  .foot-in {
    grid-template-columns: 1fr
  }

  .foot {
    margin-top: 2.5rem
  }

  .foot-tag {
    max-width: none
  }
}

[data-theme="retro"] .foot {
  background: #c0c0c0;
  border-top: 2px solid #000;
  box-shadow: inset 0 2px #fff, inset 0 3px #dfdfdf
}

[data-theme="retro"] .foot::before {
  height: 1.1rem;
  background: #000080;
  border-bottom: 2px solid #000
}

[data-theme="retro"] .foot-brand {
  letter-spacing: 0;
  font-weight: 700
}

[data-theme="retro"] .foot-h {
  font-family: var(--f-ui);
  font-weight: 700;
  border-bottom: 2px groove #808080
}

[data-theme="retro"] .foot-bar {
  border-top: 3px groove #808080
}

[data-theme="retro"] .totop {
  border-radius: 0;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
  font-family: var(--f-ui);
  font-weight: 400
}

[data-theme="retro"] .totop:hover {
  background: #d4d0c8;
  color: #000
}

[data-theme="retro"] .totop:active {
  border-color: #000 #fff #fff #000;
  box-shadow: inset 1px 1px #808080;
  transform: none
}

[data-theme="retro"] .foot-links a {
  font-weight: 400
}

[data-theme="retro"] .foot-links a:hover {
  color: #fff
}

[data-theme="retro"] .addr,
[data-theme="retro"] .addr:visited {
  background: #fff;
  color: #000;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  border-radius: 0;
  box-shadow: inset 1px 1px #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  letter-spacing: 0
}

[data-theme="retro"] .addr-k {
  color: #555
}

[data-theme="retro"] .addr-u {
  text-shadow: none;
  text-decoration: underline;
  color: #0000ee
}

[data-theme="retro"] .addr:hover {
  background: #000080;
  color: #fff
}

[data-theme="retro"] .addr:hover .addr-k,
[data-theme="retro"] .addr:hover .addr-u {
  color: #fff
}

/* v10: cards con icono, texto y nota */
.wins .win {
  display: flex;
  flex-direction: column
}

.wins dt {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .7rem
}

.ico {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: .55rem;
  box-sizing: border-box;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background: var(--bar);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--sh);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round
}

.wins .win:nth-child(3n+2) .ico {
  color: #14142b
}

.wins .win>.more:not(.extra) {
  margin-bottom: 1rem
}

.wins .win>.more.extra {
  margin-top: auto;
  padding: .65rem .9rem;
  border: 0;
  border-left: 4px solid var(--bar);
  border-radius: 0 8px 8px 0;
  background: var(--glow);
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5
}

.wins .win>.more.extra::before {
  content: none
}

.dates {
  gap: .6rem
}

.dates li {
  padding-bottom: .55rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--edge) 45%, transparent)
}

.dates li:last-child {
  padding-bottom: 0;
  border-bottom: 0
}

[data-theme="retro"] .ico {
  border-radius: 0;
  background: #c0c0c0;
  color: #000;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080
}

[data-theme="retro"] .wins .win:nth-child(3n+2) .ico {
  color: #000
}

[data-theme="retro"] .wins .win>.more.extra {
  background: #fff;
  color: #000;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  border-radius: 0
}

[data-theme="retro"] .dates li {
  border-bottom-color: #808080
}

@media (forced-colors:active) {
  .ico {
    forced-color-adjust: none;
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText
  }

  .addr {
    border-color: CanvasText
  }
}
