* {
    box-sizing: border-box;
    font-family: "SF Pro Display", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
}

html, body {
    background-color: #050505;
    overflow: hidden;
}

html, body, canvas {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

div {
    -webkit-user-select: none; /* webkit (safari, chrome) browsers */
    -moz-user-select: none; /* mozilla browsers */
    -khtml-user-select: none; /* webkit (konqueror) browsers */
    -ms-user-select: none; /* IE10+ */
}

#split {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
    padding: 5px;
    border: none;
}

#feed {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 100px;
    padding: 5px;
    border: none;
}

#status {
    position: absolute;
    padding: 12px 14px;
    background: rgba(11, 13, 12, 0.72);
    color: #FFF;
    font-size: 16.1px;
    top: 10px;
    right: 10px;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

#status .title {
    font-size: 21px;
    letter-spacing: -0.04em;
}

#status .me {
    color: #FF8888;
    font-size: 16.1px;
}

.chatbox {
    position: absolute;
    width: 300px;
    height: 320px;
    background: rgba(11, 13, 12, 0.76);
    bottom: 5px;
    left: 5px;
    border-radius: 20px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.chatbox .chat-list {
    padding: 5px;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    height: 285px;
    overflow: hidden;
}

.chatbox .chat-list li {
    padding: 2px;
    margin: 3px;
}

.chatbox .chat-list li.me b {
    color: #ea6153;
}

.chatbox .chat-list li.friend b {
    color: #2ecc71;
}

.chatbox .chat-list li.system {
    color: #9b59b6;
    font-style: italic;
}

.chatbox .chat-list li.system:before {
    content: "» ";
}

.chatbox .chat-input {
    pointer-events: all;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    outline: none;
    color: #F5F7F6;
}

#startMenu {
    position: relative;
    width: min(100%, 24rem);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

#startMenu .start-menu-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(228, 236, 231, 0.76);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

#startMenu h1 {
    margin: 0;
    font-size: clamp(42px, 10vw, 64px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    color: #F6F8F7;
}

#startMenu p {
    margin: 0;
    max-width: 22rem;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(228, 236, 231, 0.72);
}

#startButton {
    position: relative;
    width: 100%;
    max-width: 20rem;
    min-height: 64px;
    padding: 0 28px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #07110d;
    text-align: center;
    background: linear-gradient(135deg, #8df3b0 0%, #4dcc7e 100%);
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    box-shadow: 0 18px 50px -22px rgba(87, 212, 129, 0.72);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

#startButton:active, #startButton:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 22px 54px -22px rgba(87, 212, 129, 0.8);
    outline: none;
}

#startButton:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 12px 32px -20px rgba(87, 212, 129, 0.72);
}

#startButton:disabled {
    cursor: not-allowed;
    color: rgba(7, 17, 13, 0.48);
    background: linear-gradient(135deg, #7c877f 0%, #5c675f 100%);
    box-shadow: none;
    transform: none;
    filter: none;
}

.player-identity {
    width: 100%;
    max-width: 20rem;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-identity__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(141, 243, 176, 0.7);
}

.player-identity__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.player-identity__label {
    color: rgba(228, 236, 231, 0.55);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#playerNameLabel {
    color: #F6F8F7;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#startMenu .input-error {
    color: #ff8c8c;
    opacity: 0;
    min-height: 18px;
    font-size: 12px;
}

#startMenuWrapper {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(87, 212, 129, 0.16), transparent 34%),
        radial-gradient(circle at bottom, rgba(255, 255, 255, 0.06), transparent 38%),
        #050505;
    transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

#startMenuWrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.45;
    pointer-events: none;
}

#gameAreaWrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.death-overlay {
    position: fixed;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(87, 212, 129, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.92) 100%);
    backdrop-filter: blur(16px);
    transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.death-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.death-overlay__content {
    width: min(100%, 28rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.death-overlay__content h2 {
    margin: 0;
    font-size: clamp(44px, 12vw, 72px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    color: #f6f8f7;
}

.death-overlay__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.death-overlay__score-label {
    color: rgba(228, 236, 231, 0.58);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#deathScoreValue {
    color: #8df3b0;
    font-size: clamp(48px, 14vw, 88px);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.9;
    text-shadow: 0 18px 44px rgba(87, 212, 129, 0.18);
}

.death-overlay__share {
    position: relative;
    width: 100%;
    max-width: 20rem;
    min-height: 60px;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f6f8f7;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.death-overlay__share:hover,
.death-overlay__share:active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(141, 243, 176, 0.34);
    outline: none;
}

.death-overlay__share:active {
    transform: translateY(1px) scale(0.985);
}

.construction-overlay {
    position: fixed;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(87, 212, 129, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.96) 100%);
    backdrop-filter: blur(16px);
    transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.construction-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.construction-overlay__content {
    width: min(100%, 34rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.construction-overlay__kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(228, 236, 231, 0.76);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.construction-overlay__content h2 {
    margin: 0;
    max-width: 18ch;
    color: #f6f8f7;
    font-size: clamp(40px, 11vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

@media only screen  and (min-width : 1224px) {
#mobile {
display: none;
	}
}

@media only screen  and (max-width : 1224px) {
#chatbox {
display: none;
        }
}

@media only screen and (max-width: 640px) {
    #status {
        top: 12px;
        right: 12px;
        padding: 10px 12px;
    }

    #status .title {
        font-size: 18px;
    }

    #startMenu {
        padding: 20px 0;
    }

    #startButton {
        min-height: 58px;
        font-size: 18px;
    }

    .death-overlay__share {
        min-height: 56px;
        font-size: 16px;
    }

    .player-identity {
        padding: 12px 14px;
    }
}

input [type="image"]:focus{
 border:none;
 outline: 1px solid transparent;
 border-style: none;
}

*:focus {
 outline: 1px solid transparent;
 border-style: none;
}
