.ew-sm-shell{
    width:100%;
    margin-top:28px;
}

.ew-sm-games-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:18px;
}

.ew-sm-eyebrow{
    color:#a47c46;
    font-size:11px;
    font-weight:900;
    letter-spacing:.22em;
}

.ew-sm-games-head h2{
    margin:8px 0 14px;
    color:#17263d;
    font-size:34px;
    line-height:1.08;
    font-weight:950;
}

.ew-sm-badges{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.ew-sm-badges span{
    border:1px solid #ccdaeb;
    border-radius:999px;
    padding:8px 16px;
    background:#f1f6ff;
    color:#213b61;
    font-size:11px;
    font-weight:900;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.ew-sm-description{
    max-width:780px;
    margin:15px 0 0;
    padding:16px 20px;
    border:1px solid #d9e4ef;
    border-radius:20px;
    color:#687991;
    font-size:15px;
    line-height:1.7;
}

.ew-sm-description strong{
    color:#566a86;
}

.ew-sm-version{
    flex:0 0 auto;
    margin-top:10px;
    border-radius:999px;
    padding:10px 16px;
    background:#fff;
    border:1px solid #d8e1ec;
    color:#17263d;
    font-size:10px;
    font-weight:950;
    letter-spacing:.18em;
}

.ew-sm-frame{
    position:relative;
    overflow:hidden;
    border-radius:28px;
    border:1px solid #18385b;
    background:#07172a;
    box-shadow:0 22px 60px rgba(23,38,61,.18);
}

.ew-sm-hud{
    display:grid;
    grid-template-columns:minmax(0,1fr) 118px 118px 118px;
    min-height:92px;
    background:#0d223b;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.ew-sm-hud-main,
.ew-sm-hud-small{
    box-sizing:border-box;
    padding:15px 18px;
    border-right:1px solid rgba(255,255,255,.06);
}

.ew-sm-hud-main > span,
.ew-sm-hud-small > span{
    display:block;
    color:#82a6c6;
    font-size:10px;
    font-weight:950;
    letter-spacing:.22em;
}

.ew-sm-hud-main strong{
    display:block;
    margin-top:8px;
    color:#fff;
    font-size:19px;
    line-height:1.25;
    font-weight:950;
}

.ew-sm-mission-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.ew-sm-actions{
    display:flex;
    gap:8px;
    flex:0 0 auto;
}

.ew-sm-actions button{
    border-radius:12px;
    padding:10px 14px;
    border:1px solid rgba(255,255,255,.16);
    background:#163451;
    color:#fff;
    font-size:11px;
    font-weight:950;
    cursor:pointer;
}

#ewSmExitButton{
    background:#4a2738;
    border-color:#98536d;
}

.ew-sm-hud-small{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.ew-sm-hud-small strong{
    margin-top:6px;
    color:#fff;
    font-size:30px;
    line-height:1;
    font-weight:950;
}

.ew-sm-canvas-wrap{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    min-height:0;
    overflow:hidden;
    background:#08182b;
}

#ewSchoolCanvas{
    display:block;
    width:100%;
    height:100%;
    touch-action:none;
}

.ew-sm-fullscreen-button{
    position:absolute;
    right:14px;
    bottom:14px;
    z-index:30;
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    border:1px solid #39cbe6;
    border-radius:14px;
    padding:0 14px;
    background:rgba(7,23,42,.88);
    color:#fff;
    cursor:pointer;
    font-size:11px;
    font-weight:950;
}

.ew-sm-fullscreen-button svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}

.ew-sm-credit{
    position:absolute;
    left:16px;
    bottom:13px;
    z-index:15;
    color:rgba(255,255,255,.65);
    font-size:10px;
    letter-spacing:.06em;
}

.ew-sm-start,
.ew-sm-dialog,
.ew-sm-final{
    position:absolute;
    inset:0;
    z-index:20;
}

.ew-sm-start{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:30px;
    text-align:center;
    background:
        radial-gradient(circle at 25% 25%, rgba(255,75,160,.20), transparent 28%),
        radial-gradient(circle at 75% 30%, rgba(67,220,255,.19), transparent 30%),
        linear-gradient(145deg, rgba(8,22,44,.97), rgba(24,32,64,.97));
    color:#fff;
}

.ew-sm-start-mark{
    display:flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:64px;
    border-radius:20px;
    background:linear-gradient(135deg,#ffbd44,#ff6ca8);
    color:#17263d;
    font-size:20px;
    font-weight:950;
    box-shadow:0 0 40px rgba(255,122,176,.35);
}

.ew-sm-start-kicker,
.ew-sm-final-kicker{
    margin-top:20px;
    color:#5ce7ff;
    font-size:10px;
    font-weight:950;
    letter-spacing:.24em;
}

.ew-sm-start h3{
    margin:12px 0 10px;
    font-size:58px;
    line-height:.88;
    font-weight:950;
    letter-spacing:-.03em;
}

.ew-sm-start p{
    margin:0;
    color:#cad7e7;
    font-size:14px;
    line-height:1.65;
}

#ewSmStartButton,
#ewSmSolveButton,
#ewSmDialogContinue{
    margin-top:22px;
    border:0;
    border-radius:16px;
    padding:15px 26px;
    background:linear-gradient(135deg,#ffbd44,#ff6ca8);
    color:#17263d;
    font-size:13px;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 12px 28px rgba(255,111,167,.24);
}

#ewSmStartButton span{
    display:block;
}

#ewSmStartButton small{
    display:block;
    margin-top:4px;
    font-size:9px;
    letter-spacing:.14em;
}

.ew-sm-controls-hint{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin-top:18px;
}

.ew-sm-controls-hint span{
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;
    padding:7px 11px;
    color:#9db2ca;
    font-size:9px;
    font-weight:900;
    letter-spacing:.1em;
}

.ew-sm-dialog{
    inset:auto 50% 28px auto;
    transform:translateX(50%);
    width:min(720px, calc(100% - 48px));
    padding:20px 22px;
    border:1px solid #55d9f1;
    border-radius:22px;
    background:rgba(7,23,42,.96);
    box-shadow:0 18px 50px rgba(0,0,0,.35);
    color:#fff;
}

.ew-sm-dialog-role{
    color:#ffcf5c;
    font-size:11px;
    font-weight:950;
    letter-spacing:.18em;
}

.ew-sm-dialog-text{
    margin-top:9px;
    color:#fff;
    font-size:17px;
    line-height:1.5;
    font-weight:800;
}

#ewSmDialogContinue{
    margin-top:14px;
    padding:10px 18px;
}

.ew-sm-final{
    overflow:auto;
    padding:34px;
    background:rgba(7,23,42,.98);
    color:#fff;
}

.ew-sm-final h3{
    margin:10px 0;
    font-size:34px;
    font-weight:950;
}

.ew-sm-final p{
    color:#b9c9da;
}

.ew-sm-final-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin-top:22px;
}

.ew-sm-final-grid label{
    display:flex;
    flex-direction:column;
    gap:8px;
    color:#d9e6f2;
    font-size:12px;
    font-weight:900;
}

.ew-sm-final-grid select{
    width:100%;
    border:1px solid #294c6c;
    border-radius:12px;
    padding:12px;
    background:#102a45;
    color:#fff;
    font-weight:800;
}

#ewSmFinalResult{
    margin-top:18px;
    color:#fff;
    font-size:17px;
    line-height:1.55;
    font-weight:800;
}

.ew-sm-footer{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:22px;
    padding:13px 18px;
    background:#07172a;
    color:#68849e;
    font-size:9px;
    font-weight:950;
    letter-spacing:.15em;
}

@media (max-width:899px),(pointer:coarse){

    .ew-sm-games-head{
        display:block;
    }

    .ew-sm-version{
        display:none;
    }

    .ew-sm-games-head h2{
        font-size:28px;
    }

    .ew-sm-hud{
        grid-template-columns:minmax(0,1fr) 72px 62px 74px;
        min-height:54px;
    }

    .ew-sm-hud-main,
    .ew-sm-hud-small{
        height:54px;
        min-height:54px;
        padding:5px 8px;
    }

    .ew-sm-hud-main > span,
    .ew-sm-hud-small > span{
        font-size:7px;
    }

    .ew-sm-hud-main strong{
        margin-top:2px;
        font-size:14px;
        line-height:1.1;
    }

    .ew-sm-hud-small strong{
        margin-top:3px;
        font-size:22px;
    }

    .ew-sm-actions button{
        padding:6px 8px;
        font-size:8px;
    }

    .ew-sm-frame.ew-sm-mobile-fullscreen,
    .ew-sm-frame:fullscreen,
    .ew-sm-frame:-webkit-full-screen{
        position:fixed!important;
        inset:0!important;
        z-index:2147483000!important;
        display:flex!important;
        flex-direction:column!important;
        width:100vw!important;
        height:100dvh!important;
        max-width:none!important;
        max-height:none!important;
        border:0!important;
        border-radius:0!important;
        margin:0!important;
    }

    body.ew-sm-ios-safari .ew-sm-frame.ew-sm-mobile-fullscreen{
        height:100svh!important;
        max-height:100svh!important;
    }

    .ew-sm-frame.ew-sm-mobile-fullscreen .ew-sm-hud,
    .ew-sm-frame:fullscreen .ew-sm-hud,
    .ew-sm-frame:-webkit-full-screen .ew-sm-hud{
        flex:0 0 54px!important;
    }

    .ew-sm-frame.ew-sm-mobile-fullscreen .ew-sm-canvas-wrap,
    .ew-sm-frame:fullscreen .ew-sm-canvas-wrap,
    .ew-sm-frame:-webkit-full-screen .ew-sm-canvas-wrap{
        flex:1 1 0!important;
        width:100%!important;
        height:auto!important;
        min-height:0!important;
        aspect-ratio:auto!important;
    }

    .ew-sm-frame.ew-sm-mobile-fullscreen #ewSchoolCanvas,
    .ew-sm-frame:fullscreen #ewSchoolCanvas,
    .ew-sm-frame:-webkit-full-screen #ewSchoolCanvas{
        width:100%!important;
        height:100%!important;
    }

    .ew-sm-frame.ew-sm-mobile-fullscreen .ew-sm-footer,
    .ew-sm-frame:fullscreen .ew-sm-footer,
    .ew-sm-frame:-webkit-full-screen .ew-sm-footer{
        display:none!important;
    }

    .ew-sm-frame.ew-sm-mobile-fullscreen .ew-sm-fullscreen-button,
    .ew-sm-frame:fullscreen .ew-sm-fullscreen-button,
    .ew-sm-frame:-webkit-full-screen .ew-sm-fullscreen-button{
        position:fixed!important;
        right:0!important;
        bottom:50%!important;
        transform:translateY(50%)!important;
        width:40px!important;
        height:56px!important;
        padding:0!important;
        justify-content:center!important;
        border-radius:12px 0 0 12px!important;
    }

    .ew-sm-frame.ew-sm-mobile-fullscreen .ew-sm-fullscreen-button span,
    .ew-sm-frame:fullscreen .ew-sm-fullscreen-button span,
    .ew-sm-frame:-webkit-full-screen .ew-sm-fullscreen-button span{
        display:none!important;
    }

    .ew-sm-start h3{
        font-size:42px;
    }

    .ew-sm-dialog{
        bottom:12px;
        width:calc(100% - 72px);
        padding:13px 15px;
    }

    .ew-sm-dialog-text{
        font-size:13px;
    }

    .ew-sm-final{
        padding:18px 54px 18px 18px;
    }

    .ew-sm-final-grid{
        grid-template-columns:1fr;
        gap:8px;
    }
}

