/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #06030e;
    --console-body: #a25cff; /* Vibrant, bright Monad purple shell */
    --console-accent: #6c22d6; /* Deep purple undercuts and shadows */
    --bezel-color: #2b2b36; /* Dark slate bezel cover */
    --screen-lcd: #8b956d; /* Classic dot matrix LCD tone */
    --button-primary: #ff128c; /* Vibrant neon pink/magenta buttons */
    --button-cyan: #00ffff;
    --button-purple: #9000ff;
    --dpad-color: #252528;
    --text-lcd: #0f1c0f;
    --text-primary: #FFFFFF;
    --text-secondary: #B0C4DE;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(rgba(138, 43, 226, 0.2) 1.5px, transparent 1.5px),
        radial-gradient(rgba(0, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px 0;
}

/* Main Container */
.game-container {
    width: 100%;
    max-width: 375px; /* Scaled down width */
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 14px;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: #00FFFF;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

.wallet-section {
    display: flex;
    align-items: center;
}

.btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-connect {
    background: linear-gradient(135deg, #8A2BE2, #00FFFF);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.2);
}

.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 255, 255, 0.4);
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.badge {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00FFFF;
    color: #00FFFF;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.65rem;
}

#walletAddress {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

#walletAddress:hover {
    background: rgba(255, 51, 102, 0.15) !important;
    border-color: #ff3366 !important;
    color: #ff3366 !important;
}

#walletAddress:hover::after {
    content: " ✖";
    font-weight: bold;
}

.btn-disconnect {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-disconnect:hover {
    color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
}

/* Mode Indicator */
.mode-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mode-dot {
    width: 15px;
    height: 15px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.mode-dot.live {
    opacity: 1;
    filter: drop-shadow(0 0 4px #8A2BE2);
    animation: purplePulse 2.5s infinite ease-in-out;
}

@keyframes purplePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.93); }
    50% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 6px #8A2BE2); }
}

/* RETRO CONSOLE 3D BODY FRAME */
.device-body {
    background: var(--console-body);
    border: 5px solid #bd8cff; /* Light bevel rim */
    border-radius: 24px 24px 70px 24px; /* Asymmetrical classic Gameboy bottom-right curve */
    padding: 16px 18px 20px 18px; /* Compact padding */
    position: relative;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        inset 0 5px 0 rgba(255, 255, 255, 0.4),
        inset 0 -10px 0 var(--console-accent),
        inset -5px 0 0 rgba(0, 0, 0, 0.15),
        inset 5px 0 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 14px; /* Squeezed gap */
}

/* Structural decorative lines on the plastic casing */
.device-body::after {
    content: "";
    position: absolute;
    bottom: 30px;
    right: 25px;
    width: 50px;
    height: 18px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.3) 0px,
        rgba(0, 0, 0, 0.3) 3px,
        transparent 3px,
        transparent 6px
    );
    opacity: 0.5;
    pointer-events: none;
}

/* Screen Bezel (Grey Plastic Cover with realistic labels) */
.device-screen-bezel {
    background: var(--bezel-color);
    border-radius: 12px;
    padding: 14px 20px 18px 20px; /* Symmetrical 20px padding restored */
    box-shadow: 
        inset 0 4px 6px rgba(0,0,0,0.6), /* Bezel slot depth shadow */
        0 2px 0 rgba(255,255,255,0.15);
    border: 3px solid #1a1a24;
    position: relative;
}

/* Battery LED indicator */
.battery-indicator {
    position: absolute;
    left: 1px; /* Shifted left by another pixel to clear the screen edge */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.battery-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #551111; /* Off */
    border: 1px solid #111;
    transition: all 0.3s;
}

.battery-led.active {
    background-color: #ff3b30; /* Solid Red Glow */
    box-shadow: 0 0 8px #ff3b30, 0 0 15px rgba(255, 59, 48, 0.6);
}

.battery-label {
    font-size: 0.38rem;
    font-family: 'Press Start 2P', cursive;
    color: #8b92b5;
    transform: scale(0.7);
}

/* Bezel bottom label text */
.device-screen-bezel::after {
    content: 'MONADGOTCHI EDITION';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    color: #8a8fb5;
    font-family: 'Outfit', sans-serif;
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

/* Screen Header info (LCD look) */
.screen-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: #dfdfd6; /* Beautiful off-white/cream text */
    opacity: 0.9;
}

.pixel-status-label {
    font-weight: bold;
    color: var(--text-lcd);
}

/* The actual LCD Green-Screen */
.device-screen {
    height: 140px; /* Reduced screen height */
    background: var(--screen-lcd);
    border: 3px solid #6d7553;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    overflow: hidden;
    box-shadow: inset 0 5px 12px rgba(0,0,0,0.4);
}

