html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.32), transparent 40%),
        linear-gradient(180deg, #88dfff 0%, #73d2f6 55%, #f2d973 55%, #d8b050 100%);
    color: #432808;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
    box-sizing: border-box;
}

.controllerShell {
    width: min(100%, 420px);
}

.controllerCard {
    padding: 22px 20px 18px;
    border-radius: 28px;
    background: rgba(255, 249, 232, 0.9);
    box-shadow: 0 20px 40px rgba(72, 45, 8, 0.18);
    backdrop-filter: blur(10px);
}

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

.birdBadge {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffde59 0%, #ffd23f 100%);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
    border: 3px solid rgba(104, 63, 7, 0.14);
}

.birdIcon {
    position: relative;
    width: 56px;
    height: 42px;
    border-radius: 20px;
    background: currentColor;
    border: 4px solid rgba(104, 63, 7, 0.25);
}

.birdWing {
    position: absolute;
    left: 8px;
    top: 18px;
    width: 22px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    transform: rotate(-22deg);
}

.birdEye {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
}

.birdEye::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #161616;
}

.birdBeak {
    position: absolute;
    right: -13px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 16px solid #ff9140;
}

.birdName {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.birdStatus {
    margin-top: 4px;
    font-size: 15px;
    color: #7f5a25;
}

.statsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.scorePanel {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 239, 179, 0.94), rgba(250, 227, 135, 0.94));
    text-align: center;
}

.winsPanel {
    background: linear-gradient(180deg, rgba(255, 232, 184, 0.94), rgba(247, 214, 113, 0.94));
}

.scoreLabel {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7e5a10;
}

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

.flapButton {
    width: 100%;
    margin-top: 22px;
    padding: 22px 20px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffb443 0%, #ff8f2d 100%);
    color: #fff7e4;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 14px 24px rgba(186, 88, 18, 0.28);
    touch-action: manipulation;
}

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

.flapButton.disabled {
    opacity: 0.45;
}

.statusText {
    margin-top: 18px;
    min-height: 42px;
    color: #6f5228;
    font-size: 15px;
    line-height: 1.4;
}

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