:root {
  color-scheme: light;
  --navy: #061563;
  --blue: #0b63c7;
  --sky: #5cc9ff;
  --cyan: #00e7ff;
  --pink: #ff1bbd;
  --purple: #7111a8;
  --lime: #75ff00;
  --yellow: #fff200;
  --orange: #ff7a00;
  --red: #ff1d25;
  --paper: #fff9df;
  --chrome: #c8c8c8;
  --shadow: #00113b;
  --ink: #0b0b0b;
  --panel-radius: 4px;
  --mono: "Courier New", Courier, monospace;
  --ui: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--ui);
  color: white;
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 60px 56px, rgba(255, 242, 0, 0.14) 0 2px, transparent 3px),
    linear-gradient(135deg, #104b99, #071458 44%, #4a0088 100%);
  background-size: 76px 76px, 116px 116px, auto;
  overflow-x: hidden;
}

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

button,
a,
.cta {
  cursor: pointer;
}

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

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

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 2px,
    transparent 5px
  );
  mix-blend-mode: screen;
}

.browser-window {
  width: min(1448px, calc(100vw - 16px));
  margin: 8px auto 18px;
  border: 2px solid #222;
  background: #bfbfbf;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.browser-chrome {
  border: 2px outset #f2f2f2;
  background: #c0c0c0;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  padding: 2px 4px;
  color: white;
  background: linear-gradient(90deg, #01117a, #1745c7 54%, #071058);
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0;
}

.titlebar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: white;
  font-weight: 900;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, #003b8e, #00c4ff);
  border: 2px outset #e9e9e9;
}

.window-controls {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.window-controls span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 20px;
  color: #050505;
  background: #d7d7d7;
  border: 2px outset white;
  font-size: 0.7rem;
  line-height: 1;
}

.menubar,
.toolbar,
.addressbar,
.personalbar,
.statusbar {
  display: flex;
  align-items: center;
  gap: 3px;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #777;
  background: #c9c9c9;
}

.menubar {
  position: relative;
  flex-wrap: wrap;
  padding: 3px 7px 2px;
}

.menubar button {
  border: 0;
  background: transparent;
  padding: 1px 9px;
  text-decoration: underline;
}

.menubar button:hover,
.menubar button:focus-visible {
  background: #001b7f;
  color: white;
}

.browser-menu-popup {
  position: absolute;
  top: 100%;
  left: 8px;
  z-index: 30;
  min-width: 190px;
  padding: 3px;
  color: #111;
  background: #d7d7d7;
  border: 3px outset #fff;
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.35);
}

.browser-menu-popup button {
  display: block;
  width: 100%;
  min-height: 27px;
  padding: 3px 26px 3px 8px;
  border: 0;
  color: #111;
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.browser-menu-popup button:hover,
.browser-menu-popup button:focus-visible {
  color: white;
  background: #001b7f;
}

.browser-menu-popup .menu-separator {
  height: 1px;
  margin: 3px 2px;
  background: #777;
  border-bottom: 1px solid #fff;
}

.toolbar {
  flex-wrap: wrap;
  min-height: 62px;
  padding: 3px 5px;
  overflow: visible;
}

.tool-button {
  position: relative;
  display: grid;
  grid-template-rows: 30px auto;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 1px;
  min-width: 50px;
  min-height: 52px;
  padding: 3px 3px 2px;
  border: 1px solid transparent;
  background: transparent;
  color: #111;
  font-size: 0.72rem;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px outset #f5f5f5;
  border-radius: 0;
  background: #d7d7d7;
  font-weight: 900;
  image-rendering: pixelated;
}

.icon-back,
.icon-forward,
.icon-reload,
.icon-home,
.icon-search,
.icon-guide,
.icon-print,
.icon-security,
.icon-stop {
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.tool-button:hover {
  border-color: #f7f7f7 #666 #666 #f7f7f7;
  background: rgba(255, 255, 255, 0.38);
}

.tool-button:active .tool-icon {
  border-style: inset;
}

.tool-button.is-disabled {
  color: #777;
  cursor: default;
  filter: grayscale(0.75);
}

.toolbar-grip {
  flex: 0 0 11px;
  align-self: stretch;
  min-height: 18px;
  border: 2px outset #ededed;
  background:
    repeating-linear-gradient(to bottom, #777 0 1px, transparent 1px 5px),
    #c9c9c9;
}

.toolbar-separator {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 42px;
  margin: 4px 1px;
  border-left: 1px solid #777;
  border-right: 1px solid #f2f2f2;
}

.icon-back {
  background-image: url("assets/toolbar-back.png");
}

.icon-forward {
  background-image: url("assets/toolbar-forward.png");
}

.icon-reload {
  background-image: url("assets/toolbar-reload.png");
}

.icon-home {
  background-image: url("assets/toolbar-home.png");
}

.icon-search {
  background-image: url("assets/toolbar-search.png");
}

.icon-guide {
  background-image: url("assets/toolbar-guide.png");
}

.icon-print {
  background-image: url("assets/toolbar-print.png");
}

.icon-security {
  background-image: url("assets/toolbar-security.png");
}

.icon-stop {
  background-image: url("assets/toolbar-stop.png");
}

.netscape-throbber {
  flex: 0 0 50px;
  align-self: stretch;
  min-height: 52px;
  margin-left: auto;
  border: 2px inset #f3f3f3;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
    linear-gradient(135deg, #022a31 0 36%, #009e9c 37% 66%, #001f68 67%);
  position: relative;
}

.netscape-throbber::before {
  content: "N";
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  color: white;
  border: 2px solid white;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-shadow: 2px 2px #00113b;
}

.netscape-throbber.is-loading::before {
  animation: throbberSpin 700ms steps(4, end) infinite;
}

.tool-button::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: -20px;
  z-index: 10;
  transform: translateX(-50%);
  display: none;
  padding: 2px 5px;
  color: #111;
  background: #ffffc2;
  border: 1px solid #111;
  font-size: 0.72rem;
  white-space: nowrap;
}

.tool-button:hover::after {
  display: block;
}

.addressbar {
  padding: 3px 5px;
}

.addressbar label {
  flex: 0 0 auto;
  font-weight: 700;
}

.page-proxy {
  flex: 0 0 20px;
  height: 22px;
  border: 2px outset #fff;
  background:
    linear-gradient(135deg, transparent 0 73%, #bbb 74%),
    linear-gradient(#fff, #dedede);
}

.url-combo {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.addressbar input {
  width: 100%;
  height: 26px;
  border: 2px inset #fff;
  padding: 2px 28px 2px 8px;
  background: white;
}

.combo-arrow {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 21px;
  height: 20px;
  border: 2px outset #fff;
  background: #d2d2d2;
}

.combo-arrow::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #111;
}

.addressbar button,
.statusbar {
  border: 2px outset #f5f5f5;
}

.addressbar button {
  min-height: 28px;
  padding: 2px 10px;
  background: #d4d4d4;
}

.personalbar {
  padding: 2px 5px;
  min-height: 28px;
  overflow-x: auto;
}

.personalbar button {
  flex: 0 0 auto;
  min-height: 22px;
  border: 2px outset #f2f2f2;
  color: #111;
  background: #d2d2d2;
  padding: 1px 9px;
  font-size: 0.82rem;
}

.personalbar button:active {
  border-style: inset;
}

.site-shell {
  position: relative;
  padding: 8px 8px 10px;
  color: white;
  background:
    radial-gradient(circle at 42px 38px, rgba(255, 255, 255, 0.14) 0 20px, transparent 21px),
    radial-gradient(circle at 118px 28px, rgba(0, 0, 0, 0.18) 0 19px, transparent 20px),
    linear-gradient(135deg, rgba(0, 188, 255, 0.42), rgba(8, 33, 121, 0.9)),
    #0b61af;
  background-size: 86px 76px, 112px 82px, auto, auto;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.35) 0 10px, transparent 11px),
    radial-gradient(circle at 52px 46px, rgba(0, 0, 0, 0.28) 0 11px, transparent 12px);
  background-size: 88px 76px;
}

.brand-row,
.content-grid,
.fireline,
.bottom-marquee,
.badge-row {
  position: relative;
  z-index: 1;
}

.brand-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 158px;
  align-items: center;
  gap: 12px;
  min-height: 174px;
  padding: 8px 12px 8px;
  border: 3px ridge #6fdcff;
  background:
    linear-gradient(180deg, rgba(0, 104, 202, 0.5), rgba(0, 9, 78, 0.76)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 16px);
  overflow: hidden;
}

.image-badge {
  display: block;
  image-rendering: auto;
}

.smiley-badge {
  width: clamp(72px, 8vw, 104px);
  height: auto;
  margin: auto;
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.5));
}

