:root {
    --switch-red: hsla(6, 100%, 58%, 1);
    --switch-red-background: hsla(6, 100%, 72%, 1);
    --switch-blue: #0AB9E6;
    --switch-blue-highlight: #156a86;
    --background-color: hsla(192, 19%, 95%, 1);
    --card-corner-radius: 12px;
    --yellow: hsla(52, 100%, 47%, 1);
    --card-background: white;

    --card-highlight: hsla(200, 100%, 85%, 0.3);

    --label: hsla(0, 0%, 4%, 1);
    --secondaryLabel: hsla(0, 0%, 50%, 1);
    --tertiaryLabel: hsla(240, 0%, 74%, 1);
    --quaternaryLabel: hsla(0, 0%, 90%, 1);

    --placeholderText: hsla(240, 0%, 74%, 1);

    --systemBackground: hsla(0, 0%, 99%, 1);
    --secondarySystemBackground: hsla(300, 0%, 93%, 1);
    --tertiarySystemBackground: hsla(0, 0%, 84%, 1);

    --systemFill: hsla(240, 2%, 90%, 1);
    --secondarySystemFill: hsla(240, 5%, 92%, 1);
    --tertiarySystemFill: hsla(240, 4%, 94%, 1);
    --quaternarySystemFill: hsla(240, 5%, 96%, 1);

    --separator: hsla(0, 0%, 90%, 1);
    --opaqueSeparator: hsla(240, 2%, 78%, 1);

    --systemRed: hsla(3, 100%, 59%, 1);
    --systemOrange: hsla(35, 100%, 50%, 1);
    --systemYellow: hsla(48, 100%, 50%, 1);
    --systemGreen: hsla(135, 59%, 49%, 1);
    --systemMint: hsla(177, 100%, 39%, 1);
    --systemTeal: hsla(189, 61%, 48%, 1);
    --systemCyan: hsla(199, 84%, 64%, 1);
    --systemBlue: hsla(211, 100%, 50%, 1);
    --systemIndigo: hsla(241, 61%, 59%, 1);
    --systemPurple: hsla(280, 68%, 60%, 1);
    --systemPink: hsla(348, 100%, 59%, 1);
    --systemBrown: hsla(34, 27%, 50%, 1);

    --eshopBackground: hsla(35, 100%, 50%, 0.2);
    --saleHeaderBackground: hsla(35, 100%, 50%, 0.4);

    --game-widgets-light: hsl(265deg 99% 72%);
    --game-widgets-dark: hsl(249deg 100% 72%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --card-highlight: hsla(0, 0%, 100%, 0.06); /* override for dark */
  }
}

html, body {
    height: 100%;
    font-size: 18px;
}

*, *::after, *::before {
    box-sizing: border-box;
    margin: 0;
    /*outline: 1px solid #f00 !important;*/
}

body {
    background-color: var(--background-color);
    font-family: -apple-system, Segoe UI, "Helvetica Neue", sans-serif;
    margin: 0;
    padding-bottom: 50px;
    color: var(--label);
}

button {
    border: none;
    cursor: pointer;
    color: white;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: var(--switch-blue);
    text-decoration-thickness: 3px;
    text-decoration: underline;
}

.width-100 {
    width: 100%;
}

.max-width-100 {
    max-width: 100%;
}

.p-md {
    padding: 10px;
}

.lead {
    font-size: 1.1rem;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-auto {
    margin-top: auto;
}

.mb-md {
    margin-bottom: 10px;
}

.mt-lg {
    margin-top: 30px;
}

.mt-md {
    margin-top: 15px;
}

.mx-auto {
    margin-inline: auto;
}

.d-block {
    display: block;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-weight: normal;
    letter-spacing: 0.02rem;
}

.position-relative {
    position: relative;
}

.decorated-number {
    font-weight: bold;
    text-decoration: underline;
    text-underline-style: dash;
    text-decoration-thickness: 4px;
    text-decoration-color: var(--switch-blue);
}

.bottom-border {
    border-bottom: 1px solid var(--separator);
}

.separator {
    opacity: 0.2;
}

.handwritten-text {
    font-family: "Bradley Hand", serif;
}

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

.grid-center {
    display: grid;
    place-content: center;
}

#andVideos {
    position: absolute;
    top: -20px;
    right: -5px;
    font-size: 0.9rem;
    color: black;
    opacity: 0.8;
    transform: rotateZ(-10deg);
}

