:root {
	--maincolor: lightgray;
	--backgroundcolor: black;
	--linkcolor: #10e07e;
	--linkhovercolor: #1bb598;
	--bordercolor: #444;
	--displayfont: 'clashdisplay', sans-serif;
	--regularfont: 'archivo', sans-serif;
	--radius: 12px;
}




/************************* FONTS *************************/
@font-face {font-family: 'clashdisplay'; src: url("fonts/clashdisplay.woff2"); font-weight: normal; font-display: swap;}
@font-face {font-family: 'clashdisplay'; src: url("fonts/clashdisplay_bold.woff2"); font-weight: bold; font-display: swap;}
@font-face {font-family: 'archivo'; src: url("fonts/archivo.woff2"); font-weight: normal; font-style: normal; font-display: swap;}
@font-face {font-family: 'archivo'; src: url("fonts/archivo_bold.woff2"); font-weight: bold; font-style: normal; font-display: swap;}




/************************* RESET *************************/
* {margin: 0; padding: 0; border: 0; outline: 0; box-sizing: border-box; text-decoration: none;}
a, a img {transition: .1s ease-out;}




/************************* BODY *************************/
html {background: black; position: relative;}
html {scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--maincolor) transparent;}
html {font-family: var(--regularfont); font-size: 20px; letter-spacing: .02em; line-height: 1.5rem; color: var(--maincolor);}
html::-webkit-scrollbar {width: 8px; background: var(--backgroundcolor);}
html::-webkit-scrollbar-thumb {background: var(--maincolor); border-radius: 0; border: 0;}

body {min-height: calc(100vh - 100px); padding: 50px; margin: 50px; border: 3px solid var(--bordercolor); background: url("images/background.gif") no-repeat top center var(--backgroundcolor); background-size: cover; background-attachment: fixed;}
body.scroll_locked {overflow-y: hidden;}



/************************* HEADER *************************/
header {width: max-content; margin: -53px auto 50px; border: 3px solid var(--bordercolor); border-top: 0; border-radius: 0 0 20px 20px; background: var(--backgroundcolor); position: relative; z-index: 10;}
header a {display: block; padding: 0 30px 30px; perspective: 200px;}
header a svg {display: block; width: 80px; height: auto; margin: auto; fill: var(--maincolor);transition: transform .4s ease-out;}
header a:hover svg {transform: rotateY(-180deg);}




/************************* MENU *************************/
.menu {display: block; font-size: .66rem; letter-spacing: .66em; text-transform: uppercase; text-align: center; font-weight: bold; color: var(--maincolor); line-height: 50px;}
.menu a {display: block; white-space: nowrap; padding: 0 30px 0 35px; margin: 0; color: var(--maincolor);}
.menu a:hover:not(.current) {opacity: .66;}
.menu a.current {color: var(--backgroundcolor); background: var(--maincolor);}
.menu span {padding: 0;}

.navigation, .language {position: fixed; width: 50px; height: 50px; overflow: visible; top: calc(50% - 25px); transform: rotate(270deg) translateX(-25px); display: flex; flex-direction: row-reverse; justify-content: center;}
.navigation {left: 1px; transform-origin: top left;}
.language {right: 50px; top: calc(50% - 75px); transform-origin: top right;}




/************************* MOBILE MENU *************************/
.mobile_menu {display: none; font-family: var(--displayfont); font-size: larger; color: var(--maincolor);}

.mobile_menu .mobile_menu_button {position: absolute; top: 30px; right: 30px; z-index: 200; cursor: pointer; transition: 0s;}
.mobile_menu .mobile_menu_button svg:first-child {display: block;}
.mobile_menu .mobile_menu_button svg:last-child {display: none;}
.mobile_menu .mobile_menu_button.opened svg:first-child {display: none;}
.mobile_menu .mobile_menu_button.opened svg:last-child {display: block;}

