/* R34 BOY - Game Boy Styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --gb-green: #9bbc0f;
    --gb-dark: #0f380f;
    --gb-light: #8bac0f;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0f172a;
}

.gb-font {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    letter-spacing: 1px;
}

.gb-body {
    max-width: 380px;
    margin: 20px auto;
    background: linear-gradient(145deg, #4b5563, #374151);
    border: 12px solid #1f2937;
    border-radius: 28px;
    box-shadow: 
        0 25px 60px -15px rgb(0 0 0 / 0.7),
        inset 0 6px 12px rgb(255 255 255 / 0.15),
        inset 0 -4px 8px rgb(0 0 0 / 0.4);
    padding: 14px;
    position: relative;
    overflow: hidden;
}

.gb-header {
    background: #1f2937;
    border-radius: 12px 12px 0 0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 4px solid #111827;
}

.gb-led {
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e, inset 0 2px 3px rgb(255 255 255 / 0.6);
    animation: pulse 2s infinite;
}

.gb-screen-frame {
    background: #111827;
    border: 8px solid #1f2937;
    border-radius: 8px;
    padding: 8px;
    box-shadow: inset 0 4px 8px rgb(0 0 0 / 0.6);
    position: relative;
}

.gb-screen {
    background: #020617;
    border: 4px solid #334155;
    border-radius: 4px;
    min-height: 420px;
    max-height: 68vh;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 40px rgb(0 0 0 / 0.8);
}

.gb-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 3px,
        rgba(148, 163, 184, 0.035) 3px,
        rgba(148, 163, 184, 0.035) 5px
    );
    pointer-events: none;
    z-index: 10;
    border-radius: 2px;
}

.swipe-card {
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), 
               box-shadow 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    touch-action: pan-y;
    user-select: none;
    background: #0f172a;
    border: 3px solid #475569;
}

.media-container {
    background: #020617;
    min-height: 380px;
    max-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-container img, .media-container video {
    max-height: 62vh;
    width: 100%;
    object-fit: contain;
    image-rendering: crisp-edges;
}

.tag-pill {
    font-size: 0.65rem;
    padding: 1px 8px;
    border-radius: 9999px;
    background: #1e2937;
    color: #94a3b8;
    border: 1px solid #475569;
    transition: all 0.1s ease;
}

.tag-pill.positive {
    background: #166534;
    color: #86efac;
    border-color: #4ade80;
}

.tag-pill.negative {
    background: #7f1d1d;
    color: #fda4af;
    border-color: #f87171;
}

.gb-dpad {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 0 auto;
}

.gb-dpad-bg {
    position: absolute;
    inset: 0;
    background: #1f2937;
    border: 4px solid #111827;
    border-radius: 9999px;
    box-shadow: inset 0 4px 6px rgb(0 0 0 / 0.4);
}

.dpad-btn {
    position: absolute;
    width: 46px;
    height: 46px;
    background: #374151;
    border: 3px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.1rem;
    transition: all 0.1s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    z-index: 20;
}

.dpad-btn:active {
    transform: scale(0.9);
    background: #475569;
}

.dpad-btn.up { top: 6px; left: 50%; transform: translateX(-50%); border-radius: 8px 8px 9999px 9999px; }
.dpad-btn.down { bottom: 6px; left: 50%; transform: translateX(-50%); border-radius: 9999px 9999px 8px 8px; }
.dpad-btn.left { left: 6px; top: 50%; transform: translateY(-50%); border-radius: 8px 9999px 9999px 8px; }
.dpad-btn.right { right: 6px; top: 50%; transform: translateY(-50%); border-radius: 9999px 8px 8px 9999px; }

.dpad-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: #1f2937;
    border: 4px solid #111827;
    border-radius: 9999px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.5);
}

.gb-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    padding: 8px 18px;
    background: #334155;
    color: #e0f2fe;
    border: 3px solid #1e2937;
    border-radius: 9999px;
    box-shadow: 0 6px 0 #1e2937, 0 10px 15px -3px rgb(0 0 0 / 0.4);
    transition: all 0.1s ease;
    text-align: center;
    line-height: 1;
    min-width: 68px;
}

.gb-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #1e2937;
}

.gb-btn.a { background: #166534; border-color: #14532d; }
.gb-btn.b { background: #b91c1c; border-color: #7f1d1d; }
.gb-btn.start { background: #854d0e; border-color: #78350f; font-size: 0.55rem; padding: 6px 14px; }

.tinder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    border-radius: 6px;
    z-index: 50;
}

.post-badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    letter-spacing: 1px;
}

.preference-chip {
    font-size: 0.65rem;
    padding: 2px 9px;
    border-radius: 9999px;
}

.menu-modal {
    background: #1f2937;
    border: 6px solid #111827;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
}

.stat-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: #64748b;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
