* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #A8E6CF, #FFB3BA, #B8B8FF);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#game-container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 3px solid #333;
}

#game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #B8B8FF, #FFB3BA);
    padding: 12px 20px;
    color: #333;
    border-bottom: 3px solid #333;
}

#player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#player-avatar {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, #FDBCB4, #EEA9B8);
    border-radius: 50%;
    border: 3px solid #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#player-name {
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

#time-weather {
    display: flex;
    align-items: center;
    gap: 15px;
}

#game-time {
    background: rgba(255,255,255,0.4);
    padding: 6px 12px;
    border-radius: 15px;
    border: 2px solid #333;
    font-weight: bold;
}

#weather-display {
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#canvas {
    display: block;
    background: linear-gradient(45deg, #A8E6CF, #87CEEB);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border-bottom: 3px solid #333;
}

/* Enhanced Virtual D-Pad */
.dpad-container {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 100;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.dpad-container:hover {
    opacity: 1.0 !important;
    transform: scale(1.05);
}

.dpad-container.bottom-left {
    bottom: 90px;
    left: 20px;
}

.dpad-container.bottom-right {
    bottom: 90px;
    right: 20px;
}

.dpad-container.top-left {
    top: 90px;
    left: 20px;
}

.dpad-container.top-right {
    top: 90px;
    right: 20px;
}

.dpad-container.small {
    width: 90px;
    height: 90px;
}

.dpad-container.medium {
    width: 120px;
    height: 120px;
}

.dpad-container.large {
    width: 150px;
    height: 150px;
}

#virtual-dpad {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(220,220,220,0.8));
    border-radius: 50%;
    border: 4px solid #333;
    display: grid;
    grid-template-areas: 
        ". up ."
        "left center right"
        ". down .";
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.dpad-button {
    border: 3px solid #333;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,240,240,0.8));
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

#dpad-up {
    grid-area: up;
    border-radius: 20px 20px 8px 8px;
    border-bottom: none;
}

#dpad-down {
    grid-area: down;
    border-radius: 8px 8px 20px 20px;
    border-top: none;
}

#dpad-left {
    grid-area: left;
    border-radius: 20px 8px 8px 20px;
    border-right: none;
}

#dpad-right {
    grid-area: right;
    border-radius: 8px 20px 20px 8px;
    border-left: none;
}

#dpad-center {
    grid-area: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,200,200,0.9), rgba(255,150,150,0.8));
    font-size: 16px;
}

.dpad-button:hover,
.dpad-button:active,
.dpad-button.pressed {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    transform: scale(0.93);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
}

/* Mobile Interaction Button */
.mobile-btn {
    position: absolute;
    bottom: 110px;
    right: 30px;
    z-index: 100;
}

#interact-btn {
    width: 65px;
    height: 65px;
    border: 4px solid #333;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,240,240,0.85));
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#interact-btn:hover,
#interact-btn:active {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

#bottom-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #FFB3BA, #A8E6CF);
    padding: 15px 20px;
    border-top: 3px solid #333;
}

#inventory-bar {
    display: flex;
    gap: 10px;
}

.inventory-slot {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(240,240,240,0.7));
    border: 3px solid #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.inventory-slot:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(250,250,250,0.85));
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

#tool-wheel {
    display: flex;
    gap: 12px;
}

.tool-btn {
    width: 48px;
    height: 48px;
    border: 3px solid #333;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(240,240,240,0.7));
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover, .tool-btn.selected {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

#menu-btn {
    width: 52px;
    height: 52px;
    border: 3px solid #333;
    border-radius: 12px;
    background: linear-gradient(145deg, #B8B8FF, #9999FF);
    color: white;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#menu-btn:hover {
    background: linear-gradient(145deg, #9999FF, #7777FF);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Twitter Friends NPC Showcase */
#npc-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.npc-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,248,248,0.9));
    border: 3px solid #333;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.npc-card:hover {
    background: linear-gradient(145deg, rgba(255,255,255,1), rgba(250,250,250,0.95));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.npc-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #333;
    margin-bottom: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.npc-card h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.npc-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.npc-location {
    display: inline-block;
    background: linear-gradient(145deg, #A8E6CF, #90EE90);
    color: #333;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #333;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #FFB3BA, #B8B8FF, #A8E6CF);
    padding: 35px;
    border-radius: 25px;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    border: 4px solid #333;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.visible .modal-content {
    transform: scale(1.0);
}

.modal-content h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 32px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

#character-preview {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

#preview-canvas {
    border: 4px solid #333;
    border-radius: 20px;
    background: linear-gradient(45deg, #A8E6CF, #87CEEB);
    image-rendering: pixelated;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.customization-panel {
    text-align: left;
    margin: 25px 0;
}

.option-group {
    margin: 18px 0;
}

.option-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
}

.hair-styles {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hair-style {
    padding: 10px 18px;
    border: 3px solid #333;
    background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(240,240,240,0.7));
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.hair-style:hover, .hair-style.selected {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.color-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 38px;
    height: 38px;
    border: 3px solid #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.color-option.selected {
    border-width: 5px;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255,215,0,0.6);
}

.pastel-btn {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border: 3px solid #333;
    padding: 16px 35px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    margin-top: 25px;
}

.pastel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    background: linear-gradient(145deg, #FFED4E, #FF8C00);
}

/* Enhanced Dialogue System */
#dialogue-box {
    position: absolute;
    bottom: 170px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,248,248,0.95));
    border: 4px solid #333;
    border-radius: 25px;
    padding: 25px;
    max-width: 500px;
    min-width: 400px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

#dialogue-box.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(30px);
}

.dialogue-content {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

#villager-portrait {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #DDA0DD;
    border: 4px solid #333;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#npc-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dialogue-text-area {
    flex: 1;
}

#speaker-name {
    font-weight: bold;
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
}

#dialogue-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

#friendship-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.friendship-bar {
    width: 80px;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #999;
}

