* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  background: #000080;
}

body {
  background: #000080 url("assets/bg-tile.svg") repeat;
  background-size: 64px 64px;
  color: #ffff00;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a:link {
  color: #0000ee;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #ff0000;
}

a:active {
  color: #00ff00;
}

.wrap {
  max-width: 820px;
  margin: 8px auto;
  padding: 8px;
  border: 4px dashed #ffff00;
  background: transparent;
}

.top-center,
center {
  text-align: center;
}

.bestview {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  margin: 4px 8px 6px;
  line-height: 1.35;
}

.ns-badge {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  border: 3px ridge #dddddd;
  padding: 3px 8px 3px 3px;
  margin: 4px auto 8px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.ns-n {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  background: #203080;
  color: #ffffff;
  font-weight: bold;
  font-size: 26px;
  border: 2px solid #ffffff;
  vertical-align: middle;
  margin-right: 6px;
}

.ns-copy {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.4px;
  max-width: 118px;
  line-height: 1.15;
  color: #ffffff;
  text-align: left;
}

hr {
  border: 0;
  height: 6px;
  background: #ff00ff;
  margin: 10px 0;
}

.bg-cyan hr,
.bg-yellow hr,
.bg-green hr {
  height: 4px;
  background: #000000;
}

.wordart {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  text-transform: uppercase;
  text-align: center;
  color: #ffff00;
  font-size: clamp(24px, 4.6vw, 52px);
  line-height: 1.15;
  margin: 10px 0;
  letter-spacing: 1px;
  text-shadow:
    -1px -1px 0 #000000,
    1px -1px 0 #000000,
    -1px 1px 0 #000000,
    1px 1px 0 #000000,
    4px 4px 0 #0000ff,
    8px 8px 0 #ff00ff;
}

.welcome {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
  font-size: clamp(18px, 3.4vw, 28px);
  margin: 6px 8px 10px;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.attention-row {
  text-align: center;
  margin: 8px 0 12px;
}

.attention {
  display: inline-block;
  background: #ffff00;
  color: #ff0000;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  font-size: clamp(22px, 5.5vw, 46px);
  padding: 2px 8px;
  border: 3px solid #ff0000;
  line-height: 1.1;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

blink,
.blink {
  animation: blink 0.75s step-end infinite;
}

.blink-fast {
  animation-duration: 0.35s;
}

.blink-slow {
  animation-duration: 1.15s;
}

.at-spin {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 52px;
  color: #ff00ff;
  line-height: 1;
  animation: spin 2.2s linear infinite;
}

.at-sm {
  font-size: 32px;
  margin: 0 6px;
  vertical-align: middle;
}

.at-cyan { color: #00ffff; }
.at-lime { color: #39ff14; }
.at-red { color: #ff0000; }

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

.spin {
  display: inline-block;
  animation: spin 4s linear infinite;
}

.spin-rev {
  animation-direction: reverse;
  animation-duration: 2.8s;
}

.twinkle {
  animation: blink 0.9s step-end infinite;
}

.twinkle-slow {
  animation: blink 1.3s step-end infinite;
}

.marquee-wrap {
  background: #ffff00;
  border-top: 4px solid #ff0000;
  border-bottom: 4px solid #0000ff;
  overflow: hidden;
  width: 100%;
  margin: 8px 0;
}

.marquee-wrap marquee {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 22px;
  color: #ff0000;
  background: #ffff00;
  line-height: 1.4;
}

.mq {
  white-space: nowrap;
}

.visit-box {
  background: #000000;
  color: #ffff00;
  border: 3px ridge #c0c0c0;
  margin: 10px auto;
  padding: 6px 10px;
  display: inline-block;
  max-width: 100%;
}

.visit-line {
  margin: 0;
  text-align: center;
}

.visit-label {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #ffff00;
  font-size: 18px;
  font-weight: bold;
}

.lcd {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 3px;
  color: #33ff33;
  background: #001400;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #a0a0a0;
  border-bottom: 2px solid #a0a0a0;
  padding: 1px 6px;
  display: inline-block;
}

.updated {
  font-family: "Times New Roman", Times, serif;
  color: #00ffff;
  font-size: 18px;
  text-align: center;
  margin: 6px 0 4px;
}

table.rainbow {
  width: 100%;
  border: 2px solid #000000;
  border-collapse: collapse;
  margin: 8px 0;
}

table.rainbow td {
  height: 10px;
  padding: 0;
  border: 0;
}

.decor {
  text-align: center;
  margin: 8px 0 12px;
}

.decor > * {
  margin: 6px;
}

.head-90s {
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  text-transform: uppercase;
  text-align: center;
  margin: 6px 0 10px;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.15;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}

.head-arial {
  font-family: Arial, Helvetica, sans-serif;
}

.head-times {
  font-family: "Times New Roman", Times, serif;
}

.head-mono {
  font-family: "Courier New", Courier, monospace;
}

.box {
  margin: 14px 0;
  padding: 8px;
  border-style: ridge;
  border-width: 5px;
}

.bg-green {
  background: #00ff00;
  color: #000000;
  border-color: #ff00ff;
}

.bg-yellow {
  background: #ffff00;
  color: #000000;
  border-color: #0000ff;
}

.bg-magenta {
  background: #ff00ff;
  color: #ffff00;
  border-color: #ffff00;
}

.bg-cyan {
  background: #00ffff;
  color: #000000;
  border-color: #ff0000;
}

.bg-red {
  background: #ff0000;
  color: #ffff00;
  border-color: #000000;
}

.bg-black {
  background: #000000;
  color: #39ff14;
  border-color: #39ff14;
}

.c-w { color: #ffffff; }
.c-y { color: #ffff00; }
.c-l { color: #39ff14; }
.c-r { color: #ff0000; }
.c-c { color: #00ffff; }
.c-m { color: #ff00ff; }
.c-b { color: #0000ee; }
.c-k { color: #000000; }

.bg-yellow .c-m { color: #a000a0; }
.bg-green .c-l { color: #006600; }
.bg-cyan .c-c { color: #005555; }

table.about {
  width: 100%;
  border: 3px solid #000000;
  background: #ff00ff;
  border-collapse: separate;
  border-spacing: 3px;
}

table.about td {
  padding: 4px 6px;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  vertical-align: middle;
}

.about-head {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  font-size: clamp(26px, 5vw, 36px);
  color: #ff0000;
  text-align: center;
}

.online {
  color: #39ff14;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 20px;
}

.fact {
  color: #ffff00;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-size: 18px;
}

.side-col {
  text-align: center;
  padding: 6px;
}

.winamp {
  width: 180px;
  max-width: 100%;
  margin: 8px auto;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  text-align: left;
}

.winamp-bar {
  background: #000080;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 4px;
}

.winamp-body {
  background: #000000;
  color: #39ff14;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  padding: 4px;
}

.drama {
  text-align: center;
  margin: 4px 0;
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
}

.s1 { font-size: 18px; }
.s2 { font-size: 20px; }
.s3 { font-size: 22px; }
.s4 { font-size: 24px; }
.s5 { font-size: 26px; }
.s6 { font-size: 28px; color: #0000aa; }
.s7 { font-size: 30px; color: #a000a0; }

.boom {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(26px, 6vw, 48px);
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  color: #ff0000;
  text-align: center;
  margin: 14px 4px;
  line-height: 1.15;
}

.fire {
  position: relative;
  width: 150px;
  height: 120px;
  margin: 8px auto;
  background: #000000;
  border: 4px ridge #c0c0c0;
  overflow: hidden;
}

.fire.small {
  width: 72px;
  height: 64px;
  display: inline-block;
  vertical-align: middle;
  margin: 4px;
}

.fl {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 28%;
  margin-left: -14%;
  background: #ff2200;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform-origin: bottom center;
  animation: flicker 0.16s infinite alternate;
}

.f1 { height: 58%; background: #ff2200; }
.f2 { height: 74%; width: 18%; margin-left: -9%; background: #ff8800; animation-duration: 0.12s; }
.f3 { height: 46%; width: 10%; margin-left: -5%; background: #ffe566; animation-duration: 0.09s; }
.f4 { height: 52%; margin-left: -34%; background: #ff4400; animation-duration: 0.2s; }
.f5 { height: 50%; margin-left: 8%; background: #ff3300; animation-duration: 0.14s; }

.log {
  position: absolute;
  height: 10%;
  bottom: 6%;
  background: #5a3010;
  border: 2px solid #2a1508;
}

.log1 { width: 55%; left: 8%; transform: rotate(-8deg); }
.log2 { width: 50%; left: 32%; transform: rotate(8deg); background: #3a200c; }

@keyframes flicker {
  from { transform: scaleY(0.82) scaleX(1.08); }
  to { transform: scaleY(1.18) scaleX(0.82); }
}

.hazard {
  height: 28px;
  background: #f5c400 url("assets/hazard.svg") repeat-x;
  background-size: 28px 28px;
  animation: hazard-move 0.45s linear infinite;
}

@keyframes hazard-move {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

.uc-inner {
  background: #000000;
  color: #ffff00;
  text-align: center;
  padding: 12px 6px 16px;
}

.uc-huge {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  font-size: clamp(24px, 5.6vw, 50px);
  color: #ffff00;
  line-height: 1.15;
  margin: 6px 0;
}

.uc-emj {
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.2;
  font-family: "Noto Color Emoji", sans-serif;
}

.digger {
  position: relative;
  width: 110px;
  height: 110px;
  display: inline-block;
  vertical-align: middle;
}

.digger img {
  position: absolute;
  left: 0;
  top: 0;
  width: 110px;
  height: 110px;
  max-width: none;
}

@keyframes showA {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes showB {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

.dig-a { animation: showA 0.45s step-end infinite; }
.dig-b { animation: showB 0.45s step-end infinite; }

.uc-mini {
  display: inline-block;
  background: #ffff00;
  color: #000000;
  border: 3px solid #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 11px;
  line-height: 1.15;
  padding: 4px 6px;
  transform: rotate(-8deg);
  vertical-align: middle;
  text-align: center;
}

.new-badge {
  display: inline-block;
  background: #ff0000;
  color: #ffff00;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-style: italic;
  border: 2px solid #ffff00;
  padding: 1px 6px;
  vertical-align: middle;
  letter-spacing: 1px;
}

button.email-badge {
  display: inline-block;
  text-align: center;
  background: #ffff00;
  color: #000000;
  border: 3px solid #000000;
  padding: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 0;
}

button.email-badge img {
  display: block;
  margin: 0 auto 2px;
}

.click-here {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-size: 20px;
  color: #ffff00;
  background: #ff0000;
  border: 4px outset #ff8080;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 0;
  vertical-align: middle;
}

.click-here:active {
  border-style: inset;
}

table.stats {
  width: 100%;
  border: 4px solid #ffff00;
  background: #000000;
  color: #ffffff;
  border-collapse: separate;
  border-spacing: 3px;
}

table.stats th {
  background: #ffff00;
  color: #000000;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(16px, 3vw, 22px);
  padding: 4px;
}

table.stats td {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(16px, 3vw, 20px);
  text-align: center;
  padding: 4px;
  color: #000000;
}

td.zero {
  color: #ff0000;
  font-weight: bold;
  font-size: 24px;
  background: #000000;
  font-family: "Courier New", Courier, monospace;
}

.total-line {
  text-align: center;
  background: #000000;
  margin: 8px 0 0;
  padding: 6px;
}

.total,
.total-zero {
  color: #ff0000;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: clamp(28px, 6vw, 40px);
}

.thought {
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  margin: 8px 4px;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  text-align: left;
}

.link-list li {
  margin: 8px 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: bold;
}

.bg-red a:link,
.bg-red a:visited {
  color: #ffff00;
}

.bg-red a:hover,
.bg-red a:focus {
  color: #ffffff;
  background: #0000ee;
}

.tip {
  position: relative;
}

.tip:hover::after,
.tip:focus::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: 1.5em;
  background: #ffffe1;
  color: #000000;
  border: 1px solid #000000;
  padding: 3px 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  width: max-content;
  max-width: 240px;
  z-index: 20;
  text-decoration: none;
  white-space: normal;
  text-align: left;
}

.guest {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(15px, 3.4vw, 18px);
  margin: 8px 4px;
  color: #39ff14;
}

.win-panel {
  background: #c0c0c0;
  color: #000000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  padding: 12px 6px;
  text-align: center;
  margin: 12px 0;
}

.win-btn {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  background: #c0c0c0;
  color: #000000;
  border-radius: 0;
  border-style: solid;
  border-width: 2px;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  padding: 6px 10px;
  margin: 4px;
  cursor: pointer;
  max-width: 100%;
}

.win-btn:active {
  border-color: #000000 #ffffff #ffffff #000000;
  box-shadow: inset 1px 1px 0 #808080;
  padding: 7px 9px 5px 11px;
}

.win-btn:focus {
  outline: 1px dotted #000000;
  outline-offset: -4px;
}

.quiet {
  text-align: center;
  color: #ffff66;
  font-family: "Courier New", Courier, monospace;
  font-size: 28px;
  margin: 28px 0 10px;
  letter-spacing: 8px;
}

.climax {
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 16vh 12px 10vh;
}

.climax-line {
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
  font-size: clamp(26px, 6.5vw, 64px);
  margin: 0;
  color: #ffffff;
  line-height: 1.15;
}

.void-md {
  height: 18vh;
}

.void-lg {
  height: 85vh;
}

.nuance {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
  color: #dddddd;
  margin: 0 0 18px;
}

.punch {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  text-transform: uppercase;
  color: #ffff00;
  font-size: clamp(34px, 9vw, 92px);
  line-height: 1.05;
  margin: 0 0 12px;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    4px 4px 0 #ff00ff;
}

.shrug {
  font-family: Arial, "Noto Sans", sans-serif;
  font-size: clamp(28px, 6vw, 48px);
  color: #ffffff;
  margin: 8px 0 16px;
}

.thanks {
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  color: #888888;
  margin: 0;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
}

.site-footer {
  background: #000080 url("assets/bg-tile.svg") repeat;
  background-size: 64px 64px;
  text-align: center;
  padding: 14px 10px 28px;
  border-top: 8px ridge #ff00ff;
  color: #ffff00;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
}

.footer-copy {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-size: 22px;
  color: #ffff00;
  margin: 8px 0;
}

.footer-note {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 16px;
  color: #ffffff;
  margin: 10px 8px;
}

.powered {
  display: inline-block;
  background: #000080;
  color: #ffffff;
  border: 3px outset #c0c0c0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 8px;
}

.mono {
  font-family: "Courier New", Courier, monospace;
}

.arial {
  font-family: Arial, Helvetica, sans-serif;
}

.win-dialog {
  position: fixed;
  z-index: 100;
  left: 50%;
  top: 18vh;
  transform: translateX(-50%);
  width: 340px;
  max-width: calc(100% - 24px);
  background: #c0c0c0;
  color: #000000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  box-shadow: 4px 4px 0 #808080;
  font-family: Arial, Helvetica, sans-serif;
  padding: 2px;
}

.win-dialog[hidden] {
  display: none !important;
}

.win-dialog-title {
  background: #000080;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  padding: 3px 6px;
  margin-bottom: 8px;
  text-align: left;
}

.win-dialog-row {
  display: table;
  width: 100%;
  padding: 2px 8px 8px;
}

.win-dialog-row img,
.win-dialog-row p {
  display: table-cell;
  vertical-align: middle;
}

.win-dialog-row p {
  margin: 0;
  padding-left: 10px;
  white-space: pre-wrap;
  font-size: 13px;
  color: #000000;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
}

.win-dialog-actions {
  text-align: center;
  padding: 2px 4px 8px;
}

.cursor-star {
  position: fixed;
  pointer-events: none;
  z-index: 40;
  font-size: 16px;
  margin-left: -8px;
  margin-top: -8px;
  animation: star-die 0.45s linear forwards;
}

@keyframes star-die {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@media (max-width: 520px) {
  .wrap {
    margin: 4px;
    padding: 6px;
  }

  .wordart {
    letter-spacing: 0;
    font-size: 24px;
    text-shadow:
      -1px -1px 0 #000,
      1px 1px 0 #000,
      2px 2px 0 #0000ff,
      4px 4px 0 #ff00ff;
  }

  .marquee-wrap marquee {
    font-size: 16px;
  }

  table.about td,
  .thought {
    font-size: 15px;
  }

  .about-layout,
  .about-layout tbody,
  .about-layout tr,
  .about-layout td {
    display: block;
    width: 100% !important;
  }

  .tip:hover::after,
  .tip:focus::after {
    left: auto;
    right: 0;
    max-width: 200px;
  }
}
