* {
	box-sizing: border-box;
	list-style-position: inside;
}

:root {
	--fonts: gaegu-r, ms pgothic, arial;
	--d-blue: #5d92d8;
	--red: #d05874;
	--green: #c5f0af;
	--yellow: #ecc54f;
	--pink: #f47cc4;
}

html {
	scrollbar-color: #c5f0af #5d92d8;
}

body {
	background: url("/!g/bg/multi224.jpg");
	background-color: rgb(255, 252, 230);
	margin: 0;
	margin-top: 50px;
	color: #916b40;
	font-size: 17px;
	line-height: 20px;
	font-family: var(--fonts);
}

h2,
h3,
h4 {
	font-family: pixelhandwriting;
}

a {
	color: rgb(206, 102, 120);
	font-weight: bold;
}

.outlink::after {
	text-decoration: none;
	content: "↗";
	padding-left: 2px;
	vertical-align: text-bottom;
}

#wrapper {
	position: relative;
	display: grid;
	max-width: 1050px;
	margin: auto;
	grid-template-areas:
		"header header header"
		"navi intro music"
		"navi intro music"
		"navi notepad updates"
		"footer footer pic";
	grid-template-columns: 200px 500px 300px;
	grid-template-rows: 60px 300px 250px 360px;
	grid-gap: 20px;
}

.box {
	position: relative;
	border-radius: 10px;
	border: 1px dashed var(--d-blue);
	padding: 10px;
	overflow: auto;
}

dialog {
	color: inherit;
	border: 2px dashed;
	background: white;

	button {
		color: black;
		cursor: help;
		font-family: inherit;
		text-align: right;
		background: transparent;
		border: none;
		margin: 0px 15px;
		font-size: inherit;
		border-radius: 10px;
	}
}

dialog::backdrop {
	background: rgba(0, 0, 0, 0.525);
}

#close-dialog {
	color: #d05874;
	font-size: 25px;
	float: right;
}

#dialog-disagree {
	color: white;
	background: var(--red);
	float: right;
}

#dialog-disagree:hover {
	background: white;
	color: var(--red);
}

#dialog-agree {
	float: left;
	color: white;
	background-color: #76ae76;
}

#dialog-agree:hover {
	float: left;
	background: white;
	color: #76ae76;
}

header {
	background-size: cover;
	background-position: top;
	grid-area: header;
	text-align: center;
	transition-duration: 0.5s;

	h1 {
		background: linear-gradient(to right, #ffca92, #9bbcff, #ffa3d1, #9bff9b);
		background-clip: border-box;
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		line-height: normal;
		margin: 0px;
		font-weight: normal;
		font-size: 55px;
		font-family: bm-neko;
		letter-spacing: 5px;
		word-spacing: 5px;
		transition-duration: 1s;
	}

	h1:hover {
		background: linear-gradient(to left, #ffca92, #9bbcff, #ffa3d1, #9bff9b);
		background-clip: border-box;
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}

main#intro {
	box-shadow: 0px 0px 20px 0px var(--pink);
	margin-top: 30px;
	height: 370px;
	background-image: url(assets/memo-pink.jpg);
	background-color: rgb(255, 255, 255);
	background-size: cover;
	grid-area: intro;
	border: 2px solid rgb(249, 194, 203);
	line-height: 26px;
	font-size: 18px;
	scrollbar-color: #df8db2 #b5d9f4;
	transition-duration: 0.5s;
}

main#intro:hover {
	box-shadow: 0px 0px 20px 10px var(--pink);
}

main#intro .inner {
	overflow: auto;
	margin: 50px 80px 50px 100px;
	height: 220px;
}

