:root {
  color-scheme: light;
  --bg: #05005f;
  --bg-dot: #ffff66;
  --text: #000;
  --link: #0000ee;
  --visited: #551a8b;
  --panel: #ffffcc;
  --panel-2: #ccffff;
  --hot: #ff00cc;
  --acid: #66ff00;
  --warning: #ffcc00;
  --border-dark: #000080;
  --border-light: #fff;
  --desktop: #008080;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, var(--bg-dot) 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, .9) 1px, transparent 2px);
  background-position: 0 0, 15px 15px;
  background-size: 30px 30px;
}

body.theme-aqua {
  --bg: #007b7b;
  --bg-dot: #fff;
  --panel: #e6ffff;
  --panel-2: #ffffcc;
  --hot: #ff3333;
}

body.theme-lava {
  --bg: #3b0000;
  --bg-dot: #ffcc00;
  --panel: #fff2c2;
  --panel-2: #ffd6ec;
  --hot: #ff0000;
}

body.theme-matrix {
  --bg: #000;
  --bg-dot: #00aa22;
  --panel: #d9ffd9;
  --panel-2: #baffba;
  --hot: #00aa22;
  --border-dark: #003d0d;
}

a {
  color: var(--link);
  font-weight: 700;
}

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

img,
svg {
  max-width: 100%;
}

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

button {
  min-height: 38px;
  padding: .4rem .65rem;
  color: #000;
  background: #dcdcdc;
  border-width: 3px;
  border-style: solid;
  border-color: var(--border-light) #404040 #404040 var(--border-light);
  font-weight: 700;
  cursor: pointer;
}

button:active {
  border-color: #404040 var(--border-light) var(--border-light) #404040;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ff00ff;
  outline-offset: 2px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: .4rem;
  border: 3px inset #dcdcdc;
  background: #fff;
  color: #000;
}

textarea {
  resize: vertical;
}

hr {
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: .5rem;
  transform: translateY(-160%);
  padding: .5rem .8rem;
  color: #000;
  background: #ffff00;
  z-index: 10;
}

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

.page-shell {
  width: min(1180px, calc(100% - 1rem));
  margin: .5rem auto;
}

.top-banner,
.box,
.retro-nav,
.footer {
  border: 5px ridge var(--border-light);
  background: var(--panel);
}

.top-banner {
  overflow: hidden;
  padding: 0 1rem 1rem;
  text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 9px, transparent 10px 18px),
    linear-gradient(90deg, #ff00cc, #ffff00, #00ffff, #66ff00, #ff00cc);
}

.utility-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -1rem .5rem;
  padding: .3rem .55rem;
  color: #00ff00;
  background: #000;
  font: 700 .78rem/1.25 "Courier New", monospace;
}

.star-row {
  color: #000080;
  font-size: 1.25rem;
  text-shadow: 2px 2px #fff;
}

h1,
h2,
h3,
h4,
p,
span,
small,
td,
th,
summary {
  overflow-wrap: anywhere;
}

h1 {
  margin: .2rem 0;
  color: #000080;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: .95;
  letter-spacing: 0;
  text-shadow: 3px 3px #fff, 6px 6px var(--hot);
}

h2 {
  margin: 0 0 .75rem;
  color: #000080;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 .45rem;
  color: #800000;
  line-height: 1.2;
}

.subtitle {
  max-width: 58rem;
  margin: .65rem auto 1rem;
  font-weight: 700;
}

.marquee {
  overflow: hidden;
  border: 3px inset #fff;
  color: #00ff00;
  background: #000;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  min-width: 100%;
  padding: .35rem 0;
  animation: marquee 19s linear infinite;
}

.badge-strip {
  display: flex;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .8rem;
}

.micro-badge,
.web-button {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 31px;
  border: 2px outset #ddd;
  color: #fff;
  font: 900 10px/1 "Arial Black", Impact, sans-serif;
  text-align: center;
  text-shadow: 1px 1px #000;
}

