html, body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow-x: hidden;
}

.page-container {
    position: relative;
    min-height: 100vh;
    background: #000;
}

.image-wrapper {
    position: relative;
    width: 100%;
}

.pill-image {
    width: 100%;
    height: auto;
    display: block;
}

.pill-area {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    border-radius: 15px;
    transition: background 0.2s;
}

.pill-area:hover {
    background: none;
}

.pill-area-red {
    left: 6%;
    top: 15%;
    width: 38%;
    height: 65%;
}

.pill-area-blue {
    left: 53%;
    top: 15%;
    width: 34%;
    height: 65%;
}

@media (max-width: 575.98px) {
    .pill-area-red {
        top: 10%;
        height: 55%;
    }
    .pill-area-blue {
        top: 10%;
        height: 55%;
    }
}

.volume-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: all 0.5s ease;
}

.volume-btn.large { width: 112px; height: 112px; }
.volume-btn.small { width: 28px; height: 28px; }

@media (max-width: 575.98px) {
    .volume-btn.large { width: 64px; height: 64px; }
}

.volume-btn img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

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

.volume-btn.blinking {
    animation: blink 2.5s ease-in-out infinite;
}

.creation-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    padding: 30px 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 30%);
}

@media (max-width: 575.98px) {
    .creation-overlay {
        position: relative;
        background: rgba(0, 0, 0, 0.9);
        padding: 20px 15px;
    }
}

.pill-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    width: 100%;
    font-size: 16px;
}

.pill-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.pill-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

@keyframes input-blink-red {
    0%   { border-color: rgba(255, 80, 80, 1); box-shadow: 0 0 8px rgba(255, 80, 80, 0.6); }
    50%  { border-color: rgba(255, 80, 80, 0.2); box-shadow: none; }
    100% { border-color: rgba(255, 80, 80, 1); box-shadow: 0 0 8px rgba(255, 80, 80, 0.6); }
}

@keyframes input-blink-blue {
    0%   { border-color: rgba(80, 160, 255, 1); box-shadow: 0 0 8px rgba(80, 160, 255, 0.6); }
    50%  { border-color: rgba(80, 160, 255, 0.2); box-shadow: none; }
    100% { border-color: rgba(80, 160, 255, 1); box-shadow: 0 0 8px rgba(80, 160, 255, 0.6); }
}

.pill-input.highlight-red { animation: input-blink-red 0.4s ease-in-out 2; }
.pill-input.highlight-blue { animation: input-blink-blue 0.4s ease-in-out 2; }

@keyframes label-blink-red {
    0%   { color: rgba(255, 80, 80, 1); }
    50%  { color: rgba(255, 80, 80, 0.2); }
    100% { color: rgba(255, 80, 80, 1); }
}

@keyframes label-blink-blue {
    0%   { color: rgba(80, 160, 255, 1); }
    50%  { color: rgba(80, 160, 255, 0.2); }
    100% { color: rgba(80, 160, 255, 1); }
}

.pill-label.highlight-red { animation: label-blink-red 0.4s ease-in-out 2; }
.pill-label.highlight-blue { animation: label-blink-blue 0.4s ease-in-out 2; }

.pill-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 6px;
}

.credit-link {
    position: absolute;
    bottom: 8px;
    right: 12px;
    z-index: 20;
    color: #555;
    text-decoration: none;
    font-size: 12px;
}

.credit-link:hover { color: #777; }

@media (max-width: 575.98px) {
    .credit-link {
        position: relative;
        display: block;
        text-align: right;
        padding: 10px 12px;
        bottom: auto;
        right: auto;
    }
}

.new-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    text-decoration: none;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
    transition: transform 0.2s;
}

.new-btn:hover {
    transform: scale(1.05);
}
