.akekoke-global-chat {
	position: fixed;
	z-index: 220;
	right: 20px;
	bottom: 20px;
	color: #eaf2ff;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.akekoke-global-chat__launcher {
	position: relative;
	display: flex;
	gap: 8px;
	align-items: center;
	min-height: 48px;
	padding: 0 16px;
	color: #fff;
	background: linear-gradient(135deg, rgb(9 20 43 / .98), rgb(18 36 68 / .98));
	border: 1px solid rgb(37 220 255 / .65);
	border-radius: 15px;
	box-shadow: 0 12px 34px rgb(0 0 0 / .42), 0 0 24px rgb(37 220 255 / .12);
	cursor: pointer;
	letter-spacing: .06em;
}

.akekoke-global-chat__launcher > span {
	color: #8cff68;
	text-shadow: 0 0 10px #8cff68;
	animation: akekoke-chat-live 1.8s ease-in-out infinite;
}

.akekoke-global-chat__launcher strong {
	font-size: .78rem;
}

.akekoke-global-chat__launcher small {
	position: absolute;
	top: -7px;
	right: -7px;
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	color: #08111f;
	background: #ff4fa3;
	border: 2px solid #071022;
	border-radius: 999px;
	font-size: .68rem;
	font-weight: 900;
}

.akekoke-global-chat__launcher small[hidden] {
	display: none;
}

.akekoke-global-chat__launcher:hover,
.akekoke-global-chat__launcher:focus-visible {
	border-color: #fff;
	transform: translateY(-1px);
}

.akekoke-global-chat__panel {
	position: absolute;
	right: 0;
	bottom: 58px;
	display: flex;
	flex-direction: column;
	width: min(390px, calc(100vw - 24px));
	height: min(650px, 70vh);
	max-height: min(650px, calc(100vh - 110px));
	overflow: hidden;
	background: linear-gradient(160deg, rgb(8 15 34 / .985), rgb(12 24 49 / .985));
	border: 1px solid rgb(37 220 255 / .48);
	border-radius: 20px;
	box-shadow: 0 24px 70px rgb(0 0 0 / .56), 0 0 0 1px rgb(255 255 255 / .025) inset;
	backdrop-filter: blur(18px);
}

.akekoke-global-chat__panel[hidden],
.akekoke-global-chat__pane[hidden] {
	display: none;
}

.akekoke-global-chat__panel > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 15px 12px;
	background: linear-gradient(90deg, rgb(37 220 255 / .09), rgb(255 79 163 / .08));
	border-bottom: 1px solid rgb(255 255 255 / .09);
}

.akekoke-global-chat__heading {
	display: flex;
	gap: 10px;
	align-items: center;
}

.akekoke-global-chat__heading > strong {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	padding: 5px 8px;
	color: #25dcff;
	background: rgb(37 220 255 / .09);
	border: 1px solid rgb(37 220 255 / .28);
	border-radius: 999px;
	font: 900 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .06em;
	white-space: nowrap;
}

.akekoke-global-chat__heading > strong::before {
	width: 6px;
	height: 6px;
	background: #8cff68;
	border-radius: 50%;
	box-shadow: 0 0 8px #8cff68;
	content: "";
}

.akekoke-global-chat__panel h2 {
	margin: 0;
	color: #fff;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: .08em;
}

.akekoke-global-chat__panel > header button {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: #afbdd2;
	background: rgb(255 255 255 / .055);
	border: 1px solid rgb(255 255 255 / .11);
	border-radius: 10px;
	cursor: pointer;
	font-size: 1.2rem;
}

.akekoke-global-chat__panel > header button:hover,
.akekoke-global-chat__panel > header button:focus-visible {
	color: #fff;
	border-color: #25dcff;
}

.akekoke-global-chat__controls {
	display: grid;
	grid-template-columns: 1fr 1fr .72fr;
	gap: 6px;
	flex: none;
	padding: 7px;
	background: rgb(2 8 20 / .56);
	border-top: 1px solid rgb(255 255 255 / .1);
}

.akekoke-global-chat__tabs {
	display: contents;
}

