/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Abel', sans-serif;
    font-size: 16px;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Disable text selection on most elements */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
        filter: blur(4px);
    transform: scale(1.1);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(10, 6, 18, 0.7) 0%, rgba(26, 15, 46, 0.75) 25%, rgba(45, 27, 78, 0.7) 50%, rgba(30, 19, 56, 0.75) 75%, rgba(15, 8, 32, 0.7) 100%),
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(42, 157, 244, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

body > * {
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Utility Classes */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

.accent-color {
    color: #3b82f6;
}

.accent-background {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Consistent Transition Timing */
:root {
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.5);
    --shadow-glow-purple: 0 0 30px rgba(138, 43, 226, 0.5);
    --shadow-glow-gold: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Accessibility - Focus Styles */
*:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

/* Animations */
@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.bounceIn {
    animation-name: bounceIn;
}

.shake {
    animation-name: shake;
}

/* Header */
header {
    position: relative;
    margin: 0 auto;
    padding: 80px 0 40px;
    text-align: center;
}

header::before {
    /* Decorative radial glow removed to avoid visual artifact behind the title.
       Kept as an empty pseudo-element to preserve layout stacking if needed. */
    content: '';
    display: none;
}

@keyframes headerPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.logo-img {
    max-width: 500px;
    max-height: 240px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 60px rgba(138, 43, 226, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
    will-change: transform;
}

.logo-img:hover {
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 80px rgba(138, 43, 226, 0.6));
    transform: scale(1.05);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Main Section */
.main-section {
    padding: 0 0 100px;
}

.container-wrapper {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

.generator-main {
    position: relative;
    margin: 0 auto;
    max-width: 720px;
    /* Top corners should be square to meet the sharp box above; bottom corners rounded */
    border-radius: 0 0 22px 22px;
    box-shadow:
        0 0 40px rgba(59, 130, 246, 0.6),
        0 0 80px rgba(138, 43, 226, 0.4),
        0 0 120px rgba(255, 215, 0, 0.2),
        0 15px 50px rgba(0, 0, 0, 0.6);
    animation: gentleGlow 4s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
}

.generator-main:hover {
    transform: translateY(-5px);
}

@keyframes gentleGlow {
    0% {
        box-shadow:
            0 0 40px rgba(59, 130, 246, 0.6),
            0 0 80px rgba(138, 43, 226, 0.4),
            0 0 120px rgba(255, 215, 0, 0.2),
            0 15px 50px rgba(0, 0, 0, 0.6);
    }
    100% {
        box-shadow:
            0 0 60px rgba(59, 130, 246, 0.8),
            0 0 100px rgba(138, 43, 226, 0.6),
            0 0 140px rgba(255, 215, 0, 0.3),
            0 20px 60px rgba(0, 0, 0, 0.7);
    }
}

/* Generator Header */
.generator-header {
    padding: 50px 60px 15px;
    text-align: center;
    /* make top corners square so header meets element above cleanly */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    position: relative;
    overflow: hidden;
}

.generator-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    /* ensure the pseudo-element follows the square top corners */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 1;
}


@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.generator-header-inner {
    position: relative;
    z-index: 2;
}

.generator-header h1 {
    margin: 0 0 10px;
    font-size: 3em;
        margin: 0 0 10px;
        /* responsive title sizing */
        font-size: clamp(1.6rem, 6vw, 3rem);
    font-family: 'Luckiest Guy', cursive;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* "Rush" text styling - simplified: solid fill + 1px black border */
.rush-text {
    position: relative;
    display: inline-block;
    /* remove gradient/background-clip and any shadows */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #f11763; /* solid pink fill */
    filter: none !important;
    text-shadow: none !important;
    -webkit-text-stroke: 1px #000; /* black border */
    text-stroke: 1px #000;
}

/* "Royale" text styling - simplified: solid fill + 1px black border */
.royale-text {
    position: relative;
    display: inline-block;
    /* remove gradient/background-clip and any shadows */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #ffc70c; /* solid yellow fill */
    filter: none !important;
    text-shadow: none !important;
    -webkit-text-stroke: 1px #000; /* black border */
    /* text-stroke is not standard everywhere; keep -webkit prefixed version for best coverage */
}

/* Fallback stroke for non-WebKit browsers (emulate 1px outline using text-shadows) */
.rush-text,
.royale-text {
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

/* Shine effect for both words */
.rush-text::after,
.royale-text::after {
    /* remove the moving shine overlay entirely */
    display: none !important;
    content: none !important;
}

@keyframes titleShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.generator-header h2 {
    margin: 0;
    font-size: 1.7em;
    font-family: 'Rajdhani', 'Montserrat', sans-serif;
    text-shadow:
        2px 2px 0 #cbd5e1,
        0 0 20px rgba(59, 130, 246, 0.4);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #475569;
    text-transform: uppercase;
}

/* Status Bar */
.generator-status {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    font-size: 1.2em;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #cbd5e1;
    border-bottom: 2px solid #64748b;
    text-align: center;
    padding: 5px 10px 3px;
    color: #1e293b;
    text-transform: uppercase;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.status-label {
    color: #64748b;
    font-weight: 600;
}

.status-dynamic {
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-row-2,
.status-row-3 {
    display: none;
}

#status {
    color: #0bc069;
}

/* Generator Content */
.generator-content {
    padding: 60px 60px 30px;
    color: #fff;
    position: relative;
    z-index: 20;
}

.generator-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #45484d 0%, #000000 100%);
    border: 2px solid gray;
    /* bottom corners rounded, top corners square to align with header */
    border-radius: 0 0 22px 22px;
    z-index: -1;
}

/* Form Elements */
.styled-label {
    text-align: center;
    /* Brighter label color for better contrast on dark backgrounds */
    color: #ffffff; /* pure white for maximum readability */
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1.5;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow:
        0 0 6px rgba(0,0,0,0.35), /* subtle dark outline to improve legibility */
        0 2px 6px rgba(0, 0, 0, 0.85);
    margin-bottom: 12px;
}

.input-wrapper {
    margin-bottom: 15px;
    margin-top: 5px;
    position: relative;
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
    padding-bottom: 15px;
}

.styled-input {
    width: 100%;
    border: 2px solid #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    height: 60px;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.4em;
    padding: 0 20px;
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Allow text selection in input fields */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

.styled-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 12px 24px;
    /* lighter weight for a softer CTA */
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #2a9df4 0%, #1e7ac7 100%);
    border-radius: 12px;
    border: 0;
    box-shadow: 0 8px 20px rgba(18, 40, 80, 0.18), inset 0 -2px 0 rgba(255,255,255,0.03);
    cursor: pointer;
    text-transform: none;
    transition: transform 160ms cubic-bezier(.2,.9,.3,1), box-shadow 160ms ease, filter 160ms ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.styled-button::before {
    /* subtle glossy highlight */
    content: "";
    position: absolute;
    inset: auto 8px 50% 8px;
    height: 40%;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
    pointer-events: none;
    mix-blend-mode: overlay;
}
.styled-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 30px rgba(18, 40, 80, 0.22), inset 0 -2px 0 rgba(255,255,255,0.04);
}
.styled-button:active {
    transform: translateY(0) scale(0.995);
    box-shadow: 0 6px 10px rgba(18, 40, 80, 0.16), inset 0 -1px 0 rgba(0,0,0,0.06);
}
.styled-button:focus-visible {
    outline: 3px solid rgba(46,150,243,0.22);
    outline-offset: 3px;
    border-radius: 12px;
}

/* Platform Selection */
.platform-select-wrapper {
    margin-top: 22px;
}

.platform-item {
    text-align: center;
    cursor: pointer;
    color: #fff;
    border: 2px solid rgba(51, 65, 85, 0.6);
    border-radius: 15px;
    padding: 15px 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Make platform options keyboard-focusable and visible */
.platform-item:focus {
    outline: 3px solid rgba(58,123,210,0.9);
    outline-offset: 4px;
    transform: scale(1.03);
}

.platform-item:hover {
    border-color: #3b82f6;
    transform: scale(1.08) translateY(-3px);
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
}

.platform-item.active {
    border-color: #3b82f6;
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(138, 43, 226, 0.3) 100%);
    box-shadow:
        0 0 35px rgba(59, 130, 246, 0.7),
        0 0 60px rgba(138, 43, 226, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.platform-item.active i {
    color: #3b82f6;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
}

.platform-item i {
    font-size: 5em;
    display: block;
    margin-bottom: 10px;
}

/* Resource Selection */
.resource-select-wrapper {
    margin-top: 10px;
}

.resource-wrapper {
    /* switch to a small flex layout so icon and select align reliably */
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

/* Icon placed inside resource wrappers (gold / crystals) */
.icon-wrapper {
    /* inline icon container for the flex layout */
    position: relative;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.resource-icon {
    max-width: 100%;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    transition: all 0.3s ease;
    /* keep icon visual but stop floating/hovering animation */
    animation: none !important;
}

.crystal-icon {
    /* make crystal icon larger (requested: roughly double size) */
    width: 88px !important;
    height: 88px !important;
}

.button-wrapper .styled-button {
    width: 100%;
    display: block;
    /* make the button a bit bigger */
    padding: 24px 34px;
    font-size: 1.36em;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: var(--shadow-lg);
}

.styled-button {
    position: relative; /* needed for pseudo-element positioning */
    overflow: visible;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(180deg, #44b0ff 0%, #1e7ac7 100%);
    box-shadow: 0 18px 40px rgba(10, 30, 70, 0.28), inset 0 -3px 0 rgba(255,255,255,0.04);
    padding: 22px 34px;
    /* lighter weight for a softer CTA */
    font-weight: 600;
    letter-spacing: 1.6px;
    transition: transform 200ms cubic-bezier(.2,.9,.3,1), box-shadow 200ms ease, background 200ms ease, filter 200ms ease;
    will-change: transform;
    cursor: pointer;
}

/* soft ambient glow behind the button */
.styled-button::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(74, 154, 255, 0.22) 0%, rgba(30,122,199,0.06) 40%, transparent 60%);
    filter: blur(16px);
    z-index: 0;
    opacity: 0.7;
    transition: transform 220ms ease, opacity 220ms ease;
    pointer-events: none;
    /* subtle pulsing glow to draw attention (paused on hover) */
    animation: ctaGlow 3s ease-in-out infinite;
}

.styled-button > span {
    position: relative;
    z-index: 3;
    display: inline-block;

    /* Use Luckiest Guy for the primary CTA text */
    font-family: 'Luckiest Guy', 'Montserrat', cursive;
    font-size: 1.18em;
    letter-spacing: 1.8px;
    line-height: 1;
    /* subtle shadow to improve readability over busy backgrounds */
    text-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

/* subtle sheen */
.styled-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -90%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
    transform: skewX(-12deg);
    transition: left 420ms ease;
    z-index: 2;
    pointer-events: none;
}

.styled-button:hover::after {
    left: 130%;
}

.styled-button:hover::before {
    transform: translate(-50%, -52%) scale(1.06);
    opacity: 0.9;
    animation-play-state: paused;
}

.styled-button:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 28px 60px rgba(10, 30, 70, 0.32), inset 0 -4px 0 rgba(255,255,255,0.06);
}

@keyframes ctaGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -52%) scale(1.04);
        opacity: 0.85;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

.styled-button:active {
    transform: translateY(2px) scale(0.995);
    box-shadow: 0 10px 18px rgba(10, 30, 70, 0.28), inset 0 6px 12px rgba(0,0,0,0.26);
}

.styled-button:focus-visible {
    outline: 3px solid rgba(46,150,243,0.30);
    outline-offset: 4px;
    border-radius: 14px;
}

/* slightly reduce size on very small screens to avoid overflow */
@media screen and (max-width: 440px) {
    .button-wrapper .styled-button {
        padding: 14px 18px;
        font-size: 1.05em;
        letter-spacing: 1px;
    }
}

select.styled-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.7), 0 0 60px rgba(138, 43, 226, 0.3);
    transform: translateY(-2px);
}

select.styled-select {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    background: #0f172a;
    background-color: #0f172a;
    border: 2px solid rgba(59, 130, 246, 0.4);
    color: #fff;
    padding: 0 15px; /* inline icon now occupies its own space, no large left padding */
    /* make the dropdown amounts more prominent and use the decorative font; use a lighter weight */
    font-family: 'Luckiest Guy', 'Montserrat', cursive;
    font-size: 1.12em;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Option styling: note some browsers limit option styling — this increases readability where supported */
select.styled-select option {
    font-family: inherit;
    /* lighter weight for options where supported */
    font-weight: 400;
    font-size: 1.02em;
}

/* Stack the gold/crystals selects vertically instead of side-by-side */
.resource-select-wrapper .row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resource-select-wrapper .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Nudge the gold icon (left/first resource) up slightly when it appears too low */
/* removed: nudging via absolute positioning (now using flex layout for reliable centering) */

/* Make sure the resource wrapper contents don't overflow and align nicely */
.resource-wrapper .styled-select {
    box-sizing: border-box;
}

/* Processing Screen */
.user-info-wrapper {
    padding: 12px 20px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.4) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.user-info-wrapper:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.u-i-u-l {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    top: -1px;
}

.u-i-u-v {
    color: #fff;
    font-weight: 700;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.resource-info-wrapper {
    padding: 12px 20px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.4) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.resource-info-wrapper:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.resource-info-inner {
    display: table;
    margin: 0 auto;
}

.r-i-l {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.r-i-v {
    color: #fff;
    font-weight: 700;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Console */
.console-wrapper {
    text-align: center;
    margin-top: 30px;
}

.console-message {
    font-size: 1.1em;
    font-weight: 500;
    color: #e2e8f0;
    padding-top: 25px;
    line-height: 1.6;
    text-align: left;
    font-family: 'Courier New', monospace;
    min-height: 60px;
}

.console-message.small-p-t {
    padding-top: 10px;
}

.console-message.console-last-msg {
    font-family: 'Abel', sans-serif;
    text-align: center;
    font-size: 1em;
}

.msg-timestamp {
    color: #64748b;
    font-size: 0.85em;
    margin-right: 8px;
}

.msg-session {
    color: #f59e0b;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.msg-green {
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    font-weight: 700;
}

.msg-yellow {
    color: #f59e0b;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    font-weight: 700;
}

.msg-info {
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    font-weight: 700;
}

.msg-red {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    font-weight: 700;
}

.console-count {
    display: table;
    margin: 20px auto 0;
    width: 220px;
    padding: 15px 20px 12px;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.6);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    box-shadow:
        0 0 35px rgba(59, 130, 246, 0.5),
        0 0 60px rgba(138, 43, 226, 0.3),
        0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.console-count:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 45px rgba(59, 130, 246, 0.7),
        0 0 80px rgba(138, 43, 226, 0.5),
        0 10px 35px rgba(0, 0, 0, 0.5);
}

.console-count img {
    max-width: 40px;
    display: table;
    margin: 0 auto 8px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    /* stop floating animation for console icons */
    animation: none !important;
}

.console-count span {
    font-weight: 900;
    color: #fff;
    font-size: 1.8em;
    text-shadow:
        0 0 25px rgba(59, 130, 246, 0.9),
        0 0 40px rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, #fff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    font-size: 0.75em;
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.25) 100%);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.badge-item i {
    font-size: 1.1em;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

/* Progress Bar */
.progress-container {
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.progress-label {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-percentage {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 15px;
    transition: width 1000ms ease-out;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.progress-fill.progress-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    }
    50% {
        box-shadow: 0 0 35px rgba(245, 158, 11, 0.9);
    }
}

.progress-glow {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progressShine 2s linear infinite;
    pointer-events: none;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Urgency Timer */
.urgency-container {
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
        border-color: rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
        border-color: rgba(245, 158, 11, 0.7);
    }
}

.urgency-icon {
    font-size: 1.8em;
    animation: urgencyBounce 1s ease-in-out infinite;
}

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

.urgency-text {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.urgency-timer {
    color: #fff;
    font-size: 1.3em;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
    font-family: 'Courier New', monospace;
}

.timer-expired {
    color: #ef4444;
    animation: timerExpiredBlink 0.5s ease-in-out infinite;
}

@keyframes timerExpiredBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Final Verification Message */
.final-verification-msg {
    padding: 25px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.verification-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
    animation: verificationIconPulse 2s ease-in-out infinite;
}

@keyframes verificationIconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.9));
    }
}

.verification-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.verification-desc {
    color: #cbd5e1;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.verification-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.stat-item {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85em;
}

.stat-number {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    margin-bottom: 5px;
}

.counter-complete {
    animation: counterBounce 0.5s ease;
}

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

.verfication-button-wrapper {
    margin-top: 20px;
    display: none;
}

/* Footer */
footer {
    margin-top: 120px;
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    position: relative;
    z-index: 10;
}

footer .copyright-notice span {
    display: block;
    margin-top: 5px;
}

/* Activity Feed */
.activity-feed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    padding: 20px;
    margin-top: 50px;
    height: fit-content;
    max-height: 600px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow:
        0 0 40px rgba(59, 130, 246, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    transition: all 0.4s ease;
}

.activity-feed:hover {
    box-shadow:
        0 0 50px rgba(59, 130, 246, 0.5),
        0 0 80px rgba(138, 43, 226, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

.activity-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: -20px -20px 15px -20px;
    border-radius: 20px 20px 0 0;
}

.activity-header:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
}

.activity-header i {
    color: #fff;
    font-size: 1.3em;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.activity-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    flex: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.activity-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    padding: 5px;
    transition: transform 0.3s ease;
}

.activity-toggle.collapsed {
    transform: rotate(-180deg);
}

.activity-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 5px;
    transition: all 0.3s ease;
}

.activity-list.collapsed {
    max-height: 0;
    overflow: hidden;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #a78bfa 100%);
}

.activity-item {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.7) 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    animation: slideInLeft 0.5s ease;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.activity-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(138, 43, 226, 0.25) 100%);
    border-left-color: #8b5cf6;
    border-left-width: 5px;
    transform: translateX(8px) scale(1.02);
    box-shadow:
        0 0 25px rgba(59, 130, 246, 0.4),
        0 6px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.activity-item .username {
    color: #60a5fa;
    font-weight: 700;
    font-size: 1em;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.activity-item .action {
    color: #e2e8f0;
    font-size: 0.9em;
    margin-top: 4px;
    line-height: 1.4;
}

.activity-item .resources {
    color: #34d399;
    font-weight: 700;
    font-size: 1.05em;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.activity-item .timestamp {
    color: #94a3b8;
    font-size: 0.75em;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Chat Box */
.chat-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    margin-top: 50px;
    overflow: hidden;
    height: fit-content;
    max-height: 600px;
    backdrop-filter: blur(15px);
    box-shadow:
        0 0 40px rgba(59, 130, 246, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    transition: all 0.4s ease;
}

.chat-box:hover {
    box-shadow:
        0 0 50px rgba(59, 130, 246, 0.5),
        0 0 80px rgba(138, 43, 226, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

.chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-header:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
}

.chat-header i {
    color: #fff;
    font-size: 1.3em;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.chat-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    flex: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chat-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    padding: 5px;
    transition: transform 0.3s ease;
}

.chat-toggle.collapsed {
    transform: rotate(-180deg);
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 520px;
    transition: all 0.3s ease;
}

.chat-body.collapsed {
    height: 0;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    /* Allow text selection in chat messages */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #a78bfa 100%);
}

.chat-message {
    margin-bottom: 14px;
    animation: fadeInUp 0.4s ease;
}

.chat-message .username {
    color: #60a5fa;
    font-weight: 700;
    font-size: 0.95em;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    margin-bottom: 4px;
    display: inline-block;
}

.chat-message .message-text {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.7) 100%);
    padding: 12px 16px;
    border-radius: 14px;
    margin-top: 4px;
    color: #e2e8f0;
    font-size: 0.95em;
    line-height: 1.5;
    border: 1px solid rgba(59, 130, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chat-message .message-text:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(138, 43, 226, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(5px) scale(1.01);
    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-message.user .message-text {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(138, 43, 226, 0.4) 100%);
    border-color: rgba(59, 130, 246, 0.5);
}

.chat-message .timestamp {
    color: #999;
    font-size: 0.7em;
    margin-top: 3px;
}

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

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(42, 157, 244, 0.3);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(42, 157, 244, 0.3);
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9em;
    /* Allow text selection in chat input */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#chat-input:focus {
    outline: none;
    border-color: #2a9df4;
    background: rgba(255, 255, 255, 0.15);
}

#chat-input::placeholder {
    color: #999;
}

.chat-send-btn {
    background: linear-gradient(135deg, #2a9df4 0%, #1e7ac7 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

.chat-send-btn i {
    color: #fff;
    font-size: 1em;
}

/* Crystal Icon Larger */
.crystal-icon-large {
    transform: none !important;
}

.resource-wrapper img[src*="crystals"] {
    transform: none !important;
    width: 88px;
    height: 88px;
    object-fit: contain;
}

/* Responsive Design */

@media screen and (max-width: 767px) {
    header {
        padding: 40px 0 20px;
    }

    .logo-img {
        max-width: 340px;
        max-height: 170px;
    }

    .generator-header {
        padding: 45px 30px 15px;
    }

    .generator-header h1 {
        font-size: 2.4em;
        letter-spacing: 1.5px;
    }

    .generator-header h2 {
        font-size: 1.5em;
    }

    .generator-content {
        padding: 50px 30px 20px;
    }

    .styled-input {
        font-size: 1em;
    }

    .platform-item i {
        font-size: 3.6em;
    }

    .activity-feed,
    .chat-box {
        max-height: 400px;
    }

    .chat-body {
        height: 320px;
    }
}

@media screen and (max-width: 500px) {
    .generator-header,
    .generator-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Keep platforms side by side on mobile */
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 5px;
    }

    /* Ensure resource selects remain stacked (override generic .col-6) */
    .resource-select-wrapper .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Mobile tweaks: ensure icons vertically center next to selects */
    .resource-wrapper {
        min-height: 64px; /* give a consistent container height on mobile */
        box-sizing: border-box;
    }

    .icon-wrapper {
        /* inline icon container: size slightly smaller on mobile */
        width: 48px;
        height: 48px;
        margin-right: 10px;
    }

    .resource-icon {
        width: 36px;
        height: 36px;
    }

    select.styled-select {
        height: 48px; /* match icon height for perfect centering */
        padding: 0 15px;
        font-size: 1.04em;
    }

    /* make select grow to fill available space next to icon */
    .resource-wrapper select.styled-select {
        flex: 1;
    }

    /* removed mobile nudge (flex layout handles centering) */
}

@media screen and (max-width: 440px) {
    header {
        padding: 20px 0;
    }

    .logo-img {
        max-width: 280px;
        max-height: 140px;
    }

    .generator-header {
        padding: 40px 20px 12px;
    }

    .generator-header h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .generator-header h2 {
        font-size: 1.3em;
    }

    .generator-status {
        font-size: 1em;
    }

    .styled-label {
        font-size: 0.7em;
    }

    .platform-item i {
        font-size: 3.2em;
    }

    .styled-button {
        font-size: 1.2em;
    }

}

@media screen and (max-width: 365px) {
    .generator-header,
    .generator-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .generator-header h1 {
        font-size: 1.6em;
        letter-spacing: 0.5px;
    }

    .generator-header h2 {
        font-size: 1.1em;
    }

    .styled-input {
        font-size: 0.8em;
    }

    .styled-button {
        font-size: 1em;
    }
}

