@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&family=Caveat:wght@400;600;700&display=swap');

@font-face {
    font-family: 'PixelMplus';
    src: url('../fonts/PixelMplus12-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Squarewave';
    src: url('../fonts/Squarewave.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PKMNFont';
    src: url('../fonts/PKMN_RBYGSC.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EmojiFont';
    src: url('../fonts/EmojiFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===========================
   RAINBOW ACCENT VARIABLES
   =========================== */
:root {
    --rainbow-1: #FF0019;
    --rainbow-2: #FF8113;
    --rainbow-3: #FFC92A;
    --rainbow-4: #FFFB29;
    --rainbow-5: #D4FF00;
    --rainbow-6: #7BFF00;
    --rainbow-7: #31FFC4;
    --rainbow-8: #31CBFF;
    --rainbow-9: #1900FF;
    --rainbow-10: #A100FF;

    --rainbow-gradient: linear-gradient(
        90deg,
        #FF0019,
        #FF8113,
        #FFC92A,
        #FFFB29,
        #D4FF00,
        #7BFF00,
        #31FFC4,
        #31CBFF,
        #1900FF,
        #A100FF
    );

    --bg-white: #ffffff;
    --bg-check: #e5e7eb;
    --bg-dark: #111111;
    --text-light: #ffffff;
    --text-dark: #111111;
}

/* ===========================
   BODY & BACKGROUND
   =========================== */
body {
    margin: 0;
    height: 100vh;
    min-height: 100vh;
    background:
        linear-gradient(45deg, var(--bg-check) 25%, transparent 25%, transparent 75%, var(--bg-check) 75%, var(--bg-check)),
        linear-gradient(45deg, var(--bg-check) 25%, transparent 25%, transparent 75%, var(--bg-check) 75%, var(--bg-check));
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    background-color: var(--bg-white);
    font-family: "PixelMplus", "Squarewave", "PKMNFont", monospace;
    font-size: 22px;
    overflow: auto;
    position: relative;
    animation: moveBackground 10s infinite linear;
    color: var(--text-dark);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    text-align: center;
}

/* overlay removed — keeping things vibrant! */

/* Rainbow top border line across the whole page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--rainbow-gradient);
    z-index: 9999;
    animation: rainbowSlide 4s linear infinite;
    background-size: 200% 100%;
}

@keyframes moveBackground {
    0%   { background-position: 0 0, 25px 25px; }
    100% { background-position: 0 50px, 25px 75px; }
}

@keyframes rainbowSlide {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@keyframes rainbowBorder {
    0%   { border-color: #FF0019; box-shadow: 0 0 8px #FF0019; }
    10%  { border-color: #FF8113; box-shadow: 0 0 8px #FF8113; }
    20%  { border-color: #FFC92A; box-shadow: 0 0 8px #FFC92A; }
    30%  { border-color: #FFFB29; box-shadow: 0 0 8px #FFFB29; }
    40%  { border-color: #D4FF00; box-shadow: 0 0 8px #D4FF00; }
    50%  { border-color: #7BFF00; box-shadow: 0 0 8px #7BFF00; }
    60%  { border-color: #31FFC4; box-shadow: 0 0 8px #31FFC4; }
    70%  { border-color: #31CBFF; box-shadow: 0 0 8px #31CBFF; }
    80%  { border-color: #1900FF; box-shadow: 0 0 8px #1900FF; }
    90%  { border-color: #A100FF; box-shadow: 0 0 8px #A100FF; }
    100% { border-color: #FF0019; box-shadow: 0 0 8px #FF0019; }
}

/* ===========================
   MAIN TEXT
   =========================== */
.main-text {
    font-size: 1rem;
    text-align: center;
    background: var(--rainbow-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowSlide 3s linear infinite;
}

/* ===========================
   LAYOUT
   =========================== */
.page-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 10px;
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    display: flex;
    gap: 10px;
}

/* ===========================
   BOXES
   =========================== */
.box {
    background-color: #000000;
    border: 3px solid #ffffff;
    padding: 10px;
    border-radius: 12px;
    min-height: 60px;
    text-align: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    font-family: "PixelMplus", "Squarewave", "PKMNFont", monospace;
}

.box:hover {
    transform: scale(1.02);
    animation: rainbowBorder 2s linear infinite;
}

/* ===========================
   STICKER & BLOG VARIANTS
   =========================== */
.sticker {
    background-color: #111111;
    border-color: var(--rainbow-4); /* yellow */
    box-shadow: 0 0 6px var(--rainbow-4);
    color: #ffffff;
    margin-top: 10px;
}

.blog {
    /* no pattern, no border override — inherits white glow from .box */
}

/* tama: no box styling, just floats freely */
.box.tama {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-height: 0;
    margin-top: 16px;
}
.box.tama img {
    display: block;
    animation: tamaFloat 12s ease-in-out infinite;
    transform-origin: center center;
}

/* infinity drift + occasional 360 spin */
@keyframes tamaFloat {
    0%   { transform: translate(0px, 0px) rotate(0deg); }
    12%  { transform: translate(18px, -10px) rotate(0deg); }
    25%  { transform: translate(0px, -18px) rotate(0deg); }
    37%  { transform: translate(-18px, -10px) rotate(0deg); }
    50%  { transform: translate(0px, 0px) rotate(0deg); }
    /* spin! */
    62%  { transform: translate(0px, 0px) rotate(180deg); }
    70%  { transform: translate(0px, 0px) rotate(360deg); }
    /* back into the figure 8 */
    80%  { transform: translate(18px, 10px) rotate(360deg); }
    90%  { transform: translate(-18px, 10px) rotate(360deg); }
    100% { transform: translate(0px, 0px) rotate(360deg); }
}

/* ===========================
   SIDEBAR BOXES
   =========================== */
.sidebar .box {
    background-color: #ffffff;
    color: #111111;
    border: 3px solid #111111; /* fallback — also acts as outer black ring via outline */
    outline: 3px solid #111111;
    box-shadow: 0 6px 0 #111111; /* straight down */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Rainbow inner border, black outline sits outside it */
.sidebar .box:nth-child(1)  { border-color: var(--rainbow-1); }
.sidebar .box:nth-child(2)  { border-color: var(--rainbow-2); }
.sidebar .box:nth-child(3)  { border-color: var(--rainbow-3); }
.sidebar .box:nth-child(4)  { border-color: var(--rainbow-4); }
.sidebar .box:nth-child(5)  { border-color: var(--rainbow-5); }
.sidebar .box:nth-child(6)  { border-color: var(--rainbow-6); }
.sidebar .box:nth-child(7)  { border-color: var(--rainbow-7); }
.sidebar .box:nth-child(8)  { border-color: var(--rainbow-8); }
.sidebar .box:nth-child(9)  { border-color: var(--rainbow-9); }
.sidebar .box:nth-child(10) { border-color: var(--rainbow-10); }

.sidebar .box:hover {
    box-shadow: 4px 4px 0 var(--rainbow-7);
    transform: translate(-2px, -2px);
}

.sidebar.left {
    transform: translateX(-50px);
    z-index: 1;
}

.sidebar.right {
    transform: translateX(50px);
    z-index: 1;
}

/* ===========================
   MAIN BOX
   =========================== */

/* The gradient border trick: wrap the rainbow gradient as a background,
   then inset the actual dark background via padding + background-clip */
.main-box {
    background:
        linear-gradient(#111111, #111111) padding-box,
        linear-gradient(
            to bottom,
            #FF0019,
            #FF8113,
            #FFC92A,
            #FFFB29,
            #D4FF00,
            #7BFF00,
            #31FFC4,
            #31CBFF,
            #1900FF,
            #A100FF
        ) border-box;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    z-index: 2;
    min-width: 800px;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

/* ===========================
   RAINBOW DIVIDER UTILITY
   (use <hr class="rainbow-hr"> anywhere)
   =========================== */
.rainbow-hr {
    border: none;
    height: 3px;
    background: var(--rainbow-gradient);
    background-size: 200% 100%;
    animation: rainbowSlide 3s linear infinite;
    border-radius: 2px;
    margin: 12px 0;
}

/* ===========================
   RAINBOW BOTTOM OVERLAY
   fades in from transparent at top
   to a cycling rainbow color at bottom
   =========================== */
#rainbow-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    pointer-events: none;
    z-index: 5;
    opacity: 0.38;
}

@keyframes overlayHue {
    0%   { background: linear-gradient(to top, hsl(0,   100%, 55%), transparent); }
    10%  { background: linear-gradient(to top, hsl(20,  100%, 55%), transparent); }
    20%  { background: linear-gradient(to top, hsl(45,  100%, 55%), transparent); }
    30%  { background: linear-gradient(to top, hsl(65,  100%, 55%), transparent); }
    40%  { background: linear-gradient(to top, hsl(85,  100%, 55%), transparent); }
    50%  { background: linear-gradient(to top, hsl(165, 100%, 55%), transparent); }
    60%  { background: linear-gradient(to top, hsl(195, 100%, 55%), transparent); }
    70%  { background: linear-gradient(to top, hsl(230, 100%, 55%), transparent); }
    80%  { background: linear-gradient(to top, hsl(270, 100%, 55%), transparent); }
    90%  { background: linear-gradient(to top, hsl(290, 100%, 55%), transparent); }
    100% { background: linear-gradient(to top, hsl(360, 100%, 55%), transparent); }
}

/* ===========================
   BLINKIE SCROLLER
   =========================== */
.blinkie-track {
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
    min-height: 56px;
    position: relative;
    z-index: 10;
    background-color: #000000;
    margin: 0;
    /* rainbow line above */
    border-top: 4px solid transparent;
    border-image: linear-gradient(
        90deg,
        #FF0019, #FF8113, #FFC92A, #FFFB29,
        #D4FF00, #7BFF00, #31FFC4, #31CBFF,
        #1900FF, #A100FF
    ) 1;
}

.blinkie-inner {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: blinkieScroll 40s linear infinite;
    align-items: center;
}

.blinkie-track:hover .blinkie-inner {
    animation-play-state: paused;
}

.blinkie-inner a {
    flex-shrink: 0;
    display: inline-block;
    line-height: 0;
}

.blinkie-inner img {
    height: 28px;    /* taller so they're not cut off */
    width: auto;
    display: block;
    image-rendering: pixelated;
}

@keyframes blinkieScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   FOOTER — "made with love"
   =========================== */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 16px 0 20px;
    position: relative;
    z-index: 10;
    margin-top: 0;
    background-color: #000000;
}

.site-footer p {
    display: inline-block;
    color: #ffffff;
    font-size: 16px;
    padding: 6px 16px;
    border-radius: 8px;
    border: 2px solid transparent;
    background-color: rgba(0, 0, 0, 0.7);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.site-footer p:hover {
    animation: rainbowBorder 2s linear infinite;
    box-shadow: 0 0 12px rgba(255,255,255,0.2);
}

/* ===========================
   EMOJI FONT UTILITY
   apply class="ef" to any element
   to use the dafont emoji font
   =========================== */
.ef, .emoji {
    font-family: 'EmojiFont', sans-serif;
}

/* ===========================
   TO-DO LIST BOX
   =========================== */

/* bite shape — polygon clips a chunky irregular bite out of the top-right corner */
@keyframes todoHover {
    0%,100% { transform: translate(0,0); }
    25%     { transform: translate(-1px, 1px); }
    50%     { transform: translate(1px, -1px); }
    75%     { transform: translate(-1px,-1px); }
}

.todo-box {
    /* small grey checkered background */
    background-color: #d0d0d0;
    background-image:
        linear-gradient(45deg, #b8b8b8 25%, transparent 25%),
        linear-gradient(-45deg, #b8b8b8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #b8b8b8 75%),
        linear-gradient(-45deg, transparent 75%, #b8b8b8 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;

    /* bite taken out of top-right — polygon with chunky notch */
    clip-path: polygon(
        0% 0%,
        62% 0%,
        62% 5%,
        67% 0%,
        72% 4%,
        76% 0%,
        80% 5%,
        84% 1%,
        87% 0%,
        100% 0%,
        100% 100%,
        0% 100%
    );

    border: none;
    outline: none;
    box-shadow: 3px 3px 0 #444, 6px 6px 0 #222;
    padding: 16px 18px 14px;
    color: #111;
    font-family: "PixelMplus", "Squarewave", "PKMNFont", monospace;
    font-size: 20px;
    text-align: left;
    min-height: 60px;
    position: relative;
    overflow: visible;
}

.todo-box::before { display: none; }
.todo-box::after  { display: none; }

.todo-box h3 {
    font-family: "PixelMplus", "Squarewave", "PKMNFont", monospace;
    font-weight: normal;
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #111;
    border-bottom: 2px dashed #888;
    padding-bottom: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.todo-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.todo-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    color: #222;
    font-size: 20px;
}

.todo-box ul li::before {
    content: '☐';
    font-family: 'EmojiFont', sans-serif;
    font-size: 20px;
    flex-shrink: 0;
    color: #555;
}

.todo-box ul li.done {
    text-decoration: line-through;
    color: #777;
}
.todo-box ul li.done::before {
    content: '☑';
    font-family: 'EmojiFont', sans-serif;
    color: #666;
}
/* ===========================
   CRT TV VISITOR COUNTER
   =========================== */
.box.counter {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* ---- outer wrapper — gives room for antennas above ---- */
.tv-counter {
    position: relative;
    padding-top: 36px; /* room for antennas */
}

/* ---- dual antennas ---- */
.tv-antennas {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 36px;
    pointer-events: none;
}
.tv-antenna {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 32px;
    background: #666;
    border-radius: 2px 2px 0 0;
    box-shadow: 1px 0 0 #888;
}
.tv-antenna-left {
    left: 22px;
    transform: rotate(-22deg);
    transform-origin: bottom center;
}
.tv-antenna-right {
    right: 22px;
    transform: rotate(22deg);
    transform-origin: bottom center;
}
/* little ball tips */
.tv-antenna::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #888;
    border-radius: 50%;
}

/* ---- TV body ---- */
.tv-body {
    background: #1c1c1c;
    border-radius: 10px 10px 6px 6px;
    border: 3px solid #444;
    box-shadow:
        0 0 0 2px #222,
        3px 5px 0 2px #000,
        inset 0 1px 0 rgba(255,255,255,0.06);
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
}

/* ---- screen area ---- */
.tv-screen {
    position: relative;
    background: #050f08;
    flex: 1;
    margin: 8px 6px 8px 8px;
    border-radius: 5px;
    padding: 10px 8px 8px;
    overflow: hidden;
    border: 2px solid #111;
    box-shadow:
        inset 0 0 20px rgba(0,255,100,0.1),
        inset 0 0 4px rgba(0,0,0,0.8);
}

/* scanlines */
.tv-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.3) 2px,
        rgba(0,0,0,0.3) 4px
    );
    pointer-events: none;
    z-index: 3;
    border-radius: 3px;
}

/* screen glare */
.tv-screen::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 35%; height: 25%;
    background: linear-gradient(135deg, rgba(255,255,255,0.07), transparent);
    border-radius: 3px;
    pointer-events: none;
    z-index: 4;
}

/* ---- screen flicker overlay ---- */
.tv-flicker {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    pointer-events: none;
    z-index: 5;
    animation: tvFlicker 6s steps(1) infinite;
}
@keyframes tvFlicker {
    0%,  96%              { opacity: 0; }
    96.5%                 { opacity: 0.12; background: rgba(0,255,100,0.15); }
    97%                   { opacity: 0; }
    97.8%                 { opacity: 0.08; background: rgba(0,255,100,0.1); }
    98%, 100%             { opacity: 0; }
}

/* ---- side controls panel ---- */
.tv-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 6px 8px 4px;
    background: #181818;
    border-left: 1px solid #333;
    width: 22px;
    flex-shrink: 0;
}
.tv-btn-red,
.tv-btn-grey {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255,255,255,0.15);
}
.tv-btn-red  {
    background: #cc2200;
    box-shadow: 0 0 4px rgba(200,50,0,0.6), 0 1px 0 #000;
}
.tv-btn-grey { background: #555; }

/* ---- text on screen ---- */
.tv-label {
    font-family: "PixelMplus", "Squarewave", "PKMNFont", monospace;
    font-size: 14px;
    color: #00ff66;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 6px #00ff66, 0 0 12px rgba(0,255,100,0.4);
    margin-bottom: 4px;
}

.tv-number {
    font-family: "PixelMplus", "Squarewave", "PKMNFont", monospace;
    font-size: 28px;
    color: #00ff66;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 8px #00ff66, 0 0 16px rgba(0,255,100,0.5);
    letter-spacing: 0.1em;
}

/* override the counter widget's own inline styles */
.tv-number * {
    border: none !important;
    background: transparent !important;
    color: #00ff66 !important;
    font-family: "PixelMplus", "Squarewave", "PKMNFont", monospace !important;
    font-size: 28px !important;
    text-shadow: 0 0 8px #00ff66 !important;
}

/* ---- VCR slot below the TV body ---- */
.tv-vcr {
    background: #161616;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    box-shadow: 2px 3px 0 #000;
}
.tv-vcr-slot {
    flex: 1;
    height: 6px;
    background: #000;
    border: 1px solid #444;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}
.tv-vcr-lights {
    display: flex;
    gap: 4px;
    align-items: center;
}
.tv-vcr-lights span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #004400;
    box-shadow: 0 0 2px rgba(0,100,0,0.5);
    animation: vcrBlink 2.4s ease-in-out infinite;
}
.tv-vcr-lights span:nth-child(2) { animation-delay: 0.8s; }
.tv-vcr-lights span:nth-child(3) { animation-delay: 1.6s; background: #440000; box-shadow: 0 0 2px rgba(100,0,0,0.5); }
@keyframes vcrBlink {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 1; box-shadow: 0 0 4px currentColor; }
}

/* ---- feet ---- */
.tv-feet {
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    margin-top: 0;
}
.tv-feet span {
    display: block;
    width: 16px;
    height: 8px;
    background: #2a2a2a;
    border-radius: 0 0 5px 5px;
    border: 1px solid #444;
    border-top: none;
    box-shadow: 0 3px 0 #111;
}
/* ===========================
   STAMP SCROLLER
   =========================== */
.stamp-track {
    width: 100%;
    overflow: hidden;
    padding: 6px 0;
    background: rgba(0,0,0,0.3);
    border-top: 2px solid rgba(255,255,255,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.stamp-inner {
    display: flex;
    gap: 8px;
    width: max-content;
    animation: blinkieScroll 25s linear infinite;
    align-items: center;
}
.stamp-track:hover .stamp-inner { animation-play-state: paused; }
.stamp-inner img { height: 56px; width: auto; display: block; image-rendering: pixelated; }

/* ===========================
   MARQUEE BOX
   =========================== */
.marquee-box {
    padding: 6px 0 !important;
    overflow: hidden;
    min-height: unset !important;
    border-radius: 0 !important;
}
.marquee-inner {
    display: flex;
    width: max-content;
    animation: blinkieScroll 20s linear infinite;
    white-space: nowrap;
    color: var(--rainbow-7);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-shadow: 0 0 6px var(--rainbow-7);
}

/* ===========================
   MID ROW (two columns)
   =========================== */
.mid-row {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 10px;
}
.mid-left, .mid-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===========================
   INTRO BOX
   =========================== */
.intro-box { padding: 14px !important; }
.intro-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.intro-photo { flex-shrink: 0; }
.intro-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    image-rendering: pixelated;
}
.intro-text { flex: 1; text-align: left; }
.intro-name {
    font-size: 18px;
    color: var(--rainbow-7);
    text-shadow: 0 0 8px var(--rainbow-7);
    margin: 0 0 2px;
}
.intro-pronouns {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 8px;
}
.intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.intro-tags span {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    color: #ddd;
}
.intro-bio {
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
    margin: 0 0 10px;
}
.social-links { display: flex; gap: 6px; }
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* ===========================
   BUTTON SCROLLER
   =========================== */
.button-track {
    overflow: hidden;
    padding: 6px 0;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.1);
}
.button-inner {
    display: flex;
    gap: 6px;
    width: max-content;
    animation: blinkieScroll 30s linear infinite;
    align-items: center;
}
.button-track:hover .button-inner { animation-play-state: paused; }
.button-inner a { flex-shrink: 0; line-height: 0; }
.button-inner img { height: 31px; width: auto; display: block; image-rendering: pixelated; }

/* ===========================
   CLOCK BOX
   =========================== */
.clock-box { padding: 10px !important; text-align: center; }
.clock-label {
    font-size: 10px;
    color: var(--rainbow-8);
    text-shadow: 0 0 6px var(--rainbow-8);
    margin-bottom: 4px;
    letter-spacing: 0.08em;
}
.clock-display {
    font-size: 28px;
    color: #00ff66;
    text-shadow: 0 0 10px #00ff66, 0 0 20px rgba(0,255,100,0.4);
    letter-spacing: 0.1em;
    font-family: "PixelMplus", monospace;
    line-height: 1.2;
}
.clock-date {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* ===========================
   MOOD + FEATURED MEDIA BOX
   =========================== */
.mood-box { padding: 10px !important; }
.mood-label, .featured-label {
    font-size: 10px;
    color: var(--rainbow-4);
    text-shadow: 0 0 6px var(--rainbow-4);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.mood-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.mood-emoji { font-size: 24px; }
.mood-text { font-size: 13px; color: #ddd; }
.featured-content { margin-top: 6px; }
.featured-link {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}
.featured-link:hover { background: rgba(255,255,255,0.1); }
.featured-img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 4px;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.featured-title { font-size: 12px; color: #fff; }
.featured-sub { font-size: 11px; color: #888; margin-top: 2px; }

/* ===========================
   POLL BOX
   =========================== */
.poll-box { padding: 10px !important; }
.poll-label {
    font-size: 10px;
    color: var(--rainbow-1);
    text-shadow: 0 0 6px var(--rainbow-1);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.poll-question {
    font-size: 13px;
    color: #eee;
    margin-bottom: 8px;
    line-height: 1.4;
}
.poll-options { display: flex; flex-direction: column; gap: 5px; }
.poll-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ddd;
    font-family: "PixelMplus", monospace;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}
.poll-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--rainbow-7); }
.poll-btn.voted { border-color: var(--rainbow-7); color: var(--rainbow-7); }
.poll-result-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.poll-result-item { font-size: 11px; color: #ccc; }
.poll-result-bar-wrap {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    height: 8px;
    margin-top: 2px;
    overflow: hidden;
}
.poll-result-bar {
    height: 100%;
    background: var(--rainbow-gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.poll-note { font-size: 10px; color: #666; margin-top: 6px; }

/* ===========================
   NAV TABS
   =========================== */
.nav-tabs-box { padding: 0 !important; overflow: hidden; }
.nav-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.nav-tab {
    background: none;
    border: none;
    color: #888;
    font-family: "PixelMplus", monospace;
    font-size: 13px;
    padding: 8px 18px;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: color 0.15s, background 0.15s;
    letter-spacing: 0.05em;
}
.nav-tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-tab.active {
    color: var(--rainbow-7);
    text-shadow: 0 0 6px var(--rainbow-7);
    background: rgba(49,255,196,0.07);
    border-bottom: 2px solid var(--rainbow-7);
    margin-bottom: -2px;
}
.nav-tab-content { padding: 10px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* games grid */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #ddd;
    font-size: 12px;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    min-width: 80px;
}
.game-card:hover {
    border-color: var(--rainbow-7);
    background: rgba(49,255,196,0.08);
    transform: translateY(-2px);
}
.game-thumb { font-size: 28px; }
.game-name { text-align: center; }

/* ===========================
   BOTTOM ROW
   =========================== */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* guestbook */
.guestbook-box { padding: 12px !important; }
.gb-label {
    font-size: 11px;
    color: var(--rainbow-5);
    text-shadow: 0 0 6px var(--rainbow-5);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.gb-sub { font-size: 12px; color: #aaa; margin: 0 0 8px; }
.gb-link {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--rainbow-7);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: background 0.2s;
}
.gb-link:hover { background: rgba(255,255,255,0.15); }

/* clap button */
.clap-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.clap-btn {
    background: none;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px; height: 44px;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.2s, box-shadow 0.2s;
    line-height: 1;
}
.clap-btn:active { transform: scale(0.88); }
.clap-btn.clapped {
    border-color: var(--rainbow-4);
    box-shadow: 0 0 10px var(--rainbow-4);
    animation: clapPop 0.25s cubic-bezier(0.22,1,0.36,1);
}
@keyframes clapPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.clap-count { font-size: 13px; color: #aaa; }

/* chat */
.chat-box { padding: 12px !important; }
.chat-label {
    font-size: 11px;
    color: var(--rainbow-9);
    text-shadow: 0 0 6px var(--rainbow-9);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.chat-placeholder {
    color: #555;
    font-size: 12px;
    text-align: center;
    padding: 20px 0;
    border: 1px dashed #333;
    border-radius: 6px;
}
/* ===========================
   OVERFLOW FIX — main box contains children
   =========================== */
.main-box {
    overflow: hidden !important;
    min-width: 0 !important;
}
.main-content {
    min-width: 0;
    width: 100%;
}
.mid-row {
    min-width: 0;
    width: 100%;
}
.mid-left {
    min-width: 0;
    overflow: hidden;
}

/* ===========================
   BUTTON SCROLLER — scroll LEFT
   =========================== */
@keyframes buttonScrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.button-inner {
    animation: buttonScrollLeft 30s linear infinite !important;
}

/* ===========================
   NULL PRONOUN TOOLTIP
   =========================== */
.null-pronoun {
    color: var(--rainbow-7);
    text-decoration: underline dotted;
    cursor: pointer;
    position: relative;
    font-size: inherit;
}
.null-pronoun:hover::after {
    content: "What's this?";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: var(--rainbow-7);
    border: 1px solid var(--rainbow-7);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 0 8px var(--rainbow-7);
}

/* ===========================
   RAINBOW CALENDAR
   =========================== */
.calendar-box {
    padding: 10px !important;
    text-align: center;
}
.cal-header {
    margin-bottom: 8px;
}
.cal-title {
    font-size: 12px;
    color: var(--rainbow-7);
    text-shadow: 0 0 6px var(--rainbow-7);
    letter-spacing: 0.06em;
}
.cal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.cal-table th {
    padding: 3px 0;
    font-weight: normal;
    font-size: 11px;
    letter-spacing: 0.04em;
}
.cal-table td {
    padding: 3px 0;
    text-align: center;
    border-radius: 4px;
    transition: background 0.15s;
}
.cal-table td:hover {
    background: rgba(255,255,255,0.1) !important;
}
.cal-today {
    border-radius: 50% !important;
    font-weight: bold;
    outline: 2px solid currentColor;
    outline-offset: -1px;
}

/* ===========================
   CHAT BOX — iframe clean embed
   =========================== */
.chat-box {
    padding: 10px !important;
}
.chat-label {
    font-size: 11px;
    color: var(--rainbow-9);
    text-shadow: 0 0 6px var(--rainbow-9);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
/* ===========================
   ID CARD
   =========================== */
.id-card {
    position: relative;
    background: linear-gradient(135deg, #f5f0e8 0%, #ede8d8 40%, #f0ece0 60%, #e8e4d4 100%);
    border: 3px solid #333;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 0 0 6px rgba(255,255,255,0.15);
    color: #111;
    font-family: "PixelMplus", monospace;
}

/* spiral passport background pattern */
.id-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 30 m0-20 a20 20 0 1 1 -0.01 0 M30 30 m0-14 a14 14 0 1 1 -0.01 0 M30 30 m0-8 a8 8 0 1 1 -0.01 0' fill='none' stroke='rgba(100,80,160,0.07)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

/* star border corners */
.id-star {
    position: absolute;
    font-size: 14px;
    color: rgba(180,140,0,0.7);
    z-index: 2;
    line-height: 1;
}
.id-star-tl { top: 4px;  left: 5px; }
.id-star-tr { top: 4px;  right: 5px; }
.id-star-bl { bottom: 4px; left: 5px; }
.id-star-br { bottom: 4px; right: 5px; }

/* top strip */
.id-top-strip {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #1a1a6e, #3a3aae, #1a1a6e);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 6px rgba(100,150,255,0.6);
}

/* main body */
.id-body {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    padding: 10px 14px;
}

.id-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.id-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
    image-rendering: pixelated;
    background: #ddd;
}

/* stamp */
.id-stamp {
    font-size: 9px;
    color: rgba(180,30,30,0.85);
    border: 1.5px solid rgba(180,30,30,0.7);
    border-radius: 4px;
    padding: 2px 5px;
    transform: rotate(-12deg);
    letter-spacing: 0.08em;
    font-weight: bold;
    text-shadow: none;
    background: rgba(255,255,255,0.5);
}

.id-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    max-width: 84px;
}
.id-badges img {
    height: 20px;
    width: auto;
    image-rendering: pixelated;
}

/* info fields */
.id-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.id-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.id-label {
    font-size: 7px;
    color: #555;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.id-value {
    font-size: 11px;
    color: #111;
    line-height: 1.3;
}
.id-name-val {
    font-size: 12px !important;
    font-weight: bold;
}
.id-bio-val {
    font-size: 10px !important;
    color: #444 !important;
    line-height: 1.4;
}
.id-inline-gif {
    height: 16px;
    vertical-align: middle;
    image-rendering: pixelated;
}

/* barcode strip */
.id-barcode-strip {
    position: relative;
    z-index: 1;
    background: #fff;
    border-top: 1px solid #ccc;
    padding: 4px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.id-barcode {
    flex-shrink: 0;
}
.id-barcode-svg {
    width: 90px;
    height: 22px;
    display: block;
}
.id-barcode-num {
    font-size: 8px;
    color: #555;
    letter-spacing: 0.08em;
}

/* ===========================
   FEATURED MEDIA — ENLARGED
   =========================== */
.featured-large {
    margin-top: 6px;
}
.featured-link-large {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s;
}
.featured-link-large:hover { background: rgba(255,255,255,0.1); }
.featured-img-large {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    image-rendering: pixelated;
    border: 1px solid rgba(255,255,255,0.2);
}
.featured-info-large { text-align: center; }
.featured-title-large {
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}
.featured-sub-large {
    font-size: 11px;
    color: #888;
}

/* ===========================
   FOOTER — smaller + rainbow text
   =========================== */
.site-footer {
    padding: 10px 0 14px !important;
}
.site-footer p {
    font-size: 11px !important;
    padding: 3px 10px !important;
}
@keyframes footerRainbow {
    0%   { color: #FF0019; }
    15%  { color: #FF8113; }
    30%  { color: #FFC92A; }
    45%  { color: #7BFF00; }
    60%  { color: #31FFC4; }
    75%  { color: #31CBFF; }
    90%  { color: #A100FF; }
    100% { color: #FF0019; }
}
.footer-rainbow-text {
    animation: footerRainbow 3s linear infinite;
    font-size: 12px !important;
    letter-spacing: 0.04em;
}

/* ===========================
   CALENDAR — compact grid
   =========================== */
.cal-table th, .cal-table td {
    width: 28px;
    height: 24px;
    padding: 0 !important;
    font-size: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.cal-table th {
    font-size: 9px;
    background: rgba(0,0,0,0.2);
}
.calendar-box {
    padding: 8px !important;
}
.cal-title {
    font-size: 10px !important;
}