.theme-default {
    /* vars */
    --container-background: linear-gradient(0deg, #ffddb8, #ffe5ca);
    --background-a: repeating-linear-gradient(-45deg, #ffddb8 0 15px, #ffe5ca 15px 30px);
    --background-b: repeating-linear-gradient(-45deg, #ffcaf4 0 10px, #ffe5ca 10px 20px);
    --background-c: repeating-linear-gradient(0deg, #ffd7bf 0 10px, #ffe5ca 10px 20px);
    --background-d: repeating-linear-gradient(-45deg, #D88C9A 0 10px, #FBACBE 10px 20px);
    --prim-clr-a: #3d00ff;
    --prim-clr-b-bg: #fff4e8;
    --prim-clr-b-border: #ffb362;
    --prim-clr-b-text: #ff8000;
    --prim-clr-b-text-shadow: #ffcf9d;
    --prim-clr-b-shadow: #f5deb3;
    --prim-clr-c-bg: repeating-linear-gradient(45deg, #ff9d3a 0 15px, #ff952b 15px 30px, #ffa952 30px 45px);
    --prim-clr-c-text: #fff7ee;
    --prim-clr-c-text-shadow: #cf6800;
    --prim-clr-c-border: #ff572257;
    /* generic */
    .disabled {
        color: var(--prim-clr-b-text-shadow); 
    }
    /* buttons */
    /* main */
    .generic-btn.stylized {
        border: 2px solid var(--prim-clr-b-border);
        border-bottom-width: 4px;
        background: var(--prim-clr-b-bg);
        color: var(--prim-clr-b-text);
        text-shadow: 1px 1px 0px var(--prim-clr-b-text-shadow);
        box-shadow: -20px -20px 0px -15px inset var(--prim-clr-b-shadow);
        border-radius: 10px;
    }
    /* back-btn */
    .generic-btn.stylized.back-btn,
    .generic-btn.primary.solid {
        background: var(--prim-clr-a);
        color: white;
        border-color: #00000066 !important;
    }
    .generic-btn.stylized.back-btn:active,
    .generic-btn.primary.solid:active {
        background: color-mix(in srgb, var(--prim-clr-a) 75%, black);
    }
    .generic-btn.primary.soft {
        color: #222285;
        background-color: #DBDBF4;
    }
    /* surfaces */
    .surface-stylized {
        background: var(--prim-clr-b-bg);
        color: var(--prim-clr-b-text);
        border: 2px solid var(--prim-clr-b-border);
        box-shadow: 10px -20px 0px -15px inset var(--prim-clr-b-shadow);
        text-shadow: 1px 1px 0px var(--prim-clr-b-text-shadow);
        margin: 5px 5px;
        border-radius: 10px;
        border-top-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .solid-surface-stylized {
        margin: 5px 5px;
        color: var(--prim-clr-c-text);
        text-shadow: 1px 1px 0px var(--prim-clr-c-text-shadow);
        background: var(--prim-clr-c-bg);
        border: 2px solid var(--prim-clr-c-border);
    }
    /* containers */
    .generic-list-container {
        background: var(--background-b);
    }
    .generic-slider-container {
        background: var(--background-c);
    }
    .generic-grid-container {
        background: linear-gradient(0deg, #ffe5ca, #ffdaf7);
        background: var(--background-a);
    }
    .grid-item:before {
        background: linear-gradient(45deg, #ffb362, #ff72e0);
        box-shadow: inset -10px 20px rgba(255, 255, 255, 0.158), 0 0px 12px 1px #ffe5ca;
    }
    .grid-item:hover:before {
        background-color: white;
        outline: 5px solid #ffffff3b;
    }
    --mm-clr-1: #fa9189;
    --mm-clr-2: #fcae7c;
    --mm-clr-3: #99ccff;
    --mm-clr-4: #ffcc99;
    --mm-clr-5: #a4e4a9;
    --mm-clr-6: #fb88ff;
    --mm-clr-7: #ff99cc;
    --mm-clr-8: #d1bdff;
    .classic-main-menu__item:nth-child(1):hover,
    .grid-item:nth-child(1):before {
        background: var(--mm-clr-1);
    }
    .classic-main-menu__item:nth-child(2):hover,
    .grid-item:nth-child(2):before {
        background: var(--mm-clr-2);
    }
    .classic-main-menu__item:nth-child(3):hover,
    .grid-item:nth-child(3):before {
    
        background: var(--mm-clr-3);
    }
    .classic-main-menu__item:nth-child(4):hover,
    .grid-item:nth-child(4):before {
        background: var(--mm-clr-4)
    }
    .classic-main-menu__item:nth-child(5):hover,
    .grid-item:nth-child(5):before {
        background: var(--mm-clr-5)
    }
    .classic-main-menu__item:nth-child(6):hover,
    .grid-item:nth-child(6):before {
    
        background: var(--mm-clr-6)
    }
    .classic-main-menu__item:nth-child(7):hover,
    .grid-item:nth-child(7):before {
        background: var(--mm-clr-7)
    }
    .classic-main-menu__item:nth-child(8):hover,
    .grid-item:nth-child(8):before {
        background: var(--mm-clr-8)
    }
    .classic-main-menu__item:nth-child(1){
        color: var(--mm-clr-1);
    }
    .classic-main-menu__item:nth-child(2){
        color: var(--mm-clr-2)
    }
    .classic-main-menu__item:nth-child(3){
        color: var(--mm-clr-3)
    }
    .classic-main-menu__item:nth-child(4){
        color: var(--mm-clr-4)
    }
    .classic-main-menu__item:nth-child(5){
        color: var(--mm-clr-5)
    }
    .classic-main-menu__item:nth-child(6){
        color: var(--mm-clr-6)
    }
    .classic-main-menu__item:nth-child(7){
        color: var(--mm-clr-7)
    }
    .classic-main-menu__item:nth-child(8){
        color: var(--mm-clr-8)
    }
    /* family tree */
    .family-tree__vertical-line {
        background: var(--prim-clr-a);
    }
    .family-tree__horizontal-line {
        background: #ff00c6;
    }
    .family-tree__member-container small {
        color: #4E36D3;
    }
    .family-tree__gen-badge {
        background: #ffb1ee;
        color: #ff00c6;
    }
    .content-separator {
        border: 3px solid #ff8300;
    }
    /* social posts */
    --post-striped: repeating-linear-gradient(-45deg, #ded4ff 0 10px, #bca8ff 10px 20px);
    .post-canvas {
        background-color: var(--prim-clr-a);
    }
    .post-text {
        background: #ffffff;
        border-top: 5px solid var(--prim-clr-a);
        color: #12004e;
    }
    .post-header {
        background: var(--prim-clr-a);
        border-bottom: 1px solid #ffffff5c;
        color: white;
    }
    .post-header:after {
        background: var(--post-striped);
    }
    .post-close {
        background: #ffffff1a;
        color: #ffffff;
    }
    .post-next {
        background: var(--prim-clr-a);
        color: #ffffff;
    }
    .post-profile-icon {
        background: var(--post-striped);
        outline: var(--prim-clr-a) 2px solid;
    }
    /* stepper */
    --stepper-clr: rgb(255, 128, 0);
    .stepper:before {
        background: var(--stepper-clr);
    }
    .stepper__step {
        background: #ffffff;
        border: 2px solid var(--stepper-clr);
    }
    .stepper__step.active {
        background: var(--stepper-clr);
    }
    .stepper__step.active > span {
        color: #ffffff;
    }
    /* scrollbar */
    @media screen and (min-width: 480px) {
        ::-webkit-scrollbar {
            width: 7px;
            background-color: transparent;
        }
        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.5);
            border-left: 1px solid #ff840080;
        }
        ::-webkit-scrollbar-thumb {
            background: #ff8300;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--prim-clr-a);
        }
    }
    /* badges */
    .badge {
        background: gray;
        color: white;
    }
    .badge.red {
        background: #ED254E;
    }
    .badge.night {
        background: #180067;
    }
    .badge.gold {
        background: linear-gradient(45deg, #ffd700, #ffc800);
        color: #ff7800;
    }
    /* directional control */
    .directional-control__container .control {
        background: #d1c3ff;
        color: var(--prim-clr-a);
    }
    .directional-control__container .control#cancel {
        color: #a30000;
        background-color: #ffc3c3;
    }
    .directional-control__container .control#apply {
        background-color: #0f8500;
        color: white;
    }
    /* other */
    .bg-bef-1:before { /* friend request */
        background: #fcae7c !important;
    }
    .save-indicator {
        text-shadow: 
            1px 1px 0px #ff00c6,
            2px 2px 0px #ff00c6,
            -1px 1px 0px #ff00c6,
            1px -1px 0px #ff00c6,
            -1px -1px 0px #ff00c6;
    }
    .sales-notice {
        background: #ED254E;
        color: white;
    }
    .pet-trait-icons-container {
        background-color: #ffe3c7;
    }
    .pet-trait-icon {
        background: #ffcc97;
    }
    .gold-circle {
        background: #ffdfa4;
        border: orange 4px solid;
        color: #6d4600;
    }
    .red-label {
        color: #fd2f2f;
        background: #fd2f2f2e;
    }
    .seller-analysis.negative {
        color: red;
    }
    .seller-analysis.positive {
        color: green;
    }
    .mini-game-ui {
        color: var(--prim-clr-a);
        text-shadow: 1px 1px white, -1px -1px white, 1px -1px white, -1px 1px white;
    }
}

@font-face {
    font-family: 'Pixel';
    src: url('resources/font/PixelColeco.otf');
}

@font-face {
    font-family: 'PixelOld';
    src: url('resources/font/PixelifySans-VariableFont_wght.ttf');
    unicode-range: U+221E;
}

* {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: manipulation;
}

.style-clear * {
    all: unset;
}

html {
    font-family: 'PixelOld', 'Pixel', serif;
    word-spacing: -3px;
}

body {
    background-color: #282830;
    background-color: black;
    min-height: 100vh;
    margin: 0;
    color: white;
    overflow: hidden;
    text-transform: uppercase;
}

a {
    color: var(--prim-clr-a);
}

hr {
    border: 0;
    height: 1px;
    background: var(--prim-clr-b-border);
}

.error-container {
    display: flex;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    gap: 12px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    margin: 40px;
    border-radius: 10px;
    border: 1px solid;
    background-color: rgba(255, 0, 0, 0.16);
    color: red;
}
.error-container .close {
    background-color: red;
    color: black;
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.loading-text {
    position: absolute;
    left: 0px;
    width: 100%;
    color: #ffb362;
    z-index: 9999;
    top: 0px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(0deg, #FFCF9D, #FFB1EE); */
    background: var(--background-a);
    border-radius: 5px;
    font-size: xx-large;
    /* box-shadow: inset 10px -12px 25px 8px rgba(0, 0, 0, 0.25); */
    flex-direction: column;
    background: rgb(0, 0, 0);
}
.loading-text #loading-error {
    color: rgb(255, 170, 170);
}
.loading-text #loading-error i {
    color: red;
}
.loading-logo {
    width: 65%;
    max-width: 248px;
}
.loading-spinner {
    position: fixed;
    bottom: 25%;
    color: white;
    /* text-shadow: 0 0 2px black; */
}

.graphics-wrapper {
    width: 100%;
    max-width: 192px;
    position: relative;
    outline: 5px solid #00000040;
    border-radius: 5px;
    overflow: hidden;
    /* box-shadow: 8px 20px 20px 3px #00000040; */
}

.graphics-canvas {
    /* background-color: #ffe5ca; */
    background-color: #000000;
    image-rendering: pixelated;
    width: 100%;
    /* border-top-left-radius: 1000px;
    border-top-right-radius: 1000px; */
}

.root {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generic-empty-container {
    position: absolute;
    height: 100%;
    width: 100%;
    background: white;
    /* display: flex; */
    /* flex-direction: column; */
    top: 0px;
    left: 0px;
    color: black;
    overflow: auto;
    z-index: 2;
    background: var(--container-background);
    /* align-items: center;
    justify-content: center; */
    text-transform: uppercase;
}

/* @keyframes menu-animation {
    from {
        opacity: 0;
    }
} */

@keyframes menu-animation {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }
}

.generic-list-container {
    position: absolute;
    height: 100%;
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    top: 0px;
    left: 0px;
    color: black;
    overflow: auto;
    z-index: 2;
    background: var(--container-background);
}

.menu-animation > * {
    animation: menu-animation 0.2s both !important;
}
.menu-animation > *:nth-child(n+2) {
    animation-delay: calc(0.025s * (var(--child-index) - 1)) !important;
}
.menu-animation > *:nth-child(2) {
    animation-delay: 0.025s !important;
}
.menu-animation > *:nth-child(3) {
    animation-delay: 0.05s !important;
}
.menu-animation > *:nth-child(4) {
    animation-delay: 0.075s !important;
}
.menu-animation > *:nth-child(5) {
    animation-delay: 0.1s !important;
}
.menu-animation > *:nth-child(6) {
    animation-delay: 0.125s !important;
}
.menu-animation > *:nth-child(7) {
    animation-delay: 0.15s !important;
}
.menu-animation > *:nth-child(8) {
    animation-delay: 0.175s !important;
}
.menu-animation > *:nth-child(9) {
    animation-delay: 0.2s !important;
}
.menu-animation > *:nth-child(10) {
    animation-delay: 0.225s !important;
}


.w-btn:hover,
.w-btn:active,
.slide-btn:hover::before,
.slide-btn:active::before {
    /* outline: 4px solid rgba(255, 255, 255, 0.281); */
    outline-offset: 1px;
}

.grid-item:active:after,
.grid-item:hover:after,
.generic-btn:active:after,
.generic-btn:hover:after,
.simon-says-button.active:after
{
    width: 11px;
    height: 9px;
    content: "";
    position: absolute;
    left: -2px;
    background: url(resources/img/ui/pointer_right.png);
    background-position: 50% 50%;
    image-rendering: pixelated;
    background-repeat: no-repeat;
    animation: infinite 0.5s pointer-anim alternate;
}
.generic-btn.stylized:active {
    background: color-mix(in srgb, var(--prim-clr-b-bg) 97%, black);
    scale: 0.95;
}
.generic-btn:disabled, .generic-btn.disabled {
    background-color: var(--prim-clr-b-bg) !important;
    color: color-mix(in srgb, var(--prim-clr-b-text) 50%, var(--prim-clr-b-bg)) !important;
    border-color: color-mix(in srgb, var(--prim-clr-b-text) 40%, var(--prim-clr-b-bg)) !important;
}

@keyframes pointer-anim {
    from {
        left: -5px;
    }
}

.list-title {
    /* margin: 5px;
    background: white;
    padding: 15px 10px;
    border-radius: 10px;
    text-transform: uppercase; */
    margin: 5px 0px;
}

.list-text {
    margin: 5px 15px;
    /* background: #222285;
    color: white; */
}

.generic-slider-container {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    top: 0px;
    left: 0px;
    color: black;
    z-index: 2;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
}

.generic-slider-container .content img {
    outline: 2px solid;
}

.generic-slider-container .main-container {
    display: flex;
    flex-grow: 1;
    height: 145px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.generic-slider-container .actions-container {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 10px);
    padding-bottom: 5px;
    align-items: flex-end;
}

.generic-slider-container .content {
    text-align: -webkit-center;
    padding: 10px 0px;
    min-width: 50%;
    overflow: hidden;
}

.generic-slider-container .content img {
    border-radius: 5px;
    margin-bottom: 5px;
    image-rendering: pixelated;
    max-height: 64px;
    object-fit: cover;
}

.slide-btn {
    height: 100%;
    display: inline-flex;
    align-items: center;
    font-weight: bold;

    height: 100%;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    position: relative;

    z-index: 2;
}

.slide-btn:before {
    width: 20px;
    height: 20px;
    content: "";
    position: absolute;
    background: white;
    border-radius: 100%;
    left: 0px;
    z-index: -1;
}

.slide-btn.disabled:before {
    background: rgb(245, 245, 245);
}

.slide-btn.slide-left:before {
    margin-left: 5px;
}

.slide-btn.slide-right:before {
    margin-left: -5px;
}

.slide-left {
    padding-left: 10px;
}

.slide-right {
    padding-right: 10px;
}

.slider-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 80%;
    position: relative;
}

.slide-btn:before {
    box-shadow: inset 0px -4px 0px 2px #0000001a;
    outline: 2px solid white;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload {
    cursor: pointer;
}

.custom-file-upload {
    width: calc(100% + 18px);
    padding: 7px;
    margin: -16px;
    padding-left: 16px;
}

.text-transform-none {
    text-transform: none !important;
}

input[type="file"] {
    width: -webkit-fill-available;
}

input {
    all: unset;
    margin: 5px;
    padding: 5px 10px;
    border-radius: 10px;
    text-transform: none !important;
    background: rgba(255, 255, 255, 0.849);
    border: 1px solid var(--prim-clr-b-border);
    color: var(--prim-clr-b-text);
}
input:focus {
    outline: 3px solid;
}
input:focus {
    background: white;
}

@keyframes slider-item-anim-in-left {
    from {
        transform: translateX(-200px);
    }
}

@keyframes slider-item-anim-in-right {
    from {
        transform: translateX(200px);
    }
}

@keyframes slider-item-anim-out-left {
    to {
        transform: translateX(-200px);
    }
}

@keyframes slider-item-anim-out-right {
    to {
        transform: translateX(200px);
    }
}

.sales-notice {
    padding: 2px 5px;
    border-radius: 5px;
    margin-left: 5px;
    margin-right: -5px;
    animation: fade-pulse-anim 1s ease-in infinite;
}

@keyframes fade-pulse-anim {
    50% {
        opacity: 0.3;
    }
}

@keyframes pulse-anim {
    from {
        scale: 0.85
    }
    to {
        scale: 1
    }
}
.pulse {
    animation: pulse-anim 0.25s infinite alternate;
}

.generic-slider-container .additional-text {
    position: absolute;
    top: 5px;
    pointer-events: none;
    left: 5px;
    background: #ffffffb5;
    padding: 2px 5px;
    border-radius: 5px;
    animation: fade-in-anim 0.2s;
    text-wrap: nowrap;
    font-size: smaller;
    left: 0px;
    top: 0px;
}

@keyframes fade-in-anim {
    from {
        opacity: 0.2;
    }
}

.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: stretch;
}

.generic-grid-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.grid-item-2x {
    justify-content: center;
    width: 30%;
    flex-grow: 1;
    height: auto !important;
    margin: 0 !important;
}

.grid-item {
    width: 33.333333%;
    height: 33.333333%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: xx-large;
    text-shadow: 0px 1px 1px #0000004a;
    color: rgb(255, 255, 255);
}

.grid-item img {
    width: 35px;
}

.grid-item:before {
    position: absolute;
    width: 55px;
    height: 55px;
    content: "";
    z-index: -1;
    border-radius: 100px;
}

button {
    appearance: none;
    all: unset;
    font-family: 'Pixel';
    cursor: pointer;
}

.back-btn {
    margin-top: auto;
    border-bottom: none;
}

.disabled {
    pointer-events: none;
}

.uppercase {
    text-transform: uppercase;
}

.x2 {
    scale: 2
}

.absolute-fullscreen {
    top: 0;
    left: 0;
    position: absolute;
    height: 100%;
    width: 100%;
}

.flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.inline-flex-between {
    display: inline-flex;
    justify-content: space-between;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.no-width-children > * {
    width: 0px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: end;
}

.justify-center {
    justify-content: center;
}
.justify-end {
    justify-content: end;
}
.justify-between {
    justify-content: space-between;
}

.overflow-hidden {
    overflow: hidden;
}

.ellipsis {
    text-overflow: ellipsis;
}

.flex-1 {
    flex: 1
}

.text-bold {
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.progressbar {
    border-radius: 5px;
    overflow: hidden;
    flex-grow: 1;
}

.progressbar-background {
    width: 100%;
    height: 20px;
}

.progressbar-rod {
    background-color: rgb(0, 0, 0);
    height: 100%;
    border-right: 5px solid white;
}

.btn {
    all: unset;
    border: none;
    text-align: center;
    border: 1px solid white;
    background-color: black;
    cursor: pointer;
    min-height: 30px;
}

.main-action-icon {
    all: unset;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.382);
    height: 30px;
    z-index: 1;
    cursor: pointer;
}

.main-action-icon:hover {
    filter: none;
    background-color: rgba(0, 0, 0, 0.544);
}

.background-canvas {
    background-color: transparent;
    position: absolute;
    width: 60vw;
    filter: blur(100px);
    opacity: 0.5;
    display: none;
}

.screen-shell {
    position: absolute;
    image-rendering: pixelated;
    z-index: 5;
    scale: 3;
    top: calc(50% - 82px);
    left: calc(50% - 58px);
    pointer-events: none;
}

.background {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-position: 50% 50%;
    filter: contrast(0.8) brightness(0.6) blur(10px);
    scale: 1.1;
    display: none;
}

.dom-shell {
    width: 320px;
    height: 400px;
    position: absolute;
    background: 50% 50% / cover rgb(255, 237, 217);
    border-radius: 100% 100% 95% 95%;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.333) 20px 20px 32px inset, rgb(255 255 255 / 33%) -12px -20px 16px inset;
    filter: drop-shadow(rgba(0, 0, 0, 0.082) 4px 10px 18px);
}

.dom-shell>.logo {
    position: absolute;
    left: calc(50% - 75px);
    top: 40px;
    width: 150px;
    /* filter: sepia(1) hue-rotate(192deg) saturate(7.5) contrast(1) brightness(1); */
}

:root {
    --shell-btn-size: 32px;
    --shell-btn-space: 64px;
}

.dom-shell .shell-btn {
    background: linear-gradient(180deg, #f7f7f7, white);
    border-radius: 50px;
    /* border-bottom: 3px solid #00000057; */
    box-shadow: 
        0px 7px 5px -3px #00000061, 
        inset -5px -7px 5px -3px #0000005c, 
        inset 5px 7px 5px -3px #ffffff5c;
    height: calc(var(--shell-btn-size) - 3px);
    height: calc(var(--shell-btn-size));
    width: var(--shell-btn-size);
    position: absolute;
    filter: brightness(0.9);
    /* outline: 2px solid;
    outline-color: rgba(255, 255, 255, 0.3); */
    /* outline-offset: -2px; */
}
.dom-shell .shell-btn:before {
    width: 32px;
    height: 32px;
    background: radial-gradient(transparent 60%, rgba(0, 0, 0, 0.65) 100%);
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    border-radius: 100%;
    scale: 1.15;
}

.dom-shell .shell-btn:active {
    /* border-bottom-width: 0px; */
    box-shadow: none;
    transform: translateY(1px);
}
.dom-shell .shell-btn:active:before {
    /* border-bottom-width: 0px; */
    transform: translateY(-1px);
    box-shadow: none;
}

.dom-shell .shell-btn.main {
    left: calc(50% - (var(--shell-btn-size) / 2));
    bottom: 9%;
    background-position: 0%;
}

.dom-shell .shell-btn.right {
    left: calc(50% - (var(--shell-btn-size) / 2) + var(--shell-btn-space));
    bottom: 13%;
    background-position: 0%;
}

.dom-shell .shell-btn.left {
    left: calc(50% - (var(--shell-btn-size) / 2) - var(--shell-btn-space));
    bottom: 13%;
    background-position: 0%;
}

c-sprite.ui-food {
    position: absolute;
    z-index: 10;
    top: calc(50% - -18px);
    left: calc(50% - 12px);
    transform: scale(1.2);
    pointer-events: none;
}
c-sprite {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.user-id {
    right: 0px;
    bottom: 0px;
    padding: 6px;
    text-shadow: none !important;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pet-trait-icons-container {
    display: flex;
    align-self: center;
    gap: 4px;
    padding: 4px;
    border-radius: 20px;
    margin: 6px -10px 0 -10px;
    flex-wrap: wrap;
    justify-content: center;
}
.pet-trait-icon {
    width: 22px;
    height: 22px;
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
}
.pet-trait-icon.disabled {
    position: relative;
    filter: grayscale();
    pointer-events: initial;
}
.pet-trait-icon.disabled:after {
    width: 100%;
    height: 1px;
    position: absolute;
    content: "";
    background-color: gray;
    transform: rotateZ(-45deg);
}

/* post */
.post-container {
    position: absolute;
    left: 0px;
    top: 0%;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-transform: uppercase;
}
.post-canvas {
    image-rendering: pixelated;
    width: 100%;
    height: 100%;
    margin-top: -70px;
}
.post-text {
    position: absolute;
    top: calc(100% - 85px);
    width: calc(100% - 20px);
    height: 100%;
    padding: 5px 10px;
}
.post-header {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 30px;
    line-height: 33px;
    padding-left: 50px;
    font-weight: bold;
}
.post-header:after {
    width: 100%;
    height: 5px;
    top: 30px;
    left: 0;
    position: absolute;
    content: "";
    z-index: 0;
}
.post-close {
    position: absolute;
    right: 2.6px;
    height: 25px;
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 2.5px;
    border-radius: 100px;
}
.post-next {
    position: absolute;
    right: 2.6px;
    height: 25px;
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    border-radius: 100px;
}
.post-profile-icon {
    position: absolute;
    top: 10px;
    left: 12px;
    scale: 1.6;
    display: flex;
    width: 22px;
    height: 22px;
    justify-content: center;
    border-radius: 100%;
    overflow: hidden;
}
.post-profile-icon>c-sprite {
    margin-right: 0px !important;
}

input#background-color-picker {
    all: unset;
    width: 100%;
    height: 100%;
}

.grid-item .badge {
    margin: 6px;
}

.badge {
    font-size: x-small;
    padding: 2px 5px;
    border-radius: 100%;
    position: absolute;
    right: 0px;
    top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2px;
    font-weight: bold;
    text-shadow: none !important;
    pointer-events: none;
}
.badge.circle {
    padding: 4px;
    width: 10px;
    height: 10px;
    padding: 0;
}
.badge.gold {
    outline: 1px solid;
}

.screen-wrapper {
    height: 192px;
}

.screen-wrapper img {
    image-rendering: pixelated;
}

/* battle */
.battle-participant-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
}

.battle-participant-status-wrapper {
    width: 100%;
}

.install-prompt {
    position: fixed;
    bottom: 0px;
    left: 0px;
    display: flex;
    background: rgb(78, 125, 255);
    width: 100%;
    align-items: center;
    justify-content: center;
}

.install-prompt .app-icon {
    border: 1px solid white;
    border-radius: 5px;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.175)
}

.install-prompt button {
    background-color: rgba(255, 255, 255, 0.105);
    padding: 2px 8px;
    border: 1px solid white;
    border-radius: 5px;
}

/* generic stuff */
.opacity-half {
    opacity: 0.5;
}
.opacity-third {
    opacity: 0.325;
}

.flex-container {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    align-content: center;
}

.height-100p {
    height: 100%;
}

.font-small {
    font-size: small;
}

.flex-dir-col {
    flex-direction: column;
}

.flex-dir-row {
    flex-direction: row;
}

.flex-gap-05 {
    gap: 4px;
}
.flex-gap-1 {
    gap: 8px;
}
.flex-gap-2 {
    gap: 16px;
}

.flex {
    display: flex;
}

.height-auto {
    height: auto;
}
.width-full {
    width: 100%;
}
.width-half {
    width: 50%;
}
.width-auto {
    width: auto;
}
.items-center {
    align-items: center;
}

.bg-white {
    background: white;
    /* box-shadow: 4px 4px 0px 0px #00000042; */
}

.bg-transparent {
    background: transparent;
}

.b-radius-10 {
    border-radius: 10px;
}

.inner-padding {
    padding: 10px 20px;
}
.inner-padding-sm {
    padding: 4px 8px;
}

.m {
    margin: 6px;
}

.mt-2 {
    margin-top: 4px;
}
.mt-6 {
    margin-top: 12px;
}
.mb-2 {
    margin-bottom: 4px;
}
.ml-2 {
    margin-left: 4px;
}
.ml-4 {
     margin-left: 8px;
}
.m-0 {
    margin: 0 !important;
}

.relative {
    position: relative;
}

.text-center {
    text-align: center;
}

.cursor-pointer {
    cursor: pointer;
}

.pointer-events-none {
    pointer-events: none;
}

.modal {
    position: fixed;
    top: 0px;
    left: 0px;
    background: white;
    width: calc(100% - 20px);
    color: black;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.side-container {
    position: fixed;
    top: 40px;
    right: 0px;
    background: white;
    padding: 5px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    text-transform: uppercase;
    font-size: small;
    border-radius: 15px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999999;
}

.side-icon {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-right: 5px;
    background: var(--container-background);
    color: rgb(255, 255, 255);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.494);
}

.side-icon>i {
    animation: side-icon-anim 0.5s infinite alternate linear;
}

.side-container a {
    all: unset;
    text-decoration-line: underline;
    color: #F44336;
    cursor: pointer;
}

@keyframes side-icon-anim {
    from {
        transform: translateY(1.5px)
    }

    to {
        transform: translateY(-1.5px)
    }
}

/* games */
.timing-bar-container {
    background: #ffffffc4;
    width: 180px;
    height: 10px;
    border-radius: 10px;
    display: flex;
    position: relative;
    border: 4px solid rgb(0, 0, 0);
}
.timing-bar-rod {
    height: 100%;
}
.timing-bar-rod:nth-child(1) {
    background-color: greenyellow;
    width: 70%;
}
.timing-bar-rod:nth-child(2) {
    background-color: orange;
    width: 20%;
}
.timing-bar-rod:nth-child(3) {
    background-color: red;
    width: 10%;
}
.timing-bar-cursor {
    width: 6px;
    height: 15px;
    background: white;
    position: absolute;
    border-radius: 100px;
    bottom: -3px;
    outline: 2px solid black;
}

.dog-washing-button {
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--prim-clr-b-bg);
    color: var(--prim-clr-b-text);
    outline: 3px solid;
    position: absolute;
    transition: all 0.1s;
    animation: dog-wash-button-animation 0.25s ease-in infinite !important;
}
@keyframes dog-wash-button-animation {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.8);
    }
}

.school-logic-container{
    background-color: #FFAE21;
}
.school-logic-container > .mini-game-ui {
    position: absolute;
    left: 4px;
    top: 0;
    z-index: 30;
}
.cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.cards-container.disabled {
    pointer-events: none;
}
.cards-container > .card {
    background: repeating-linear-gradient(-45deg, #ffd8ae 0 10px, #ffe5ca 10px 20px);
    width: 35px;
    height: 52px;
    border: 2px solid rgb(255, 231, 206);
    border-radius: 4px;
    color: #ff5e00;
    transition: all 0.3s ease;
    position: absolute;
    font-size: 22px;
    overflow: hidden;
    box-shadow: inset -2px -2px 0px 0 #00000038;
}
.cards-container > .card.disabled {
    pointer-events: none;
}
.cards-container > .card.turning.disabled {
    background-color: #87A0B2;
    background: repeating-linear-gradient(-45deg, #87A0B2 0 10px, #98b1c2 10px 20px);
}
.cards-container > .card.turning {
    transform: rotateY(180deg);
    background: #5DA271;
    background: repeating-linear-gradient(-45deg, #4a8a5c 0 10px, #5DA271 10px 20px);;
    border-color: #dadada;
    color: transparent;
    box-shadow: inset -2px 2px 0px 0 #ffffff38, inset 2px -2px 0px 0 #00000038;
    cursor: pointer;
}
.cards-container > .card > * {
    pointer-events: none;
}

.mix-colors-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.mix-colors-container > button {
    flex-grow: 1;
    overflow: hidden;
}
.mix-colors-container .color {
    width: 16px;
    height: 16px;
    border-radius: 100%;
    scale: 3;
}

.simon-says {
    width: 150px;
    height: 100px;
    display: flex;
    flex-wrap: wrap;
    border-radius: 10px;
    /* overflow: hidden; */
    margin: 0 auto;
    border: 4px solid #000063;
    background-color: #000063;
    gap: 4px;
    margin-bottom: 4px;
    position: relative;
}
.simon-says.win .simon-says-button {
    background: hsl(130, 90%, 45%) !important;
}
.simon-says.lose .simon-says-button {
    background: hsl(0, 90%, 55%) !important;
}
.simon-says-button {
    position: relative;
    flex-grow: 1;
    display: block;
    width: 35%;
    cursor: pointer;
}
.simon-says-button.active:after{
    z-index: 2;
}
.simon-says-button#green {
  background: hsl(130, 90%, 45%);
}
.simon-says-button#red {
  background: hsl(0, 90%, 55%);
}
.simon-says-button#yellow {
  background: hsl(48, 100%, 50%);
}
.simon-says-button#blue {
  background: hsl(210, 100%, 55%);
}
.simon-says-button.active#green,
.simon-says-button#green:active {
  background: hsl(130, 100%, 65%);
  box-shadow: 0 0 10px hsl(130, 100%, 65%);
}
.simon-says-button.active#red,
.simon-says-button#red:active {
  background: hsl(0, 100%, 70%);
  box-shadow: 0 0 10px hsl(0, 100%, 70%);
}
.simon-says-button.active#yellow,
.simon-says-button#yellow:active {
  background: hsl(48, 100%, 65%);
  box-shadow: 0 0 10px hsl(48, 100%, 65%);
}
.simon-says-button.active#blue,
.simon-says-button#blue:active {
  background: hsl(210, 100%, 70%);
  box-shadow: 0 0 10px hsl(210, 100%, 70%);
}
.simon-says .simon-says-indicator {
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    background-color: #000063;
    border-radius: 100%;
    position: absolute;
    pointer-events: none;
}
.simon-says .simon-says-indicator:after {
    content: "";
    position: absolute;
    border-radius: 100%;
    left: 4px;
    top: 4px;
    width: 12px;
    height: 12px;
    background-color: white;
    box-shadow: 0 0 10px white;
}
.simon-says.pointer-events-none .simon-says-indicator:after {
    background: rgb(84, 84, 84) !important;
    box-shadow: none;
}