nav {
    width: 100%;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--tertiarySystemBackground);
    margin-bottom: 20px;
    padding: 5px 0;
    background-color: var(--secondarySystemBackground);
    z-index: 1000;
}

.container {
    max-width: 1040px;
    margin-inline: auto;
    padding-inline: 20px;
}

section.container {
    margin-bottom: 40px;
}

nav .nav-icon {
    --size: 45px;
    width: var(--size);
    height: var(--size);
    border-radius: 25%;
}

.nav-content {
    max-width: 1040px;
    margin-inline: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    padding-inline: 20px;
    text-decoration: none;
}

nav .presskit-link {
    margin-left: auto;

}

nav .nav-title {
    font-size: 1.4rem;
    font-weight: bolder;
}

.hero {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.hero .image-container {
    flex: 5;
}

.hero .content {
    flex: 4;
}

.hero .pattern-element {
    inset: -30px;
}

.hero .hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.youtube-container {

}

.youtube-container > iframe {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    border: none;
    background: var(--secondarySystemFill);
    border-radius: 5px;
}

.hero h1 {
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.name-header {
    font-size: 5rem;
    margin-top: 50px;
    margin-bottom: 5px;
    transition: 0.1s;
}

.subtle-shadow {
    -webkit-box-shadow: 0 1px 3px hsla(0, 0%, 0%, .2);
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, .2);
}

#reviewsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-gap: 15px;
    margin-top: 20px;
}

.review-card {
    padding: 20px;
    background-color: var(--card-background);
    border-radius: var(--card-corner-radius);
    display: flex;
    flex-direction: column;
}

.review-card .review-title {
    font-weight: bolder;
    line-height: 1;
    font-size: 0.9rem;
}

.review-card .review-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
    margin-bottom: 10px;
}

.review-card .review-by {
    margin-top: auto;
    text-align: right;
    font-size: 0.8rem;
}

.review-stars {
    display: flex;
    margin-top: 5px;
    margin-bottom: 5px;
}

.review-stars > svg {
    width: 18px;
    height: 18px;
    color: var(--yellow);
}

#featuresContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    flex-direction: column;
}

#featuresContainer > div {
    padding: 18px;
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, .2);
    background-color: var(--card-background);
    border-radius: var(--card-corner-radius);
}

#featuresContainer p {
    margin-bottom: 10px;
    line-height: 1.4;
}

#featuresContainer h3 {
    font-weight: bold;
    margin-bottom: 15px;
}

#featuresContainer h5 {
    margin-top: 10px;
}

#featuresContainer img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

.feature-card {
    background-color: var(--card-background);
    border-radius: var(--card-corner-radius);
    position: relative;
    padding: 15px 15px 15px 30px;
}

.feature-card .feature-title {
    font-weight: bolder;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    font-size: 0.9rem;
}

.feature-card .feature-text {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.3;
}

.feature-card .feature-icon-container {
    position: absolute;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: var(--switch-red-background);
    top: 50%;
    transform: translateY(-50%);
    left: -15px;
    padding: 15px;
    display: grid;
    place-content: center;
    border: 5px solid var(--background-color);
}

.feature-card .feature-icon-container .icon {
    width: 15px;
    height: 15px;
}

