body.equationelevator-page #game-screen {
    background: linear-gradient(180deg,#0f4c5c,#1c6b78 28%,#f5efe0 28%);
    color: #2b2b2b;
    font-family: "Josefin Sans", Outfit, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

body.equationelevator-page .vr-shell {
    max-width: min(960px, 100%);
    box-sizing: border-box;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
}
body.equationelevator-page #game-screen .vr-num {
    font-family: "Segoe UI", Outfit, system-ui, sans-serif !important;
}

body.equationelevator-page .ee-open {
    margin-top: 22px;
}

body.equationelevator-page .ee-open h2,
body.equationelevator-page .vr-shell > h2 {
    margin: 0 0 8px;
}

body.equationelevator-page .ee-open p {
    margin: 0 0 12px;
}

body.equationelevator-page .ee-open-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

body.equationelevator-page .ee-poster {
    background: #e7d3b0;
    border-radius: 16px;
    overflow: hidden;
}

body.equationelevator-page .ee-panel-note {
    margin: 0 0 12px;
}

body.equationelevator-page .ee-lobby-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(12px, 2vw, 20px);
    align-items: center;
}

body.equationelevator-page .ee-lobby-row > * {
    min-width: 0;
}

body.equationelevator-page .ee-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(48px, 68px));
    gap: clamp(8px, 1.5vw, 12px) clamp(10px, 2vw, 16px);
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 18px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 20%),
        linear-gradient(180deg, #3a342c, #1c1915);
    border: 3px solid #a68445;
    border-radius: 22px;
    box-shadow: inset 0 0 0 2px #2a241c, 0 10px 22px rgba(0, 0, 0, 0.28);
}

body.equationelevator-page .ee-floor-btn,
body.equationelevator-page .ee-blank {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
}

body.equationelevator-page .ee-floor-btn .vr-num {
    font-size: clamp(0.95rem, 3.4vw, 1.25rem);
}

