@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wdth,wght@87.5,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "ZutekSans";
    src: url("https://cdn.jsdelivr.net/gh/Zutek3134/zutek3134.github.io@main/stylesheets/fonts/ZutekSans/ZutekSans-Normal.woff") format("woff");
    font-display: swap;
    font-weight: 300;
}

@font-face {
    font-family: "ZutekSans";
    src: url("https://cdn.jsdelivr.net/gh/Zutek3134/zutek3134.github.io@main/stylesheets/fonts/ZutekSans/ZutekSans-Medium.woff") format("woff");
    font-display: swap;
    font-weight: 500;
}

@font-face {
    font-family: "ZutekSans";
    src: url("https://cdn.jsdelivr.net/gh/Zutek3134/zutek3134.github.io@main/stylesheets/fonts/ZutekSans/ZutekSans-Bold.woff") format("woff");
    font-display: swap;
    font-weight: 700;
}

@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 400;
    src: url("https://fonts.gstatic.com/s/materialsymbolsrounded/v291/syl0-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190FjpZIvDmUSVOK7BDJ_vb9vUSzq3wzLK-P0J-V_Zs-QtQth3-jOcbTCVpeRL2w5rwZu2rIelXxGJKJBiCa8.woff") format('woff');
}

:root {
    --font-primary: 'Noto Sans Display', 'PingFang TC', 'ZutekSans', 'Product Sans', 'PingFang SC', 'Noto Sans TC', 'Noto Sans SC', 'Microsoft Jhenghei', 'Microsoft Yahei', sans-serif;
    --font-display: "Montserrat", var(--font-primary);
    --font-code: "Noto Sans Mono", monospace;

    --primary: 7, 128, 128;
    --primary-light: 9, 153, 153;
    --primary-dark: 4, 89, 89;
    --secondary: 115, 89, 67;
    --highlight: 232, 219, 206;
    --highlight-dark: 81, 69, 58;
    --text-title: 35, 35, 35;
    --text-paragraph: 34, 37, 37;
    --text-danger: 186, 26, 26;
    --border-colour: 160, 147, 135;
    --bg-body: 248, 245, 242;
    --bg-main: 255, 255, 254;

    --transition: all 0.3s ease-in-out;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 1em;
    --radius-half: 0.5em;
    --transition-all: background-color 0.3s ease-in-out,
        color 0.3s ease-in-out,
        border 0.3s ease-in-out,
        border-radius 0.3s ease-in-out,
        transform 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
}

:root[data-theme="dark"] {
    --primary: 254, 184, 118;
    --primary-light: 254, 184, 118;
    --primary-dark: 75, 40, 0;
    --secondary: 226, 192, 164;
    --highlight: 65, 44, 24;
    --highlight-dark: 226, 192, 164;
    --text-title: 213, 195, 182;
    --text-paragraph: 239, 224, 213;
    --text-danger: 255, 180, 171;
    --border-colour: 158, 142, 129;
    --bg-body: 25, 18, 12;
    --bg-main: 38, 30, 24;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    -webkit-font-feature-settings: "kern";
    font-feature-settings: "kern";
    scroll-padding-top: 5.5em;
    font-size: 17px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
    transition: var(--transition-all);
}

body {
    background-color: rgb(var(--bg-body));
    color: rgb(var(--text-paragraph));
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100dvh;
}

header {
    background: rgba(var(--bg-main), 0.7);
    --webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 0.25em solid rgba(var(--border-colour), 0.3);
    padding: 0 2rem;
    height: 4.5rem;
    line-height: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: var(--shadow);
}

.flex-1 {
    flex: 1;
}

header .flex-1 {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

header .logo-container {
    display: flex;
    align-items: center;
    gap: 1em;
}

header .logo {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgb(var(--primary-light)), rgb(var(--primary-dark)));
    -webkit-mask: url("/hideandseek/logo/logo.svg") no-repeat center / contain;
    mask: url("/hideandseek/logo/logo.svg") no-repeat center / contain;
}

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

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