.media-mentions {
    display: flex;
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.media-mentions img {
    width: auto;
    height: 40px;
}

section.screenshots-container {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 60px;
}

.games-carousel {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 15px;
}

.games-carousel .game-cover-image {
    margin-top: 0;
}

.smaller-carousel .game-cover-image {
    max-width: min(120px, 30vw)
}

.bigger-carousel .game-cover-image {
    max-width: min(220px, 30vw)
}

.screenshots-container > img {
    max-height: 550px;
    border-radius: 15px;
    cursor: zoom-in;
}

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

.gallery-images-container img {
    cursor: zoom-in;
}

.screenshots-container img:nth-child(odd) {
    margin-top: 40px;
}

.screenshots-container img:last-child {
    margin-right: auto;
}

.screenshots-container img:first-child {
    margin-left: auto;
}

.badges-container {
    display: flex;
    gap: 15px;
}

.gradient-text {
    background: linear-gradient(to right, #ff3c28, #ff2d6c, #ff47a7, #dd6bd8, #aa89f6, #6d9fff, #28aff9, #0ab9e6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.animated-gradient {
    background-size: 200%;
    animation: animated_text 5s ease-in-out infinite;
    -moz-animation: animated_text 5s ease-in-out infinite;
    -webkit-animation: animated_text 5s ease-in-out infinite;
}

.secondary-label {
    color: var(--secondaryLabel);
}


@keyframes animated_text {
    0% {
        background-position: 0px 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0px 50%;
    }
}

.pattern-element {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.faint-pattern {
    opacity: 0.1;
}

.pattern1 {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ab9e6' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pattern2 {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10h10v10H0V10zM10 0h10v10H10V0z' fill='%230ab9e6' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.download-qr-codes {
    max-width: 500px;
    display: block;
    margin-inline: auto;
    width: 100%;
    height: auto;
}

/* Gallery styles */
#galleryContainer {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    background-color: rgba(0 0 0 / 0.90);
    display: none;
    overflow: hidden;
}

#galleryContent {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#galleryContainer #mainImage {
    display: block;
    max-width: 90%;
    max-height: 85%;
    margin-inline: auto;
    z-index: 10;
}

#galleryCloseButton {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(0 0 0 / 0.95);
    color: white;
}

#currentTotalSummaryLabel {
    font-size: 0.9rem;
    color: lightgrey;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace, monospace;
}

#mainImage {
    border-radius: 5px;
}

.paging-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: black;
    padding: 5px;
    background-color: var(--switch-blue);
}

.paging-button > svg {
    width: 50px;
    height: 50px;
}

#leftButton {
    left: 0px;
}

#rightButton {
    right: 0px;
}

@media only screen and (max-width: 1000px) {
    .hero h1 {
        font-size: 1.9rem;
    }
}

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

    .hero .pattern-element {
        inset: -15px;
    }

    .hero .badges-container {
        display: none;
    }

    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 5px;
    }

    #reviewsContainer {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 8px;
        position: relative;
        right: -20px;
    }


    #reviewsContainer .review-card:first-child {

    }

    #reviewsContainer .review-card {
        flex-basis: 250px;
        min-width: 250px;
        padding: 15px;
    }

    .download-qr-codes {
        display: none;
    }

    .badges-container.footer-badges-container {
        margin-top: 10px;
    }
}

@media only screen and (max-width: 400px) {
    #featuresContainer {
        grid-gap: 10px;
    }

    .badges-container {
        flex-direction: column;
        align-items: center;
    }

}

.lightning-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z' clip-rule='evenodd' /%3E%3C/svg%3E");
}

.gift-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M5 5a3 3 0 015-2.236A3 3 0 0114.83 6H16a2 2 0 110 4h-5V9a1 1 0 10-2 0v1H4a2 2 0 110-4h1.17C5.06 5.687 5 5.35 5 5zm4 1V5a1 1 0 10-1 1h1zm3 0a1 1 0 10-1-1v1h1z' clip-rule='evenodd' /%3E%3Cpath d='M9 11H3v5a2 2 0 002 2h4v-7zM11 18h4a2 2 0 002-2v-5h-6v7z' /%3E%3C/svg%3E");
}

.save-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath d='M7.707 10.293a1 1 0 10-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 11.586V6h5a2 2 0 012 2v7a2 2 0 01-2 2H4a2 2 0 01-2-2V8a2 2 0 012-2h5v5.586l-1.293-1.293zM9 4a1 1 0 012 0v2H9V4z' /%3E%3C/svg%3E");
}

.picture-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z' clip-rule='evenodd' /%3E%3C/svg%3E");
}

.share-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath d='M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z' /%3E%3C/svg%3E");
}

.adjustment-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath d='M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z' /%3E%3C/svg%3E");
}

.game-detail-container {
    max-width: 650px;
    background-color: var(--systemBackground);
    margin-inline: auto;
    position: relative;
    padding-bottom: 30px;
}

.game-detail-header {
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--opaqueSeparator);
}

.game-cover-image {
    max-width: min(180px, 30vw);
    aspect-ratio: 3/4;
    height: auto;
    z-index: 10;
    border-radius: 12px;
    margin-top: 30px;
    background-color: var(--tertiarySystemFill);
}

.smaller-game-cover-image {
    max-width: 90px;
}

