/* ==========================================================
   gradyrespess.com  --  style.css
   Looks like 1998 on purpose. Works like now.
   Sections: base, frames, header, boxes, tables, widgets,
             forms, games, calendar, map, motion, mobile
   ========================================================== */

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #000 url(/images/stars.svg);
  color: #fff;
  font: 14px/1.5 Verdana, Geneva, Tahoma, sans-serif;
}
a { color: #00ff00; }
a:visited { color: #ff99ff; }
a:hover { background: #ffff00; color: #000; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px dashed #ffff00; outline-offset: 2px;
}
h1, h2, h3 { margin: 0; }
p { margin: 0 0 8px; }
p:last-child { margin-bottom: 0; }
img, svg, iframe, canvas { max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 0; background: #ffff00; color: #000; padding: 6px 10px; font-weight: bold; z-index: 2000; }
.skip:focus { left: 4px; top: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tiny { font-size: 11px; }
.center { text-align: center; }
.fillin { background: #ffff00; color: #000; font: bold 12px/1.3 "Courier New", Courier, monospace; padding: 0 3px; border: 1px dashed #cc0000; }
.loading { color: #c0c0c0; font: 12px "Courier New", Courier, monospace; }
.err { color: #ffff00; font: bold 12px "Courier New", Courier, monospace; }
noscript p { background: #ffff00; color: #000; padding: 10px; margin: 0; font-weight: bold; }

/* ---------- frames ---------- */
#frames { display: flex; min-height: 100vh; }
#navframe {
  flex: 0 0 196px; width: 196px;
  background: #005a5a url(/images/navtile.svg);
  border-right: 5px ridge #c0c0c0;
  padding: 8px 8px 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
#mainframe { flex: 1; min-width: 0; padding: 0 12px 20px; }
.nav-title { text-align: center; margin-bottom: 8px; }
.nav-title a {
  display: block; text-decoration: none; color: #ffff00;
  font: 22px/1 Impact, "Arial Black", sans-serif; letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000; padding: 6px 2px;
  border: 3px outset #c0c0c0; background: #000080;
}
.nav-title a:hover { background: #800080; color: #ffff00; }
#navtoggle { display: none; }
#navframe h2 {
  font: bold 11px Verdana, sans-serif; text-transform: uppercase; letter-spacing: 1px;
  color: #000; background: #c0c0c0; border: 2px outset #fff; padding: 1px 5px; margin: 10px 0 3px;
}
#navframe ul { list-style: none; margin: 0; padding: 0; }
#navframe li { margin: 0; }
#navframe li a {
  display: block; padding: 2px 4px 2px 16px; color: #fff; font-weight: bold; font-size: 13px;
  text-decoration: none; position: relative;
}
#navframe li a::before { content: "\25BA"; position: absolute; left: 3px; top: 3px; font-size: 9px; color: #ffff00; }
#navframe li a:hover { background: #ffff00; color: #000; }
#navframe li a:hover::before { color: #cc0000; }
#navframe li a[aria-current="page"] { background: #000; color: #ffff00; border: 1px dotted #ffff00; }
.nav-extra { margin-top: 12px; text-align: center; color: #fff; }
.nav-extra p { margin: 6px 0; }
.btn95, .form button, .game button {
  font: bold 12px Verdana, sans-serif; color: #000; background: #c0c0c0;
  border: 3px outset #fff; padding: 3px 10px; cursor: pointer;
}
.btn95:active, .form button:active, .game button:active { border-style: inset; }
.btn95[disabled], .game button[disabled] { color: #707070; cursor: not-allowed; }
#midi { width: 100%; margin: 4px 0 8px; }

/* ---------- header ---------- */
#top { padding-top: 10px; }
.banner { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.site-title {
  font: italic bold 44px/1.05 "Times New Roman", Times, serif; color: #ffff00;
  text-shadow: 3px 3px 0 #ff0000, 6px 6px 0 #000080; letter-spacing: 2px;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { background: none; color: #fff; }
.tagline { font: bold 13px "Courier New", Courier, monospace; color: #00ffff; margin-top: 8px; }
.globe { width: 54px; height: 54px; flex: 0 0 auto; }
.marquee {
  overflow: hidden; white-space: nowrap; margin: 10px 0 0;
  background: #000080; color: #ffff00; border: 3px inset #c0c0c0;
  font: bold 13px/1.7 "Courier New", Courier, monospace;
}
.marquee span { display: inline-block; padding-left: 100%; animation: marq 38s linear infinite; }
.marquee:hover span, .marquee:focus span { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-100%); } }
hr.rainbow {
  border: 0; height: 5px; margin: 10px 0;
  background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  background-size: 200% 100%; animation: slide 6s linear infinite;
}
@keyframes slide { to { background-position: -200% 0; } }
.page-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
h1.page-title {
  font: 30px/1.1 Impact, "Arial Black", sans-serif; color: #00ffff; letter-spacing: 1px;
  text-shadow: 2px 2px 0 #800080;
}
.page-intro { color: #fff; font-size: 14px; margin: 0; flex: 1 1 300px; }
.sparkle { text-align: center; color: #ffff00; letter-spacing: 10px; font-size: 16px; margin: 2px 0 10px; }
.sparkle span { display: inline-block; animation: twinkle 1.6s ease-in-out infinite; }
.sparkle span:nth-child(2n) { animation-delay: .4s; color: #00ffff; }
.sparkle span:nth-child(3n) { animation-delay: .8s; color: #ff66ff; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }
.new {
  display: inline-block; background: #ff0000; color: #ffff00; font: bold 10px Verdana, sans-serif;
  padding: 0 4px; border: 1px solid #ffff00; vertical-align: middle; animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ---------- boxes ---------- */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: stretch; grid-auto-flow: dense; }
.w-full { grid-column: span 6; }
.w-twothirds { grid-column: span 4; }
.w-half { grid-column: span 3; }
.w-third { grid-column: span 2; }
.box { border: 4px outset #c0c0c0; background: #00002e; min-width: 0; }
.box > h2 {
  font: bold 14px/1.3 Verdana, sans-serif; padding: 3px 8px; color: #ffff00; background: #000080;
  border-bottom: 2px groove #c0c0c0;
}
.box.c1 > h2 { background: #800080; color: #fff; }
.box.c2 > h2 { background: #006400; color: #fff; }
.box.c3 > h2 { background: #800000; color: #ffff00; }
.box.c4 > h2 { background: #005a5a; color: #fff; }
.box.c5 > h2 { background: #c0c0c0; color: #000; }
.box > .body { padding: 8px 10px 10px; }
.box .note { font-size: 12px; color: #c0c0c0; margin-top: 8px; border-top: 1px dashed #808080; padding-top: 5px; }
.box h3 { font: bold 13px Verdana, sans-serif; color: #00ffff; margin: 10px 0 4px; }
.box h3:first-child { margin-top: 0; }
/* Windows-95 gray variant: "style": "gray" */
.box.s-gray { background: #c0c0c0; color: #000; }
.box.s-gray > h2 { background: #000080; color: #fff; }
.box.s-gray a { color: #0000cc; } .box.s-gray a:visited { color: #551a8b; }
.box.s-gray .note { color: #333; border-top-color: #808080; }
.box.s-gray h3 { color: #000080; }
.box.s-gray .loading { color: #333; } .box.s-gray .err { color: #990000; }
/* garnet variant: "style": "garnet" */
.box.s-garnet { background: #1a0003; border-color: #a0000f; }
.box.s-garnet > h2 { background: #73000a; color: #fff; }
/* plain variant (no frame): "style": "plain" */
.box.s-plain { border: 0; background: none; }
.box.s-plain > .body { padding: 0; }

ul.list, ol.list { margin: 0; padding-left: 22px; }
ul.list { list-style: square; }
ul.list li::marker { color: #ffff00; }
.s-gray ul.list li::marker { color: #000080; }
.list li { margin-bottom: 2px; break-inside: avoid; }
.cols2 { columns: 2; column-gap: 26px; } .cols3 { columns: 3; column-gap: 26px; }

/* ---------- tables ---------- */
.scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 2px; border: 2px outset #c0c0c0; font-size: 13px; }
table.t caption { text-align: left; font-size: 12px; color: #c0c0c0; padding-bottom: 3px; }
table.t th { background: #c0c0c0; color: #000; text-align: left; padding: 2px 6px; border: 1px outset #fff; font-size: 12px; }
table.t td { background: #000050; padding: 3px 6px; border: 1px inset #808080; vertical-align: top; }
table.t tr:nth-child(even) td { background: #00003a; }
table.facts th { width: 34%; white-space: nowrap; }
.s-gray table.t td { background: #fff; color: #000; } .s-gray table.t tr:nth-child(even) td { background: #e8e8e8; }
.s-gray table.t th { background: #000080; color: #fff; }

/* ---------- small widgets ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.stat { border: 2px inset #808080; background: #000; text-align: center; padding: 5px 3px; }
.stat b { display: block; font: bold 20px/1.2 "Courier New", Courier, monospace; color: #00ff00; overflow-wrap: anywhere; }
.stat span { font-size: 11px; color: #fff; }
.stat b .fillin { font-size: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.card { border: 3px ridge #00ffff; background: #000; padding: 8px; }
.card h3 { font: bold 15px "Times New Roman", Times, serif; color: #ffff00; margin: 0 0 4px; }
.card .badge { float: right; background: #ffff00; color: #000; font: bold 10px Verdana, sans-serif; padding: 1px 5px; border: 1px solid #000; margin-left: 6px; }
.card .when { font: 12px "Courier New", Courier, monospace; color: #00ffff; margin-bottom: 4px; }
.tags { margin-top: 6px; }
.tag { display: inline-block; font: 11px "Courier New", Courier, monospace; background: #000080; color: #fff; border: 1px solid #00ffff; padding: 0 4px; margin: 0 3px 3px 0; }
.card table.t { margin-top: 6px; }
.odometer { display: inline-block; white-space: nowrap; }
.odometer span {
  display: inline-block; background: #000; color: #00ff00; font: bold 20px/1.3 "Courier New", Courier, monospace;
  border: 2px inset #808080; padding: 0 4px; margin: 0 1px; min-width: 20px; text-align: center;
}
.odometer.small span { font-size: 14px; padding: 0 2px; min-width: 14px; }
.countdown { text-align: center; }
.countdown .units { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.countdown .unit { text-align: center; }
.countdown .unit small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #00ffff; }
.buttons { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.b88 {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  width: 88px; height: 31px; border: 2px outset #fff; overflow: hidden; text-align: center;
  font: bold 9px/1.15 Verdana, sans-serif; text-decoration: none; padding: 0 2px;
}
a.b88:hover { border-style: inset; filter: brightness(1.15); }
.b88 small { font: 8px/1.1 Verdana, sans-serif; }
.webring { border: 3px ridge #c0c0c0; background: #000080; text-align: center; padding: 6px; margin: 10px auto; max-width: 560px; font-size: 12px; }
.webring b { color: #ffff00; }
.construction { display: flex; align-items: center; gap: 10px; }
.construction svg { width: 64px; height: 64px; flex: 0 0 auto; }
.stripes { height: 12px; border: 1px solid #000; margin-top: 8px;
  background: repeating-linear-gradient(45deg, #ffcc00 0 12px, #000 12px 24px); background-size: 34px 34px; animation: stripes 1.2s linear infinite; }
@keyframes stripes { to { background-position: 34px 0; } }
.globe .land { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: translateX(-96px); } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery figure { margin: 0; border: 3px ridge #c0c0c0; background: #000; padding: 4px; text-align: center; }
.gallery img { display: block; width: 100%; height: 120px; object-fit: cover; }
.gallery .ph { height: 120px; display: flex; align-items: center; justify-content: center; background: #c0c0c0; color: #000; font: 11px "Courier New", Courier, monospace; border: 2px inset #fff; padding: 4px; }
.gallery figcaption { font-size: 11px; margin-top: 4px; }
.embed { margin-bottom: 10px; }
.embed iframe { width: 100%; border: 3px inset #c0c0c0; background: #000; display: block; }
.embed .slot { border: 3px dashed #ffff00; padding: 14px 8px; text-align: center; font: 12px "Courier New", Courier, monospace; background: #000; }
.embed b { display: block; margin-bottom: 3px; }
.entry { border: 2px groove #c0c0c0; background: #000; padding: 8px; margin-bottom: 8px; }
.entry h3 { font: bold italic 16px "Times New Roman", Times, serif; color: #ffff00; margin: 0; }
.entry .meta { font: 11px "Courier New", Courier, monospace; color: #00ffff; margin-bottom: 5px; }
.entry .text { white-space: pre-wrap; font: 14px/1.5 "Times New Roman", Times, serif; }
.gb-entry { border-bottom: 1px dashed #808080; padding: 6px 0; }
.gb-entry:last-child { border-bottom: 0; }
.gb-entry .who { color: #ffff00; font-weight: bold; }
.gb-entry .meta { font: 11px "Courier New", Courier, monospace; color: #00ffff; }
.whatsnew { list-style: none; margin: 0; padding: 0; }
.whatsnew li { padding: 3px 0; border-bottom: 1px dotted #808080; }
.whatsnew time { font: bold 12px "Courier New", Courier, monospace; color: #00ffff; margin-right: 6px; }
details.puzzle-answer { margin-top: 8px; border: 2px inset #808080; background: #000; padding: 6px 8px; }
details.puzzle-answer summary { cursor: pointer; color: #ffff00; font-weight: bold; }
.sitemap dt { font-weight: bold; margin-top: 4px; } .sitemap dd { margin: 0 0 0 18px; font-size: 12px; color: #c0c0c0; }
.pennant { display: block; margin: 0 auto; width: 100%; max-width: 420px; height: auto; }
#foot { margin-top: 14px; text-align: center; font-size: 12px; color: #c0c0c0; }
#foot p { margin: 5px 0; }
#foot .stamp { font: bold 12px "Courier New", Courier, monospace; color: #00ffff; }

/* ---------- forms ---------- */
.form label { display: block; font-weight: bold; font-size: 12px; margin: 8px 0 2px; }
.form label small { font-weight: normal; }
.form input, .form select, .form textarea {
  width: 100%; font: 14px Verdana, sans-serif; color: #000; background: #fff; border: 3px inset #c0c0c0; padding: 4px;
}
.form textarea { min-height: 110px; resize: vertical; }
.form button { margin-top: 10px; font-size: 13px; padding: 5px 16px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { font: bold 13px "Courier New", Courier, monospace; color: #ffff00; margin-top: 8px; min-height: 1em; }
.s-gray .form-status { color: #800000; }

/* ---------- games ---------- */
.game { text-align: center; }
.game .big { font-size: 15px; padding: 12px 18px; margin: 8px 0; }
.game .money { font: bold 24px "Courier New", Courier, monospace; color: #00ff00; background: #000; border: 3px inset #808080; padding: 2px 8px; display: inline-block; min-width: 180px; }
.game .rate { font: 12px "Courier New", Courier, monospace; color: #00ffff; margin: 3px 0; }
.shop { text-align: left; margin-top: 8px; }
.shop-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px dotted #808080; padding: 5px 0; }
.shop-row .info { flex: 1; min-width: 0; }
.shop-row .info b { color: #ffff00; }
.shop-row .info small { display: block; color: #c0c0c0; }
.shop-row button { flex: 0 0 auto; min-width: 104px; }
canvas.snake { background: #000; border: 4px inset #c0c0c0; image-rendering: pixelated; touch-action: none; width: 300px; height: 300px; }
.dpad { display: inline-grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 40px); gap: 3px; margin-top: 8px; }
.dpad button { padding: 0; font-size: 16px; }
.dpad .up { grid-column: 2; grid-row: 1; } .dpad .left { grid-column: 1; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 2; } .dpad .right { grid-column: 3; grid-row: 2; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cal-head strong { font: bold 18px "Times New Roman", Times, serif; color: #ffff00; }
table.cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; border: 3px outset #c0c0c0; }
table.cal th { background: #c0c0c0; color: #000; font-size: 11px; padding: 2px; border: 1px outset #fff; }
table.cal td { background: #000050; border: 1px inset #808080; vertical-align: top; height: 74px; padding: 2px 3px; font-size: 11px; overflow: hidden; }
table.cal td.out { background: #101010; }
table.cal td.today { background: #4d004d; border: 2px solid #ffff00; }
table.cal .d { font: bold 12px "Courier New", Courier, monospace; color: #00ffff; }
table.cal td.today .d { color: #ffff00; }
table.cal .ev { display: block; margin-top: 2px; padding: 0 2px; background: #006400; color: #fff; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.cal .ev.allday { background: #800000; }
.evlist { list-style: none; margin: 0; padding: 0; }
.evlist li { padding: 4px 0; border-bottom: 1px dotted #808080; }
.evlist li:last-child { border-bottom: 0; }
.evlist .when { display: block; font: bold 12px "Courier New", Courier, monospace; color: #00ffff; }
.evlist .past { opacity: .8; text-decoration: line-through; }
.s-gray .evlist .when { color: #000080; }
.cal-embed { width: 100%; height: 480px; border: 3px inset #c0c0c0; background: #fff; }

/* ---------- map ---------- */
.mapframe { border: 5px ridge #c0c0c0; background: #000; }
.map { height: 340px; background: #1a1a1a; }
.map.mini { height: 170px; }
.loc-status { font: bold 14px "Courier New", Courier, monospace; color: #00ff00; margin-bottom: 6px; }
.loc-status.off { color: #ffff00; }
.s-gray .loc-status { color: #006400; } .s-gray .loc-status.off { color: #800000; }
.loc-side { margin-top: 8px; }
.loc-grid .loc-side { margin-top: 0; }
.loc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.pulse { width: 16px; height: 16px; border-radius: 50%; background: #ff0000; border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(255,0,0,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(255,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); } }
.leaflet-container { font: 12px Verdana, sans-serif; }
.leaflet-container a { color: #0078a8; background: none; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { white-space: normal; }
  .marquee span { padding-left: 6px; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .w-third, .w-twothirds, .w-half { grid-column: span 3; }
}
@media (max-width: 700px) {
  #frames { display: block; }
  #navframe { position: static; width: auto; height: auto; border-right: 0; border-bottom: 5px ridge #c0c0c0; padding: 6px 8px; }
  .nav-title { margin-bottom: 4px; }
  .nav-title a { font-size: 18px; padding: 4px; }
  .nav-title br { display: none; }
  #navtoggle { display: block; width: 100%; }
  #navlinks { display: none; }
  #navlinks.open { display: block; }
  #navframe ul { columns: 2; }
  #navframe li a { padding-top: 6px; padding-bottom: 6px; }
  #navframe li a::before { top: 7px; }
  #mainframe { padding: 0 8px 16px; }
  .site-title { font-size: 30px; }
  .globe { width: 38px; height: 38px; }
  .w-third, .w-twothirds, .w-half, .w-full { grid-column: span 6; }
  .cols2, .cols3 { columns: 1; }
  .loc-grid { grid-template-columns: 1fr; }
  table.cal td { height: 54px; font-size: 9px; padding: 1px; }
  table.cal .ev { font-size: 9px; }
  .map { height: 260px; }
}