.badge-html { background: #e34c26; }
.badge-800 { background: #003399; }
.badge-nojs { color: #00ff00; background: #000; }
.badge-mail { background: #800080; }
.badge-free { color: #000; background: #ffff00; text-shadow: none; }
.badge-czech { background: linear-gradient(#fff 0 50%, #d7141a 50%); }

.retro-nav {
  display: flex;
  justify-content: center;
  gap: .3rem;
  flex-wrap: wrap;
  margin: .5rem 0;
  padding: .5rem;
  background: var(--panel-2);
}

.retro-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: .35rem .62rem;
  border: 3px outset #dcdcdc;
  background: #ffff00;
  text-decoration: none;
  font-size: .84rem;
}

.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: .5rem;
}

.sidebar,
.content {
  display: grid;
  gap: .5rem;
  align-content: start;
  min-width: 0;
}

.box {
  min-width: 0;
  padding: .8rem;
}

.sidebar .box h2 {
  margin: -.8rem -.8rem .7rem;
  padding: .35rem .45rem;
  color: #fff;
  background: #000080;
  font: 800 .92rem/1.2 Verdana, sans-serif;
  text-align: center;
}

.counter-box,
.construction-box,
.icq-box,
.best-viewed-box,
.awards-sidebar,
.webmaster-box {
  text-align: center;
}

.counter {
  display: block;
  margin: .5rem auto;
  padding: .35rem .5rem;
  border: 4px inset #777;
  color: #ff3300;
  background: #000;
  font: 700 1.65rem/1.1 "Courier New", monospace;
  letter-spacing: .08em;
}

.construction {
  display: block;
  width: 100%;
  border: 3px dashed #000;
  background: #fff;
}

.blink {
  color: #f00;
  font-weight: 800;
  animation: blink 1s steps(2, start) infinite;
}

.site-stats {
  margin: .8rem 0 0;
  border: 2px inset #ddd;
  background: #fff;
}

.site-stats div {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .2rem .35rem;
}

.site-stats div + div {
  border-top: 1px dotted #777;
}

.site-stats dd {
  margin: 0;
  font-weight: 800;
}

.icq-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem;
  color: #006600;
  background: #fff;
  border: 3px inset #ddd;
}

.icq-status span {
  color: #4caf00;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 1px 1px #000;
}

.tiny-status,
.small-copy {
  font-size: .78rem;
}

.search-box button,
.poll-box button,
.icq-box button {
  width: 100%;
  margin-top: .55rem;
}

.search-box label {
  text-align: center;
}

.poll-box fieldset {
  margin: 0;
  padding: .5rem;
  border: 2px groove #ddd;
}

.poll-box legend {
  font-size: .8rem;
  font-weight: 800;
}

.poll-box label {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: .3rem 0;
  font-size: .84rem;
}

.poll-box input {
  width: auto;
  min-height: auto;
}

.poll-result {
  display: grid;
  gap: .25rem;
  margin-top: .65rem;
}

.poll-bar {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 32px;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
}

.poll-bar i {
  display: block;
  height: 10px;
  border: 1px solid #000;
  background: #00aaff;
}

.ie-badge {
  display: grid;
  place-items: center;
  min-height: 100px;
  margin: .5rem 0;
  border: 4px outset #dcdcdc;
  color: #fff;
  background: radial-gradient(circle at 35% 35%, #00ccff, #003399 58%, #001149);
  text-align: center;
}

.ie-badge strong {
  font: italic 900 3rem/.8 Georgia, serif;
}

.ie-badge span,
.ie-badge small {
  font-size: .72rem;
  font-weight: 800;
}

.awards-sidebar img,
.webmaster-box img {
  display: block;
  width: min(160px, 100%);
  margin: .35rem auto;
}

.hero-window {
  padding-top: 0;
}

.window-title,
.section-title-bar,
.win-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  background: linear-gradient(90deg, #000080, #1084d0);
}

.window-title {
  margin: 0 -.8rem .8rem;
  padding: .35rem .55rem;
  font: 700 .84rem/1.2 "Courier New", monospace;
}

.homepage-intro {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.5fr);
  gap: 1rem;
  align-items: center;
}

.homepage-intro > img {
  width: 100%;
  border: 3px outset #ddd;
  background: #000;
  image-rendering: pixelated;
}

.welcome-rainbow {
  margin: 0 0 .55rem;
  color: #f00;
  font: 900 clamp(1.25rem, 4vw, 2.1rem)/1.1 "Arial Black", Impact, sans-serif;
  text-align: center;
  text-shadow: 2px 0 #ff0, 4px 0 #00f;
  animation: hue 2s steps(6, end) infinite;
}

.signature {
  color: #800080;
  font-family: "Courier New", monospace;
  font-weight: 700;
  text-align: center;
}

.rainbow-rule {
  height: 8px;
  margin: 1rem 0;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.whats-new h3 {
  padding: .25rem;
  color: #ff0;
  background: #800080;
  text-align: center;
}

.whats-new table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.whats-new th,
.whats-new td {
  padding: .4rem;
  border: 2px groove #ddd;
  text-align: left;
  vertical-align: top;
}

.whats-new th {
  width: 118px;
  color: #800000;
  background: var(--panel-2);
}

.section-title-bar {
  margin: -.8rem -.8rem .9rem;
  padding: .4rem .55rem;
}

.section-title-bar h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.section-title-bar span {
  font: 700 .72rem/1.2 "Courier New", monospace;
}

.centered-copy {
  text-align: center;
  font-weight: 700;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.artifact-grid details {
  min-width: 0;
  border: 3px groove #dcdcdc;
  background: var(--panel-2);
}

.artifact-grid summary {
  padding: .55rem;
  color: #000080;
  background: #ffff00;
  font-weight: 800;
  cursor: pointer;
}

.artifact-grid details[open] summary {
  color: #fff;
  background: #800080;
}

.artifact-grid p {
  margin: 0;
  padding: .65rem;
  font-size: .88rem;
}

.fake-browser {
  border: 3px outset #ddd;
  background: #c0c0c0;
}

.browser-toolbar {
  display: grid;
  grid-template-columns: 42px 42px 42px auto minmax(150px, 1fr);
  gap: .3rem;
  align-items: center;
  padding: .45rem;
  border-bottom: 3px groove #ddd;
}

.browser-toolbar button {
  min-height: 34px;
  padding: .15rem;
  font-size: 1.15rem;
}

.browser-toolbar label {
  margin: 0;
}

.browser-toolbar input {
  min-height: 34px;
  padding: .25rem;
  font-size: .8rem;
}

.frameset {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  min-height: 320px;
  border: 5px inset #ddd;
  background: #fff;
}

.frameset nav {
  padding: .7rem;
  border-right: 5px ridge #808080;
  color: #00ff00;
  background: #000060;
}

.frameset nav strong {
  display: block;
  margin-bottom: .6rem;
  color: #ff0;
  text-align: center;
}

.frameset nav button {
  width: 100%;
  margin-bottom: .35rem;
  min-height: 34px;
  color: #00f;
  background: #0ff;
  text-decoration: underline;
}

.frameset article {
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(255, 0, 255, .08) 50%, transparent 50%),
    #ffffe0;
  background-size: 12px 12px;
}

.frameset article h3 {
  color: #f00;
  font-family: "Comic Sans MS", cursive;
  font-size: 1.55rem;
  text-align: center;
}

.browser-status {
  padding: .22rem .45rem;
  border-top: 3px groove #ddd;
  background: #eee;
  font-size: .75rem;
}

.catalog-section {
  background: #fff;
}

.portal-logo {
  text-align: center;
  font: italic 900 clamp(2.3rem, 8vw, 4.5rem)/.85 Georgia, serif;
  letter-spacing: -2px;
}

.portal-logo span { color: #d00000; }
.portal-logo b { color: #0000b0; }

.catalog-section > h2 {
  color: #555;
  font-size: .95rem;
  text-align: center;
}

.catalog-search {
  max-width: 650px;
  margin: 1rem auto;
  padding: .7rem;
  border: 2px solid #777;
  background: #ffffcc;
  text-align: center;
}

.catalog-search label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 800;
}

.catalog-search > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .4rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.directory-grid section {
  min-width: 0;
  padding-bottom: .55rem;
  border-bottom: 1px dotted #777;
}

.directory-grid h3 {
  margin: 0;
  color: #0000cc;
  text-decoration: underline;
}

.directory-grid small {
  display: block;
  color: #777;
}

.catalog-results {
  margin-top: 1rem;
}

.catalog-result {
  padding: .45rem 0;
  border-bottom: 1px dotted #777;
}

.catalog-result a {
  display: block;
  font-size: 1rem;
}

.catalog-result small {
  color: #008000;
}

.banner-ad {
  position: relative;
  width: min(468px, 100%);
  min-height: 60px;
  display: grid;
  align-content: center;
  margin: 1.2rem auto 0;
  padding: .4rem 3.2rem;
  overflow: hidden;
  border: 3px outset #ddd;
  color: #fff;
  background: repeating-linear-gradient(135deg, #f00 0 12px, #00f 13px 25px);
  text-align: center;
  text-shadow: 2px 2px #000;
  animation: banner-flash .8s steps(2, end) infinite;
}

.banner-ad strong,
.banner-ad small {
  display: block;
}

.banner-burst {
  position: absolute;
  left: .2rem;
  top: .2rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #000;
  background: #ff0;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 900;
  transform: rotate(-12deg);
}

.download-warning {
  padding: .4rem;
  color: #f00;
  background: #ff0;
  font-weight: 800;
  text-align: center;
}

.download-table {
  border: 3px inset #ddd;
}

.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 105px 105px;
  align-items: center;
  gap: .55rem;
  padding: .5rem;
  background: #fff;
}

.download-row:nth-child(odd) {
  background: var(--panel-2);
}

.download-row + .download-row {
  border-top: 1px solid #777;
}

.download-row > span:first-child {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: .45rem;
  min-width: 0;
  color: #0000cc;
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.download-row img {
  grid-row: 1 / span 2;
  width: 32px;
}

.download-row small {
  color: #555;
  font-family: Verdana, sans-serif;
  font-weight: 400;
}

.download-head {
  color: #fff;
  background: #000080 !important;
  font-size: .75rem;
  font-weight: 800;
}

.download-head > span:first-child {
  display: block;
  color: #fff;
  font-family: inherit;
}

.download-row button {
  min-width: 0;
  padding-inline: .3rem;
  font-size: .72rem;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .55rem;
}

.fake-gif {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px double #000;
  color: #000;
  font: 900 clamp(.75rem, 2.2vw, 1.45rem)/1 Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-align: center;
  text-shadow: 2px 2px #fff;
}

.fake-gif img {
  width: 75%;
}

.flame {
  background: repeating-radial-gradient(circle, #ff0 0 10px, #f60 11px 20px, #f00 21px 30px);
  animation: wobble .45s steps(2, end) infinite;
}

.mail {
  background: repeating-linear-gradient(45deg, #fff 0 10px, #0ff 11px 20px);
  animation: pulse .8s steps(2, end) infinite;
}

.skull {
  color: #0f0;
  background: #000;
  animation: invert .9s steps(2, end) infinite;
}

.cdrom {
  background: conic-gradient(#fff, #0ff, #f0f, #ff0, #fff);
  animation: spin 1.8s linear infinite;
}

.new-sign {
  color: #ff0;
  background: #f00;
  animation: grow .6s steps(2, end) infinite;
}

.welcome {
  background: linear-gradient(#f0f, #0ff, #ff0);
  animation: hue 1.4s steps(4, end) infinite;
}

.arrow-gif {
  color: #ff0;
  background: #00f;
  animation: slide-arrow .8s steps(3, end) infinite;
}

.globe-gif {
  background: #000;
}

.globe-gif img {
  animation: spin 3s linear infinite;
}

.guestbook-gif {
  color: #fff;
  background: #800080;
  animation: pulse .9s steps(2, end) infinite;
}

.email-gif {
  color: #fff;
  background: #f60;
  font-size: 2.5rem;
  animation: wobble .6s steps(2, end) infinite;
}

.java-gif {
  color: #f60;
  background: #000;
  text-shadow: 1px 1px #fff;
}

.wow-gif {
  color: #f0f;
  background: #ff0;
  animation: invert .5s steps(2, end) infinite;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  min-height: 260px;
  border: 4px inset #ddd;
  background: #fff;
}

.chat-window {
  padding: .65rem;
  border-right: 3px groove #ddd;
  font: 400 .86rem/1.4 "Courier New", monospace;
}

.chat-window p {
  margin: 0 0 .45rem;
}

.chat-window time {
  color: #777;
}

.nick-blue { color: #0000cc; }
.nick-red { color: #c00; }
.nick-green { color: #008000; }
.nick-purple { color: #800080; }

.chat-users {
  display: grid;
  align-content: start;
  gap: .2rem;
  padding: .5rem;
  background: #e8e8e8;
  font-size: .8rem;
}

.chat-users strong {
  margin: -.5rem -.5rem .35rem;
  padding: .3rem;
  color: #fff;
  background: #000080;
  text-align: center;
}

.chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: center;
  margin-top: .55rem;
}

.chat-form label {
  margin: 0;
  font-weight: 800;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}

.tool-grid article,
.guestbook-entry {
  min-width: 0;
  padding: .65rem;
  border: 3px groove #dcdcdc;
  background: var(--panel-2);
}

.tool-grid article {
  display: flex;
  flex-direction: column;
}

.tool-grid article p {
  flex: 1;
  font-size: .85rem;
}

.tool-grid button {
  width: 100%;
}

label {
  display: block;
  margin: .6rem 0 .22rem;
  font-weight: 800;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 88px);
  justify-content: center;
  gap: 8px;
}

.web-button {
  border: 1px solid #000;
}

.wb-cool { background: #00aaff; }
.wb-html { background: #f60; }
.wb-css { color: #0f0; background: #000; }
.wb-coffee { background: #603000; }
.wb-czech { background: linear-gradient(#fff 0 50%, #d7141a 50%); }
.wb-modem { background: #800080; }
.wb-free { color: #000; background: #ff0; text-shadow: none; }
.wb-pixel { background: repeating-linear-gradient(45deg, #f0f 0 4px, #00f 5px 8px); }
.wb-y2k { background: #008000; }
.wb-book { background: #800000; }
.wb-ring { background: #0044aa; }
.wb-source { color: #0f0; background: #111; }

.guestbook-columns {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  gap: .75rem;
  align-items: start;
}

.guestbook button {
  width: 100%;
  margin-top: .6rem;
}

.guestbook button:disabled {
  cursor: wait;
  opacity: .65;
}

.guestbook-delivery {
  margin: .55rem 0 0;
  color: #333;
  font-size: .76rem;
  line-height: 1.4;
}

.feedback-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.feedback-status {
  margin: .65rem 0 0;
  padding: .45rem .55rem;
  border: 2px inset #ddd;
  color: #000;
  background: #fff;
  font-weight: 700;
}

.feedback-status[data-state="success"] {
  color: #006600;
  background: #e8ffe8;
}

.feedback-status[data-state="error"] {
  color: #800000;
  background: #fff0f0;
}

.guestbook-archive > p {
  margin: 0 0 .55rem;
  color: #800000;
  font-family: "Courier New", monospace;
  font-size: .78rem;
}

.guestbook-list {
  display: grid;
  gap: .5rem;
}

.guestbook-entry strong {
  color: #000080;
}

.guestbook-entry time {
  display: block;
  color: #800000;
  font-size: .78rem;
  font-weight: 700;
}

.guestbook-entry p {
  margin-bottom: .3rem;
}

.guestbook-entry a {
  display: block;
  font-size: .75rem;
}

.link-list {
  margin: 0;
  padding-left: 1.4rem;
}

.link-list li {
  padding: .35rem 0;
  border-bottom: 1px dotted #777;
}

.new-label {
  color: #f00;
  font-weight: 900;
  animation: blink .8s steps(2, start) infinite;
}

.webring-section {
  text-align: center;
  background: var(--panel-2);
}

.webring-emblem {
  padding: .5rem;
  border: 3px double #000;
  color: #ff0;
  background: #800080;
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.webring-controls {
  display: flex;
  justify-content: center;
  gap: .45rem;
  flex-wrap: wrap;
}

.footer {
  margin-top: .5rem;
  padding: .75rem;
  background: var(--panel-2);
  text-align: center;
}

.footer-counter {
  width: min(470px, 100%);
  margin: 0 auto .5rem;
  padding: .3rem;
  border: 3px inset #ddd;
  color: #0f0;
  background: #000;
  font-family: "Courier New", monospace;
}

.win-dialog {
  width: min(500px, calc(100% - 1rem));
  padding: 3px;
  border: 3px outset #ddd;
  color: #000;
  background: #c0c0c0;
}

.win-dialog::backdrop {
  background: rgba(0, 0, 0, .45);
}

.win-title {
  min-height: 30px;
  padding-left: .45rem;
}

.win-title button {
  width: 28px;
  min-height: 26px;
  padding: 0;
  margin: 2px;
}

.win-body {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  padding: 1rem;
}

.win-body img {
  width: 58px;
}

.progress-track {
  height: 24px;
  padding: 2px;
  border: 3px inset #ddd;
  background: #fff;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #000080 0 12px, transparent 13px 15px);
}

.win-actions {
  display: flex;
  justify-content: end;
  padding: .5rem;
}

.popup-body {
  padding: 1rem;
  text-align: center;
}

.popup-burst {
  color: #f00;
  font: 900 2rem/1 Impact, sans-serif;
  animation: grow .5s steps(2, end) infinite;
}

.popup-body button {
  min-width: 120px;
}

.game-sidebar-box img,
.museum-sidebar-box img {
  width: 74px;
  image-rendering: pixelated;
}

.sidebar-game-link,
.retro-game-button,
.sidebar-museum-link,
.retro-museum-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: .45rem .75rem;
  border: 4px outset #dcdcdc;
  color: #000;
  background: #ffff00;
  font: 900 .82rem/1.1 "Arial Black", Impact, sans-serif;
  text-decoration: none;
}

.sidebar-game-link:active,
.retro-game-button:active,
.sidebar-museum-link:active,
.retro-museum-button:active {
  border-style: inset;
}

.museum-sidebar-box {
  color: #fff;
  background: #000080;
}

.museum-sidebar-box h2 {
  color: #ffff00;
  background: #800080;
}

.sidebar-museum-link {
  color: #000;
  background: #00ffff;
}

.modern-museum-zone {
  color: #fff;
  background: #001a4d;
}

.modern-museum-zone .section-title-bar {
  background: linear-gradient(90deg, #006699, #660099);
}

.modern-museum-promo {
  display: grid;
  grid-template-columns: minmax(150px, .42fr) minmax(0, 1.58fr);
  gap: 1.1rem;
  align-items: center;
}

.modern-museum-promo > img {
  width: min(240px, 100%);
  margin-inline: auto;
  image-rendering: pixelated;
  filter: drop-shadow(7px 7px 0 #000);
  animation: hue 3s steps(4, end) infinite;
}

.modern-museum-promo h2 {
  margin: .2rem 0 .5rem;
  color: #00ffff;
  font: 900 clamp(1.8rem, 4vw, 3rem)/.95 "Arial Black", Impact, sans-serif;
  text-shadow: 3px 3px #800080;
}

.modern-museum-promo ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem 1rem;
  padding-left: 1.2rem;
  color: #ffff00;
  font: 700 .8rem/1.35 "Courier New", monospace;
}

.modern-museum-new {
  margin: 0;
  color: #00ff66;
  font-weight: 900;
}

.retro-museum-button {
  color: #000;
  background: #00ffff;
}

.museum-ticker {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
  margin: .9rem -.35rem -.35rem;
  padding: .4rem;
  border: 2px inset #c0c0c0;
  color: #000;
  background: #c0c0c0;
  font: 700 .7rem/1.2 "Courier New", monospace;
}

.game-zone {
  background: #000;
  color: #00ff66;
}

.game-zone .section-title-bar {
  background: linear-gradient(90deg, #800080, #0000cc);
}

.game-promo {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(250px, .85fr);
  gap: 1rem;
  align-items: center;
}

.game-preview {
  position: relative;
  display: block;
  border: 5px ridge #c0c0c0;
  background: #07100d;
}

.game-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-preview span {
  position: absolute;
  right: .4rem;
  bottom: .4rem;
  padding: .3rem .5rem;
  border: 3px outset #fff;
  color: #000;
  background: #ffff00;
  font: 900 .75rem/1 "Arial Black", Impact, sans-serif;
  animation: blink .9s steps(2, start) infinite;
}

.game-promo-copy h2 {
  margin-bottom: .4rem;
  color: #ff00ff;
  font: 900 clamp(1.9rem, 5vw, 3.2rem)/.9 "Arial Black", Impact, sans-serif;
  text-shadow: 2px 2px #0000ff;
}

.game-new {
  margin: 0 0 .4rem;
  color: #ffff00;
  font-weight: 900;
  text-align: center;
}

.game-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem .75rem;
  padding-left: 1.2rem;
  color: #fff;
  font-family: "Courier New", monospace;
}

.game-launch-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.retro-game-button {
  color: #000;
  background: #00ff66;
}

.game-launch-row > a:not(.retro-game-button) {
  color: #00ffff;
}

.game-requirements {
  color: #c0c0c0;
  font: 700 .75rem/1.45 "Courier New", monospace;
}

.game-ticker {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
  margin: .9rem -.35rem -.35rem;
  padding: .4rem;
  border: 2px inset #c0c0c0;
  color: #000;
  background: #c0c0c0;
  font: 700 .7rem/1.2 "Courier New", monospace;
}

.retro-cookie-panel {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 2000;
  display: none;
  width: min(760px, calc(100% - 1rem));
  transform: translateX(-50%);
  border: 4px outset #dcdcdc;
  color: #000;
  background: #c0c0c0;
  box-shadow: 8px 8px 0 rgba(0,0,0,.55);
  font-family: Verdana, Arial, sans-serif;
}

.retro-cookie-panel.is-visible { display: block; }
.retro-cookie-titlebar { display: flex; align-items: center; justify-content: space-between; padding: .25rem .35rem; color: #fff; background: linear-gradient(90deg, #000080, #1084d0); }
.retro-cookie-titlebar button { width: 30px; min-height: 28px; padding: 0; }
.retro-cookie-main { display: grid; grid-template-columns: 58px 1fr; gap: .75rem; align-items: center; padding: .8rem; }
.retro-cookie-main h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.retro-cookie-main p { margin: 0; font-size: .82rem; }
.retro-cookie-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 3px inset #ddd; color: #00ff00; background: #000; font: 900 1.1rem/1 "Courier New", monospace; }
.retro-cookie-settings { margin: 0 .8rem .8rem; padding: .7rem; border: 3px inset #ddd; background: #efefef; }
.retro-cookie-settings label { display: flex; align-items: center; gap: .45rem; margin: .4rem 0 .1rem; }
.retro-cookie-settings input { width: auto; min-height: auto; }
.retro-cookie-settings small { display: block; margin-left: 1.5rem; color: #444; }
.retro-cookie-provider { font-size: .75rem; }
.retro-cookie-actions { display: flex; justify-content: flex-end; gap: .45rem; flex-wrap: wrap; padding: .6rem .8rem; border-top: 2px groove #ddd; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes blink {
  50% { visibility: hidden; }
}

@keyframes wobble {
  50% { transform: rotate(-3deg) scale(1.03); }
}

@keyframes pulse {
  50% { filter: saturate(2) hue-rotate(90deg); }
}

@keyframes invert {
  50% { filter: invert(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes grow {
  50% { transform: scale(1.12); }
}

@keyframes hue {
  50% { filter: hue-rotate(180deg); }
}

@keyframes slide-arrow {
  50% { transform: translateX(12px); }
}

@keyframes banner-flash {
  50% { filter: hue-rotate(100deg) invert(.12); }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gif-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .homepage-intro,
  .guestbook-columns {
    grid-template-columns: 1fr;
  }

  .homepage-intro > img {
    width: min(340px, 100%);
    margin: 0 auto;
  }

  .artifact-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .download-head {
    display: none;
  }

  .download-row {
    grid-template-columns: 1fr 1fr;
  }

  .download-row > span:first-child {
    grid-column: 1 / -1;
  }

  .download-row button {
    width: 100%;
  }

  .gif-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-promo {
    grid-template-columns: 1fr;
  }

  .modern-museum-promo {
    grid-template-columns: 1fr;
  }

  .modern-museum-promo > img {
    width: min(180px, 60%);
  }

  .game-features {
    grid-template-columns: 1fr;
  }

  .modern-museum-promo ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .page-shell {
    width: calc(100% - .4rem);
    margin-block: .2rem;
  }

  .utility-line {
    align-items: center;
    flex-direction: column;
    gap: .2rem;
  }

  .star-row {
    font-size: .9rem;
  }

  .sidebar,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .content {
    order: 1;
  }

  .browser-toolbar {
    grid-template-columns: repeat(3, 40px) minmax(0, 1fr);
  }

  .browser-toolbar label {
    display: none;
  }

  .browser-toolbar input {
    grid-column: 1 / -1;
  }

  .frameset {
    grid-template-columns: 1fr;
  }

  .frameset nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem;
    border-right: 0;
    border-bottom: 5px ridge #808080;
  }

  .frameset nav strong {
    grid-column: 1 / -1;
  }

  .catalog-search > div,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-window {
    border-right: 0;
    border-bottom: 3px groove #ddd;
  }

  .chat-users {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-users strong {
    grid-column: 1 / -1;
  }

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

  .download-row {
    grid-template-columns: 1fr;
  }

  .download-row > span:first-child {
    grid-column: 1;
  }

  .section-title-bar,
  .window-title {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }

  .section-title-bar span {
    text-align: left;
  }

  .webring-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .win-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .win-body img {
    margin: 0 auto;
  }

  .retro-cookie-main {
    grid-template-columns: 1fr;
  }

  .retro-cookie-icon {
    display: none;
  }

  .retro-cookie-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.game-video-row {
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px dashed #00ffff;
}

.game-video-row > a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: .25rem .5rem;
  border: 2px outset #dcdcdc;
  color: #fff;
  background: #000080;
  font: 700 .75rem/1.1 "Courier New", monospace;
  text-decoration: none;
}

.game-video-row > a:active {
  border-style: inset;
}
