@import url('../navigation.css');

.pc {
    --ink: #182c32;
    --orange: #ed7542;
    --cream: #f5f0e6;
    background: var(--cream);
    color: var(--ink);
    padding: 62px 18px 60px;
    font-family: system-ui, -apple-system, 'Microsoft JhengHei', sans-serif;
    margin-top: -40px;
}

.pc * {
    box-sizing: border-box
}

.pc [hidden] {
    display: none !important
}

.pc-wrap {
    max-width: 1120px;
    margin: auto
}

.pc a {
    color: inherit;
    text-decoration: none
}

.pc nav {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px
}

.pc-intro {
    margin: 40px 0 30px
}

.pc-intro>p {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px
}

.pc-intro>p span {
    margin-left: 20px;
    color: #7c827d
}

.pc h1 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 850;
    letter-spacing: -2px;
    margin: 12px 0 16px
}

.pc h1 em {
    font-style: normal;
    color: #b94e29
}

.pc-intro>div {
    font-size: 14px;
    color: #687774
}

.pc-intro>div span {
    margin-left: 28px;
    font-size: 12px
}

.pc-cabinet {
    border: 1px solid #243e3b;
    border-radius: 14px;
    overflow: hidden;
    background: #fffcf5;
    box-shadow: 0 8px 0 #d8d6c9
}

.pc-brand {
    background: #213f3d;
    color: #fff8e5;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.pc-brand>div {
    display: flex;
    align-items: center;
    gap: 14px
}

.pc-logo {
    display: grid;
    place-items: center;
    background: #f2b45d;
    color: #1d3736;
    width: 44px;
    height: 44px;
    border-radius: 7px;
    font-weight: 900;
    transform: rotate(-5deg)
}

.pc-brand h2 {
    font-size: 23px;
    margin: 0;
    color: inherit
}

.pc-brand p {
    font: 10px monospace;
    letter-spacing: 2px;
    margin: 4px 0 0
}

.pc button {
    font: inherit;
    cursor: pointer;
    border: 1px solid #b9c1b5;
    background: #f7f3e8;
    border-radius: 6px;
    color: var(--ink);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    touch-action: manipulation
}

.pc button:disabled {
    opacity: .5;
    cursor: default
}

.pc button:focus-visible,
.pc a:focus-visible,
.pc canvas:focus-visible {
    outline: 3px solid #f28d4d;
    outline-offset: 3px
}

.pc-brand button {
    color: #fff5dc;
    background: transparent;
    border-color: #79918a
}

.pc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 274px
}

.pc-play {
    padding: 22px 26px;
    border-right: 1px solid #d4d7c9;
    background: #eaece1
}

.pc-mission {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font: 10px monospace;
    letter-spacing: 1px;
    margin-bottom: 12px
}

.pc-screen {
    position: relative;
    border: 8px solid #182e30;
    border-radius: 8px;
    overflow: hidden;
    background: #10282d
}

.pc canvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    touch-action: none
}

.pc-overlay {
    position: absolute;
    inset: 0;
    background: #10282de8;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fdf0ce;
    padding: 24px
}

.pc-overlay>div {
    max-width: 360px
}

.pc-overlay p:first-child {
    font: 10px monospace;
    letter-spacing: 2px;
    color: #f2b45d
}

.pc-overlay h3 {
    font-size: clamp(19px, 2.3vw, 28px);
    color: inherit;
    line-height: 1.6;
    margin: 14px 0
}

.pc-overlay p {
    font-size: 12px;
    line-height: 1.9
}

.pc-overlay button {
    background: #f3ba68;
    border: 0;
    padding: 14px 30px;
    margin-top: 16px;
    font-size: 14px
}

.pc #pc-status {
    min-height: 22px;
    margin: 12px 0;
    font-size: 12px;
    color: #3f5f56
}

.pc-controls {
    display: flex;
    align-items: center;
    gap: 20px
}

.pc-controls p {
    font-size: 10px;
    line-height: 1.9;
    color: #6c7c72
}

.pc-controls>button {
    margin-left: auto
}

.pc-pad {
    display: grid;
    grid-template: repeat(3, 32px)/repeat(3, 36px);
    gap: 3px;
    flex-shrink: 0
}

.pc-pad button {
    padding: 0;
    font-size: 13px;
    background: #fffdf5;
    box-shadow: 0 2px 0 #b8c0b1
}

.pc-pad [data-dir=U] {
    grid-area: 1/2
}

.pc-pad [data-dir=L] {
    grid-area: 2/1
}

