@font-face {
    font-family: 'Pricedown';
    src: url("../fonts/Pricedown Bl.otf") format("opentype");
}

body {
    margin: 0;
    padding: 0;
    background-color: #d8c3a5; /* Tan background */
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Flowers */
.bg-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.flower {
    position: absolute;
    background-image: url('flower.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    animation: rotate 20s linear infinite;
}

.flower:nth-child(1) { width: 300px; height: 300px; top: -50px; left: -50px; animation-duration: 25s; }
.flower:nth-child(2) { width: 400px; height: 400px; bottom: 5%; right: -100px; animation-duration: 35s; animation-direction: reverse; }
.flower:nth-child(3) { width: 200px; height: 200px; top: 40%; left: 10%; animation-duration: 18s; }
.flower:nth-child(4) { width: 250px; height: 250px; top: 10%; right: 20%; animation-duration: 22s; animation-direction: reverse; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Neon Stripe */
.neon-stripe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.neon-path {
    fill: none;
    stroke: #0ff; /* Neon trace to today */
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px #0ff) drop-shadow(0 0 20px #0ff);
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-stripe 15s ease-in-out infinite alternate;
}

@keyframes draw-stripe {
    0% { stroke-dashoffset: 2000; }
    100% { stroke-dashoffset: 0; }
}

/* Layout Stage Container */
.stage-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 95%;
    max-width: 1350px;
    margin: 40px auto;
    position: relative;
    z-index: 10;
}

/* Bullseye 1 Navigation Console */
.bullseye-console {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 340px; /* Taller and narrower */
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    align-self: flex-start; /* Top justify the entire console on desktop */
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3)); /* Shadow placed here since clip-path cuts off normal box-shadows */
}

.console-body {
    background: #5c3a21; /* Solid vintage brown outer frame as the bottom base */
    clip-path: path('M 80,14 L 160,2 Q 170,0 180,2 L 260,14 Q 280,14 286,34 L 331,183 Q 340,210 331,237 L 286,386 Q 280,406 260,406 L 180,418 Q 170,420 160,418 L 80,406 Q 60,406 54,386 L 9,237 Q 0,210 9,183 L 54,34 Q 60,14 80,14 Z'); /* Rounded octagon shape (pointed top/bottom + flared straight sides + rounded corners) */
    width: 100%;
    height: 420px; /* Taller and narrower */
    position: relative;
    z-index: 2; /* Sits above the pedestal stand (1) */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.console-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0; /* Fit parent exactly so absolute path clip coordinates align perfectly */
    background: #d35400; /* Inner retro orange background */
    clip-path: path('M 84,21 L 160,10 Q 170,8 180,10 L 256,21 Q 275,21 280,41 L 323,184 Q 332,210 323,236 L 280,379 Q 275,399 256,399 L 180,410 Q 170,412 160,410 L 84,399 Q 65,399 60,379 L 17,236 Q 8,210 17,184 L 60,41 Q 65,21 84,21 Z'); /* Scaled inner rounded octagon for perfect 8px border */
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

.console-body::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; /* Let pointer events pass through to buttons */
    z-index: 9; /* Sits above rings (2) and pointer-wedge (5) but below squares-stack (10) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 420'><path d='M 82,18 L 160,6 Q 170,4 180,6 L 258,18 Q 277,18 283,38 L 327,184 Q 336,210 327,236 L 283,382 Q 277,402 258,402 L 180,414 Q 170,416 160,414 L 82,402 Q 63,402 57,382 L 13,236 Q 4,210 13,184 L 57,38 Q 63,18 82,18 Z' fill='none' stroke='%235c3a21' stroke-width='8'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Concentric Rings - HSL Palette */
.ring {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.25), 0 4px 8px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.ring.r4 {
    position: absolute;
    width: 320px;
    height: 320px;
    background: #5c3a21; /* Outer ring: Dark Brown */
    left: calc(50% - 160px); /* Centered horizontally (x = 170px) */
    top: 20px; /* Centered vertically at y = 180px (shifted up by 10px) */
    z-index: 2; /* Sits on top of the console background pseudo-element */
}

.ring.r3 {
    width: 250px;
    height: 250px;
    background: #e5a93b; /* Ring 3: Vintage Tan/Gold */
}

.ring.r2 {
    width: 180px;
    height: 180px;
    background: #cca0a0; /* Ring 2: Pinkish Grey */
}

.ring.r1 {
    width: 110px;
    height: 110px;
    background: #d35400; /* Inner Bullseye: Warm Red/Orange */
}

/* Swooping Pedestal SVG Support */
.console-pedestal-svg {
    position: relative;
    width: 270px; /* A little smaller (was 100%) */
    height: 75px; /* A little smaller (was 100px) */
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    box-sizing: border-box;
    margin: -15px auto 0 auto; /* Moved up to go under the console (was -6px), centered horizontally */
    z-index: 1; /* Sits behind the console body (2) */
    display: block;
}

/* Pointer Wedge (White Arrow) Navigation Arrow (SVG) */
.pointer-wedge {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Let interactions pass through */
    box-sizing: border-box;
}

/* Squares Stack (Sibling of Wedge to prevent diagonal clipping!) */
.squares-stack {
    position: absolute;
    left: 78px; /* Shifted further right to sit entirely on the white pointer wedge */
    top: 30px;
    height: 360px;
    width: 52px; /* Narrower container to fit smaller buttons */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 10; /* Sits on top of white pointer-wedge */
}

/* Eggcrate digital display (ZAP) */
.eggcrate-display {
    position: absolute;
    left: calc(50% - 16px); /* Shifted right (starts at x = 154px) to sit against the pointer slope */
    top: 208px; /* Shifted down slightly below the centerline (shifted up by 10px to match bullseye) */
    width: 108px; /* Larger (was 96px) */
    height: 38px; /* Larger (was 34px) */
    z-index: 8; /* Sits above rings but below squares-stack/active wedge overlays */
    background: #969696; /* Continuous matte light grey background */
    border-radius: 0; /* Sharp outer edges */
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5); /* Slight inner shadow for a recessed feel */
    box-sizing: border-box;
}