/* Scanline / Pixel Grid Overlay for LCD simulation */
.device-screen::before {
    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.08) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    z-index: 10;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

/* Pet Display wrapper */
.pet-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pet-face-svg {
    width: 95px; /* Squeezed size */
    height: 95px;
    transition: all 0.3s ease;
}

/* SVG Character Face Custom overrides for green LCD screen contrast */
.pet-face-svg #faceBase {
    fill: #cadc9f !important;
    stroke: var(--text-lcd) !important;
}

.pet-face-svg #spikes path {
    fill: #4c533c !important;
    stroke: var(--text-lcd) !important;
}

.pet-face-svg #eyes .eye-bg {
    fill: var(--text-lcd) !important;
}

.pet-face-svg #nose {
    fill: #7a8460 !important;
    stroke: var(--text-lcd) !important;
}

.pet-face-svg #mouth {
    stroke: var(--text-lcd) !important;
}

.pet-face-svg .blush {
    fill: #97a675 !important;
}

/* Animations for SVG Components */
.animated-spikes {
    transform-origin: 100px 100px;
    animation: spikePulse 3s infinite ease-in-out;
}

@keyframes spikePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Normal state: Blinking eyes */
.pet-face-svg.idle #eyes .eye-bg {
    animation: blink 4s infinite ease-in-out;
    transform-origin: center;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* Eating state: chewing mouth + squint */
.pet-face-svg.eating #mouth {
    animation: chew 0.5s infinite ease-in-out;
    transform-origin: 100px 122px;
}
.pet-face-svg.eating #eyes {
    animation: eatSquint 0.5s infinite ease-in-out;
    transform-origin: 100px 98px;
}

@keyframes eatSquint {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.7); }
}

@keyframes chew {
    0%, 100% { d: path("M 90,122 Q 100,126 110,122"); }
    50% { d: path("M 90,140 Q 100,142 110,140"); }
}

/* Playing state: Head tilt + happy curved eyes */
.pet-face-svg.playing {
    animation: playTilt 0.8s infinite ease-in-out;
    transform-origin: 100px 100px;
}
.pet-face-svg.playing .eye-bg, .pet-face-svg.playing .eye-shine-1, .pet-face-svg.playing .eye-shine-2 {
    display: none;
}
.pet-face-svg.playing .eye-happy-curve {
    display: block !important;
    stroke: var(--text-lcd) !important;
}
.pet-face-svg.playing #mouth {
    d: path("M 86,120 Q 100,138 114,120") !important;
    fill: #7a8460;
}

@keyframes playTilt {
    0%, 100% { transform: rotate(-8deg) translateY(-5px); }
    50% { transform: rotate(8deg) translateY(5px); }
}

/* Cleaning state: wiggling head + happy closed eyes */
.pet-face-svg.cleaning {
    animation: cleanWiggle 1s infinite ease-in-out;
}
.pet-face-svg.cleaning .eye-bg, .pet-face-svg.cleaning .eye-shine-1, .pet-face-svg.cleaning .eye-shine-2 {
    display: none;
}
.pet-face-svg.cleaning .eye-happy-curve {
    display: block !important;
    stroke: var(--text-lcd) !important;
}
.pet-face-svg.cleaning #mouth {
    d: path("M 90,125 Q 100,120 110,125") !important;
}

@keyframes cleanWiggle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.03); }
}

/* Sick state: Shiver + sad frown */
.pet-face-svg.sick {
    animation: shiver 0.3s infinite linear;
}
.pet-face-svg.sick #faceBase {
    fill: #a6b583 !important;
}
.pet-face-svg.sick #mouth {
    d: path("M 90,128 Q 100,118 110,128") !important;
}

@keyframes shiver {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) translateY(-1px); }
    75% { transform: translateX(2px) translateY(1px); }
}

/* Dead state: dead X eyes + grayscale style */
.pet-face-svg.dead {
    transform: rotate(75deg) translateY(15px);
    opacity: 0.8;
}
.pet-face-svg.dead #faceBase {
    fill: #929d78 !important;
}
.pet-face-svg.dead #spikes path {
    fill: #5a6247 !important;
}
.pet-face-svg.dead .eye-bg, .pet-face-svg.dead .eye-shine-1, .pet-face-svg.dead .eye-shine-2 {
    display: none;
}
.pet-face-svg.dead .eye-dead-x {
    display: block !important;
    stroke: var(--text-lcd) !important;
}
.pet-face-svg.dead #mouth {
    d: path("M 92,124 L 108,124") !important;
}

/* Overlays inside screen */
.sick-overlay {
    position: absolute;
    font-size: 2rem;
    bottom: 8px;
    right: 12px;
    color: var(--text-lcd);
    animation: sway 2s infinite ease-in-out;
}

