:root {
    --tt-black: #000000;
    --tt-red: #ff0000;
    --tt-green: #00ff00;
    --tt-yellow: #ffff00;
    --tt-blue: #0000ff;
    --tt-magenta: #ff00ff;
    --tt-cyan: #00ffff;
    --tt-white: #ffffff;
    --font-main: 'VT323', monospace;
}

body {
    background-color: #111;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: var(--font-main);
    color: var(--tt-white);
    overflow: hidden;
    /* user-select: none; removed for accessibility */
}

/* The TV Screen Container */
#tv-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4/3;
    background-color: var(--tt-black);
    position: relative;
    display: grid;
    grid-template-rows: 40px 1fr 60px; /* Header, Content, Fastext */
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    font-size: clamp(16px, 2.5vw, 32px); /* Responsive text scaling */
    line-height: 1.1;
    text-transform: uppercase;
}

/* Scanline effect */
#tv-container::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 100;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Header Row */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--tt-black);
    color: var(--tt-white);
    font-size: 1.2em;
    letter-spacing: 2px;
    z-index: 2;
}

.header span.page-num { color: var(--tt-white); }
.header span.channel { color: var(--tt-white); }
.header span.date { color: var(--tt-yellow); }

/* Main Content Area */
.content {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    position: relative;
    height: 100%;
}

.title-banner {
    background-color: var(--tt-blue);
    color: var(--tt-yellow);
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 2px 2px var(--tt-black);
}

.bamber-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

/* Pixel Art Bamber Boozler using CSS Grid */
.bamber-face {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    width: 120px;
    height: 120px;
    background: var(--tt-black);
    flex-shrink: 0;
}
.pixel { width: 100%; height: 100%; }
.p-y { background-color: var(--tt-yellow); }
.p-w { background-color: var(--tt-white); }
.p-r { background-color: var(--tt-red); }
.p-b { background-color: var(--tt-black); }
.p-face { background-color: var(--tt-magenta); }

.speech-bubble {
    color: var(--tt-green);
    font-size: 1.1em;
    flex-grow: 1;
    white-space: pre-wrap;
}

.question-text {
    color: var(--tt-cyan);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    cursor: pointer;
    padding: 2px 10px;
}
.option:hover {
    background-color: var(--tt-blue);
}
.option span { pointer-events: none; }

/* Generic Page Styling (for Easter Eggs) */
.generic-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.row { display: flex; justify-content: space-between; }
.double-height { transform: scaleY(1.5); transform-origin: top; margin-bottom: 0.5em; display: inline-block; }    

/* Footer / Fastext Buttons */
.fastext-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
    margin-top: auto;
    z-index: 10;
}

.ft-btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    cursor: pointer;
    text-shadow: 1px 1px #000;
    border: none;
    font-family: var(--font-main);
    text-transform: uppercase;
}

.ft-red { background-color: var(--tt-red); color: var(--tt-white); }
.ft-green { background-color: var(--tt-green); color: var(--tt-black); }
.ft-yellow { background-color: var(--tt-yellow); color: var(--tt-black); }
.ft-blue { background-color: var(--tt-blue); color: var(--tt-white); }

/* Animations */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Mobile specific adjustments */
@media (max-width: 600px) {
    #tv-container {
        height: 100vh;
        max-height: 100vh;
        aspect-ratio: unset;
        border: none;
        box-shadow: none;
    }
    .bamber-face { width: 80px; height: 80px; }
    .content { font-size: 0.9em; }
}

.hidden { display: none !important; }

/* Subtitle Box for 888 */
.subtitle-box {
    background-color: black;
    color: white;
    padding: 5px;
    margin-top: 100px;
    text-align: center;
    border: 2px solid white;
}
