/* the windows 98 bits. the arcade uses these too */
:root {
    --face: #c0c0c0;
    --light: #ffffff;
    --mid: #dfdfdf;
    --shade: #808080;
    --dark: #000000;
    --title: #000080;
    --title2: #1084d0;
    --desk: #008080;
    --ui: "MS Sans Serif", Tahoma, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--desk);
    color: #000;
    font-family: var(--ui);
    font-size: 13px;
    -webkit-text-size-adjust: 100%;
}

.window {
    background: var(--face);
    padding: 3px;
    box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--mid), inset -2px -2px var(--shade), inset 2px 2px var(--light);
}

.title-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 3px 3px 5px;
    background: linear-gradient(90deg, var(--title), var(--title2));
    color: #fff;
    font-weight: bold;
    user-select: none;
}
.title-bar img { width: 16px; height: 16px; image-rendering: pixelated; }
.title-bar .title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

button, .btn {
    font: inherit;
    color: #000;
    background: var(--face);
    border: 0;
    padding: 4px 12px;
    min-height: 23px;
    cursor: pointer;
    box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--light), inset -2px -2px var(--shade), inset 2px 2px var(--mid);
}
button:active, .btn:active { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--light), inset 2px 2px var(--shade); padding: 5px 11px 3px 13px; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
button:disabled { color: var(--shade); text-shadow: 1px 1px var(--light); cursor: default; }

.title-bar button { min-height: 0; width: 18px; height: 16px; padding: 0; font-size: 11px; font-weight: bold; line-height: 1; }
.title-bar button:active { padding: 1px 0 0 1px; }

.sunken { background: #fff; box-shadow: inset 1px 1px var(--shade), inset -1px -1px var(--light), inset 2px 2px var(--dark), inset -2px -2px var(--mid); }

input[type="password"], input[type="text"] {
    font: inherit;
    width: 100%;
    padding: 4px 5px;
    border: 0;
    background: #fff;
    box-shadow: inset 1px 1px var(--shade), inset -1px -1px var(--light), inset 2px 2px var(--dark), inset -2px -2px var(--mid);
}
input:focus { outline: none; }

.menu-bar { display: flex; gap: 2px; padding: 2px 0; }
.menu-bar span { padding: 2px 7px; }
.menu-bar span::first-letter { text-decoration: underline; }

.status-bar { display: flex; gap: 2px; margin-top: 3px; }
.status-bar span { flex: 1; padding: 2px 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-shadow: inset 1px 1px var(--shade), inset -1px -1px var(--light); }
.status-bar span.fixed { flex: none; }


/* ── the cat facts page ── */
.page { max-width: 780px; margin: 0 auto; padding: 28px 12px 40px; }

.address { display: flex; align-items: center; gap: 6px; padding: 3px 2px 5px; }
.address .sunken { flex: 1; padding: 3px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* inside the window its the old web: times new roman, blue links, grooved lines */
.web { padding: 18px 22px 22px; font-family: "Times New Roman", Times, serif; font-size: 17px; line-height: 1.4; }
.web h1 { margin: 0; font-size: 40px; line-height: 1; }
.web h2 { margin: 26px 0 8px; font-size: 24px; }
.web p { margin: 0 0 12px; }
.web a { color: #0000ee; }
.web a:visited { color: #551a8b; }
.web hr { border: 0; height: 2px; margin: 18px 0; box-shadow: inset 0 1px var(--shade), inset 0 -1px var(--mid); }
.web small { font-size: 14px; }

.masthead { display: flex; align-items: center; gap: 18px; }
.masthead .sub { margin: 6px 0 0; font-style: italic; }
.mascot { flex: none; padding: 0; min-height: 0; background: none; box-shadow: none; cursor: default; }
.mascot:active { padding: 0; box-shadow: none; }
.mascot img { display: block; width: 70px; height: 75px; image-rendering: pixelated; }

.ticker { margin: 16px 0 0; padding: 3px 0; background: #000080; color: #ffff00; font-family: "Courier New", monospace; font-size: 15px; font-weight: bold; overflow: hidden; white-space: nowrap; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 22s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

.fact-box { padding: 14px 16px; background: #ffffcc; border: 2px solid #000; }
.fact-box .label { margin: 0 0 6px; font-family: "Courier New", monospace; font-size: 14px; font-weight: bold; }
.fact-box .fact { margin: 0 0 12px; font-size: 22px; line-height: 1.3; min-height: 2.6em; }
.fact-box button { font-family: var(--ui); font-size: 13px; }

.cotw { display: flex; gap: 16px; align-items: flex-start; }
.cotw img { flex: none; width: 200px; height: auto; border: 2px solid #000; }

.web ul.facts { margin: 0; padding-left: 22px; }
.web ul.facts li { margin-bottom: 5px; }

.web table { width: 100%; border-collapse: collapse; font-size: 16px; }
.web th, .web td { padding: 5px 8px; border: 1px solid #000; text-align: left; vertical-align: top; }
.web th { background: #000080; color: #fff; }
.web tr:nth-child(even) td { background: #eeeeee; }
.scroll-x { overflow-x: auto; }

.construction { margin: 22px 0 14px; padding: 6px; text-align: center; font-family: "Courier New", monospace; font-weight: bold; color: #000; background: repeating-linear-gradient(135deg, #ffcc00 0 14px, #000 14px 28px); }
.construction span { background: #ffcc00; padding: 2px 10px; }

.foot { text-align: center; font-size: 14px; }

/* a link that looks like a small button. add bounce and it hops when you hover it */
.web a.btn, .web a.btn:visited { display: inline-block; color: #000; text-decoration: none; font-family: var(--ui); }
.btn.small { min-height: 0; padding: 2px 8px; font-size: 11px; }
.btn.small:active { padding: 3px 7px 1px 9px; }
.bounce:hover { animation: bounce 0.4s steps(2) infinite; }
@keyframes bounce { 50% { transform: translateY(-3px); } }
.counter { display: inline-block; padding: 1px 6px; background: #000; color: #00ff00; font-family: "Courier New", monospace; font-weight: bold; letter-spacing: 3px; }


/* ── dialog boxes ── */
.veil { position: fixed; inset: 0; display: grid; place-items: center; padding: 12px; z-index: 50; }
.veil[hidden] { display: none; }
.dialog { width: 100%; max-width: 340px; }
.dialog .body { padding: 14px 12px 10px; }
.dialog .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.dialog .row img { flex: none; width: 28px; height: 30px; image-rendering: pixelated; }
.dialog p { margin: 0 0 6px; }
.dialog .msg { min-height: 1.3em; color: #800000; }
.dialog .buttons { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.dialog .buttons button { min-width: 75px; }
.dialog.nope { animation: nope 0.3s steps(6); }
@keyframes nope { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }


@media (max-width: 560px) {
    .page { padding: 8px 4px 24px; }
    .web { padding: 14px 12px 18px; }
    .web h1 { font-size: 32px; }
    .cotw { flex-direction: column; }
    .cotw img { width: 100%; max-width: 280px; }
    .menu-bar span:nth-child(n+5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker span { animation: none; padding-left: 6px; }
    .dialog.nope { animation: none; }
    .bounce:hover { animation: none; }
}