.eggcrate-display rect {
    display: none !important; /* Hide cell divider panels completely for a seamless panel */
}

/* Hide unlit bulbs in the eggcrate display matrix */
.eggcrate-display circle[fill="#181818"] {
    display: none !important;
}

/* Nav Squares - Styled like the iconic blue gameshow panels */
.nav-square {
    width: 46px; /* Smaller (was 52px) */
    height: 46px; /* Smaller (was 52px) */
    background: #034ec5; /* Royal blue background from the show */
    border: 2.5px solid #012969; /* Dark navy border */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 
        3px 3px 0 rgba(92, 58, 33, 0.3), /* 3D outline shadow */
        inset 0 -4px 8px rgba(0,0,0,0.5), /* Deep bottom shadow */
        inset 0 4px 8px rgba(255,255,255,0.25); /* Top shine highlight */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.nav-square .sq-num {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.35rem; /* Proportionally smaller font (was 1.5rem) */
    color: #00f6ff; /* Neon cyan glowing number */
    line-height: 1;
    text-shadow: 0 0 6px #00f6ff, 0 0 12px #00a2ff; /* Brilliant cyan bulb glow */
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-square .sq-lbl {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.5rem; /* Proportionally smaller font (was 0.55rem) */
    color: #a3eaff; /* Ice-blue label text */
    margin-top: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 3px #00a2ff;
    transition: color 0.3s, text-shadow 0.3s;
}

/* Active Panel / Lit State */
.nav-square.active {
    background: #00a2ff; /* Bright lit cyan-blue background */
    border-color: #00f6ff; /* Neon cyan border */
    box-shadow: 
        0 0 20px rgba(0, 246, 255, 0.5), /* Neon glow */
        3px 3px 0 #012969,
        inset 0 -4px 8px rgba(0,0,0,0.25),
        inset 0 4px 8px rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.nav-square.active .sq-num {
    color: #ffffff; /* Bright lit white text */
    text-shadow: 0 0 8px #ffffff, 0 0 15px #00f6ff, 0 0 25px #00f6ff;
}

.nav-square.active .sq-lbl {
    color: #002266; /* High contrast dark text on active tab */
    text-shadow: none;
    font-weight: 800;
}

/* Hover panels state */
.nav-square:hover {
    transform: scale(1.08) translateY(-2px);
    background: #00a2ff;
    border-color: #00f6ff;
    box-shadow: 
        0 0 15px rgba(0, 246, 255, 0.4),
        3px 3px 0 #012969,
        inset 0 -4px 8px rgba(0,0,0,0.3);
}

.nav-square:hover .sq-num {
    color: #ffffff;
    text-shadow: 0 0 8px #ffffff, 0 0 15px #00f6ff;
}

.nav-square:hover .sq-lbl {
    color: #ffffff;
    text-shadow: 0 0 4px #00f6ff;
}

.nav-square.active:hover {
    background: #00a2ff;
    border-color: #00f6ff;
    box-shadow: 
        0 0 25px rgba(0, 246, 255, 0.6),
        3px 3px 0 #012969,
        inset 0 -4px 8px rgba(0,0,0,0.25);
}

.nav-square.active:hover .sq-num {
    color: #ffffff;
    text-shadow: 0 0 8px #ffffff, 0 0 15px #00f6ff, 0 0 25px #00f6ff;
}

.nav-square.active:hover .sq-lbl {
    color: #002266;
    text-shadow: none;
}

/* TPiR Set Door/* Base Layers */
.stage-container .tpir-wrapper {
    margin: 0;
    width: 100%;
    max-width: 900px;
}

.tpir-wrapper {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 1000px;
    margin: 40px auto;
}

.door-speckled {
    background-color: #5d4a3d;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    padding: 60px;
    border-radius: 150px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.8);
}

.door-gold {
    background: #d4af37;
    padding: 15px;
    border-radius: 90px;
    box-shadow: inset 0 5px 10px rgba(255,255,255,0.3), inset 0 -5px 10px rgba(0,0,0,0.3);
}

.door-brown {
    background: #5c3a21;
    padding: 30px;
    border-radius: 75px;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.5);
}

.door-orange {
    background: #d35400;
    padding: 25px;
    border-radius: 45px;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.3);
}