/* SCHOOL MYSTERY AUDIO BUTTON */
.ew-sm-audio-toggle{
    width:42px;
    min-width:42px;
    height:38px;
    padding:0 !important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.ew-sm-audio-toggle svg{
    width:19px;
    height:19px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.ew-sm-audio-toggle .ew-sm-audio-off{display:none;}
.ew-sm-audio-toggle.is-muted .ew-sm-audio-on{display:none;}
.ew-sm-audio-toggle.is-muted .ew-sm-audio-off{display:block;}

/* SCHOOL MYSTERY HUD V21 */

.ew-sm-hud-v21{
    width:100%;
    min-height:150px;
    display:grid;
    grid-template-columns:minmax(500px,1fr) 180px 180px 180px;
    background:#071a2d;
    border-top:1px solid #23425d;
    border-bottom:1px solid #1b3952;
    color:#fff;
    overflow:hidden;
}

.ew-sm-hud-v21-main{
    min-width:0;
    padding:18px 24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.ew-sm-hud-v21-title span,
.ew-sm-v21-stat span{
    display:block;
    color:#7fa9c9;
    font-size:11px;
    font-weight:900;
    letter-spacing:.22em;
}

.ew-sm-hud-v21-title strong{
    display:block;
    margin-top:6px;
    color:#fff;
    font-size:20px;
    font-weight:900;
}

.ew-sm-hud-v21-actions{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:14px;
}

.ew-sm-v21-icon,
.ew-sm-v21-pause,
.ew-sm-v21-exit{
    height:52px;
    border-radius:15px;
    font-family:inherit;
    font-weight:950;
    cursor:pointer;
}

.ew-sm-v21-icon{
    width:52px;
    display:grid;
    place-items:center;
    background:#0a2943;
}

.ew-sm-v21-icon svg{
    width:25px;
    height:25px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.ew-sm-v21-speak{
    color:#48d7ff;
    border:2px solid #216e8b;
}

.ew-sm-v21-audio{
    color:#ffd84d;
    border:2px solid #7b6923;
}

.ew-sm-v21-pause,
.ew-sm-v21-exit{
    min-width:105px;
    padding:0 20px;
    color:#fff;
    font-size:15px;
    letter-spacing:.06em;
}

.ew-sm-v21-pause{
    background:#123f42;
    border:2px solid #36b89b;
}

.ew-sm-v21-exit{
    background:#381e2b;
    border:2px solid #a6485c;
}

.ew-sm-v21-stat{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-left:1px solid #193852;
    background:#081d31;
}

.ew-sm-v21-stat strong{
    margin-top:10px;
    color:#fff;
    font-size:38px;
    line-height:1;
    font-weight:950;
}

.ew-sm-v21-time{
    background:#08242e;
}

.ew-sm-v21-time span{
    color:#6ef0c6;
}

.ew-sm-v21-time strong{
    font-size:56px;
    text-shadow:
        0 0 7px rgba(74,255,207,.45),
        0 0 22px rgba(74,255,207,.22);
}

@media(max-width:1050px){
    .ew-sm-hud-v21{
        grid-template-columns:minmax(400px,1fr) 125px 125px 125px;
    }

    .ew-sm-v21-stat strong{
        font-size:30px;
    }

    .ew-sm-v21-time strong{
        font-size:40px;
    }
}

/* SCHOOL HUD METRO MATCH V22 */
.ew-sm-frame .ew-sm-hud-v21 {
    display: grid;
    grid-template-columns: minmax(0,1fr) 180px 145px 145px;
    min-height: 142px;
    width: 100%;
    align-items: stretch;
    background: #061a30;
    color: #fff;
    border-bottom: 1px solid #23415b;
    box-sizing: border-box;
    overflow: hidden;
}

.ew-sm-frame .ew-sm-hud-v21-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 16px 24px;
    background: #061a30;
    box-sizing: border-box;
}

.ew-sm-frame .ew-sm-hud-v21-title {
    display: none;
}

.ew-sm-frame .ew-sm-hud-v21-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
}

.ew-sm-frame .ew-sm-v21-icon,
.ew-sm-frame .ew-sm-v21-pause,
.ew-sm-frame .ew-sm-v21-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 58px;
    border-radius: 17px;
    font-family: inherit;
    font-weight: 950;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}

.ew-sm-frame .ew-sm-v21-icon {
    width: 58px;
    padding: 0;
}

.ew-sm-frame .ew-sm-v21-icon svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ew-sm-frame .ew-sm-v21-speak {
    background: #082a40;
    border: 1px solid #165b78;
    color: #40d8ff;
}

.ew-sm-frame .ew-sm-v21-audio {
    position: relative;
    background: #272a2c;
    border: 1px solid #6c5d25;
    color: #ffd23f;
}

.ew-sm-frame .ew-sm-v21-audio.is-muted::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background: #ff6464;
    transform: rotate(-45deg);
    border-radius: 4px;
}

.ew-sm-frame .ew-sm-v21-pause {
    min-width: 114px;
    padding: 0 20px;
    background: #123f42;
    border: 1px solid #168d79;
    color: #fff;
    font-size: 16px;
    letter-spacing: .06em;
}

.ew-sm-frame .ew-sm-v21-exit {
    min-width: 94px;
    padding: 0 20px;
    background: #321e30;
    border: 1px solid #a4435a;
    color: #fff;
    font-size: 16px;
    letter-spacing: .06em;
}

.ew-sm-frame .ew-sm-v21-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px;
    box-sizing: border-box;
    border-left: 1px solid #102d48;
    background: #081c32;
}

.ew-sm-frame .ew-sm-v21-stat span {
    display: block;
    color: #83a6c7;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .22em;
}

