#end-screen-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    opacity: 0;
    z-index: 1200;
    background: #2a2a2a;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02) 0 2px,
        transparent 2px 5px
    );
    color: #f4f0e6;
    font-family: 'VT323', monospace;
    box-sizing: border-box;
    overflow: auto;
    padding: 28px max(24px, 5vw);
}
#end-screen-container .es-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px max(16px, 3vw);
    box-sizing: border-box;
}
#end-screen-container .es-stack {
    position: relative;
    width: min(720px, 86vw);
    max-width: min(720px, 86vw);
    margin: 0 auto;
}
#end-screen-container .es-stack-back-2,
#end-screen-container .es-stack-back-1 {
    position: absolute;
    border: 3px solid #000;
    box-shadow: 0 0 0 3px #f4f0e6, 0 0 0 6px #000;
    pointer-events: none;
}
#end-screen-container .es-stack-back-2 {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: #d8d4ca;
    z-index: 0;
}
#end-screen-container .es-stack-back-1 {
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background: #e4e0d6;
    z-index: 1;
}

#end-screen-container .es-card {
    position: relative;
    z-index: 2;
    background: #f4f0e6;
    color: #000;
    border: 3px solid #000;
    box-shadow:
        0 0 0 3px #f4f0e6,
        0 0 0 6px #000,
        6px 6px 0 6px #000;
}
#end-screen-container .es-titlebar {
    height: 32px;
    border-bottom: 3px solid #000;
    display: flex;
    align-items: stretch;
    background: #f4f0e6;
}
#end-screen-container .es-tb-square {
    width: 32px;
    border-right: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
#end-screen-container .es-tb-square span {
    width: 14px;
    height: 14px;
    border: 3px solid #000;
    display: block;
}
#end-screen-container .es-tb-stripes {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(0deg, #000 0 2px, transparent 2px 5px);
}
#end-screen-container .es-tb-title {
    background: #f4f0e6;
    padding: 0 18px;
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.15em;
    line-height: 1;
}
#end-screen-container .es-tb-icon {
    width: 32px;
    border-left: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
#end-screen-container .es-seal-glyph {
    display: inline-block;
    transform: translateY(-0.18em);
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
}
#end-screen-container .es-tabs {
    display: flex;
    padding: 0;
    background: #f4f0e6;
    border-bottom: 4px solid #000;
    gap: 0;
}
#end-screen-container .es-tab {
    all: unset;
    padding: 13px 24px;
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.18em;
    border-right: 4px solid #000;
    cursor: pointer;
    position: relative;
    line-height: 1;
    box-sizing: border-box;
    color: #555;
    background: #c8c4b8;
}
#end-screen-container .es-tab.is-active {
    background: #f4f0e6;
    color: #000;
}
#end-screen-container .es-tab-cover {
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: #f4f0e6;
}
#end-screen-container .es-tabs-spacer {
    flex: 1;
}
#end-screen-container .es-stage {
    height: clamp(380px, 44vh, 520px);
    position: relative;
    overflow: hidden;
}
#end-screen-container .es-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(.65, 0, .35, 1);
    transform: translateX(0%);
}
#end-screen-container .es-card-page {
    width: 33.333%;
    padding: 14px clamp(20px, 5%, 36px);
    box-sizing: border-box;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vh, 12px);
}
#end-screen-container .es-bg-symbol {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 36px;
    color: rgba(0, 0, 0, 0.08);
    font-family: monospace;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