.brand-copy {
  min-width: 0;
  text-align: center;
}

.tiny-label {
  margin: 0 0 2px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  text-shadow: 2px 2px #000;
}

h1 {
  min-height: clamp(76px, 8.4vw, 112px);
  margin: 0;
  background: url("assets/logo-ref.png") center / contain no-repeat;
  filter: drop-shadow(7px 9px 0 rgba(0, 0, 0, 0.48));
}

h1 span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tagline {
  margin: 4px 0 2px;
  color: #ff71ff;
  font-size: clamp(1.2rem, 3vw, 2.3rem);
  font-weight: 1000;
  font-style: italic;
  text-shadow: 3px 3px #00165c, -1px -1px #fff200;
}

.subtag {
  margin: 0;
  color: white;
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
  font-weight: 800;
  text-shadow: 2px 2px #00165c;
}

.brand-row .new-burst {
  position: relative;
  display: block;
  width: clamp(104px, 10vw, 148px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(6px 7px 0 rgba(0, 0, 0, 0.45)) saturate(1.12);
  animation: burstPulse 1200ms steps(2, end) infinite;
}

.brand-row .rainbow-cat {
  position: absolute;
  right: 146px;
  bottom: 18px;
  width: clamp(132px, 14vw, 190px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.35));
  animation: catFloat 2200ms ease-in-out infinite;
}

.content-grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 312px;
  gap: 10px;
  margin-top: 8px;
  align-items: start;
}

.left-rail,
.right-rail,
.main-stage {
  display: grid;
  gap: 10px;
}

.retro-panel {
  border: 4px ridge #e9f7ff;
  border-radius: var(--panel-radius);
  background: linear-gradient(180deg, rgba(7, 34, 116, 0.96), rgba(2, 8, 42, 0.96));
  box-shadow:
    inset 0 0 0 2px rgba(0, 208, 255, 0.5),
    5px 6px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.retro-panel h2 {
  margin: 0;
  padding: 6px 8px;
  color: var(--yellow);
  background: #040404;
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 1px #009900;
}

.nav-panel a,
.nav-panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  color: white;
  border: 0;
  border-top: 1px solid #82deff;
  border-bottom: 1px solid #001a57;
  background: linear-gradient(180deg, #096be8, #062678);
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  text-decoration: underline;
  text-shadow: 2px 2px #00113b;
}

.nav-panel a span,
.nav-panel button span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: #0a1e68;
  background: #fff;
  border: 2px outset #fff;
  font-size: 0.74rem;
}

.nav-panel a:hover,
.nav-panel button:hover {
  filter: brightness(1.35);
  transform: translateX(2px);
}

.login-panel,
.counter-panel,
.support-panel,
.hot-panel,
.webring-panel,
.email-panel,
.vault-panel {
  padding-bottom: 10px;
}

.login-panel form,
.support-panel p,
.counter-panel p,
.email-panel p,
.vault-panel p,
.webring-panel p {
  margin: 8px 10px;
}

.login-panel label {
  display: block;
  margin: 7px 10px 2px;
  font-size: 0.85rem;
}

.login-panel input,
.login-panel button[type="submit"] {
  width: calc(100% - 20px);
  margin: 0 10px;
}

.login-panel input,
.step-card textarea,
.style-card select {
  border: 3px inset #fff;
  background: white;
  color: #080808;
}