.akekoke-global-chat__tabs button {
	position: relative;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 42px;
	min-height: 42px;
	padding: 6px 7px;
	color: #8696ad;
	background: rgb(255 255 255 / .025);
	border: 1px solid rgb(255 255 255 / .08);
	border-radius: 12px;
	cursor: pointer;
	letter-spacing: .02em;
	text-align: left;
	transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.akekoke-global-chat__tab-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 21px;
	height: 21px;
	color: currentcolor;
	background: rgb(255 255 255 / .04);
	border: 1px solid rgb(255 255 255 / .13);
	border-radius: 8px;
	font-size: .82rem;
}

.akekoke-global-chat__tab-label {
	display: block;
	min-width: 0;
}

.akekoke-global-chat__tab-label strong {
	color: inherit;
	font-size: .62rem;
	line-height: 1;
	white-space: nowrap;
}

.akekoke-global-chat__tabs button[aria-selected="true"] {
	color: #f8fbff;
	background: linear-gradient(135deg, rgb(37 220 255 / .2), rgb(37 220 255 / .065));
	border-color: #25dcff;
	box-shadow: 0 0 0 1px rgb(37 220 255 / .25) inset, 0 0 20px rgb(37 220 255 / .12);
}

.akekoke-global-chat__tabs button[aria-selected="true"]::after {
	position: absolute;
	right: 8px;
	bottom: 4px;
	left: 8px;
	height: 2px;
	background: linear-gradient(90deg, #25dcff, #dfff19);
	border-radius: 999px;
	box-shadow: 0 0 8px rgb(37 220 255 / .65);
	content: "";
}

.akekoke-global-chat__tabs button[aria-selected="true"] .akekoke-global-chat__tab-icon {
	color: #071022;
	background: #25dcff;
	border-color: #b8f6ff;
	box-shadow: 0 0 12px rgb(37 220 255 / .42);
}

.akekoke-global-chat__tabs button:not(:disabled):not([aria-selected="true"]):hover {
	color: #dce8f8;
	background: rgb(255 255 255 / .055);
	border-color: rgb(255 255 255 / .18);
}

.akekoke-global-chat__tabs button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -3px;
}

.akekoke-global-chat__tabs button:disabled {
	color: #536076;
	cursor: not-allowed;
	opacity: .58;
}