#end-screen-container .es-page-title {
    text-align: center;
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.25em;
    margin: 0;
    padding-bottom: clamp(4px, 0.8vh, 8px);
    color: #000;
}
#end-screen-container .es-page-subtitle {
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 16px;
    opacity: 0.6;
    font-style: italic;
    margin: 0;
    color: #000;
}
#end-screen-container .es-board {
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.6;
    border: 2px solid #000;
    color: #000;
    box-sizing: border-box;
    position: relative;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #000 #f4f0e6;
}
#end-screen-container .es-board::-webkit-scrollbar {
    width: 12px;
}
#end-screen-container .es-board::-webkit-scrollbar-track {
    background: #f4f0e6;
    border-left: 2px solid #000;
    border-radius: 0;
}
#end-screen-container .es-board::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 0;
}
#end-screen-container .es-board::-webkit-scrollbar-thumb:hover {
    background: #333;
}
#end-screen-container .es-board::-webkit-scrollbar-corner {
    background: #f4f0e6;
}
#end-screen-container .es-board-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    gap: 10px;
    min-height: 38px;
}
#end-screen-container .es-board-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.05);
}
#end-screen-container .es-board-row.is-empty {
    opacity: 0.5;
    font-style: italic;
}
#end-screen-container .es-board-row.is-you {
    background: #000;
    color: #f4f0e6;
    padding-top: 6px;
    padding-bottom: 6px;
}
#end-screen-container .es-board-row.is-you.is-out {
    opacity: 0.88;
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
}
#end-screen-container .es-board-row.es-board-separator {
    justify-content: center;
    opacity: 0.45;
    font-style: italic;
    letter-spacing: 0.3em;
    border-top: 1px dashed rgba(0, 0, 0, 0.25);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.25);
}
#end-screen-container .es-board-pseudo {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}
#end-screen-container .es-board-time {
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
#end-screen-container .es-input-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0;
}
#end-screen-container .es-input-box {
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 3px solid #000;
    background: #f4f0e6;
    min-width: 0;
}
#end-screen-container .es-input-box .es-prefix {
    background: #000;
    color: #f4f0e6;
    padding: 8px 12px;
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
}
#end-screen-container .es-input-box input {
    all: unset;
    flex: 1;
    padding: 8px 12px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: 0.08em;
    background: #f4f0e6;
    color: #000;
    text-transform: uppercase;
    min-width: 0;
}
#end-screen-container .es-seal-btn {
    all: unset;
    padding: 8px 18px;
    background: #000;
    color: #f4f0e6;
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.18em;
    cursor: pointer;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
#end-screen-container .es-seal-btn:hover {
    background: #f4f0e6;
    color: #000;
}
#end-screen-container .es-seal-btn:disabled,
#end-screen-container .es-seal-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #000;
    color: #f4f0e6;
}

#end-screen-container .es-seal-status {
    margin: 0;
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: #000;
    min-height: 1.2em;
    line-height: 1.45;
    letter-spacing: 0.04em;
}
#end-screen-container .es-seal-status.is-error {
    color: #a02020;
}
#end-screen-container .es-seal-status.is-success {
    color: #0a4a18;
}
#end-screen-container .es-seal-status.is-info {
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
}
#end-screen-container .es-credits-body,
#end-screen-container .es-suite-body {
    font-family: 'VT323', monospace;
    font-size: 23px;
    line-height: 1.55;
    color: #000;
    margin: 0;
}
#end-screen-container .es-credits-body strong,
#end-screen-container .es-suite-body strong,
#end-screen-container .es-credits-body code,
#end-screen-container .es-suite-body code {
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
    font-size: 17px;
}
#end-screen-container .es-credits-body code,
#end-screen-container .es-suite-body code {
    font-size: 16px;
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 5px;
}
#end-screen-container .es-credits-body a,
#end-screen-container .es-suite-body a {
    color: #000;
    border-bottom: 2px solid #000;
    text-decoration: none;
    transition: background 0.15s;
}
#end-screen-container .es-credits-body a:hover,
#end-screen-container .es-suite-body a:hover {
    background: #000;
    color: #f4f0e6;
}
#end-screen-container .es-credits-list {
    list-style: none;
    padding: 0;
    margin: clamp(14px, 2.5vh, 22px) 0 0 0;
}
#end-screen-container .es-credits-list li {
    margin: 12px 0;
}
#end-screen-container .es-para-gap {
    display: block;
    height: 10px;
}
#end-screen-container .es-credits-body .es-at {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 1.35em;
    line-height: 1;
    margin-right: 1px;
    vertical-align: -0.08em;
}
#end-screen-container .es-suite-warn {
    margin-top: clamp(16px, 2.8vh, 24px);
    border: 2px solid #000;
    padding: 14px 14px 16px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