.ghost-overlay {
    position: absolute;
    font-size: 2.5rem;
    color: var(--text-lcd);
    animation: float 3s infinite ease-in-out;
}

.action-effect {
    position: absolute;
    font-size: 2.2rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.6s ease-out;
    color: var(--text-lcd);
}

.action-effect.animate {
    opacity: 1;
    transform: translateY(-40px) scale(1.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Screen Dialog text */
.screen-dialog {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 1px dashed rgba(0,0,0,0.25);
    padding: 4px;
    width: 95%;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: var(--text-lcd);
}

/* PHYSICAL HARDWARE STATS AREA */
.stats-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15); /* Indented dark background */
    border: 2px solid rgba(0,0,0,0.2);
    box-shadow: 
        inset 0 2px 3px rgba(0,0,0,0.4),
        0 1px 0 rgba(255,255,255,0.1);
    padding: 10px 12px;
    border-radius: 10px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    width: 95px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    white-space: nowrap;
}

.progress-container {
    flex: 1;
    height: 10px;
    background: #50563e;
    border-radius: 0px;
    border: 1px solid #6b7352;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.4s ease-out;
    background: #0f1c0f;
}

.stat-value {
    width: 38px;
    font-size: 0.65rem;
    font-family: 'Press Start 2P', cursive;
    font-weight: bold;
    color: #ffffff;
    text-align: right;
}

/* REALISTIC GAMEBOY DECK LAYOUT */
.controller-deck {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px 0 5px;
}

/* D-PAD (Plus Pad) Styling */
.dpad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 75px;
    height: 75px;
}

.dpad {
    position: relative;
    width: 65px;
    height: 65px;
}

.dpad-up, .dpad-down, .dpad-left, .dpad-right {
    background: var(--dpad-color);
    position: absolute;
    box-shadow: 
        0 3px 0 rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.1);
}

.dpad-up {
    width: 20px;
    height: 26px;
    top: 0; left: 22px;
    border-radius: 3px 3px 0 0;
}

.dpad-down {
    width: 20px;
    height: 26px;
    bottom: 0; left: 22px;
    border-radius: 0 0 3px 3px;
    box-shadow: 
        0 4px 0 rgba(0,0,0,0.5),
        inset 0 1px 1px rgba(255,255,255,0.1);
}

.dpad-left {
    width: 26px;
    height: 20px;
    left: 0; top: 22px;
    border-radius: 3px 0 0 3px;
}

.dpad-right {
    width: 26px;
    height: 20px;
    right: 0; top: 22px;
    border-radius: 0 3px 3px 0;
}

.dpad-center {
    width: 20px;
    height: 20px;
    position: absolute;
    left: 22px; top: 22px;
    background: var(--dpad-color);
    z-index: 2;
    border-radius: 2px;
}

.dpad-center::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111;
    left: 7px; top: 7px;
    opacity: 0.5;
}

.action-buttons-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    transform: rotate(-10deg) translateY(-4px); /* Scaled down layout tilt */
}

.arcade-btn {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0;
    width: 36px;
    height: 52px;
}

.arcade-btn-cap {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff128c; /* Cylindrical top cap color */
    border: 2px solid #220011;
    box-shadow: 
        0 4px 0 #8c0048, /* Scaled down 3D border */
        inset 0 2px 2px rgba(255,255,255,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}

/* Separate button colors */
#feedBtn .arcade-btn-cap {
    background: var(--button-cyan);
    border-color: #003e3e;
    box-shadow: 0 4px 0 #009393, inset 0 2px 2px rgba(255,255,255,0.4);
}

#playBtn .arcade-btn-cap {
    background: var(--button-primary);
    border-color: #3e001f;
    box-shadow: 0 4px 0 #a30054, inset 0 2px 2px rgba(255,255,255,0.4);
}

#cleanBtn .arcade-btn-cap {
    background: var(--button-purple);
    border-color: #21003e;
    box-shadow: 0 4px 0 #570099, inset 0 2px 2px rgba(255,255,255,0.4);
}

/* Pressing down animation */
.arcade-btn:active .arcade-btn-cap {
    transform: translateY(4px);
    box-shadow: 
        0 1px 0 rgba(0,0,0,0.5),
        inset 0 1px 1px rgba(0,0,0,0.4);
}

.arcade-btn-label {
    margin-top: 8px;
    font-size: 0.45rem;
    font-family: 'Press Start 2P', cursive;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

/* Select & Start rubber buttons */
.system-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 5px;
    padding-bottom: 10px;
}

.pill-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: rotate(-25deg); /* Rotates both the button and label together */
}

.pill-btn {
    width: 45px;
    height: 12px;
    background: #5a5a62;
    border: 2px solid #2a2a2e;
    border-radius: 6px;
    box-shadow: 
        0 3px 0 rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.1);
}

