@import"https://fonts.googleapis.com/css2?family=Roboto+Mono:ital@0;1&display=swap";

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--alt)) transparent
}

*::-webkit-scrollbar {
    width: 12px
}

*::-webkit-scrollbar-track {
    background: transparent
}

*::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: rgb(var(--alt));
    border: 2px solid transparent
}

:root {
    --main: 0, 230, 50;
    --alt: 0, 160, 30;
    --black: #12100d
}

::-moz-selection {
    background-color: rgba(var(--alt), .7);
    color: rgb(var(--main))
}

::selection {
    background-color: rgba(var(--alt), .7);
    color: rgb(var(--main))
}

body {
    background: #000;
    color: rgb(var(--main));
    font-family: Roboto Mono, monospace;
    display: grid;
    align-content: center;
    position: fixed;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 15px
}

@media only screen and (max-width: 800px) {
    body {
        position: static;
        height: auto;
        min-height: 100vh;
        align-content: start
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0
}

b,
strong {
    font-weight: 400
}

.noclick {
    pointer-events: none
}

.piece {
    display: block;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%
}

.frame {
    background-color: transparent;
    border-radius: 30px;
    border: 20px solid;
    border-bottom-color: #0f0e0d;
    border-left-color: #080807;
    border-right-color: #080807;
    border-top-color: #020202;
    box-shadow: inset 0 0 24rem #000, inset 0 0 5rem #000, 0 0 16rem #000;
    pointer-events: none;
    max-width: 900px;
    height: 550px;
    width: 96%;
    max-height: calc(100vh - 20px);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    min-height: 350px
}

.output {
    animation: crt-output 10ms infinite;
    background-color: var(--black);
    position: absolute;
    padding: 30px;
    pointer-events: auto;
    text-shadow: 0rem .2rem 1rem currentColor;
    z-index: -1
}

.frame * {
    cursor: none !important;
    font-weight: 400
}

@keyframes crt-output {
    0% {
        opacity: .9
    }

    50% {
        opacity: 1
    }
}

.scanlines {
    background: linear-gradient(to bottom, #fff0, #fff0 50%, #0003 70%, #0009);
    background-size: 100% .5rem;
    border-radius: 30px;
    position: absolute;
    z-index: 0;
    pointer-events: none
}

.glow {
    animation: crt-glow 60s infinite;
    background: radial-gradient(circle at center, rgb(var(--main)), rgba(var(--alt), .78) 58%, rgba(var(--alt), .55) 80%, rgba(var(--alt), .27) 93%, rgba(var(--alt), 0));
    opacity: .15;
    pointer-events: none;
    position: fixed;
    z-index: 2
}

@keyframes crt-glow {
    0% {
        opacity: .1
    }

    50% {
        opacity: .2
    }
}

.pipboy {
    border: 3px solid rgb(var(--main));
    border-width: 2px 0;
    position: relative;
    height: 100%;
    padding: 16px;
    z-index: 1
}

.pipboy:before,
.pipboy:after {
    position: absolute;
    content: "";
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgb(var(--main)), #0000 35%, #0000 65%, rgb(var(--main)));
    top: 0
}

.pipboy:before {
    left: 0
}

.pipboy:after {
    right: 0
}

.pip-title {
    font-size: 22px;
    background: none;
    border: none;
    color: rgb(var(--main));
    position: absolute;
    padding: 0 5px;
    text-transform: uppercase;
    top: -15px;
    left: 40px;
    z-index: 10;
    letter-spacing: .1em
}

.pip-title:after {
    background: #111;
    content: "";
    height: 3px;
    width: 100%;
    left: 0;
    top: 13px;
    position: absolute;
    z-index: -1
}

.pip-head {
    position: absolute;
    top: 0;
    right: 0;
    width: -moz-max-content;
    width: max-content;
    max-width: 100%;
    text-align: right;
    background: linear-gradient(to bottom, var(--black) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1
}

.pip-head li {
    float: left;
    margin-left: 10px;
    padding: 5px 10px;
    min-width: 120px;
    position: relative
}

.pip-head li:before {
    content: "";
    position: absolute;
    background: var(--black);
    width: 10px;
    height: 2px;
    top: -2px;
    left: -10px
}

.pip-head li:after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, rgb(var(--main)), #0000)
}

.pip-head li b {
    float: left;
    margin-right: 1em
}

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

.pipboy ul {
    margin: 0;
    padding: 0;
    list-style: none
}

.pipboy>.tab-content {
    line-height: 1.2em;
    overflow-y: hidden;
    overflow-x: hidden;
    display: block;
    height: 100%;
    padding-right: 1px
}

.pipboy>.tab-content>.tab-pane {
    padding-left: 30px;
    height: 100%;
    overflow-y: auto
}

#items,
#stats {
    margin-top: 15px
}

#stats.tab-pane {
    padding-left: 2px;
    overflow: hidden
}