header .logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: rgb(var(--text-paragraph));
    font-family: var(--font-display);
    transition: var(--transition-all), font-size 0.3s ease-in-out;
}

header .logo-text span {
    color: rgb(var(--primary));
}

header.scrolled .logo-text {
    font-size: 0em;
}

header .h1 {
    font-size: 0em;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition-all), font-size 0.3s ease-in-out, font-weight 0.3s ease-in-out;
}

header.scrolled .h1 {
    font-size: 1.5em;
    opacity: 1;
}

header.scrolled.shrink .h1 {
    font-size: 1em;
    font-weight: 300;
    opacity: 0.7;
}

header .h2 {
    font-size: 0em;
    font-weight: 700;
    opacity: 0;
    margin-top: 0.3em;
    transition: var(--transition-all), font-size 0.3s ease-in-out;
}

header.scrolled.shrink .h2 {
    opacity: 1;
    font-size: 1.2em;
}

header .progress-container {
    width: 100%;
    height: 0.25em;
    /* background: rgba(var(--border-colour), 0.5); */
    position: absolute;
    left: 0;
    bottom: -0.25em;
}

header .progress-bar {
    height: 0.25em;
    background: rgb(var(--border-colour));
    width: 0%;
}

main {
    padding: 0 2em 1em;
    flex: 1;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

b {
    font-weight: 700;
}

code {
    font-family: var(--font-code);
}

.books {
    text-decoration: 1px underline wavy;
}

*.disabled {
    opacity: 0.3;
    cursor: not-allowed !important;
}

/* Main Content Layout */
.container {
    display: flex;
    max-width: 1600px;
    min-height: calc(100dvh - 4.5rem);
    margin: 0 auto;
    padding: 1.5em;
    gap: 1.2em;
}

/* Sidebar Styles */
.sidebar {
    width: min(280px, 25%);
    background: rgb(var(--bg-main));
    border-radius: var(--radius);
    padding: 2em 1.5em;
    font-size: 0.88rem;
    position: sticky;
    top: 6rem;
    height: calc(100dvh - 7.5rem);
    overscroll-behavior: none;
    overflow-y: auto;
    box-shadow: var(--shadow);
    transition: var(--transition-all), right 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#aside-button-group {
    display: flex;
    margin: 0 10px 3em;
    justify-content: space-around;
    gap: 5px;
}

#aside-button-group div {
    background-color: transparent;
    flex: 1;
    text-align: center;
    padding: 5px 10px;
    color: inherit;
    font-weight: 500;
    border: 2px solid rgb(var(--highlight));
    cursor: pointer;
}

#aside-button-group div:hover {
    background-color: rgba(var(--highlight), 0.3);
}

#aside-button-group div:first-child {
    border-radius: 50px 0 0 50px;
}

#aside-button-group div:last-child {
    border-radius: 0 50px 50px 0;
}

#aside-button-group div.selected {
    background-color: rgb(var(--highlight));
    color: rgb(var(--highlight-dark));
    cursor: default;
}

header .toggle {
    display: flex;
    background-color: transparent;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

header .toggle:hover {
    color: rgb(var(--primary));
}

header .toggle:focus {
    color: rgb(var(--bg-main));
    background-color: rgb(var(--primary));
}

header #sidebar {
    display: none;
}

.sidebar h3 {
    color: rgb(var(--primary));
    font-size: 1.05rem;
    margin: 2.5em 0 1em 0.5em;
    padding-bottom: 8px;
    border-bottom: 2px solid rgb(var(--highlight));
    position: relative;
}

.sidebar h3:first-child {
    margin-top: 0;
}

.sidebar h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: var(--width);
    height: 2px;
    background-color: rgb(var(--primary));
}

.sidebar ul {
    list-style: none;
    margin-bottom: 1.5em;
}

.sidebar ul:last-child {
    margin-bottom: 0;
}

.sidebar ul ul ul {
    padding-left: 1em;
}