.pill-label {
    font-size: 0.42rem;
    font-family: 'Press Start 2P', cursive;
    color: #ffffff;
    opacity: 0.8;
}

body.modal-open {
    overflow: hidden !important;
}

/* Modal styling */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 3, 14, 0.65);
    backdrop-filter: blur(12px) saturate(1.2); /* Saturated blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: #200052;
    border: 4px solid var(--console-accent);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.modal-content h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: #00FFFF;
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 0.8rem;
    color: #B0C4DE;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    background: #12002b;
    border: 3px solid var(--console-accent);
    border-radius: 4px;
    color: #00FFFF;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 20px;
}

.modal-content input:focus {
    outline: none;
    border-color: #00FFFF;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #8A2BE2, #00FFFF);
    color: white;
    border: 3px solid #1c1c1c;
    border-radius: 8px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    width: 100%;
    padding: 12px;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* Logging System styling */
.game-logs {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
}

.game-logs h3 {
    font-size: 0.65rem;
    font-family: 'Press Start 2P', cursive;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.log-box {
    height: 80px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: monospace;
    font-size: 0.7rem;
}

/* Custom Scrollbar for Logs */
.log-box::-webkit-scrollbar {
    width: 4px;
}
.log-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.log-entry {
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    padding-left: 6px;
}

.log-entry.system {
    color: #ffd83b;
    border-color: #ffd83b;
}

.log-entry.action {
    color: #00ffff;
    border-color: #00ffff;
}

.log-entry.critical {
    color: #ff3366;
    border-color: #ff3366;
}

.hidden {
    display: none !important;
}

/* Wallet Selection Modal Styles */
.wallet-modal {
    max-width: 340px !important;
    padding: 20px 25px !important;
    text-align: left !important;
}

.modal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-header-bar h2 {
    margin: 0 !important;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #00FFFF;
}

.wallet-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.wallet-opt-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    background: #12002b;
    border: 2px solid var(--console-accent);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.wallet-opt-btn:hover {
    background: #1a003d;
    border-color: #00FFFF;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
    transform: translateY(-1px);
}

.wallet-opt-btn:active {
    transform: translateY(1px);
}

.wallet-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ==========================================================================
   LEVEL / EVOLUTION STAGES & ADVANCED EXPRESSIONS
   ========================================================================== */

/* Stage 1: Baby (Levels 1-2) */
.pet-face-svg.stage-baby #spikes {
    transform: scale(0.75);
    transform-origin: 100px 100px;
    display: block !important;
}
.pet-face-svg.stage-baby #faceBase {
    transform: scale(0.75);
    transform-origin: 100px 100px;
}
.pet-face-svg.stage-baby #eyes {
    transform: scale(0.75);
    transform-origin: 100px 100px;
}
.pet-face-svg.stage-baby .blush {
    transform: scale(0.75);
    transform-origin: 100px 100px;
}
.pet-face-svg.stage-baby #mouth {
    transform: scale(0.75);
    transform-origin: 100px 100px;
}
.pet-face-svg.stage-baby #nose {
    transform: scale(0.75);
    transform-origin: 100px 100px;
}

/* Stage 2: Teen (Levels 3-5) */
.pet-face-svg.stage-teen #spikes {
    transform: scale(0.9);
    transform-origin: 100px 100px;
}
.pet-face-svg.stage-teen #faceBase {
    transform: scale(0.9);
    transform-origin: 100px 100px;
}
.pet-face-svg.stage-teen #eyes {
    transform: scale(0.9);
    transform-origin: 100px 100px;
}
.pet-face-svg.stage-teen .blush, .pet-face-svg.stage-teen #mouth, .pet-face-svg.stage-teen #nose {
    transform: scale(0.9);
    transform-origin: 100px 100px;
}

/* Stage 3: Adult (Levels 6+) */
.pet-face-svg.stage-adult #spikes {
    transform: scale(1);
    transform-origin: 100px 100px;
}
.pet-face-svg.stage-adult #faceBase, .pet-face-svg.stage-adult #eyes, .pet-face-svg.stage-adult .blush, .pet-face-svg.stage-adult #mouth, .pet-face-svg.stage-adult #nose {
    transform: scale(1);
    transform-origin: 100px 100px;
}

/* Custom XP Bar Styling */
.stat-row.xp-row .stat-label {
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}
.stat-row.xp-row .progress-bar {
    background: linear-gradient(90deg, #ffcc00, #ff8800) !important;
    box-shadow: 0 0 8px rgba(255, 136, 0, 0.4);
}

.pixel-sound-toggle {
    cursor: pointer;
    font-size: 0.6rem;
    transition: transform 0.1s ease;
    user-select: none;
    margin-left: 4px;
}

.pixel-sound-toggle:hover {
    transform: scale(1.2);
}


