:root {
    --primary: #fca311;
    --primary-hover: #e8950f;
    --secondary: #14213d;
    --accent: #e63946;
    --bg-color: #0d1b2a;
    --text-main: #ffffff;
    --text-muted: #a8dadc;
    --glass-bg: rgba(20, 33, 61, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #2a9d8f;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background: url('https://i.pinimg.com/736x/b3/0f/a5/b30fa5728a59cfabd3e6563f16c34308.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(20, 33, 61, 0.8) 100%);
    z-index: -1;
    backdrop-filter: blur(5px);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Fredoka One', cursive;
    letter-spacing: 1px;
}

/* Recent Activity Ticker */
.recent-activity {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.activity-content {
    color: var(--success);
    font-weight: 600;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
header {
    text-align: center;
    margin-top: 20px;
}

.game-title {
    font-size: 3rem;
    background: linear-gradient(to right, #fca311, #ffea00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main Generator Panel */
.generator-panel {
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(15px);
}

.step-container {
    display: none;
    padding: 30px;
    animation: slideIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.step-container.active {
    display: block;
}

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

.step-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Step 1: Input Group */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(252, 163, 17, 0.2);
}

/* Platform Selection */
.platform-selection {
    margin-bottom: 30px;
}

.platform-selection label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.platform-buttons {
    display: flex;
    gap: 15px;
}

.platform-btn {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.1rem;
    font-family: 'Fredoka One', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.platform-btn.active {
    border-color: var(--primary);
    background: rgba(252, 163, 17, 0.1);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(252, 163, 17, 0.2);
}

/* Action Button */
.action-btn {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), #ffb703);
    color: #000;
    font-size: 1.3rem;
    font-family: 'Fredoka One', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.4);
}

.action-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.action-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 163, 17, 0.6);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(252, 163, 17, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0); }
}

/* Step 2: Resource Cards */
.resource-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.resource-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.resource-card.selected {
    border-color: var(--primary);
    background: rgba(252, 163, 17, 0.1);
    box-shadow: 0 0 20px rgba(252, 163, 17, 0.2);
    transform: translateY(-5px);
}

.resource-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}

.resource-card .amount {
    display: block;
    font-size: 1.5rem;
    font-family: 'Fredoka One', cursive;
    color: white;
}

.popular-tag {
    position: absolute;
    top: 22px;
    right: -40px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 0;
    width: 160px;
    text-align: center;
    transform: rotate(45deg);
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Step 3: Console */
.console-box {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 15px;
    height: 150px;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #0f0;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.console-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.console-line {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-container {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #ffb703, var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 2s linear infinite;
    transition: width 0.2s ease;
}

@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Step 4: Verification */
.text-warning {
    color: #ffb703;
}

.verify-text {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.resource-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px dashed var(--primary);
    font-size: 1.2rem;
}

.resource-summary strong {
    color: var(--primary);
}

.verify-btn {
    background: linear-gradient(135deg, var(--accent), #d90429);
    color: white;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.verify-btn:hover {
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6);
}

.verify-btn.pulse {
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.secure-text {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 600;
}

/* Live Chat */
.live-chat {
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.chat-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-count {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}

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

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollbar customization */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.msg-user {
    font-weight: 800;
    color: var(--primary);
}

.msg-time {
    color: rgba(255, 255, 255, 0.4);
}

.msg-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    outline: none;
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .resource-options {
        grid-template-columns: 1fr;
    }
    
    .game-title {
        font-size: 2.2rem;
    }
}