#rss {
	grid-area: updates;
	background: rgb(221, 233, 248);
	background: radial-gradient(
		circle,
		rgb(239, 246, 255) 20%,
		rgb(250, 227, 249) 54%,
		rgb(239, 255, 224) 100%
	);
	background-position: center;
	height: 300px;
	padding: 40px 15px;
	margin-left: 30px;
	margin-top: -150px;
	border-radius: 20%;
	border: 3px solid rgb(239, 246, 250);
	box-shadow: 0px 0px 13px 4px #d9e1ff inset;
	overflow: hidden;
	scrollbar-color: rgb(176, 217, 230) white;
	transition-duration: 0.5s;
	#rss:hover {
		background-position: bottom;
	}

	h3.feed-title {
		display: none;
	}

	a {
		text-decoration: none;
		color: rgb(218, 124, 144);
	}

	.feed-item-title {
		font-size: 19px;
		margin: 5px 0px;
	}

	.feed-item-desc {
		font-size: 17px;
		line-height: normal;
		font-family: gaegu-r;
	}

	.feed-item-desc a {
		text-decoration: underline;
	}

	.feed-item-desc a:hover {
		text-decoration: line-through;
	}

	.feed-item-title {
		font-size: 13px;
		text-align: center;
	}
	.feed-item-title a::before {
		vertical-align: middle;
		content: url("assets/flower-big-pink.gif");
		padding-right: 6px;
	}

	.feed-item-title:nth-of-type(1) a {
		color: rgba(103, 126, 110, 0.815);
	}

	.feed-item-title a:hover {
		text-decoration: line-through;
	}

	.feed-item-title:nth-of-type(1) a::before {
		vertical-align: middle;
		content: url("assets/twinkle.gif");
		padding-right: 6px;
	}

	.feed-item-desc:nth-of-type(1) {
		border: 4px ridge rgba(191, 212, 192, 0.712);
		border-radius: 10px;
		padding: 10px;
		background: rgba(255, 255, 255, 0.726);
	}

	.feed-item-desc:nth-of-type(1) a {
		color: rgb(131, 131, 189);
	}

	h3 {
		margin: 0px;
		letter-spacing: 2px;
		text-align: center;
		margin-top: -20px;
		margin-bottom: 5px;
	}

	.inner {
		overflow: auto;
		height: 100%;
	}
}

/* make this the wrapper and inside have tape! */
#pic-wrapper {
	grid-area: pic;
	position: relative;
	overflow: visible;
	border: 0px;
	transition-duration: 0.5s;
	rotate: 10deg;
	margin-top: -160px;
}

#pic-wrapper:hover {
	rotate: 0deg;
}

#piclog {
	z-index: 5;
	background: white;
	border-color: white;
	border-style: solid;
	border-width: 20px 20px 80px 20px;
	border-radius: 10px;
	margin-left: 20px;
	width: 250px;
	height: 360px;
	padding: 0px;
	box-shadow: 5px 5px 1px 1px #59595989;
	transition-duration: 0.5s;

	img {
		width: 100%;
		border-radius: 10px;
	}
}

#piclog:hover {
	box-shadow: none;
}

#tape {
	z-index: 10;
	top: -25px;
	left: 20%;
	position: absolute;
	pointer-events: none;
}

#music {
	font-family: gaegu-l, arial;
	grid-area: music;
	padding: 0;
	background: rgb(193, 215, 242);
	background: linear-gradient(
		320deg,
		rgba(193, 215, 242, 1) 0%,
		rgba(255, 208, 236, 1) 48%,
		rgba(255, 229, 150, 1) 100%
	);
	border: 3px solid #e7d7f5;
	border-top: 1px;
	border-right: 0px;
	margin-left: 50px;
	color: rgb(140, 129, 179);
	rotate: -10deg;
	font-size: 21px;
	line-height: 31px;
	width: 200px;
	height: 400px;
	box-shadow: -5px 5px 1px 1px #32283c38;
	transition-duration: 0.5s;

	#album {
		text-align: center;

		img {
			width: 70%;
		}
	}

	#song,
	#artist,
	#albumname {
		text-align: left;
	}

	.icons {
		font-size: 10px;
		text-shadow: 1px 1px 2px #ffffff, -1px -1px 2px #ffffff;
	}

	.circle {
		pointer-events: none;
		position: absolute;
		border-radius: 50%;
		border: 1px solid rgb(67, 58, 98);
	}

	.small {
		width: 50px;
		height: 50px;
		top: 288px;
		left: 72px;
	}

	.big {
		top: 252px;
		left: 37px;
		width: 121px;
		height: 121px;
	}

	#screen {
		background: rgb(39, 36, 36);
		text-align: center;
		margin: auto;
		margin-top: 10px;
		width: 180px;
		height: 230px;
		border: 20px solid black;
		border-top-width: 30px;
		border-bottom-width: 30px;
		border-radius: 20px;
		font-size: 12px;
		line-height: 16px;
		overflow: auto;
		color: white;
		padding: 5px;
		scrollbar-color: rgb(39, 36, 36) rgb(39, 36, 36);
		word-break: keep-all;

		p {
			margin: 0;
			padding: 0;
		}
	}

	.up,
	.down {
		text-align: center;
	}

	.left,
	.right,
	.up,
	.down {
		font-size: 12px;
	}
	.left {
		padding-right: 21px;
	}

	.right {
		padding-left: 21px;
	}

	.play-pause {
		text-align: center;
		line-height: 15px;
	}

	.play {
		vertical-align: text-bottom;
		font-size: 14px;
		color: white;
	}

	.pause {
		font-size: 10px;
		color: white;
	}

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