.mobile_menu_links {display: flex; width: 100%; z-index: 100; position: fixed; top: 0; left: 101vw; padding: 50px 10%; background: #0008; backdrop-filter: blur(5px); height: 100vh; flex-direction: column; justify-content: center; transition: .4s;}
.mobile_menu_links.opened {left: 0;}
.mobile_menu_links a {display: block; padding: 20px; border: 3px solid var(--bordercolor); border-radius: var(--radius); margin-bottom: 10px; font-size: 1.8rem;  font-weight: bold; text-align: center; text-transform: uppercase; color: var(--maincolor); background: var(--backgroundcolor); overflow: hidden; cursor: pointer;}
.mobile_menu_links a:hover {border-color: var(--maincolor);}




/************************* ARTICLE *************************/
main, aside {max-width: 900px; margin: 0 auto;}
main.home {max-width: 1400px;}

main a {color: var(--linkcolor); cursor: pointer;}
main a:hover {color: var(--linkhovercolor);}

h1 {font-family: var(--displayfont); font-size: 4.5rem; margin: 0 auto 15px; line-height: .9em; text-align: center; text-transform: uppercase;}
hgroup p {font-family: var(--displayfont); font-size: 1.1rem; font-weight: normal; margin-bottom: 50px; text-align: center; line-height: 1.1; letter-spacing: .05em;}
h2 {font-family: var(--displayfont); font-size: 2.25rem; margin: 0 0 30px 0; line-height: 1em; text-transform: uppercase;}
h3 {font-family: var(--displayfont); font-size: 1.5rem; margin: 0 0 25px 0; line-height: 1em;}

hr {border-top: 3px solid var(--maincolor); margin: 75px 0 25px;}

article ul:not(:last-child) {margin-bottom: 2em; padding: 0; list-style: none;}
article li {margin: 0 0 0 1.2em;}
article p:not(:last-child) {margin-bottom: 2em;}
article small {font-size: 10px;}
article img {display: block; max-width: 100%;}

del {text-decoration: line-through;}

video {width: 100%; height: auto; border: 3px solid var(--bordercolor); border-radius: var(--radius); background: var(--backgroundcolor);}
video[poster] {width: 100%; height: 100%; object-fit: cover; background: var(--backgroundcolor);}

.footnote {margin-top: 150px;text-align: center;}
.footnote h2 {text-transform: none;}

.centered {padding: 90px 0 100px;}
.centered + .centered:not(.box) {padding-top: 0;}
.centered p {padding-left: 50px; margin-left: 50px; border-left: 3px solid;}
.centered ul {padding-left: 50px; margin-left: 50px;}
.centered ul li {list-style: none; position: relative;}
.centered ul li:before {display: block; width: 28px; height: 18px; content: " "; border-left: 3px solid; border-bottom: 3px solid; position: absolute; left: -50px; top: -2px;}
.centered a {text-decoration: underline;}

.fit {display: block; width: 100%; height: auto; border: 3px solid var(--bordercolor); border-radius: var(--radius); text-align: center; font-style: italic;}




/************************* GAMES *************************/
.games {display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 20px; text-align: center;}
.games article {font-size: .9rem;}
.games article img {width: 100%; height: auto; display: block; border: 3px solid var(--bordercolor); border-radius: var(--radius); color: var(--maincolor); background: var(--maincolor); transition: .1s ease-out;}
.games article img:hover {border-color: var(--maincolor); transform: scale(1.05);}
.games article div {display: block; margin-top: 20px; font-size: .85rem; line-height: 1.3em;}
.games article h2 {font-size: 1.1em; margin: 0; padding: 0; text-transform: none;}




/************************* OTHER GAMES *************************/
.other_games {display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 10px; text-align: center;}
.other_games a {display: block; font-size: .9rem;}
.other_games img {width: 100%; height: auto; display: block; border: 3px solid var(--bordercolor); border-radius: var(--radius); color: var(--maincolor); transition: .1s ease-out;}
.other_games img:hover {border-color: var(--maincolor); transform: scale(1.05);}




/************************* GAME DATA *************************/
.game_data {display: grid; grid-template-columns: 1fr 2fr; grid-gap: 50px; align-items: start; font-size: .9rem; line-height: 1.2em; color: var(--maincolor);}
.game_image {display: block;}
.game_image img {display: block; width: 100%; height: auto; border: 3px solid var(--bordercolor); border-radius: var(--radius); background: black;}
.game_credits {padding: 40px; border: 3px solid var(--bordercolor); border-radius: var(--radius); background: var(--backgroundcolor); position: relative;}
.game_credits h2 {font-size: 1.75rem; font-weight: normal; margin: -5px 0 30px;}
.game_credits strong {display: block; margin-top: 15px;}
.game_credits a {text-decoration: underline;}
.game_credits img {display: block; height: 32px; margin: 15px 0 0 auto;}




/************************* SCREENSHOTS *************************/
.screenshots {position: relative; background: black;}
.screenshots img {display: block; width: 100%; max-height: 900px; object-fit: contain; border: 3px solid var(--bordercolor); border-radius: var(--radius); margin: auto; background: black;}
.screenshots svg {display: block; position: absolute; top: calc(50% - 30px); z-index: 8; width: 60px; height: 60px; padding: 10px; cursor: pointer; border-radius: 100px; stroke: var(--backgroundcolor); background: var(--maincolor); transition: .1s ease-out;}
.prev {position: absolute; top: calc(50% - 30px); width: 40px; height: 60px; cursor: pointer; left: -30px;}
.next {position: absolute; top: calc(50% - 30px); width: 40px; height: 60px; cursor: pointer; right: -30px;}
.prev:hover {background-color: white;}
.next:hover {background-color: white;}



/************************* ZOOMABLE IMAGES *************************/
.zoom {cursor: zoom-in; transition: .1s ease-out;}
.zoom:hover {border-color: var(--maincolor);}

.lightbox {display: flex; justify-content: center; align-items: center; position: fixed; width: 100vw; height: 100vh; top: 0; left: 0; z-index: 999; background: #0008; backdrop-filter: blur(5px); opacity: 0; transition: opacity .1s ease-out; pointer-events: none; cursor: zoom-out;}
.lightbox.opened {pointer-events: inherit; opacity: 1; transition: 0;}
.lightbox img {height: 80%; border: 3px solid var(--bordercolor); border-radius: var(--radius); object-fit: contain; object-position: center center; transform: scale(.8); transition: transform .2s ease-out;}
.lightbox.opened img {transform: scale(1); border-color: var(--maincolor);}




/************************* BOX *************************/
.box {display: block; padding: 25px 50px 50px; border: 3px solid var(--bordercolor); border-radius: var(--radius); color: var(--backgroundcolor); background: var(--maincolor); overflow: hidden;}
.box h2 {max-width: 13em; margin: 15px auto 40px; text-align: center;}
.box ul {display: grid; grid-template-columns: repeat(2, 1fr); grid-column-gap: 20px;}
.box ul li {margin-bottom: 5px; list-style: none;}
.box ul li a {display: flex; justify-content: space-between; padding: 10px 20px; border-radius: 24px; font-size: .8rem; line-height: 1.3rem; background: #fff6; color: var(--backgroundcolor);}
.box ul li a:hover {background: white;}
.box ul li a span {color: #0003;}
.box a {color: var(--linkcolor);}
.box br:last-child {display: none;}
.box *:last-child:not(li) {margin-bottom: 0;}




/************************* DOWNLOAD BUTTON *************************/
.button {display: grid; grid-template-columns: auto 1fr; grid-gap: 15px; align-items: center; width: fit-content; font-size: 1rem; line-height: 1.2em; padding: 15px 40px 15px 35px; margin: 50px auto 2.5rem; border-radius: 50px; color: black !important; background: white; box-shadow: 0 0 0 white, 0 0 0 transparent; transition: box-shadow .1s ease-out;}
.button svg {width: 40px; height: auto; stroke: currentcolor;}
.button:hover {box-shadow: 0 0 0 3px white, 0 30px 15px -15px #0003; color: white !important; background: linear-gradient(var(--linkcolor), var(--linkhovercolor));}
.button strong {text-transform: uppercase;}




/************************* OTHER VERSIONS *************************/
.versions {display: block; width: max-content; padding: 15px; margin: 20px auto -50px; font-size: .9rem; font-weight: normal; text-align: center; color: var(--backgroundcolor); opacity: .33; transition: .1s ease-out; cursor: pointer;}
.versions:hover {opacity: 1;}
.versions + ul {display: none; margin-top: 30px;}
.versions.opened {padding: 15px 20px 30px; margin: 20px auto -30px; font-size: 1rem; font-weight: bold; opacity: 1;}
.versions.opened + ul {display: grid;}




/************************* PHYLOSOPHY *************************/
.phylosophy {column-count: 2; column-gap: 30px; margin-top: 2rem;}
.phylosophy h3 {display: inline-block; padding: 4px 8px; margin: 15px 0; font-size: 1rem; text-transform: uppercase; color: var(--maincolor); background: var(--backgroundcolor);}
.phylosophy p {display: table; font-size: .9rem; break-inside: avoid-column; line-height: 1.4em;}




/************************* LOGOS *************************/
.logos {display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 3px; margin: 25px 0 0;}
.logos a {display: block; border-radius: var(--radius); background: white;}
.logos a:not([href]) {cursor: default; pointer-events: none;}
.logos a img {display: block; width: 100%; height: auto; filter: brightness(0); transition: 0s;}
.logos a:hover {background: linear-gradient(var(--linkcolor), var(--linkhovercolor));}
.logos a:hover img {filter: brightness(1);}




/************************* MINIGAMES *************************/
.minigames {display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 30px;}
.minigames h2 {font-size: 1.25rem; margin: 30px 0 10px 0; padding: 0; line-height: 1.2; text-align: left;}
.minigames p {line-height: 1.4em; margin-bottom: 0;}
.minigames a {white-space: nowrap; font-weight: bold;}
.minigames img {display: block; width: 100%; border: 3px solid var(--bordercolor); border-radius: var(--radius);}




/************************* STORIES *************************/
.stories {column-count: 2; column-gap: 25px;}
.stories div {display: table; width: 100%; break-inside: avoid; overflow: hidden;}
.stories p {display: table; padding: 1.5em 0 1.5em; line-height: 1.4em;}
.stories a {white-space: nowrap; font-weight: bold;}
.stories img {display: block; width: 100%; border-radius: var(--radius);}




/************************* FOOTER *************************/
footer {margin: 50px 0 0; font-size: .9rem; text-align: center; color: var(--maincolor);}
footer a {color: var(--maincolor); padding-bottom: 8px;}
footer a:hover {opacity: .66;}
footer .spacer:before {content: '—'; display: inline-block; margin: 0 8px;}




/************************* ERROR 404 *************************/
.error404 p {margin: 50px auto; text-align: center;}




/************************* MEDIA QUERIES *************************/
@media (max-width: 1600px) {
	.games {grid-template-columns: repeat(4, 1fr);}
}
@media (max-width: 1200px) {
	.games {grid-template-columns: repeat(3, 1fr);}
	.game_data {grid-gap: 30px;}
}
@media (max-width: 992px) {
	body {margin: 15px; padding: 50px 30px;}
	header {margin-top: -53px;}
	header a {padding: 0 20px 20px;}
	header a svg {width: 60px;}
	hgroup p {font-size: 1rem;}
	.menu {display: none;}
	.mobile_menu {display: block;}
	h1 {font-size: 4rem;}
	h2 {font-size: 2rem; padding: 0;}
	h3 {font-size: 2rem;}
	.other_games {grid-template-columns: repeat(6, 1fr);}
	.box {padding: 25px 5%;}
	.versions {margin-bottom: -25px;}
	.game_credits {padding: 30px;}
	.footnote {text-align: inherit;}
	.footnote br {display: none;}
}
@media (max-width: 768px) {
	html {font-size: 17px;}
	body {margin: 0; border: 0; padding: 50px 20px;}
	.mobile_menu .mobile_menu_button {top: 20px; right: 20px;}
	header a {padding: 20px;}
	 h1 {font-size: 3rem;}
	.games {grid-template-columns: repeat(2, 1fr);}
	.other_games {grid-template-columns: repeat(5, 1fr);}
	.logos {grid-template-columns: repeat(3, 1fr);}
	.screenshots svg {width: 50px; height: 50px; padding: 8px; top: calc(50% - 25px);}
	.screenshots .prev {left: -15px;}
	.screenshots .next {right: -15px;}
	.box ul {grid-template-columns: 1fr;}
	.minigames {grid-template-columns: 1fr;}
	.stories {column-count: 1;}
	.phylosophy {column-count: 1;}
	.lightbox img {width: auto; height: auto; max-width: 90%; max-height: 90%;}
	.game_credits img {position: inherit; height: 28px; margin: 20px 0 0 auto;}
	.centered {padding: 50px 0;}
	.centered p {padding-left: 0; border: 0; margin-left: 0;}
	.centered ul {padding-left: 30px; border: 0; margin-left: 0;}
	.centered ul li:before {width: 18px; height: 0; left: -30px; top: 12px; border-left: 0;}
}
@media (max-width: 576px) {
	 h1 {font-size: 2.5rem;}
	.other_games {grid-template-columns: repeat(4, 1fr);}
	.game_data {grid-template-columns: 1fr 3fr 3fr; grid-gap: 20px;}
	.game_image {grid-column: 1 / span 2;}
	.game_credits {grid-column: 2 / span 2;}
	.game_credits h2 {margin-bottom: 20px;}
	.logos {grid-template-columns: repeat(2, 1fr);}
	.button {grid-template-columns: 1fr; text-align: center; padding: 15px 30px 15px 30px;}
	.button svg {display: none;}
}