.webcam-container {
    overflow: hidden;
    background: black;
}

.webcam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webcam-video.taken {
    animation: webcam-shutter-animation 0.5s linear;
}

@keyframes webcam-shutter-animation {
    5% {
        filter: brightness(0.5);
    }

    40% {
        filter: unset;
    }
}

#webcam-button {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 100%;
    position: absolute;
    left: calc(50% - 20px);
    bottom: 10px;
    outline: solid lightgray 4px;
    transition: background-color 0.5s;
}

#webcam-button:active,
#webcam-button:hover {
    background-color: rgb(138, 138, 138);
    /* outline-color: white; */
}

#webcam-change-button {
    position: absolute;
    left: 10px;
    bottom: 12px;
    color: white;
    width: 30px;
    height: 30px;
    background: #0000002e;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}
.in-list-container+.in-list-container,
.generic-btn+.in-list-container,
.in-list-container+.generic-btn,
.generic-btn+.generic-btn {
    margin-top: 4px;
}

.generic-btn {
    height: 28px;
    min-height: 28px;
    background: white;
    padding: 2px 12px;
    border-radius: 2px;
    color: black;
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    text-wrap: nowrap;
}

a.generic-btn {
    text-decoration: none;
    padding-left: 26px;
}
a.generic-btn:before {
    content: "\f08e";
    left: 10px;
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-size: xx-small;
    padding: 2px;
    border-radius: 100%;
    
}