#end-screen-container .es-suite-warn-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Silkscreen', monospace;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #000;
    text-align: center;
}
#end-screen-container .es-suite-warn-title::before,
#end-screen-container .es-suite-warn-title::after {
    content: '------------------------------------------------------------';
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    color: rgba(0, 0, 0, 0.55);
}
#end-screen-container .es-suite-warn-title-text {
    flex: 0 0 auto;
}
#end-screen-container .es-suite-warn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 10px 12px;
    border: 3px solid #000;
    background: #f4f0e6;
    color: #000;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    line-height: 1.45;
    letter-spacing: 0.08em;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
#end-screen-container .es-suite-warn-btn:hover {
    background: #000;
    color: #f4f0e6;
}
#end-screen-container .es-suite-warn-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}
#end-screen-container .es-footer {
    border-top: 3px solid #000;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: repeating-linear-gradient(0deg, #000 0 2px, #f4f0e6 2px 5px);
}
#end-screen-container .es-navbtn {
    all: unset;
    background: #f4f0e6;
    padding: 5px 11px;
    border: 2px solid #000;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    cursor: pointer;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: #000;
    transition: background 0.15s, color 0.15s;
}
#end-screen-container .es-navbtn:hover {
    background: #000;
    color: #f4f0e6;
}
#end-screen-container .es-cardnum {
    background: #f4f0e6;
    padding: 2px 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    letter-spacing: 0.05em;
    color: #000;
    border: 2px solid #000;
}
@media (max-width: 640px) {
    #end-screen-container .es-stage { height: auto; min-height: 380px; }
    #end-screen-container .es-track { transition: none; }
    #end-screen-container .es-card-page { padding: 18px 18px; }
    #end-screen-container .es-tab { padding: 10px 14px; font-size: 12px; letter-spacing: 0.12em; }
    #end-screen-container .es-tb-title { font-size: 11px; padding: 0 10px; letter-spacing: 0.1em; }
    #end-screen-container .es-board { font-size: 11px; }
    #end-screen-container .es-credits-body,
    #end-screen-container .es-suite-body { font-size: 20px; }
    #end-screen-container .es-input-row { flex-direction: column; }
    #end-screen-container .es-seal-btn { justify-content: center; padding: 10px; }
}
#l14-loading {
    position: fixed;
    inset: 0;
    z-index: 10070;
    background: #2a2a2a;
    overflow: hidden;
    color: #f4f0e6;
    font-family: 'VT323', 'Monaco', 'Courier New', monospace;
}
#l14-loading .l14-bg-stripes {
    position: absolute;
    inset: 0;
    background: #2a2a2a;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02) 0 2px,
        transparent 2px 5px
    );
    opacity: 1;
}
#l14-loading .l14-card-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vh 3vw;
    box-sizing: border-box;
    transition: opacity 0.45s ease;
}
#l14-loading .l14-card-wrap.l14-out {
    opacity: 0;
    pointer-events: none;
}
#l14-loading .l14-card {
    width: min(640px, 92vw);
    max-width: 92vw;
    background: #f4f0e6;
    color: #000;
    border: 3px solid #000;
    box-shadow:
        0 0 0 3px #f4f0e6,
        0 0 0 6px #000,
        6px 6px 0 6px #000;
    transform: scale(0.7);
    opacity: 0;
    animation: l14-card-in 0.55s 0.15s cubic-bezier(.2, 1.45, .4, 1) forwards;
    overflow: hidden;
    box-sizing: border-box;
}
@keyframes l14-card-in {
    to {
        transform: scale(1);
        opacity: 1;
    }
}
#l14-loading .l14-card-titlebar {
    height: 32px;
    border-bottom: 3px solid #000;
    display: flex;
    align-items: stretch;
}
#l14-loading .l14-tb-sq {
    width: 32px;
    background: repeating-linear-gradient(45deg, #000 0 2px, #f4f0e6 2px 4px);
    border-right: 3px solid #000;
}
#l14-loading .l14-tb-sq:last-child {
    border-right: 0;
    border-left: 3px solid #000;
}
#l14-loading .l14-tb-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', 'Silkscreen', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    line-height: 1;
    text-align: center;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
}
#l14-loading .l14-card-body {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-sizing: border-box;
}
#l14-loading .l14-terminal {
    font-family: 'VT323', 'Monaco', 'Courier New', monospace;
    text-align: center;
    color: #000;
}
#l14-loading .l14-terminal .l14-ln {
    opacity: 0;
    letter-spacing: 0.02em;
}
#l14-loading .l14-terminal .l14-ln.l14-head {
    font-family: 'Press Start 2P', 'Silkscreen', monospace;
    font-size: 20px;
    letter-spacing: 0.10em;
    padding: 4px 0 12px;
    animation: l14-ln-blink 0.55s steps(2) 5;
}
#l14-loading .l14-terminal .l14-ln.l14-muted {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.7);
    padding-bottom: 4px;
}
#l14-loading .l14-terminal .l14-ln.l14-dim {
    font-size: 17px;
    color: rgba(0, 0, 0, 0.65);
    letter-spacing: 0.10em;
    margin-top: 22px;
    margin-bottom: 10px;
    font-family: 'VT323', 'Monaco', monospace;
}
#l14-loading .l14-terminal .l14-cursor {
    display: inline-block;
    width: 0.5em;
    height: 0.95em;
    vertical-align: -0.15em;
    background: #000;
    margin-left: 3px;
    animation: l14-cur-blink 0.6s steps(2) infinite;
}
@keyframes l14-ln-blink { 50% { opacity: 0.25; } }
@keyframes l14-cur-blink { 50% { opacity: 0; } }
#l14-loading .l14-timer-box {
    margin: 14px 0 6px;
    padding: 3px;
    border: 3px solid #000;
    background: #f4f0e6;
    box-shadow: 4px 4px 0 #000;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(.2, 1.3, .4, 1);
    box-sizing: border-box;
}
#l14-loading .l14-timer-box.l14-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
#l14-loading .l14-timer-row {
    background: #000;
    color: #f4f0e6;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
}
#l14-loading .l14-timer-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    color: #f4f0e6;
}
#l14-loading .l14-timer-value {
    font-family: 'Press Start 2P', 'Silkscreen', monospace;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: clamp(8px, 1.7vw, 14px);
}
#l14-loading .l14-card-footer {
    border-top: 3px solid #000;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(0deg, #000 0 2px, #f4f0e6 2px 5px);
}
#l14-loading .l14-continue-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f4f0e6;
    color: #000;
    padding: 10px 22px;
    border: 2px solid #000;
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow: 3px 3px 0 #000;
    transition:
        transform 0.1s,
        box-shadow 0.1s,
        background 0.15s,
        color 0.15s,
        opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}
#l14-loading .l14-continue-btn.l14-show {
    opacity: 1;
    pointer-events: auto;
}
#l14-loading .l14-continue-btn:hover {
    background: #000;
    color: #f4f0e6;
}
#l14-loading .l14-continue-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000;
}
#l14-loading .l14-continue-arrow {
    font-size: 10px;
}
#l14-loading .l14-door {
    position: absolute;
    top: 0;
    height: 100%;
    width: 51%;
    background: linear-gradient(180deg, #161210 0%, #050302 100%);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.04);
    z-index: 10;
    will-change: transform;
}
#l14-loading .l14-door-l { left: 0; }
#l14-loading .l14-door-r { right: 0; }
#l14-loading.l14-doors-open .l14-door-l {
    animation: l14-dl-open 1.0s 0.15s cubic-bezier(.2, .9, .2, 1) forwards;
}
#l14-loading.l14-doors-open .l14-door-r {
    animation: l14-dr-open 1.0s 0.15s cubic-bezier(.2, .9, .2, 1) forwards;
}
@keyframes l14-dl-open { to { transform: translateX(-100%); } }
@keyframes l14-dr-open { to { transform: translateX(100%); } }