.pip-body {
    position: relative;
    z-index: 0
}

label {
    cursor: pointer
}

.options {
    display: block;
    width: 300px;
    max-width: 32%;
    position: fixed
}

.colors {
    display: grid;
    grid-template-columns: 33.33% 33.33% 33.33%
}

.colors label {
    outline: 1px solid rgb(var(--main));
    padding: 5px;
    text-align: center;
    transition: all .1s ease;
    margin: 5px
}

.options input,
.colors input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    left: 0;
    top: 0
}

.options label,
.options a {
    display: block;
    padding: 5px 5px 5px 25px;
    margin: 5px 0 0 -25px;
    position: relative;
    outline: .5px solid transparent;
    width: 100%
}

.options .active a {
    outline: 0px solid transparent
}

.frame label:hover,
.options a:hover,
.frame label:focus {
    outline: 2px solid currentColor;
    background: rgba(var(--alt), .25)
}

.colors input:checked+label {
    color: var(--black);
    background: rgb(var(--main), .8)
}

.options label:before,
.options a:before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    left: 8px;
    top: 9px;
    outline: 1.5px solid transparent
}

.options label:hover:before,
.options a:hover:before {
    outline-color: currentColor
}

.options input:checked+label:before,
.options .active a:before {
    background: currentColor;
    outline-color: currentColor
}

.pip-foot {
    display: block;
    position: absolute;
    bottom: -14px;
    width: calc(100% - 60px);
    left: 30px;
    z-index: 0
}

.pip-foot li {
    display: contents
}

.pip-foot a {
    border-radius: 0;
    display: block;
    float: left;
    width: 12%;
    height: 28px;
    margin: 0 4%;
    text-align: center;
    position: relative;
    line-height: 25px
}

.pip-foot a:after {
    content: "";
    position: absolute;
    background: var(--black);
    width: 100%;
    height: 2px;
    left: 0;
    bottom: 12px;
    z-index: -1
}

a:focus {
    outline: 1px solid;
    outline-offset: -1px
}

a,
label,
label:before {
    transition: all .1s;
    outline: .5px solid transparent
}

a:hover,
a.active,
li.active a {
    outline: 2px solid currentColor
}

a:hover {
    background: rgba(var(--alt), .25)
}

.pipboy .side-menu {
    width: 60px;
    position: fixed
}

.side-menu a {
    display: block;
    width: 60px;
    line-height: 25px;
    padding: 0 10px 2px;
    margin: 6px 0
}

.stats-page {
    display: block;
    width: calc(100% - 80px);
    float: right;
    position: relative;
    padding-right: 10px
}

.stats-page h4 {
    border-bottom: 2px solid rgba(var(--main), .25);
    margin: 10px 0 0;
    padding-bottom: 10px;
    text-transform: uppercase
}

.stats-page li {
    padding: 10px 0;
    border-bottom: 2px solid rgba(var(--main), .25)
}

.stats-page .right-options {
    position: absolute;
    right: 0;
    top: 50px;
    max-width: -moz-max-content;
    max-width: max-content
}

.right-options {
    display: block;
    float: right;
    padding-right: 1px;
    max-width: 33%;
    white-space: nowrap
}

#items .right-options {
    margin-bottom: 100px
}

.right-options a {
    display: block;
    text-align: right;
    padding: 5px;
    margin-bottom: 5px
}

.right-options a:after {
    content: "»";
    padding-left: 5px
}

.frame .disabled {
    color: rgb(var(--alt));
    pointer-events: none
}

.frame button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    color: rgb(var(--main));
    border: 1px solid rgb(var(--main));
    padding: 3px 10px;
    transition: all .1s ease
}

.frame button:hover,
.frame button:focus {
    background: rgba(var(--alt), .25);
    outline: 1px solid
}

.info {
    width: 60%;
    float: right;
    padding-top: 10px
}

.info-table {
    margin-top: 100px
}

