:root {
    --ink: #111111;
    --link: #0000ee;
    --yellow: #ffff00;
    --pink: #ff5cd6;
    --cyan: #00d8ff;
}

* {
    box-sizing: border-box;
}

html {
    cursor: crosshair;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background-color: #00ccff;
    background-image:
        linear-gradient(0deg, rgba(255, 255, 0, 0.42) 25%, transparent 25%),
        linear-gradient(90deg, rgba(255, 0, 255, 0.33) 25%, transparent 25%);
    background-size: 24px 24px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.25;
}

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8) 1px, transparent 1px, transparent 8px);
}

.top-area,
.footer,
.bottom-blast {
    position: relative;
    width: min(1180px, calc(100% - 20px));
    margin: 10px auto;
    padding: 12px;
    text-align: center;
    background: #ffffcc;
    border: 4px ridge #999;
}

.footer {
    margin-bottom: 20px;
}

.eyebrow,
.tagline,
#status-line,
#meme-readout,
.footer,
.stamp,
.achievement,
.tiny-note,
#song-status {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

h1 {
    margin: 4px 0 10px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: clamp(2.8rem, 9vw, 5.3rem);
    line-height: 1;
    color: #ff00aa;
    text-transform: lowercase;
    text-decoration: underline;
    text-shadow: 2px 2px 0 #ffff00;
}

h2 {
    margin: 0 0 8px;
    padding: 4px;
    border: 2px solid #000;
    background: #ffffff;
    color: #0000cc;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.35rem;
    text-align: center;
}

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

.link-row {
    margin: 8px 0;
    font-weight: 700;
}

.badges-line {
    margin: 10px 0 0;
    color: #cc0000;
    font-weight: 700;
}

marquee {
    margin-top: 8px;
    border: 3px dashed #ff0000;
    background: var(--yellow);
    padding: 6px 0;
    color: #000;
    font-weight: 700;
}

.layout {
    width: min(1180px, calc(100% - 20px));
    margin: 0 auto;
    position: relative;
}

.outer-table,
.main-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px;
}

.sidebar-cell {
    width: 20%;
    vertical-align: top;
}

.main-cell {
    width: 60%;
    vertical-align: top;
}

.box {
    vertical-align: top;
    padding: 10px;
    background: #ffffff;
    border: 4px outset #c0c0c0;
}

.highlight-box {
    background: #fff7b3;
}

.side-box + .side-box {
    margin-top: 8px;
}

.small-center {
    text-align: center;
}

.warning-box {
    background: #ffe3e3;
}

.ad-box {
    background: linear-gradient(180deg, #fff799, #ffb6ff);
}

.big-stat,
.big-mini {
    font-size: 2rem;
    color: #cc0000;
    font-weight: 700;
    text-align: center;
}

.bad-list {
    padding-left: 20px;
}

.bad-list li + li {
    margin-top: 6px;
}

.disaster-button {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border: 3px outset #ccc;
    background: #efefef;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.disaster-button.alt {
    background: #ffeeee;
}

.disaster-button.small {
    font-size: 12px;
}

.meter-wrap {
    height: 24px;
    border: 2px solid #000;
    background: #ddd;
    overflow: hidden;
}

.meter-bar {
    width: 4%;
    height: 100%;
    background: #00aa00;
    transition: width 180ms ease-out;
}

.guestbook {
    padding: 8px;
    border: 2px dashed #666;
    background: #f7f7f7;
}

.mini-form {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.mini-form textarea {
    width: 100%;
    resize: vertical;
    border: 2px inset #999;
    padding: 6px;
    font-family: "Courier New", monospace;
    background: #fffff0;
}

.poll-form {
    line-height: 1.7;
}

.visitor-count {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 8px;
    background: #000;
    color: #26ff00;
    font-family: "Courier New", monospace;
}

.stamp,
.award-strip {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 7px;
    color: #cc0000;
    border: 3px double currentColor;
    font-weight: 700;
    background: #fff8c7;
}

.award-strip {
    display: block;
}

.sticker-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.sticker {
    position: absolute;
    padding: 4px 8px;
    border: 2px solid #000;
    font-size: 16px;
    font-weight: 700;
    background: var(--yellow);
    animation: sticker-drift 8s linear infinite;
}

.sticker:nth-child(1) {
    top: 17%;
    left: 2%;
}

.sticker:nth-child(2) {
    top: 68%;
    left: 8%;
    animation-duration: 10s;
}

.sticker:nth-child(3) {
    top: 22%;
    right: 5%;
    animation-duration: 6.5s;
}

.sticker:nth-child(4) {
    bottom: 14%;
    right: 4%;
    animation-duration: 11s;
}

.sticker:nth-child(5) {
    bottom: 28%;
    left: 45%;
    animation-duration: 9s;
}

.sticker:nth-child(6) {
    top: 44%;
    left: 1%;
    animation-duration: 12s;
}

.sticker:nth-child(7) {
    top: 8%;
    right: 18%;
    animation-duration: 7s;
}

.cringe-dialog {
    max-width: 24rem;
    border: 4px ridge #999;
    padding: 1rem;
    background: #ffffcc;
}

.cringe-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.blink-zone {
    animation: blink-bg 1.1s steps(2, end) infinite;
}

@keyframes blink-bg {
    0%,
    100% {
        filter: saturate(1) contrast(1);
    }

    50% {
        filter: saturate(1.35) contrast(1.08);
    }
}

@keyframes sticker-drift {
    0% {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }

    50% {
        transform: translate3d(20px, -12px, 0) rotate(3deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }
}

@media (max-width: 900px) {
    .outer-table,
    .outer-table tbody,
    .outer-table tr,
    .outer-table td,
    .main-table,
    .main-table tbody,
    .main-table tr,
    .main-table td {
        display: block;
        width: 100%;
    }

    .sticker {
        font-size: 12px;
    }
}

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

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

@keyframes slow-wobble {
    0%,
    100% {
        transform: rotate(0.8deg) scale(1);
    }

    50% {
        transform: rotate(-1.2deg) scale(1.02);
    }
}

@keyframes blink-bg {
    0%,
    100% {
        filter: saturate(1) contrast(1);
    }

    50% {
        filter: saturate(1.5) contrast(1.1);
    }
}

@keyframes sticker-drift {
    0% {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }

    50% {
        transform: translate3d(20px, -12px, 0) rotate(3deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }
}

@media (max-width: 700px) {
    .main-table,
    .main-table tbody,
    .main-table tr,
    .main-table td {
        display: block;
        width: 100%;
    }

    .sticker {
        font-size: 0.9rem;
    }
}

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