#music:hover {
	rotate: 0deg;
	box-shadow: none;
}

#status {
	grid-area: status;
	margin-top: 150px;
	background: #fcfeffcb;
	border: 3px solid var(--red);
	box-shadow: 0px 0px 30px 0px var(--red) inset;
}

span.title a {
	color: inherit;
	text-decoration: none;
	font-weight: normal;
	line-height: inherit;
}

#statuscafe-username {
	display: inline-block;
}

#statuscafe-username a {
	color: #916b40;
}

#statuscafe-username::after {
	content: ":";
}

#statuscafe-content {
	display: inline;
	font-style: italic;
}

#comm {
	top: -140px;
	margin-left: 30px;
	background: transparent;
	grid-area: notepad;
	border: none;
	overflow: visible;
	height: 450px;
}

#notepad {
	position: relative;
	z-index: 2;
	background-image: url(/!g/bg/rainbow-notepad.gif);
	background-size: 80px;
	border-radius: 10px;
	border: 3px solid rgb(255, 255, 255);
	max-width: 300px;
	height: 400px;
	margin-left: 10px;
	overflow: auto;
	text-align: center;
	color: rgb(138, 103, 103);
	box-shadow: 0px 0px 16px 1px #ffffff;
	scrollbar-color: rgb(210, 223, 251) rgb(252, 240, 183);
	transition-duration: 0.5s;
}

.notepad-boxes {
	box-shadow: 0px 0px 16px 2px #ffffff inset;
	/* background-color: rgba(250, 252, 239, 0.262); */
	background-size: 90px;
	height: 100%;
	overflow: auto;
	padding: 15px;
	display: none;
	transition-duration: 0.5s;

	h3 {
		font-size: 25px;
		margin: 10px 0px;
		text-align: center;
	}
}

.notepad-boxes#now {
	a {
		color: unset;
		text-decoration: underline wavy;
	}
	.date {
		border-top: 2px dashed rgb(157, 134, 134);
		font-size: 13px;
		text-align: center;
		margin-top: 15px;
	}

	p:hover span.title::before {
		content: "╰┈➤ ";
	}

	span.title {
		display: block;
		font-family: pixelhandwriting;
		margin-bottom: 10px;
		font-size: 17px;
		line-height: 3px;
		text-shadow: 1px 1px 0px white, -1px -1px 0px white;
		transition-duration: 0.6s;
	}
}

.notepad-boxes#now,
.notepad-boxes#chat {
	background: rgba(255, 254, 249, 0.647);
	text-align: left;
	line-height: 23px;
}

p:nth-of-type(4n + 1) span.title:first-child {
	background: rgb(246, 241, 147);
}

p:nth-of-type(4n + 2) span.title:first-child {
	background: rgb(249, 184, 215);
}

p:nth-of-type(4n + 3) span.title:first-child {
	background: #c2e2ea;
}

p:nth-of-type(4n + 0) span.title:first-child {
	background: #c2eacd;
}

#tabs {
	z-index: 1;
	position: absolute;
	top: 10px;
	left: 300px;

	button {
		background: var(--d-blue);
		cursor: help;
		display: block;
		font-size: 15px;
		width: 90px;
		border: 1px solid white;
		font-family: inherit;
		padding: 2px 12px 2px 25px;
		margin: 10px 0px;
		text-align: left;
		transition-duration: 0.2s;
	}

	button:nth-of-type(4n + 1) {
		background: rgb(246, 241, 147);
	}

	button:nth-of-type(4n + 2) {
		background: rgb(249, 184, 215);
	}

	button:nth-of-type(4n + 3) {
		background: #c2e2ea;
	}

	button:nth-of-type(4n + 0) {
		background: #c2eacd;
	}

	button.active:nth-of-type(4n + 3) {
		color: #c2e2ea;
		background: black;
	}

	button.active:nth-of-type(4n + 2) {
		color: rgb(249, 184, 215);
		background: black;
	}

	button.active:nth-of-type(4n + 1) {
		color: rgb(246, 241, 147);
		background: black;
	}

	button.active:nth-of-type(4n + 0) {
		color: #c2eacd;
		background: black;
	}

	button:hover,
	button.active {
		margin-left: 17px;
		text-align: right;
		width: 90px;
	}
}