.pc-pad [data-dir=R] {
    grid-area: 2/3
}

.pc-pad [data-dir=D] {
    grid-area: 3/2
}

.pc-pad span {
    grid-area: 2/2;
    display: grid;
    place-items: center;
    font: 10px monospace;
    color: #859086
}

.pc-sidebar {
    padding: 22px
}

.pc-score {
    border-bottom: 1px solid #dddccd;
    padding-bottom: 18px
}

.pc-score>span,
.pc-stats span,
.pc-express>span {
    font: 10px monospace;
    letter-spacing: 1px;
    color: #68786d
}

.pc-score>strong {
    display: block;
    font: 700 38px monospace;
    letter-spacing: 2px;
    margin: 8px 0;
    color: #234b42
}

.pc-score small {
    font-size: 10px;
    color: #788174
}

.pc-score b {
    margin-left: 15px;
    font: 12px monospace
}

.pc-stats {
    display: grid;
    gap: 18px;
    margin: 20px 0
}

.pc-stats strong {
    display: block;
    font: 700 20px monospace;
    margin-top: 6px
}

.pc #pc-lives {
    color: #ba572e
}

.pc-express progress {
    display: block;
    width: 100%;
    height: 8px;
    margin: 10px 0;
    accent-color: #df9b36
}

.pc-express p,
.pc-legend p {
    font-size: 10px;
    line-height: 1.8;
    color: #66786c
}

.pc-legend {
    border-block: 1px solid #dddccd;
    padding: 8px 0;
    margin: 18px 0
}

.pc-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    vertical-align: middle
}

.pc-parcel-icon {
    background: #f0bc74;
    border: 2px solid #ba8f52
}

.pc-bolt-icon {
    color: #b28300;
    font: bold 19px monospace;
    font-style: normal
}

.pc-gate-icon {
    background: #77c99d
}

.pc #pc-restart {
    width: 100%
}

.pc-ranking {
    margin-top: 24px
}

.pc-ranking h3 {
    font-size: 13px;
    margin: 0;
    color: var(--ink)
}

.pc-ranking h3 span {
    font: 9px monospace;
    float: right;
    color: #89947d
}

.pc-ranking ol {
    padding-left: 24px;
    font: 11px monospace;
    margin: 16px 0
}

.pc-ranking li {
    padding: 5px 0
}

.pc-ranking li span {
    float: right
}

.pc-ranking p,
.pc-ranking a {
    font-size: 10px;
    line-height: 1.8
}

.pc-ranking a {
    border-bottom: 1px solid #bcae87
}

.pc-route {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 30px 5px;
    font-size: 12px;
    color: #768174
}

.pc-route b {
    font: 11px monospace;
    margin-right: 8px;
    color: #243e37
}

.pc-help {
    border-top: 1px solid #d5d6c5;
    padding-top: 18px;
    font-size: 12px
}

.pc-help summary {
    cursor: pointer;
    font-weight: 700
}

.pc-help p {
    line-height: 1.9;
    max-width: 850px;
    color: #66766b
}

@media(max-width:760px) {
    .pc {
        padding: 52px 12px 35px;
        margin-top: -40px;
    }

    .pc-intro {
        margin-top: 26px
    }

    .pc-intro>p span {
        display: block;
        margin: 8px 0
    }

    .pc-intro>div span {
        display: block;
        margin: 8px 0
    }

    .pc-layout {
        grid-template-columns: 1fr
    }

    .pc-play {
        padding: 15px;
        border-right: 0
    }

    .pc-brand {
        padding: 16px
    }

    .pc-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding: 20px
    }

    .pc-score {
        border: 0
    }

    .pc-score>strong {
        font-size: 29px
    }

    .pc-stats {
        margin: 0;
        gap: 10px
    }

    .pc-stats strong {
        font-size: 17px
    }

    .pc-express,
    .pc-legend {
        margin: 0
    }

    .pc-ranking {
        grid-column: 1/-1;
        margin: 0
    }

    .pc #pc-restart {
        grid-column: 1/-1
    }

    .pc-route {
        flex-wrap: wrap;
        font-size: 10px
    }

    .pc-controls {
        gap: 12px
    }

    .pc-controls>button {
        padding: 9px
    }

    .pc-screen {
        border-width: 5px
    }

    .pc-overlay {
        padding: 12px
    }

    .pc-overlay h3 {
        margin: 8px 0
    }

    .pc-overlay button {
        margin-top: 6px;
        padding: 11px 20px
    }
}