
*, *::before, *::after {
	box-sizing: border-box;
	/* margin: 0;  */
	/* padding: 0; */
}

html {
	--bg: light-dark( #FFF, #000 );
	--fg: light-dark( #000, #FFF );

	--ora:#E69F00;
	--sky:#56B4E9;
	--gre:#009E73;
	--yel:#F0E442;
	--blu:#0072B2;
	--red:#D55E00;
	--pur:#CC79A7;
	--gry:#999999;
	--bla:#000000;
	--amb:#F5C710;

	--per: var( --pur );
	--pri: var( --ora );
	--pub: var( --sky );

	--coco-0: #1C1C1C;
	--coco-1: #FFD467;
	--coco-2: #FDF5E8;

	--swsh: #E4499C;

	--neoc: #6BA8B4;

	--dci0: #000000;
	--dci1: #FFFFFF;
	--dci2: #B90080;
	--dci3: #F7E75A;
	--dci4: #D15371;
	--dci5: #DB7E6B;
}

html[dark] {
	--bg: light-dark( #000, #FFF );
	--fg: light-dark( #FFF, #000 );
}

html {
	touch-action: manipulation;
}

html {
	width: 100%;

	background: var( --bg );
	color:      var( --fg );

	font-family: Verdana;

	caret-color: transparent;
}

input {
	caret-color: currentColor;
}

body {
	user-select: all;
	overflow-x: hide;
}

body > * {
	user-select: none;
}

h1, h2, h3, h4, h5, p {
	user-select: text;
}

*[per] { color: var( --per ); }
*[pri] { color: var( --pri ); }
*[pub] { color: var( --pub ); }

h1, h2, h3, h4 {
	text-align: center;
}

div {
	display: flex;
	justify-content: center;
	gap: 10px;
}

div > h3 {
	flex: 1 1 0;
}

div > p {
	flex: 1 1 0;
	text-align: center;
}

section {
	text-align: center;
}

main, side {
	display: flex;
	justify-content: center;

	padding: 0 10px;
	flex-wrap: wrap;
}

main {
	font-size: 60px;
	gap: 10px;
}

side {
	width: auto;
	gap: 6px;
	font-size:18px;
}

section > a,
main > a,
side > a,
div  > a {
	height: 60px;
	line-height: 60px;

	text-decoration: none;
	text-align: center;

	background: var( --color );
	color: var( --fg );
}

a[pub] {
	--color: var( --pub );
	color: var( --fg );
}

a[pri] {
	--color: var( --pri );
	color: var( --fg );
}

a[per] {
	--color: var( --per );
	color: var( --fg );
}

a:hover,
a:active {
	background: var( --fg );
	color: var( --color );
}

a:empty {
	pointer-events: none;
}

main > a {
	flex: 1 1 0;
	max-width: 240px;
	height: 240px;
	line-height: 240px;
}

side > a {
	flex: 1 1 0;
	max-width: 60px;
	height: 60px;
	line-height: 60px;
}

section > a,
div > a {
	flex: 0 1 auto;
	text-align: center;
	padding: 0 10px;
}

div > a[tri] {
	flex: 1 1 0;
	max-width: 100px;
}





div:not([app]) > a:hover,
div:not([app]) > a:active,
div[app] > a[none]:hover,
div[app] > a[none]:active {
	color: var( --bg );
}

a[home] {
	color: var( --fg );
	user-select: all;
}

a[home],
p > a {
	background: none;
	display: inline;
	cursor: pointer;
	text-decoration: underline;
	white-space: nowrap;
}

a[home]:hover, a[home]:active,
p > a:hover, p > a:active {
	background: none;
	color: var( --fg )
}

div > h3,
div > p {
	max-width: 480px;
}

date {
	font-size: 10px;
}

a[itch] {
	background: #FA5C5C;
	color: #FFF;
	font-size: 20px;
	font-weight: 600;
}

a[itch]:hover,
a[itch]:active {
	background: #FFF;
	color: #FA5C5C;
}

a {
	cursor: pointer;
}

a[comradery] {
	padding: 0;
	width: 206px;
	max-width: 206px;
}

a[comradery]:hover  > svg,
a[comradery]:active > svg {
	background: var( --coco-2 );
}

a[comradery]:hover  > svg path:first-child,
a[comradery]:active > svg path:first-child {
	fill: var( --coco-1 );
}

a[sweetshop] {
	background: var( --swsh );
	color: #FFF;
	font-weight: 600;
}

a[sweetshop]:hover,
a[sweetshop]:active {
	background: #FFF;
	color: var( --swsh );
}

main a,
side a,
a[tri],
a[href^=join] {
	text-decoration: underline;
}

output {
	display: block;
	background: var( --red );
	color: #FFF;
	text-align: center;
	line-height: 60px;
}

div[pub] > a {
	text-decoration: underline;
}

a[dci] {
	background: var(--dci2);
	color: var(--dci3);
	font-weight: 600;
	text-decoration: none;
}

a[dci]:hover,
a[dci]:active {
	background: var(--dci3);
	color: var(--dci2);
}

div[app] > a {
	width: 180px;
}

form {
	justify-content: center;
	text-align: center;
	display: flex;
	gap: 6px;
}

form > input {
	height: 60px;
	line-height: 60px;
	padding: 0 10px;
	font-size: 18px;
}

a:hover:not(:active),
a:focus:not(:active),
input:focus {
	outline: 3px solid var( --fg );
}

form > a {
	color: var( --fg );
	background: var( --pub );
	line-height: 60px;
	width: 60px;
	padding: 0 10px;
}

h2 > a[pub] {
	background: var( --pub );
}

h2 > a[per] {
	background: var( --per );
}

h2 > a[pub]:hover,
h2 > a[pub]:active {
	background: var( --fg );
	color: var( --pub );
}

h2 > a[per]:hover,
h2 > a[per]:active {
	background: var( --fg );
	color: var( --per );
}

h2 > a[pub],
h2 > a[per] {
	user-select: none;
	padding: 0 10px;
	line-height: 60px;
}

h2 {
	line-height: 60px;
	margin: 6px 0;
}

main > a {
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}

a[pub][top] {
	background: none;
	color: var( --pub );
}

a[pub][top]:hover,
a[pub][top]:active {
	background: var( --fg );
}


a[per][top] {
	background: none;
	color: var( --per );
}

a[per][top]:hover,
a[per][top]:active {
	background: var( --fg );
}

input {
	background: none;
	border: 4px solid var( --pub );
	color: var( --pub );
}

body {
	margin: 20px;
}

html[pub] {
	background: var( --pub );
	color: var( --fg );
}

output + h2 {
	display: flex;
}

a[top] {
	margin: 0 6px;
	flex: 1 1 0;
}

main > a[href] {
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}

h3 {
	margin: 12px 0;
}

div + h4 {
	margin-top: 0;
}

p > a:hover,
p > a:active {
	color: var( --bg );
}

img[user] {
	width: 60px;
	height: 60px;
	box-shadow: 0 0 0 3px var( --bg );
	border-radius: 30px;
	padding: 3px;
	margin: 3px 3px;
}

img[user]:not([src]) {
	opacity: 0;
}

img[user][pub] {
	box-shadow: 0 0 0 3px var( --pub );
}

img[user][per] {
	box-shadow: 0 0 0 3px var( --per );
}

img[user][pri] {
	box-shadow: 0 0 0 3px var( --pri );
}

output + h2 {
	flex-wrap: wrap;
}

output + h2 > span {
	white-space: wrap;
	line-height: 30px;
}

div[app] {
	flex-wrap: wrap;
}

svg {
	background: var( --coco-1 );
	padding: 0 20px;
	height: 60px;
}

a[peer] {
	font-weight: 600;
}

a[comradery] {
    width: 180px;
}

a[peer] {
    width: 180px;
    white-space: wrap;
    line-height: 20px;
    overflow: hidden;
    min-width: 180px;
}

div[app] a[peer] {
    line-height: 60px;
}

main > div > a {
	width: 240px;
	height: 240px;
	line-height: 240px;
}

main > div {
	width: 240px;
	display: flex;
	flex-direction: column;
}

div {
	flex-wrap: wrap;
}

a[peer] {
	line-height: 60px;
}

a[peer][x2] {
	line-height: 20px;
	padding-top: 10px;
}

a[peer][x3] {
	line-height: 20px;
}

div[app] + div {
	margin-top: 10px;
}

div {
	max-width: 960px;
	margin: auto;
}

main > div {
	margin: 0;
}

div > section {
	width: 180px;
}






div[dci] {
	width: 100%;
	flex-direction: column
}

div > p {
	max-width: none;
}

a[dci] {
	width: 100%;
}

div[dci] {
	outline: 10px solid var(--dci2);
	background: var(--dci3);
	color: var(--dci2);
	padding: 5px;
}








div[clay] {
	width: 100%;
	flex-direction: column;
	--bg: #DDD;
}

h4 + div[clay] {
	margin-top: 40px;
}

div > p {
	max-width: none;
}

div[clay] > a {
	width: 100%;
	background: var(--fg);
	color: var(--bg);
}

div[clay] > a:hover,
div[clay] > a:active {
	background: var(--bg);
	color: var(--fg);
}

div[clay] {
	outline: 10px solid var(--fg);
	background: var(--bg);
	color: var(--fg);
	padding: 5px;
}





a[pub][wip] {
	background: var(--bg);
	color: var(--pub);
	box-shadow: inset 0 0 0 3px var(--pub);
	padding: 0;
}

a[pri][wip] {
	background: var(--bg);
	color: var(--pri);
	box-shadow: inset 0 0 0 3px var(--pri);
	padding: 0;
}

a[per][wip] {
	background: var(--bg);
	color: var(--per);
	box-shadow: inset 0 0 0 3px var(--per);
	padding: 0;
}

a[pub] {
	padding: 0;
}

a[pri] {
	padding: 0;
}

a[per] {
	padding: 0;
}



div[dci] > a[dci]:hover,
div[dci] > a[dci]:active {
	color: var(--dci2);
}




a[neocities] {
	background: var(--neoc);
	color: #fff;
}

a[neocities]:hover,
a[neocities]:active {
	background: #fff;
	color: var(--neoc);
}



div[eta] {
	width: 100%;
	flex-direction: column;
	outline: 10px solid var(--fg);
	--bg: #DDD;
	background: var(--bg);
	--fg: #AAA;
	padding: 5px;
}

date {
	color: var(--fg);
}

div[eta] > a:hover {
	outline: none;
}

div {
	margin-bottom: 10px;
}







a[ghost] {
	background: var(--bg);
	--bg: #15171A;
	color: #D1FF19;
}

a[ghost]:hover,
a[ghost]:active {
	--bg: #D1FF19;
	color: #15171A;
}





img[map] {
	width: 960px;
	height: 480px;
}






html {
	overflow: hidden;
	height: 100vh;
}

body {
	overflow: hidden;
	position: relative;
	height: 100vh;
	margin: 0;
}

page {
	overflow-y: scroll;

	display: block;
	position: absolute;
	top: 0;
	left: 0;

	opacity: 0;

	min-height: calc( 100vh - 40px );
	min-width: 100%;
	height: 100%;

	transition: opacity 0.2s linear;
}

page:target {
	opacity: 1;
}

page:not(:target) {
	pointer-events: none;
	opacity: 0;
}

page[pub] {
	--bg: var(--pub);
	--fg: #FFF;
	background: var(--bg);
	color: var(--fg);
}

page[pri] {
	--bg: var(--pri);
	--fg: #FFF;
	background: var(--bg);
	color: var(--fg);
}

page[per] {
	--bg: var(--per);
	--fg: #FFF;
	background: var(--bg);
	color: var(--fg);
}

page:not(#home) {
	overflow: hidden;
}

page:not(#home) top {
	display: flex;
	gap: 3px;
}

page:not(#home) top a {
	flex: 1 1 0;
	text-align: center;
	background: var(--bg);
	line-height: 60px;
}

page:not(#home) a[pub] {
	--bg: var(--pub)
}

page:not(#home) a[pri] {
	--bg: var(--pri)
}

page:not(#home) a[per] {
	--bg: var(--per)
}

page:not(#home) a:hover,
page:not(#home) a:active {
	--fg: #FFF;
	background: var(--fg);
	color: var(--bg);
}

top a:not([href]) {
	pointer-events: none;
}

form[sign] {
	display: flex;
	flex-direction: column;
}

form[sign] input {
	max-width: 240px;
	font-size: 56px;
	line-height: 80px;
	height: 80px;
	font-family: monospace;
}

input[password] {
	color: #FFF;
	border-color: currentColor;
	text-security: disc; -moz-text-security: disc; -webkit-text-security: disc;
	caret-color: transparent;
}

a[game] {
	display: flex;
	font-size: 18px;
	text-decoration-thickness: 1px;
	flex-direction: column;
	line-height: 40px;
	text-decoration: none;
	border: 10px solid #FFF;
	overflow: hidden;
}

a[game] img {
	display: block;
	width: 300px;
	height: 220px;
	min-width: 300px;
	min-height: 220px;
	margin-bottom: -50px;
}

page:not(#home) {
	overflow-y: auto;
	user-select: none;
}

page:not(#home) > * {
	user-select: none;
}

main,
main > div {
	gap: 6px;
}

a[game][like] {
	position: relative;
}

a[game][like]::before {
	content: "🎔";
	display: block;
	position: absolute;
	bottom: 12.6px;
	left: 18px;
	color: #FFF;
	font-size: 22px;
}

a[game][like]::after {
	content: "🎔";
	display: block;
	position: absolute;
	bottom: 12px;
	left: 20px;
	color: var(--per);
}

main[style] > a[game][like]::before,
main[genre] > a[game][like]::before {
	content: "🎔";
	bottom: 0;
	bottom: 16.6px;
}

main[style] > a[game][like]::after,
main[genre] > a[game][like]::after {
	content: "🎔";
	bottom: 16px;
}

page#play main[style] > h1 {
	display: flex;
	flex-direction: row;
	line-height: 90px;
	height: 90px;
}

page#play main[style] > h1 > a[like] {
	position: relative;
	height: 90px;
	width: 60px;
	flex-shrink: 0;
}

page#play main[style] > h1 > b {
	flex-grow: 1;
	line-height: 90px;
	height: 90px;
}

a[like]::before {
	content: "🎔";
	display: block;
	position: absolute;
	bottom: 12.6px;
	left: 18px;
	color: #FFF;
	font-size: 22px;
}

a[like]::after {
	content: "🎔";
	display: block;
	position: absolute;
	bottom: 12px;
	left: 20px;
	color: var(--per);
}

old {
	content: "❤︎";
}

h1[game] {
	width: 320px;
	line-height: 240px;
	font-size: 32px;
	margin: 0;
	user-select: none;
}

page:not(#home) main {
	margin: 6px 0;
	justify-content: center;
}

page:not(#home) input {
	border-color: #FFF;
	color: #FFF;
}

page:not(#home) input::placeholder {
	color: rgba( 255, 255, 255, 0.4 );
}

a > h1 {
	margin: 0;
	line-height: 90px;
	user-select: none;
}

a[h1] {
	width: calc( 100% - 20px );
	background: var(--fg);
	color: var(--bg);
	gap: 0;
	line-height: 90px;
	height: 90px;
}

div[h1] {
	width: 100%;
	max-width: 100%;
	max-width: 2296px;
	margin: 6px auto;
	flex-grow: 1;
	gap: 0;
}

page:not(#home) div[h1] > a[h1]:hover,
page:not(#home) div[h1] > a[h1]:active {
	--fg: #000;
	background: #000;
	color: #FFF;
}

main > a[game] {
	flex: 0 0 320px;
	width: 320px;
	max-width: 320px;
}

main[style] > h1 > a {
	height: 240px;
	line-height: 240px;
	display: block;
	text-decoration: none;
	color: var(--bg);
	background: var(--fg);
}

main[style] > a[game],
main[genre] > a[game] {
	height: 90px;
}

main[style] > a[game] > img,
main[genre] > a[game] > img {
	height: 70px;
	min-height: 70px;
	margin-bottom: -55px;
}

main[style] > a[game] > b,
main[genre] > a[game] > b {
	top: 0;
}

main[style] > h1[game] {
	height: 90px;
	line-height: 90px;
}

page#play > main {
	max-width: 2296px;
	margin: 6px auto;
}

page#play > top {
	max-width: 2296px;
	margin: 6px auto;
	padding: 0 10px;
}

main[style] > h1[game] > a[like] {
	line-height: 80px;
	text-align: center;
	width: 90px;
	flex-shrink: 0;
	min-width: 90px;
	padding-left: 20px;
}

main[style] > h1[game] > a[like]::before {
	position: absolute;
	top: 0;
	left: 30px;
}

main[style] > h1[game] > a[like]::after {
	position: absolute;
	top: 0;
	left: 30px;
	color: var(--pub);
}

main[style] > h1[game] > a[like]::after {
	position: absolute;
	top: 0;
	left: 30px;
	color: var(--pub);
}

main[game] > h1[game] > a {
	--fg: var(--pub);
	--bg: #FFF;
	background: var(--bg);
	color: var(--fg);
	width: 100%;
	display: block;
	text-decoration: none;
}

page#play main[game] > h1[game] > a:hover,
page#play main[game] > h1[game] > a:active {
	background: #000;
	color: var(--pub);
	outline-color: #000;
}

top > h2 > a:nth-child(1) {
	float: left;
}

top > h2 > a:nth-child(2) {
	float: right;
}

top > h2 > b {
	flex-grow: 1;
}

top > h2 {
	width: 100%;
}

page#play top > h2 > a {
	color: #000;
}

page#play top > h2 > a:nth-child(2) {
	background: transparent;
	color: var(--per);
	position: relative;
}

page#play top > h2 > a:nth-child(2) > img {
	width: 60px;
	height: 60px;
	position: absolute;
	left: -60px;
	border-radius: 30px;
	padding: 1.5px;
	box-shadow: inset 0 0 0 3px #FFF;

}

page#play top > h2 > a:nth-child(2) > img :not([src]) {
	padding: 0;
}
