* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: #082f3d;
    background: #0a8fb4;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.controllerShell {
    width: 100%;
    max-width: 420px;
}

.controllerCard {
    padding: 20px 18px 18px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: #e7fbfb;
}

.birdHeader {
    display: flex;
    align-items: center;
}

.birdBadge {
    width: 100px;
    height: 86px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(5, 89, 118, 0.28);
    border-radius: 8px;
    background: #b9f5f4;
}

.birdImage {
    display: block;
    width: 86px;
    height: 58px;
    object-fit: contain;
}

.birdImageIdle {
    opacity: 0.72;
}

.birdName {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-transform: uppercase;
}

.birdStatus {
    margin-top: 5px;
    color: #24616f;
    font-size: 15px;
    line-height: 1.3;
}

.statsGrid {
    display: flex;
    margin-top: 20px;
}

.scorePanel {
    width: 50%;
    padding: 16px 10px;
    border-radius: 8px;
    background: #b7f2e5;
    text-align: center;
}

.winsPanel {
    margin-left: 12px;
    background: #c9edff;
}

.scoreLabel {
    color: #1b6571;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.scoreValue {
    margin-top: 6px;
    color: #063b4e;
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
}

.flapButton {
    width: 100%;
    margin-top: 22px;
    padding: 24px 20px;
    border: none;
    border-radius: 8px;
    background: #ff6f7d;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    touch-action: manipulation;
}

.flapButton:active {
    transform: translateY(2px);
}

.flapButton.disabled {
    opacity: 0.45;
}

.statusText {
    min-height: 44px;
    margin-top: 18px;
    color: #255b66;
    font-size: 15px;
    line-height: 1.4;
}

.commsInfoDiv {
    margin-top: 12px;
    color: #457b84;
    font-size: 12px;
    text-align: center;
}

.backToAppsButton {
    display: block;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #07506c;
    background: #c4eef3;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
}

.backToAppsButton:active {
    transform: translateY(1px);
}

@media (max-width: 360px) {
    body {
        padding: 12px;
    }

    .controllerCard {
        padding: 16px 14px;
    }

    .birdBadge {
        width: 84px;
        height: 76px;
        margin-right: 10px;
    }

    .birdImage {
        width: 74px;
        height: 50px;
    }

    .birdName {
        font-size: 22px;
    }

    .flapButton {
        padding: 20px 16px;
        font-size: 30px;
    }
}
