html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;

    background-image: none;
    background-color: #222222;

    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;

    color: #eeeeee;

    letter-spacing: 1px;

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;
}


body {
    display: flex;

    justify-content: center;

    padding: 55px 20px;

    box-sizing: border-box;
}


/* =========================
   PAGE
   ========================= */

.page {
    width: 820px;

    max-width: 100%;
}


/* =========================
   PSP BODY
   ========================= */

.psp {
    position: relative;

    display: flex;

    width: 100%;
    height: 470px;

    box-sizing: border-box;

    background: #dddddd;

    border: 3px solid #000000;

    border-radius: 42px;

    box-shadow: 8px 8px 0 #000000;

    overflow: hidden;
}


/* =========================
   LEFT SIDE
   ========================= */

.left-side {
    position: relative;

    width: 155px;
    min-width: 155px;

    flex-shrink: 0;

    background: #dddddd;

    border-right: 3px solid #000000;
}


/* =========================
   SPEAKERS
   ========================= */

.speaker {
    position: absolute;

    top: 35px;
    left: 28px;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.speaker span {
    display: block;

    width: 48px;
    height: 3px;

    background: #333333;

    border: 1px solid #000000;
}


/* =========================
   D-PAD
   ========================= */

.dpad {
    position: absolute;

    top: 145px;
    left: 45px;

    width: 70px;
    height: 70px;
}


.dpad-up,
.dpad-down,
.dpad-left,
.dpad-right,
.dpad-center {
    position: absolute;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #333333;

    color: #dddddd;

    border: 2px solid #000000;

    box-sizing: border-box;

    font-size: 10px;

    z-index: 1;
}


.dpad-up,
.dpad-down {
    left: 22px;

    width: 26px;
    height: 30px;
}


.dpad-up {
    top: 0;

    border-radius: 5px 5px 0 0;
}


.dpad-down {
    bottom: 0;

    border-radius: 0 0 5px 5px;
}


.dpad-left,
.dpad-right {
    top: 22px;

    width: 30px;
    height: 26px;
}


.dpad-left {
    left: 0;

    border-radius: 5px 0 0 5px;
}


.dpad-right {
    right: 0;

    border-radius: 0 5px 5px 0;
}


.dpad-center {
    left: 22px;
    top: 22px;

    width: 26px;
    height: 26px;

    border: 0;

    background: #333333;

    z-index: 2;
}


/* =========================
   ANALOG
   ========================= */

.analog {
    position: absolute;

    left: 47px;
    bottom: 45px;

    width: 61px;
    height: 25px;

    background: #333333;

    border: 2px solid #000000;

    border-radius: 50%;

    box-shadow:
        inset 0 3px 0 rgba(255,255,255,0.15);
}


.analog-stick {
    position: absolute;

    top: -5px;
    left: 14px;

    width: 28px;
    height: 28px;

    background: #333333;

    border: 2px solid #000000;

    border-radius: 50%;
}


/* =========================
   SCREEN AREA
   ========================= */

.screen-area {
    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #dddddd;

    padding: 25px 12px;

    box-sizing: border-box;
}


/* =========================
   SCREEN FRAME
   ========================= */

.screen-frame {
    width: 100%;
    height: 390px;

    min-width: 0;

    padding: 9px;

    box-sizing: border-box;

    background: #000000;

    border: 2px solid #444444;

    border-radius: 8px;

    box-shadow:
        inset 0 0 0 2px #dddddd;
}


/* =========================
   SCREEN
   ========================= */

.screen {
    width: 100%;
    height: 100%;

    min-width: 0;

    display: flex;

    flex-direction: column;

    background: #222222;

    border: 1px solid #000000;

    box-sizing: border-box;

    overflow: hidden;
}


/* =========================
   SCREEN TOP
   ========================= */

.screen-top {
    display: flex;

    justify-content: space-between;
    align-items: center;

    flex-shrink: 0;

    padding: 6px 10px;

    background: #dddddd;

    color: #111111;

    border-bottom: 1px solid #000000;

    font-family: Times, serif;

    font-size: 12px;

    letter-spacing: 2px;
}


.battery {
    font-size: 9px;

    letter-spacing: 0;

    color: #333333;
}


/* =========================
   SCREEN CONTENT
   ========================= */

.screen-content {
    flex: 1;

    min-width: 0;
    min-height: 0;

    padding: 10px;

    box-sizing: border-box;

    overflow: hidden;

    background: #222222;
}


/* =========================
   SCREEN HEADING
   ========================= */

.screen-heading {
    display: block;

    padding-bottom: 5px;

    margin-bottom: 5px;

    border-bottom: 1px dotted #777777;

    color: #dddddd;

    font-size: 9px;

    letter-spacing: 2px;
}


/* =========================
   GAME LIBRARY
   ========================= */

.games {
    display: flex;

    flex-wrap: nowrap;

    gap: 14px;

    width: 100%;
    height: 285px;

    box-sizing: border-box;

    padding: 8px 5px 12px;

    overflow-x: scroll;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-gutter: stable;

    scrollbar-width: auto;

    scrollbar-color: #dddddd #000000;
}


/* =========================
   SCROLLBAR
   ========================= */

.games::-webkit-scrollbar {
    height: 10px;
}


.games::-webkit-scrollbar-track {
    background: #000000;

    border: 1px solid #dddddd;

    border-radius: 2px;
}


.games::-webkit-scrollbar-thumb {
    background: #dddddd;

    border: 2px solid #000000;

    border-radius: 2px;
}


.games::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}