.door-center {
    background: #fffdf7;
    padding: 40px;
    border-radius: 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Contains accordion doors */
}

/* HTML Content Wrapper inside SVG */
.accordion-doors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none; /* Let clicks pass through when open */
}

/* The 8-Segment Door Animation */
.door-segment {
    position: absolute;
    width: calc(12.5% + 1px);
    top: 0;
    bottom: 0;
    background-color: #fffdf7;
    z-index: 50;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.1);
}

.door-segment.left { transform-origin: left; }
.door-segment.right { transform-origin: right; }

/* Positions */
.left.s1 { left: 0%; }
.left.s2 { left: 12.5%; }
.left.s3 { left: 25%; }
.left.s4 { left: 37.5%; border-right: 3px solid rgba(0,0,0,0.3); }

.right.s1 { left: 50%; border-left: 3px solid rgba(0,0,0,0.3); }
.right.s2 { left: 62.5%; }
.right.s3 { left: 75%; }
.right.s4 { left: 87.5%; }

/* Segmented Opening Animation */
.left.s1, .right.s4 { animation: hideSegment 0.3s cubic-bezier(0.5, 0, 0.2, 1) 1.4s forwards; }
.left.s2, .right.s3 { animation: hideSegment 0.3s cubic-bezier(0.5, 0, 0.2, 1) 1.1s forwards; }
.left.s3, .right.s2 { animation: hideSegment 0.3s cubic-bezier(0.5, 0, 0.2, 1) 0.8s forwards; }
.left.s4, .right.s1 { animation: hideSegment 0.3s cubic-bezier(0.5, 0, 0.2, 1) 0.5s forwards; }

@keyframes hideSegment {
    0% { transform: scaleX(1); }
    15% { transform: scaleX(1.05); } /* Mechanical stutter/bump */
    100% { transform: scaleX(0); }
}

/* Typography & Content */
.title {
    font-family: 'Pricedown', 'Luckiest Guy', cursive;
    font-size: clamp(5rem, 10vw, 8rem);
    color: #e67e22;
    margin: 0;
    line-height: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        4px 4px 0 #fff,
        -1.5px -1.5px 0 #fff,
        1.5px -1.5px 0 #fff,
        -1.5px 1.5px 0 #fff,
        8px 8px 0px #5c3a21;
    position: relative;
    z-index: 2;
}