.login-panel button[type="submit"],
.support-panel button,
.step-card button,
.share-row button,
.ring-controls button,
.hot-panel button,
.link-button,
.addressbar button,
.badge-button {
  border: 3px outset #fff;
  color: #00103e;
  background: linear-gradient(#fff, #bcbcbc);
  font-weight: 800;
}

.login-panel button[type="submit"]:active,
.support-panel button:active,
.step-card button:active,
.share-row button:active,
.ring-controls button:active,
.hot-panel button:active,
.link-button:active,
.addressbar button:active,
.badge-button:active {
  border-style: inset;
}

.link-button {
  display: block;
  width: calc(100% - 20px);
  margin: 8px auto 0;
  color: #001dff;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-align: center;
}

.counter-panel {
  position: relative;
}

.hit-counter {
  margin: 9px auto 4px;
  width: calc(100% - 22px);
  padding: 6px 5px;
  color: #8cff00;
  background: #050505;
  border: 3px inset #777;
  font-family: var(--mono);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 0 8px #33ff00;
}

.tiny-monster {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: 38px;
  height: 28px;
  border-radius: 50% 45% 45% 50%;
  background: #76bd3a;
  border: 3px solid #111;
}

.tiny-monster span {
  position: absolute;
  background: white;
  border: 1px solid #111;
  border-radius: 50%;
}

.tiny-monster span:nth-child(1) {
  left: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
}

.tiny-monster span:nth-child(2) {
  right: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
}

.tiny-monster span:nth-child(3) {
  left: 15px;
  bottom: 5px;
  width: 12px;
  height: 4px;
  background: #ff2e2e;
  border-radius: 0 0 10px 10px;
}

.support-panel button {
  display: block;
  width: 70%;
  margin: 8px auto 0;
  color: #111;
  background: linear-gradient(#ffff78, #ffb400);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 86px minmax(260px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 280px;
  padding: 14px;
  border: 5px ridge #f4c4ff;
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 42%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
    radial-gradient(circle at 52% 80%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    linear-gradient(135deg, #6d008a, #29006d 42%, #1a0138 100%);
  background-size: 155px 110px, 180px 125px, 130px 150px, auto;
  box-shadow: inset 0 0 24px #ff5bff, 5px 6px 0 rgba(0, 0, 0, 0.5);
}

.comic-kicker {
  margin: 0 0 10px;
  color: var(--yellow);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-style: italic;
  text-transform: uppercase;
  text-shadow: 3px 3px #000, -1px -1px #26ff00;
}

.newspaper {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 558 / 474;
  margin: 0 auto;
  transform: rotate(-4deg);
  filter: drop-shadow(10px 13px 8px rgba(0, 0, 0, 0.5));
}

.newspaper-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.newspaper-front {
  position: absolute;
  inset: 17% 9% 15% 13%;
  min-height: 0;
  padding: 0;
  color: #111;
  background: transparent;
  border: 0;
}

.masthead {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  font-weight: 900;
  text-align: left;
}

.paper-rule {
  height: 3px;
  margin: 3px 0;
  border-top: 2px solid #111;
  border-bottom: 1px solid #111;
}

.date-line,
.paper-copy {
  margin: 0;
  font-size: 0.66rem;
  text-align: left;
}

.newspaper h2 {
  margin: 5px 88px 4px 0;
  color: #111;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-align: left;
}

.paper-photo {
  position: absolute;
  right: 2%;
  top: 18%;
  width: 27%;
  height: 44%;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.paper-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-arrow {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
}

.hero-arrow::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 16px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #fff200 0 12px, transparent 12px 22px);
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.45));
  opacity: 0.85;
  animation: arrowTrail 650ms steps(2, end) infinite;
}

.hero-arrow span {
  position: relative;
  z-index: 1;
  width: clamp(84px, 8vw, 132px);
  height: clamp(70px, 7vw, 112px);
  background: url("assets/yellow-arrow-generated.png") center / contain no-repeat;
  filter: drop-shadow(5px 7px 0 rgba(0, 0, 0, 0.48));
  animation: arrowPunch 900ms ease-in-out infinite;
}

.video-wrap {
  min-width: 0;
}

.fake-player {
  position: relative;
  min-height: 242px;
  overflow: hidden;
  border: 5px ridge #d9f2ff;
  border-radius: 8px;
  color: #111;
  background:
    linear-gradient(to bottom, #8fdcff 0 42%, #6573b8 43% 56%, #4e2c76 57% 100%);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.player-plate {
  position: absolute;
  inset: 0 0 38px;
  z-index: 0;
  width: 100%;
  height: calc(100% - 38px);
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
  transition: filter 180ms ease;
}

.fake-player::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0 0 38px;
  z-index: 1;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 50%, transparent 0 62%, rgba(0, 0, 0, 0.24) 100%);
  mix-blend-mode: screen;
}

.fake-player .skyline,
.fake-player .balloons,
.fake-player .spotlight,
.fake-player .scene-prop,
.fake-player .meme-character {
  display: none;
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 43px;
  height: 74px;
}

.skyline span {
  position: absolute;
  bottom: 0;
  width: 36px;
  background: #1e2550;
  border: 2px solid #0c112c;
}

.skyline span:nth-child(1) {
  left: 8%;
  height: 42px;
}

.skyline span:nth-child(2) {
  left: 22%;
  height: 66px;
}

.skyline span:nth-child(3) {
  left: 48%;
  height: 54px;
}

.skyline span:nth-child(4) {
  left: 68%;
  height: 70px;
}

.skyline span:nth-child(5) {
  right: 7%;
  height: 46px;
}

.balloons span {
  position: absolute;
  top: 12px;
  width: 30px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset -5px -7px rgba(0, 0, 0, 0.2);
  animation: balloonBob 2100ms ease-in-out infinite;
}

.balloons span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36px;
  width: 1px;
  height: 64px;
  background: #2d1c2f;
}

.balloons span:nth-child(1) {
  left: 22px;
  background: #3ef266;
}

.balloons span:nth-child(2) {
  left: 66px;
  animation-delay: -0.6s;
}