.sidebar li {
    padding: 8px 0;
    border-bottom: 1px dashed rgb(var(--border-colour));
}

.sidebar a {
    color: rgb(var(--text-paragraph));
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
}

.sidebar li+a {
    margin-top: 1em;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1.4em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -moz-font-feature-settings: 'liga';
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    color: inherit;
    width: fit-content;
    max-width: 1em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.twemoji {
    display: inline-flex;
    height: 1.4em;
    vertical-align: bottom;
    fill: currentcolor;
    margin-right: 0.4em;
}

.sidebar li:has(a:not(.disabled):hover) {
    background: rgb(var(--primary), 0.1);
}

.sidebar a:not(.disabled):hover {
    color: rgb(var(--primary));
}

/* Article Styles */
.article-container-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: calc(100% - 0.1rem);
}

.article-container-group>* {
    background: rgb(var(--bg-main));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-header {
    padding: 2em 0 1em;
    margin-bottom: 2.5em;
    position: relative;
}

.article-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: rgb(var(--primary));
}

.article-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgb(var(--primary-light)), rgb(var(--primary-dark)));
    font-family: var(--font-display);
    color: rgb(var(--bg-main));
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1em;
}

.article-actions-holder {
    overflow-x: auto;
    white-space: nowrap;
}

.article-actions {
    display: flex;
    gap: 1em;
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 1em;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
}

.article-actions a {
    color: rgb(var(--highlight-dark));
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgb(var(--highlight));
}

.article-actions a:hover {
    background: rgb(var(--highlight-dark));
    color: rgb(var(--bg-main));
    transform: scale(0.95);
}

.article-content {
    font-size: 1rem;
}

.article-content p {
    margin-bottom: 1em;
    text-align: justify;
}

.article-content a:not(.card),
.modal a {
    color: rgb(var(--primary));
    text-decoration: none;
    /* padding: 0 0.15em;
    margin: 0 0.1em; */
}

a.ml {
    margin-left: 0.15em;
}

.article-content a:not(.card):hover,
.modal a:hover {
    color: rgb(var(--highlight-dark));
    background-color: rgb(var(--highlight));
}

.article-content a[data-key] {
    border-bottom: 1.5px dotted rgba(var(--highlight-dark), 0.5);
}

a[data-key] .material-symbols-rounded {
    vertical-align: text-top;
    font-size: small;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    border-bottom: 2px solid rgb(var(--highlight));
    padding-bottom: 8px;
    margin: 40px 0 25px;
    font-family: var(--font-display);
    color: rgb(var(--primary));
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: var(--width);
    height: 2px;
    background: rgb(var(--primary));
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: rgb(var(--secondary));
}

.btn {
    padding: 0.7em 1em;
    font-weight: 500;
    background: rgb(var(--secondary));
    color: rgb(var(--bg-main));
    border-radius: calc(var(--radius) / 2);
    cursor: pointer;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.btn:hover {
    transform: scale(0.95);
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 1em;
    border: 2px solid rgb(var(--border-colour));
    border-radius: var(--radius);
    margin: 1em 0;
}

table {
    min-width: fit-content;
    width: 100%;
    font-size: 0.9em;
    border-collapse: collapse;
}

table small,
table span {
    white-space: nowrap;
}

tr {
    transition: background-color 0.3s ease-in-out;
    border-width: 1px 0 0;
    border-style: dotted;
    border-color: rgb(var(--border-colour));
}

table tr:first-child {
    border-top: none;
}

table tr:last-child {
    border-bottom: none;
}

thead {
    background-color: rgb(var(--border-colour));
    border-bottom: 2px solid rgb(var(--border-colour));
}

tr:hover {
    background-color: rgba(var(--highlight), 0.3);
}

table,
th,
td {
    padding: 0.75em 0.5em;
}

th,
td {
    text-align: inherit;
    line-height: 1.5em;
}

th {
    white-space: nowrap;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
    gap: 1.25em;
    margin: 1.75em 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 1.5px solid rgb(var(--highlight));
    border-radius: var(--radius);
    padding: 1em;
    text-align: center;
}

.card.disabled {
    position: relative;
}

.card.disabled::after {
    content: '敬請期待';
    display: block;
    position: absolute;
    top: -0.75em;
    right: -0.5em;
    background-color: rgb(var(--text-danger));
    color: rgb(var(--bg-body));
    font-weight: 700;
    padding: 0.25em 1em;
    border-radius: 20px;
}

.card>*:last-child {
    margin-bottom: 0;
}

a.card {
    border-color: rgba(var(--text-paragraph), 0.1);
    background-color: rgb(var(--bg-body));
    transition: var(--transition-all), box-shadow 0.3s ease-in-out;
}

a.card:not(.disabled):hover {
    transform: scale(1.03);
    border-color: rgb(var(--border-colour));
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.1);
}

