@font-face {
	font-family: "msgothic";
	src: url(https://file.garden/Z5Do5O7JvxCrm3fo/fonts/DotGothic16-Regular.ttf);
	font-display: swap
}

@font-face {
	font-family: "freepixel";
	src: url(https://file.garden/Z5Do5O7JvxCrm3fo/fonts/FreePixel.ttf);
	font-display: swap
}

:root {
	--ink: #1a1a1a;
	--ink-light: #888;
	--ink-faint: #ccc;
	--paper: #f8f7f5;
	--paper-warm: #f0efed;
	--paper-mid: #e8e7e5
}

* {
	box-sizing: border-box
}

.bridge-page {
	background-color: #d1d1d1;
	background: url(https://i.pinimg.com/736x/a0/49/61/a049618a712bdc77f554c1c9664e9f40.jpg);
	background-size: 30%;
	background-position: left 90% top -10%;
	background-repeat: no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'msgothic', monospace;
	min-height: 100vh;
	margin: 0;
	padding: 40px 16px;
	position: relative
}

.portal-window {
	width: 90%;
	max-width: 640px;
	background: var(--paper);
	border: 1px solid #bbb;
	border-radius: 10px;
	overflow: visible;
	box-shadow: inset 0 0 0 1px #fff, 0 6px 24px rgba(0, 0, 0, 0.16);
	animation: windowIn .45s cubic-bezier(0.16, 1, 0.3, 1) both;
	position: relative
}

@keyframes windowIn {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.97)
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1)
	}
}

.portal-chrome {
	background: linear-gradient(180deg, #f6f6f6 0, #e9e9e9 100%);
	border-bottom: 1px solid #ccc;
	border-radius: 10px 10px 0 0;
	padding: 6px 8px;
	display: flex;
	align-items: center;
	gap: 7px;
	height: 32px
}

.chrome-bar {
	flex: 1;
	height: 18px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0 7px;
	font-family: 'freepixel', monospace;
	font-size: 8px;
	color: #aaa;
	display: flex;
	align-items: center;
	gap: 5px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
	letter-spacing: .03em;
	white-space: nowrap;
	overflow: hidden
}

.chrome-controls {
	display: flex;
	gap: 2px;
	flex-shrink: 0
}

.chrome-btn {
	width: 20px;
	height: 17px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0 0 4px 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	color: #999;
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
	cursor: default;
	font-family: monospace
}

.portal-header {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.85);
	padding: 5px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'freepixel', monospace;
	font-size: 9px;
	letter-spacing: .06em
}

.portal-controls span {
	margin-left: 6px;
	cursor: default;
	color: rgba(255, 255, 255, 0.5);
	font-size: 10px
}

.portal-inner {
	background-image: url();
	background-size: 5%;
	padding: 8px;
	border-radius: 0 0 10px 10px;
	position: relative
}

.portal-side-tab {
	position: absolute;
	top: -18px;
	left: 18px;
	width: 72px;
	height: 26px;
	background: var(--paper-mid);
	border: 1px solid #bbb;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10
}

.portal-side-tab a {
	color: #999;
	text-decoration: none;
	font-family: 'freepixel', monospace;
	font-size: 8px;
	letter-spacing: .08em;
	text-transform: uppercase
}

.portal-box {
	background: #faf9f8;
	border: 1px solid #ccc;
	border-radius: 7px;
	overflow: visible;
	box-shadow: inset 0 8px 8px -8px rgba(255, 255, 255, 0.95), inset 0 -8px 8px -8px rgba(0, 0, 0, 0.04), inset 10px 0 8px -10px rgba(0, 0, 0, 0.04), inset -10px 0 8px -10px rgba(0, 0, 0, 0.04);
	display: flex;
	min-height: 280px;
	position: relative
}

.portal-sidebar {
	width: 150px;
	flex-shrink: 0;
	background: #fefefe;
	padding: 14px 12px;
	text-align: center;
	position: relative;
	border-radius: 7px 0 0 7px;
	border-right: 1px dashed rgba(0, 0, 0, 0.1)
}

.portal-pfp {
	display: inline-block;
	position: relative
}

.portal-pfp img {
	width: 64px;
	height: 64px;
	border: 1px solid #ddd;
	object-fit: cover;
	border-radius: 3px;
	display: block;
	box-shadow: inset 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: filter .3s
}

.portal-info h3 {
	color: var(--ink);
	margin: 10px 0 2px;
	font-size: 12px;
	font-family: 'freepixel', monospace;
	letter-spacing: .05em
}

.portal-info p {
	font-size: 9px;
	color: var(--ink-light);
	margin: 0
}