.info-table li {
    float: left;
    margin-left: 1.3%;
    margin-bottom: 3px;
    padding: 4px 6px;
    width: 32%;
    position: relative;
    border-top: 2px solid;
    text-align: right
}

.info-table li b {
    float: left;
    margin-right: 6px
}

.info-table li.clear {
    clear: left
}

.info-table li.span-2,
.info-table .vboy-wrap {
    width: 65.4%;
    text-align: left
}

.condition {
    display: block;
    background: rgba(var(--alt), .25);
    float: right;
    height: 1em;
    width: 70px;
    max-width: calc(100% - 35px);
    margin: 2px 2px 0 -5px;
    position: relative
}

.condition .fill {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgb(var(--main))
}

.condition:after {
    content: "";
    position: absolute;
    right: 23%;
    height: 100%;
    top: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--black) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, var(--black) 100%)
}

.extra {
    border-top: 2px solid;
    float: left;
    clear: both;
    width: 98.7%;
    position: relative;
    margin: 0 0 0 1.3%;
    padding: 5px 6px 5px 34.6%
}

.extra b {
    position: absolute;
    left: 6px
}

.info-table li:after,
.extra:after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, rgb(var(--main)), #0000)
}

.info-table .vboy-wrap {
    border: none
}

.info-table .vboy-wrap:after {
    display: none
}

.vboy {
    height: 180px;
    pointer-events: none;
    background-image: url(/YGEtRyO.gif);
    background-size: contain;
    background-position: 60% center;
    background-repeat: no-repeat;
    filter: hue-rotate(-52deg) saturate(.9)
}

.item-icon {
    position: absolute;
    bottom: 4px;
    left: 0
}

.icon {
    float: left;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-right: 7px;
    border: 2px solid;
    -o-object-fit: contain;
    object-fit: contain
}

.icon img {
    max-width: 100%;
    max-height: 100%
}

.post {
    line-height: 1.5em;
    padding-right: 20px;
    font-size: 14px
}

.cursor {
    position: absolute;
    z-index: -1;
    pointer-events: none
}

.cursor:before {
    content: "";
    display: block;
    width: 20px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat
}

.cursor.cursor-hidden:before {
    background-image: unset
}