.ew-sm-frame .ew-sm-v21-stat strong {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.ew-sm-frame .ew-sm-v21-time {
    background: linear-gradient(145deg,#103d3d,#071b31);
}

.ew-sm-frame .ew-sm-v21-time span {
    color: #84f8c2;
}

.ew-sm-frame .ew-sm-v21-time strong {
    font-size: 64px;
    color: #fff;
    text-shadow: 0 0 18px rgba(101,255,178,.4);
}

@media(max-width:1050px) {
    .ew-sm-frame .ew-sm-hud-v21 {
        grid-template-columns: minmax(0,1fr) 115px 90px 90px;
        min-height: 100px;
    }

    .ew-sm-frame .ew-sm-hud-v21-main {
        padding: 10px;
    }

    .ew-sm-frame .ew-sm-hud-v21-actions {
        gap: 6px;
    }

    .ew-sm-frame .ew-sm-v21-icon {
        width: 40px;
        height: 42px;
    }

    .ew-sm-frame .ew-sm-v21-pause,
    .ew-sm-frame .ew-sm-v21-exit {
        min-width: 58px;
        height: 42px;
        padding: 0 7px;
        font-size: 11px;
    }

    .ew-sm-frame .ew-sm-v21-stat strong {
        font-size: 24px;
    }

    .ew-sm-frame .ew-sm-v21-time strong {
        font-size: 38px;
    }
}

/* SCHOOL HUD V23 - DIRECTIVES LEFT, ACTIONS RIGHT */

.ew-sm-frame .ew-sm-hud-v21-main {
    justify-content: space-between;
    gap: 20px;
}

.ew-sm-frame .ew-sm-hud-v21-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.ew-sm-frame .ew-sm-hud-v21-title span {
    display: block;
    color: #83a6c7;
}

.ew-sm-frame .ew-sm-hud-v21-title strong {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1.4;
}

.ew-sm-frame .ew-sm-hud-v21-actions {
    margin-left: auto;
    flex: 0 0 auto;
}


/* SCHOOL HUD V24 - COMPACT RIGHT SIDE */

.ew-sm-frame .ew-sm-hud-v21{
    grid-template-columns: minmax(0,1fr) 126px 82px 82px;
    min-height: 112px;
}

.ew-sm-frame .ew-sm-hud-v21-main{
    padding: 12px 20px;
    gap: 14px;
}

.ew-sm-frame .ew-sm-hud-v21-title{
    flex: 1 1 auto;
    min-width: 0;
    max-width: 52%;
}

.ew-sm-frame .ew-sm-hud-v21-title span{
    font-size: 10px;
    letter-spacing: .18em;
}

.ew-sm-frame .ew-sm-hud-v21-title strong{
    font-size: 15px;
    line-height: 1.25;
    margin-top: 4px;
}

.ew-sm-frame .ew-sm-hud-v21-actions{
    margin-left: auto;
    gap: 8px;
    flex: 0 0 auto;
}

.ew-sm-frame .ew-sm-v21-icon{
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.ew-sm-frame .ew-sm-v21-icon svg{
    width: 19px;
    height: 19px;
}

.ew-sm-frame .ew-sm-v21-pause{
    min-width: 88px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 12px;
}

.ew-sm-frame .ew-sm-v21-exit{
    min-width: 76px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 12px;
}

.ew-sm-frame .ew-sm-v21-stat{
    padding: 10px 6px;
}

.ew-sm-frame .ew-sm-v21-stat span{
    font-size: 10px;
    letter-spacing: .16em;
}

.ew-sm-frame .ew-sm-v21-time strong{
    font-size: 44px;
}

.ew-sm-frame .ew-sm-v21-stat strong{
    font-size: 22px;
    margin-top: 8px;
}

@media (max-width: 1050px){
    .ew-sm-frame .ew-sm-hud-v21{
        grid-template-columns: minmax(0,1fr) 98px 70px 70px;
        min-height: 92px;
    }

    .ew-sm-frame .ew-sm-hud-v21-main{
        padding: 8px 10px;
        gap: 8px;
    }

    .ew-sm-frame .ew-sm-hud-v21-title{
        max-width: 48%;
    }

    .ew-sm-frame .ew-sm-hud-v21-title strong{
        font-size: 12px;
    }

    .ew-sm-frame .ew-sm-v21-icon{
        width: 34px;
        height: 34px;
    }

    .ew-sm-frame .ew-sm-v21-icon svg{
        width: 16px;
        height: 16px;
    }

    .ew-sm-frame .ew-sm-v21-pause{
        min-width: 68px;
        height: 34px;
        padding: 0 10px;
        font-size: 10px;
    }

    .ew-sm-frame .ew-sm-v21-exit{
        min-width: 58px;
        height: 34px;
        padding: 0 10px;
        font-size: 10px;
    }

    .ew-sm-frame .ew-sm-v21-time strong{
        font-size: 32px;
    }

    .ew-sm-frame .ew-sm-v21-stat strong{
        font-size: 17px;
    }
}

/* SCHOOL HUD V25 - SWAP SPEAK AND AUDIO ICONS */
.ew-sm-frame .ew-sm-hud-v21-actions .ew-sm-v21-speak{
    order: 1;
}
.ew-sm-frame .ew-sm-hud-v21-actions .ew-sm-v21-audio{
    order: 2;
}

/* SCHOOL HUD V26 - CORRECT BUTTON ORDER */
.ew-sm-frame .ew-sm-hud-v21-actions .ew-sm-v21-speak {
    order: 1;
}
.ew-sm-frame .ew-sm-hud-v21-actions .ew-sm-v21-audio {
    order: 2;
}
.ew-sm-frame .ew-sm-hud-v21-actions .ew-sm-v21-pause {
    order: 3;
}
.ew-sm-frame .ew-sm-hud-v21-actions .ew-sm-v21-exit {
    order: 4;
}


/* SCHOOL HUD V27 - STABLE COMPACT */

.ew-sm-frame .ew-sm-hud-v21 {
    min-height: 100px;
}

.ew-sm-frame .ew-sm-hud-v21-main {
    padding-top: 10px;
    padding-bottom: 10px;
}

.ew-sm-frame .ew-sm-hud-v21-actions
.ew-sm-v21-speak {
    order: 0;
}

.ew-sm-frame .ew-sm-hud-v21-actions
.ew-sm-v21-audio {
    order: 0;
}

.ew-sm-frame .ew-sm-hud-v21-actions
.ew-sm-v21-pause {
    order: 0;
}

.ew-sm-frame .ew-sm-hud-v21-actions
.ew-sm-v21-exit {
    order: 0;
}

@media(max-width:1050px) {
    .ew-sm-frame .ew-sm-hud-v21 {
        min-height: 83px;
    }
}
/* SCHOOL V34 - COMPACT THREE BUTTONS */
.ew-sm-hud-v21-actions .ew-sm-v21-pause{
  width:60px!important;min-width:60px!important;
  height:42px!important;padding:0 3px!important;font-size:10px!important;
}
.ew-sm-hud-v21-actions .ew-sm-v21-exit{
  width:53px!important;min-width:53px!important;
  height:42px!important;padding:0 3px!important;font-size:10px!important;
}
.ew-sm-hud-v21-actions .ew-sm-v34-restart{
  order:0;flex:0 0 43px!important;
  width:43px!important;min-width:43px!important;height:42px!important;
  padding:0!important;border-radius:10px;border:1px solid #8fa9ca;
  background:#edf5ff;color:#173b66;font-size:27px;font-weight:900;
  cursor:pointer;line-height:1;
}
.ew-sm-hud-v21-actions .ew-sm-v34-restart:hover{
  background:#dbeafe;
}
.ew-sm-hud-v21-actions{
  column-gap:5px!important;gap:5px!important;
}


/* SCHOOL V38 - TWO SEPARATE MATCHING BUTTONS */

.ew-sm-frame .ew-sm-hud-v21-actions {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:5px!important;
}

.ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v21-speak {
    order:1!important;
}

.ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v21-audio {
    order:2!important;
}

.ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v37-stack {
    order:3!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:stretch!important;
    gap:5px!important;
    flex:0 0 72px!important;
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    height:49px!important;
    min-height:49px!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
}

.ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v37-stack > button {
    position:static!important;
    order:0!important;
    display:flex!important;
    flex:0 0 22px!important;
    align-items:center!important;
    justify-content:center!important;
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    padding:0 3px!important;
    margin:0!important;
    border:1px solid #6487af!important;
    border-radius:9px!important;
    background:#173b60!important;
    color:#ffffff!important;
    box-shadow:none!important;
    transform:none!important;
    font:900 10px/1 system-ui,sans-serif!important;
    box-sizing:border-box!important;
    cursor:pointer!important;
}

.ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v37-stack > .ew-sm-v34-restart {
    font-size:19px!important;
}

.ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v37-stack > button:hover {
    background:#285781!important;
}

.ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v37-stack > .ew-sm-v37-separator {
    display:none!important;
}

.ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v21-exit {
    order:4!important;
    flex:0 0 53px!important;
    width:53px!important;
    min-width:53px!important;
    height:42px!important;
}


/* SCHOOL MISSION VOCABULARY V41 - METRO SOURCE */
/* EW MISSION VOCABULARY V32 */

.ew-mission-vocabulary {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(85,237,255,.18);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at top right,
            rgba(85,237,255,.10),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(7,24,43,.98),
            rgba(12,37,59,.97)
        );
}

.ew-vocabulary-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.ew-vocabulary-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #f4c84a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}

.ew-vocabulary-heading h2 {
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(22px,2.4vw,30px);
    font-weight: 900;
}

.ew-vocabulary-heading h2 span {
    color: #55edff;
}

.ew-vocabulary-heading p {
    max-width: 850px;
    margin: 10px 0 0;
    color: #d9e8f2;
    font-size: 14px;
    line-height: 1.65;
}

.ew-vocabulary-count {
    padding: 8px 12px;
    border: 1px solid rgba(244,200,74,.35);
    border-radius: 999px;
    color: #f4c84a;
    background: rgba(244,200,74,.08);
    font-size: 11px;
    font-weight: 900;
}

.ew-vocabulary-grid {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 14px;
}

.ew-vocabulary-card {
    padding: 18px;
    border: 1px solid rgba(85,237,255,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(10px);
}

.ew-vocabulary-name {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.ew-vocabulary-translation {
    margin-top: 5px;
    color: #55edff;
    font-size: 13px;
    font-weight: 800;
}

.ew-vocabulary-clue,
.ew-vocabulary-example {
    margin-top: 14px;
    padding-top: 12px;
    border-top:
        1px solid rgba(255,255,255,.08);
}

.ew-vocabulary-clue strong,
.ew-vocabulary-example strong {
    display: block;
    margin-bottom: 6px;
    color: #f4c84a;
    font-size: 11px;
    font-weight: 900;
}

.ew-vocabulary-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.ew-vocabulary-clue p {
    color: #e9f3f8;
}

.ew-vocabulary-en {
    color: #fff;
}

.ew-vocabulary-tr {
    margin-top: 5px !important;
    color: #a7edf2;
    font-weight: 700;
}

@media (max-width:720px) {
    .ew-mission-vocabulary {
        padding: 18px;
    }

    .ew-vocabulary-heading {
        flex-direction: column;
    }

    .ew-vocabulary-grid {
        grid-template-columns: 1fr;
    }
}



/* SCHOOL VOCABULARY - TITLE AND SPACING */
.ew-sm-vocabulary {
    margin-top:24px;
}

.ew-sm-vocabulary .ew-vocabulary-heading h2 {
    color:#17263d;
    opacity:1;
    visibility:visible;
}

.ew-sm-vocabulary .ew-vocabulary-heading h2 span {
    color:#64748b;
    opacity:1;
    visibility:visible;
}

.ew-sm-vocabulary .ew-vocabulary-grid {
    min-width:0;
}

/* SCHOOL V43 - VISIBLE MISSION PROGRESS */
.ew-sm-frame .ew-sm-v43-mission-row {
    display:flex!important;
    align-items:baseline!important;
    gap:10px!important;
    min-width:0!important;
    width:100%;
}

.ew-sm-frame .ew-sm-v43-mission-row #ewSmStep {
    display:inline-block!important;
    position:static!important;
    flex:0 0 auto!important;
    color:#f3fbff!important;
    font-size:inherit!important;
    font-weight:950!important;
    line-height:1.25!important;
    letter-spacing:-.035em!important;
    white-space:nowrap!important;
    visibility:visible!important;
    opacity:1!important;
}

.ew-sm-frame .ew-sm-v43-mission-row #ewSmMission {
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
}

/* SCHOOL PORTRAIT V44
   Only narrow portrait viewports; landscape is untouched. */
@media screen and (max-width:899px) and (orientation:portrait) {

  .ew-sm-frame .ew-sm-hud-v21 {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:auto auto!important;
    gap:1px!important;
    height:auto!important;
    min-height:0!important;
  }

  .ew-sm-frame .ew-sm-hud-v21-main {
    grid-column:1 / -1!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    padding:10px 12px!important;
    box-sizing:border-box!important;
  }

  .ew-sm-frame .ew-sm-hud-v21-title {
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    text-align:left!important;
  }

  .ew-sm-frame .ew-sm-v43-mission-row {
    display:flex!important;
    gap:8px!important;
    flex-wrap:nowrap!important;
    align-items:flex-start!important;
    width:100%!important;
  }

  .ew-sm-frame .ew-sm-v43-mission-row #ewSmMission {
    display:block!important;
    min-width:0!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    line-height:1.3!important;
    font-size:12px!important;
  }

  .ew-sm-frame .ew-sm-hud-v21-actions {
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    justify-content:center!important;
    align-items:center!important;
    gap:7px!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }

  .ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v21-speak,
  .ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v21-audio {
    flex:0 0 36px!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    margin:0!important;
  }

  .ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v37-stack {
    flex:0 0 66px!important;
    width:66px!important;
    min-width:66px!important;
    max-width:66px!important;
    height:58px!important;
    min-height:58px!important;
    gap:8px!important;
  }

  .ew-sm-frame .ew-sm-hud-v21-actions > .ew-sm-v21-exit {
    flex:0 0 53px!important;
    width:53px!important;
    min-width:53px!important;
    height:42px!important;
    margin:0!important;
  }

  .ew-sm-frame .ew-sm-hud-v21 > .ew-sm-v21-stat {
    grid-column:auto!important;
    min-width:0!important;
    padding:7px 3px!important;
    text-align:center!important;
  }

  .ew-sm-frame .ew-sm-hud-v21 > .ew-sm-v21-stat span {
    font-size:9px!important;
  }

  .ew-sm-frame .ew-sm-hud-v21 > .ew-sm-v21-stat strong {
    margin-top:3px!important;
    font-size:19px!important;
    line-height:1.15!important;
  }

  .ew-sm-frame.ew-sm-mobile-fullscreen,
  .ew-sm-frame:fullscreen,
  .ew-sm-frame:-webkit-full-screen {
    display:flex!important;
    flex-direction:column!important;
    height:100dvh!important;
    max-height:100dvh!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  .ew-sm-frame.ew-sm-mobile-fullscreen .ew-sm-hud-v21,
  .ew-sm-frame:fullscreen .ew-sm-hud-v21,
  .ew-sm-frame:-webkit-full-screen .ew-sm-hud-v21 {
    flex:0 0 auto!important;
  }

  .ew-sm-frame.ew-sm-mobile-fullscreen .ew-sm-canvas-wrap,
  .ew-sm-frame:fullscreen .ew-sm-canvas-wrap,
  .ew-sm-frame:-webkit-full-screen .ew-sm-canvas-wrap {
    display:block!important;
    flex:1 1 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
  }

  .ew-sm-frame.ew-sm-mobile-fullscreen #ewSchoolCanvas,
  .ew-sm-frame:fullscreen #ewSchoolCanvas,
  .ew-sm-frame:-webkit-full-screen #ewSchoolCanvas {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-height:100%!important;
    object-fit:fill!important;
  }

  .ew-sm-frame.ew-sm-mobile-fullscreen .ew-sm-footer,
  .ew-sm-frame:fullscreen .ew-sm-footer,
  .ew-sm-frame:-webkit-full-screen .ew-sm-footer {
    display:none!important;
  }
}

/* EW GAME STORY INTRO V45 - OUTSIDE THE GAME FRAME */
.ew-game-story-v45 {
    position:relative;
    margin:18px 0 20px;
    padding:23px 26px;
    border:1px solid #cad8e8;
    border-radius:20px;
    background:linear-gradient(125deg,#102a47,#193e62);
    color:#fff;
    box-shadow:0 12px 32px rgba(14,39,69,.12);
    box-sizing:border-box;
}
.ew-game-story-v45 .ew-story-kicker {
    display:block;
    margin-bottom:8px;
    color:#f1c978;
    font-size:11px;
    font-weight:900;
    letter-spacing:.13em;
}
.ew-game-story-v45 h3 {
    margin:0 0 12px;
    color:#fff;
    font-size:clamp(23px,3vw,34px);
    line-height:1.15;
    font-weight:900;
}
.ew-game-story-v45 p {
    max-width:850px;
    margin:0;
    color:#e4edf7;
    font-size:15px;
    line-height:1.7;
}
.ew-game-story-v45 .ew-story-goal {
    display:inline-block;
    margin-top:16px;
    padding:8px 12px;
    border:1px solid rgba(241,201,120,.35);
    border-radius:10px;
    background:rgba(241,201,120,.10);
    color:#f8dfaa;
    font-size:12px;
    font-weight:800;
}
@media screen and (max-width:600px) {
    .ew-game-story-v45 {
        padding:17px;
        border-radius:15px;
        margin:14px 0;
    }
    .ew-game-story-v45 p {
        font-size:13px;
        line-height:1.55;
    }
    .ew-game-story-v45 .ew-story-goal {
        font-size:11px;
        line-height:1.5;
    }
}
/* EW GAME COVER V46 - ONLY INTRO SECTION */
.ew-game-story-v45.ew-game-cover-v46 {
    display:block;
    overflow:hidden;
    padding:0;
    border:0;
    border-radius:20px;
    background:#102a47;
    box-shadow:0 12px 32px rgba(14,39,69,.12);
}
.ew-game-story-v45.ew-game-cover-v46 img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:16/9;
    object-fit:cover;
}
@media (max-width:600px) {
    .ew-game-story-v45.ew-game-cover-v46 {
        border-radius:14px;
    }
}

/* GAME START COVER V47 - START SCREEN ONLY */

#ewSmStartPanel {
  background-image:url('/games/a1-school-mystery/cover.webp')!important;
  background-color:#071426!important;
  background-size:contain!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  justify-content:flex-end!important;
  align-items:center!important;
  padding:12px 12px 25px!important;
  box-sizing:border-box!important;
}
#ewSmStartPanel > :not(#ewSmStartButton) {
  display:none!important;
}
#ewSmStartPanel > #ewSmStartButton {
  display:block!important;
  position:relative!important;
  z-index:5!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:180px!important;
  max-width:90%!important;
  min-height:48px!important;
  margin:0 auto!important;
  padding:12px 22px!important;
  border:2px solid #ffdc78!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#efaa26,#dc632c)!important;
  color:#ffffff!important;
  box-shadow:0 5px 24px rgba(0,0,0,.6)!important;
  transform:none!important;
  font-size:14px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