#friendship-fill {
    height: 100%;
    background: #3498DB;
    transition: all 0.3s ease;
    border-radius: 2px;
}

#dialogue-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.dialogue-option {
    background: linear-gradient(145deg, #B8B8FF, #9999FF);
    border: 3px solid #333;
    border-radius: 18px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.dialogue-option:hover {
    background: linear-gradient(145deg, #9999FF, #7777FF);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

/* Activity Panel */
#activity-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,248,248,0.95));
    border: 4px solid #333;
    border-radius: 25px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    min-width: 350px;
}

#activity-panel.hidden {
    display: none;
}

#activity-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

#fishing-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

#casting-meter {
    position: relative;
    width: 250px;
    height: 24px;
    background: #ddd;
    border: 3px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}

#power-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff8800, #ff0000);
    opacity: 0.4;
}

#power-indicator {
    position: absolute;
    left: 0;
    top: -3px;
    width: 6px;
    height: 30px;
    background: #333;
    border-radius: 3px;
    transition: left 0.1s ease;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

#cast-button {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    border: 3px solid #333;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#cast-button:hover {
    background: linear-gradient(145deg, #45a049, #3d8b40);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Village Map with Twitter Friends */
#village-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,248,248,0.95));
    border: 4px solid #333;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    min-width: 650px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

#village-map.hidden {
    display: none;
}

.map-content h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

/* Settings Panel */
#settings-panel {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,248,248,0.95));
    border: 4px solid #333;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    min-width: 280px;
}

#settings-panel.hidden {
    display: none;
}

.settings-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.setting-group {
    margin: 18px 0;
}

.setting-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.setting-group select,
.setting-group input[type="range"] {
    width: 100%;
    padding: 8px;
    border: 3px solid #333;
    border-radius: 10px;
    font-size: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,245,245,0.8));
}

.setting-group input[type="checkbox"] {
    transform: scale(1.3);
    margin-left: 8px;
}

/* Loading Screen with Twitter Friends */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    color: white;
}

.loading-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.loading-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.loading-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
    overflow: hidden;
    margin: 25px 0;
    border: 2px solid rgba(255,255,255,0.5);
}

#loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(255,215,0,0.6);
}

#loading-text {
    font-size: 18px;
    margin: 15px 0 35px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.loading-npcs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.loading-npc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loading-npc img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    object-fit: cover;
}

.loading-npc span {
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Notifications */
.notification {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,248,248,0.95));
    border: 3px solid #333;
    border-radius: 20px;
    padding: 18px 25px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    animation: slideIn 0.4s ease;
    z-index: 1002;
    max-width: 350px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.notification.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-25px);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    #game-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    #canvas {
        width: 100%;
        max-width: 800px;
        height: auto;
    }
    
    #bottom-hud {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 25px;
        max-width: 90%;
    }
    
    #dialogue-box {
        left: 15px;
        right: 15px;
        transform: none;
        max-width: none;
        min-width: auto;
    }
    
    #dialogue-box.hidden {
        transform: translateY(30px);
    }
    
    #settings-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }
    
    #village-map {
        min-width: 90vw;
        max-width: 95vw;
        padding: 25px;
    }
    
    #npc-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .loading-npcs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dpad-container.bottom-left {
        bottom: 25px;
        left: 15px;
    }
    
    .mobile-btn {
        bottom: 35px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hair-styles, .color-picker {
        justify-content: center;
    }
    
    .inventory-slot {
        width: 36px;
        height: 36px;
    }
    
    .tool-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    #game-header {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .dpad-container.medium {
        width: 100px;
        height: 100px;
    }
    
    .dpad-container.large {
        width: 120px;
        height: 120px;
    }
    
    #interact-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    #npc-showcase {
        grid-template-columns: 1fr;
    }
    
    .npc-card {
        padding: 15px;
    }
    
    .npc-card img {
        width: 60px;
        height: 60px;
    }
    
    .loading-npcs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .dpad-container {
        opacity: 0.7;
    }
    
    .dpad-button:active {
        background: linear-gradient(145deg, #FFD700, #FFA500);
        transform: scale(0.93);
    }
    
    #interact-btn:active {
        background: linear-gradient(145deg, #FFD700, #FFA500);
        transform: scale(1.05);
    }
    
    .npc-card:active {
        transform: translateY(-3px) scale(1.01);
    }
}

/* Hidden class */
.hidden {
    display: none !important;
}