.cursor.cursor-default:before {
    background-image: url(https://cybersandbox.ca/resources/nv-cursor.png);
    filter: brightness(.8)
}

.cursor.cursor-input:before {
    background-image: url(https://cybersandbox.ca/resources/nv-cur-text.png);
    filter: brightness(.8)
}

.cursor.cursor-active:before {
    background-image: url(https://cybersandbox.ca/resources/nv-cursor.png);
    filter: brightness(1.15) saturate(1.15)
}

.fade-a {
    animation: fade-swap 8s infinite;
    animation-delay: -4s;
    opacity: 1
}

.fade-b {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0 6px;
    opacity: 0;
    animation: fade-swap 8s infinite
}

.pip-head .fade-b {
    padding: 0 10px
}

@keyframes fade-swap {
    0% {
        opacity: 0;
        color: rgb(var(--alt))
    }

    20% {
        opacity: 0;
        color: rgb(var(--alt))
    }

    30% {
        opacity: 1;
        color: rgb(var(--main))
    }

    65% {
        opacity: 1;
        color: rgb(var(--main))
    }

    75% {
        opacity: 0;
        color: rgb(var(--alt))
    }

    to {
        opacity: 0;
        color: rgb(var(--alt))
    }
}

@media only screen and (max-width: 800px) {
    .frame {
        height: auto;
        min-height: 100vh;
        width: 100%;
        max-height: unset;
        border: none;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
        position: relative;
        overflow: visible
    }

    .output {
        padding: 20px 10px 80px;
        height: auto;
        min-height: calc(100vh - 40px);
        overflow: visible;
        position: static
    }

    .pipboy {
        padding: 12px 12px 100px;
        min-height: calc(100vh - 120px);
        position: relative
    }

    .pipboy>.tab-content {
        overflow: visible
    }

    .pipboy>.tab-content>.tab-pane {
        overflow: visible;
        padding-top: 10px;
        padding-left: 10px
    }

    .pip-title:after,
    .pip-title:before {
        display: none !important
    }

    #items,
    #stats {
        margin-top: 70px;
        padding-top: 15px
    }

    .pip-title {
        font-size: 18px;
        left: 0;
        top: 20px;
        position: relative;
        white-space: nowrap;
        overflow: visible;
        width: auto;
        max-width: 100%;
        margin-bottom: 20px;
        padding: 10px 20px;
        background: var(--black);
        border: 2px solid rgb(var(--main))
    }

    .pip-title:after {
        background: var(--black);
        content: "";
        height: 3px;
        width: 100%;
        left: 0;
        top: 13px;
        position: absolute;
        z-index: -1
    }

    .pip-title:before {
        content: "";
        position: absolute;
        background: var(--black);
        height: 4px;
        width: 120px;
        left: -10px;
        top: 10px;
        z-index: 9
    }

    .pip-head {
        width: 100%;
        background: transparent;
        position: relative;
        top: 0;
        margin-bottom: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap
    }

    .pip-head li {
        width: calc(25% - 8px);
        border-top: 2px solid;
        margin-bottom: 8px;
        margin-top: -2px;
        padding: 8px 2px;
        min-width: unset;
        font-size: 12px;
        text-align: center;
        float: none !important;
        margin-left: 0;
        flex: 1
    }

    .pip-head li:not(:nth-of-type(2)):before {
        display: none
    }

    .pip-body .options {
        width: 100%;
        max-width: unset;
        position: relative;
        margin-bottom: 15px
    }

    .pip-body {
        position: relative
    }

    .pip-body .info {
        width: calc(100% + 20px);
        margin-left: -20px;
        margin-top: 15px;
        position: relative;
        padding-bottom: 15px;
        float: none;
        height: auto
    }

    .pip-body .info:after,
    .pip-head:after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 2px;
        width: 100%;
        background: linear-gradient(to right, #0000, rgb(var(--main)) 35%, rgb(var(--main)) 65%, #0000)
    }

    .options label,
    .options a {
        width: calc(100% + 20px);
        max-width: unset;
        padding: 8px 5px 8px 20px;
        margin: 3px 0 0 -20px;
        font-size: 14px
    }

    .pip-head:after {
        top: unset;
        bottom: 3px
    }

    .stats-page {
        padding: 0;
        width: 100%;
        float: none
    }

    .stats-page h4 {
        font-size: 16px;
        margin: 15px 0 10px
    }

    .stats-page li {
        padding: 8px 0;
        font-size: 14px
    }

    .post {
        padding: 10px;
        font-size: 13px;
        line-height: 1.4em
    }

    .pip-foot a {
        width: 16%;
        height: 35px;
        margin: 0 2%;
        line-height: 32px;
        overflow: hidden;
        font-size: .8em;
        padding: 0 2px;
        background: var(--black);
        border: 1px solid rgb(var(--main))
    }

    .pip-body,
    .targeting-game,
    .tab-content {
        padding-bottom: 80px
    }

    .pip-foot {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translate(-50%);
        width: 90%;
        max-width: 400px;
        z-index: 9999;
        background: var(--black) !important;
        padding: 10px 15px;
        border: 1px solid rgb(var(--main));
        box-shadow: 0 0 15px #000c;
        margin: 0;
        border-radius: 0
    }

    .pip-foot a {
        background: transparent !important;
        border: none;
        padding: 5px 8px;
        margin: 0 2px
    }

    .pip-foot {
        background-image: none !important;
        background: var(--black) !important
    }

    .pip-foot a:after {
        bottom: 16px
    }

    .cursor.cursor-active:before {
        background-image: url(https://cybersandbox.ca/resources/nv-cursor.png);
        filter: brightness(1)
    }

    .right-options {
        position: relative;
        float: none;
        max-width: 100%;
        white-space: normal;
        margin: 10px 0;
        text-align: center
    }

    .right-options a {
        display: inline-block;
        text-align: center;
        padding: 8px 15px;
        margin: 0 5px 5px 0;
        border: 1px solid currentColor
    }

    .info-table {
        margin-top: 20px
    }

    .info-table li {
        width: 100%;
        margin: 0 0 5px;
        padding: 8px;
        text-align: left;
        float: none
    }

    .info-table li.span-2,
    .info-table .vboy-wrap {
        width: 100%
    }

    .extra {
        width: 100%;
        margin: 10px 0;
        padding: 10px
    }

    .extra b {
        position: static;
        display: block;
        margin-bottom: 5px
    }

    .vboy {
        height: 120px;
        background-position: center
    }

    .colors {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .colors label {
        padding: 10px 5px;
        margin: 0;
        font-size: 13px
    }

    .pipboy .side-menu {
        width: 100%;
        position: relative;
        margin-bottom: 15px
    }

    .side-menu a {
        display: inline-block;
        width: auto;
        line-height: 25px;
        padding: 5px 15px;
        margin: 0 5px 5px 0;
        border: 1px solid currentColor
    }
}

@media only screen and (max-width: 480px) {
    .output {
        padding: 20px 8px 100px;
        min-height: calc(100vh - 30px)
    }

    .pipboy {
        padding: 8px 8px 120px;
        min-height: calc(100vh - 140px)
    }

    .pip-title {
        font-size: 16px;
        left: 0;
        top: 15px;
        position: relative;
        white-space: nowrap;
        overflow: visible;
        width: auto;
        max-width: 100%;
        margin-bottom: 15px;
        padding: 8px 15px;
        background: var(--black);
        border: 2px solid rgb(var(--main))
    }

    .pip-title:after {
        background: var(--black);
        content: "";
        height: 3px;
        width: 100%;
        left: 0;
        top: 13px;
        position: absolute;
        z-index: -1
    }

    .pip-title:before {
        content: "";
        position: absolute;
        background: var(--black);
        height: 4px;
        width: 120px;
        left: -10px;
        top: 10px;
        z-index: 9
    }

    .pip-head li {
        width: calc(25% - 6px);
        margin-bottom: 5px;
        padding: 6px 2px;
        font-size: 11px;
        text-align: center;
        float: none !important;
        margin-left: 0;
        flex: 1
    }

    .pip-foot a {
        width: 18%;
        height: 30px;
        line-height: 28px;
        font-size: .75em;
        margin: 0 1%;
        padding: 0 2px
    }

    .options label,
    .options a {
        padding: 6px 5px 6px 18px;
        margin: 2px 0 0 -18px;
        font-size: 13px
    }

    .post {
        font-size: 12px;
        padding: 8px
    }

    .colors {
        grid-template-columns: 1fr
    }

    .right-options a {
        display: block;
        margin: 0 0 5px;
        text-align: center
    }
}

@media (hover: none) and (pointer: coarse) {

    .options label,
    .options a,
    .pip-foot a,
    .side-menu a,
    .right-options a,
    .colors label {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center
    }

    .pip-foot a {
        min-height: 44px;
        line-height: 44px
    }
}

.white .filter,
.white .cursor {
    filter: saturate(0) brightness(1.15)
}

html.white {
    --main: 245, 245, 245;
    --alt: 130, 130, 130
}

.red .filter,
.red .cursor {
    filter: sepia(1) saturate(7) brightness(.65) hue-rotate(-35deg)
}

html.red {
    --main: 255, 40, 0;
    --alt: 160, 20, 0
}

.green .filter,
.green .cursor {
    filter: sepia(1) saturate(5) brightness(.85) hue-rotate(65deg)
}

html.green {
    --main: 0, 230, 50;
    --alt: 0, 160, 30
}

.blue .filter,
.blue .cursor {
    filter: sepia(1) saturate(5) hue-rotate(165deg)
}

html.blue {
    --main: 50, 150, 255;
    --alt: 20, 80, 160
}

.black .filter,
.black .cursor {
    filter: sepia(1) invert(1)
}

html.black {
    --main: 200, 220, 250;
    --alt: 90, 100, 150
}

.piece:before,
.piece:after {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: all .5s ease-in-out
}

.black .piece:before {
    background-image: url(https://cybersandbox.ca/wp-content/uploads/2021/11/the-eye.gif);
    background-size: 110vmax auto;
    opacity: .8;
    height: 100%;
    top: 0;
    background-color: #2f3748;
    filter: sepia(1) hue-rotate(170deg)
}

.black .piece:after {
    background-image: url(https://cybersandbox.ca/wp-content/uploads/2021/11/b-noise.gif);
    opacity: .2;
    height: 100%;
    top: 0
}

@media only screen and (min-width: 1310px) {
    .black .piece:before {
        background-size: 1300px auto
    }
}

@media only screen and (max-width: 767px) {

    .piece:before,
    .piece:after {
        top: 0;
        left: 50%;
        width: 0;
        height: 100%
    }

    .black .piece:before {
        background-size: cover;
        width: 100%;
        left: 0
    }

    .black .piece:after {
        background-size: cover;
        width: 100%;
        left: 0
    }
}

.meme-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box
}

.meme-item {
    position: relative;
    border: 2px solid rgb(var(--main));
    background: transparent;
    cursor: pointer;
    transition: all .3s ease;
    overflow: hidden;
    width: 100%;
    height: 100%
}

.meme-item:hover {
    border-color: rgb(var(--main));
    background: rgba(var(--alt), .2);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(var(--main), .4)
}

.meme-thumbnail {
    width: 100%;
    height: 130px;
    -o-object-fit: contain;
    object-fit: contain;
    display: block;
    filter: hue-rotate(-52deg) saturate(.9);
    background: transparent
}

.meme-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(var(--black), .8);
    color: rgb(var(--main));
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform .3s ease
}

.meme-item:hover .meme-overlay {
    transform: translateY(0)
}

.meme-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em
}

.meme-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000000f2;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px)
}

.meme-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box
}