.card .card-icon,
.article-banner {
    width: 100%;
    margin-bottom: 0.8em;
    background: var(--gradient, linear-gradient(135deg, rgb(var(--primary-light)), rgb(var(--primary-dark))));
    color: white;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.card .card-icon {
    height: 10em;
    /* border: 1px solid rgb(var(--border-colour)); */
    border-radius: var(--radius-half);
}

.article-banner {
    height: min(20dvh, 20dvw);
    padding: 0 5dvw;
    margin: 0;
}

.card-icon img {
    width: 5em;
    filter: invert(1);
    --webkit-filter: invert(1);
    pointer-events: none;
}

.card .material-symbols-rounded {
    font-size: 5em;
}

.article-banner .material-symbols-rounded {
    font-size: min(min(10dvh, 10dvw), 5rem);
}

.card h4 {
    font-size: 1.17rem;
    margin-bottom: 10px;
    color: rgb(var(--text-title));
}

.card h5,
.smolTitle {
    font-size: 0.9em;
    margin: 0;
    color: rgba(var(--text-title), 0.7);
    text-align: left;
    font-weight: 300;
}

.references {
    font-size: 0.88rem;
    margin-top: 40px;
    border-top: 1px solid rgb(var(--border-colour));
    padding-top: 25px;
}

.references h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.references ol {
    padding-left: 30px;
}

.references li {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid rgb(var(--highlight));
}

.article-pagination {
    width: 100%;
    max-height: 4rem;
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    padding: 0.5em;
}

.pag-button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    font-weight: 500;
    padding: 0.5em;
    border-radius: 0.5em;
    cursor: pointer;
}

.pag-button:not(.disabled):hover {
    color: rgb(var(--highlight-dark));
    background-color: rgb(var(--highlight));
}

.pag-bar {
    width: 0;
    border-right: 1px dashed rgb(var(--border-colour));
    height: 100%;
}