/* stickers / decorations */

aside.deco {
	position: absolute;
	pointer-events: none;
	image-rendering: pixelated;
}

#sticker2,
#sticker3,
#sticker6,
#sticker7,
#sticker8,
#sticker9 {
	pointer-events: all;
}

#sticker1 {
	z-index: 10;
	top: 190px;
	right: -20px;
}

#sticker1 img {
	width: 310px;
}

#sticker2 {
	z-index: 8;
	bottom: -70px;
	left: -20px;
}

#sticker3 {
	z-index: 8;
	top: 10px;
	right: 10px;
}

#sticker4 {
	z-index: -1;
	top: 280px;
	left: 120px;
}

#sticker5 {
	z-index: 10;
	top: 300px;
	left: -50px;
}

#sticker6 {
	z-index: 10;
	top: 670px;
	left: 300px;
}

#sticker7 {
	z-index: 10;
	top: 0px;
	left: 30px;
}

#sticker8 {
	z-index: 10;
	top: 500px;
	left: -180px;
}

#sticker9 {
	z-index: 10;
	top: 430px;
	left: -200px;
	rotate: 5deg;
}

nav.box {
	border: none;
	grid-area: navi;
	overflow: auto;

	h3 {
		letter-spacing: 5px;
		text-align: center;
		margin: 25px 10px 25px 0px;
	}

	a {
		font-weight: normal;
		font-size: 20px;
		margin: 5px 0px;
		text-decoration: none;
		color: inherit;
		display: block;
		transition-duration: 0.3s;
	}

	a:hover {
		padding: 5px 0px;
	}

	.p::before {
		content: url("assets/pink.gif");
	}

	.p:hover::before {
		content: url("assets/pink-f.gif");
	}

	.m::before {
		content: url("assets/green.gif");
	}

	.m:hover::before {
		content: url("assets/green-f.gif");
	}

	.o::before {
		content: url("assets/yellow.gif");
	}

	.o:hover::before {
		content: url("assets/yellow-f.gif");
	}

	.s::before {
		content: url("assets/blue.gif");
	}

	.s:hover::before {
		content: url("assets/blue-f.gif");
	}
}

footer.box {
	border: none;
	text-align: center;
	grid-area: footer;
}

#s-m-t-tooltip {
	background: white;
	background-size: 50px;
	text-shadow: 1px 1px 1px rgb(187, 210, 241), -1px -1px 1px rgb(187, 210, 241);
	border-radius: 10px;
	color: rgb(0, 0, 0);
	font-family: gaegu-l, var(--fonts);
	font-size: 18px;
	border: 4px double rgb(148, 176, 232);
	max-width: 400px;
	text-align: center;
	z-index: 9999;
	margin: 30px 15px 7px 12px;
	padding: 10px;
	word-break: normal;
}

@media screen and (max-width: 1040px) {
	#wrapper {
		display: block;
		grid-template-columns: 25% 50% 25%;
		grid-template-rows: 60px 300px 250px 360px;
		grid-gap: 0;
	}

	body {
		margin: 0;
		padding: 20px;
	}

	.deco {
		display: none;
	}

	main#intro,
	header,
	section#rss,
	aside#pic-wrapper,
	aside#comm,
	footer.box,
	nav.box,
	#tabs {
		display: block;
		position: relative;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		rotate: 0deg;
		width: auto;
		height: auto;
		margin: 15px 0px;
	}

	main#intro {
		background: transparent;
		box-shadow: 0px 0px 0px 0px var(--pink);
		border: 0px;
		padding: 20px;
		height: 100%;

		.inner {
			margin: 0px;
			height: 100%;
		}
	}

	main#intro:hover {
		box-shadow: 0px 0px 0px 0px var(--pink);
	}

	section#rss {
		border-radius: 5px;
		height: 400px;
		overflow: auto;
		margin: 15px 10%;
		background: transparent;
		box-shadow: 0px 0px 0px 0px var(--pink) inset;
		border: 0px;

		.inner {
			overflow: auto;
			height: auto;
			border: 0px;
		}
	}

	nav.box {
		text-align: center;

		h3 {
			margin: 4px 0;
		}

		a {
			display: inline-block;
		}

		a:hover {
			padding: 0;
		}
	}

	#tabs {
		text-align: center;
		margin: 3px;
		padding: 20px;

		button,
		button:hover,
		button.active {
			display: inline-block;
			padding: 2px 6px;
			margin: 5px 0px;
			width: auto;
			border-radius: 12px;
		}
	}

	aside#piclog,
	#notepad {
		margin: auto;
	}

	aside#music {
		display: block;
		margin: auto;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		rotate: 0deg;
		border: 1px solid black;
	}
}
/* === featured videos – final override (bigger + more centered) === */

