body {
    font-family: 'Arial', sans-serif;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    transition: background-color 0.3s;
}

.game-container {
    text-align: center;
    width: 400px;
    background-color: #34495e;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
}

.bus-container {
    position: relative;
    height: 140px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bus {
    font-size: 80px;
    transition: transform 0.3s ease-out;
    z-index: 2;
    user-select: none;
    cursor: pointer;
}

.bus.charging {
    animation: bus-charge 0.15s infinite alternate;
}

@keyframes bus-charge {
    0% { transform: scale(1) rotate(-3deg); }
    100% { transform: scale(1.08) rotate(3deg); }
}

.bus.doshirak-pop {
    animation: pop-transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-transform {
    0% { transform: scale(0.3) rotate(-180deg); }
    60% { transform: scale(1.3) rotate(15deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.bus.drive-away {
    animation: bus-leave 1.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@keyframes bus-leave {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translateX(15px) rotate(4deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-500px) rotate(-6deg);
        opacity: 0;
    }
}

.bus-two {
    position: absolute;
    right: -450px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bus-two.ramming {
    visibility: visible;
    animation: bus-ram 0.9s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@keyframes bus-ram {
    0% {
        right: -450px;
        opacity: 1;
        transform: rotate(0deg);
    }
    70% {
        opacity: 1;
        transform: rotate(-12deg) scale(1.1);
    }
    100% {
        right: 155px;
        opacity: 1;
        transform: rotate(0deg) scale(1.1);
    }
}

.driver-shout {
    background-color: #f1c40f;
    color: #c0392b;
    font-size: 15px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 12px;
    border: 2px solid #c0392b;
    white-space: nowrap;
    margin-bottom: -10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease-out;
}

.driver-shout.active {
    opacity: 1;
    transform: scale(1);
}

.smoke {
    position: absolute;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.rage-label {
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.rage-bar-outer {
    width: 100%;
    height: 20px;
    background-color: #7f8c8d;
    border-radius: 10px;
    overflow: hidden;
}

.rage-bar-inner {
    width: 0%;
    height: 100%;
    background-color: #e74c3c;
    transition: width 0.1s linear, background-color 0.3s;
    border-radius: 10px;
}

.rage-bar-inner.satiety-bar {
    background-color: #2ecc71;
}

.shout-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #c0392b;
    border: 3px solid #a93226;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
    user-select: none;
}

.shout-btn:hover:not(:disabled) {
    background-color: #922b21;
    transform: scale(1.02);
}

.shout-btn.eat-mode {
    background-color: #27ae60;
    border-color: #1e8449;
    font-size: 16px;
}

.shout-btn.eat-mode:hover:not(:disabled) {
    background-color: #1e8449;
}

.shout-btn:disabled {
    background-color: #95a5a6;
    border-color: #7f8c8d;
    cursor: not-allowed;
    transform: scale(1);
}

.result-text {
    margin-top: 20px;
    min-height: 40px;
    font-size: 24px;
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 0 0 10px #f1c40f;
}

.bus.exploded {
    animation: explode-bus 0.6s ease-out forwards;
}

@keyframes explode-bus {
    0% { transform: scale(1); }
    40% { transform: scale(2.2) rotate(15deg); filter: brightness(2); }
    100% { transform: scale(1.5); opacity: 0.9; }
}

.shake-screen {
    animation: screen-shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes screen-shake {
    10%, 90% { transform: translate3d(-4px, -2px, 0); }
    20%, 80% { transform: translate3d(6px, 4px, 0); }
    30%, 50%, 70% { transform: translate3d(-8px, -4px, 0); }
    40%, 60% { transform: translate3d(8px, 4px, 0); }
}

.verity-scene {
    position: fixed;
    bottom: 20px;
    left: 25px;
    z-index: 600;
    pointer-events: none;
    display: none;
}

.verity-box {
    font-size: 60px;
    position: relative;
    z-index: 2;
    user-select: none;
    animation: box-drop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes box-drop {
    0% { transform: translateY(-120px) scale(0.4); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.verity-box.shaking {
    animation: box-shake 0.12s infinite alternate;
}

.verity-box.hit {
    animation: box-fly-away 0.8s ease-out forwards !important;
}

@keyframes box-fly-away {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-320px, -240px) rotate(540deg) scale(0.4);
    }
}
@keyframes box-shake {
    0% { transform: rotate(-8deg) scale(1.05); }
    100% { transform: rotate(8deg) scale(1.05); }
}
.verity-box.hit {
    animation: box-fly-away 0.8s ease-out forwards !important;
}

@keyframes box-fly-away {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-320px, -240px) rotate(540deg) scale(0.4);
    }
}
.verity-char {
    position: absolute;
    bottom: 10px;
    left: 65px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translate(-40px, 20px) scale(0.2);
}

.verity-char.pop-out {
    animation: verity-jump 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes verity-jump {
    0% {
        opacity: 0;
        transform: translate(-45px, 25px) scale(0.2);
    }
    60% {
        opacity: 1;
        transform: translate(0, -35px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.verity-char.hit {
    animation: verity-fly-away 0.8s ease-out forwards !important;
}

@keyframes verity-fly-away {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-250px, -350px) rotate(-720deg) scale(0.3);
    }
}

.verity-emoji {
    font-size: 52px;
    line-height: 1;
}

.verity-speech {
    background-color: #ffffff;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 14px;
    border: 2px solid #2c3e50;
    white-space: nowrap;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease-out;
}

.verity-speech.active {
    opacity: 1;
    transform: scale(1);
}

.verity-bus {
    position: fixed;
    bottom: 18px;
    left: 110vw;
    font-size: 75px;
    z-index: 4;
    display: none;
}

.verity-bus.attack {
    display: block;
    animation: verity-bus-drive 1.1s linear forwards;
}

@keyframes verity-bus-drive {
    0% { left: 105vw; }
    100% { left: -200px; }
}

.corner-bomb {
    position: fixed;
    bottom: 25px;
    right: 25px;
    font-size: 55px;
    cursor: pointer;
    z-index: 500;
    user-select: none;
    display: none;
    transform-origin: bottom right;
    animation: bomb-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               bomb-pulse 0.6s infinite alternate 0.4s;
    filter: drop-shadow(0 0 12px rgba(231, 76, 60, 0.9));
}

.corner-bomb:hover:not(.charging) {
    transform: scale(1.2) rotate(-10deg);
}

.corner-bomb.charging {
    animation: none !important;
}

@keyframes bomb-appear {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes bomb-pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px #e74c3c); }
    100% { transform: scale(1.18); filter: drop-shadow(0 0 25px #f1c40f); }
}

.supernova-core {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #fff7ae 25%, #ff9f1a 55%, #00d2ff 80%, transparent 100%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 9500;
}

.supernova-core.active {
    animation: supernova-expand 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes supernova-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(220);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(350);
        opacity: 0;
    }
}

.supernova-wave {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #70a1ff;
    box-shadow: 0 0 40px #1e90ff, inset 0 0 40px #ffffff;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 9600;
}

.supernova-wave.active {
    animation: wave-expand 1.6s ease-out forwards;
}

@keyframes wave-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(140);
        opacity: 0;
    }
}

.flash-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    opacity: 0;
    pointer-events: none;
    z-index: 9800;
}

.flash-overlay.active {
    animation: screen-blackout 1.2s ease-out forwards;
}

@keyframes screen-blackout {
    0% { opacity: 0; }
    10% { opacity: 1; }
    100% { opacity: 1; }
}

.nuke-message {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.5);
font-size: 40px;
font-weight: 900;
color: #e74c3c;
text-align: center;
text-shadow: 0 0 25px #000, 0 0 15px #f1c40f;
opacity: 0;
pointer-events: none;
z-index: 10000;
transition: all 0.4s ease-out;
}
.nuke-message.show {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
.supernova-text {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.5);
font-size: 40px;
font-weight: 900;
color: #f1c40f;
text-align: center;
text-shadow: 0 0 25px #000, 0 0 15px #ff9f1a;
opacity: 0;
pointer-events: none;
z-index: 10000;
transition: all 0.4s ease-out;
}
.supernova-text.show {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}

.falling-calendar {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 65px;
    cursor: pointer;
    z-index: 800;
    user-select: none;
    display: none;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.6));
    transition: transform 0.2s;
}

.falling-calendar:hover {
    transform: translateX(-50%) scale(1.15) rotate(-5deg);
}

.falling-calendar.dropped {
    display: block;
    animation: calendar-drop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes calendar-drop {
    0% {
        top: -100px;
        transform: translateX(-50%) rotate(-30deg) scale(0.5);
    }
    100% {
        top: 25px;
        transform: translateX(-50%) rotate(0deg) scale(1);
    }
}

.meme-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10500;
    backdrop-filter: blur(4px);
}

.meme-overlay.active {
    display: flex;
    animation: fade-in-meme 0.3s ease-out forwards;
}

@keyframes fade-in-meme {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.meme-box {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    background: #fff;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(231, 76, 60, 0.8);
}

.meme-box img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
}

.close-meme-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e74c3c;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, background 0.2s;
}

.close-meme-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.corner-potato {
    position: fixed;
    top: 55px;
    right: 25px;
    font-size: 55px;
    cursor: pointer;
    z-index: 1050;
    user-select: none;
    display: none;
    animation: potato-appear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               potato-wobble 1.2s infinite ease-in-out 0.5s;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));
}

.corner-potato:hover:not(.active-potato) {
    transform: scale(1.2) rotate(10deg);
}

.corner-potato.active-potato {
    animation: potato-panic 0.12s infinite alternate !important;
    filter: drop-shadow(0 0 25px #e67e22) brightness(1.3);
}

@keyframes potato-appear {
    0% { transform: scale(0) rotate(180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes potato-wobble {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

@keyframes potato-panic {
    0% { transform: scale(1.25) rotate(-12deg); }
    100% { transform: scale(1.35) rotate(12deg); }
}


.game-container.potato-shrink {
    transition: transform 3s cubic-bezier(0.55, 0.055, 0.675, 0.19) !important;
    transform: scale(0.45) rotate(-5deg) !important;
}

.ach-open-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #34495e;
    color: #f1c40f;
    border: 2px solid #f1c40f;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.ach-open-btn:hover {
    background: #2c3e50;
    transform: scale(1.06);
}

.ach-open-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}


.ach-toast {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11000;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    border: 2px solid #f1c40f;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    transition: top 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    min-width: 280px;
}

.ach-toast.show {
    top: 20px;
}

.ach-toast img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.ach-toast-label {
    font-size: 11px;
    font-weight: 900;
    color: #f1c40f;
    letter-spacing: 0.8px;
}

.ach-toast-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-top: 2px;
}

.ach-toast-desc {
    font-size: 12px;
    color: #bdc3c7;
}


.ach-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10800;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.ach-modal.active {
    display: flex;
}

.ach-modal-box {
    background: #34495e;
    border: 2px solid #f1c40f;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

.ach-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #4a627a;
    padding-bottom: 10px;
}

.ach-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #f1c40f;
}

.ach-close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
}

.ach-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.ach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2c3e50;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #465c71;
    text-align: left;
}

.ach-item.locked {
    opacity: 0.45;
    filter: grayscale(100%);
}

.ach-item img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.ach-item-title {
    font-weight: bold;
    font-size: 15px;
    color: #f1c40f;
}

.ach-item.locked .ach-item-title {
    color: #ecf0f1;
}

.ach-item-desc {
    font-size: 13px;
    color: #bdc3c7;
    margin-top: 2px;
}

.disclaimer {
    font-size: 10px;
    opacity: 30%;
      position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
}
.disclaimer1 {
    font-size: 10px;
    opacity: 30%;
      position: fixed;
        top: 6px;
        right: 20px;
        z-index: 1000;
}.disclaimer2 {
    font-size: 10px;
    opacity: 30%;
      position: fixed;
        top: -8px;
        right: 20px;
        z-index: 1000;
}
.ach-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ach-reset-btn {
    background: #c0392b;
    color: #ffffff;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ach-reset-btn:hover {
    background: #922b21;
    transform: scale(1.05);
}