.generic-btn i {
    pointer-events: none;
}

.generic-btn > .icon {
    font-size: small;
    margin-right: 5px;
}

.generic-btn > img.icon {
    width: 28px;
    object-fit: none;
}

.generic-btn.no-anim {
    animation: unset !important;
}

.generic-btn:disabled, .generic-btn.disabled {
    pointer-events: none;
    box-shadow: unset !important;
    text-shadow: none !important;
}

.generic-btn.stylized {
    transition: all 0.07s;
}

.generic-btn:disabled > *:not(.enabled) {
    opacity: 0.5;
    filter: contrast(0.5);
}

.generic-btn.large {
    flex-wrap: wrap;
    height: auto;
    display: block;
}

.generic-btn.large .inline-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.generic-btn:has(> .corner-icon){
    border-top-left-radius: 0;
}
.generic-btn > .corner-icon {
    font-size: x-small;
    position: absolute;
    top: 0px;
    left: 0px;
}

.generic-btn.floating-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.generic-btn.sticky-top {
    position: sticky;
    /* left: 0; */
    top: 0;
    z-index: 2;
    margin: -4px -4px 4px -4px;
    border-radius: 0;
}

.generic-btn .ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.generic-btn.stylized.back-btn,
.generic-btn.primary.solid {
    text-shadow: unset;
    box-shadow: unset;
    transition: all 0.07s;
}