.bg-image {
    position: absolute;
    inset: -30px;
    filter: blur(30px) brightness(60%);
    object-fit: cover;
    overflow: hidden;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.game-detail-container > * {
    margin-bottom: 20px;
}

.game-detail-container > *:not(.game-detail-header) {
    margin-inline: 20px;
}

.game-detail-screenshots {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 10px;
}

.game-detail-chips {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 5px
}

.game-detail-title {
    margin-bottom: 15px;
    font-size: 1.7rem;
}

.game-detail-releases {
    border-bottom: 1px solid var(--opaqueSeparator);
    padding: 10px;
    background: var(--tertiarySystemFill);
    margin-inline: 0 !important;
}

.game-detail-screenshots img {
    max-height: 210px;
    border-radius: 5px;
}

.game-detail-summary {
    line-height: 1.6;
    font-size: 0.9rem;
}

.game-detail-summary p+p {
    margin-bottom: 10px;
}

.view-details-card {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 15px;
}

.game-detail-video-embed {
    aspect-ratio: 16/9;
    width: 530px;
    border: none;
}

.section-header {
    margin-bottom: 5px;
}

.chip {
    font-size: 0.8rem;
    background-color: var(--systemFill);
    color: var(--secondaryLabel);
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.04rem;
    display: grid;
    place-content: center;
    white-space: nowrap;
}

.links-container {
    max-width: 300px;
    margin-inline: auto;
    background: var(--tertiarySystemFill);
    list-style: none;
    padding: 15px;
    border-radius: 15px;
    margin-top: 50px;
}

.links-container > li {
    margin-bottom: 8px;
    border-bottom: 1px solid var(--separator);
}

.links-container a {
    text-decoration: none;
    display: flex;
}

.links-container a svg {
    margin-left: auto;
}

.links-container > li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.storyline-container {
    padding: 20px 20px 10px;
    font-size: 0.7rem;
    line-height: 1.5;
    background-color: var(--secondarySystemFill);
    border-radius: 15px;
    position: relative;
}

.storyline-content {
    max-height: 120px;
    overflow-y: scroll;
}

.main-game-card {
    background-color: var(--tertiarySystemFill);
    padding: 15px;
    display: flex;
    gap: 15px;
    border-radius: 16px;
    text-decoration: none;
}

.main-game-card .game-cover-image {
    margin-top: 0;
    max-width: 80px;
}

.main-game-card h2 {
    margin-top: 10px;
}

#eshopInfo {
    max-width: 350px;
    display: flex;
    padding: 4px;
    border: 2px solid var(--systemOrange);
    border-radius: 12px;
    background-color: var(--eshopBackground);
    align-items: center;
}

#saleInfo {
    border: 2px solid var(--systemOrange);
}

#eshopInfo p, #saleInfo .eshop-content p {
    margin-left: 6px;
    font-size: 0.9rem;
    font-weight: bolder;
}

#saleInfo .eshop-content {
    display: flex;
    align-items: center;
    padding: 4px;
}

#saleInfo .button {
    display: flex;
    flex-direction: column;
}

#saleInfo .original-price {
    font-size: 0.6rem;
    text-align: right;
    margin-top: -3px;
}

#saleInfo .header {
    padding: 8px;
    background-color: var(--saleHeaderBackground);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: end;
}

#eshopInfo .button, #saleInfo .button {
    background-color: var(--systemOrange);
    color: white;
    text-decoration: none;
    margin-left: auto;
    padding: 8px;
    border-radius: 10px;
    padding-top: 10px;
}

#eshopInfo .button:hover, #saleInfo .button:hover {
    opacity: 0.7;
}

#eshopInfo > * {
    padding-top: 2px;
}

#saleInfo {
    max-width: 350px;
    border-radius: 12px;
    background-color: var(--eshopBackground);
}

#saleInfo .button {
    padding: 8px 16px;
}

#saleInfo .discount {
    font-weight: bold;
}

#saleInfo .date {
    font-size: 0.7rem;
    opacity: 0.8;
}

.horizontal-flex {
    display: flex;
    gap: 10px;
}

.vertical-flex {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-gap: 15px;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    background-color: var(--systemBackground);
}

.game-card {
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.1;
}

.cover-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    aspect-ratio: 3/4;
}

.genres-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#game-widgets-promo {
    background: linear-gradient(to right, var(--game-widgets-dark), var(--game-widgets-light));
    padding: 30px;
    max-width: 600px;
    color: white;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