body.equationelevator-page .ee-floor-btn {
    border-radius: 50%;
    border: 3px solid #6d624f;
    background: radial-gradient(circle at 35% 30%, #4a4338, #241f1a 72%);
    color: #8d8374;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body.equationelevator-page .ee-floor-btn.is-open {
    border-color: #e6c36a;
    background: radial-gradient(circle at 35% 30%, #fff1c2, #e0b044 42%, #a8741c 78%);
    color: #3b2508;
    box-shadow: 0 0 10px rgba(255, 200, 80, 0.45), inset 0 -3px 4px rgba(90, 50, 0, 0.35);
}

body.equationelevator-page .ee-floor-btn.is-here {
    box-shadow: 0 0 0 3px #0f4c5c, 0 0 14px rgba(255, 210, 90, 0.8);
}

body.equationelevator-page .ee-floor-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

body.equationelevator-page .ee-play {
    width: min(100%, 560px);
    margin-inline: auto;
}

body.equationelevator-page .ee-hoist {
    display: grid;
    width: 100%;
    grid-template-columns: clamp(24px, 8%, 56px) minmax(0, 1fr) clamp(24px, 8%, 56px);
    justify-content: center;
    align-items: stretch;
    margin: 8px auto 12px;
}

body.equationelevator-page .ee-hoist > * {
    min-width: 0;
    min-height: 0;
    max-width: 100%;
}

body.equationelevator-page .ee-wall {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    pointer-events: none;
}

body.equationelevator-page .ee-wall-l { object-position: right center; }
body.equationelevator-page .ee-wall-r { object-position: left center; }

body.equationelevator-page .ee-car-window {
    overflow: hidden;
    min-width: 0;
}

body.equationelevator-page .ee-car-move {
    transform: translateY(0);
    transition: transform 0.85s ease-in;
}

body.equationelevator-page .ee-car-move.is-rising { transform: translateY(-105%); }
body.equationelevator-page .ee-car-move.is-below {
    transform: translateY(105%);
    transition: none;
}

body.equationelevator-page .ee-car-window .ee-stage {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
}

body.equationelevator-page .ee-poster img,
body.equationelevator-page .ee-room,
body.equationelevator-page .ee-stand,
body.equationelevator-page .ee-beam,
body.equationelevator-page .ee-pan,
body.equationelevator-page .ee-token img,
body.equationelevator-page .ee-crate img {
    display: block;
    width: 100%;
    height: auto;
}

body.equationelevator-page .ee-stage {
    position: relative;
    width: min(100%, 680px);
    margin: 8px auto 12px;
    background: #f5efe0;
    border-radius: 18px;
}

body.equationelevator-page .ee-rig {
    position: absolute;
    inset: 0;
}

body.equationelevator-page .ee-stand,
body.equationelevator-page .ee-arm,
body.equationelevator-page .ee-hanger,
body.equationelevator-page .ee-room,
body.equationelevator-page .ee-beam,
body.equationelevator-page .ee-pan,
body.equationelevator-page .ee-stand {
    pointer-events: none;
}

body.equationelevator-page .ee-stand {
    position: absolute;
    left: 39.75%;
    top: 39.85%;
    width: 20.34%;
}

body.equationelevator-page .ee-arm {
    position: absolute;
    left: 19.596%;
    top: 36.43%;
    width: 65.22%;
    transform-origin: 46.414% 38.24%;
    transform: rotate(var(--tilt));
    transition: transform 0.35s ease;
}

body.equationelevator-page .ee-hanger {
    position: absolute;
    top: 93.2%;
    width: 26.67%;
    transform-origin: 50% 1%;
    transform: rotate(calc(var(--tilt) * -1));
    transition: transform 0.35s ease;
}

body.equationelevator-page .ee-hanger-l { left: -11.45%; }
body.equationelevator-page .ee-hanger-r { left: 84.64%; }

body.equationelevator-page .ee-load {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 2px;
}

body.equationelevator-page .ee-equation,
body.equationelevator-page .ee-floor,
body.equationelevator-page .ee-play > p,
body.equationelevator-page .ee-panel-note,
body.equationelevator-page .ee-open p {
    overflow-wrap: anywhere;
}

body.equationelevator-page .ee-equation,
body.equationelevator-page .ee-floor {
    margin: 0 0 4px;
    text-align: center;
    font-weight: 700;
}

body.equationelevator-page .ee-token,
body.equationelevator-page .ee-crate {
    position: relative;
    border: 0;
    padding: 0;
    background: none;
    color: #3a2a10;
}

body.equationelevator-page .ee-token { cursor: pointer; }

body.equationelevator-page .ee-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 12px;
}

body.equationelevator-page .ee-tray .ee-token { width: clamp(64px, 18vw, 88px); }

body.equationelevator-page .vr-actions .vr-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
body.equationelevator-page .ee-load .ee-token { width: 46%; cursor: pointer; }
body.equationelevator-page .ee-load .ee-crate { width: 78%; }

body.equationelevator-page .ee-token span,
body.equationelevator-page .ee-crate span {
    position: absolute;
    display: grid;
    place-items: center;
    font-weight: 700;
}

body.equationelevator-page .ee-token span {
    inset: 22%;
    color: #3a2a10;
}

body.equationelevator-page .ee-crate span {
    left: 16%;
    right: 16%;
    top: 30%;
    bottom: 30%;
    border-radius: 8px;
    background: rgba(74, 46, 18, 0.92);
    color: #f6e7c1;
}

body.equationelevator-page .ee-token.is-on {
    outline: 3px solid #0f4c5c;
    outline-offset: 2px;
    transform: translateY(-3px);
}

@media (max-width: 640px) {
    body.equationelevator-page .ee-lobby-row { grid-template-columns: 1fr; }
}

@media (max-height: 520px) {
    body.equationelevator-page .ee-play { width: min(100%, 420px); }
    body.equationelevator-page .ee-tray .ee-token { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    body.equationelevator-page .ee-arm,
    body.equationelevator-page .ee-hanger,
    body.equationelevator-page .ee-car-move { transition: none; }
}