.bold {
    font-weight: bold;
}

.generic-list-container {
    padding: 4px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.back-btn {
    margin-top: unset;
}

.solid-surface-stylized:has(+.surface-stylized) {
    margin-bottom: 0;
}

.slide-action {
    width: 35px;
    height: 35px;
    box-sizing: border-box;
    border-radius: 100% !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.fade-out {
    animation-name: fade-out !important;
    animation-duration: 0.5s;
    animation-fill-mode: forwards !important;
    opacity: 1;
}
@keyframes fade-out {
    to {
        opacity: 0;
    }
}

.fade-in {
  opacity: 0;
  animation: fade-in 0.5s ease forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.stats-label {
    position: absolute;
    left: 28px;
    top: -12px;
    font-size: x-small;
    font-weight: bold;
    letter-spacing: 1px;
}


.family-tree__partners-container {
    display: flex;
    align-items: center;
    position: relative;
}

.family-tree__vertical-line {
    width: 30px;
    height: 2px;
    margin: 0 5px;
}

.family-tree__horizontal-line {
    width: 2px;
    height: 30px;
    margin: 5px 0;
    margin-left: 76px;
}

.family-tree__member-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    flex-direction: column;
}

.family-tree__member-container small {
    font-size: x-small;
    font-weight: bold;
    text-shadow: none;
}

.family-tree__gen-badge {
    position: absolute;
    left: calc(50% - 8px);
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    font-size: x-small;
}

.content-separator {
    width: 1px;
    background: transparent !important;
    border-radius: 100%;
}

.save-indicator {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 10px;
    height: 10px;
    animation: fade-pulse-anim 0.5s ease-in infinite;
    padding: 6px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    font-size: small;
    pointer-events: none;
    z-index: 999;
    opacity: 0.25;
}
.blink {
    animation: blink-anim 1s linear infinite;
}
@keyframes blink-anim {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    90% {
        opacity: 0.4;
    }
    95% {
        opacity: 0.8;
    }
}

.attention {
    animation: attention 0.25s ease-in-out infinite alternate;
}
@keyframes attention {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1.025);
    }
}