#open-critic-card {
    background-color: var(--tertiarySystemFill);
    border-radius: 12px;
    display: flex;
    max-width: 450px;
    gap: 10px;
    padding: 10px;
    padding-top: 15px;
    margin-inline: auto;
    justify-content: space-evenly;
    align-items: center;
    position: relative;
}

#open-critic-card::after {
    position: absolute;
    top: 8px;
    left: 10px;
    content: "OpenCritic";
    font-size: 0.8rem;
    font-weight: bolder;
    opacity: 0.5;
}

#open-critic-card img {
    max-width: 120px;
    height: auto;
}

#open-critic-card small {
    font-size: 0.7rem;
    display: block;
    text-align: center;
}

#open-critic-card p {
    font-size: 3rem;
    display: block;
    text-align: center;
    margin: 0;
    font-weight: bolder;
}

.blog-post-container > * {
    margin-bottom: 0px;
}

.blog-post-container .blog-detail-header {
    margin-bottom: 20px;
    margin-inline: 0;
}

.blog-post-container .blog-detail-header img {
    max-width: 100%;
    height: auto;
}

.blog-post-content h1, .blog-post-content h2, .blog-post-content h3, .blog-post-content h4, .blog-post-content h5 {
    margin-top: 30px;
}

.blog-post-content h3 {
    font-weight: 600;
}

.blog-post-content li + li {
    margin-top: 5px;
}

.blog-post-content .youtube-container {
    margin-top: 10px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    margin-inline: auto;
    display: block;
    border-radius: 5px;
}

.blog-post-content a {
    color: var(--switch-blue);
    text-decoration: none;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

.blog-post-content ul {
    padding-left: 30px;
}

.blog-post-container p {
    line-height: 1.6;
    margin-top: 15px;
}

.blog-post-card {
    text-decoration: none;
    margin-bottom: 40px;
    gap: 5px;
}

.blog-post-card:hover {
    text-decoration: none;
    color: var(--label);
}

.blog-post-card:hover h2 {
    color: var(--switch-blue);
}

.blog-post-card h2 {
    font-size: 1.3rem;
}

.blog-post-card img {
    display: block;
    margin-bottom: 15px;
    border-radius: 10px;
}

.blog-post-card p {
    margin: 0;
}

.compact-game-list {
    gap: 0;
}

.game-row {
    padding: 20px 10px;
}

.game-row:hover {
    background-color: var(--card-highlight);
    transition: background-color 0.2s ease;
}

.game-row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-row h2 {
    font-size: 1.4rem;
    font-weight: bolder;
    max-lines: 2;
}

.game-row .game-detail-chips {
    margin-right: 10px;
    flex-wrap: wrap;
}

.game-row .game-cover-image {
    margin-top: 0;
    max-width: 120px;
    align-self: flex-start;
    height: auto;
}

.game-info-and-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 1rem;
}

.game-info {
    flex-grow: 1;
}

.price-info {
    display: flex;
    margin-top: auto;
    margin-left: auto;
    gap: 5px;
}

.price-info .prices {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.price-info .discount-badge {
    margin-top: auto;
    padding: 2px 8px;
    color: var(--systemOrange);
    background-color: var(--eshopBackground);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: bolder;
}

.sale-price {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--systemOrange);
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.countdown-container {
    flex-wrap: wrap;
    padding: 10px 20px;
    background-color: var(--switch-red);
    color: white;
    border-radius: 20px;
    max-width: 700px;
}

.countdown-container:hover {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.countdown-container h3 {
    font-size: 1.5rem;
    font-weight: bolder;
}

.countdown-container #event-countdown {
    font-size: 1.5rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    margin-left: auto;
}

@media only screen and (max-width: 700px) {
    .countdown-container {
        margin: 20px;
    }
}

@media only screen and (max-width: 440px) {
    #open-critic-card {
        border-radius: 0;
    }

    #open-critic-card p {
        font-size: 2rem;
    }

    #open-critic-card small {
        font-size: 0.5rem;
    }

    #open-critic-card img {
        max-width: 100px;
        height: auto;
    }
}

@media only screen and (max-width: 400px) {
    .game-row .game-cover-image {
        max-width: 90px;
    }

    .game-row .game-row-content h2 {
        font-size: 1.2rem;
    }

    .game-row .chip {
        font-size: 0.6rem;
    }

    .game-row .sale-price {
        font-size: 1rem;
    }

    .game-row .original-price {
        font-size: 0.8rem;
    }
}