.title-logo {
    margin: 15px 0 5px 0;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-sig {
    max-width: 320px;
    width: 90%;
    height: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-sig:hover {
    transform: scale(1.05) rotate(-2.5deg);
}

.subtitle {
    font-family: 'Luckiest Guy', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #5c3a21;
    margin-top: -10px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.bio-card {
    background: #fff;
    border: 4px solid #e67e22;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    box-shadow: 8px 8px 0 rgba(230, 126, 34, 0.2);
    text-align: left;
    position: relative;
    z-index: 2;
}

.bio-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    margin-top: 0;
    margin-bottom: 15px;
}

.bio-card p:last-child {
    margin-bottom: 0;
}

.inspiration-card {
    background: #fff;
    border: 4px solid #5c3a21;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    margin-top: 25px;
    box-shadow: 8px 8px 0 rgba(92, 58, 33, 0.15);
    text-align: left;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.inspiration-card h3 {
    font-family: 'Luckiest Guy', cursive;
    color: #5c3a21;
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.inspiration-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-top: 0;
    margin-bottom: 15px;
}

.inspiration-card p:last-child {
    margin-bottom: 0;
}

/* Lightbulbs around the door */
.bulb {
    fill: #fff;
    filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 15px #f1c40f);
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0%, 40% { opacity: 0.5; filter: drop-shadow(0 0 5px #fff); }
    60%, 100% { opacity: 1; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 25px #f1c40f); }
}

/* Adjust blink delays for a chasing effect */
.b1 { animation-delay: 0s; }
.b2 { animation-delay: 0.5s; }
.b3 { animation-delay: 1s; }

/* Back Button & Action Buttons */
.button-group {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: #d35400;
    color: white;
    text-decoration: none;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    border-radius: 8px;
    border: 3px solid #5c3a21;
    box-shadow: 5px 5px 0 #5c3a21;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.back-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 #5c3a21;
    background: #e67e22;
}

.back-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 #5c3a21;
}

.bsky-btn {
    background: #1185fe; /* Bluesky brand color */
    border-color: #004d99;
    box-shadow: 5px 5px 0 #004d99;
}

.bsky-btn:hover {
    background: #0056b3;
    box-shadow: 7px 7px 0 #004d99;
}

.bsky-btn:active {
    box-shadow: 2px 2px 0 #004d99;
}

.telegram-btn {
    background: #24A1DE; /* Official Telegram Sky Blue */
    border-color: #1573a0;
    box-shadow: 5px 5px 0 #1573a0;
}

.telegram-btn:hover {
    background: #1b8ec6;
    box-shadow: 7px 7px 0 #1573a0;
}

.telegram-btn:active {
    box-shadow: 2px 2px 0 #1573a0;
}

.insta-btn {
    background: #d62976; /* Instagram pink */
    border-color: #961b51;
    box-shadow: 5px 5px 0 #961b51;
}

.insta-btn:hover {
    background: #fa2f89;
    box-shadow: 7px 7px 0 #961b51;
}

.insta-btn:active {
    box-shadow: 2px 2px 0 #961b51;
}

.twitch-btn {
    background: #9146ff; /* Twitch brand color */
    border-color: #5c16c5;
    box-shadow: 5px 5px 0 #5c16c5;
}

.twitch-btn:hover {
    background: #772ce8;
    box-shadow: 7px 7px 0 #5c16c5;
}

.twitch-btn:active {
    box-shadow: 2px 2px 0 #5c16c5;
}

/* Polaroid Art Gallery */
.art-gallery {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 35px;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    background: #fff;
    padding: 12px 12px 20px 12px; /* Polaroid thick bottom frame */
    border: 3px solid #5c3a21;
    border-radius: 4px;
    box-shadow: 8px 8px 0 rgba(92, 58, 33, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-sizing: border-box;
}

/* Polaroids slightly tilted in opposite directions for organic retro feel */
.gallery-item:nth-child(1) {
    transform: rotate(-1.5deg);
    max-width: 47%;
}

.gallery-item:nth-child(2) {
    transform: rotate(1.5deg);
    max-width: 47%;
}

.gallery-item:nth-child(3) {
    transform: rotate(-1deg);
    max-width: 36%;
    margin-top: 10px;
}

.gallery-item:hover {
    transform: scale(1.04) rotate(0deg);
    box-shadow: 12px 12px 0 rgba(92, 58, 33, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border: 2px solid #5c3a21;
    border-radius: 2px;
    background: #fffdf7;
    display: block;
}

.gallery-label {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.2rem;
    color: #e67e22;
    margin-top: 12px;
    text-shadow: 1px 1px 0px #fff;
    letter-spacing: 0.5px;
}

/* --- Responsive SVG Lightbulb Track --- */
/* Uses an SVG stroke with a dasharray to draw perfectly round, evenly spaced bulbs regardless of width/height! */
.lightbulb-track {
    position: absolute;
    /* Inset 30px to perfectly center within the 60px speckled padding */
    top: 30px; bottom: 30px; left: 30px; right: 30px;
    width: calc(100% - 60px);
    height: calc(100% - 60px);
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.track-rect {
    width: 100%;
    height: 100%;
    rx: 120px; /* Outer radius (150) minus track inset (30) */
    ry: 120px;
    fill: none;
    stroke: #fff;
    stroke-width: 16px;
    stroke-linecap: round; /* Turns a zero-length dash into a perfect circle */
    stroke-dasharray: 0 240; /* Gap is exactly 3x the bulb distance */
}

/* Base style for dim state */
.t1, .t2, .t3 {
    opacity: 0.3;
    filter: drop-shadow(0 0 5px #fff);
    animation: blink-chase 1.5s infinite; /* 3 states, 0.5s each */
}

/* Interleave the 3 tracks */
.t1 { stroke-dashoffset: 0; animation-delay: 0s; }
.t2 { stroke-dashoffset: -80px; animation-delay: 0.5s; }
.t3 { stroke-dashoffset: -160px; animation-delay: 1.0s; }

@keyframes blink-chase {
    0%, 33% { opacity: 1; filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 25px #f1c40f); }
    34%, 100% { opacity: 0.3; filter: drop-shadow(0 0 5px #fff); }
}

/* Art Contributions */
.art-credits {
    margin-top: 35px;
    padding: 15px 25px;
    background: #fffdf7;
    border: 3px dashed #e67e22;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 4px 4px 0 rgba(230, 126, 34, 0.1);
    position: relative;
    z-index: 2;
    text-align: center;
    box-sizing: border-box;
}

.art-credits h3 {
    font-family: 'Luckiest Guy', cursive;
    color: #e67e22;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.art-credits p {
    font-size: 1rem;
    margin: 5px 0;
    color: #5c3a21;
    font-weight: bold;
}

.art-credits a {
    color: #d35400;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
}

.art-credits a:hover {
    color: #e67e22;
    border-bottom-color: #e67e22;
}

/* Mobile & Responsive Adjustments */
@media (max-width: 960px) {
    .stage-container {
        flex-direction: column;
        gap: 30px;
        margin: 20px auto;
    }
    
    .bullseye-console {
        width: 340px; /* Keep exact native desktop width to prevent dial/alignment distortions */
        flex-shrink: 0;
        align-self: center;
    }

    /* Intermediate door paddings to save horizontal space on tablets */
    .door-speckled { padding: 30px; border-radius: 80px; }
    .door-gold { padding: 8px; border-radius: 50px; }
    .door-brown { padding: 15px; border-radius: 40px; }
    .door-orange { padding: 12px; border-radius: 25px; }
    .door-center { padding: 20px; border-radius: 12px; }

    /* Intermediate lightbulb track centering */
    .lightbulb-track {
        top: 15px; bottom: 15px; left: 15px; right: 15px;
        width: calc(100% - 30px);
        height: calc(100% - 30px);
    }
    .track-rect {
        stroke-width: 12px;
        rx: 65px; /* (80px border radius - 15px inset) */
        ry: 65px;
        stroke-dasharray: 0 160;
    }
    .t1 { stroke-dashoffset: 0; }
    .t2 { stroke-dashoffset: -53px; }
    .t3 { stroke-dashoffset: -106px; }
}

@media (max-width: 768px) {
    /* Transform navigation console to horizontal bar on tablet & mobile */
    .bullseye-console {
        width: 100%;
        max-width: 600px;
        align-self: center;
        filter: none; /* Clear drop-shadow on horizontal bar */
    }
    .console-body {
        height: auto;
        min-height: 80px;
        border-radius: 20px;
        border: 5px solid #5c3a21;
        background: #d35400;
        clip-path: none; /* Disable polygon clip on mobile bar */
        padding: 10px 15px;
        flex-direction: row; /* Horizontal control panel */
        justify-content: space-between;
        align-items: center;
        overflow: visible; /* Prevents button hover glow clipping */
    }
    .console-body::before,
    .console-body::after {
        display: none; /* Hide background and border pseudo-elements on mobile bar */
    }

    /* Hide vertical-only supports */
    .console-pedestal-svg,
    .pointer-wedge {
        display: none;
    }

    /* Convert rings to a compact left-aligned dial */
    .ring.r4 {
        position: absolute;
        left: 15px;
        top: calc(50% - 30px);
        width: 60px;
        height: 60px;
        background: #5c3a21;
    }
    .ring.r3 { width: 46px; height: 46px; background: #e5a93b; }
    .ring.r2 { width: 32px; height: 32px; background: #cca0a0; }
    .ring.r1 { width: 18px; height: 18px; background: #d35400; }

    /* Compact digital eggcrate display positioning */
    .eggcrate-display {
        position: absolute;
        left: 85px;
        top: calc(50% - 14px);
        right: auto;
        width: 80px;
        height: 28px;
        z-index: 8;
    }

    /* Convert vertical stack to horizontal row, offset for dial + eggcrate */
    .squares-stack {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        margin-left: 170px; /* Offset to clear the dial + eggcrate */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }

    .nav-square {
        flex: 1;
        max-width: 58px;
        height: 52px;
        border-width: 2.5px;
        border-radius: 6px;
        box-shadow: 
            2px 2px 0 rgba(92, 58, 33, 0.3),
            inset 0 -2px 4px rgba(0,0,0,0.5),
            inset 0 2px 4px rgba(255,255,255,0.25);
    }
    .nav-square .sq-num {
        font-size: 1.15rem;
        line-height: 1;
        margin-bottom: 0px;
        text-shadow: 0 0 4px #00f6ff;
    }
    .nav-square .sq-lbl {
        display: block;
        font-size: 0.52rem;
        line-height: 1;
        margin-top: 2px;
        text-shadow: 0 0 2px #00a2ff;
    }
    .nav-square.active {
        box-shadow: 
            0 0 10px rgba(0, 246, 255, 0.5),
            2px 2px 0 #012969,
            inset 0 -2px 4px rgba(0,0,0,0.25);
    }

    /* Ultra-compact door margins and paddings for mobile screen widths */
    .tpir-wrapper { margin: 15px auto; width: 100%; }
    .door-speckled { padding: 15px; border-radius: 40px; }
    .door-gold { padding: 4px; border-radius: 25px; }
    .door-brown { padding: 8px; border-radius: 21px; }
    .door-orange { padding: 6px; border-radius: 13px; }
    .door-center { padding: 15px; border-radius: 7px; }

    /* Adjust SVG track to center in the 15px speckled padding */
    .lightbulb-track {
        top: 7.5px; bottom: 7.5px; left: 7.5px; right: 7.5px;
        width: calc(100% - 15px);
        height: calc(100% - 15px);
    }
    .track-rect {
        stroke-width: 10px;
        rx: 32.5px;
        ry: 32.5px;
        stroke-dasharray: 0 120;
    }
    .t1 { stroke-dashoffset: 0; }
    .t2 { stroke-dashoffset: -40px; }
    .t3 { stroke-dashoffset: -80px; }

    .bio-card, .inspiration-card { padding: 20px; }
    .title { font-size: 3rem; }
    .subtitle { font-size: 2rem; }
    .button-group { flex-direction: column; gap: 15px; }

    /* Polaroid mobile updates */
    .art-gallery {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3) {
        max-width: 95% !important;
        transform: rotate(0deg);
        margin-top: 0;
    }
    .gallery-item:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    /* Narrow mobile layout optimizations */
    .door-speckled { padding: 12px; border-radius: 35px; }
    .door-gold { padding: 2px; border-radius: 20px; }
    .door-brown { padding: 4px; border-radius: 17px; }
    .door-orange { padding: 3px; border-radius: 10px; }
    .door-center { padding: 10px; border-radius: 5px; }

    .lightbulb-track {
        top: 6px; bottom: 6px; left: 6px; right: 6px;
        width: calc(100% - 12px);
        height: calc(100% - 12px);
    }
    .track-rect {
        stroke-width: 8px;
        rx: 26px; /* 32px radius - 6px inset */
        ry: 26px;
    }

    /* Fixed-width media components overflow prevention */
    .polaroid-pair {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1.4 / 1;
        margin: 0 auto;
    }
    .polaroid-pair .story-polaroid {
        width: 48% !important;
    }
    .story-polaroid.p3 {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .mini-tv {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Shift display and buttons when dial is hidden */
    .eggcrate-display {
        left: 15px;
    }
    .squares-stack {
        margin-left: 100px; /* Offset for only eggcrate display */
    }

    /* Keep buttons easy to click by hiding dial/display on extra small screens */
    @media (max-width: 400px) {
        .ring.r4,
        .eggcrate-display {
            display: none;
        }
        .squares-stack {
            margin-left: 0;
        }
    }
}

/* Home Page Content Layout (Bio + Polaroid Badge) */
.home-content-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin-top: 10px;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.home-zap-display {
    max-width: 320px;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.zap-illustration {
    width: 100%;
    height: auto;
    border: 6px solid #5c3a21; /* Solid vintage brown frame to match the console! */
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: #fffdf7;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    box-sizing: border-box;
}

.zap-illustration:hover {
    transform: scale(1.03) rotate(-1deg);
}

@media (max-width: 768px) {
    .home-content-layout {
        flex-direction: column;
        gap: 30px;
    }
    .home-zap-display {
        max-width: 260px; /* Highly visible on mobile too! */
    }
}

/* --- Sims 4 Section Styles --- */
.section-divider {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #d35400 25%, #e67e22 25%, #e67e22 50%, #d4af37 50%, #d4af37 75%, #00a2ff 75%);
    margin: 40px 0;
    border-radius: 3px;
    position: relative;
    z-index: 2;
}

.sims-section {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sims-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #5c3a21;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 0px #fffdf7, 4px 4px 0px rgba(92, 58, 33, 0.15);
}

.sims-inspiration {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #5c3a21;
    max-width: 600px;
    margin: 0 auto 20px auto;
    font-style: italic;
    font-weight: 500;
}

.sims-gallery {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 25px;
    width: 100%;
}

.sims-item {
    width: 100%;
}

.sims-item:nth-child(1) {
    transform: rotate(2deg);
    max-width: 38%;
}

.sims-item:nth-child(2) {
    transform: rotate(-2deg);
    max-width: 38%;
}

.sims-download-card {
    background: #fffdf7;
    border: 4px solid #5c3a21;
    border-radius: 18px;
    padding: 20px 25px;
    max-width: 650px;
    width: 100%;
    box-shadow: 8px 8px 0 rgba(92, 58, 33, 0.15);
    text-align: left;
    margin-top: 5px;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.sims-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 28px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.45rem;
    border-radius: 12px;
    border: 4px solid #1b5e20;
    box-shadow: 6px 6px 0 #1b5e20;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
    margin: 0 auto 15px auto;
    width: fit-content;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.sims-btn-download:hover {
    background: #66bb6a;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #1b5e20;
}

.sims-btn-download:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 #1b5e20;
}

.sims-instructions {
    background: #f1f8e9;
    border: 2px dashed #4caf50;
    border-radius: 12px;
    padding: 15px 20px;
    box-sizing: border-box;
}

.sims-instructions h4 {
    font-family: 'Luckiest Guy', cursive;
    color: #2e7d32;
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.sims-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.sims-instructions li {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

.sims-instructions li:last-child {
    margin-bottom: 0;
}

.path-highlight {
    display: inline-block;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #2e7d32;
    word-break: break-all;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .sims-item:nth-child(1), .sims-item:nth-child(2) {
        max-width: 95% !important;
        transform: rotate(0deg);
        margin-top: 0;
    }
    .sims-btn-download {
        font-size: 1.3rem;
        padding: 12px 25px;
        width: 100%;
        box-sizing: border-box;
    }
    .sims-download-card {
        padding: 15px;
    }
    .sims-instructions {
        padding: 15px;
    }
}

/* --- Sims 4 Teaser Card on Art Page --- */
.sims-teaser-card {
    background: #fffdf7;
    border: 4px solid #5c3a21;
    border-radius: 18px;
    padding: 30px;
    max-width: 650px;
    width: 100%;
    box-shadow: 8px 8px 0 rgba(92, 58, 33, 0.15);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.sims-teaser-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 12px 12px 0 rgba(92, 58, 33, 0.2);
}

.teaser-title {
    font-family: 'Luckiest Guy', cursive;
    color: #5c3a21;
    font-size: 2rem;
    margin: 0 0 12px 0;
    text-shadow: 1px 1px 0px #fffdf7, 2px 2px 0px rgba(92, 58, 33, 0.1);
}

.sims-teaser-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 0 0 24px 0;
}

.teaser-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.35rem;
    border-radius: 10px;
    border: 3.5px solid #1b5e20;
    box-shadow: 4px 4px 0 #1b5e20;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.teaser-btn:hover {
    background: #66bb6a;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1b5e20;
}

.teaser-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 #1b5e20;
}

@media (max-width: 600px) {
    .sims-teaser-card {
        padding: 20px 15px;
    }
    .teaser-btn {
        width: 100%;
        box-sizing: border-box;
        font-size: 1.2rem;
    }
}

/* --- Zap Main Page Enhancements --- */
.home-content-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.bio-badge-row {
    display: flex;
    flex-direction: row;
    gap: 25px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.welcome-card {
    background: #fffdf7;
    border: 4px solid #e67e22; /* TPIR Orange */
    border-radius: 18px;
    padding: 25px;
    box-shadow: 8px 8px 0 rgba(230, 126, 34, 0.15);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.welcome-card h3 {
    font-family: 'Luckiest Guy', cursive;
    color: #e67e22;
    margin: 0 0 12px 0;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.welcome-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* Bio Card Styles */
.bio-card {
    background: #fffdf7;
    border: 4px solid #5c3a21; /* Vintage brown */
    border-radius: 18px;
    padding: 25px;
    box-shadow: 8px 8px 0 rgba(92, 58, 33, 0.15);
    box-sizing: border-box;
    flex: 1;
    text-align: left;
}

.bio-card h3 {
    font-family: 'Luckiest Guy', cursive;
    color: #5c3a21;
    margin: 0 0 12px 0;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.bio-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 0 0 12px 0;
}

.bio-card p:last-child {
    margin-bottom: 0;
}

.home-polaroid {
    background: #fff;
    padding: 12px 12px 20px 12px;
    border: 3px solid #5c3a21;
    border-radius: 4px;
    box-shadow: 8px 8px 0 rgba(92, 58, 33, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-1.5deg);
    width: 220px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-sizing: border-box;
}

.home-polaroid:hover {
    transform: scale(1.04) rotate(0deg);
    box-shadow: 12px 12px 0 rgba(92, 58, 33, 0.25);
}

.home-polaroid img {
    width: 100%;
    height: auto;
    border: 2px solid #5c3a21;
    border-radius: 2px;
    display: block;
}

/* Retro CRT TV set design */
.retro-tv-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
}

.retro-tv {
    width: 100%;
    background: linear-gradient(135deg, #7c4c24, #5c3a21); /* Wood cabinet colors */
    border: 6px solid #452a18; /* Dark wood cabinet border */
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    box-shadow: 
        10px 10px 0px rgba(92, 58, 33, 0.15),
        0 15px 35px rgba(0,0,0,0.35);
    box-sizing: border-box;
    position: relative;
}

.tv-screen-bezel {
    flex: 1;
    background: #eae3d5; /* Vintage CRT warm grey bezel plastic */
    border: 4px solid #c7beae;
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4 / 3;
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 3px solid #666;
    box-shadow: inset 0 0 12px rgba(0,0,0,1);
}

.tv-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Phosphor scanline overlays */
.tv-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 3px, 6px 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0.85;
}

.tv-controls {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background: #eae3d5;
    border: 3.5px solid #c7beae;
    border-radius: 8px;
    padding: 10px 4px;
    box-sizing: border-box;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2);
}

.tv-dial {
    width: 32px;
    height: 32px;
    background: #3e2723;
    border: 3px solid #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 2px 3px rgba(0,0,0,0.4);
    position: relative;
    transition: transform 0.2s ease-in-out;
}

.tv-dial:hover {
    transform: rotate(45deg);
}

.dial-knob {
    width: 4px;
    height: 10px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 2px;
}

.tv-speaker-grill {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 0;
}

.grill-bar {
    width: 80%;
    height: 3px;
    background: #795548;
    margin: 0 auto;
    border-radius: 1px;
    box-shadow: inset 1px 1px 1px rgba(0,0,0,0.4);
}

.tv-power-switch {
    width: 20px;
    height: 20px;
    background: #d84315;
    border: 2px solid #333;
    border-radius: 50%;
    box-shadow: 1px 2px 3px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.1s;
}

.tv-power-switch:active {
    transform: scale(0.9);
}

.tv-label {
    margin-top: 10px;
    font-family: 'Luckiest Guy', cursive;
    color: #e67e22;
    font-size: 1.1rem;
    text-shadow: 1px 1px 0px #fffdf7;
    letter-spacing: 0.5px;
}

@media (max-width: 680px) {
    .bio-badge-row {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .home-polaroid {
        transform: rotate(0deg);
        width: 90% !important;
        max-width: 250px !important;
    }
}

/* --- Storyboard / Inspiration page updates --- */
.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    max-width: 650px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.story-card {
    background: #fffdf7;
    border: 4px solid #5c3a21; /* Vintage brown */
    border-radius: 18px;
    padding: 30px;
    box-shadow: 8px 8px 0 rgba(92, 58, 33, 0.15);
    box-sizing: border-box;
    width: 100%;
}

.story-card h3 {
    font-family: 'Luckiest Guy', cursive;
    color: #5c3a21;
    margin: 0 0 15px 0;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.story-section {
    display: flex;
    flex-direction: column; /* Stacked layout for maximum readability and width */
    align-items: center;
    gap: 25px;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.story-section.reverse {
    flex-direction: column; /* Keep stacked ordering consistent */
}

.story-text-pane {
    width: 100%;
}

.story-text-pane p {
    font-size: 1.15rem; /* Larger, premium, readable font */
    line-height: 1.6;
    color: #444;
    margin: 0 0 15px 0;
}

.story-text-pane p:last-child {
    margin-bottom: 0;
}

.story-media-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

/* TV screen with image */
.tv-image-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mini TV cabinet overrides (larger, detailed CRT set) */
.mini-tv {
    width: 100%;
    max-width: 320px; /* Wider centerpiece */
    padding: 12px;
    border-width: 5px;
    border-radius: 16px;
    gap: 10px;
    box-shadow: 8px 8px 0 rgba(92, 58, 33, 0.12);
}

.mini-tv .tv-screen-bezel {
    padding: 8px;
    border-width: 3px;
    border-radius: 10px;
}

.mini-tv .tv-screen {
    border-width: 2.5px;
}

.mini-tv .tv-controls {
    width: 48px;
    padding: 8px 3px;
    border-width: 2.5px;
    border-radius: 7px;
    gap: 6px;
}

.mini-tv .tv-dial {
    width: 26px;
    height: 26px;
    border-width: 2px;
}

.mini-tv .dial-knob {
    width: 3px;
    height: 7px;
    top: 1px;
}

.mini-tv .tv-speaker-grill {
    gap: 4px;
    padding: 4px 0;
}

.mini-tv .grill-bar {
    height: 2.5px;
}

.mini-tv .tv-power-switch {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
}

/* Story Polaroids (Much larger and detailed photos) */
.story-polaroid {
    background: #fff;
    padding: 10px 10px 20px 10px;
    border: 3px solid #5c3a21;
    border-radius: 4px;
    box-shadow: 6px 6px 0 rgba(92, 58, 33, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.story-polaroid img {
    width: 100%;
    height: auto;
    border: 2px solid #5c3a21;
    border-radius: 2px;
    display: block;
}

.story-polaroid .polaroid-label {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.1rem; /* Highly readable labels */
    color: #e67e22;
    margin-top: 8px;
    text-shadow: 0.5px 0.5px 0px #fff;
}

/* Polaroid pair side-by-side overlap styling */
.polaroid-pair {
    position: relative;
    width: 360px;
    height: 260px;
}

.polaroid-pair .story-polaroid.p1 {
    position: absolute;
    left: 0;
    top: 5px;
    width: 185px; /* Larger */
    transform: rotate(-6deg);
    z-index: 1;
}

.polaroid-pair .story-polaroid.p2 {
    position: absolute;
    right: 0;
    bottom: 5px;
    width: 185px; /* Larger */
    transform: rotate(6deg);
    z-index: 2;
}

.polaroid-pair .story-polaroid:hover {
    z-index: 10;
    transform: scale(1.08) rotate(0deg);
    box-shadow: 10px 10px 0 rgba(92, 58, 33, 0.25);
}

.story-polaroid.p3 {
    width: 320px; /* Clean single centerpiece size */
    transform: rotate(-2deg);
}

.story-polaroid.p3:hover {
    transform: scale(1.04) rotate(0deg);
    box-shadow: 10px 10px 0 rgba(92, 58, 33, 0.25);
}

/* Responsive constraints for story page */
@media (max-width: 680px) {
    .story-card {
        padding: 20px;
    }
    
    .story-card h3 {
        font-size: 1.6rem;
    }
    
    .story-text-pane p {
        font-size: 1.05rem;
    }
    
    .polaroid-pair {
        height: 200px;
        width: 280px;
    }
    
    .polaroid-pair .story-polaroid.p1 {
        width: 145px;
    }
    
    .polaroid-pair .story-polaroid.p2 {
        width: 145px;
    }
    
    .story-polaroid.p3 {
        width: 250px;
    }
    
    .mini-tv {
        max-width: 260px;
        padding: 10px;
        border-width: 4px;
        border-radius: 14px;
        gap: 8px;
    }
    .mini-tv .tv-screen-bezel {
        padding: 6px;
        border-width: 2px;
        border-radius: 8px;
    }
    .mini-tv .tv-screen {
        border-width: 2px;
    }
    .mini-tv .tv-controls {
        width: 42px;
        padding: 6px 2px;
        border-width: 2px;
        border-radius: 6px;
        gap: 4px;
    }
    .mini-tv .tv-dial {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
    .mini-tv .dial-knob {
        width: 3px;
        height: 6px;
        top: 1px;
    }
    .mini-tv .tv-speaker-grill {
        gap: 3px;
        padding: 3px 0;
    }
    .mini-tv .grill-bar {
        height: 2px;
    }
    .mini-tv .tv-power-switch {
        width: 12px;
        height: 12px;
        border-width: 1.5px;
    }
}





