.retro-tv-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
}

.tv-body {
    background: var(--tv-frame);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.5), inset 5px 5px 15px rgba(255,255,255,0.1);
    position: relative;
}

.tv-screen-bezel {
    background: #000;
    padding: 10px;
    border-radius: 60% 60% 60% 60% / 10% 10% 10% 10%;
    box-shadow: inset 0 0 10px #000;
}

.tv-screen {
    background: var(--tv-bg);
    color: #4af626;
    height: 300px;
    border-radius: 50% 50% 50% 50% / 5% 5% 5% 5%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    animation: textShadow 1.6s infinite;
}

.tv-content {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.tv-content h1 {
    margin: 0;
}

.tv-content .pixel-line {
    margin: 10px auto;
    border: 0;
    border-top: 2px solid #4af626;
    width: 80%;
}

@keyframes textShadow {
    0% { text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    50% { text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    100% { text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
}

.scanlines {
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.tv-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: flex-end;
    padding-right: 20px;
}

.dial {
    width: 30px;
    height: 30px;
    background: #222;
    border-radius: 50%;
    border: 2px solid #555;
}

.vent {
    width: 80px;
    height: 15px;
    background: repeating-linear-gradient(90deg, #222, #222 5px, #444 5px, #444 10px);
}

.game-menu {
    padding-left: 80px;
}

.menu-list li {
    margin-bottom: 15px;
}

.pixel-heading {
    font-size: 2.2rem;
}

.menu-item {
    font-size: 1.8rem;
    color: var(--text-color);
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.2s;
    display: block;
}

.menu-item span {
    opacity: 0;
    transition: opacity 0.2s;
    margin-right: 10px;
}

.menu-item:hover,
.menu-item.active {
    opacity: 1;
    transform: translateX(10px);
    color: var(--accent);
    text-shadow: 2px 2px 0px #000;
}

.menu-item:hover span,
.menu-item.active span {
    opacity: 1;
}

[data-bs-theme="light"] .menu-item {
    color: #6a645b;
}

[data-bs-theme="light"] .menu-item:hover,
[data-bs-theme="light"] .menu-item.active {
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.377);
}

[data-bs-theme="light"] .menu-item.text-warning {
    color: #ff6b6b !important;
    opacity: 1;
}

[data-bs-theme="light"] .menu-item.text-warning:hover {
    color: #f14668 !important;
}

.typing-effect,
.typed-text {
    text-align: center;
    display: block;
    min-height: 1.5em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    padding: 0 10px;
}

.typed-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #4af626;
    animation: blink 0.7s infinite;
}

.typing-effect::after {
    content: '▋';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