#featured-videos {
	max-width: 1050px;        /* same content width as main layout */
	margin: 40px auto 60px;   /* center on page */
	border-radius: 10px;
	border: 2px solid rgb(249, 194, 203);
	background-image: url(assets/memo-pink.jpg);
	background-color: #ffffff;
	background-size: cover;
	box-shadow: 0px 0px 20px 0px var(--pink);
	line-height: 22px;
	font-size: 16px;
	scrollbar-color: #df8db2 #b5d9f4;
	transition-duration: 0.5s;

	/* important: let it grow with content */
	overflow: visible;
}

#featured-videos:hover {
	box-shadow: 0px 0px 20px 10px var(--pink);
}

/* inner memo area – wider so text + tv feel centered together */
#featured-videos .videos-inner {
	max-width: 840px;          /* wider than before */
	margin: 30px auto 35px;    /* center inside the box */
}

/* title + intro */
#featured-videos h2 {
	margin: 0 0 5px;
	font-size: 22px;
	text-align: left;
}

#featured-videos .video-intro {
	margin: 0 0 15px;
	font-size: 14px;
}

/* each row: text on left, tv on right, both medium-sized */
.video-row {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 12px 0 20px;
	flex-wrap: nowrap;
}

.video-text {
	flex: 0 0 45%;        /* bigger text block */
	font-size: 14px;
}

.video-text h3 {
	margin: 0 0 4px;
	font-size: 15px;
}

.video-frame {
	flex: 0 0 55%;        /* tv takes the other side */
}

/* === retro TV styling (medium) === */

.retro-tv {
	position: relative;
	width: 100%;
	padding: 8px 8px 16px;
	border-radius: 14px;
	background: radial-gradient(circle at 20% 0%, #f7e7ff 0%, #f0d3ff 35%, #c7a6ff 100%);
	box-shadow:
		0 0 0 2px #5c3a7b,
		0 6px 0 #b188e3,
		0 10px 6px rgba(0, 0, 0, 0.3);
	border: 2px solid #5c3a7b;
}

/* screen area */
.retro-tv .tv-inner {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
	border: 3px solid #2e183d;
}

/* scanlines */
.retro-tv .tv-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.04) 0px,
		rgba(255, 255, 255, 0.04) 1px,
		rgba(0, 0, 0, 0.1) 2px
	);
	mix-blend-mode: soft-light;
	pointer-events: none;
}

/* glare */
.retro-tv .tv-inner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.18),
		transparent 40%
	);
	mix-blend-mode: screen;
	pointer-events: none;
}

/* youtube iframe */
.retro-tv iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
}

/* knobs + light */
.retro-tv .tv-controls {
	position: absolute;
	right: 9px;
	bottom: 7px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tv-light {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: radial-gradient(circle at 30% 30%, #fffae0, #ffb347);
	box-shadow: 0 0 5px rgba(255, 200, 100, 0.9);
	border: 1px solid #5c3a7b;
}

.tv-knob {
	width: 16px;
	height: 16px;
	border-radius: 999px;
	border: 2px solid #5c3a7b;
	background: radial-gradient(circle at 30% 30%, #fff, #d0b1ff);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.7),
		0 1px 2px rgba(0, 0, 0, 0.4);
	position: relative;
}

.tv-knob::after {
	content: "";
	position: absolute;
	width: 2px;
	height: 5px;
	background: #5c3a7b;
	top: 2px;
	left: 50%;
	transform: translateX(-50%);
}

.tv-knob.small {
	width: 12px;
	height: 12px;
}

/* mobile: stack text + video */
@media (max-width: 768px) {
	#featured-videos .videos-inner {
		max-width: 100%;
		margin: 20px 18px 24px;
	}

	.video-row {
		flex-direction: column;
	}

	.video-text {
		flex: 1 1 100%;
	}
}