.modal-content {
    position: relative;
    width: 80%;
    height: 80%;
    max-width: 500px;
    max-height: 500px;
    text-align: center;
    background: var(--black);
    border: 3px solid rgb(var(--main));
    padding: 20px;
    box-shadow: 0 0 30px rgba(var(--main), .8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 auto
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
    border: none;
    box-shadow: none;
    filter: hue-rotate(-52deg) saturate(.9);
    display: block
}

@media only screen and (max-width: 800px) {
    .modal-content {
        width: 85%;
        height: 85%;
        max-width: 400px;
        max-height: 400px;
        padding: 15px
    }

    .meme-modal.show {
        padding: 30px
    }
}

@media only screen and (max-width: 480px) {
    .modal-content {
        width: 90%;
        height: 90%;
        max-width: 350px;
        max-height: 350px;
        padding: 10px
    }

    .meme-modal.show {
        padding: 20px
    }
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    color: rgb(var(--main));
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    background: var(--black);
    border: 2px solid rgb(var(--main));
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    border-radius: 50%;
    z-index: 1001
}

.modal-close:hover {
    color: rgb(var(--alt));
    transform: scale(1.2)
}

@media only screen and (max-width: 800px) {
    .meme-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 10px;
        max-height: calc(100% - 40px)
    }

    .meme-thumbnail {
        height: 90px;
        -o-object-fit: contain;
        object-fit: contain
    }

    .meme-overlay {
        padding: 7px
    }

    .meme-title {
        font-size: 11px
    }

    .modal-content {
        max-width: 90%;
        max-height: 90%;
        padding: 15px
    }
}