.balloons span:nth-child(3) {
  right: 26px;
  background: #ff982b;
  animation-delay: -1.2s;
}

.spotlight {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 150px;
  height: 76px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5), transparent 68%);
  animation: flicker 1300ms steps(2, end) infinite;
}

.scene-prop {
  position: absolute;
  left: 35px;
  bottom: 63px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #734400;
  background: #ffd21d;
  border: 4px solid #1b1100;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 1000;
  animation: propSpin 4s linear infinite;
}

.meme-character {
  position: absolute;
  left: 50%;
  bottom: 50px;
  width: 110px;
  height: 130px;
  transform: translateX(-50%);
  animation: mayorDance 900ms steps(2, end) infinite;
}

.meme-character .ears::before,
.meme-character .ears::after {
  content: "";
  position: absolute;
  top: 4px;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid #976d40;
  z-index: 1;
}

.meme-character .ears::before {
  left: 5px;
  transform: rotate(-18deg);
}

.meme-character .ears::after {
  right: 5px;
  transform: rotate(18deg);
}

.meme-character .face {
  position: absolute;
  left: 50%;
  top: 22px;
  z-index: 2;
  width: 86px;
  height: 76px;
  transform: translateX(-50%);
  border: 5px solid #1c1308;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 56%, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 62% 56%, #fff 0 6px, transparent 7px),
    #c99756;
}

.meme-character .eye {
  position: absolute;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111;
}

.meme-character .eye.left {
  left: 24px;
}

.meme-character .eye.right {
  right: 24px;
}