/* shell shapes */
.shell-shape-2 {
    border-radius: 30%;
}
.shell-shape-3 {
    border-radius: 10% 10% 50% 50%;
}
.shell-shape-4 {
    border-radius: 50% 50% 10% 10%;
}
.shell-shape-5 {
    border-radius: 17% 7% 17% 7%;
}
.shell-shape-1 {
    border-radius: 200%;
}
.shell-shape-6 {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* classic main menu */
.classic-main-menu__container {
    position: absolute;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    top: 0;
    flex-wrap: wrap;
    align-content: space-between;
    pointer-events: none;
}
.classic-main-menu__item {
    width: 25%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    pointer-events: initial;
    cursor: pointer;
    position: relative;
    z-index: 1;
    filter: saturate(2);
}
.classic-main-menu__item > i {
    text-shadow: 
        1px 0px 0px white, 
        -1px 0px 0px white, 
        0px 1px 0px white, 
        0px -1px 0px white,
        2px 0px 0px white, 
        -2px 0px 0px white, 
        0px 2px 0px white, 
        0px -2px 0px white;
    pointer-events: none;
}
.classic-main-menu__item::before {
    width: 24px;
    height: 24px;
    left: 12px;
    top: 0px;
    content: "";
    background-color: rgba(255, 255, 255, 0.32);
    position: absolute;
    border-radius: 100%;
    z-index: -1;
}
.classic-main-menu__item:hover,
.classic-main-menu__item:active {
    color: white
}

.classic-main-menu__container.disabled > .classic-main-menu__item {
    pointer-events: none;
    opacity: 0.5;
    display: none;
}

.graphics-wrapper.classic-main-menu .graphics-canvas {
    position: absolute;
/*     top: 24px;
    cursor: initial !important;
    height: calc(100% - 48px);
    object-fit: cover;
    object-position: bottom; */
    /* object-position: 0 -24px; */
}

/* mimic game */
.mimic-game__btn-container {
    display: flex;
}
.mimic-game__btn-container > button {
    margin: 0 !important;
}

/* full device screen overlay */
.full-device-overlay {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
@keyframes tap-reminder-icon {
    from {
        transform: translateY(-3px);
        opacity: 0.9;
    }

    to {
        transform: translateY(3px);
        opacity: 0.5;
    }
}
.tap-reminder > img {
    width: 36px;
    animation: tap-reminder-icon 0.3s infinite alternate;
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1);
}

.background-pattern {
    background: repeating-linear-gradient(-45deg, #0000003d 0 10px, #00000000 10px 20px, #00000082 20px 30px);
    left: 0;
    top: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

.marquee {
    transform: translate3d(0, 0, 0);
    animation: marqueeAnimation 5s linear infinite;
}
@keyframes marqueeAnimation {
    0% {
        transform: translateX(0);
    }
    30% {
        transform: translateX(0);
    }
    100% {
      transform: translateX(-66.6666%);
    }
  }


.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.stepper:before {
    width: 99%;
    height: 2px;
    content: "";
    position: absolute;
    top: calc(50% - 1.5px);
}
.stepper__step {
    z-index: 2;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stepper__step > span {
    display: none;
}
.stepper__step.active > span {
    font-size: xx-small;
    display: block;
}

/* pet collection */
.collection__container {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0;
    justify-content: space-between;
    gap: 5px;
}
.collection__char {
    width: 36px;
    height: 36px;
    border-radius: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #00000028;
    border: 1px solid #0000000f;
}
.collection__char.locked > c-sprite {
    filter: grayscale(1) contrast(0.01);
}
.collection__char > c-sprite {
    pointer-events: none;
}

/* gold circle */
.gold-circle {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: x-large;
    font-weight: bold;
    padding-left: 3px;
    box-sizing: border-box;
}

.display.revealing {
    animation: revealing-anim 1s;
}
.display.revealing > * > * {
    animation: revealing-anim-inner 2s;
}
@keyframes revealing-anim {
    from {
        transform: scale(3) rotateZ(45deg);
    }
    to {
       
    }
}
@keyframes revealing-anim-inner {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.credit-author {
    margin: 5px -10px;
    padding: 5px 10px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.5);
    color: rgb(33, 33, 33);
}
.credit-author a {
    color: rgb(0, 4, 255) !important;
}

/* fullscreen mode */
.graphics-wrapper.fullscreen {
    position: fixed;
    height: 100vh;
    width: 100vw;
    max-width: unset;
    transform: unset !important;
}
.graphics-wrapper.fullscreen .screen-wrapper {
    height: 100%;
}
.graphics-wrapper.fullscreen .graphics-canvas {
    object-fit: fill;
    height: 100%;
    width: 100%;
}

/* directional controller ui */
.directional-control__container {
    height: 100%;
    display: flex;
}
.directional-control__container .controls-y {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    padding: 4px;
}
.directional-control__container .controls-x {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.directional-control__container .control {
    display: inline-flex;
    width: 26px;
    height: 26px;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    cursor: pointer;
}
.directional-control__container .bottom-container {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
}
.directional-control__container .bottom-container > * {
    /* width: 33%; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.directional-control__activity-name {
    background: transparent;
    border: none;
    text-shadow: 
        1px 0 var(--prim-clr-b-text), 
        -1px 0 var(--prim-clr-b-text), 
        2px 0 var(--prim-clr-b-text), 
        -2px 0 var(--prim-clr-b-text), 
        0px 1px var(--prim-clr-b-text), 
        0px -1px var(--prim-clr-b-text),
        0px 2px var(--prim-clr-b-text), 
        0px -2px var(--prim-clr-b-text);
    color: var(--prim-clr-b-bg);
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.in-list-container {
    border: 2px solid var(--prim-clr-b-border);
    background: var(--prim-clr-b-bg);
    color: var(--prim-clr-b-text);
    text-shadow: 1px 1px 0px var(--prim-clr-b-text-shadow);
    box-shadow: -20px -20px 0px -15px inset var(--prim-clr-b-shadow);
    border-radius: 10px;
}

/* seed package */
.seed-pack {
    background-image: url(resources/img/misc/seed_pack_01.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 34px;
    background-size: contain;
    image-rendering: pixelated;
}

.red-label {
    border-radius: 10px;
    text-shadow: none;
    text-wrap-mode: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: x-small;
    margin-top: 6px;
    border: 1px solid;
    word-spacing: -2px;
}


.seller-analysis {
    text-shadow: 0;
    position: relative;
}
.seller-analysis:after {
    font-family: "Font Awesome 6 Free";
    font-size: x-small;
    position: absolute;
    top: 25%;
    margin-left: 2px;
}
.seller-analysis.negative:after {
    content: "\f0d7";
}
.seller-analysis.positive:after {
    content: "\f0d8";
}

@keyframes randomLetterBounceAnim {
    from {
        opacity: 0.5;
        transform: rotateZ(calc(var(--direction) * -5deg)) translate(calc(var(--direction) * 1px), 2px);
    }
    to {
        padding-top: 2px;
        transform: rotateZ(calc(var(--direction) * 5deg));
    }
}
.random-letter-bounce  {
    animation: randomLetterBounceAnim 0.5s linear infinite;
}

.mini-game-ui {
    font-weight: bold;
}

.message-bubble {
    margin: 10px;
    margin-top: 36px;
	position: relative;
	background: white;
	border-radius: 12px;
    color: #000060;
    padding: 4px 10px;
    filter: 
        drop-shadow(-1px -1px 0px #000060) 
        drop-shadow(1px 1px 0px #000060) 
        drop-shadow(0px 2px 0px #000060) 
        drop-shadow(2px 2px 0px #f86000);
}
.message-bubble:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 0;
	border: 12px solid transparent;
	border-top-color: white;
	border-bottom: 0;
	border-left: 0;
	margin-bottom: -12px;
}
.message-bubble > span {
    animation: fade-in 0.1s ease forwards;
    opacity: 0;
}
.message-bubble_icon {
    width: fit-content;
    /* background: white; */
    display: inline-flex;
    justify-content: center;
    align-items: flex-end;
    width: 28px;
    height: 28px;
    position: absolute;
    top: -29px;
    left: 12px;
    /* border-radius: 100%;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0; */
    overflow: hidden;
}
.message-bubble_icon > * {
    padding: 0 !important;
    margin: 0 !important;
}

.flex-grid-2x {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.flex-grid-2x > * {
    width: 40%;
    flex-grow: 1;
    aspect-ratio: 1;
    height: auto;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0;
    justify-content: center;
    overflow: hidden;
}
.flex-grid-2x__content {
    position: absolute;
    display: inline-flex;
    right: 4px;
    bottom: 0;
}
.flex-grid-2x__title {
    position: absolute;
    display: inline-flex;
    left: 4px;
    top: 0;
}

.outlined-icon {
    text-shadow: 
        1px 1px 0px #00014b, 
        -1px -1px 0px #00014b,
        1px -1px 0px #00014b,
        -1px 1px 0px #00014b;
}

.tabs {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    background: var(--prim-clr-b-bg);
    flex-direction: column;
    margin-top: 4px;
    align-items: stretch;
    border: 2px solid var(--prim-clr-b-border);
}
.tab.active {
    color: var(--prim-clr-b-text);
    display: block;
}
.tab-titles {
    display: flex;
    flex-grow: 1;
    width: 100%;
}
.tab-title > * {
    pointer-events: none;
}
.tab-title.active {
    color: var(--prim-clr-b-text);
    border-bottom: 4px solid;
    background-color: color-mix(in srgb, var(--prim-clr-b-text) 15%, transparent)
}
.tab-title {
    flex-grow: 1;
    width: 10%;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid;
    color: var(--prim-clr-b-border);
    color: color-mix(in srgb, var(--prim-clr-b-text) 40%, transparent);
    cursor: pointer;
}
.tab-title:hover {
    background-color: color-mix(in srgb, var(--prim-clr-b-text) 10%, transparent)
}
.tab {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.tab .tab-content {
    display: none;
}
.tab.active .tab-content {
    display: inline;
}

.tab-contents {
    display: contents;
}

/* letter */
.letter {
    background: repeating-linear-gradient(45deg, rgb(255, 0, 0) 0px 10px, white 10px 20px, rgb(27, 137, 255) 20px 30px, white 30px 40px);
    color: #2a0505;
}
.letter > div {
    margin: 6px;
    padding: 6px 12px;
    gap: 6px;
    background: white;
    border-radius: 12px;
    outline: 2px solid;
}
.letter h1 {
    margin: 0;
    font-size: medium;
}
.letter footer {
    text-align: right;
    font-style: italic;
}
.letter hr {
    width: 100%;
    background-color: black;
}