@media only screen and (max-width: 480px) {
    .meme-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px;
        max-height: calc(100% - 30px)
    }

    .meme-thumbnail {
        height: 70px;
        -o-object-fit: contain;
        object-fit: contain
    }

    .meme-overlay {
        padding: 5px
    }

    .meme-title {
        font-size: 10px
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 10px
    }
}

.meme-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    border-top: 2px solid rgba(var(--main), .3)
}

.pagination-btn {
    background: transparent;
    color: rgb(var(--main));
    border: 2px solid rgb(var(--main));
    padding: 8px 15px;
    cursor: pointer;
    transition: all .3s ease;
    font-family: Roboto Mono, monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
    min-width: 100px
}

.pagination-btn:hover {
    background: rgba(var(--main), .2);
    box-shadow: 0 0 10px rgba(var(--main), .5)
}

.pagination-btn:disabled {
    color: rgb(var(--alt));
    border-color: rgb(var(--alt));
    cursor: not-allowed;
    opacity: .5
}

.pagination-btn:disabled:hover {
    background: transparent;
    box-shadow: none
}

.page-info {
    color: rgb(var(--main));
    font-family: Roboto Mono, monospace;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    min-width: 80px;
    text-align: center
}

.pagination-arrow {
    font-size: 18px;
    font-weight: 700
}

@media only screen and (max-width: 800px) {
    .meme-pagination {
        gap: 15px;
        margin-top: 15px;
        padding: 10px
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 80px
    }

    .page-info {
        font-size: 14px;
        min-width: 60px
    }
}

@media only screen and (max-width: 480px) {
    .meme-pagination {
        gap: 10px;
        margin-top: 10px;
        padding: 8px;
        flex-direction: column
    }

    .pagination-btn {
        padding: 8px 15px;
        font-size: 12px;
        min-width: 120px
    }

    .page-info {
        font-size: 13px;
        order: -1;
        margin-bottom: 10px
    }
}