.akekoke-global-chat__pane {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.akekoke-global-chat__messages {
	flex: 1;
	min-height: 90px;
	max-height: none;
	overflow-y: auto;
	padding: 12px 12px 4px;
	overscroll-behavior: contain;
	scrollbar-color: #284766 transparent;
	scrollbar-width: thin;
}

.akekoke-global-chat__empty {
	margin: 48px 18px;
	color: #8493aa;
	font-size: .82rem;
	text-align: center;
}

.akekoke-chat-message,
.akekoke-chat-comment {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 9px;
	margin: 0 0 8px;
	padding: 9px;
	background: rgb(255 255 255 / .045);
	border: 1px solid rgb(255 255 255 / .065);
	border-radius: 12px;
}

.akekoke-chat-message.is-reply,
.akekoke-chat-comment.is-reply {
	position: relative;
	margin-left: 24px;
	background: linear-gradient(90deg, rgb(37 220 255 / .075), rgb(255 255 255 / .035));
	border-left: 2px solid rgb(37 220 255 / .7);
	border-radius: 4px 12px 12px 4px;
}

.akekoke-chat-message.is-reply::before,
.akekoke-chat-comment.is-reply::before {
	position: absolute;
	top: -9px;
	left: -14px;
	width: 12px;
	height: 17px;
	border-bottom: 1px solid rgb(37 220 255 / .48);
	border-left: 1px solid rgb(37 220 255 / .48);
	border-radius: 0 0 0 7px;
	content: "";
}

.akekoke-chat-message img,
.akekoke-chat-comment img {
	width: 32px;
	height: 32px;
	background: #07142d;
	border: 1px solid rgb(255 255 255 / .32);
	border-radius: 50%;
	object-fit: cover;
}

.akekoke-chat-message__head,
.akekoke-chat-comment__head {
	display: flex;
	gap: 8px;
	align-items: baseline;
	min-width: 0;
}

.akekoke-chat-message__head strong,
.akekoke-chat-comment__head strong {
	overflow: hidden;
	color: #fff;
	font-size: .75rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.akekoke-chat-message__head time,
.akekoke-chat-comment__head time {
	flex: none;
	color: #77869d;
	font-size: .58rem;
}

.akekoke-chat-message p,
.akekoke-chat-comment p {
	margin: 3px 0 0;
	color: #d9e3f2;
	font-size: .78rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

.akekoke-chat-reply-reference {
	display: block;
	margin-top: 3px;
	color: #61dff8;
	font-size: .58rem;
	line-height: 1.35;
}

.akekoke-chat-reply-button {
	display: block;
	margin: 5px 0 0 auto;
	padding: 2px 7px;
	color: #8fa2ba;
	background: transparent;
	border: 1px solid rgb(255 255 255 / .13);
	border-radius: 999px;
	cursor: pointer;
	font-size: .58rem;
	font-weight: 800;
}

.akekoke-chat-reply-button:hover,
.akekoke-chat-reply-button:focus-visible {
	color: #061422;
	background: #25dcff;
	border-color: #25dcff;
}

.akekoke-global-chat__form {
	padding: 9px 12px 8px;
	background: rgb(2 8 20 / .52);
	border-top: 1px solid rgb(255 255 255 / .08);
}

.akekoke-global-chat__identity {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.akekoke-global-chat__identity > label {
	display: grid;
	gap: 3px;
	color: #8e9db4;
	font-size: .62rem;
	font-weight: 800;
}

.akekoke-global-chat input[type="text"],
.akekoke-global-chat textarea {
	width: 100%;
	color: #edf4ff;
	background: rgb(255 255 255 / .065);
	border: 1px solid rgb(255 255 255 / .14);
	border-radius: 10px;
	outline: 0;
}

.akekoke-global-chat input[type="text"] {
	height: 32px;
	padding: 6px 9px;
}

.akekoke-global-chat textarea {
	min-height: 52px;
	margin-top: 7px;
	padding: 9px 10px;
	resize: vertical;
	font: inherit;
	font-size: .78rem;
	line-height: 1.5;
}

.akekoke-global-chat__reply-context {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	margin: 7px 0 0;
	padding: 5px 7px;
	color: #bdefff;
	background: rgb(37 220 255 / .08);
	border-left: 2px solid #25dcff;
	border-radius: 4px;
	font-size: .6rem;
}

.akekoke-global-chat__reply-context[hidden] {
	display: none;
}

.akekoke-global-chat__reply-context button {
	flex: none;
	padding: 2px 5px;
	color: #91a2b8;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: .56rem;
	text-decoration: underline;
}

.akekoke-global-chat__reply-context button:hover,
.akekoke-global-chat__reply-context button:focus-visible {
	color: #fff;
}

.akekoke-global-chat input:focus,
.akekoke-global-chat textarea:focus {
	border-color: #25dcff;
	box-shadow: 0 0 0 2px rgb(37 220 255 / .13);
}

.akekoke-global-chat fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.akekoke-global-chat legend {
	display: flex;
	gap: 8px;
	align-items: baseline;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 3px;
	color: #8e9db4;
	font-size: .62rem;
	font-weight: 800;
}

.akekoke-global-chat fieldset > div {
	display: flex;
	gap: 3px;
}

.akekoke-global-chat [data-akekoke-chat-avatars] {
	display: flex;
	gap: 3px;
}

.akekoke-global-chat fieldset label {
	position: relative;
	display: block;
}

.akekoke-global-chat fieldset input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.akekoke-global-chat fieldset img {
	display: block;
	width: 23px;
	height: 23px;
	background: #07142d;
	border: 1px solid rgb(255 255 255 / .22);
	border-radius: 50%;
	cursor: pointer;
}

.akekoke-global-chat fieldset input:checked + img {
	border-color: #25dcff;
	box-shadow: 0 0 0 2px rgb(37 220 255 / .28);
}

.akekoke-global-chat fieldset input:focus-visible + img {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.akekoke-global-chat__form-meta {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: space-between;
	margin-top: 5px;
}

.akekoke-global-chat__form-meta p {
	flex: 1;
	margin: 0;
	font-size: .66rem;
	line-height: 1.3;
}

.akekoke-global-chat__form-meta p[data-akekoke-chat-status] {
	color: #8cff68;
}

.akekoke-global-chat__form-meta p[data-state="error"] {
	color: #ff91ba;
}

.akekoke-global-chat__action,
.akekoke-global-chat__article-link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	height: 42px;
	min-height: 42px;
	padding: 5px 8px;
	color: #04111d;
	background: #25dcff;
	border: 1px solid #25dcff;
	border-radius: 10px;
	cursor: pointer;
	font-size: .66rem;
	font-weight: 900;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
}

.akekoke-global-chat__action:hover,
.akekoke-global-chat__action:focus-visible,
.akekoke-global-chat__article-link:hover,
.akekoke-global-chat__article-link:focus-visible {
	color: #04111d;
	background: #fff;
}

.akekoke-global-chat__action:disabled {
	cursor: wait;
	opacity: .5;
}

.akekoke-global-chat__action[hidden],
.akekoke-global-chat__article-link[hidden] {
	display: none;
}

.akekoke-global-chat__note {
	flex: 1;
	min-width: 0;
	margin: 0;
	color: #687890;
	font-size: .55rem !important;
	font-weight: 500;
	line-height: 1.35;
	text-align: right;
}

.akekoke-global-chat__locked {
	padding: 15px;
	background: rgb(2 8 20 / .5);
	border-top: 1px solid rgb(255 255 255 / .08);
}

.akekoke-global-chat__locked strong {
	color: #ffd83d;
	font-size: .72rem;
}

.akekoke-global-chat__locked p {
	margin: 3px 0 0;
	color: #8493aa;
	font-size: .68rem;
	line-height: 1.55;
}

.akekoke-global-chat__article-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px 9px;
}

.akekoke-global-chat__article-head div {
	display: grid;
	gap: 3px;
}

.akekoke-global-chat__article-head strong {
	color: #dfff19;
	font: 900 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .15em;
}

.akekoke-global-chat__article-head span,
.akekoke-global-chat__article-head small {
	color: #8e9db4;
	font-size: .68rem;
}

.akekoke-global-chat__article-comments {
	flex: 1;
	min-height: 310px;
	max-height: 475px;
	overflow-y: auto;
	padding: 0 12px 8px;
	overscroll-behavior: contain;
	scrollbar-color: #284766 transparent;
	scrollbar-width: thin;
}

.akekoke-chat-comment {
	grid-template-columns: 34px 1fr;
}

.akekoke-chat-comment img {
	width: 34px;
	height: 34px;
}

.akekoke-global-chat .akekoke-comment-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.akekoke-mobile-chat-stream {
	display: none;
}

@keyframes akekoke-chat-live {
	50% {
		opacity: .38;
	}
}

@keyframes akekoke-mobile-chat-flow {
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 700px) {
	.akekoke-comment-stream {
		display: none !important;
	}

	.akekoke-mobile-chat-stream {
		position: relative;
		z-index: 205;
		display: flex;
		align-items: stretch;
		width: 100%;
		height: 38px;
		overflow: hidden;
		color: #dce8fb;
		background: linear-gradient(90deg, #071022, #101d38);
		border-top: 1px solid rgb(37 220 255 / .28);
		border-bottom: 1px solid rgb(37 220 255 / .44);
		font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
	}

	.akekoke-mobile-chat-stream__channel,
	.akekoke-mobile-chat-stream__toggle {
		position: relative;
		z-index: 2;
		flex: none;
		color: #fff;
		background: #081327;
		border: 0;
		cursor: pointer;
	}

	.akekoke-mobile-chat-stream__channel {
		display: grid;
		grid-template-columns: 8px auto;
		grid-template-rows: auto auto;
		column-gap: 6px;
		align-content: center;
		padding: 0 10px;
		border-right: 1px solid rgb(37 220 255 / .25);
		text-align: left;
	}

	.akekoke-mobile-chat-stream__channel > span {
	grid-row: 1 / 3;
	align-self: center;
	width: 7px;
	height: 7px;
	background: #ff4fa3;
	border-radius: 50%;
	box-shadow: 0 0 8px #ff4fa3;
	animation: akekoke-chat-live 1.8s ease-in-out infinite;
	}

	.akekoke-mobile-chat-stream__channel strong {
	color: #25dcff;
	font: 900 .55rem/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .09em;
	}

	.akekoke-mobile-chat-stream__channel small {
	color: #8b9ab0;
	font-size: .48rem;
	line-height: 1.1;
	}

	.akekoke-mobile-chat-stream__viewport {
	position: relative;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
	}

	.akekoke-mobile-chat-stream__track {
	display: flex;
	width: max-content;
	min-width: 100%;
	height: 100%;
	animation: akekoke-mobile-chat-flow var(--akekoke-chat-flow-duration, 40s) linear infinite;
	will-change: transform;
	}

	.akekoke-mobile-chat-stream__track > p {
	align-self: center;
	margin: 0;
	padding: 0 16px;
	color: #7e8ca3;
	font-size: .66rem;
	white-space: nowrap;
	}

	.akekoke-mobile-chat-stream__list {
	display: flex;
	flex: none;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	}

	.akekoke-mobile-chat-stream__list li {
	display: flex;
	align-items: stretch;
	}

	.akekoke-mobile-chat-stream__list button {
	display: flex;
	gap: 6px;
	align-items: center;
	max-width: 300px;
	padding: 0 18px 0 8px;
	color: #b9c7da;
	background: transparent;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	}

	.akekoke-mobile-chat-stream__list img {
	flex: none;
	width: 22px;
	height: 22px;
	background: #07142d;
	border: 1px solid rgb(37 220 255 / .55);
	border-radius: 50%;
	object-fit: cover;
	}

	.akekoke-mobile-chat-stream__list strong {
	flex: none;
	color: #fff;
	font-size: .66rem;
	}

	.akekoke-mobile-chat-stream__list span {
	overflow: hidden;
	max-width: 180px;
	font-size: .66rem;
	text-overflow: ellipsis;
	}

	.akekoke-mobile-chat-stream__toggle {
	display: grid;
	place-items: center;
	width: 37px;
	border-left: 1px solid rgb(255 255 255 / .09);
	color: #8796ad;
	font-size: .62rem;
	}

	.akekoke-mobile-chat-stream__channel:focus-visible,
	.akekoke-mobile-chat-stream__toggle:focus-visible,
	.akekoke-mobile-chat-stream__list button:focus-visible {
		outline: 2px solid #fff;
		outline-offset: -3px;
	}

	.akekoke-mobile-chat-stream.is-paused .akekoke-mobile-chat-stream__track {
		animation-play-state: paused;
	}
}

@media (max-width: 600px) {
	.akekoke-global-chat {
		right: 10px;
		bottom: calc(76px + env(safe-area-inset-bottom));
	}

	.akekoke-global-chat__panel {
		position: fixed;
		right: 10px;
		bottom: calc(132px + env(safe-area-inset-bottom));
		left: 10px;
		width: auto;
		height: min(650px, 70vh);
		max-height: calc(100vh - 150px);
	}

	.akekoke-global-chat__messages {
		min-height: 100px;
		max-height: none;
	}

	.akekoke-global-chat__article-comments {
		min-height: 0;
		max-height: none;
	}

	.akekoke-global-chat__launcher {
		min-height: 45px;
		padding-inline: 13px;
	}

}

@media (max-width: 390px) {
	.akekoke-mobile-chat-stream__channel {
		padding-inline: 8px;
	}

	.akekoke-mobile-chat-stream__channel small {
		display: none;
	}

	.akekoke-global-chat__tabs button {
		gap: 4px;
		height: 42px;
		min-height: 42px;
		padding-inline: 5px;
	}

	.akekoke-global-chat__tab-icon {
		width: 20px;
		height: 20px;
	}

	.akekoke-global-chat__tab-label strong {
		font-size: .58rem;
	}

	.akekoke-global-chat__messages {
		min-height: 100px;
	}

	.akekoke-global-chat__article-comments {
		min-height: 0;
	}

	.akekoke-global-chat fieldset img {
		width: 25px;
		height: 25px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.akekoke-global-chat__launcher > span,
	.akekoke-mobile-chat-stream__channel > span,
	.akekoke-mobile-chat-stream__track {
		animation: none;
	}

	.akekoke-global-chat__launcher:hover {
		transform: none;
	}
}