#ewSmStartPanel > #ewSmStartButton span,
#ewSmStartPanel > #ewSmStartButton small {
  color:#ffffff!important;
}
#ewSmStartPanel > #ewSmStartButton small {
  display:none!important;
}
@media screen and (max-width:899px) and (orientation:portrait) {
  #ewSmStartPanel {
    padding:10px 10px 16px!important;
  }
  #ewSmStartPanel > #ewSmStartButton {
    min-width:155px!important;
    min-height:43px!important;
    font-size:12px!important;
  }
}

/* START CENTER V48 - BOTH ORIENTATIONS */

#ewSmStartPanel {
    justify-content:center!important;
    align-items:center!important;
}
#ewSmStartPanel > button {
    margin:0 auto!important;
}

/* SCHOOL DIALOG CENTER V54
   All teacher answers appear in the same central position.
   Scoped to the teacher dialogue; start/final panels unchanged.
*/

.ew-sm-canvas-wrap > #ewSmDialog:not([hidden]) {
    position:absolute !important;

    top:50% !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    inset:50% auto auto 50% !important;

    transform:translate(-50%,-50%) !important;

    box-sizing:border-box !important;
    width:min(720px, calc(100% - 32px)) !important;
    max-width:calc(100% - 32px) !important;
    max-height:calc(100% - 32px) !important;

    overflow-x:hidden !important;
    overflow-y:auto !important;

    margin:0 !important;
    padding:20px 22px !important;

    z-index:100 !important;
    overscroll-behavior:contain;
}

.ew-sm-canvas-wrap > #ewSmDialog:not([hidden])
.ew-sm-dialog-text {
    overflow-wrap:anywhere;
    word-break:normal;
}

@media screen and (max-width:899px) {
    .ew-sm-canvas-wrap > #ewSmDialog:not([hidden]) {
        inset:50% auto auto 50% !important;
        transform:translate(-50%,-50%) !important;

        width:calc(100% - 24px) !important;
        max-width:calc(100% - 24px) !important;
        max-height:calc(100% - 24px) !important;

        padding:14px 16px !important;
    }

    .ew-sm-canvas-wrap > #ewSmDialog:not([hidden])
    .ew-sm-dialog-text {
        font-size:clamp(12px, 2.5vw, 16px) !important;
        line-height:1.45 !important;
    }
}