.social-link {
    color: inherit;
    text-decoration: none;
    transition: all .3s ease;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    position: relative
}

.social-link:hover {
    background: rgba(var(--main), .2);
    box-shadow: 0 0 8px rgba(var(--main), .4);
    transform: scale(1.02)
}

.social-link:active {
    transform: scale(.98)
}

.pip-head .social-link {
    border: none;
    background: transparent;
    margin: 2px 0
}

.pip-head .social-link:hover {
    background: rgba(var(--main), .15);
    border-radius: 3px
}

.targeting-game {
    padding: 10px;
    text-align: center;
    width: 100%;
    max-width: 100%
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(var(--main), .1);
    border-radius: 6px;
    border: 1px solid rgba(var(--main), .3)
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px
}

.stat-label {
    font-size: 10px;
    color: rgb(var(--alt));
    text-transform: uppercase;
    letter-spacing: .05em
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: rgb(var(--main));
    font-family: Roboto Mono, monospace
}

.difficulty-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 8px;
    padding: 6px;
    background: rgba(var(--main), .1);
    border: 1px solid rgba(var(--main), .3);
    border-radius: 6px;
    width: 90%;
    max-width: 500px
}

.difficulty-selector label {
    color: rgb(var(--main));
    font-family: Roboto Mono, monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em
}

.difficulty-dropdown {
    background: rgba(var(--black), .8);
    border: 2px solid rgb(var(--main));
    color: rgb(var(--main));
    padding: 6px 12px;
    font-family: Roboto Mono, monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all .3s ease
}

.difficulty-dropdown:hover {
    background: rgba(var(--main), .2);
    box-shadow: 0 0 10px rgba(var(--main), .4)
}

.difficulty-dropdown:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(var(--main), .6)
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap
}

.game-btn {
    background: rgba(var(--main), .2);
    border: 2px solid rgb(var(--main));
    color: rgb(var(--main));
    padding: 8px 16px;
    font-family: Roboto Mono, monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all .3s ease;
    border-radius: 4px;
    min-width: 80px
}

.game-btn:hover:not(:disabled) {
    background: rgba(var(--main), .4);
    box-shadow: 0 0 15px rgba(var(--main), .6);
    transform: translateY(-2px)
}

.game-btn:active:not(:disabled) {
    transform: translateY(0)
}

.game-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    background: rgba(var(--alt), .2);
    border-color: rgb(var(--alt))
}

.targeting-range {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 200px;
    background: rgba(var(--black), .8);
    border: 2px solid rgb(var(--main));
    border-radius: 6px;
    margin: 0 auto 10px;
    overflow: hidden;
    cursor: crosshair;
    box-sizing: border-box
}

.target {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all .1s ease;
    animation: targetGlow 1.5s ease-in-out infinite alternate;
    background: transparent
}

.target:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(var(--main));
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(var(--main), .8)
}

.target:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: radial-gradient(circle, rgba(255, 255, 255, .4) 0%, transparent 70%);
    border-radius: 50%
}

.target:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgb(var(--main))
}

.target.hit {
    animation: targetHit .3s ease-out forwards
}

.target.hit:before {
    background: rgb(var(--alt));
    box-shadow: 0 0 20px rgba(var(--alt), .8)
}

.target.hit:after {
    content: "";
    background: radial-gradient(circle, rgba(var(--alt), .8) 0%, transparent 70%);
    border-radius: 50%;
    transform: scale(1.5)
}

@keyframes targetGlow {
    0% {
        box-shadow: 0 0 10px rgba(var(--main), .5)
    }

    to {
        box-shadow: 0 0 20px rgba(var(--main), .8)
    }
}

@keyframes targetHit {
    0% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.5);
        opacity: .8
    }

    to {
        transform: scale(0);
        opacity: 0
    }
}

.game-info {
    background: rgba(var(--main), .1);
    border: 1px solid rgba(var(--main), .3);
    border-radius: 6px;
    padding: 8px;
    text-align: left;
    margin: 0 auto;
    width: 90%;
    max-width: 500px
}

.game-info p {
    margin: 3px 0;
    font-size: 11px;
    color: rgb(var(--main))
}

.game-info b {
    color: rgb(var(--alt))
}

.mobile-robot-selector {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 0 10px
}