.meme-character .mouth {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 24px;
  height: 12px;
  transform: translateX(-50%);
  border: 3px solid #111;
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.meme-character .suit {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88px;
  height: 62px;
  transform: translateX(-50%);
  background:
    linear-gradient(115deg, transparent 0 36%, #fff 37% 46%, transparent 47%),
    linear-gradient(245deg, transparent 0 36%, #fff 37% 46%, transparent 47%),
    #1a2c68;
  border: 5px solid #111;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.speech-bubble {
  position: absolute;
  right: 14px;
  top: 42px;
  z-index: 2;
  max-width: min(190px, 42%);
  padding: 10px 12px;
  color: #0a0a0a;
  background: white;
  border: 4px solid #111;
  border-radius: 14px;
  font-weight: 1000;
  text-align: center;
  transform: rotate(-5deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -18px;
  border-top: 18px solid #111;
  border-right: 18px solid transparent;
}

.caption-bar {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 43px;
  z-index: 2;
  min-height: 28px;
  padding: 5px 8px;
  color: white;
  background: rgba(0, 0, 0, 0.74);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px #000;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px 42px minmax(80px, 1fr) 50px 44px;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 4px 6px;
  background: linear-gradient(#f1f1f1, #b9b9b9);
  border-top: 3px ridge #fff;
}

.player-controls button {
  min-width: 0;
  height: 28px;
  border: 2px outset #fff;
  color: #111;
  background: #d5d5d5;
  font-weight: 900;
  font-size: 0.78rem;
}

.scrubber {
  height: 12px;
  padding: 0;
  border: 2px inset #fff;
  background: white;
  overflow: hidden;
  touch-action: none;
}

.scrubber span {
  display: block;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, #1414ff, #00e7ff);
  transition: width 240ms ease;
}

.scrubber.is-scrubbing span,
.scrubber:focus-visible span {
  background: repeating-linear-gradient(90deg, #1414ff 0 8px, #00e7ff 8px 16px, #fff200 16px 22px);
}

.generation-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.74);
  text-align: center;
  font-family: var(--mono);
  text-shadow: 2px 2px #000;
}

.generation-overlay strong {
  font-size: clamp(1.4rem, 4vw, 2.5rem);
}

.fake-player.generating .generation-overlay {
  display: grid;
}

.fake-player.paused .meme-character,
.fake-player.paused .balloons span,
.fake-player.paused .spotlight,
.fake-player.paused .scene-prop,
.fake-player.paused + * {
  animation-play-state: paused;
}

.fake-player.muted {
  filter: saturate(0.7);
}

.cta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 74px;
  padding: 10px;
  color: white;
  border: 5px ridge #e8f7ff;
  border-radius: 10px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 3px 3px #00113b;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.5);
  transition: transform 160ms ease, filter 160ms ease;
}

.cta span {
  min-width: 0;
}

.cta:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.14);
}

.cta:active {
  transform: translateY(1px);
}

.cta-pink {
  background: linear-gradient(#ff72ff, #b80087 54%, #85005d);
}

.cta-green {
  background: linear-gradient(#94ff50, #23b200 54%, #0b5b00);
}

.cta-blue {
  background: linear-gradient(#4ecbff, #075fe8 54%, #00187d);
}

.cta b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  padding: 4px;
  color: #020202;
  background: var(--yellow);
  border: 4px solid #111;
  border-radius: 50%;
  font-family: var(--ui);
  font-size: 0.82rem;
  transform: rotate(-13deg);
  text-shadow: none;
}

.cta-pink b,
.cta-blue b {
  width: 58px;
  height: 52px;
  min-width: 58px;
  min-height: 52px;
  padding: 0;
  color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 0;
}

.cta-pink b {
  background-image: url("assets/go-burst-generated.png");
}

.cta-blue b {
  background-image: url("assets/upload-generated.png");
}

.how-panel {
  padding-bottom: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.step-card {
  position: relative;
  min-height: 190px;
  padding: 10px 10px 12px 50px;
  color: #111;
  border: 3px ridge #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.6);
}

.input-card {
  background: linear-gradient(135deg, #eef0ff, #ddd8ff);
}

.style-card {
  background: linear-gradient(135deg, #ffe3fa, #ffc4ed);
}

.output-card {
  background: linear-gradient(135deg, #e0ffd8, #bcff99);
}

.step-number {
  position: absolute;
  left: 10px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  border-radius: 50%;
  border: 3px solid #0b0b0b;
  background: linear-gradient(#2de4ff, #003ec7);
  font-size: 1.55rem;
  font-weight: 1000;
  box-shadow: 2px 2px 0 #fff;
}

.step-card h3 {
  margin: 0 0 8px;
  color: #0832a1;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 1px 1px #fff;
}

.step-card textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 82px;
  padding: 8px;
}

.input-actions,
.share-row,
.quality-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.style-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.style-option {
  min-width: 0;
  min-height: 72px;
  padding: 4px;
  border: 3px outset #fff;
  background: linear-gradient(#fff, #dddddd);
  color: #111;
  font-size: 0.72rem;
}

.style-option.active {
  color: white;
  background: linear-gradient(#005eff, #041b7e);
  border-style: inset;
}

.style-option .thumb {
  display: grid;
  place-items: center;
  min-height: 54px;
  margin-bottom: 3px;
  border: 2px solid #222;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.55), transparent),
    #ffd24c;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  overflow: hidden;
  text-indent: -999px;
}

.style-option.active .thumb {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px #001b7f;
}

.style-option[data-style="doge"] .thumb {
  background-image: url("assets/thumb-doge.png");
}

.style-option[data-style="rickroll"] .thumb {
  background-image: url("assets/thumb-rickroll.png");
}

.style-option[data-style="nyan"] .thumb {
  background-image: url("assets/thumb-nyan.png");
}

.style-option[data-style="vapor"] .thumb {
  background-image: url("assets/thumb-vapor.png");
}

.style-card select {
  width: 100%;
  min-height: 30px;
}

.output-card button,
.share-row button,
.input-actions button {
  min-height: 32px;
  padding: 4px 10px;
}

.output-card #generateButton {
  width: 100%;
  min-height: 54px;
  color: #071900;
  background: linear-gradient(#fff990, #ffd500 42%, #ff8b00);
  text-transform: uppercase;
}

.quality-row input {
  min-width: 120px;
  flex: 1;
}

#generationNote {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.story-output {
  padding-bottom: 12px;
}

.story-output ol {
  margin: 10px 18px 8px 34px;
  padding: 0;
  color: #111;
  background: #fffbd9;
  border: 3px inset #fff;
}

.story-output li {
  padding: 7px 8px;
  border-bottom: 1px dashed #777;
  font-weight: 800;
}

.story-output li:last-child {
  border-bottom: 0;
}

.share-row {
  padding: 0 10px;
}

.hot-panel {
  border-color: #fff0aa;
  background: linear-gradient(#fffde5, #fff8c7);
  color: #111;
}

.hot-panel h2 {
  background: #040404;
  color: #ffea00;
}

.hot-panel ul {
  margin: 8px;
  padding: 0;
  list-style: none;
}

.hot-panel li {
  border-bottom: 1px dotted #aaa;
}

.hot-panel li:last-child {
  border-bottom: 0;
}

.hot-panel li button {
  position: relative;
  width: 100%;
  min-height: 35px;
  padding: 5px 4px 5px 54px;
  color: #001dcb;
  background: transparent;
  border: 0;
  text-align: left;
  text-decoration: underline;
  font-weight: 700;
}

.hot-panel li button::before {
  content: "NEW!";
  position: absolute;
  left: 6px;
  top: 8px;
  color: var(--red);
  font-weight: 1000;
  text-decoration: none;
  animation: blink 700ms steps(2, end) infinite;
}

.hot-panel li:nth-child(n + 4) button::before {
  content: ">";
  color: #2ca700;
  animation: none;
}

.hot-panel li button:hover {
  background: #fff29d;
}

.webring-panel,
.email-panel,
.vault-panel {
  text-align: center;
}

.globe {
  width: 72px;
  height: 66px;
  margin: 9px auto 2px;
  border: 0;
  background: url("assets/globe-generated.png") center / contain no-repeat;
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.38));
  animation: catFloat 2500ms ease-in-out infinite;
}

.ring-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px;
}

.ring-controls button:nth-child(3) {
  grid-column: 1 / -1;
}

.email-panel a,
.vault-panel .link-button {
  color: #72eaff;
  font-weight: 800;
}

.email-panel::before {
  content: "";
  display: block;
  width: 76px;
  height: 56px;
  margin: 8px auto 0;
  background: url("assets/email-generated.png") center / contain no-repeat;
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.35));
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px;
}

.vault-grid button {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  border: 3px ridge #e7f7ff;
  color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 0.78rem;
  font-weight: 1000;
  overflow: hidden;
  text-shadow: none;
}

.vault-grid button::after {
  content: attr(data-label);
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  padding: 2px 1px;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-shadow: 1px 1px #000;
}

.vault-grid button[data-vault="troll"] {
  background-image: url("assets/vault-troll.png");
}

.vault-grid button[data-vault="cat"] {
  background-image: url("assets/vault-cat.png");
}

.vault-grid button[data-vault="baby"] {
  background-image: url("assets/vault-kid.png");
}

.vault-grid button[data-vault="frog"] {
  background-image: url("assets/vault-frog.png");
}

.fireline {
  height: 42px;
  margin: 9px 0 0;
  border-bottom: 3px solid #fffc00;
  background: url("assets/fireline-generated.png") left bottom / auto 100% repeat-x;
  animation: fireDance 380ms steps(2, end) infinite;
}

.bottom-marquee {
  overflow: hidden;
  margin-top: 0;
  border: 4px ridge #c9fbff;
  background: #050505;
}

.bottom-marquee div {
  width: max-content;
  padding: 7px 0;
  color: #00ff40;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 1000;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00ff40;
  animation: marquee 16s linear infinite;
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
}

.badge {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 6px;
  color: #111;
  border: 3px ridge #e6f7ff;
  background: linear-gradient(#fff, #d7d7d7);
  text-align: center;
}

.badge strong,
.badge small {
  min-width: 0;
}

.badge small {
  display: block;
  font-size: 0.77rem;
}

.badge-button {
  position: relative;
  width: 100%;
}

.construction-badge {
  position: relative;
}

.construction-badge::after,
.badge-button[data-progress]::after {
  content: attr(data-progress);
  position: absolute;
  right: 6px;
  bottom: 4px;
  color: #001b7f;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
}

.construction-badge.bump .barrier {
  animation: barrierWork 520ms steps(3, end);
}

.crt-icon {
  display: block;
  width: 42px;
  height: 35px;
  margin: auto;
  border: 5px solid #222;
  background: radial-gradient(circle, #64ffb4, #005d53);
  box-shadow: inset 0 0 10px #fff;
}

.netscape-badge span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: auto;
  color: white;
  background: linear-gradient(135deg, #005a68, #002e63);
  border: 3px outset #fff;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
}

.barrier {
  display: block;
  width: 58px;
  height: 48px;
  margin: auto;
  border: 0;
  background: url("assets/construction-generated.png") center / contain no-repeat;
}

.tiny-smile {
  display: block;
  width: 42px;
  height: 42px;
  margin: auto;
  border-radius: 50%;
  border: 4px solid #111;
  background: radial-gradient(circle at 35% 35%, white 0 3px, transparent 4px), #fff200;
}

.statusbar {
  justify-content: space-between;
  min-height: 28px;
  padding: 2px 8px;
  border-left: 2px solid #eee;
  border-right: 2px solid #777;
  border-bottom: 2px solid #777;
}

.statusbar #statusText {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-progress {
  flex: 0 0 min(170px, 28vw);
  height: 12px;
  margin-inline: 8px;
  border: 2px inset #fff;
  background: #f2f2f2;
  overflow: hidden;
}

.status-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #001b7f 0 8px, #00d5ff 8px 16px);
  transition: width 160ms ease;
}

.security-indicator {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: 16px auto;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 1px 6px;
  border: 2px inset #fff;
  background: #d7d7d7;
  font-size: 0.78rem;
}

.security-indicator::before {
  content: "";
  width: 12px;
  height: 10px;
  border: 2px solid #111;
  border-top: 0;
  background: #efefef;
  box-shadow: 0 -5px 0 -2px #111;
}

body.security-locked .security-indicator::before {
  background: #ffdd27;
  box-shadow: 0 -7px 0 -2px #111;
}

.component-bar {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}

.component-bar button {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 2px outset #fff;
  color: white;
  background: linear-gradient(135deg, #004c5a, #001b7f);
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.component-bar button:active {
  border-style: inset;
}

.retro-modal {
  width: min(620px, calc(100vw - 30px));
  padding: 0;
  border: 4px ridge #e9f7ff;
  background: #c7c7c7;
  color: #111;
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.45);
}

.retro-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(1px);
}

.retro-modal form {
  margin: 0;
}

.retro-modal header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  color: white;
  background: linear-gradient(90deg, #01117a, #1745c7);
}

.retro-modal header strong {
  flex: 1;
}

.retro-modal header button {
  width: 28px;
  height: 24px;
  border: 2px outset #fff;
  background: #d7d7d7;
  font-weight: 900;
}

.modal-body {
  padding: 14px;
  color: #111;
  background: #f2f2f2;
}

.modal-body a {
  color: #001dcb;
}

.modal-reference {
  max-width: 100%;
  border: 3px ridge #999;
}

.source-view {
  overflow: auto;
  margin: 0;
  padding: 12px;
  color: #00ff40;
  background: #050505;
  border: 3px inset #777;
  font-family: var(--mono);
  white-space: pre-wrap;
}

.guestbook-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.guestbook-list li {
  padding: 8px;
  border: 2px inset #fff;
  background: white;
}

.modal-body textarea,
.modal-body input {
  width: 100%;
  margin: 4px 0 8px;
  border: 3px inset #fff;
  padding: 7px;
}

.modal-body button {
  min-height: 34px;
  border: 3px outset #fff;
  background: linear-gradient(#fff, #bcbcbc);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 100;
  transform: translate(-50%, 20px);
  width: min(520px, calc(100vw - 26px));
  padding: 12px 16px;
  color: var(--yellow);
  background: #050505;
  border: 4px ridge #e9f7ff;
  font-family: var(--mono);
  font-weight: 900;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-meme-dock {
  display: none;
}

.rickroll-portal {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px),
    rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.rickroll-portal.show {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.rickroll-window {
  width: min(620px, calc(100vw - 28px));
  color: #111;
  background: #c9c9c9;
  border: 4px ridge #f1f1f1;
  box-shadow: 14px 16px 0 rgba(0, 0, 0, 0.52);
}

.rickroll-window header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px;
  color: white;
  background: linear-gradient(90deg, #01117a, #1745c7 58%, #071058);
  font-weight: 900;
}

.rickroll-window header span {
  color: #fff200;
  font-family: var(--mono);
  font-size: 0.82rem;
  animation: blink 700ms steps(2, end) infinite;
}

.rickroll-body {
  padding: 14px;
  background:
    linear-gradient(180deg, #efefef, #d0d0d0);
}

.rickroll-kicker {
  margin: 0 0 4px;
  color: #001b7f;
  font-family: var(--mono);
  font-weight: 900;
  text-transform: uppercase;
}

.rickroll-target {
  margin: 0 0 12px;
  padding: 8px;
  overflow-wrap: anywhere;
  color: #00ff40;
  background: #050505;
  border: 3px inset #fff;
  font-family: var(--mono);
  font-weight: 900;
}

.rickroll-progress {
  height: 22px;
  margin-bottom: 10px;
  border: 3px inset #fff;
  background: white;
  overflow: hidden;
}

.rickroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #001b7f 0 14px, #00e7ff 14px 28px, #fff200 28px 42px);
  transition: width 280ms steps(3, end);
}

.rickroll-body ol {
  display: grid;
  gap: 4px;
  min-height: 158px;
  margin: 0;
  padding: 8px 8px 8px 34px;
  color: #111;
  background: #fffbd9;
  border: 3px inset #fff;
  font-family: var(--mono);
  font-weight: 900;
}

.rickroll-body li::marker {
  color: #001b7f;
}

.rickroll-boom {
  margin: 10px 0 0;
  color: #ff1d25;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.35rem, 4vw, 2.4rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px #fff200, 4px 4px #00113b;
}

body.motion-off *,
body.motion-off *::before,
body.motion-off *::after {
  animation-play-state: paused !important;
  scroll-behavior: auto !important;
}

body.motion-off .scanlines {
  display: none;
}

body.style-doge .fake-player {
  background: linear-gradient(to bottom, #9bddff 0 42%, #7580bf 43% 56%, #553472 57% 100%);
}

body.style-doge .player-plate {
  filter: saturate(1.08) contrast(1.04);
}

body.style-rickroll .fake-player {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 4px, transparent 4px 16px),
    linear-gradient(to bottom, #ffb457 0 42%, #ff4f9a 43% 63%, #2d005e 64% 100%);
}

body.style-rickroll .player-plate {
  filter: hue-rotate(318deg) saturate(1.28) contrast(1.08);
}

body.style-nyan .fake-player {
  background:
    linear-gradient(
      to bottom,
      #ff4f4f 0 16%,
      #ffb347 16% 32%,
      #fff65e 32% 48%,
      #65ff70 48% 64%,
      #4ac9ff 64% 80%,
      #7956ff 80% 100%
    );
}

body.style-nyan .player-plate {
  filter: hue-rotate(42deg) saturate(1.45) brightness(1.06);
}

body.style-vapor .fake-player {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, #ff7df3 0 42%, #5ddcff 43% 56%, #170052 57% 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

body.style-vapor .player-plate {
  filter: hue-rotate(205deg) saturate(1.38) contrast(1.1);
}

@keyframes burstPulse {
  0%,
  100% {
    transform: rotate(4deg) scale(1);
  }

  50% {
    transform: rotate(-3deg) scale(1.06);
  }
}

@keyframes catFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes arrowPunch {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

@keyframes arrowTrail {
  50% {
    transform: translate(8px, -50%);
    opacity: 0.58;
  }
}

@keyframes balloonBob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

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

@keyframes mayorDance {
  0%,
  100% {
    transform: translateX(-50%) rotate(-2deg);
  }

  50% {
    transform: translateX(-50%) rotate(2deg) translateY(-4px);
  }
}

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

@keyframes globeTurn {
  to {
    background-position: 58px 0, -38px 0, 0 0, 0 0;
  }
}

@keyframes fireDance {
  50% {
    background-position: 12px bottom;
  }
}

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

  to {
    transform: translateX(-100%);
  }
}

@keyframes throbberSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(8deg) scale(1.08);
  }

  100% {
    transform: rotate(-8deg) scale(1);
  }
}

@keyframes barrierWork {
  0%,
  100% {
    transform: translateX(0);
  }

  33% {
    transform: translateX(-5px) rotate(-2deg);
  }

  66% {
    transform: translateX(5px) rotate(2deg);
  }
}

@media (max-width: 1180px) {
  .content-grid {
    grid-template-columns: 195px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .brand-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .brand-copy {
    padding-right: 104px;
  }

  .brand-row .new-burst {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 98px;
  }

  .brand-row .rainbow-cat {
    right: 90px;
    bottom: 13px;
    width: 124px;
  }

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

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

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    transform: rotate(90deg);
  }

  .newspaper {
    transform: rotate(-3deg);
  }

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

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 168px;
  }

  body {
    width: 100%;
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px),
      linear-gradient(135deg, #104b99, #071458 44%, #4a0088 100%);
    background-size: 72px 72px, auto;
    overflow-x: hidden;
  }

  .browser-window {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-left: 0;
    border-right: 0;
    overflow-x: hidden;
  }

  .browser-chrome {
    position: sticky;
    top: 0;
    z-index: 35;
  }

  .site-shell {
    max-width: 100vw;
    overflow: hidden;
  }

  .brand-copy {
    min-width: 0;
    overflow: hidden;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    background-size: contain;
  }

  .titlebar {
    min-height: 26px;
    gap: 5px;
    padding: 2px 3px;
    font-size: 0.78rem;
  }

  .window-mark {
    width: 17px;
    height: 17px;
    font-size: 0.8rem;
  }

  .window-controls span {
    width: 21px;
    height: 18px;
    font-size: 0.62rem;
  }

  .menubar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 4px;
    -webkit-overflow-scrolling: touch;
  }

  .menubar button {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 2px 10px;
  }

  .toolbar {
    flex-wrap: nowrap;
    min-height: 54px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .toolbar-grip,
  .toolbar-separator,
  .page-proxy {
    display: none;
  }

  .tool-button {
    grid-template-rows: 32px;
    flex: 0 0 48px;
    min-width: 48px;
    min-height: 46px;
    justify-items: center;
    padding: 3px;
    scroll-snap-align: start;
  }

  .tool-button > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .tool-icon {
    width: 32px;
    height: 32px;
  }

  .netscape-throbber {
    flex: 0 0 48px;
    min-height: 46px;
    margin-left: 0;
  }

  .addressbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px;
    padding: 4px;
  }

  .addressbar label {
    align-self: center;
    font-size: 0.82rem;
  }

  .url-combo {
    flex: none;
  }

  .addressbar input {
    height: 32px;
    font-size: 16px;
  }

  .addressbar button {
    min-height: 32px;
    padding: 2px 8px;
  }

  #linksButton {
    grid-column: 1 / -1;
  }

  .personalbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 4px;
    -webkit-overflow-scrolling: touch;
  }

  .personalbar button {
    min-height: 30px;
  }

  .brand-row {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 178px;
    padding: 8px 8px 54px;
  }

  .brand-copy {
    padding-right: 82px;
  }

  .smiley-badge {
    position: relative;
    left: auto;
    top: auto;
    width: 70px;
  }

  h1 {
    min-height: clamp(54px, 18vw, 74px);
  }

  .tagline {
    font-size: clamp(1.1rem, 8vw, 1.55rem);
  }

  .brand-row .new-burst {
    right: 8px;
    top: auto;
    bottom: 6px;
    width: 92px;
  }

  .brand-row .rainbow-cat {
    display: block;
    right: 86px;
    bottom: 14px;
    width: 118px;
  }

  .left-rail,
  .right-rail,
  .cta-strip,
  .badge-row {
    grid-template-columns: 1fr;
  }

  .content-grid {
    display: flex;
    flex-direction: column;
  }

  .main-stage {
    order: 1;
  }

  .left-rail {
    order: 2;
  }

  .right-rail {
    order: 3;
  }

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

  .nav-panel h2 {
    grid-column: 1 / -1;
  }

  .nav-panel a,
  .nav-panel button {
    min-height: 42px;
    padding: 7px 8px;
    font-size: 0.84rem;
  }

  .hero-card {
    padding: 10px;
    min-height: 0;
    gap: 4px;
    border-radius: 6px;
  }

  .comic-kicker {
    margin-bottom: 5px;
    font-size: 1.35rem;
    text-align: center;
  }

  .newspaper {
    width: min(94vw, 360px);
    transform: rotate(-2deg);
  }

  .newspaper h2 {
    margin-right: 0;
    padding-right: 84px;
    font-size: 1.45rem;
  }

  .paper-copy {
    max-height: 2.3em;
    overflow: hidden;
  }

  .hero-arrow {
    min-height: 54px;
    margin: -4px 0;
  }

  .hero-arrow span {
    width: 90px;
    height: 76px;
  }

  .fake-player {
    min-height: 214px;
    border-width: 4px;
    border-radius: 6px;
  }

  .speech-bubble {
    right: 8px;
    top: 24px;
    max-width: 48%;
    padding: 7px 8px;
    border-width: 3px;
    border-radius: 10px;
    font-size: 0.74rem;
  }

  .caption-bar {
    left: 6px;
    right: 6px;
    min-height: 34px;
    padding: 5px 6px;
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .player-controls {
    grid-template-columns: 36px 40px minmax(88px, 1fr) 44px 42px;
    gap: 4px;
    min-height: 42px;
    padding: 4px;
  }

  .player-controls button {
    height: 32px;
    font-size: 0.72rem;
  }

  .scrubber {
    height: 18px;
  }

  .cta {
    min-height: 64px;
    border-width: 4px;
    border-radius: 6px;
    font-size: 1.55rem;
  }

  .steps {
    gap: 10px;
  }

  .step-card {
    min-height: 0;
    padding: 10px 10px 12px 50px;
  }

  .step-card textarea,
  .login-panel input,
  .style-card select,
  .modal-body textarea,
  .modal-body input {
    font-size: 16px;
  }

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

  .style-option {
    min-height: 86px;
  }

  .style-option .thumb {
    min-height: 62px;
  }

  .vault-grid {
    max-width: 360px;
    margin-inline: auto;
  }

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

  .badge {
    min-height: 60px;
  }

  .statusbar {
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
    font-size: 0.78rem;
  }

  .status-progress {
    flex-basis: 72px;
    margin-inline: 4px;
  }

  .component-bar button {
    width: 22px;
  }

  .mobile-meme-dock {
    position: fixed;
    left: 8px;
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 6px;
    border: 3px outset #f5f5f5;
    background:
      linear-gradient(#efefef, #ababab),
      #c9c9c9;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.42);
  }

  .mobile-meme-dock button {
    min-width: 0;
    min-height: 48px;
    padding: 4px;
    color: #07103c;
    border: 3px outset #fff;
    background: linear-gradient(#fff6a2, #ffbf00 48%, #ff7a00);
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: 1rem;
    letter-spacing: 0;
    text-shadow: 1px 1px white;
  }

  .mobile-meme-dock button:nth-child(2) {
    background: linear-gradient(#9ee9ff, #1578ff 48%, #001d8f);
    color: white;
    text-shadow: 2px 2px #00113b;
  }

  .mobile-meme-dock button:nth-child(3) {
    background: linear-gradient(#ff9eff, #d10099 48%, #7e005d);
    color: white;
    text-shadow: 2px 2px #00113b;
  }

  .mobile-meme-dock button:nth-child(4) {
    background: linear-gradient(#9cff74, #25b800 48%, #0b6400);
    color: white;
    text-shadow: 2px 2px #00113b;
  }

  .mobile-meme-dock button:active {
    border-style: inset;
    transform: translate(1px, 1px);
  }

  .toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .rickroll-portal {
    padding: 10px;
  }

  .rickroll-window {
    width: calc(100vw - 20px);
  }

  .rickroll-body {
    padding: 10px;
  }

  .rickroll-body ol {
    min-height: 132px;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .browser-menu-popup {
    max-width: calc(100vw - 24px);
  }

  .brand-row {
    display: block;
    min-height: 228px;
    padding: 8px 8px 64px;
  }

  .brand-copy {
    padding-right: 0;
  }

  .smiley-badge {
    position: absolute;
    left: 10px;
    bottom: 12px;
    width: 54px;
  }

  h1 {
    min-height: 54px;
  }

  .tagline {
    font-size: 1.18rem;
    line-height: 1.05;
  }

  .subtag {
    font-size: 0.82rem;
  }

  .brand-row .new-burst {
    width: 74px;
  }

  .brand-row .rainbow-cat {
    right: 72px;
    width: 100px;
  }

  .newspaper-front {
    inset: 18% 8% 16% 13%;
  }

  .masthead {
    font-size: 0.96rem;
  }

  .newspaper h2 {
    padding-right: 72px;
    font-size: 1.22rem;
  }

  .date-line,
  .paper-copy {
    font-size: 0.58rem;
  }

  .fake-player {
    min-height: 196px;
  }

  .speech-bubble {
    top: 18px;
    max-width: 52%;
    font-size: 0.68rem;
  }

  .caption-bar {
    font-size: 0.68rem;
  }

  .player-controls {
    grid-template-columns: 34px 38px minmax(68px, 1fr) 42px 40px;
  }

  .nav-panel {
    grid-template-columns: 1fr;
  }

  .style-options {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
  }

  .style-option {
    flex: 0 0 76px;
  }

  .vault-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 240px;
  }

  .bottom-marquee div {
    font-size: 0.9rem;
  }
}

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