/* ROOM 404 A2 theme */
.ew-room404-shell .ew-sm-frame{border-color:#c9a16e}
.ew-room404-shell .ew-sm-start {background:linear-gradient(140deg,rgba(7,24,46,.98),rgba(32,49,74,.96));}
.ew-room404-shell .ew-sm-start-mark{color:#ecc891}
.ew-room404-shell .ew-room404-case-hook{max-width:590px;margin:10px auto;padding:10px 15px;background:rgba(255,255,255,.08);color:#f4e8d8;border:1px solid rgba(245,199,130,.28);border-radius:12px;font-size:13px;line-height:1.6}
.ew-room404-shell .ew-room404-case-hook strong{display:block;letter-spacing:.12em;color:#ffdb9e}
.ew-room404-shell .ew-room404-case-hook p{margin:4px 0 0;color:#f4e8d8}
.ew-room404-shell .ew-room404-ending{border:1px solid #eac98b;background:#fff4db;padding:16px;border-radius:14px;color:#513a20;font-weight:700;line-height:1.6;max-width:700px;margin:15px auto}
.ew-room404-shell .ew-room404-ending[hidden]{display:none!important}

.ew-room404-shell .ew-room404-story-intro{position:absolute;inset:0;z-index:25;background:rgba(5,16,31,.95);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:25px 8%;text-align:center;color:#fff}
.ew-room404-shell .ew-room404-story-intro[hidden]{display:none!important}
.ew-room404-shell .ew-room404-story-intro h3{color:#f6d9a7;font-size:clamp(20px,3vw,32px);font-weight:950}
.ew-room404-shell .ew-room404-story-intro p{max-width:670px;font-size:clamp(14px,2vw,19px);line-height:1.7;color:#f2f5fa}
.ew-room404-shell .ew-room404-intro-tag{font-size:12px;letter-spacing:.14em;color:#c7d9ea}
.ew-room404-shell .ew-room404-story-intro button{border:0;background:#e4b36f;color:#16253b;border-radius:13px;padding:15px 25px;font-size:14px;font-weight:950;cursor:pointer}

/* ROOM404 V2: compact deduction action in both desktop and mobile HUD */
.ew-room404-shell .ew-room404-solve-control {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:2px; flex-shrink:0; min-width:125px;
}
.ew-room404-shell #ewRoom404TrySolve {
    color:#0d2332; background:#f8cc58; border:1px solid #eab841;
    border-radius:8px; font-size:12px; line-height:1.15; font-weight:900;
    padding:8px 10px; cursor:pointer; white-space:nowrap;
}
.ew-room404-shell #ewRoom404TrySolve:hover {background:#ffe18c;}
.ew-room404-shell #ewRoom404TrySolve:disabled {opacity:.48;cursor:default;}
.ew-room404-shell #ewRoom404TrySolve[hidden] {display:none!important;}
.ew-room404-shell #ewRoom404Attempts {font-size:10px; font-weight:750; color:#eef6ff;white-space:nowrap;}
@media (max-width:600px) {
  .ew-room404-shell .ew-room404-solve-control {min-width:105px;}
  .ew-room404-shell #ewRoom404TrySolve {font-size:10px;padding:7px 5px;}
  .ew-room404-shell #ewRoom404Attempts {font-size:9px;}
}

/* ROOM 404 V6 bilingual assistance & shared cover artwork */
.ew-room404-shell .ew-room404-tr { display:none!important; }
.ew-room404-shell .ew-room404-tr-visible .ew-room404-tr { display:block!important; }
.ew-room404-shell .ew-room404-tr {
  margin-top:6px; color:#d9f7f3; font-size:clamp(11px,1.12vw,14px);
  line-height:1.48; letter-spacing:normal; font-weight:550;
}
.ew-room404-shell .ew-room404-mission-copy {display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:1px;}
.ew-room404-shell .ew-room404-mission-copy #ewSmMission {flex:none!important;width:100%;}
.ew-room404-shell .ew-room404-mission-copy #ewSmMissionTr {color:#f9dda7;font-size:clamp(10px,1.1vw,13px);line-height:1.35;}
.ew-room404-shell .ew-room404-tr-toggle {
  flex:0 0 40px;min-width:40px;height:38px;border-radius:10px;border:1px solid #eac58d;
  background:#152c45;color:#f4d5a4;font-weight:950;font-size:12px;cursor:pointer;
}
.ew-room404-shell .ew-room404-tr-toggle[aria-pressed="true"] {color:#071b32;background:#f7d294;}
.ew-room404-shell .ew-room404-dialog-tr {
  border-top:1px solid rgba(255,255,255,.25);padding-top:8px;margin:10px 0 7px;
  color:#f8e2ae;font-size:clamp(12px,1.35vw,16px);line-height:1.45;
}
.ew-room404-shell .ew-room404-intro-tr {color:#fbe0a9;font-size:clamp(12px,1.55vw,16px);max-width:650px;}
.ew-room404-shell .ew-room404-quiz-tr {color:#347e72;font-size:12px;font-weight:650;margin:2px 0 5px;}
.ew-room404-shell .ew-room404-final-tr {color:#f6dfb5;}
.ew-room404-shell .ew-room404-ending-tr {padding:10px 15px;margin:8px auto;background:#fdf0d2;border-radius:12px;color:#5a4329;max-width:700px;}
.ew-room404-shell .ew-room404-tr-block {display:none;}
.ew-room404-shell .ew-room404-tr-visible .ew-room404-tr-block {display:block!important;}
.ew-room404-shell .ew-sm-start {
  background:linear-gradient(130deg,rgba(5,15,29,.93),rgba(6,23,42,.88)),url('/games/a2-room-404/cover.svg?v=6') center/cover no-repeat!important;
}
@media (max-width:899px) {
  .ew-room404-shell .ew-room404-tr-toggle {flex:0 0 35px;min-width:35px;height:35px;font-size:11px;}
  .ew-room404-shell .ew-room404-mission-copy #ewSmMissionTr {font-size:11px;}
}

.ew-room404-shell .ew-room404-ending-tr:empty {display:none!important;}
.ew-room404-shell .ew-sm-dialog {max-height:calc(100% - 32px);overflow-y:auto;}
.ew-room404-shell .ew-room404-story-intro {overflow-y:auto;}

/* ROOM 404 V7: Turkish help is contextual, never pre-opened. */
.ew-room404-shell .ew-room404-mission-copy {align-items:flex-start; gap:5px;}
.ew-room404-shell .ew-room404-tr-toggle {
  display:inline-flex!important;align-items:center;justify-content:center;
  align-self:flex-start;flex:0 0 auto!important;width:auto!important;
  min-width:76px!important;height:auto!important;min-height:30px;
  padding:5px 12px!important;margin:4px 0 0!important;
  border-radius:8px;font-size:12px!important;line-height:1.2;
  white-space:nowrap;letter-spacing:normal;cursor:pointer;
}
.ew-room404-shell .ew-room404-mission-copy .ew-room404-tr-toggle{margin-top:3px!important;}
.ew-room404-shell .ew-sm-dialog .ew-room404-tr-toggle{margin:12px 0 2px!important;}
.ew-room404-shell .ew-room404-story-intro .ew-room404-tr-toggle{margin:8px auto 0!important;align-self:center;background:#d7ae73;color:#142740;}
.ew-room404-shell .ew-sm-final .ew-room404-tr-toggle{margin:8px auto 10px!important;align-self:center;}
.ew-room404-shell #ewSmMissionTr{margin-top:1px;}
.ew-room404-shell #ewSmDialogTr:not(:empty){margin-top:8px;}
/* The A1 School Mystery cover was forced by #ewSmStartPanel. Replace only ROOM 404. */
.ew-room404-shell #ewSmStartPanel{
  background-image:url('/games/a2-room-404/cover.svg?v=7')!important;
  background-color:#071426!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:contain!important;
}
@media(max-width:600px){
  .ew-room404-shell .ew-room404-tr-toggle {min-width:68px!important;min-height:28px;font-size:11px!important;padding:5px 9px!important;}
}


/* ROOM 404 V8: Translation control directly below the 1/12 step counter.
   Turkish appears to the right, as a floating hint which may overlap the scene. */
.ew-room404-shell .ew-sm-hud-v21 {
    position:relative!important;
    z-index:15!important;
    overflow:visible!important;
}
.ew-room404-shell .ew-sm-hud-v21-main,
.ew-room404-shell .ew-sm-hud-v21-title {
    overflow:visible!important;
}
.ew-room404-shell #ewRoom404MissionCopy.ew-sm-v43-mission-row {
    display:flex!important;
    align-items:flex-start!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    position:relative;
    overflow:visible!important;
}
.ew-room404-shell .ew-room404-step-stack {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:5px;
    flex:0 0 auto;
    min-width:66px;
    position:relative;
    z-index:18;
}
.ew-room404-shell .ew-room404-step-stack #ewSmStep {
    display:block!important;
    margin:0!important;
    line-height:1.3!important;
}
.ew-room404-shell .ew-room404-mission-copy {
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    padding-top:0!important;
}
.ew-room404-shell #ewRoom404MissionCopy #ewSmMission {
    display:block!important;
    width:100%!important;
}
.ew-room404-shell .ew-room404-translation-anchor {
    position:relative;
    display:inline-flex;
    align-items:flex-start;
    overflow:visible!important;
}
.ew-room404-shell .ew-room404-translation-anchor .ew-room404-tr-toggle {
    margin:0!important;
    align-self:flex-start!important;
}
.ew-room404-shell #ewSmMissionTr {
    position:absolute!important;
    z-index:55!important;
    left:calc(100% + 10px)!important;
    top:0!important;
    box-sizing:border-box!important;
    width:max-content!important;
    max-width:min(570px, calc(100vw - 155px))!important;
    min-width:min(220px, calc(100vw - 155px))!important;
    padding:9px 13px!important;
    margin:0!important;
    white-space:normal!important;
    overflow-wrap:break-word;
    color:#ffe3b0!important;
    font-size:clamp(12px,1.15vw,16px)!important;
    line-height:1.5!important;
    letter-spacing:normal!important;
    border:1px solid rgba(247,210,148,.65);
    border-radius:10px;
    background:rgba(7,25,44,.98);
    box-shadow:0 8px 24px rgba(0,0,0,.34);
}
@media (max-width:600px) {
    .ew-room404-shell #ewRoom404MissionCopy.ew-sm-v43-mission-row {gap:8px!important;}
    .ew-room404-shell .ew-room404-step-stack {min-width:58px;}
    .ew-room404-shell #ewSmMissionTr {
        max-width:min(325px, calc(100vw - 122px))!important;
        min-width:min(170px, calc(100vw - 122px))!important;
        padding:7px 9px!important;
    }
}
/* V5 signal vault: identical EnglishWebster HUD geometry, completely new puzzle game below. */
.ew-b2vault-shell{max-width:1500px}.ew-b2vault-shell .ew-sm-v37-stack{display:flex;align-items:center;gap:8px}.ew-b2vault-shell #ewB2Restart{font-size:26px;line-height:1;background:#194269;color:#fff;border:2px solid #5a91ca;border-radius:12px;width:54px;height:52px;cursor:pointer}.ew-b2vault-shell .ew-sm-v37-separator{display:inline-block;width:1px;height:40px;background:#42718e}.ew-b2vault-shell .ew-sm-v21-pause{background:#174b57}.ew-b2vault-shell .ew-sm-hud-v21-main{flex-direction:column;align-items:stretch!important;justify-content:center}.ew-b2vault-shell .ew-sm-hud-v21-title{width:100%}.ew-b2vault-shell .ew-b2vault-mission-row{display:flex;align-items:start;gap:12px;margin:7px 0 0}.ew-b2vault-shell .ew-b2vault-mission-row>span{font-size:clamp(25px,2.6vw,36px);font-weight:950;line-height:1.2;white-space:nowrap;color:white;letter-spacing:0}.ew-b2vault-shell .ew-b2vault-mission-row>strong{font-size:clamp(13px,1.45vw,22px);font-weight:900;line-height:1.3;margin:0;letter-spacing:0;overflow-wrap:anywhere}.ew-b2vault-shell .ew-sm-hud-v21-actions{margin-top:12px;gap:8px}.ew-b2vault-shell .ew-sm-frame{overflow:hidden}.ew-b2vault-shell .ew-b2vault-stage{background:#07172b;overflow:hidden}.ew-b2vault-shell #ewB2Canvas{width:100%;height:100%;display:block;position:absolute;inset:0}.ew-b2vault-stage-dim{position:absolute;inset:0;background:linear-gradient(90deg,#051329ad,#05132920 50%,#06152dbb);pointer-events:none}.ew-b2vault-hud-counter{position:absolute;top:16px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;color:#aae6f4;font-size:clamp(9px,1vw,13px);font-weight:900;letter-spacing:.14em;z-index:2;text-shadow:0 2px 6px #061120}.ew-b2vault-device{position:absolute;left:50%;top:50%;transform:translate(-50%,-49%);z-index:9;width:min(790px,89%);max-height:87%;overflow:auto;background:linear-gradient(147deg,#09213ef5,#081b30f8);border:2px solid #53bcdd;border-radius:22px;box-shadow:0 20px 95px #020812df,0 0 44px #48b8f72a;padding:clamp(13px,2vw,23px);color:#fff}.ew-b2vault-device[hidden],.ew-b2vault-dialog[hidden],.ew-b2vault-paused[hidden],.ew-b2vault-final[hidden],.ew-b2vault-intro[hidden]{display:none!important}.ew-b2vault-device-top>span{color:#8cecf0;font-weight:950;font-size:11px;letter-spacing:.14em}.ew-b2vault-device-top>strong{display:block;margin:5px 0 6px;color:#fff;font-size:clamp(18px,2.6vw,29px);font-weight:950}.ew-b2vault-device-top p{font-size:clamp(12px,1.35vw,16px);line-height:1.5;margin:0 0 12px;color:#e8f4fa}.ew-b2vault-device-body{border-radius:12px;padding:clamp(12px,1.5vw,17px);background:linear-gradient(#0b293e,#061a29);border:1px solid #396982;min-height:125px}.ew-b2vault-device-foot{display:flex;align-items:center;gap:13px;margin-top:11px}.ew-b2vault-device-foot span{font-size:12px;color:#bde2e9;flex:1;line-height:1.35}.ew-b2vault-device-foot button{white-space:nowrap;background:#564127;border:1px solid #b38a4f;border-radius:9px;padding:10px;font-weight:900;color:#ffe29f;cursor:pointer}.ew-b2vault-device button:focus-visible,.ew-b2vault-shell button:focus-visible{outline:3px solid #fff094;outline-offset:3px}.ew-b2vault-puzzle-heading{color:#9ce9ea;font-size:11px;font-weight:900;letter-spacing:.11em;margin-bottom:11px}.ew-b2vault-modules{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;min-height:44px}.ew-b2vault-chip{font-size:clamp(10px,1.15vw,13px);font-weight:900;border:1px solid #6cb6cb;border-radius:10px;color:white;background:linear-gradient(145deg,#214b6a,#123e50);padding:9px 13px;cursor:grab;user-select:none;touch-action:manipulation}.ew-b2vault-chip.ew-b2vault-selected{outline:3px solid #f2d37e;background:#4a6171}.ew-b2vault-chip[disabled]{opacity:.4;cursor:default}.ew-b2vault-sockets{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px auto;max-width:630px}.ew-b2vault-socket{min-height:69px;background:#0a3149;border:2px dashed #6fa7ae;border-radius:12px;color:#bdedf5;font-weight:850;font-size:clamp(10px,1.2vw,13px);display:flex;align-items:center;justify-content:center;gap:7px;flex-direction:column;cursor:pointer}.ew-b2vault-socket.filled{border-style:solid;border-color:#f6d07a;color:#fff;background:#2b4357}.ew-b2vault-tube{width:100%;height:14px;display:flex;align-items:center;margin:7px auto 4px;max-width:600px;background:#041523;border-radius:30px;border:1px solid #3d7890;overflow:hidden}.ew-b2vault-tube-segment{height:100%;flex:1;border-right:3px solid #071927;background:#152d40;transition:background .2s}.ew-b2vault-tube-segment.live{background:#3cf1c7;box-shadow:0 0 11px #36ebc8}.ew-b2vault-console-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:13px}.ew-b2vault-action{border:0;border-radius:10px;background:linear-gradient(115deg,#ffd477,#ff9a58);color:#14283b;font-size:13px;font-weight:950;padding:12px 17px;cursor:pointer}.ew-b2vault-reset{background:#163950;border:1px solid #426e8e;color:#e2f6ff;padding:11px 15px;border-radius:10px;font-weight:850;cursor:pointer}.ew-b2vault-table{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-bottom:12px}.ew-b2vault-lookup{border:1px solid #3f768f;background:#163a51;border-radius:8px;padding:7px 10px;color:#e1f0fa;font-size:12px;line-height:1.2}.ew-b2vault-lookup strong{color:#ffdc89;font-size:17px;margin-left:7px}.ew-b2vault-dials{display:flex;gap:clamp(5px,2vw,20px);justify-content:center;margin:11px 0}.ew-b2vault-dial{text-align:center;min-width:60px;max-width:110px;width:23%;border-radius:14px;background:linear-gradient(160deg,#0d344f,#091c2f);border:2px solid #4b8fb3;padding:7px;color:#fff}.ew-b2vault-dial span{font-size:10px;color:#86c8d9;font-weight:900}.ew-b2vault-dial strong{display:block;font-size:clamp(24px,4vw,49px);margin:1px 0;font-variant-numeric:tabular-nums}.ew-b2vault-dial button{display:block;width:100%;font-size:20px;background:#1f5c74;color:#fff;border:1px solid #4ab8cd;border-radius:8px;cursor:pointer}.ew-b2vault-switches{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.ew-b2vault-lever{border:2px solid #45738a;border-radius:12px;color:#fff;background:#11334b;padding:10px 5px;min-height:104px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:6px}.ew-b2vault-lever strong{font-size:clamp(10px,1.08vw,13px);line-height:1.1}.ew-b2vault-lever .ew-b2vault-led{width:30px;height:36px;border-radius:15px;background:#142336;border:3px solid #5a7c8f;box-shadow:inset 0 0 12px #000}.ew-b2vault-lever.on .ew-b2vault-led{background:#38ebad;border-color:#b7ffe3;box-shadow:0 0 16px #2beec6}.ew-b2vault-lever.on{border-color:#54d9c2;background:#144d4d}.ew-b2vault-lever>span{font-size:10px;letter-spacing:.08em;font-weight:950;color:#c7e9ee}.ew-b2vault-reward-layer{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);z-index:30;pointer-events:none}.ew-b2vault-reward{pointer-events:auto;background:linear-gradient(100deg,#ffd778,#ff9955);border:2px solid #ffeab4;border-radius:35px;box-shadow:0 0 30px #ffc36c9e;font-weight:950;font-size:clamp(13px,1.8vw,20px);padding:15px 24px;color:#202f46;white-space:nowrap;cursor:pointer;animation:ewVaultBob .6s ease-in-out infinite alternate}.ew-b2vault-reward.ew-b2vault-time-reward{background:linear-gradient(100deg,#c1fff3,#52d8ea)}@keyframes ewVaultBob{to{transform:translateY(-8px)}}.ew-b2vault-dialog{position:absolute;inset:0;z-index:19;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;background:#041426e8;padding:clamp(18px,4vw,50px);color:white}.ew-b2vault-dialog-tag{font-size:11px;color:#89f2f2;font-weight:950;letter-spacing:.2em}.ew-b2vault-dialog strong{font-size:clamp(20px,3.3vw,39px);margin:13px 0 6px}.ew-b2vault-dialog p{font-size:clamp(13px,1.7vw,20px);max-width:720px;line-height:1.6;color:#ecf6fb}.ew-b2vault-dialog button,.ew-b2vault-paused button{border-radius:11px;padding:14px 22px;border:0;color:#163447;background:linear-gradient(110deg,#ffcd71,#ff8a7a);font-size:15px;font-weight:950;cursor:pointer}.ew-b2vault-toast{position:absolute;bottom:18%;left:50%;transform:translateX(-50%);z-index:21;color:#fff;max-width:85%;text-align:center;text-shadow:0 3px 7px #000;pointer-events:none;font-weight:950;font-size:clamp(15px,2vw,25px)}.ew-b2vault-intro{z-index:22;background:linear-gradient(90deg,#05152bdc,#0617288c),var(--b2-vault-cover) center center/cover no-repeat!important;max-height:100%;overflow-y:auto}.ew-b2vault-intro h3{font-size:clamp(36px,6vw,72px)}.ew-b2vault-intro p{max-width:670px}.ew-b2vault-intro #ewB2Start{margin-top:20px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 35px;border:1px solid #ffe3ac;border-radius:13px;background:linear-gradient(115deg,#ffbe4a,#fa8d58);color:#132e43;font-size:15px;font-weight:950;cursor:pointer}.ew-b2vault-intro #ewB2Start small{font-size:10px;font-weight:900}.ew-b2vault-intro .ew-start-leaderboard{margin-top:15px;max-width:560px;color:#d8e7ed;display:flex;justify-content:center;gap:16px;font-size:12px;align-items:center}.ew-b2vault-intro .ew-start-leaderboard span{font-size:20px;font-weight:950;color:#ffe9ad}.ew-b2vault-intro .ew-sm-controls-hint{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:14px}.ew-b2vault-intro .ew-sm-controls-hint span{padding:7px 10px;background:#061a2cbb;border:1px solid #3b7a93;color:#e2f6fa;font-size:10px;border-radius:9px}.ew-b2vault-paused{z-index:30;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;background:#031529ef;color:#fff}.ew-b2vault-paused strong{font-size:40px}.ew-b2vault-paused p{color:#bdd8e8}.ew-b2vault-final{z-index:25;overflow-y:auto;text-align:center;background:linear-gradient(145deg,#071c35f5,#123954f8);padding:clamp(16px,2.5vw,35px);color:white}.ew-b2vault-final h3{color:white;font-size:clamp(23px,3.2vw,40px);margin:10px 0}.ew-b2vault-final p{color:#d9f3fd;font-size:14px}.ew-b2vault-quiz{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:left}.ew-b2vault-quiz fieldset{border:1px solid #4d8b9e;border-radius:12px;background:#092f41;padding:10px;min-width:0}.ew-b2vault-quiz legend{color:#fff;font-weight:950;font-size:clamp(11px,1.25vw,15px);line-height:1.3;padding:0 3px}.ew-b2vault-quiz label{display:block;padding:7px;margin:5px 0;border-radius:7px;border:1px solid #40647a;cursor:pointer;color:#e9f9ff;font-size:12px}.ew-b2vault-quiz label:has(input:checked){background:#155654;border-color:#66d7ad}.ew-b2vault-final #ewB2Submit{margin-top:12px;padding:12px 20px;background:linear-gradient(105deg,#ffdb7a,#ff975e);border:none;border-radius:11px;font-weight:950;cursor:pointer}.ew-b2vault-result{font-size:13px;font-weight:850;color:#9ef8d8}.ew-b2vault-vocabulary{margin:23px auto;max-width:1280px}.ew-b2vault-vocabulary h3{color:#112f47;font-size:22px;font-weight:950}.ew-b2vault-vocab-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px}.ew-b2vault-vocab-grid button{text-align:left;border:1px solid #c4dce8;border-radius:13px;background:white;min-height:147px;padding:14px;display:flex;flex-direction:column;gap:8px;cursor:pointer;color:#163448}.ew-b2vault-vocab-grid small{font-size:11px;color:#4f7d92;font-weight:900}.ew-b2vault-vocab-grid strong{font-size:16px}.ew-b2vault-vocab-grid span{font-size:12px;line-height:1.5}.ew-b2vault-vocab-grid button.flipped{background:#e9f9f9;border-color:#51bbba}.ew-b2vault-shell:fullscreen{max-width:none;width:100vw;height:100vh;overflow:auto;padding:8px;background:#071728}.ew-b2vault-shell:fullscreen .ew-sm-canvas-wrap{max-height:calc(100vh - 190px)}.ew-b2vault-shell .ew-sm-fullscreen-button{right:13px;bottom:12px;z-index:36}.ew-b2vault-shell .ew-sm-credit{z-index:2;pointer-events:none}
@media(max-width:1100px){.ew-b2vault-shell .ew-sm-frame .ew-sm-hud-v21{grid-template-columns:minmax(0,1fr) 115px 95px 95px}.ew-b2vault-shell .ew-sm-hud-v21-main{padding:10px}.ew-b2vault-shell .ew-sm-v21-icon{width:40px;height:42px;border-radius:10px}.ew-b2vault-shell .ew-sm-v21-pause,.ew-b2vault-shell .ew-sm-v21-exit{height:42px;min-width:70px;padding:0 8px;font-size:11px}.ew-b2vault-shell #ewB2Restart{width:40px;height:42px}.ew-b2vault-quiz{grid-template-columns:1fr}.ew-b2vault-vocab-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.ew-b2vault-shell .ew-sm-frame .ew-sm-hud-v21{display:grid;grid-template-columns:repeat(3,1fr);min-height:0}.ew-b2vault-shell .ew-sm-hud-v21-main{grid-column:1/-1;min-height:120px}.ew-b2vault-shell .ew-sm-v21-stat{min-height:75px}.ew-b2vault-shell .ew-sm-v21-stat strong,.ew-b2vault-shell .ew-sm-v21-time strong{font-size:24px}.ew-b2vault-shell .ew-sm-hud-v21-actions{flex-wrap:wrap}.ew-b2vault-device{width:96%;max-height:90%;padding:10px;border-radius:12px}.ew-b2vault-device-top>strong{font-size:17px}.ew-b2vault-device-top p{font-size:11px;line-height:1.35}.ew-b2vault-sockets{gap:4px}.ew-b2vault-socket{min-height:47px;font-size:10px}.ew-b2vault-switches{gap:5px}.ew-b2vault-lever{min-height:74px;padding:7px 2px}.ew-b2vault-dial{min-width:43px;padding:5px}.ew-b2vault-lookup{font-size:10px}.ew-b2vault-vocab-grid{grid-template-columns:repeat(2,1fr)}}
.ew-b2vault-reward-layer{top:13%;}
.ew-b2vault-shell{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
.ew-b2vault-reward{animation:none;}
/* Operation Blackout V6: playable train adventure. Inherit the actual A2/B1 HUD components. */
.ew-blackout-train .ew-sm-hud-v21-main{flex-direction:column!important;align-items:stretch!important;justify-content:center!important}
.ew-blackout-train .ew-sm-hud-v21-title{min-width:220px;flex:1}
.ew-blackout-train .ew-sm-hud-v21-actions{margin:12px 0 0!important;align-items:center;flex-shrink:0}
.ew-blackout-train .ew-b2vault-mission-row{align-items:flex-start;gap:15px}
.ew-blackout-train .ew-b2vault-mission-row>strong{font-size:clamp(14px,1.3vw,19px)!important;font-weight:800;line-height:1.28;min-height:45px;max-height:95px;overflow:auto}
.ew-blackout-train .ew-b2vault-mission-row>span{font-size:clamp(23px,2vw,34px)!important}
.ew-blackout-train .ew-b2vault-stage-dim,.ew-blackout-train .ew-b2vault-device{display:none!important}
.ew-blackout-train .ew-b2vault-stage{min-height:0;background:#071728}
.ew-blackout-train .ew-b2train-mission-help{position:absolute;top:54px;left:3%;right:3%;padding:13px 19px;color:#e6f5fb;font-size:clamp(12px,1.2vw,17px);font-weight:750;line-height:1.4;background:rgba(2,19,34,.89);border:1px solid #5fa1bc;border-radius:13px;z-index:3;max-height:21%;overflow:auto;pointer-events:none}
.ew-blackout-train .ew-b2train-hint{position:absolute;top:23%;right:3%;z-index:4;padding:11px 14px;border-radius:12px;background:#29465b;color:#ffe3a6;border:1px solid #c5a163;font-weight:900;cursor:pointer;font-size:clamp(10px,1vw,14px)}
.ew-blackout-train .ew-b2train-touch{position:absolute;bottom:7%;left:3%;z-index:7;display:flex;gap:8px;align-items:center;touch-action:none}
.ew-blackout-train .ew-b2train-touch button{touch-action:none;user-select:none;background:#092742e9;color:#ffdda6;border:2px solid #7faac3;border-radius:14px;padding:10px 14px;min-height:48px;font-weight:950;font-size:15px;box-shadow:0 3px 12px #020b16}
.ew-blackout-train .ew-b2train-touch button[data-act="e"]{background:#f6b24e;color:#082538}
.ew-blackout-train #ewB2Canvas{width:100%;height:100%;display:block;position:absolute;inset:0}
.ew-blackout-train .ew-b2vault-dialog{z-index:15}
.ew-blackout-train .ew-b2vault-paused{z-index:17}
.ew-blackout-train .ew-b2vault-intro{z-index:21;position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:linear-gradient(#081b35c9,#051125db),var(--b2-vault-cover) center/cover no-repeat!important}
.ew-blackout-train .ew-b2vault-intro[hidden],.ew-blackout-train .ew-b2vault-dialog[hidden],.ew-blackout-train .ew-b2vault-paused[hidden],.ew-blackout-train .ew-b2vault-final[hidden]{display:none!important}
.ew-blackout-train .ew-b2vault-intro .ew-sm-controls-hint{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ew-blackout-train .ew-sm-fullscreen-button{z-index:20}
.ew-blackout-train .ew-b2vault-dialog{position:absolute;top:50%;left:50%;width:min(740px,88%);max-height:74%;overflow:auto;transform:translate(-50%,-50%);padding:32px;background:#061b30f7;border:2px solid #4ccee7;border-radius:20px;box-shadow:0 20px 65px #000b;color:#fff}
.ew-blackout-train .ew-b2vault-dialog>strong{display:block;color:#ffdda0;font-size:clamp(21px,3vw,31px);font-weight:950;margin:12px 0}
.ew-blackout-train .ew-b2vault-dialog>p{color:#e6f5ff;font-size:clamp(15px,1.7vw,21px);line-height:1.5}
.ew-blackout-train .ew-b2vault-dialog button{background:linear-gradient(90deg,#ffc05b,#f76b93);border:0;border-radius:16px;padding:15px 23px;color:#06182c;font-weight:950;cursor:pointer}
.ew-blackout-train .ew-b2vault-toast{position:absolute;z-index:25;bottom:20%;left:50%;transform:translateX(-50%);color:#fff;font-weight:950;background:#082d43ec;border:1px solid #f8cc86;border-radius:18px;padding:14px 22px;opacity:0;pointer-events:none;transition:opacity .2s}.ew-blackout-train .ew-b2vault-toast.show{opacity:1}
.ew-blackout-train .ew-b2vault-paused{position:absolute;inset:0;background:#061426ed;display:flex;flex-direction:column;justify-content:center;align-items:center;color:white}.ew-blackout-train .ew-b2vault-paused strong{font-size:45px}.ew-blackout-train .ew-b2vault-paused button{padding:16px 40px;border-radius:12px;background:#ffbc6e;color:#09233a;font-weight:950}
.ew-blackout-train .ew-b2vault-final{position:absolute;inset:0;z-index:18;overflow:auto;background:#071a30f7;padding:20px 7%;color:white;text-align:center}.ew-blackout-train .ew-b2vault-final fieldset{border:1px solid #507690;border-radius:12px;padding:12px;text-align:left;margin:12px 0;background:#0e2b43}.ew-blackout-train .ew-b2vault-final legend{font-weight:900;color:#ffdf9d}.ew-blackout-train .ew-b2vault-final label{display:block;padding:7px;color:#e6f6fa;cursor:pointer}
.ew-blackout-train .ew-b2vault-final label input{margin-right:10px}.ew-blackout-train .ew-b2vault-final button{background:#ffb55c;color:#09223a;padding:14px 24px;border:0;border-radius:12px;font-weight:950;cursor:pointer}
@media(max-width:900px){.ew-blackout-train .ew-sm-hud-v21-main{flex-direction:column!important;align-items:stretch!important}.ew-blackout-train .ew-sm-hud-v21-actions{margin-top:10px!important;justify-content:flex-start}.ew-blackout-train .ew-b2train-mission-help{top:45px}.ew-blackout-train .ew-b2train-hint{top:32%}}

/* B2 V7: Illustrated hidden-object adventure. The original EnglishWebster HUD stays intact. */
.ew-b2-discovery-stage{background:#081b2d;isolation:isolate}
.ew-b2-discovery-stage [hidden]{display:none!important}
.ew-discovery-scene{position:absolute;inset:0;overflow:hidden}
.ew-discovery-art{position:absolute;inset:0;width:100%;height:100%;display:block;filter:saturate(1.25)}
.ew-discovery-scene::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 52% 43%,transparent 35%,rgba(2,11,29,.28) 99%)}
.ew-discovery-object{position:absolute;z-index:5;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:1px;align-items:center;justify-content:center;border:1px solid rgba(255,232,167,.5);border-radius:20px;background:rgba(15,35,54,.72);min-width:82px;min-height:85px;max-width:127px;padding:6px 8px;box-shadow:0 8px 25px rgba(0,0,0,.5),inset 0 0 18px rgba(100,175,183,.19);cursor:pointer;color:#f4f7ff;transition:transform .16s,background .16s,box-shadow .16s;backdrop-filter:blur(2px)}
.ew-discovery-object:hover,.ew-discovery-object:focus-visible{background:#174354;transform:translate(-50%,-50%) scale(1.12);outline:2px solid #ffe4a1;box-shadow:0 0 36px #fbe3a244}
.ew-discovery-emoji{font-size:35px;line-height:1.1;filter:drop-shadow(0 3px 4px #040e18)}
.ew-discovery-object small{font-size:10px;font-weight:900;line-height:1.2;text-align:center;color:#f8e2ae;text-shadow:0 1px 4px #02070c}
.ew-discovery-areas{position:absolute;z-index:11;top:12px;left:14px;right:14px;display:flex;gap:6px;flex-wrap:wrap;pointer-events:none}
.ew-discovery-areas button{pointer-events:auto;background:#102a42ee;border:1px solid #a8d2c475;color:#f0f4f6;border-radius:9px;padding:9px 11px;font-weight:850;letter-spacing:.08em;font-size:10px;cursor:pointer}
.ew-discovery-areas button:disabled{opacity:.35;cursor:not-allowed}.ew-discovery-areas button.is-current{background:#dfac5e;color:#0e2035;border-color:#ffdfa8}
.ew-discovery-caption{position:absolute;z-index:9;left:18px;bottom:133px;display:flex;gap:14px;align-items:center;background:#071a2bea;border:1px solid #a6c1bd45;color:#fff;border-radius:12px;padding:9px 14px;font-size:11px;font-weight:850;letter-spacing:.09em}
.ew-discovery-caption span:last-child{color:#e9c78e}
.ew-discovery-instruction{position:absolute;z-index:9;top:66px;right:16px;max-width:46%;color:#fff;background:rgba(5,20,36,.9);border-radius:12px;padding:9px 14px;font-size:12px;line-height:1.35;font-weight:700;text-align:right;pointer-events:none}
.ew-discovery-inventory{z-index:15;position:absolute;left:16px;bottom:59px;max-width:calc(100% - 250px);min-height:59px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:8px 14px;border:1px solid #557d8a70;border-radius:14px;background:#061b2fea;color:#fff}
.ew-discovery-inventory-label{font-size:10px;font-weight:950;letter-spacing:.18em;color:#e7c783}.ew-discovery-empty{color:#8ca5b4;font-size:12px;font-style:italic}
.ew-discovery-inventory button{border-radius:10px;background:#132f48;color:#eff6ff;border:1px solid #66899a;padding:8px 12px;cursor:pointer;font-size:11px;font-weight:900}
.ew-discovery-inventory button.selected{background:#f9cb77;color:#10223c;box-shadow:0 0 0 3px #fff9}
.ew-discovery-hint{z-index:15;position:absolute;right:16px;bottom:91px;padding:10px 13px;border:1px solid #e5c58f90;border-radius:11px;background:#173650eb;color:#ffe6b9;font-size:11px;font-weight:900;cursor:pointer}
.ew-discovery-rewards{position:absolute;inset:0;z-index:18;pointer-events:none}
.ew-discovery-bonus{pointer-events:auto;position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);border:4px solid #ffefb3;border-radius:50%;min-width:130px;min-height:118px;background:radial-gradient(circle at 36% 30%,#fff5b0,#ffad3f 66%,#db7c2b);color:#222e42;font-size:18px;font-weight:1000;box-shadow:0 0 15px #f7c550,0 0 58px #f9c86b85;cursor:pointer;animation:ewDiscPulse 1.2s ease-in-out infinite alternate}
@keyframes ewDiscPulse{from{box-shadow:0 0 12px #f7c550,0 0 27px #f9c86b55}to{box-shadow:0 0 25px #f7c550,0 0 76px #f9c86bac}}
.ew-discovery-dialog{z-index:24;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,86%);max-height:88%;overflow:auto;padding:24px 26px;border:2px solid #7de2e0;border-radius:24px;background:#071c2af7;box-shadow:0 25px 100px #000c;color:#fff}
.ew-discovery-intro{background-image:linear-gradient(#081b31a3,#081b31ee),var(--b2-vault-cover)!important;background-size:cover!important;background-position:center!important}
.ew-discovery-stage .ew-sm-fullscreen-button{z-index:26}
.ew-b2-discovery-stage .ew-sm-fullscreen-button{z-index:26}
.ew-b2-discovery-stage .ew-sm-credit{z-index:10}
.ew-b2-discovery-stage .ew-b2vault-paused,.ew-b2-discovery-stage .ew-b2vault-final{z-index:30}
.ew-b2-discovery-stage .ew-b2vault-intro{z-index:25}
.ew-b2-discovery-stage .ew-b2vault-toast{z-index:35}
@media(max-width:750px){.ew-b2-discovery-stage{aspect-ratio:auto;min-height:620px}.ew-discovery-object{min-width:59px;min-height:72px;padding:5px;border-radius:13px}.ew-discovery-emoji{font-size:29px}.ew-discovery-object small{font-size:9px}.ew-discovery-areas{gap:3px}.ew-discovery-areas button{font-size:8px;padding:8px 5px}.ew-discovery-instruction{top:75px;max-width:60%;font-size:10px}.ew-discovery-inventory{bottom:54px;max-width:calc(100% - 128px);padding:7px}.ew-discovery-inventory button{padding:6px;font-size:9px}.ew-discovery-hint{right:9px;bottom:112px;font-size:10px;max-width:130px}.ew-discovery-caption{left:8px;bottom:166px;font-size:9px;gap:8px}.ew-discovery-dialog{padding:13px 15px}}


/* V8 — visible EW-BOT contact, ten progressive districts. */
.ew-blackout-avatar{position:absolute;z-index:13;top:84%;left:50%;width:clamp(43px,6%,76px);height:clamp(61px,10%,96px);pointer-events:none;transform:translate(-50%,-82%);filter:drop-shadow(0 8px 9px #031320b0);transition:left .03s linear,top .03s linear}
.ew-blackout-avatar svg{width:100%;height:100%;display:block}
.ew-blackout-avatar.ew-walking svg{animation:ewBotWalk .34s ease-in-out infinite alternate}
@keyframes ewBotWalk{from{transform:rotate(-5deg) translateY(-2px)}to{transform:rotate(5deg) translateY(2px)}}
.ew-blackout-city{position:absolute;z-index:2;left:17%;right:17%;bottom:5%;height:30%;min-height:126px;pointer-events:none;filter:drop-shadow(0 9px 20px #030d1ed9);opacity:.96;border:1px solid #b2d6df87;border-radius:15px;background:#08192aed;overflow:hidden;transition:box-shadow .35s}
.ew-blackout-city svg{width:100%;height:calc(100% - 24px);display:block}
.ew-blackout-city .ew-city-heading{height:24px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:3px 12px;background:#081e30ee;color:#effaff;font-size:clamp(8px,.8vw,12px);font-weight:900;letter-spacing:.08em}
.ew-blackout-city .ew-city-heading span{color:#fad782;white-space:nowrap}
.ew-blackout-city .ew-district-lit{filter:drop-shadow(0 0 4px #f5c66099)}
.ew-blackout-city.all-restored{box-shadow:0 0 55px #e6c6788f}
.ew-blackout-city-alert{z-index:21;position:absolute;top:31%;left:50%;transform:translate(-50%,-15%) scale(.88);opacity:0;pointer-events:none;color:#ffe7a7;text-shadow:0 3px 9px #020a14;font-weight:1000;font-size:clamp(16px,2.4vw,34px);text-align:center;background:#0b3944eb;padding:12px 18px;border:2px solid #d2db89;border-radius:15px}
.ew-blackout-city-alert.is-visible{animation:ewDistrictWin 1.8s ease-out forwards}
@keyframes ewDistrictWin{0%{opacity:0;transform:translate(-50%,20%) scale(.75)}12%,75%{opacity:1;transform:translate(-50%,-15%) scale(1)}100%{opacity:0;transform:translate(-50%,-24%) scale(1.08)}}
.ew-blackout-pad{z-index:15;position:absolute;right:14px;bottom:194px;display:flex;flex-direction:column;align-items:center;gap:4px;user-select:none}
.ew-blackout-pad>div{display:flex;gap:4px}
.ew-blackout-pad button{width:38px;height:36px;background:#122f46ed;color:#f7d893;border:1px solid #adbaaa;border-radius:10px;font-size:17px;cursor:pointer;touch-action:manipulation}
.ew-blackout-pad button:active{background:#f1c976;color:#092036}
.ew-b2-discovery-stage .ew-discovery-object{z-index:7;min-height:75px;min-width:76px}
.ew-b2-discovery-stage .ew-discovery-rewards{z-index:22}
.ew-b2-discovery-stage .ew-discovery-areas{z-index:16}
@media(max-width:750px){.ew-blackout-city{left:10%;right:10%;bottom:14%;height:26%;min-height:130px}.ew-blackout-pad{bottom:32%;right:8px}.ew-blackout-pad button{width:34px;height:34px;font-size:14px}.ew-blackout-avatar{width:45px;height:65px}.ew-blackout-city .ew-city-heading{font-size:8px}}


/* B2 BLACKOUT V9: same compact EnglishWebster HUD as A1/A2/B1.
   Interface-only: gameplay, missions, quiz, points and rewards untouched. */
.ew-blackout-train.ew-b2vault-shell .ew-sm-frame .ew-sm-hud-v21{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 100px 78px 90px!important;
  grid-template-rows:auto!important;
  min-height:92px!important;
  height:auto!important;
  overflow:hidden!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-main{
  min-width:0!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:9px 14px!important;
  box-sizing:border-box!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-title{
  min-width:0!important;
  max-width:none!important;
  width:auto!important;
  flex:1 1 auto!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-title>span{
  font-size:10px!important;
  letter-spacing:.16em!important;
  line-height:1.1!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-b2vault-mission-row{
  margin:4px 0 0!important;
  display:flex!important;
  gap:9px!important;
  align-items:flex-start!important;
  min-width:0!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-b2vault-mission-row>span{
  font-size:clamp(21px,1.8vw,29px)!important;
  line-height:1.12!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-b2vault-mission-row>strong{
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  overflow:visible!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  font-size:clamp(12px,1vw,16px)!important;
  line-height:1.27!important;
  font-weight:850!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  align-self:center!important;
  width:auto!important;
  min-width:0!important;
  flex:0 0 auto!important;
  gap:5px!important;
  padding:0!important;
  margin:0 0 0 auto!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-actions>.ew-sm-v21-icon{
  width:37px!important;
  height:40px!important;
  min-width:37px!important;
  flex:0 0 37px!important;
  border-radius:11px!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-v21-icon svg{width:18px!important;height:18px!important}
.ew-blackout-train.ew-b2vault-shell .ew-sm-v37-stack{
  display:flex!important;
  flex:0 0 60px!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:60px!important;
  min-width:60px!important;
  max-width:60px!important;
  height:56px!important;
  min-height:0!important;
  gap:3px!important;
  padding:0!important;
  margin:0!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-v37-separator{display:none!important}
.ew-blackout-train.ew-b2vault-shell #ewB2Restart{
  width:60px!important;
  min-width:60px!important;
  max-width:60px!important;
  height:30px!important;
  min-height:0!important;
  flex:0 0 30px!important;
  padding:0!important;
  font-size:23px!important;
  line-height:1!important;
  border-radius:8px!important;
}
.ew-blackout-train.ew-b2vault-shell #ewB2Pause{
  width:60px!important;
  min-width:60px!important;
  max-width:60px!important;
  height:23px!important;
  min-height:0!important;
  flex:0 0 23px!important;
  padding:0!important;
  font-size:10px!important;
  border-radius:7px!important;
}
.ew-blackout-train.ew-b2vault-shell #ewB2Exit{
  width:54px!important;
  min-width:54px!important;
  max-width:54px!important;
  height:42px!important;
  min-height:0!important;
  flex:0 0 54px!important;
  padding:0!important;
  font-size:10px!important;
  border-radius:12px!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21>.ew-sm-v21-stat{
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:5px 2px!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-v21-stat>span{
  font-size:10px!important;
  line-height:1.1!important;
  letter-spacing:.12em!important;
}
.ew-blackout-train.ew-b2vault-shell .ew-sm-v21-stat>strong{
  margin-top:5px!important;
  font-size:clamp(19px,1.8vw,28px)!important;
  line-height:1.1!important;
}
/* Touch devices move by tapping the illustrated scene or an object; no arrows overlay. */
.ew-blackout-train #ewB2Pad,.ew-blackout-train .ew-blackout-pad{display:none!important}
.ew-blackout-train .ew-discovery-scene{touch-action:manipulation}
@media(max-width:1100px){
 .ew-blackout-train.ew-b2vault-shell .ew-sm-frame .ew-sm-hud-v21{grid-template-columns:minmax(0,1fr) 84px 65px 72px!important;min-height:0!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-main{flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:7px!important;padding:8px 10px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-actions{align-self:flex-end!important;margin:0!important}
 .ew-blackout-train.ew-b2vault-shell .ew-b2vault-mission-row>strong{font-size:13px!important}
}
@media(max-width:650px){
 .ew-blackout-train.ew-b2vault-shell .ew-sm-frame .ew-sm-hud-v21{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:auto 52px!important;
  gap:0!important;
 }
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-main{
  grid-column:1/-1!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:7px!important;
  padding:9px 12px 7px!important;
 }
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-actions{
  align-self:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  margin:0!important;
 }
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-title>span{font-size:9px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-b2vault-mission-row>span{font-size:23px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-b2vault-mission-row>strong{font-size:12px!important;line-height:1.25!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21>.ew-sm-v21-stat{grid-column:auto!important;min-height:0!important;height:52px!important;padding:4px 3px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-v21-stat>span{font-size:9px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-v21-stat>strong{font-size:20px!important;margin-top:2px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-b2-discovery-stage{min-height:480px}
}
@media(max-width:420px){
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-main{padding:7px 9px 6px!important;gap:5px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-actions>.ew-sm-v21-icon{width:34px!important;min-width:34px!important;flex-basis:34px!important;height:36px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-v37-stack{flex-basis:54px!important;width:54px!important;min-width:54px!important;max-width:54px!important;height:53px!important}
 .ew-blackout-train.ew-b2vault-shell #ewB2Restart{width:54px!important;min-width:54px!important;max-width:54px!important;height:28px!important;flex-basis:28px!important}
 .ew-blackout-train.ew-b2vault-shell #ewB2Pause{width:54px!important;min-width:54px!important;max-width:54px!important;height:22px!important;flex-basis:22px!important}
 .ew-blackout-train.ew-b2vault-shell #ewB2Exit{width:50px!important;min-width:50px!important;max-width:50px!important;flex-basis:50px!important;height:38px!important}
}
/* Keep standard fullscreen control at the lower-right corner. */
.ew-blackout-train .ew-b2-discovery-stage .ew-sm-fullscreen-button{z-index:26!important}
@media(max-width:650px){
 .ew-blackout-train.ew-b2vault-shell .ew-sm-frame:fullscreen .ew-b2-discovery-stage,
 .ew-blackout-train.ew-b2vault-shell .ew-sm-frame:-webkit-full-screen .ew-b2-discovery-stage{
  min-height:0!important;flex:1 1 auto!important;max-height:none!important;
 }
}
/* Tablet and phone-landscape: compact two-row HUD, three equal score fields. */
@media (min-width:651px) and (max-width:900px){
 .ew-blackout-train.ew-b2vault-shell .ew-sm-frame .ew-sm-hud-v21{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:auto 48px!important;
 }
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21-main{grid-column:1/-1!important;min-height:0!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-hud-v21>.ew-sm-v21-stat{grid-column:auto!important;min-height:0!important;height:48px!important}
 .ew-blackout-train.ew-b2vault-shell .ew-sm-v21-stat>strong{font-size:20px!important;margin-top:2px!important}
}