.portal-divider {
	border: 0;
	border-top: 1px dashed rgba(0, 0, 0, 0.1);
	margin: 10px 0
}

.portal-shrine-about {
	padding: 7px;
	border: 1px dotted rgba(0, 0, 0, 0.15);
	text-align: left;
	background: rgba(255, 255, 255, 0.55);
	border-radius: 3px
}

.portal-shrine-about span {
	display: block;
	font-size: 7px;
	text-transform: uppercase;
	color: var(--ink-light);
	margin-bottom: 4px;
	letter-spacing: .1em;
	font-family: 'freepixel', monospace
}

.portal-shrine-about p {
	font-size: 9px;
	line-height: 1.5;
	color: #666;
	margin: 0
}

.sidebar-kaomoji {
	margin-top: 10px;
	font-family: 'freepixel', monospace;
	font-size: 8px;
	color: rgba(0, 0, 0, 0.18);
	line-height: 1.7;
	text-align: center;
	word-break: break-all
}

.portal-list {
	flex: 1;
	padding: 12px 10px;
	display: flex;
	flex-direction: column;
	gap: 7px
}

.portal-list-label {
	font-family: 'freepixel', monospace;
	font-size: 7px;
	text-transform: uppercase;
	letter-spacing: .15em;
	color: var(--ink-faint);
	padding-bottom: 5px;
	border-bottom: 1px dotted rgba(0, 0, 0, 0.08);
	margin-bottom: 1px
}

.shrine-item {
	display: flex;
	align-items: center;
	padding: 9px 10px;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-left: 3px solid transparent;
	border-radius: 4px;
	transition: all .22s ease;
	position: relative;
	overflow: visible;
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95)
}

.shrine-item:hover {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.16);
	border-left-color: var(--ink);
	transform: translateX(4px);
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.95)
}

.shrine-icon {
	width: 34px;
	height: 34px;
	border: 1px dashed rgba(0, 0, 0, 0.18);
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: var(--ink);
	margin-right: 10px;
	flex-shrink: 0;
	transition: all .2s;
	background: rgba(255, 255, 255, 0.5)
}

.shrine-item:hover .shrine-icon {
	border-style: solid;
	background: var(--ink);
	color: white
}

.shrine-text {
	flex: 1;
	min-width: 0
}

.shrine-name {
	display: block;
	font-weight: bold;
	color: var(--ink);
	font-size: 11px;
	letter-spacing: .04em;
	font-family: 'freepixel', monospace;
	margin-bottom: 2px
}

.shrine-desc {
	display: block;
	font-size: 9px;
	color: var(--ink-light)
}

.shrine-arrow {
	font-size: 10px;
	color: var(--ink-faint);
	opacity: 0;
	transform: translateX(-4px);
	transition: all .2s;
	font-family: 'freepixel', monospace;
	flex-shrink: 0
}

.shrine-item:hover .shrine-arrow {
	opacity: 1;
	transform: translateX(0)
}

.shrine-item:nth-child(2) {
	animation: slideIn .4s .08s both
}

.shrine-item:nth-child(3) {
	animation: slideIn .4s .16s both
}

.shrine-item:nth-child(4) {
	animation: slideIn .4s .24s both
}

.shrine-item:nth-child(5) {
	animation: slideIn .4s .32s both
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-6px)
	}

	to {
		opacity: 1;
		transform: translateX(0)
	}
}

.shrine-peek {
	position: absolute;
	bottom: 100%;
	right: 18px;
	width: 62px;
	height: 62px;
	object-fit: contain;
	pointer-events: none;
	transform: translateY(85%) scaleY(0.4);
	transform-origin: bottom center;
	opacity: 0;
	transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1), opacity .35s ease;
	filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
	z-index: 20
}

@keyframes peekWiggle {

	0,
	100% {
		rotate: -2deg
	}

	50% {
		rotate: 2deg
	}
}

.shrine-item:hover .shrine-peek {
	transform: translateY(30%);
	opacity: 1;
	animation: peekWiggle .8s ease .55s both
}

.portal-footer {
	background: linear-gradient(180deg, #f2f2f2, #eaeaea);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding: 7px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-radius: 0 0 10px 10px;
	margin-top: 8px
}

.portal-footer a {
	font-size: 9px;
	text-decoration: none;
	color: var(--ink-light);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-family: 'freepixel', monospace;
	transition: color .15s
}

.portal-footer a:hover {
	color: var(--ink)
}

.portal-footer-dots {
	font-family: 'freepixel', monospace;
	font-size: 8px;
	color: rgba(0, 0, 0, 0.15);
	letter-spacing: .2em
}