.robot-arrow {
    background: rgba(var(--main), .2);
    border: 2px solid rgb(var(--main));
    color: rgb(var(--main));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center
}

.robot-arrow:hover {
    background: rgba(var(--main), .4);
    box-shadow: 0 0 15px rgba(var(--main), .6);
    transform: scale(1.1)
}

.robot-display {
    text-align: center;
    flex: 1;
    margin: 0 20px
}

.robot-name {
    color: rgb(var(--main));
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: .1em
}

@media only screen and (max-width: 800px) {
    .targeting-game {
        padding: 5px;
        align-items: center;
        justify-content: flex-start
    }

    .mobile-robot-selector {
        display: flex
    }

    #items .pip-body .options,
    .vboy-wrap .vboy {
        display: none
    }

    .game-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 6px;
        margin: 0 auto 8px;
        width: 90%;
        max-width: 500px
    }

    .stat-value {
        font-size: 14px
    }

    .game-controls {
        gap: 8px;
        margin: 0 auto 8px;
        width: 90%;
        max-width: 500px;
        justify-content: center
    }

    .game-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 70px
    }

    .targeting-range {
        height: 300px;
        margin: 0 auto 15px;
        width: 90%;
        max-width: 500px
    }

    .target {
        width: 20px;
        height: 20px
    }
}

@media only screen and (max-width: 480px) {
    .game-stats {
        grid-template-columns: 1fr;
        gap: 6px
    }

    .game-controls {
        flex-direction: column;
        align-items: center
    }

    .game-btn {
        width: 100%;
        max-width: 180px
    }

    .targeting-range {
        height: 250px;
        margin: 0 auto 15px;
        width: 90%;
        max-width: 500px
    }

    .target {
        width: 18px;
        height: 18px
    }
}

.game-over-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000c;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box
}

.game-over-dialog.show {
    display: block !important
}

.dialog-content {
    background: var(--black);
    border: 3px solid rgb(var(--main));
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(var(--main), .6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.dialog-title {
    color: rgb(var(--alt));
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(var(--alt), .8)
}

.clanker-message {
    background: rgba(var(--alt), .1);
    border: 1px solid rgba(var(--alt), .3);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgb(var(--alt));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em
}

.clanker-scale {
    margin-bottom: 20px
}

.clanker-scale h5 {
    color: rgb(var(--main));
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 10px
}

.scale-bar {
    width: 100%;
    height: 20px;
    background: rgba(var(--main), .2);
    border: 2px solid rgb(var(--main));
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden
}

.scale-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(var(--main)), rgb(var(--alt)));
    transition: width .5s ease;
    border-radius: 8px
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgb(var(--main));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px
}

.clanker-rating {
    font-size: 18px;
    font-weight: 700;
    color: rgb(var(--alt));
    text-transform: uppercase;
    letter-spacing: .1em;
    text-shadow: 0 0 8px rgba(var(--alt), .8)
}

.final-stats {
    background: rgba(var(--main), .1);
    border: 1px solid rgba(var(--main), .3);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: left
}

.final-stats p {
    margin: 5px 0;
    font-size: 12px;
    color: rgb(var(--main))
}

.final-stats b {
    color: rgb(var(--alt))
}

#play-again {
    background: rgba(var(--alt), .2);
    border-color: rgb(var(--alt));
    color: rgb(var(--alt));
    min-width: 120px
}

#play-again:hover:not(:disabled) {
    background: rgba(var(--alt), .4);
    box-shadow: 0 0 15px rgba(var(--alt), .6)
}

@media only screen and (max-width: 800px) {
    .dialog-content {
        padding: 15px;
        max-width: 350px
    }

    .dialog-title {
        font-size: 20px;
        margin-bottom: 12px
    }

    .clanker-message {
        font-size: 12px;
        padding: 8px
    }

    .clanker-scale h5 {
        font-size: 14px
    }

    .scale-bar {
        height: 16px
    }

    .clanker-rating {
        font-size: 16px
    }
}

@media only screen and (max-width: 480px) {
    .dialog-content {
        padding: 12px;
        max-width: 300px
    }

    .dialog-title {
        font-size: 18px;
        margin-bottom: 10px
    }

    .clanker-message {
        font-size: 11px;
        padding: 6px
    }

    .clanker-scale h5 {
        font-size: 13px
    }

    .scale-bar {
        height: 14px
    }

    .clanker-rating {
        font-size: 14px
    }
}