/* =========================
   GAME
   ========================= */

.game {
    display: block;

    flex: 0 0 145px;

    width: 145px;
    height: 260px;

    padding: 5px;

    box-sizing: border-box;

    background: #000000;

    border: 1px solid #dddddd;

    color: #ffffff;

    text-decoration: none;

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.game:hover {
    transform: translateY(-4px);

    box-shadow:
        0 4px 0 #dddddd;
}


/* =========================
   GAME COVER
   ========================= */

.game img {
    display: block;

    width: 100%;
    height: 215px;

    object-fit: cover;

    border: none;

    box-sizing: border-box;
}


/* =========================
   GAME TITLE
   ========================= */

.game-title {
    display: block;

    min-height: 30px;

    padding: 5px 2px 2px;

    font-family: Times, serif;

    font-size: 9px;

    line-height: 1.2;

    text-align: center;

    color: #dddddd;
}


/* =========================
   SCREEN BOTTOM
   ========================= */

.screen-bottom {
    display: flex;

    justify-content: space-between;

    flex-shrink: 0;

    padding: 5px 10px;

    background: #000000;

    color: #dddddd;

    font-size: 8px;

    letter-spacing: 1px;
}


/* =========================
   RIGHT SIDE
   ========================= */

.right-side {
    position: relative;

    width: 145px;
    min-width: 145px;

    flex-shrink: 0;

    background: #dddddd;

    border-left: 3px solid #000000;
}


/* =========================
   FACE BUTTONS
   ========================= */

.face-buttons {
    position: absolute;

    top: 125px;
    left: 38px;

    width: 75px;
    height: 75px;
}


.face-buttons div {
    position: absolute;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    background: #333333;

    border: 2px solid #000000;

    border-radius: 50%;

    color: #dddddd;

    font-size: 11px;

    box-sizing: border-box;
}


.face-triangle {
    top: 0;
    left: 25px;
}


.face-square {
    top: 25px;
    left: 0;
}


.face-circle {
    top: 25px;
    right: 0;
}


.face-cross {
    bottom: 0;
    left: 25px;
}


/* RIGHT SPEAKER */

.right-speaker {
    top: auto;

    bottom: 45px;

    left: 42px;
}


/* =========================
   BOTTOM CONTROLS
   ========================= */

.psp-bottom {
    position: absolute;

    bottom: 10px;

    left: 155px;
    right: 145px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 14px;

    pointer-events: none;
}


.psp-bottom > div {
    padding: 2px 6px;

    color: #333333;

    font-size: 7px;

    letter-spacing: 1px;
}


.select-button,
.start-button {
    border-bottom: 1px solid #333333;
}


.home-button {
    border: 1px solid #333333;

    border-radius: 50%;
}


/* =========================
   BACK LINK
   ========================= */

.back-area {

    text-align: center;

    margin-top: 28px;
}


.back-area a {

    display: inline-block;

    padding: 6px 15px;

    background: #dddddd;

    color: #111111;

    border: 1px solid #111111;

    box-shadow: 3px 3px 0 #000000;

    text-decoration: none;

    font-style: italic;

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}


.back-area a:hover {

    transform: translate(-2px, -2px);

    box-shadow: 5px 5px 0 #000000;

    background: #333333;

    color: #ffffff;

}


.back-area a:active {

    transform: translate(1px, 1px);

    box-shadow: 0 0 0 #000000;

}


/* =========================
   GENERAL LINKS
   ========================= */

a {

    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ctext x='2' y='19' font-size='18' fill='%23ffffff'%3E%E2%98%85%3C/text%3E%3C/svg%3E") 2 2, auto;

}


/* =========================
   TABLET
   ========================= */

@media (max-width: 850px) {

    body {
        padding: 25px 10px;
    }


    .left-side {
        width: 100px;
        min-width: 100px;
    }


    .right-side {
        width: 100px;
        min-width: 100px;
    }


    .psp-bottom {
        left: 100px;
        right: 100px;
    }


    .game {
        flex-basis: 145px;

        width: 145px;
    }


    .game img {
        height: 200px;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .psp {
        display: block;

        height: auto;

        min-height: 500px;

        border-radius: 25px;

        padding-bottom: 20px;
    }


    .left-side,
    .right-side {
        display: none;
    }


    .screen-area {
        width: 100%;

        padding: 15px;

        box-sizing: border-box;
    }


    .screen-frame {
        width: 100%;

        height: 430px;
    }


    .psp-bottom {
        display: none;
    }


    .game {
        flex-basis: 135px;

        width: 135px;
    }


    .game img {
        height: 200px;
    }

}