/* Footer Styles */
footer {
    background: rgb(var(--primary));
    color: rgb(var(--bg-body));
    padding: 3rem 0;
    font-size: 0.88rem;
    min-height: 18rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.footer-content {
    max-width: 70em;
    margin: 0 auto;
    padding: 0 1.5em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.3em;
}

.footer-section h3 {
    font-size: 1.17rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: rgb(var(--highlight));
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgb(var(--bg-main));
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.25em 1em;
    margin: -0.25em -1em;
    border-radius: 500px;
}

.footer-links a:not(.disabled):hover {
    color: rgb(var(--primary));
    background-color: rgb(var(--bg-main));
}

.footer-links a i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-left: 1px solid rgba(var(--bg-main), 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 0 2em;
    /* color: rgb(var(--primary-dark)); */
}

.supported-browsers {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.supported-browsers span {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.supported-browsers img {
    width: 1.4em;
    height: auto;
}

.text-centre {
    text-align: center !important;
}

.text-indent {
    text-indent: 2em;
}

.text-strikethrough {
    text-decoration: line-through;
}

.preview-box {
    position: absolute;
    background-color: rgba(var(--highlight), 0.5);
    backdrop-filter: blur(10px);
    --webkit-backdrop-filter: blur(10px);
    /* border: 1px solid var(--border-color); */
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 10px;
    width: min(300px, 30dvw);
    z-index: 1;
    transform: scale(0.98);
    opacity: 0;
}

:root[data-theme="dark"] .preview-box {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.preview-box.visible {
    transform: scale(1);
    opacity: 1;
}

.preview-title {
    display: none;
    font-size: 1.05rem;
    font-weight: bold;
}

.preview-description {
    font-size: 0.8rem;
    color: rgb(var(--text-paragraph));
    text-align: justify;
}

.preview-reference {
    font-size: 0.7rem;
    color: rgba(var(--text-paragraph), 0.8);
    font-weight: 500;
    margin-top: 5px;
    text-align: right;
}

:not(:lang(zh-tw))>ruby+ruby {
    margin-left: 0.4em;
}

:not(:lang(zh-tw))>ruby rt {
    font-size: 0.7em;
    font-weight: 500;
    padding-bottom: 0.3em;
}

.rubyWrapper {
    display: contents;
}

ruby rt:empty {
    display: none;
}

ruby rt sup {
    display: inline-block;
    line-height: 0;
    font-size: 1em;
    width: 0;
    height: 0;
    vertical-align: super;
    margin-left: -0.2em;
}

ruby {
    display: inline-flex;
    align-items: center;
    margin-right: 0.2em;
}

ruby rt {
    display: inline-block;
    opacity: 0.7;
    font-family: 'ZutekSans', 'Bpmf', sans-serif;
    font-size: 0.4em;
    font-weight: 500;
    max-height: 3em;
    max-width: 1.5em;
    line-height: 1em;
    text-wrap: wrap;
    text-align: left;
    margin-left: 0.2em;
}

ruby rt:not(:has(sup)) {
    max-width: 1em;
}

ruby rt sub {
    display: block;
    text-align: center;
    margin-top: -0.75em;
    font-size: 1em;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .sidebar {
        min-width: 220px;
        width: 25dvw;
    }

    .infobox {
        width: 250px;
    }

    .article-actions a:hover {
        transform: scale(1);
    }

    .article-actions a:active {
        transform: scale(0.8);
    }
}

@media (max-width: 900px) {
    header {
        padding: 0 1rem;
    }

    .container {
        min-height: calc(100dvh - 22.5rem);
    }

    main {
        padding: 0 1.5em 0.5em;
    }

    .sidebar {
        --height: calc(100dvh - 2em);
        position: fixed;
        top: 1em;
        right: calc(-1 * 70dvw);
        left: unset;
        width: min(70dvw, 300px);
        height: var(--height);
        z-index: 11;
        backdrop-filter: blur(10px);
        --webkit-backdrop-filter: blur(10px);
        background: rgba(var(--bg-main), 0.85);
    }

    .overlay {
        position: fixed;
        z-index: 10;
        width: 100dvw;
        height: 100dvh;
        background-color: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(5px);
        --webkit-backdrop-filter: blur(5px);
        opacity: 0;
    }

    .sidebar.active {
        right: 1em;
    }

    .overlay.active {
        display: block;
        position: fixed;
        opacity: 1;
    }

    header #sidebar {
        display: flex;
    }

    .game-cards {
        gap: 0.75em;
        margin: 1em 0;
    }

    .card .card-icon {
        height: 8em;
    }

    .card-icon img {
        width: 3.5em;
    }

    .card-icon .material-symbols-rounded {
        font-size: 3.5em;
    }

    .infobox {
        float: none;
        width: 100%;
        margin: 0 0 30px 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

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

    .user-actions {
        width: 100%;
        justify-content: center;
    }

    .article-container-group {
        gap: 0.6em;
    }

    .container {
        padding: 0.7rem;
    }

    .preview-box {
        width: 50dvw;
    }

    footer {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        border-left: none;
        border-top: 1px solid rgba(var(--bg-main), 0.1);
        margin-top: 2.4rem;
        padding-top: 2.4rem;
    }
}