.nizi-water-park {
	width: min(100%, calc(100vw - 24px), calc((100dvh - 5rem) * 16 / 9));
	max-width: 100%;
	margin: 0.75rem auto;
	box-sizing: border-box;
	padding: 0;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}

.nizi-water-park,
.nizi-water-park *:not(input):not(textarea) {
	-webkit-touch-callout: none !important;
}

.nizi-water-park input,
.nizi-water-park textarea {
	-webkit-touch-callout: default !important;
	-webkit-user-select: text !important;
	user-select: text !important;
}

.nizi-water-park__idle-warn {
	position: absolute;
	left: 50%;
	top: 12%;
	transform: translateX(-50%);
	z-index: 30;
	max-width: min(92%, 420px);
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(127, 29, 29, 0.92);
	border: 1px solid rgba(252, 165, 165, 0.55);
	color: #fff7ed;
	font-size: 0.85rem;
	font-weight: 800;
	text-align: center;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.nizi-water-park__idle-logout-tip {
	margin: 12px 0 0;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.72);
	color: #fecaca;
	font-size: 0.78rem;
	font-weight: 700;
}

.nizi-water-park[data-window-size="small"] {
	width: min(100%, 720px);
}

.nizi-water-park[data-window-size="medium"] {
	width: min(100%, 960px);
}

.nizi-water-park[data-window-size="large"] {
	width: min(100%, min(1280px, calc(100vw - 24px)));
}

/* スマホ向け：縦長（9:16）で縦幅を確保 */
.nizi-water-park[data-window-size="phone"] {
	width: min(100%, 420px);
	max-width: 420px;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__frame {
	aspect-ratio: 9 / 16;
	width: 100%;
	max-height: min(88dvh, 820px);
	border-radius: 18px;
	height: auto;
}

/* スマホ横画面 */
.nizi-water-park[data-window-size="phone"][data-orient="landscape"] {
	width: min(100%, 960px);
	max-width: 960px;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__frame {
	aspect-ratio: 16 / 9;
	width: 100%;
	max-height: min(92dvh, 560px);
	border-radius: 14px;
}

html.nwp-css-fs .nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__frame,
.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__frame.is-fullscreen {
	aspect-ratio: auto;
	max-height: none;
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__menu-panel--game {
	width: min(94%, 720px);
	height: min(92%, 420px);
	max-height: min(92%, 420px);
}

.nizi-water-park__orient-gate {
	position: absolute;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(2, 8, 20, 0.82);
	pointer-events: auto;
}

.nizi-water-park__orient-panel {
	max-width: min(360px, 92%);
	padding: 22px 18px;
	border-radius: 14px;
	background: rgba(8, 18, 32, 0.96);
	border: 1px solid rgba(125, 211, 252, 0.4);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
	text-align: center;
}

.nizi-water-park__orient-title {
	margin: 0 0 8px;
	color: #e0f2fe;
	font-size: 1.05rem;
	font-weight: 800;
}

.nizi-water-park__orient-msg {
	margin: 0;
	color: #bae6fd;
	font-size: 0.88rem;
	line-height: 1.5;
}

@supports not (height: 100dvh) {
	.nizi-water-park[data-window-size="phone"] .nizi-water-park__frame {
		max-height: min(88vh, 820px);
	}
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__menu-panel--game {
	width: min(96%, 360px);
	height: min(94%, 560px);
	max-height: min(94%, 560px);
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__menu-rail {
	padding: 8px 10px 6px;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__menu-tab {
	padding: 8px 10px;
	font-size: 0.82rem;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__board-list,
.nizi-water-park[data-window-size="phone"] .nizi-water-park__quest-board-body,
.nizi-water-park[data-window-size="phone"] .nizi-water-park__settings-body,
.nizi-water-park[data-window-size="phone"] .nizi-water-park__menu-body {
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__menu-wrap,
.nizi-water-park[data-window-size="phone"] .nizi-water-park__settings-wrap,
.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-wrap,
.nizi-water-park[data-window-size="phone"] .nizi-water-park__quest-board-wrap,
.nizi-water-park[data-window-size="phone"] .nizi-water-park__server-wrap {
	touch-action: auto;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--bars {
	top: 36px;
	min-width: 150px;
	max-width: 78%;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__bars {
	padding: 7px 8px 8px;
	gap: 4px;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__bar {
	height: 16px;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__bar-row {
	flex-wrap: nowrap;
	gap: 4px;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__bar-tag {
	width: 1.55em;
	font-size: 0.55rem;
	flex-shrink: 0;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__bar-val {
	font-size: 0.5rem;
	letter-spacing: 0;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__bars-name {
	font-size: 0.68rem;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__bars-lv {
	font-size: 0.6rem;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__chat-dock {
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	align-items: flex-start;
	max-width: none;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__chat-dock > .nizi-water-park__chat-open {
	position: absolute;
	pointer-events: auto;
	z-index: 10;
	box-sizing: border-box;
	overflow: visible;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__chat-open::after {
	display: none;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__chat {
	position: absolute;
	left: 10px;
	bottom: 10px;
	width: min(280px, calc(100% - 20px));
	pointer-events: auto;
	z-index: 11;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__chat-dock.is-ui-layout .nizi-water-park__chat {
	left: var(--nwp-chat-panel-x, 10px);
	top: var(--nwp-chat-panel-y, auto);
	bottom: auto;
	width: var(--nwp-chat-panel-w, min(280px, calc(100% - 20px)));
	height: var(--nwp-chat-panel-h, auto);
	max-width: none;
	box-sizing: border-box;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--quest:not(.is-ui-layout) {
	top: 52px;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	max-width: min(300px, calc(100% - 20px));
	text-align: center;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--party:not(.is-ui-layout) {
	left: 10px;
	top: 118px;
	max-width: min(260px, calc(100% - 20px));
}

/* メンバー一覧はミッション（クエストHUD）の下。実位置は JS でも補正 */
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--members:not(.is-ui-layout) {
	top: 148px;
	right: 10px;
	max-width: min(200px, 46vw);
}

/* ===== スマホ用タッチ操作（絶対配置・レイアウト編集対応） ===== */
.nizi-water-park__touch {
	position: absolute;
	inset: 0;
	z-index: 9;
	pointer-events: none;
	box-sizing: border-box;
}

.nizi-water-park__touch[hidden] {
	display: none !important;
}

.nizi-water-park__touch.is-layout-edit .nizi-water-park__touch-stick-label {
	opacity: 1;
}

.nizi-water-park__touch-btn {
	position: absolute;
	pointer-events: auto;
	touch-action: none;
	width: 52px;
	height: 52px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.55);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
	box-sizing: border-box;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.nizi-water-park__touch-btn--circle {
	background: rgba(56, 189, 248, 0.82);
	color: #082f49;
	overflow: visible;
}

.nizi-water-park__touch-circle-base {
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.42);
	border: 2px solid rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.15);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.1s ease;
}

.nizi-water-park__touch-circle-knob {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 44%;
	height: 44%;
	margin: -22% 0 0 -22%;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(56, 189, 248, 0.92);
	border: 2px solid rgba(255, 255, 255, 0.72);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	will-change: transform;
	pointer-events: none;
}

.nizi-water-park__touch-circle-label {
	font-size: 1rem;
	line-height: 1;
	font-weight: 800;
	color: #082f49;
}

.nizi-water-park__touch-btn--circle.is-aim-stretch .nizi-water-park__touch-circle-base,
.nizi-water-park__touch-btn--circle.is-aiming .nizi-water-park__touch-circle-base {
	opacity: 1;
}

.nizi-water-park__touch-btn--circle.is-aim-stretch,
.nizi-water-park__touch-btn--circle.is-aiming {
	background: rgba(15, 23, 42, 0.28);
	color: transparent;
}

.nizi-water-park__touch-btn--circle.is-dash .nizi-water-park__touch-circle-base {
	border-color: rgba(250, 204, 21, 0.85);
	box-shadow:
		inset 0 0 0 1px rgba(250, 204, 21, 0.25),
		0 0 14px rgba(250, 204, 21, 0.35);
}

.nizi-water-park__touch-btn--circle.is-dash .nizi-water-park__touch-circle-knob {
	background: rgba(250, 204, 21, 0.92);
}

.nizi-water-park__touch-btn--circle.is-dash .nizi-water-park__touch-circle-label {
	color: #713f12;
}

.nizi-water-park__touch-btn--cross {
	background: rgba(248, 113, 113, 0.82);
	color: #fff;
	overflow: hidden;
}

.nizi-water-park__touch-btn.is-active,
.nizi-water-park__touch-btn:active {
	filter: brightness(1.12);
	transform: scale(0.94);
}

.nizi-water-park__touch-btn--circle.is-aim-stretch.is-active,
.nizi-water-park__touch-btn--circle.is-aim-stretch:active,
.nizi-water-park__touch-btn--circle.is-aiming.is-active,
.nizi-water-park__touch-btn--circle.is-aiming:active {
	transform: none;
}

.nizi-water-park__touch-btn--circle.is-aiming {
	box-shadow:
		0 0 0 3px rgba(56, 189, 248, 0.55),
		0 6px 16px rgba(0, 0, 0, 0.28);
	transform: none;
}

.nizi-water-park__touch-stick {
	position: absolute;
	width: 118px;
	height: 118px;
	aspect-ratio: 1 / 1;
	pointer-events: auto;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	box-sizing: border-box;
}

.nizi-water-park__touch-stick-base {
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.42);
	border: 2px solid rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.15);
}

.nizi-water-park__touch-stick.is-dash .nizi-water-park__touch-stick-base {
	border-color: rgba(250, 204, 21, 0.85);
	box-shadow:
		inset 0 0 0 1px rgba(250, 204, 21, 0.25),
		0 0 14px rgba(250, 204, 21, 0.35);
}

.nizi-water-park__touch-stick-knob {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 42%;
	height: 42%;
	margin: -21% 0 0 -21%;
	border-radius: 50%;
	background: rgba(134, 239, 172, 0.88);
	border: 2px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	will-change: transform;
	pointer-events: none;
}

.nizi-water-park__touch-stick.is-dash .nizi-water-park__touch-stick-knob {
	background: rgba(250, 204, 21, 0.92);
}

.nizi-water-park__touch-stick-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	text-align: center;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: rgba(248, 250, 252, 0.75);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.nizi-water-park__touch.is-layout-edit {
	z-index: 40;
	background: rgba(2, 8, 20, 0.35);
	pointer-events: auto;
}

.nizi-water-park__touch.is-layout-edit [data-touch-pad],
.nizi-water-park.is-touch-layout-edit [data-touch-pad="chat"] {
	outline: 2px dashed rgba(125, 211, 252, 0.85);
	outline-offset: 2px;
}

.nizi-water-park__touch.is-layout-edit [data-touch-pad="cross"],
.nizi-water-park__touch.is-layout-edit [data-touch-pad="circle"] {
	border-radius: 0 !important;
	outline: 2px solid rgba(125, 211, 252, 0.95);
	outline-offset: 0;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nizi-water-park__touch [data-touch-pad].is-resizing {
	outline: 2px solid #fbbf24 !important;
	outline-offset: 2px;
	background-clip: padding-box;
	box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.55);
}

.nizi-water-park__touch.is-layout-edit [data-touch-pad="cross"].is-resizing,
.nizi-water-park__touch.is-layout-edit [data-touch-pad="circle"].is-resizing {
	border-radius: 0 !important;
}

.nizi-water-park__update-overlay {
	position: absolute;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(2, 8, 20, 0.72);
	pointer-events: auto;
}

body > .nizi-water-park__update-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.nizi-water-park__update-panel {
	max-width: min(420px, 92%);
	padding: 22px 20px;
	border-radius: 14px;
	background: rgba(8, 18, 32, 0.96);
	border: 1px solid rgba(125, 211, 252, 0.4);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
	text-align: center;
}

.nizi-water-park__update-msg {
	margin: 0 0 10px;
	color: #e0f2fe;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.5;
}

.nizi-water-park__update-countdown {
	margin: 0;
	color: #bae6fd;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.nizi-water-park__server-maint {
	margin: 8px 0 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(248, 113, 113, 0.16);
	color: #fecaca;
	font-size: 0.82rem;
	font-weight: 700;
}

.nizi-water-park__touch.is-layout-edit .nizi-water-park__chat-open,
.nizi-water-park__touch .nizi-water-park__touch-chat {
	position: absolute;
	pointer-events: auto;
	z-index: 12;
	overflow: visible;
	box-sizing: border-box;
}

.nizi-water-park__touch-resize {
	position: absolute;
	right: -7px;
	bottom: -7px;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	background: #38bdf8;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
	touch-action: none;
	z-index: 2;
	display: none;
}

.nizi-water-park__touch.is-layout-edit .nizi-water-park__touch-resize {
	display: block;
}

.nizi-water-park__touch-edit-bar {
	position: absolute;
	left: 50%;
	top: 8px;
	bottom: auto;
	transform: translateX(-50%);
	z-index: 41;
	display: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 12px;
	background: rgba(8, 18, 32, 0.92);
	border: 1px solid rgba(125, 211, 252, 0.35);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	pointer-events: auto;
	max-width: calc(100% - 12px);
}

.nizi-water-park__touch-edit-modes {
	display: inline-flex;
	gap: 4px;
	margin-right: 4px;
}

.nizi-water-park__touch.is-layout-edit .nizi-water-park__touch-edit-bar {
	display: flex;
}

.nizi-water-park__touch-edit-bar button {
	border: 0;
	border-radius: 8px;
	padding: 7px 10px;
	font-weight: 800;
	font-size: 0.72rem;
	cursor: pointer;
	color: #fff;
	background: #0369a1;
	flex: 0 0 auto;
	white-space: nowrap;
}

.nizi-water-park__touch-edit-bar button[data-touch-edit="mode-portrait"],
.nizi-water-park__touch-edit-bar button[data-touch-edit="mode-land"] {
	background: #334155;
}

.nizi-water-park__touch-edit-bar button[data-touch-edit="mode-portrait"].is-on,
.nizi-water-park__touch-edit-bar button[data-touch-edit="mode-land"].is-on {
	background: #0ea5e9;
	color: #0f172a;
}

.nizi-water-park__touch-edit-bar button[data-touch-edit="reset"] {
	background: #475569;
}

.nizi-water-park__touch-edit-bar button[data-touch-edit="cancel"] {
	background: #7f1d1d;
}

.nizi-water-park__touch-edit-hint {
	position: absolute;
	left: 50%;
	top: 52px;
	transform: translateX(-50%);
	z-index: 41;
	display: none;
	padding: 6px 12px;
	border-radius: 10px;
	background: rgba(8, 18, 32, 0.9);
	color: #e0f2fe;
	font-size: 0.68rem;
	font-weight: 700;
	pointer-events: none;
	white-space: nowrap;
}

.nizi-water-park__touch.is-layout-edit .nizi-water-park__touch-edit-hint {
	display: block;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__canvas {
	touch-action: none;
}

.nizi-water-park:not([data-window-size="phone"]) .nizi-water-park__touch {
	display: none !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.nizi-water-park__frame {
	position: relative;
	width: 100%;
	/* ウィンドウに合わせて拡大縮小（16:9維持） */
	max-width: 100%;
	max-height: calc(100dvh - 5rem);
	aspect-ratio: 16 / 9;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	background: #87b8d8;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
	border: 1px solid #c5d6e4;
	--nwp-ui-scale: 0.84;
	--nwp-font-scale: 1;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}

.nizi-water-park__frame input,
.nizi-water-park__frame textarea {
	-webkit-user-select: text;
	user-select: text;
	-webkit-touch-callout: default;
}

.nizi-water-park[data-font-scale="s"] .nizi-water-park__frame {
	--nwp-font-scale: 0.88;
}
.nizi-water-park[data-font-scale="m"] .nizi-water-park__frame {
	--nwp-font-scale: 1;
}
.nizi-water-park[data-font-scale="l"] .nizi-water-park__frame {
	--nwp-font-scale: 1.14;
}
.nizi-water-park[data-font-scale="xl"] .nizi-water-park__frame {
	--nwp-font-scale: 1.28;
}

/* HUD・メニュー等をフレームサイズ／フルスクリーンに合わせて拡大縮小 */
.nizi-water-park__ui > *,
.nizi-water-park__hud:not(.nizi-water-park__hud--members),
.nizi-water-park__chat-dock,
.nizi-water-park__prompt,
.nizi-water-park__lock-hint,
.nizi-water-park__settings-fab,
.nizi-water-park__fs {
	zoom: calc(var(--nwp-ui-scale) * var(--nwp-font-scale, 1));
}

/* zoom 配下だとホイール／タッチスクロールが効かないため、スクロールUIは除外 */
.nizi-water-park__ui > .nizi-water-park__menu-wrap,
.nizi-water-park__ui > .nizi-water-park__settings-wrap,
.nizi-water-park__ui > .nizi-water-park__opts-wrap,
.nizi-water-park__ui > .nizi-water-park__server-wrap,
.nizi-water-park__ui > .nizi-water-park__quest-board-wrap,
.nizi-water-park__ui > .nizi-map-editor,
.nizi-water-park__ui > .nizi-map-obj-ctx,
.nizi-water-park__ui > .nizi-room-hub {
	zoom: 1;
	font-size: calc(0.92rem * min(1.12, var(--nwp-ui-scale)) * var(--nwp-font-scale, 1));
}

.nizi-water-park__frame.is-fullscreen {
	border-radius: 0;
	border: 0;
}

.nizi-water-park__frame:fullscreen,
.nizi-water-park__frame:-webkit-full-screen,
:fullscreen .nizi-water-park__frame,
:-webkit-full-screen .nizi-water-park__frame {
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	border-radius: 0;
	border: 0;
	background: #000;
}

html.nwp-css-fs,
html.nwp-css-fs body,
body.nwp-css-fs-body {
	overflow: hidden !important;
	touch-action: none;
	overscroll-behavior: none;
	height: 100% !important;
	max-height: 100% !important;
	position: relative;
}

/* ゲーム疑似 FS 中はテーマのヘッダ／フッタを隠す */
body.nwp-css-fs-body .l-header,
body.nwp-css-fs-body .p-header,
body.nwp-css-fs-body header.l-header,
body.nwp-css-fs-body .l-footer,
body.nwp-css-fs-body .p-footer,
body.nwp-css-fs-body footer.l-footer {
	visibility: hidden !important;
	pointer-events: none !important;
}

/* iOS 等で Fullscreen API が使えないときの疑似フルスクリーン
   ※ 寸法は JS が visualViewport で指定する。ここはフォールバックのみ。 */
html.nwp-css-fs .nizi-water-park__frame.is-fullscreen {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	height: -webkit-fill-available;
	max-height: none !important;
	aspect-ratio: auto !important;
	z-index: 2147483000;
	border-radius: 0;
	border: 0;
	background: #000;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.nizi-water-park__ios-hs-guide {
	position: absolute;
	inset: 0;
	z-index: 40;
	display: block;
	box-sizing: border-box;
	padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
	background: rgba(2, 10, 22, 0.82);
	backdrop-filter: blur(2px);
}

.nizi-water-park__ios-hs-panel {
	width: min(440px, 100%);
	max-width: 100%;
	margin: 0 auto 8px;
	padding: 16px 14px 14px;
	border-radius: 16px;
	background: rgba(8, 18, 32, 0.97);
	border: 1px solid rgba(125, 211, 252, 0.38);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
	color: #e0f2fe;
	text-align: left;
	box-sizing: border-box;
}

/* 案内表示中は親の overflow:hidden で切れないようにする */
.nizi-water-park__title:has(.nizi-water-park__ios-hs-guide),
.nizi-water-park__title-stage:has(.nizi-water-park__ios-hs-guide) {
	overflow: hidden;
}

.nizi-water-park__ui:has(.nizi-water-park__ios-hs-guide) {
	overflow: visible;
	pointer-events: auto;
	touch-action: pan-y;
}

.nizi-water-park__ios-hs-kicker {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #7dd3fc;
}

.nizi-water-park__ios-hs-title {
	margin: 0 0 10px;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.35;
	color: #f0f9ff;
}

.nizi-water-park__ios-hs-lead {
	margin: 0 0 16px;
	font-size: 0.92rem;
	line-height: 1.65;
	color: #bae6fd;
}

.nizi-water-park__ios-hs-lead strong {
	color: #fef08a;
	font-weight: 800;
}

.nizi-water-park__ios-hs-steps {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nizi-water-park__ios-hs-steps li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 9px 8px 7px;
	border-radius: 12px;
	background: rgba(14, 165, 233, 0.08);
	border: 1px solid rgba(125, 211, 252, 0.18);
}

.nizi-water-park__ios-hs-step-num {
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(14, 165, 233, 0.28);
	border: 1px solid rgba(125, 211, 252, 0.5);
	color: #e0f2fe;
	font-size: 0.85rem;
	font-weight: 800;
	margin-top: 1px;
}

.nizi-water-park__ios-hs-step-body {
	flex: 1 1 auto;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #e0f2fe;
}

.nizi-water-park__ios-hs-step-body strong {
	color: #fef08a;
	font-weight: 800;
}

.nizi-water-park__ios-hs-sub {
	display: block;
	margin-top: 4px;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #93c5fd;
}

.nizi-water-park__ios-hs-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.7rem;
	height: 1.35rem;
	margin: 0 4px 0 2px;
	padding: 0 5px;
	border-radius: 6px;
	border: 1px solid rgba(186, 230, 253, 0.55);
	background: rgba(255, 255, 255, 0.08);
	color: #e0f2fe;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	vertical-align: middle;
}

.nizi-water-park__ios-hs-note {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(254, 240, 138, 0.1);
	border: 1px solid rgba(254, 240, 138, 0.28);
	font-size: 0.86rem;
	line-height: 1.5;
	color: #fef9c3;
	font-weight: 700;
}

.nizi-water-park__ios-hs-scroll-hint {
	display: block;
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	color: #fde68a;
	text-align: center;
}

.nizi-water-park__ios-hs-scroll-hint--top {
	padding: 6px 8px;
	border-radius: 8px;
	background: rgba(254, 240, 138, 0.12);
	border: 1px dashed rgba(253, 224, 71, 0.45);
}

@supports not (height: 100dvh) {
	.nizi-water-park {
		width: min(100%, calc(100vw - 24px), calc((100vh - 5rem) * 16 / 9));
	}
	.nizi-water-park__frame {
		max-height: calc(100vh - 5rem);
	}
}

.nizi-water-park__canvas {
	display: block;
	width: 100%;
	height: 100%;
	outline: none;
	cursor: crosshair;
	touch-action: none;
}

.nizi-water-park__ui {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 12;
}

.nizi-water-park__ui > * {
	pointer-events: auto;
}

.nizi-water-park__panel {
	background: rgba(255, 252, 248, 0.94);
	border: 1px solid #d7cfc4;
	border-radius: 14px;
	padding: 22px 26px;
	max-width: min(420px, 92%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	text-align: center;
	color: #2c3338;
}

.nizi-water-park__panel h2 {
	margin: 0 0 8px;
	font-size: 1.45rem;
}

.nizi-water-park__panel p {
	margin: 0 0 14px;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #4b5563;
}

.nizi-water-park__shop-list {
	max-height: min(42vh, 320px);
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 4px;
	text-align: left;
}

.nizi-water-park__shop-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #e7e0d6;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.72);
}

.nizi-water-park__shop-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nizi-water-park__shop-meta strong {
	font-size: 0.95rem;
}

.nizi-water-park__shop-row .nizi-water-park__btn {
	flex-shrink: 0;
}

.nizi-water-park__panel--loading {
	pointer-events: none;
}

.nizi-water-park__load-fail {
	position: absolute;
	inset: 0;
	z-index: 130;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(2, 8, 20, 0.72);
	pointer-events: auto;
	text-align: center;
}

body > .nizi-water-park__load-fail {
	position: fixed;
	inset: 0;
	z-index: 999998;
}

.nizi-water-park__load-fail-panel {
	max-width: min(420px, 92%);
	padding: 22px 20px;
	border-radius: 14px;
	background: rgba(8, 18, 32, 0.96);
	border: 1px solid rgba(248, 113, 113, 0.5);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nizi-water-park__load-fail-msg {
	margin: 0 0 14px;
	color: #fff1f2;
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.55;
}

.nizi-water-park__load-fail-detail {
	margin: -6px 0 14px;
	color: #fecdd3;
	font-size: 0.82rem;
	line-height: 1.45;
}

.nizi-water-park__load-fail .nizi-water-park__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 4px;
}

.nizi-water-park__panel--loading p {
	margin: 0.4em 0;
}

.nizi-water-park__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.nizi-water-park__btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	background: #3b82f6;
	color: #fff;
}

.nizi-water-park__btn:hover {
	background: #2563eb;
}

.nizi-water-park__btn--hero {
	padding: 12px 28px;
	font-size: 1.02rem;
	background: linear-gradient(180deg, #4fc3ff, #1d7fd6);
	box-shadow: 0 8px 20px rgba(20, 110, 200, 0.45);
}

.nizi-water-park__btn--hero:hover {
	background: linear-gradient(180deg, #7dd3fc, #2563eb);
}

.nizi-water-park__opts-touch-layout {
	margin-top: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nizi-water-park__btn--touch-layout {
	width: auto;
	max-width: 100%;
	white-space: nowrap;
	padding: 8px 14px;
	font-size: calc(1.02rem - 1px);
	line-height: 1.2;
}

.nizi-water-park__btn--ghost {
	background: #fff;
	color: #1f2937;
	border: 1px solid #cbd5e1;
}

.nizi-water-park__btn--ghost:hover {
	background: #f8fafc;
}

.nizi-water-park__hud {
	position: absolute;
	z-index: 2;
	color: #fff;
	pointer-events: none;
	font-size: 13px;
	line-height: 1.4;
}

.nizi-water-park__hud--info:not(.is-ui-layout) {
	left: 12px;
	top: 10px;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	min-width: 0;
	max-width: min(340px, 58%);
	z-index: 8;
}

.nizi-water-park__hud--info.is-ui-layout {
	min-width: 0;
	max-width: none;
	overflow: hidden;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
}

.nizi-water-park__hud--bars.is-ui-layout {
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
}

.nizi-water-park__hud--bars {
	left: 12px;
	top: 40px;
	bottom: auto;
	min-width: 220px;
	max-width: min(320px, 58%);
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	z-index: 8;
}

.nizi-water-park__hud--quest {
	left: 50%;
	right: auto;
	top: 12px;
	transform: translateX(-50%);
	min-width: 0;
	max-width: min(340px, 72%);
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	text-align: center;
	pointer-events: auto;
	z-index: 8;
}

.nizi-water-park__hud--party {
	left: 12px;
	top: 140px;
	bottom: auto;
	min-width: 180px;
	max-width: min(320px, 58%);
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	pointer-events: none;
	z-index: 8;
}

.nizi-water-park__hud--party .nizi-water-park__party-hud {
	pointer-events: none;
}

.nizi-water-park__hud--members:not(.is-ui-layout) {
	right: 14px;
	left: auto;
	top: 54px;
	transform: none !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: min(200px, 42vw);
	height: auto !important;
	min-height: 0 !important;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	pointer-events: none;
	z-index: 7;
	text-align: left !important;
	font-size: calc(12.5px * var(--nwp-ui-scale) * var(--nwp-font-scale, 1));
	line-height: 1.25;
}

.nizi-water-park__hud--members.is-ui-layout {
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	pointer-events: none;
	z-index: 7;
	text-align: left !important;
	font-size: calc(12.5px * var(--nwp-ui-scale) * var(--nwp-font-scale, 1));
	line-height: 1.25;
}

.nizi-water-park__members-card {
	display: inline-block !important;
	vertical-align: top;
	padding: 0.45em 0.7em 0.5em;
	border-radius: 10px;
	background: rgba(7, 24, 42, 0.22);
	border: 1px solid rgba(148, 210, 240, 0.2);
	box-shadow: 0 6px 16px rgba(4, 16, 32, 0.12);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	overflow: visible;
	max-height: none !important;
	height: auto !important;
	min-height: 0 !important;
	width: max-content;
	max-width: 14em;
	box-sizing: border-box;
	text-align: left !important;
}

.nizi-water-park__members-server {
	display: block !important;
	margin: 0 0 0.35em !important;
	padding: 0 0 0.35em !important;
	border-bottom: 1px solid rgba(125, 211, 252, 0.18);
	font-size: 0.92em;
	font-weight: 800;
	color: rgba(248, 251, 255, 0.95);
	line-height: 1.25 !important;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
}

.nizi-water-park__members-list {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	max-height: 14em;
	overflow-x: hidden;
	overflow-y: auto;
	text-align: left !important;
}

.nizi-water-park__members-list > .nizi-water-park__members-row,
.nizi-water-park__members-row {
	display: block !important;
	float: none !important;
	clear: both !important;
	position: static !important;
	inset: auto !important;
	margin: 0 !important;
	padding: 0.12em 0 !important;
	font-size: 1em;
	font-weight: 600;
	color: #e8f4fc;
	line-height: 1.3 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100% !important;
	text-align: left !important;
	vertical-align: top !important;
	box-sizing: border-box;
}

.nizi-water-park__reticle {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 22px;
	margin: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 6;
	will-change: left, top;
}

.nizi-water-park__reticle::before,
.nizi-water-park__reticle::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow:
		0 0 0 1px rgba(8, 28, 48, 0.55),
		0 0 6px rgba(56, 189, 248, 0.45);
	transform: translate(-50%, -50%);
}

.nizi-water-park__reticle::before {
	width: 2px;
	height: 100%;
}

.nizi-water-park__reticle::after {
	width: 100%;
	height: 2px;
}

.nizi-water-park__reticle[hidden] {
	display: none !important;
}

.nizi-water-park__reticle.is-charging {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
	background:
		conic-gradient(
			from -90deg,
			rgba(34, 211, 238, 0.95) calc(var(--charge, 0) * 1turn),
			rgba(255, 255, 255, 0.18) 0
		);
}

.nizi-water-park__reticle.is-charging::before {
	height: 100%;
}

.nizi-water-park__reticle.is-charging::after {
	width: 100%;
}

.nizi-water-park__reticle.is-charging.is-charged {
	box-shadow:
		0 0 0 2px rgba(34, 211, 238, 0.85),
		0 0 14px rgba(34, 211, 238, 0.65);
}

.nizi-water-park__chat-dock {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 9;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	max-width: min(320px, calc(100% - 28px));
	pointer-events: none;
}

.nizi-water-park__chat-dock > * {
	pointer-events: auto;
}

.nizi-water-park__chat-open {
	position: relative;
	right: auto;
	bottom: auto;
	flex: none;
	z-index: 8;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 14px;
	background: rgba(8, 40, 68, 0.78);
	color: #fff;
	font-size: 1.15rem;
	cursor: pointer;
	backdrop-filter: blur(6px);
	box-shadow: 0 6px 18px rgba(8, 47, 73, 0.35);
}

.nizi-water-park__chat-open::after {
	content: 'T';
	position: absolute;
	right: 4px;
	bottom: 3px;
	font-size: 0.58rem;
	font-weight: 800;
	opacity: 0.85;
	letter-spacing: 0;
}

.nizi-water-park__chat {
	position: relative;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: 9;
	width: min(320px, calc(100vw - 28px));
	background: rgba(8, 28, 48, 0.28);
	border: 1px solid rgba(125, 211, 252, 0.22);
	border-radius: 14px;
	color: #e0f2fe;
	overflow: hidden;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

/* 受信時の一時プレビュー（透けて見える） */
.nizi-water-park__chat.is-peek {
	background: rgba(8, 28, 48, 0.18);
	border-color: rgba(125, 211, 252, 0.18);
	pointer-events: none;
	animation: nizi-chat-peek-in 0.2s ease;
}

.nizi-water-park__chat.is-peek .nizi-water-park__chat-head,
.nizi-water-park__chat.is-peek .nizi-water-park__chat-tabs,
.nizi-water-park__chat.is-peek .nizi-water-park__chat-form {
	display: none;
}

.nizi-water-park__chat.is-peek .nizi-water-park__chat-log {
	min-height: 96px;
	height: 96px;
	max-height: 140px;
	padding: 8px 10px;
}

/* 受信専用チャットウィンドウ（投稿欄なし・背景透過） */
.nizi-water-park__chat-popup {
	position: absolute;
	z-index: 8;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background: rgba(8, 28, 48, 0.1);
	border: 1px solid rgba(125, 211, 252, 0.14);
	border-radius: 12px;
	color: #e0f2fe;
	overflow: hidden;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	pointer-events: none;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.22s ease, transform 0.22s ease;
	box-shadow: 0 4px 18px rgba(2, 12, 24, 0.12);
}

.nizi-water-park__chat-popup.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	touch-action: pan-y;
}

.nizi-water-park__chat-popup.is-ui-layout {
	position: absolute !important;
	max-width: none !important;
	z-index: 8;
	box-sizing: border-box;
}

.nizi-water-park__chat-popup-log {
	flex: 1 1 auto;
	min-height: 0;
	/* 約5件分の高さ。それ以上はスワイプで遡る */
	max-height: calc(0.8rem * 1.4 * 5 + 12px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 6px 8px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
	font-size: 0.8rem !important;
	line-height: 1.4;
	transform: none !important;
}

.nizi-water-park__chat-popup-log .nizi-water-park__chat-row {
	margin: 0 0 4px;
	font-size: inherit;
	transform: none !important;
}

.nizi-water-park__chat-popup-log .nizi-water-park__chat-row b {
	color: #bae6fd;
}

.nizi-water-park__chat-popup .nizi-ui-scale-wrap {
	display: contents;
}

@keyframes nizi-chat-peek-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.nizi-water-park__chat-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	font-size: 0.82rem;
	font-weight: 700;
	background: rgba(14, 116, 180, 0.16);
}

.nizi-water-park__chat-head > span:first-child {
	flex: 1;
}

.nizi-water-park__chat-toggle {
	border: 0;
	background: transparent;
	color: #bae6fd;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}

.nizi-water-park__chat-tabs {
	display: flex;
	gap: 4px;
	padding: 6px 8px 0;
	border-bottom: 1px solid rgba(125, 211, 252, 0.18);
}

.nizi-water-park__chat-tab {
	flex: 1;
	border: 0;
	border-radius: 8px 8px 0 0;
	padding: 6px 4px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #7dd3fc;
	background: transparent;
	cursor: pointer;
	opacity: 0.75;
}

.nizi-water-park__chat-tab.is-active {
	opacity: 1;
	color: #0c4a6e;
	background: rgba(186, 230, 253, 0.92);
}

.nizi-water-park__chat-log {
	min-height: 132px;
	height: 132px;
	max-height: 180px;
	overflow-y: auto;
	padding: 8px 10px;
	font-size: 0.78rem;
	line-height: 1.4;
	box-sizing: border-box;
	position: relative;
}

.nizi-water-park__chat-log.is-empty::before {
	content: 'メッセージはまだありません';
	display: block;
	padding: 28px 8px;
	text-align: center;
	color: rgba(186, 230, 253, 0.55);
	font-size: 0.72rem;
	font-style: italic;
	pointer-events: none;
}

.nizi-water-park__chat-form input {
	/* ゲーム視点を維持。フォーカス時のみキャレット用に text */
	cursor: crosshair;
}

.nizi-water-park__chat-form input:focus {
	cursor: text;
}

/* チャット表示中もキャンバスはゲームカーソルのまま */
.nizi-water-park.is-chat-open .nizi-water-park__canvas {
	cursor: crosshair;
}

.nizi-water-park__settings-sub {
	margin: 10px 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #bae6fd;
	opacity: 0.9;
}

.nizi-water-park__chat-log,
.nizi-water-park__chat-row,
.nizi-water-park__chat-popup-log,
.nizi-water-park__chat-popup-log .nizi-water-park__chat-row,
.nizi-water-park__bars,
.nizi-water-park__hud {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.nizi-water-park__chat-row {
	margin: 0 0 6px;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.nizi-water-park__chat-row b {
	display: inline;
	margin-right: 6px;
	color: #7dd3fc;
	font-weight: 700;
}

.nizi-water-park__chat-row--system b {
	color: #fde68a;
}

.nizi-water-park__chat-row span {
	color: #e0f2fe;
	display: inline;
	white-space: pre-wrap;
}

.nizi-water-park__panel--loading {
	text-align: center;
	pointer-events: none;
}

.nizi-water-park__panel--loading p {
	margin: 0.35em 0;
}
	padding: 8px 10px 9px;
	border-radius: 12px;
	background:
		linear-gradient(165deg, rgba(14, 48, 72, 0.78), rgba(8, 28, 48, 0.58));
	border: 1px solid rgba(125, 211, 252, 0.28);
	box-shadow:
		0 8px 18px rgba(8, 28, 48, 0.26),
		inset 0 1px 0 rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.nizi-water-park__party-hud-title {
	margin: 0 0 7px;
	font-size: 0.62rem;
	letter-spacing: 0.18em;
	color: #7dd3fc;
	font-weight: 800;
}

.nizi-water-park__party-list {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.nizi-water-park__party-row {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 6px 7px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(186, 230, 253, 0.14);
	font-size: 0.72rem;
	color: #e0f2fe;
}

.nizi-water-park__party-row.is-warn {
	border-color: rgba(251, 191, 36, 0.35);
	background: rgba(251, 191, 36, 0.08);
}

.nizi-water-park__party-row.is-critical {
	border-color: rgba(248, 113, 113, 0.4);
	background: rgba(248, 113, 113, 0.1);
}

.nizi-water-park__party-row.is-down {
	opacity: 0.58;
	filter: grayscale(0.35);
}

.nizi-water-park__party-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 0.78rem;
	font-weight: 800;
	color: #082f49;
	background: linear-gradient(160deg, #bae6fd, #38bdf8 55%, #0ea5e9);
	border: 1px solid rgba(255, 255, 255, 0.45);
	box-shadow: 0 2px 8px rgba(14, 116, 180, 0.35);
	line-height: 1;
}

.nizi-water-park__party-row.is-down .nizi-water-park__party-avatar {
	background: linear-gradient(160deg, #94a3b8, #64748b);
	color: #e2e8f0;
}

.nizi-water-park__party-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nizi-water-park__party-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
}

.nizi-water-park__party-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #f8fbff;
	min-width: 0;
}

.nizi-water-park__party-bar {
	display: block;
	height: 8px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.45);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.nizi-water-park__party-bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #fb7185, #f43f5e 55%, #fda4af);
	transition: width 0.12s linear;
}

.nizi-water-park__party-row.is-warn .nizi-water-park__party-bar i {
	background: linear-gradient(90deg, #f59e0b, #fbbf24 60%, #fde68a);
}

.nizi-water-park__party-row.is-critical .nizi-water-park__party-bar i,
.nizi-water-park__party-row.is-down .nizi-water-park__party-bar i {
	background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.nizi-water-park__party-hp {
	flex-shrink: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: rgba(226, 232, 240, 0.9);
}

.nizi-water-park__party-row.is-down .nizi-water-park__party-hp {
	color: #fca5a5;
}

.nizi-water-park__spectate-hint {
	margin: 0 0 6px;
	font-size: 0.75rem;
	color: #fde68a;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.nizi-water-park__spectate-bars-label {
	margin: 0 0 6px;
	font-size: 0.72rem;
	color: #bae6fd;
}

.nizi-water-park__chat-form {
	display: flex;
	gap: 6px;
	padding: 8px;
	border-top: 1px solid rgba(125, 211, 252, 0.2);
}

.nizi-water-park__chat-form input {
	flex: 1;
	min-width: 0;
	border: 1px solid rgba(125, 211, 252, 0.28);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: #f8fafc;
	padding: 7px 9px;
	font-size: 0.8rem;
}

.nizi-water-park__chat-form button {
	border: 0;
	border-radius: 8px;
	background: linear-gradient(180deg, #38bdf8, #0284c7);
	color: #fff;
	font-weight: 700;
	padding: 7px 12px;
	cursor: pointer;
}

.nizi-water-park__bars {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	padding: 9px 11px 10px;
	border-radius: 4px 12px 4px 12px;
	background:
		linear-gradient(165deg, rgba(18, 32, 48, 0.38) 0%, rgba(8, 18, 32, 0.32) 100%);
	border: 2px solid rgba(212, 175, 55, 0.45);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.28),
		0 6px 14px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 236, 179, 0.18),
		inset 0 -1px 0 rgba(0, 0, 0, 0.22);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	overflow: hidden;
}

.nizi-water-park__bars-frame {
	pointer-events: none;
	position: absolute;
	inset: 3px;
	border: 1px solid rgba(125, 211, 252, 0.18);
	border-radius: 2px 9px 2px 9px;
	box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.08);
}

.nizi-water-park__bars-head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 2px;
	min-width: 0;
	padding: 0 2px 5px;
	border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.nizi-water-park__bars-name {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #f8fbff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.nizi-water-park__bars-lv {
	flex-shrink: 0;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #fde68a;
	text-shadow: 0 0 8px rgba(251, 191, 36, 0.35), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.nizi-water-park__bar-row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	min-width: 0;
}

.nizi-water-park__bar-tag {
	flex: 0 0 auto;
	width: 1.7em;
	text-align: center;
	font-size: 0.62rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 0.28em 0;
	border-radius: 3px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
	white-space: nowrap;
}

.nizi-water-park__bar-tag--hp {
	color: #fff7ed;
	background: linear-gradient(180deg, #f97316, #b91c1c);
	border: 1px solid rgba(254, 215, 170, 0.45);
}

.nizi-water-park__bar-tag--st,
.nizi-water-park__bar-tag--water {
	color: #ecfeff;
	background: linear-gradient(180deg, #38bdf8, #0369a1);
	border: 1px solid rgba(186, 230, 253, 0.4);
}

.nizi-water-park__bar-tag--sp {
	color: #fffbeb;
	background: linear-gradient(180deg, #fbbf24, #b45309);
	border: 1px solid rgba(253, 230, 138, 0.45);
}

.nizi-water-park__bar {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 18px;
	border-radius: 4px;
	background:
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.04) 0 2px,
			transparent 2px 6px
		),
		rgba(6, 12, 22, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.22);
	overflow: hidden;
	box-shadow:
		inset 0 2px 4px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(0, 0, 0, 0.25);
}

.nizi-water-park__bar > i {
	display: block;
	height: 100%;
	border-radius: inherit;
	transition: width 0.12s linear;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nizi-water-park__bar-val {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
	pointer-events: none;
}

.nizi-water-park__bar--hp > i {
	background: linear-gradient(180deg, #fb7185 0%, #ef4444 42%, #b91c1c 100%);
}

.nizi-water-park__bar--hit {
	box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.85);
	animation: nizi-hp-flash 0.35s ease;
}

.nizi-water-park__bar--hit > i {
	background: linear-gradient(180deg, #fecaca, #ef4444 40%, #7f1d1d) !important;
}

@keyframes nizi-hp-flash {
	0% { transform: scale(1.04); }
	100% { transform: scale(1); }
}

.nizi-water-park__bar--st > i,
.nizi-water-park__bar--water > i {
	background: linear-gradient(180deg, #7dd3fc 0%, #0ea5e9 45%, #0369a1 100%);
}

.nizi-water-park__bar--sp > i {
	background: linear-gradient(180deg, #fde68a 0%, #f59e0b 45%, #b45309 100%);
}

.nizi-water-park__hud-place {
	margin: 0 0 2px;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: #ffffff;
	text-shadow:
		0 1px 2px rgba(8, 28, 48, 0.85),
		0 0 10px rgba(8, 28, 48, 0.55),
		0 2px 14px rgba(14, 116, 144, 0.45);
}

.nizi-water-park__hud-quest-name {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 800;
	color: #f8fbff;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.nizi-water-park__hud-quest-meta {
	margin: 0;
	font-size: 0.68rem;
	color: #fde68a;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	flex: none;
	white-space: nowrap;
}

.nizi-water-park__hud-quest-stars {
	margin: 0;
	font-size: 0.62rem;
	letter-spacing: -0.06em;
	color: #475569;
	flex: none;
	line-height: 1;
}

.nizi-water-park__hud-quest-stars .is-on {
	color: #fbbf24;
	text-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.nizi-water-park__hud-quest-card {
	padding: 5px 8px 6px;
	border-radius: 8px;
	background: rgba(8, 28, 48, 0.78);
	border: 1px solid rgba(186, 230, 253, 0.28);
	box-shadow: 0 4px 14px rgba(8, 28, 48, 0.28);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	text-align: left;
}

.nizi-water-park__hud-quest-row {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.nizi-water-park__hud-quest-kicker {
	display: none;
}

.nizi-water-park__hud-quest-meta strong {
	color: #fde68a;
	font-weight: 800;
}

.nizi-water-park__hud-quest-go {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 4px 8px;
	border: 0;
	border-radius: 6px;
	background: linear-gradient(180deg, #38bdf8, #0284c7);
	color: #082f49;
	font-weight: 800;
	font-size: 0.72rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.nizi-water-park__hud-quest-go:hover {
	filter: brightness(1.06);
}

.nizi-water-park__members-row.is-me {
	color: #fef08a;
}

.nizi-water-park__members-row.is-away {
	color: rgba(148, 163, 184, 0.78);
	font-weight: 500;
}

.nizi-water-park__members-row.is-away.is-me {
	color: rgba(148, 163, 184, 0.85);
}

.nizi-water-park__members-empty {
	margin: 0;
	padding: 4px 0;
	font-size: 0.72rem;
	color: rgba(226, 242, 255, 0.45);
	text-align: left;
}

.nizi-water-park__members-head,
.nizi-water-park__members-title,
.nizi-water-park__members-count,
.nizi-water-park__members-avatar,
.nizi-water-park__members-name,
.nizi-water-park__members-you,
.nizi-water-park__members-kicker,
.nizi-water-park__members-head-text {
	display: none;
}

.nizi-water-park__hud-meta {
	margin: 0;
	font-size: 0.72rem;
	color: rgba(226, 242, 255, 0.78);
}

.nizi-water-park__fs {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 3;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.nizi-water-park__settings-fab {
	position: absolute;
	right: 52px;
	top: 10px;
	z-index: 10;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: rgba(8, 40, 68, 0.82);
	color: #e0f2fe;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(8, 47, 73, 0.35);
}

.nizi-water-park__settings-fab[hidden] {
	display: none !important;
}

/* 管理画面エディタ由来の UI 配置（JS が left/top/width を % 指定） */
.nizi-water-park__hud--bars.is-ui-layout,
.nizi-water-park__hud--place.is-ui-layout,
.nizi-water-park__hud--party.is-ui-layout,
.nizi-water-park__hud--quest.is-ui-layout,
.nizi-water-park__hud--members.is-ui-layout,
.nizi-water-park__settings-fab.is-ui-layout,
.nizi-water-park__fs.is-ui-layout,
.nizi-water-park__chat-dock.is-ui-layout {
	right: auto !important;
	bottom: auto !important;
	box-sizing: border-box;
}

.nizi-water-park__hud--bars.is-ui-layout,
.nizi-water-park__hud--info.is-ui-layout,
.nizi-water-park__hud--place.is-ui-layout,
.nizi-water-park__hud--party.is-ui-layout,
.nizi-water-park__hud--quest.is-ui-layout {
	min-width: 0;
	max-width: none;
	overflow: hidden;
	text-align: left;
	transform: none;
}

.nizi-ui-scale-wrap {
	display: block;
	width: 100%;
	overflow: hidden;
	line-height: 0;
}

.nizi-ui-scale-wrap > .nizi-water-park__hud-place,
.nizi-ui-scale-wrap > .nizi-water-park__bars,
.nizi-ui-scale-wrap > .nizi-water-park__party-hud,
.nizi-ui-scale-wrap > .nizi-water-park__hud-quest-card,
.nizi-ui-scale-wrap > .nizi-water-park__members-card {
	line-height: normal;
}

.nizi-water-park__hud--bars.is-ui-layout .nizi-water-park__bars,
.nizi-water-park__hud--info.is-ui-layout .nizi-water-park__hud-place,
.nizi-water-park__hud--place.is-ui-layout .nizi-water-park__hud-place,
.nizi-water-park__hud--party.is-ui-layout .nizi-water-park__party-hud,
.nizi-water-park__hud--quest.is-ui-layout .nizi-water-park__hud-quest-card,
.nizi-water-park__hud--members.is-ui-layout .nizi-water-park__members-card {
	transform-origin: top left;
}

.nizi-water-park__hud--members.is-ui-layout,
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--members.is-ui-layout {
	right: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	overflow: hidden;
	transform: none !important;
}

.nizi-water-park__hud--members.is-ui-layout .nizi-water-park__members-card {
	width: 100%;
	max-width: none;
	min-height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.nizi-water-park__hud--members.is-ui-layout .nizi-water-park__members-list {
	flex: 1;
	min-height: calc(10 * 1.32em);
	max-height: calc(10 * 1.32em);
	overflow-x: hidden;
	overflow-y: auto;
}

.nizi-water-park__hud--bars.is-ui-free-ratio,
.nizi-water-park__hud--info.is-ui-free-ratio,
.nizi-water-park__hud--place.is-ui-free-ratio,
.nizi-water-park__hud--party.is-ui-free-ratio,
.nizi-water-park__hud--quest.is-ui-free-ratio,
.nizi-water-park__hud--members.is-ui-free-ratio,
.nizi-water-park__chat.is-ui-free-ratio {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.nizi-water-park__hud--info.is-ui-layout .nizi-water-park__hud-place {
	margin: 0;
}

.nizi-water-park__settings-fab.is-ui-layout,
.nizi-water-park__fs.is-ui-layout,
.nizi-water-park__chat-open.is-ui-layout {
	min-width: 0;
	aspect-ratio: 1 / 1;
	position: absolute !important;
	pointer-events: auto !important;
	z-index: 10;
}

.nizi-water-park__chat.is-ui-layout {
	position: absolute !important;
	max-width: none !important;
	pointer-events: auto !important;
	z-index: 11;
	box-sizing: border-box;
}

.nizi-water-park__chat-dock.is-ui-layout {
	max-width: none;
}

.nizi-water-park__chat-dock.is-ui-layout .nizi-water-park__chat {
	width: 100%;
	max-width: none;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	box-sizing: border-box;
}

.nizi-water-park__hint {
	margin: 10px 4px 0;
	font-size: 13px;
	color: #64748b;
}

.nizi-water-park__prompt {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 3;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	pointer-events: none;
	white-space: nowrap;
}

.nizi-water-park__lock-hint {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 20;
	border: 0;
	cursor: pointer;
	background: rgba(15, 23, 42, 0.88);
	color: #fff;
	padding: 16px 26px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.45), 0 0 0 2px rgba(56, 189, 248, 0.35);
	pointer-events: auto;
	animation: nizi-lock-hint-pulse 1.6s ease-in-out infinite;
}

@keyframes nizi-lock-hint-pulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	50% { transform: translate(-50%, -50%) scale(1.03); opacity: 0.92; }
}

.nizi-water-park__lock-hint:hover {
	background: rgba(30, 41, 59, 0.9);
}

.nizi-water-park__board-list {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 280px;
	overflow: auto;
}

.nizi-water-park__board-list li {
	padding: 10px 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 0.9rem;
	line-height: 1.45;
}

.nizi-water-park__muted {
	color: #64748b;
	font-size: 0.85rem;
}

/* ===== クエスト受付（モンハン風の依頼票デザイン） ===== */
.nizi-water-park__quest-board-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 8px 10px;
	box-sizing: border-box;
	background: rgba(8, 20, 35, 0.42);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.nizi-water-park__frame:not(.is-fullscreen) .nizi-water-park__quest-board-wrap {
	padding: 6px 8px;
}

.nizi-water-park__frame.is-fullscreen .nizi-water-park__quest-board-wrap {
	padding: 2.2% 3%;
}

.nizi-water-park__quest-board {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	background: linear-gradient(180deg, #2b2118, #1a140e);
	border: 3px solid #b8874a;
	border-radius: 10px;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 224, 168, 0.12);
	padding: clamp(8px, 1.2vh, 14px) clamp(10px, 1.5vw, 18px);
	color: #f3e6cf;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: clamp(4px, 0.8vh, 8px);
	overflow: hidden;
	box-sizing: border-box;
}

.nizi-water-park__quest-board-head {
	text-align: center;
	border-bottom: 1px solid rgba(184, 135, 74, 0.5);
	padding-bottom: clamp(4px, 0.8vh, 8px);
	flex-shrink: 0;
}

.nizi-water-park__quest-board-head h2 {
	margin: 0 0 2px;
	font-size: clamp(0.95rem, 2.2vw, 1.25rem);
	letter-spacing: 0.06em;
	color: #ffdf9e;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.nizi-water-park__quest-board-head p {
	margin: 0;
	font-size: clamp(0.68rem, 1.4vw, 0.78rem);
	color: #cbb692;
}

.nizi-water-park__quest-board-body {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(6px, 1vw, 12px);
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.nizi-water-park__quest-list {
	margin: 0;
	padding: 0;
	list-style: none;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.nizi-water-park__quest-item {
	display: flex;
	align-items: center;
	gap: clamp(5px, 0.8vw, 8px);
	padding: clamp(5px, 0.9vh, 8px) clamp(7px, 1vw, 10px);
	background: rgba(255, 235, 200, 0.06);
	border: 1px solid rgba(184, 135, 74, 0.35);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s;
}

.nizi-water-park__quest-item:hover {
	background: rgba(255, 224, 158, 0.13);
	border-color: rgba(255, 224, 158, 0.55);
}

.nizi-water-park__quest-item.is-active {
	background: linear-gradient(90deg, rgba(255, 196, 90, 0.28), rgba(255, 196, 90, 0.08));
	border-color: #ffc45a;
	box-shadow: inset 0 0 0 1px rgba(255, 196, 90, 0.4);
}

.nizi-water-park__quest-rank {
	flex: none;
	font-size: 0.64rem;
	letter-spacing: -0.05em;
	white-space: nowrap;
}

.nizi-water-park__quest-star {
	color: rgba(255, 255, 255, 0.18);
}

.nizi-water-park__quest-star.is-on {
	color: #ffc45a;
	text-shadow: 0 0 6px rgba(255, 196, 90, 0.6);
}

.nizi-water-park__quest-item-body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.nizi-water-park__quest-item-name {
	font-size: clamp(0.74rem, 1.5vw, 0.86rem);
	font-weight: 700;
	color: #ffeecb;
}

.nizi-water-park__quest-item-obj {
	font-size: clamp(0.64rem, 1.3vw, 0.72rem);
	color: #bfa87e;
}

/* 右側詳細：コンパクトに収め、募集人数は常に見える */
.nizi-water-park__quest-detail {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(184, 135, 74, 0.4);
	border-radius: 8px;
	padding: clamp(8px, 1.2vh, 12px) clamp(8px, 1.2vw, 12px);
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	overflow: hidden;
}

.nizi-water-park__quest-detail-main {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.nizi-water-park__quest-detail-title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex-shrink: 0;
}

.nizi-water-park__quest-detail-rank {
	font-size: clamp(0.72rem, 1.4vw, 0.86rem);
	line-height: 1.2;
	flex: none;
	letter-spacing: -0.04em;
}

.nizi-water-park__quest-detail h3 {
	margin: 0;
	font-size: clamp(0.88rem, 1.8vw, 1.05rem);
	color: #ffeecb;
	line-height: 1.25;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nizi-water-park__quest-detail-obj {
	margin: 0;
	font-size: clamp(0.7rem, 1.4vw, 0.8rem);
	color: #e7d5ab;
	background: rgba(255, 196, 90, 0.1);
	border-left: 3px solid #ffc45a;
	padding: 4px 8px;
	border-radius: 4px;
	line-height: 1.3;
	flex-shrink: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nizi-water-park__quest-rewards {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	flex-shrink: 0;
}

.nizi-water-park__quest-rewards li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: clamp(0.7rem, 1.35vw, 0.8rem);
	padding: 4px 7px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 4px;
	line-height: 1.25;
	gap: 6px;
}

.nizi-water-park__quest-rewards li span {
	color: #bfa87e;
}

.nizi-water-park__quest-rewards li b {
	color: #ffdf9e;
}

.nizi-water-park__quest-cap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
	padding: 8px;
	flex: none;
	background: rgba(255, 196, 90, 0.1);
	border: 1px solid rgba(255, 196, 90, 0.35);
	border-radius: 8px;
}

.nizi-water-park__quest-cap-label {
	font-size: clamp(0.68rem, 1.3vw, 0.76rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #ffdf9e;
}

.nizi-water-park__quest-cap-solo {
	margin: 0;
	font-size: clamp(0.7rem, 1.35vw, 0.8rem);
	color: #cbb692;
}

.nizi-water-park__quest-cap-opts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.nizi-water-park__quest-cap-btn {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 7px 4px;
	border: 1px solid rgba(184, 135, 74, 0.45);
	border-radius: 7px;
	background: rgba(26, 20, 14, 0.85);
	color: #e7d5ab;
	font-size: clamp(0.74rem, 1.4vw, 0.86rem);
	font-weight: 700;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.nizi-water-park__quest-cap-btn:hover {
	border-color: rgba(255, 224, 158, 0.65);
	background: rgba(255, 224, 158, 0.1);
}

.nizi-water-park__quest-cap-btn.is-active {
	border-color: #ffc45a;
	background: linear-gradient(180deg, rgba(255, 196, 90, 0.35), rgba(255, 196, 90, 0.12));
	color: #ffeecb;
	box-shadow: inset 0 0 0 1px rgba(255, 196, 90, 0.35);
}

.nizi-water-park__quest-cap.select,
.nizi-water-park__quest-cap select {
	display: none;
}

.nizi-water-park__quest-board-actions {
	flex-shrink: 0;
	padding-top: 0;
	margin: 0 !important;
}

.nizi-water-park__quest-board > .nizi-water-park__muted {
	margin: 2px 0 0 !important;
	font-size: clamp(0.64rem, 1.2vw, 0.72rem) !important;
	line-height: 1.3;
	flex-shrink: 0;
}

@media (max-aspect-ratio: 4/3), (max-height: 420px) {
	.nizi-water-park__quest-board-body {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 0.95fr) minmax(0, 1.05fr);
	}

	.nizi-water-park__quest-detail {
		overflow: hidden;
	}
}

@media (max-width: 640px) {
	.nizi-water-park__quest-board-wrap {
		padding: 6px 8px;
	}
}

/* ===== サーバー選択（スクロール不要・3枠が収まる） ===== */
.nizi-water-park__server-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(6px, 1.5vh, 12px) clamp(8px, 2vw, 16px);
	box-sizing: border-box;
	background:
		radial-gradient(ellipse 70% 50% at 50% 35%, rgba(14, 116, 180, 0.28), transparent 65%),
		rgba(4, 16, 32, 0.78);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	overflow: hidden;
}

.nizi-water-park__server-wrap.is-loading {
	pointer-events: none;
	user-select: none;
}

.nizi-water-park__server-wrap.is-loading .nizi-water-park__actions {
	pointer-events: auto;
}

.nizi-water-park__server-busy {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(4, 16, 32, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	pointer-events: auto;
}

.nizi-water-park__server-wrap:not(.is-loading) .nizi-water-park__server-busy,
.nizi-water-park__server-busy[hidden] {
	display: none;
}

.nizi-water-park__server-busy p {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: #e0f2fe;
	letter-spacing: 0.04em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.nizi-water-park__spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid rgba(186, 230, 253, 0.25);
	border-top-color: #38bdf8;
	border-right-color: #7dd3fc;
	animation: nizi-spin 0.75s linear infinite;
	box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

@keyframes nizi-spin {
	to { transform: rotate(360deg); }
}

.nizi-water-park__server-panel {
	width: min(680px, 100%);
	max-height: 100%;
	display: flex;
	flex-direction: column;
	gap: clamp(4px, 0.9vh, 8px);
	padding: clamp(8px, 1.5vh, 14px) clamp(10px, 2vw, 16px);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(12, 48, 82, 0.96), rgba(6, 28, 52, 0.98));
	border: 1px solid rgba(125, 211, 252, 0.4);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
	color: #e8f6ff;
	overflow: hidden;
	box-sizing: border-box;
}

.nizi-water-park__server-head {
	text-align: center;
	flex: 0 0 auto;
}

.nizi-water-park__server-head h2 {
	margin: 0 0 2px;
	font-size: clamp(0.95rem, 2.1vw, 1.2rem);
	color: #f8fbff;
	letter-spacing: 0.08em;
}

.nizi-water-park__server-head p {
	margin: 0;
	font-size: clamp(0.7rem, 1.4vw, 0.8rem);
	color: rgba(186, 230, 253, 0.75);
}

.nizi-water-park__server-list {
	display: flex;
	flex-direction: column;
	gap: clamp(4px, 0.8vh, 7px);
	flex: 0 0 auto;
	min-height: 0;
	overflow: hidden;
	padding-right: 0;
}

.nizi-water-park__server-card {
	appearance: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: clamp(7px, 1.2vh, 10px) 12px;
	border-radius: 10px;
	border: 1px solid rgba(125, 211, 252, 0.3);
	background: rgba(8, 40, 70, 0.65);
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s, background 0.15s;
	color: inherit;
	box-sizing: border-box;
}

.nizi-water-park__server-card-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.nizi-water-park__server-card.is-available:hover {
	border-color: #7dd3fc;
	background: rgba(14, 116, 180, 0.45);
	box-shadow: 0 8px 22px rgba(14, 165, 233, 0.25);
	transform: translateY(-1px);
}

.nizi-water-park__server-card.is-locked,
.nizi-water-park__server-card:disabled {
	cursor: not-allowed;
	opacity: 0.55;
	background: rgba(15, 23, 42, 0.5);
	border-color: rgba(148, 163, 184, 0.25);
}

.nizi-water-park__server-card-name {
	font-size: clamp(0.88rem, 1.8vw, 1.02rem);
	font-weight: 800;
	color: #f8fbff;
	line-height: 1.2;
}

.nizi-water-park__server-card-detail {
	font-size: clamp(0.66rem, 1.25vw, 0.76rem);
	color: rgba(186, 230, 253, 0.72);
	line-height: 1.3;
}

.nizi-water-park__server-note {
	margin: 0;
	font-size: clamp(0.62rem, 1.15vw, 0.72rem);
	color: rgba(148, 163, 184, 0.9);
	line-height: 1.35;
	text-align: center;
	flex: 0 0 auto;
}

.nizi-water-park__server-card-meta {
	flex: 0 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 7.5em;
}

.nizi-water-park__server-card-crowd {
	flex: 0 0 auto;
	font-size: clamp(0.72rem, 1.4vw, 0.82rem);
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 999px;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.nizi-water-park__server-card-crowd.is-free {
	background: rgba(34, 197, 94, 0.22);
	color: #86efac;
}

.nizi-water-park__server-card-crowd.is-normal {
	background: rgba(56, 189, 248, 0.22);
	color: #7dd3fc;
}

.nizi-water-park__server-card-crowd.is-busy {
	background: rgba(251, 146, 60, 0.25);
	color: #fdba74;
}

.nizi-water-park__server-card-crowd.is-full {
	background: rgba(244, 63, 94, 0.28);
	color: #fda4af;
}

.nizi-water-park__server-card-pop {
	flex: 0 0 auto;
	min-width: 5.2em;
	text-align: right;
	font-size: clamp(0.9rem, 1.8vw, 1.05rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #7dd3fc;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.nizi-water-park__server-card.is-locked .nizi-water-park__server-card-pop {
	color: rgba(148, 163, 184, 0.85);
}

.nizi-water-park__server-card-pop.is-full {
	color: #fb7185;
}

.nizi-water-park__server-head .nizi-water-park__menu-kicker {
	margin: 0 0 2px;
	font-size: clamp(0.58rem, 1.1vw, 0.68rem);
}

.nizi-water-park__server-panel .nizi-water-park__actions {
	padding-top: 0;
}

.nizi-water-park__server-panel .nizi-water-park__btn {
	padding: 7px 14px;
	font-size: 0.82rem;
}

.nizi-water-park__server-panel .nizi-water-park__btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #e8f6ff;
	border: 1px solid rgba(125, 211, 252, 0.35);
}

.nizi-water-park__server-panel .nizi-water-park__btn--ghost:hover {
	background: rgba(56, 189, 248, 0.22);
}

.nizi-water-park__remote-name {
	pointer-events: none;
}

.nizi-water-park__settings label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 8px 0;
	font-size: 0.9rem;
	text-align: left;
}

.nizi-water-park__settings select,
.nizi-water-park__settings input[type="range"] {
	min-width: 140px;
}

.nizi-water-park__keys {
	text-align: left;
	font-size: 0.85rem;
	color: #475569;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.nizi-water-park__keys li {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 782px) {
	.nizi-water-park__hint {
		font-size: 12px;
	}

	.nizi-water-park__title-name {
		font-size: clamp(1.45rem, 7vw, 2.2rem);
	}

	.nizi-water-park__title-menu {
		padding: 12px 12px 10px;
	}
}

/* —— タイトル画面（本格ゲーム風） —— */
.nizi-water-park__title {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 4% 4% 3%;
	overflow: hidden;
	color: #f8fbff;
	box-sizing: border-box;
}

.nizi-water-park__title-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 38%;
	background-repeat: no-repeat;
	transform: scale(1.06);
	animation: nizi-title-kenburns 20s ease-in-out infinite alternate;
}

/* キーアート全面タイトル（ボタンなし背景 + HTMLボタン） */
.nizi-water-park__title--art {
	padding: 0;
	display: block;
	background: #8ec8e8;
	overflow: hidden;
}

.nizi-water-park__title-stage {
	position: absolute;
	inset: 0;
	background-color: #8ec8e8;
	overflow: hidden;
}

.nizi-water-park__title-art-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.nizi-water-park__title-ui {
	position: absolute;
	left: 42%;
	/* ロゴ帯の下・噴水前の広場（キャラと被らない中央下寄り） */
	top: 78%;
	transform: translate(-50%, -50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: min(280px, 36%);
}

.nizi-water-park__title-btn {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	width: 100%;
	border: 0;
	cursor: pointer;
	font-weight: 800;
	letter-spacing: 0.12em;
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.nizi-water-park__title-btn-ico {
	font-size: 0.85em;
	line-height: 1;
}

.nizi-water-park__title-btn--start {
	padding: clamp(12px, 2.2vw, 18px) 1.2em;
	border-radius: 999px;
	font-size: clamp(1.05rem, 2.6vw, 1.45rem);
	color: #fff;
	background: linear-gradient(180deg, #5ec8ff 0%, #2aa0f0 45%, #1a7fd4 100%);
	border: 3px solid #fff;
	box-shadow:
		0 0 0 2px rgba(56, 180, 255, 0.45),
		0 8px 20px rgba(14, 116, 180, 0.45),
		inset 0 2px 0 rgba(255, 255, 255, 0.45);
	text-shadow: 0 1px 0 rgba(0, 70, 130, 0.35);
}

.nizi-water-park__title-btn--start:hover,
.nizi-water-park__title-btn--start:focus-visible {
	outline: none;
	transform: translateY(-2px) scale(1.03);
	filter: brightness(1.06);
	box-shadow:
		0 0 0 3px rgba(255, 255, 255, 0.85),
		0 12px 28px rgba(14, 116, 180, 0.5),
		inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.nizi-water-park__title-btn--settings {
	padding: clamp(8px, 1.5vw, 12px) 1em;
	border-radius: 999px;
	font-size: clamp(0.82rem, 2vw, 1rem);
	color: #0c4a6e;
	background: rgba(255, 255, 255, 0.88);
	border: 2px solid rgba(255, 255, 255, 0.95);
	box-shadow:
		0 0 0 1px rgba(14, 116, 180, 0.28),
		0 6px 14px rgba(8, 47, 73, 0.28);
	letter-spacing: 0.16em;
}

.nizi-water-park__title-btn--settings:hover,
.nizi-water-park__title-btn--settings:focus-visible {
	outline: none;
	transform: translateY(-1px);
	filter: brightness(1.04);
}

.nizi-water-park__title-dressup {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	appearance: none;
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-radius: 999px;
	padding: 8px 14px;
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	color: #0c4a6e;
	background: rgba(255, 248, 220, 0.94);
	box-shadow: 0 4px 14px rgba(8, 47, 73, 0.28);
	cursor: pointer;
}
.nizi-water-park__title-dressup:hover,
.nizi-water-park__title-dressup:focus-visible {
	outline: none;
	transform: translateY(-1px);
	filter: brightness(1.05);
}

.nizi-water-park__title-map {
	right: 88px;
}

.nizi-water-park__title-room {
	right: 164px;
}

.nizi-water-park__ui:has(.nizi-room-hub) {
	pointer-events: auto;
	align-items: stretch;
	justify-content: stretch;
	background: #0f172a;
}

.nizi-room-hub.nizi-water-park__panel,
.nizi-water-park__panel.nizi-room-hub {
	--nizi-room-row: 34px;
	--nizi-room-gap: 4px;
	position: relative;
	width: 100%;
	max-width: none;
	height: 100%;
	min-height: 100%;
	max-height: none;
	margin: 0;
	padding: 44px 22px 16px;
	border-radius: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-align: left;
	pointer-events: auto;
	z-index: 20;
	background: rgba(255, 252, 248, 0.98);
}

.nizi-room-hub__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	min-width: 0;
	flex-shrink: 0;
}

.nizi-room-hub__back {
	appearance: none;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #0f172a;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 7px 10px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.nizi-room-hub__back:hover,
.nizi-room-hub__back:focus-visible {
	outline: none;
	background: #f8fafc;
}

.nizi-room-hub__title {
	margin: 0;
	text-align: center;
	font-size: clamp(0.95rem, 3.2vw, 1.15rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #0f172a;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nizi-room-hub__create:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.nizi-room-hub__search-row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 22px;
	min-width: 0;
}

.nizi-room-hub__input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.86rem;
	box-sizing: border-box;
}

.nizi-room-hub__search-btn {
	flex-shrink: 0;
	padding: 7px 12px !important;
	font-size: 0.78rem !important;
	white-space: nowrap;
}

.nizi-room-hub__list-head,
.nizi-room-hub__row-main {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) 36px minmax(0, 0.85fr) 6.6em;
	gap: 6px;
	align-items: center;
	min-width: 0;
}

.nizi-room-hub.is-mine .nizi-room-hub__list-head,
.nizi-room-hub.is-mine .nizi-room-hub__row-main {
	grid-template-columns: minmax(0, 1.1fr) 32px 3.2em minmax(0, 0.7fr) 6.6em;
}

.nizi-room-hub__tabs {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0 0 10px;
	min-width: 0;
}

.nizi-room-hub__tab {
	appearance: none;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #fff;
	color: #334155;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 6px 16px;
	cursor: pointer;
	line-height: 1.2;
}

.nizi-room-hub__tab:hover,
.nizi-room-hub__tab:focus-visible {
	outline: none;
	border-color: #93c5fd;
	background: #eff6ff;
}

.nizi-room-hub__tab.is-on {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

.nizi-room-hub__list-head {
	padding: 0 56px 4px 8px;
	font-size: 0.68rem;
	font-weight: 700;
	color: #64748b;
	letter-spacing: 0.04em;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) 36px minmax(0, 0.85fr) 6.6em;
	gap: 6px;
	align-items: center;
	min-width: 0;
	box-sizing: border-box;
}

.nizi-room-hub.is-mine .nizi-room-hub__list-head {
	grid-template-columns: minmax(0, 1.1fr) 32px 3.2em minmax(0, 0.7fr) 6.6em;
}

.nizi-room-hub__list {
	flex: 0 0 auto;
	width: 100%;
	height: calc(8 * var(--nizi-room-row) + 7 * var(--nizi-room-gap));
	min-height: calc(8 * var(--nizi-room-row) + 7 * var(--nizi-room-gap));
	max-height: calc(8 * var(--nizi-room-row) + 7 * var(--nizi-room-gap));
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: var(--nizi-room-gap);
}

.nizi-room-hub__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 10px 0 0;
	flex-shrink: 0;
	min-height: 32px;
}

.nizi-room-hub__pager-btn {
	appearance: none;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #0f172a;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 6px 12px;
	cursor: pointer;
}

.nizi-room-hub__pager-btn:hover,
.nizi-room-hub__pager-btn:focus-visible {
	outline: none;
	border-color: #93c5fd;
	background: #eff6ff;
}

.nizi-room-hub__pager-btn:disabled {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

.nizi-room-hub__pager-stat {
	font-size: 0.78rem;
	font-weight: 700;
	color: #475569;
	min-width: 4.5em;
	text-align: center;
}

.nizi-room-hub__col--act {
	display: none;
}

.nizi-room-hub.nizi-water-park__panel p.nizi-room-hub__empty,
.nizi-room-hub__empty {
	margin: 0;
	padding: 12px 8px;
	font-size: 0.84rem;
	color: #64748b;
	flex: 0 0 auto;
}

.nizi-room-hub__row {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
	height: var(--nizi-room-row);
	flex: 0 0 var(--nizi-room-row);
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

.nizi-room-hub__row-main {
	flex: 1 1 auto;
	appearance: none;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	padding: 0 8px;
	height: 100%;
	text-align: left;
	cursor: pointer;
	color: #0f172a;
	font: inherit;
	pointer-events: auto;
	-webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
	touch-action: manipulation;
}

.nizi-room-hub__row-main:hover,
.nizi-room-hub__row-main:focus-visible {
	outline: none;
	border-color: #93c5fd;
	background: #eff6ff;
}

.nizi-room-hub__col {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.8rem;
	line-height: 1.25;
}

.nizi-room-hub__col--name {
	font-weight: 700;
}

.nizi-room-hub__col--size {
	text-align: center;
	color: #475569;
	font-weight: 700;
	overflow: visible;
}

.nizi-room-hub__col--owner {
	color: #64748b;
	font-size: 0.74rem;
}

.nizi-room-hub__col--vis {
	text-align: center;
	font-size: 0.7rem;
	font-weight: 800;
	color: #64748b;
}

.nizi-room-hub__col--vis.is-public {
	color: #1d4ed8;
}

.nizi-room-hub__col--date {
	text-align: right;
	color: #64748b;
	font-size: 0.66rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.nizi-room-hub__col--act {
	width: 0;
}

.nizi-room-hub__icon-btn {
	appearance: none;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #94a3b8;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.nizi-room-hub__icon-btn:hover,
.nizi-room-hub__icon-btn:focus-visible {
	outline: none;
	color: #b91c1c;
	background: #fef2f2;
}

.nizi-room-hub__acts {
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
}

.nizi-room-hub__icon-btn--edit {
	font-size: 0.85rem;
}

.nizi-room-hub__icon-btn--edit:hover,
.nizi-room-hub__icon-btn--edit:focus-visible {
	color: #1d4ed8;
	background: #eff6ff;
}

.nizi-room-hub__pub {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	vertical-align: middle;
}

.nizi-room-hub__row.is-locked .nizi-room-hub__row-main {
	background: #f1f5f9;
	color: #64748b;
	cursor: pointer;
}

.nizi-room-hub__lock {
	display: inline-block;
	margin-right: 4px;
	font-size: 0.78em;
}

.nizi-room-hub__icon-btn--lock {
	cursor: default;
	color: #64748b;
	font-size: 0.85rem;
}

.nizi-room-hub__icon-btn--lock:hover,
.nizi-room-hub__icon-btn--lock:focus-visible {
	color: #64748b;
	background: transparent;
}

.nizi-room-hub__modal {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
}

.nizi-room-hub__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}

.nizi-room-hub__modal-panel {
	position: relative;
	z-index: 1;
	width: min(400px, 100%);
	max-height: calc(100% - 8px);
	overflow: auto;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
	box-sizing: border-box;
}

.nizi-room-hub__modal-panel h3 {
	margin: 0 0 12px;
	font-size: 1rem;
}

.nizi-room-hub__modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.nizi-room-hub__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
}

.nizi-room-hub__sizes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.nizi-room-hub__size {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 0.84rem;
	padding: 8px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	cursor: pointer;
}

.nizi-room-hub__size:has(input:checked) {
	border-color: #38bdf8;
	background: #eff6ff;
}

/* 旧クラス互換（未使用になっても害なし） */
.nizi-room-hub__toolbar {
	display: none;
}

.nizi-room-hub__search {
	flex: 1 1 160px;
	min-width: 120px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.9rem;
}

.nizi-map-obj-ctx__room-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 160px;
	overflow: auto;
	margin: 6px 0;
}

.nizi-map-obj-ctx__muted {
	margin: 4px 0;
	font-size: 0.78rem;
	color: #64748b;
}

.nizi-map-editor {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	font-family: "Segoe UI", "Hiragino Sans", sans-serif;
	overflow: hidden;
}

.nizi-map-editor__bar,
.nizi-map-editor__side {
	pointer-events: auto;
}

.nizi-map-editor__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 10px 12px;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.55));
	color: #f8fafc;
}

.nizi-map-editor--preview .nizi-map-editor__bar {
	background: linear-gradient(180deg, rgba(2, 132, 199, 0.92), rgba(15, 23, 42, 0.7));
}

.nizi-map-editor--preview .nizi-map-editor__side {
	display: none;
}

.nizi-map-preview-toast {
	pointer-events: none;
	position: absolute;
	left: 50%;
	bottom: 22%;
	transform: translateX(-50%);
	z-index: 45;
	padding: 12px 20px;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.88);
	color: #f8fafc;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(56, 189, 248, 0.45);
	white-space: nowrap;
	max-width: 90vw;
	text-align: center;
}

.nizi-map-build-crosshair {
	pointer-events: none;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	z-index: 42;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.nizi-map-build-crosshair::before,
.nizi-map-build-crosshair::after {
	content: "";
	position: absolute;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.nizi-map-build-crosshair::before {
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
}

.nizi-map-build-crosshair::after {
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	margin-top: -1px;
}

.nizi-map-build-dock {
	pointer-events: auto;
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	z-index: 55;
	width: auto;
	max-width: min(560px, 96vw);
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.nizi-map-build-held-name {
	pointer-events: none;
	padding: 3px 10px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.45);
	color: #f8fafc;
	font-size: 0.78rem;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
	max-width: 90vw;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nizi-map-build-held-name.is-empty,
.nizi-map-build-held-name[hidden] {
	display: none;
}

.nizi-map-build-hand {
	display: none;
}

.nizi-map-build-hotbar {
	display: grid;
	grid-template-columns: repeat(9, 44px);
	gap: 0;
	padding: 3px;
	background: rgba(0, 0, 0, 0.55);
	border: 2px solid rgba(0, 0, 0, 0.75);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nizi-map-hot-slot {
	appearance: none;
	border: 2px solid #373737;
	background: linear-gradient(160deg, rgba(90, 90, 90, 0.55), rgba(40, 40, 40, 0.85));
	color: #f1f5f9;
	border-radius: 0;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 2px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	position: relative;
	overflow: hidden;
	box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.18), inset -1px -1px 0 rgba(0, 0, 0, 0.45);
}

.nizi-map-hot-slot.is-filled {
	border-color: #555;
}

.nizi-map-hot-slot.is-hand-only {
	background: linear-gradient(160deg, rgba(70, 70, 70, 0.4), rgba(28, 28, 28, 0.75));
	opacity: 0.92;
}

.nizi-map-hot-slot.is-hand-only .nizi-map-hot-slot__label {
	opacity: 0.65;
	font-size: 0.48rem;
}

.nizi-map-hot-slot__thumb {
	position: absolute;
	left: 2px;
	right: 2px;
	top: 8px;
	bottom: 2px;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100% - 8px);
	margin: auto;
	object-fit: contain;
	opacity: 0;
	pointer-events: none;
	image-rendering: auto;
	z-index: 0;
}

.nizi-map-hot-slot__thumb.is-ready {
	opacity: 0.78;
}

.nizi-map-hot-slot__icon {
	position: absolute;
	left: 0;
	right: 0;
	top: 6px;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	line-height: 1;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65));
	user-select: none;
	pointer-events: none;
}

.nizi-map-hot-slot.is-active {
	outline: none;
	border-color: #f8fafc;
	box-shadow:
		inset 1px 1px 0 rgba(255, 255, 255, 0.25),
		inset -1px -1px 0 rgba(0, 0, 0, 0.5),
		0 0 0 2px #1a1a1a,
		0 0 0 3px #fff;
	z-index: 1;
	position: relative;
}

.nizi-map-hot-slot__num {
	position: relative;
	z-index: 2;
	font-size: 0.55rem;
	opacity: 0.7;
	line-height: 1;
	align-self: flex-start;
	margin: 0 0 auto 0;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

.nizi-map-hot-slot__label {
	font-size: 0.52rem;
	line-height: 1.05;
	text-align: center;
	max-width: 100%;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-all;
}

@media (max-width: 520px) {
	.nizi-map-build-hotbar {
		grid-template-columns: repeat(9, 34px);
	}
	.nizi-map-hot-slot {
		width: 34px;
		height: 34px;
		min-height: 34px;
	}
	.nizi-map-hot-slot__icon {
		font-size: 0.95rem;
	}
	.nizi-map-inv__grid {
		grid-template-columns: repeat(auto-fill, 72px);
	}
	.nizi-map-inv__slot {
		width: 72px;
		height: 72px;
		min-width: 72px;
		min-height: 72px;
		max-width: 72px;
		max-height: 72px;
	}
	.nizi-map-inv__slot-label {
		font-size: 0.55rem;
		padding: 1px 3px;
	}
	.nizi-map-build-menu,
	.nizi-map-inv {
		padding: 6px 6px 64px;
	}
	.nizi-map-obj-ctx__panel {
		max-height: calc(100% - 64px);
	}
}

.nizi-map-inv {
	pointer-events: auto;
	position: absolute;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 8px 72px;
	box-sizing: border-box;
	overflow: hidden;
}

.nizi-map-inv[hidden] {
	display: none !important;
}

.nizi-map-inv__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.nizi-map-inv__panel {
	position: relative;
	z-index: 1;
	width: min(620px, 100%);
	height: min(460px, 100%);
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border-radius: 0;
	background: #c6c6c6;
	border: 3px solid #373737;
	box-shadow:
		inset 2px 2px 0 #fff,
		inset -2px -2px 0 #8b8b8b,
		0 12px 40px rgba(0, 0, 0, 0.45);
	color: #111;
	box-sizing: border-box;
	overflow: hidden;
}

.nizi-map-inv__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	color: #111;
}

.nizi-map-inv__head span {
	font-size: 0.72rem;
	opacity: 0.8;
}

.nizi-map-inv__head,
.nizi-map-inv__tabs {
	flex-shrink: 0;
}

.nizi-map-inv__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.nizi-map-inv__tab {
	appearance: none;
	border: 2px solid #373737;
	background: #8b8b8b;
	color: #111;
	border-radius: 0;
	padding: 5px 10px;
	font-size: 0.72rem;
	cursor: pointer;
	box-shadow: inset 1px 1px 0 #c6c6c6, inset -1px -1px 0 #555;
}

.nizi-map-inv__tab.is-active {
	background: #fff;
	border-color: #111;
	color: #111;
}

.nizi-map-inv__groups {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
	margin-bottom: 2px;
}

.nizi-map-inv__group {
	appearance: none;
	flex: 1 1 0;
	border: 2px solid #373737;
	background: #8b8b8b;
	color: #111;
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: inset 1px 1px 0 #c6c6c6, inset -1px -1px 0 #555;
}

.nizi-map-inv__group.is-active {
	background: #fbbf24;
	border-color: #92400e;
	color: #111;
}

.nizi-map-inv__tags {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 8px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.nizi-map-inv__tag-sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	flex: 0 0 auto;
	padding: 0 4px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #444;
	line-height: 1;
	user-select: none;
}

.nizi-map-inv__tag {
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	min-height: 32px;
	max-height: 32px;
	flex: 0 0 auto;
	border: 2px solid #373737;
	background: #cfcfcf;
	color: #111;
	border-radius: 999px;
	padding: 0 14px;
	font-size: 0.74rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: inset 1px 1px 0 #eee, inset -1px -1px 0 #999;
}

.nizi-map-inv__tag.is-active {
	background: #fff;
	border-color: #111;
	color: #111;
	box-shadow: 0 0 0 2px #fbbf24;
}

.nizi-map-inv__deco {
	position: relative;
}

.nizi-map-inv__deco-tag {
	position: absolute;
	left: 50%;
	top: 33px;
	transform: translate(-50%, -50%);
	z-index: 2;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #92400e;
	background: rgba(251, 191, 36, 0.95);
	border: 1.5px solid #92400e;
	border-radius: 999px;
	padding: 2px 7px;
	white-space: nowrap;
	pointer-events: none;
}

.nizi-map-inv__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 84px);
	gap: 4px;
	align-content: start;
	justify-content: center;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 6px;
	flex: 1 1 auto;
	min-height: 0;
	background: #8b8b8b;
	border: 2px solid #373737;
	box-shadow: inset 1px 1px 0 #555, inset -1px -1px 0 #c6c6c6;
}

.nizi-map-inv__empty {
	grid-column: 1 / -1;
	margin: 8px 0;
	opacity: 0.8;
	font-size: 0.85rem;
	color: #222;
}

.nizi-map-inv__slot {
	appearance: none;
	position: relative;
	width: 84px;
	height: 84px;
	min-width: 84px;
	min-height: 84px;
	max-width: 84px;
	max-height: 84px;
	box-sizing: border-box;
	border: 2px solid #373737;
	border-radius: 0;
	background: #9a9a9a;
	color: #111;
	cursor: grab;
	padding: 0;
	display: block;
	overflow: hidden;
	touch-action: none;
	box-shadow: inset 1px 1px 0 #c6c6c6, inset -1px -1px 0 #555;
}

.nizi-map-inv__thumb {
	position: absolute;
	left: 4px;
	right: 4px;
	top: 2px;
	bottom: 18px;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0;
	pointer-events: none;
	image-rendering: auto;
}

.nizi-map-inv__thumb.is-ready {
	opacity: 0.92;
}

.nizi-map-inv__slot:hover,
.nizi-map-inv__slot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
	z-index: 1;
}

.nizi-map-inv__slot:active {
	cursor: grabbing;
}

.nizi-map-inv__hand {
	background: #a3a3a3;
}

.nizi-map-inv__slot-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	box-sizing: border-box;
	padding: 2px 4px;
	font-size: 0.62rem;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: normal;
	background: rgba(198, 198, 198, 0.88);
	text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

.nizi-map-inv__grid .nizi-map-palette-btn {
	min-height: 48px;
	font-size: 0.78rem;
	touch-action: none;
	cursor: grab;
}

.nizi-map-inv__deco {
	cursor: pointer;
}

.nizi-map-inv__swatch {
	position: absolute;
	left: 4px;
	right: 4px;
	top: 2px;
	bottom: 18px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.nizi-map-inv__deco.is-on {
	outline: 3px solid #fbbf24;
	outline-offset: -3px;
	z-index: 1;
}

.nizi-map-inv__deco.is-on .nizi-map-inv__slot-label {
	background: rgba(251, 191, 36, 0.92);
}

.nizi-map-inv__grid .nizi-map-palette-btn:active {
	cursor: grabbing;
}

.nizi-map-hot-slot.is-drop-target {
	outline: none;
	border-color: #fbbf24;
	box-shadow: 0 0 0 2px #fbbf24;
	background: rgba(251, 191, 36, 0.28);
}

.nizi-map-drag-ghost {
	position: fixed;
	z-index: 2147483646;
	pointer-events: none;
	transform: translate(-50%, -50%);
	padding: 6px 10px;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.85);
	border: 2px solid #fff;
	color: #f8fafc;
	font-size: 0.75rem;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	max-width: 160px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nizi-map-editor--build {
	z-index: 40;
}

.nizi-map-editor--build.is-inv-open .nizi-map-build-crosshair,
.nizi-map-editor--build.is-menu-open .nizi-map-build-crosshair {
	opacity: 0.15;
}

.nizi-map-obj-ctx {
	pointer-events: auto;
	position: absolute;
	inset: 0;
	z-index: 60;
	overflow: hidden;
}

.nizi-map-obj-ctx__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.nizi-map-obj-ctx__panel {
	position: absolute;
	width: min(340px, calc(100% - 16px));
	max-width: calc(100% - 16px);
	max-height: calc(100% - 80px);
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 8px;
	background: #c6c6c6;
	border: 3px solid #373737;
	box-shadow:
		inset 2px 2px 0 #fff,
		inset -2px -2px 0 #8b8b8b,
		0 10px 28px rgba(0, 0, 0, 0.45);
	color: #111;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.nizi-map-obj-ctx__title {
	font-size: 0.78rem;
	font-weight: 700;
	text-align: center;
	margin: 0 0 2px;
	opacity: 0.85;
}

.nizi-map-obj-ctx__btn {
	appearance: none;
	width: 100%;
	border: 2px solid #373737;
	border-radius: 0;
	background: #8b8b8b;
	color: #111;
	padding: 7px 9px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
	box-shadow: inset 1px 1px 0 #c6c6c6, inset -1px -1px 0 #555;
	flex-shrink: 0;
}

.nizi-map-obj-ctx__btn:hover,
.nizi-map-obj-ctx__btn:focus-visible {
	background: #fff;
}

.nizi-map-obj-ctx__btn--sub {
	font-size: 0.78rem;
	font-weight: 600;
	padding: 6px 8px;
	background: #a3a3a3;
}

.nizi-map-obj-ctx__btn--sub.is-active {
	background: #fff;
	outline: 2px solid #111;
}

.nizi-map-obj-ctx__btn--danger {
	background: #b45353;
	color: #fff;
	box-shadow: inset 1px 1px 0 #d97777, inset -1px -1px 0 #7f1d1d;
}

.nizi-map-obj-ctx__btn--danger:hover,
.nizi-map-obj-ctx__btn--danger:focus-visible {
	background: #dc2626;
	color: #fff;
}

.nizi-map-obj-ctx__btn--ghost {
	background: #a3a3a3;
	font-weight: 600;
}

.nizi-map-obj-ctx__roles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	padding: 4px 0 2px;
	border-top: 1px solid #777;
	border-bottom: 1px solid #777;
	margin: 2px 0;
	flex-shrink: 0;
}

.nizi-map-obj-ctx__roles .nizi-map-obj-ctx__btn {
	width: auto;
	min-width: 0;
	text-align: center;
	padding: 6px 4px;
	font-size: 0.68rem;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nizi-map-obj-ctx__btn--role-wide {
	grid-column: 1 / -1;
}

.nizi-map-obj-ctx__roles[hidden] {
	display: none !important;
}

.nizi-map-obj-ctx__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 4px 0 2px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #1f2937;
}

.nizi-map-obj-ctx__input {
	width: 100%;
	box-sizing: border-box;
	border: 2px solid #373737;
	border-radius: 0;
	padding: 6px 8px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #111;
	background: #f8fafc;
}

.nizi-map-obj-ctx__textarea {
	min-height: 88px;
	resize: vertical;
	line-height: 1.45;
	font-weight: 600;
	white-space: pre-wrap;
}

.nizi-water-park__talk {
	text-align: left;
	max-width: min(460px, 92%);
}

.nizi-water-park__talk-name {
	font-weight: 800;
	margin: 0 0 8px;
	color: #92400e;
}

.nizi-water-park__talk-body {
	margin: 0;
	white-space: pre-wrap;
	line-height: 1.65;
	font-weight: 600;
}

.nizi-map-build-esc-hint {
	pointer-events: none;
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 45;
	padding: 4px 10px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.4);
	color: rgba(248, 250, 252, 0.9);
	font-size: 0.72rem;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
	white-space: normal;
	text-align: center;
	max-width: calc(100% - 24px);
	box-sizing: border-box;
	line-height: 1.35;
}

.nizi-map-build-menu {
	pointer-events: auto;
	position: absolute;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 10px 72px;
	box-sizing: border-box;
	overflow: hidden;
}

.nizi-map-build-menu[hidden] {
	display: none !important;
}

.nizi-map-build-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.nizi-map-build-menu__panel {
	position: relative;
	z-index: 1;
	width: min(320px, 100%);
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 12px;
	background: #c6c6c6;
	border: 3px solid #373737;
	box-shadow:
		inset 2px 2px 0 #fff,
		inset -2px -2px 0 #8b8b8b,
		0 16px 40px rgba(0, 0, 0, 0.45);
	color: #111;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.nizi-map-build-menu__title {
	margin: 0;
	font-size: 1.15rem;
	text-align: center;
}

.nizi-map-build-menu__area {
	margin: 0 0 4px;
	text-align: center;
	font-size: 0.78rem;
	opacity: 0.8;
}

.nizi-map-build-menu__btn {
	appearance: none;
	width: 100%;
	border: 2px solid #373737;
	border-radius: 0;
	background: #8b8b8b;
	color: #111;
	padding: 9px 11px;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: inset 1px 1px 0 #c6c6c6, inset -1px -1px 0 #555;
	flex-shrink: 0;
}

.nizi-map-build-menu__btn:hover,
.nizi-map-build-menu__btn:focus-visible {
	background: #fff;
}

.nizi-map-build-menu__btn--primary {
	background: #5a8f3a;
	color: #f8fafc;
	box-shadow: inset 1px 1px 0 #8bc34a, inset -1px -1px 0 #3d6b24;
}

.nizi-map-build-menu__btn--primary:hover,
.nizi-map-build-menu__btn--primary:focus-visible {
	background: #6aa344;
	color: #fff;
}

.nizi-map-build-menu__btn--ghost {
	background: #a3a3a3;
	font-weight: 600;
}

.nizi-map-build-menu__chk {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.nizi-map-slot {
	display: inline-block;
	margin-right: 4px;
	opacity: 0.7;
	font-size: 0.68rem;
}

.nizi-map-editor__tools {
	display: inline-flex;
	gap: 4px;
}

.nizi-map-tool.is-active,
.nizi-map-cam.is-active,
.nizi-map-palette-btn.is-active {
	outline: 2px solid #38bdf8;
	background: rgba(56, 189, 248, 0.25) !important;
	color: #fff !important;
}

.nizi-map-editor__scale-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.72rem;
	margin: 0 0 6px;
}

.nizi-map-editor__scale-row label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-weight: 600;
}

.nizi-map-editor__scale-row input {
	width: 100%;
	max-width: 8rem;
	box-sizing: border-box;
	padding: 4px 6px;
	border-radius: 6px;
	border: 1px solid #475569;
	background: #0f172a;
	color: #e2e8f0;
}

.nizi-map-editor__half {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 6px;
	font-size: 0.72rem;
}

.nizi-map-editor__half label {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nizi-map-editor__half input {
	width: 100%;
	box-sizing: border-box;
	padding: 4px 6px;
	border-radius: 6px;
	border: 1px solid #475569;
	background: #0f172a;
	color: #e2e8f0;
}

.nizi-map-editor__chk {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
}

.nizi-map-editor__status {
	margin-left: auto;
	font-size: 0.85rem;
	opacity: 0.9;
}

.nizi-map-editor__side {
	max-width: min(440px, 94vw);
	margin: 0 12px 12px;
	padding: 10px;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.82);
	color: #e2e8f0;
	max-height: 46vh;
	overflow: auto;
}

.nizi-map-editor__hint,
.nizi-map-editor__sel {
	margin: 0 0 8px;
	font-size: 0.8rem;
	line-height: 1.45;
}

.nizi-map-editor__muted {
	opacity: 0.75;
	font-size: 0.75rem;
}

.nizi-map-editor__sel-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px;
	border-radius: 10px;
	background: rgba(30, 41, 59, 0.9);
}

.nizi-map-editor__sel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nizi-map-editor__palette-label {
	font-size: 0.78rem;
	opacity: 0.85;
	margin: 4px 0 6px;
}

.nizi-map-deco {
	margin: 6px 0 10px;
}
.nizi-map-deco__row {
	margin-bottom: 7px;
}
.nizi-map-deco__label {
	font-size: 0.72rem;
	opacity: 0.85;
	margin-bottom: 4px;
}
.nizi-map-deco__swatches {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
}
.nizi-map-deco__swatch {
	height: 26px;
	border-radius: 6px;
	border: 2px solid rgba(255,255,255,0.18);
	cursor: pointer;
	padding: 0;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.nizi-map-deco__swatch.is-on {
	border-color: #fbbf24;
	box-shadow: 0 0 0 1px #fbbf24;
}
.nizi-map-deco--compact {
	margin: 8px 0 12px;
	max-height: 220px;
	overflow: auto;
}

.nizi-map-palette-btn {
	font-size: 0.75rem !important;
	padding: 6px 8px !important;
}

.nizi-water-park__dressup {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 6px;
	background: linear-gradient(160deg, #8ec8e8 0%, #c7e9f8 45%, #e0f2fe 100%);
	overflow: hidden;
}
.nizi-water-park__dressup-panel {
	width: min(1080px, 100%);
	height: 100%;
	max-height: 100%;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 14px;
	padding: 8px 10px 10px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}
.nizi-water-park__dressup-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-shrink: 0;
	margin-bottom: 6px;
}
.nizi-water-park__dressup-head h2 {
	margin: 0;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	gap: 8px;
}
.nizi-water-park__dressup-badge {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #0c4a6e;
	background: #e0f2fe;
}
.nizi-water-park__dressup-head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	justify-content: flex-end;
	flex-shrink: 0;
}
.nizi-water-park__dressup-head-actions .nizi-water-park__btn {
	padding: 6px 10px;
	font-size: 0.78rem;
}
.nizi-water-park__dressup-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
	gap: 10px;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}
@media (max-width: 720px) {
	.nizi-water-park__dressup-layout {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(240px, 1fr) auto;
	}
}
.nizi-water-park__dressup-preview-wrap {
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nizi-water-park__dressup-canvas-shell {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	border-radius: 12px;
}
.nizi-water-park__dressup-fit-panel {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	width: min(220px, 46%);
	max-height: calc(100% - 56px);
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 9px;
	border-radius: 10px;
	background: rgba(248, 250, 252, 0.94);
	border: 1px solid #e2e8f0;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
	backdrop-filter: blur(6px);
}
.nizi-water-park__dressup-fit-panel[hidden] {
	display: none !important;
}
.nizi-water-park__dressup-fit-hint,
.nizi-water-park__dressup-fit-note {
	margin: 0;
	font-size: 0.62rem;
	font-weight: 700;
	color: #64748b;
	line-height: 1.35;
}
.nizi-water-park__dressup-fit-note {
	padding: 0 2px 4px;
}
.nizi-water-park__dressup-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	background: #b7e4f7;
	display: block;
	cursor: grab;
	touch-action: none;
}
.nizi-water-park__dressup-canvas.is-dragging {
	cursor: grabbing;
}
.nizi-water-park__dressup-drag-hint {
	position: absolute;
	left: 8px;
	top: 8px;
	margin: 0;
	padding: 3px 7px;
	border-radius: 8px;
	font-size: 0.65rem;
	font-weight: 700;
	color: #0f172a;
	background: rgba(255, 255, 255, 0.82);
	pointer-events: none;
	z-index: 2;
}
.nizi-water-park__dressup-face-bar {
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 3;
}
.nizi-water-park__dressup-face-btn {
	appearance: none;
	border: 1px solid rgba(15, 23, 42, 0.2);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 0.78rem;
	font-weight: 800;
	color: #0f172a;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
	cursor: pointer;
}
.nizi-water-park__dressup-face-btn.is-active {
	color: #fff;
	background: #0284c7;
	border-color: #0284c7;
}
.nizi-water-park__dressup-status {
	position: static;
	flex-shrink: 0;
	margin: 0;
	padding: 4px 8px;
	border-radius: 8px;
	font-size: 0.72rem;
	color: #334155;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}
.nizi-water-park__dressup-controls {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	overflow: hidden;
}
.nizi-water-park__dressup-hair-tune {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 9px;
	border-radius: 10px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}
.nizi-water-park__dressup-hair-tune-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 0 0 2px;
	min-height: 0;
}
.nizi-water-park__dressup-hair-tune-title {
	margin: 0 !important;
	padding: 0;
	font-size: 0.72rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: 0.02em;
	line-height: 1.2;
}
.nizi-water-park__dressup-hair-color {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	color: #0f172a;
	cursor: pointer;
}
.nizi-water-park__dressup-hair-color input[type="color"] {
	width: 36px;
	height: 26px;
	padding: 2px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}
.nizi-water-park__dressup-hair-row {
	display: grid;
	grid-template-columns: 2.2em 2.6em minmax(0, 1fr);
	align-items: center;
	gap: 4px 6px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #0f172a;
}
.nizi-water-park__dressup-hair-label {
	white-space: nowrap;
	line-height: 1;
	font-size: 0.7rem;
	letter-spacing: 0;
}
.nizi-water-park__dressup-hair-row span:nth-child(2) {
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	color: #0369a1;
	text-align: right;
	white-space: nowrap;
}
.nizi-water-park__dressup-hair-row input[type="range"] {
	width: 100%;
	margin: 0;
	accent-color: #0284c7;
}
.nizi-water-park__dressup-hair-reset {
	margin-top: 2px;
	padding: 5px 8px !important;
	font-size: 0.72rem !important;
}
.nizi-water-park__dressup-parts {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-height: 0;
	overflow: auto;
	padding-right: 2px;
}
.nizi-water-park__dressup-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #0f172a;
}
.nizi-water-park__dressup-field select,
.nizi-water-park__dressup-field input[type="color"] {
	font-weight: 600;
	padding: 6px 8px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #fff;
}
.nizi-water-park__dressup-field input[type="color"] {
	height: 34px;
	padding: 3px;
}
.nizi-water-park__dressup-hint {
	margin: 0;
	font-size: 0.75rem;
	color: #64748b;
	line-height: 1.4;
}

/* 管理者：スタート直後の 2character プレイ選択 */
.nizi-water-park__char-pick {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 30;
	background:
		radial-gradient(ellipse 70% 50% at 50% 20%, rgba(255, 255, 255, 0.25), transparent 55%),
		linear-gradient(180deg, rgba(14, 60, 95, 0.55), rgba(8, 35, 58, 0.82));
}
.nizi-water-park__char-pick-panel {
	width: min(560px, 100%);
	max-height: min(88vh, 640px);
	overflow: auto;
	padding: 18px 18px 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 16px 40px rgba(8, 47, 73, 0.35);
	border: 1px solid rgba(148, 163, 184, 0.45);
}
.nizi-water-park__char-pick-head h2 {
	margin: 0 0 6px;
	font-size: 1.15rem;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.nizi-water-park__char-pick-lead {
	margin: 0 0 14px;
	font-size: 0.85rem;
	color: #475569;
}
.nizi-water-park__char-pick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}
.nizi-water-park__char-pick-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 12px 12px 10px;
	border-radius: 12px;
	border: 2px solid #cbd5e1;
	background: #f8fafc;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.nizi-water-park__char-pick-card:hover,
.nizi-water-park__char-pick-card:focus-visible {
	border-color: #38bdf8;
	outline: none;
	background: #fff;
}
.nizi-water-park__char-pick-card.is-selected {
	border-color: #0284c7;
	background: #e0f2fe;
	box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35);
}
.nizi-water-park__char-pick-name {
	font-weight: 700;
	font-size: 0.92rem;
	color: #0f172a;
}
.nizi-water-park__char-pick-path {
	font-size: 0.68rem;
	color: #64748b;
	word-break: break-all;
	line-height: 1.3;
}
.nizi-water-park__char-pick-empty {
	margin: 8px 0 16px;
	font-size: 0.88rem;
	color: #64748b;
	line-height: 1.5;
}
.nizi-water-park__char-pick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}
.nizi-water-park__char-pick-status {
	margin: 10px 0 0;
	font-size: 0.78rem;
	color: #64748b;
}

.nizi-water-park__title-btn--settings:hover,
.nizi-water-park__title-btn--settings:focus-visible {
	outline: none;
	transform: translateY(-1px) scale(1.02);
	background: #fff;
	box-shadow:
		0 0 0 2px rgba(56, 189, 248, 0.55),
		0 8px 18px rgba(8, 47, 73, 0.32);
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__title-ui {
	left: 50%;
	top: 82%;
	width: min(240px, 72%);
	gap: 8px;
}

.nizi-water-park__title-veil {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 45% at 50% 12%, rgba(255, 255, 255, 0.2), transparent 60%),
		linear-gradient(180deg, rgba(6, 28, 52, 0.55) 0%, rgba(6, 28, 52, 0.15) 38%, rgba(4, 20, 38, 0.45) 62%, rgba(3, 16, 32, 0.88) 100%);
	pointer-events: none;
}

.nizi-water-park__title-scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.12;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 0, 0, 0.35) 3px
	);
}

.nizi-water-park__title-frame {
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	pointer-events: none;
	z-index: 1;
}

.nizi-water-park__title-corner {
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid #7dd3fc;
}

.nizi-water-park__title-corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.nizi-water-park__title-corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.nizi-water-park__title-corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.nizi-water-park__title-corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.nizi-water-park__title--simple {
	justify-content: center;
	align-items: center;
	padding: 4%;
}

.nizi-water-park__title-center {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	width: min(420px, 92%);
	text-align: center;
}

.nizi-water-park__title--simple .nizi-water-park__title-name {
	margin: 0;
	font-size: clamp(1.8rem, 5vw, 3rem);
}

.nizi-water-park__title-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(280px, 100%);
}

.nizi-water-park__title--simple .nizi-water-park__title-menu-btn {
	justify-content: center;
	width: 100%;
}

.nizi-water-park__title-top {
	position: absolute;
	left: 50%;
	top: 42%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: min(920px, 92%);
	text-align: center;
	animation: nizi-title-rise-center 0.9s ease-out both;
}

.nizi-water-park__title-badge {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.68rem;
	letter-spacing: 0.24em;
	font-weight: 800;
	color: #041525;
	background: linear-gradient(90deg, #7dd3fc, #bae6fd);
}

.nizi-water-park__title-name {
	margin: 0 auto;
	width: 100%;
	text-align: center;
	font-family: "Yu Gothic", "Hiragino Sans", "Segoe UI", sans-serif;
	font-size: clamp(1.7rem, 4.8vw, 2.9rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0.06em;
	color: #fff;
	text-shadow:
		0 1px 0 #0ea5e9,
		0 3px 0 rgba(7, 60, 110, 0.55),
		0 14px 32px rgba(0, 30, 60, 0.55);
}

.nizi-water-park__title-sub {
	margin: 8px 0 0;
	text-align: center;
	font-size: 0.85rem;
	letter-spacing: 0.28em;
	color: rgba(186, 230, 253, 0.9);
}

.nizi-water-park__title-menu {
	position: relative;
	z-index: 2;
	width: min(380px, 90%);
	text-align: center;
	padding: 16px 18px 14px;
	border-radius: 16px;
	background: rgba(4, 24, 44, 0.55);
	border: 1px solid rgba(125, 211, 252, 0.35);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	animation: nizi-title-rise 1s ease-out 0.1s both;
}

.nizi-water-park__title-menu-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 8px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #f8fbff;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.nizi-water-park__title-menu-btn span {
	color: #7dd3fc;
	font-size: 0.85rem;
}

.nizi-water-park__title-menu-btn:hover {
	background: rgba(56, 189, 248, 0.28);
	transform: translateX(4px);
}

.nizi-water-park__title-menu-btn--main {
	background: linear-gradient(180deg, #38bdf8, #0284c7);
	border-color: #7dd3fc;
	color: #fff;
	box-shadow: 0 8px 18px rgba(2, 100, 180, 0.4);
}

.nizi-water-park__title-menu-btn--main:hover {
	background: linear-gradient(180deg, #7dd3fc, #0ea5e9);
	transform: translateY(-1px);
}

.nizi-water-park__title-press {
	margin: 10px 0 4px;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	font-weight: 700;
	color: #fde68a;
	animation: nizi-title-blink 1.4s steps(2, end) infinite;
}

.nizi-water-park__title-hint {
	margin: 6px 0 0;
	font-size: 0.68rem;
	line-height: 1.45;
	color: rgba(220, 240, 255, 0.7);
}

.nizi-water-park__title-note {
	margin: 0 0 8px;
	font-size: 0.75rem;
	color: #fde68a;
}

.nizi-water-park__title-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 0 0 10px;
}

.nizi-water-park__title-stats span {
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(8, 40, 70, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.72rem;
	color: #e8f6ff;
}

.nizi-water-park__title-stats b {
	color: #fff;
	margin-left: 3px;
}

.nizi-water-park__title-copy {
	position: relative;
	z-index: 2;
	margin: 0;
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	color: rgba(186, 230, 253, 0.65);
}

@keyframes nizi-title-kenburns {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to { transform: scale(1.12) translate3d(0, -2%, 0); }
}

@keyframes nizi-title-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes nizi-title-rise-center {
	from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); }
	to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes nizi-title-blink {
	50% { opacity: 0.15; }
}

/* —— 設定（ゲーム画面内に収める） —— */
.nizi-water-park__settings-wrap,
.nizi-water-park__menu-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3%;
	box-sizing: border-box;
	background:
		radial-gradient(ellipse 70% 55% at 30% 20%, rgba(56, 189, 248, 0.2), transparent 60%),
		radial-gradient(ellipse 50% 45% at 80% 80%, rgba(251, 191, 36, 0.12), transparent 55%),
		rgba(6, 24, 42, 0.68);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	touch-action: auto;
	overflow: hidden;
}

.nizi-water-park__settings-panel,
.nizi-water-park__menu-panel {
	width: min(560px, 100%);
	max-height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	background: rgba(255, 252, 248, 0.97);
	border: 1px solid #cfe8f6;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	color: #1e293b;
}

.nizi-water-park__menu-panel--game {
	width: min(560px, 94%);
	flex-direction: column;
	align-items: stretch;
	background:
		linear-gradient(145deg, rgba(255, 253, 250, 0.97) 0%, rgba(236, 248, 255, 0.96) 48%, rgba(224, 242, 254, 0.97) 100%);
	border: 1px solid rgba(125, 211, 252, 0.55);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.5) inset,
		0 22px 50px rgba(8, 47, 73, 0.35);
	color: #0f172a;
	border-radius: 14px;
	height: min(86%, 480px);
	max-height: min(86%, 480px);
	font-size: 1.06rem;
}

.nizi-water-park__frame.is-fullscreen .nizi-water-park__menu-panel--game {
	width: min(640px, 72%);
	height: min(78%, 560px);
	max-height: min(78%, 560px);
}

.nizi-water-park__menu-rail {
	flex: 0 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 8px;
	background:
		linear-gradient(90deg, #0c4a6e 0%, #075985 55%, #0e7490 100%);
	color: #e0f2fe;
	border-right: 0;
	border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

.nizi-water-park__menu-main {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	max-height: 100%;
	overflow: hidden;
}

.nizi-water-park__menu-kicker {
	margin: 0;
	font-size: 0.62rem;
	letter-spacing: 0.32em;
	font-weight: 800;
	color: #7dd3fc;
	flex-shrink: 0;
}

.nizi-water-park__menu-rail-hint {
	margin: 0 0 0 auto;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	color: rgba(186, 230, 253, 0.65);
	flex-shrink: 0;
	white-space: nowrap;
}

.nizi-water-park__menu-sub {
	margin: 2px 0 0;
	font-size: 0.72rem;
	color: #64748b;
	font-weight: 600;
}

.nizi-water-park__settings-panel {
	width: min(380px, 100%);
}

.nizi-water-park__settings-head,
.nizi-water-park__menu-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px 10px;
	border-bottom: 1px solid rgba(14, 116, 180, 0.12);
	flex-shrink: 0;
}

.nizi-water-park__menu-panel--game .nizi-water-park__menu-head {
	border-bottom-color: rgba(14, 116, 180, 0.12);
	background: transparent;
}

.nizi-water-park__settings-head h2,
.nizi-water-park__menu-head h2 {
	margin: 0;
	font-size: 1.28rem;
	letter-spacing: 0.04em;
}

.nizi-water-park__menu-panel--game .nizi-water-park__menu-head h2 {
	color: #0c4a6e;
	letter-spacing: 0.06em;
	font-size: 1.32rem;
}

.nizi-water-park__settings-head span,
.nizi-water-park__menu-head span {
	font-size: 0.72rem;
	color: #64748b;
}

.nizi-water-park__menu-nav {
	display: flex;
	flex-direction: row;
	flex: 1 1 auto;
	gap: 6px;
	padding: 0;
	min-width: 0;
}

.nizi-water-park__menu-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1 1 0;
	width: auto;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(224, 242, 255, 0.88);
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	letter-spacing: 0.04em;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}

.nizi-water-park__menu-tab-ico {
	opacity: 0.75;
	font-size: 0.7rem;
}

.nizi-water-park__menu-tab:hover {
	background: rgba(255, 255, 255, 0.16);
}

.nizi-water-park__menu-tab.is-active {
	background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
	border-color: rgba(125, 211, 252, 0.7);
	color: #0c4a6e;
	box-shadow: 0 6px 14px rgba(2, 80, 140, 0.2);
}

.nizi-water-park__menu-tab.is-active .nizi-water-park__menu-tab-ico {
	opacity: 1;
	color: #0284c7;
}

.nizi-water-park__menu-body {
	padding: 14px 18px;
	overflow-x: hidden;
	overflow-y: scroll;
	flex: 1 1 auto;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.nizi-water-park__menu-panel--game .nizi-water-park__menu-body {
	padding: 10px 14px 6px;
}

.nizi-water-park__menu-panel--game .nizi-water-park__settings-body {
	overflow: visible;
	max-height: none;
}

.nizi-water-park__char {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.nizi-water-park__char-preview-wrap {
	flex: 0 0 auto;
	width: 124px;
	text-align: center;
}

.nizi-water-park__char-preview {
	display: block;
	width: 124px;
	height: 124px;
	border-radius: 50%;
	object-fit: cover;
	background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 45%, #f8fafc 100%);
	border: 3px solid rgba(255, 255, 255, 0.95);
	box-shadow:
		0 0 0 2px rgba(14, 165, 233, 0.35),
		0 10px 24px rgba(14, 116, 180, 0.16);
}

.nizi-water-park__char-preview--face {
	width: 124px;
	height: 124px;
}

.nizi-water-park__menu-panel--game .nizi-water-park__char-preview {
	background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 40%, #f0f9ff 100%);
	border: 3px solid rgba(255, 255, 255, 0.95);
	box-shadow:
		0 0 0 2px rgba(2, 132, 199, 0.4),
		0 12px 28px rgba(14, 116, 180, 0.18);
}

.nizi-water-park__char-preview--art {
	object-fit: cover;
	object-position: 50% 18%;
}

.nizi-water-park__char-caption {
	margin: 6px 0 0;
	font-size: 0.72rem;
	color: #64748b;
}

.nizi-water-park__char-info {
	flex: 1 1 auto;
	min-width: 0;
}

.nizi-water-park__char-name,
.nizi-water-park__char-info h3 {
	margin: 0 0 6px;
	font-size: 1.22rem;
	color: #0c4a6e;
	letter-spacing: 0.03em;
}

.nizi-water-park__char-stat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 5px;
	margin: 0 0 8px;
}

.nizi-water-park__char-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(14, 116, 180, 0.14);
}

.nizi-water-park__char-stat span {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #64748b;
}

.nizi-water-park__char-stat b {
	font-size: 1.08rem;
	color: #0f172a;
}

.nizi-water-park__char-info h4 {
	margin: 0 0 6px;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	color: #0284c7;
	font-weight: 800;
}

.nizi-water-park__char-stats,
.nizi-water-park__char-equip {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nizi-water-park__char-stats li,
.nizi-water-park__char-equip li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 2px;
	border-bottom: 1px solid rgba(14, 116, 180, 0.1);
	font-size: 0.84rem;
}

.nizi-water-park__char-stats span,
.nizi-water-park__char-equip span {
	color: #64748b;
}

.nizi-water-park__char-stats b,
.nizi-water-park__char-equip b {
	font-weight: 700;
	color: #0f172a;
	text-align: right;
}

.nizi-water-park__char-hair {
	display: block;
	margin: 0 0 12px;
}

.nizi-water-park__char-hair .nizi-water-park__opts-select {
	width: 100%;
	max-width: 100%;
}

.nizi-water-park__menu-actions,
.nizi-water-park__settings-actions {
	padding: 10px 18px 14px;
	flex-shrink: 0;
	border-top: 1px solid rgba(14, 116, 180, 0.12);
}

.nizi-water-park__menu-panel--game .nizi-water-park__menu-actions {
	padding: 8px 14px 10px;
	border-top-color: rgba(14, 116, 180, 0.12);
	background: rgba(255, 255, 255, 0.45);
	gap: 8px;
	justify-content: flex-end;
}

.nizi-water-park__menu-panel--game .nizi-water-park__btn {
	font-size: 0.98rem;
	padding: 10px 16px;
}

.nizi-water-park__menu-panel--game .nizi-water-park__btn--ghost {
	background: rgba(255, 255, 255, 0.7);
	color: #0c4a6e;
	border: 1px solid rgba(14, 116, 180, 0.28);
}

.nizi-water-park__menu-panel--game .nizi-water-park__btn--ghost:hover {
	background: #e0f2fe;
}

.nizi-water-park__menu-panel--game .nizi-water-park__settings-body label {
	color: #334155;
}

.nizi-water-park__menu-panel--game .nizi-water-park__settings-body select,
.nizi-water-park__menu-panel--game .nizi-water-park__settings-body input[type="range"] {
	accent-color: #0284c7;
}

.nizi-water-park__settings-body {
	padding: 4px 2px 2px;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.nizi-water-park__settings-block {
	margin: 0 0 5px;
	padding: 5px 8px 5px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(14, 116, 180, 0.12);
}

.nizi-water-park__settings-block:last-child {
	margin-bottom: 0;
}

.nizi-water-park__settings-hint {
	margin: 3px 0 0;
	font-size: 0.62rem;
	line-height: 1.3;
	color: #64748b;
}

.nizi-water-park__settings-section {
	margin: 0 0 2px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: #0284c7;
}

.nizi-water-park__net-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nizi-water-park__net-btn {
	padding: 6px 12px !important;
	font-size: 0.78rem !important;
	margin: 0;
}

.nizi-water-park__net-result {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 0.76rem;
	font-weight: 700;
	color: #0c4a6e;
	line-height: 1.35;
}

.nizi-water-park__quality-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 5px;
}

.nizi-water-park__size-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 5px;
}

@media (max-width: 520px) {
	.nizi-water-park__size-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.nizi-water-park__quality-btn {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 6px 4px;
	border: 1px solid rgba(14, 116, 180, 0.22);
	border-radius: 8px;
	background: rgba(248, 250, 252, 0.9);
	color: #334155;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.nizi-water-park__quality-btn:hover {
	border-color: rgba(2, 132, 199, 0.45);
	background: #f0f9ff;
}

.nizi-water-park__quality-btn.is-active {
	border-color: #0284c7;
	background: linear-gradient(180deg, #e0f2fe, #bae6fd);
	box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.2);
	color: #0c4a6e;
}

.nizi-water-park__quality-btn-label {
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.2;
}

.nizi-water-park__quality-btn-hint {
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #64748b;
}

.nizi-water-park__quality-btn.is-active .nizi-water-park__quality-btn-hint {
	color: #0369a1;
}

.nizi-water-park__settings-row {
	margin: 0 0 3px;
}

.nizi-water-park__settings-row:last-child {
	margin-bottom: 0;
}

.nizi-water-park__settings-row-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 1px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #334155;
}

.nizi-water-park__settings-row-head b {
	font-size: 0.72rem;
	font-weight: 800;
	color: #0284c7;
	font-variant-numeric: tabular-nums;
}

.nizi-water-park__settings-row input[type="range"] {
	width: 100%;
	max-width: none;
	min-width: 0;
	accent-color: #0284c7;
}

.nizi-water-park__server-card.is-loading-count .nizi-water-park__server-card-crowd.is-pending {
	color: #64748b;
	opacity: 0.85;
}

@media (max-width: 640px) {
	.nizi-water-park__menu-rail-hint {
		display: none;
	}
	.nizi-water-park__char {
		flex-direction: column;
		align-items: center;
	}
	.nizi-water-park__char-info {
		width: 100%;
	}
	.nizi-water-park__hud--bars {
		min-width: 200px;
	}
}

.nizi-water-park__create-char-label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 4px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #334155;
	text-align: left;
}

.nizi-water-park__create-char-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	background: #fff;
}

.nizi-water-park__create-char-input:focus {
	outline: 2px solid #38bdf8;
	border-color: #7dd3fc;
}

.nizi-water-park__create-char-hint {
	margin: 0 0 8px;
	font-size: 0.75rem;
	color: #64748b;
	text-align: left;
}

.nizi-water-park__create-char-error {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #dc2626;
	text-align: left;
}

.nizi-water-park__quest-panel {
	padding: 4px 2px 8px;
}

.nizi-water-park__quest-label {
	margin: 0 0 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #0284c7;
	text-transform: uppercase;
}

.nizi-water-park__quest-name {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
}

.nizi-water-park__quest-desc {
	margin: 0 0 14px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #475569;
}

.nizi-water-park__quest-empty {
	margin: 8px 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #334155;
}

.nizi-water-park__settings-body label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 6px 0;
	font-size: 0.82rem;
	text-align: left;
}

.nizi-water-park__settings-body select,
.nizi-water-park__settings-body input[type="range"] {
	min-width: 120px;
	max-width: 55%;
}

.nizi-water-park__settings-actions {
	padding: 8px 14px 12px;
	border-top: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.nizi-water-park__settings-actions .nizi-water-park__btn {
	padding: 8px 14px;
	font-size: 0.88rem;
}

/* —— クエスト演出 —— */
.nizi-water-park__cine {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	pointer-events: none;
	animation: nizi-cine-fade 1.7s ease forwards;
}

.nizi-water-park__cine--depart {
	background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.45), rgba(8, 28, 48, 0.88) 70%);
}

.nizi-water-park__cine--stage-load .nizi-water-park__cine-panel {
	min-width: min(92vw, 420px);
}

.nizi-water-park__cine--stage-load {
	align-items: center;
	justify-content: center;
}

.nizi-water-park__cine--clear {
	background: radial-gradient(circle at 50% 35%, rgba(253, 224, 71, 0.35), rgba(8, 47, 73, 0.9) 72%);
}

.nizi-water-park__cine--fail {
	background: radial-gradient(circle at 50% 40%, rgba(244, 63, 94, 0.4), rgba(30, 10, 18, 0.92) 70%);
	animation: nizi-cine-shake 0.55s ease-out, nizi-cine-fade 1.55s ease forwards;
}

.nizi-water-park__cine-flash {
	position: absolute;
	inset: 0;
	background: #fff;
	opacity: 0;
	animation: nizi-cine-flash 0.7s ease-out;
}

.nizi-water-park__cine-vignette {
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.75);
}

.nizi-water-park__cine-burst {
	position: absolute;
	width: 180%;
	height: 180%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
	animation: nizi-cine-burst 1.4s ease-out;
}

.nizi-water-park__cine-panel {
	position: relative;
	text-align: center;
	color: #fff;
	animation: nizi-cine-pop 0.7s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

.nizi-water-park__cine-eyebrow {
	margin: 0 0 8px;
	font-size: 0.78rem;
	letter-spacing: 0.28em;
	font-weight: 800;
	opacity: 0.9;
}

.nizi-water-park__cine-title {
	margin: 0 0 10px;
	font-size: clamp(2rem, 7vw, 3.2rem);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.nizi-water-park__cine-sub {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	opacity: 0.92;
}

.nizi-water-park__cine-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 220px;
	height: 220px;
	margin: -110px 0 0 -110px;
	border: 3px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	animation: nizi-cine-ring 1.5s ease-out;
	pointer-events: none;
	z-index: -1;
}

.nizi-water-park__cine-confetti {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.nizi-water-park__cine-confetti i {
	position: absolute;
	top: -12px;
	width: 8px;
	height: 14px;
	border-radius: 2px;
	animation: nizi-cine-fall 1.6s linear forwards;
}

.nizi-water-park__cine-confetti i:nth-child(1) { left: 8%; background: #f472b6; animation-delay: 0.05s; }
.nizi-water-park__cine-confetti i:nth-child(2) { left: 16%; background: #fbbf24; animation-delay: 0.12s; }
.nizi-water-park__cine-confetti i:nth-child(3) { left: 24%; background: #60a5fa; animation-delay: 0.02s; }
.nizi-water-park__cine-confetti i:nth-child(4) { left: 33%; background: #34d399; animation-delay: 0.18s; }
.nizi-water-park__cine-confetti i:nth-child(5) { left: 42%; background: #f97316; animation-delay: 0.08s; }
.nizi-water-park__cine-confetti i:nth-child(6) { left: 51%; background: #a78bfa; animation-delay: 0.22s; }
.nizi-water-park__cine-confetti i:nth-child(7) { left: 60%; background: #38bdf8; animation-delay: 0.04s; }
.nizi-water-park__cine-confetti i:nth-child(8) { left: 68%; background: #f43f5e; animation-delay: 0.15s; }
.nizi-water-park__cine-confetti i:nth-child(9) { left: 76%; background: #fde047; animation-delay: 0.1s; }
.nizi-water-park__cine-confetti i:nth-child(10) { left: 84%; background: #4ade80; animation-delay: 0.2s; }
.nizi-water-park__cine-confetti i:nth-child(11) { left: 90%; background: #fb7185; animation-delay: 0.06s; }
.nizi-water-park__cine-confetti i:nth-child(12) { left: 95%; background: #67e8f9; animation-delay: 0.14s; }

@keyframes nizi-cine-fade {
	0% { opacity: 0; }
	12% { opacity: 1; }
	78% { opacity: 1; }
	100% { opacity: 0; }
}

@keyframes nizi-cine-flash {
	0% { opacity: 0.85; }
	100% { opacity: 0; }
}

@keyframes nizi-cine-pop {
	0% { transform: scale(0.6); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

@keyframes nizi-cine-ring {
	0% { transform: scale(0.4); opacity: 0.9; }
	100% { transform: scale(1.8); opacity: 0; }
}

@keyframes nizi-cine-burst {
	0% { transform: scale(0.2); opacity: 0.8; }
	100% { transform: scale(1.2); opacity: 0; }
}

@keyframes nizi-cine-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-8px); }
	40% { transform: translateX(8px); }
	60% { transform: translateX(-5px); }
	80% { transform: translateX(5px); }
}

@keyframes nizi-cine-fall {
	0% { transform: translateY(0) rotate(0deg); opacity: 1; }
	100% { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}

.nizi-water-park__result-wrap--in {
	animation: nizi-result-in 0.45s ease both;
}

@keyframes nizi-result-in {
	0% { opacity: 0; transform: scale(0.96); }
	100% { opacity: 1; transform: scale(1); }
}

.nizi-water-park__stat-hint {
	margin: 4px 0 10px;
	font-size: 0.72rem;
	color: #64748b;
	line-height: 1.4;
}

.nizi-water-park__stat-alloc-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.35);
}

.nizi-water-park__stat-alloc {
	display: grid;
	grid-template-columns: 1fr minmax(4.5em, auto) 28px;
	align-items: center;
	column-gap: 10px;
	padding: 7px 4px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.nizi-water-park__stat-alloc:last-child {
	border-bottom: 0;
}

.nizi-water-park__stat-alloc-name {
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #334155;
}

.nizi-water-park__stat-alloc-val {
	min-width: 4.5em;
	text-align: right;
	font-size: 1.12rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	font-family: "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
	color: #0f172a;
	letter-spacing: 0.02em;
}

.nizi-water-park__stat-alloc-meta {
	display: none;
}

.nizi-water-park__stat-btn {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 8px;
	background: #0ea5e9;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.nizi-water-park__stat-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.nizi-water-park__stat-btn:not(:disabled):hover {
	background: #0284c7;
}

/* —— クエスト結果 —— */
.nizi-water-park__result-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 25, 45, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.nizi-water-park__result {
	position: relative;
	max-width: min(440px, 92%);
	padding: 28px 26px 22px;
	border-radius: 18px;
	text-align: center;
	color: #1e293b;
	background: rgba(255, 252, 248, 0.96);
	border: 1px solid #d7cfc4;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.nizi-water-park__result--clear {
	border-color: #7dd3fc;
	background: linear-gradient(180deg, #f0fbff 0%, #fffdf9 55%);
}

.nizi-water-park__result--fail {
	border-color: #fda4af;
}

.nizi-water-park__result-glow {
	position: absolute;
	inset: -40% -20% auto;
	height: 120%;
	background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.35), transparent 60%);
	pointer-events: none;
}

.nizi-water-park__result-eyebrow {
	position: relative;
	margin: 0 0 6px;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	font-weight: 800;
	color: #0284c7;
}

.nizi-water-park__result--fail .nizi-water-park__result-eyebrow {
	color: #e11d48;
}

.nizi-water-park__result h2 {
	position: relative;
	margin: 0 0 8px;
	font-size: 1.7rem;
}

.nizi-water-park__result-quest {
	position: relative;
	margin: 0 0 12px;
	font-weight: 700;
	color: #334155;
}

.nizi-water-park__result-reward {
	position: relative;
	margin: 0 0 16px;
	padding: 12px;
	border-radius: 12px;
	background: rgba(14, 116, 144, 0.08);
	font-size: 0.9rem;
	line-height: 1.55;
	color: #334155;
}

.nizi-water-park__actions[hidden] {
	display: none !important;
}

.nizi-water-park__result-return {
	margin: 14px 0 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: #0369a1;
	letter-spacing: 0.04em;
}

.nizi-water-park__hud-quest-progress {
	margin: 3px 0 0;
	font-size: 0.68rem;
	font-weight: 700;
	color: #fef08a;
	line-height: 1.25;
}

.nizi-water-park__sw-hud {
	margin-top: 0;
	display: grid;
	gap: 4px;
}
.nizi-water-park__sw-hud--board {
	min-width: 0;
	padding: 5px 8px 6px;
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.55));
	border: 1px solid rgba(148, 163, 184, 0.35);
}
/* 試合進行HUD：上中央・コンパクト */
.nizi-water-park__hud--quest.is-match-center {
	z-index: 12;
}
.nizi-water-park__hud--quest.is-match-center .nizi-water-park__hud-quest-card--match {
	min-width: 0;
	width: min(320px, 82vw);
	padding: 0;
	border: none;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}
.nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-hud--board {
	min-width: 0;
	padding: 5px 8px 6px;
	border-radius: 8px;
	gap: 4px;
}
.nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-title {
	font-size: 0.68rem;
}
.nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-time {
	font-size: 0.78rem;
}
.nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-clash {
	height: 22px;
}
.nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-clash-num {
	font-size: 0.82rem;
}
.nizi-water-park__sw-hud--countdown {
	text-align: center;
	padding: 8px;
}
.nizi-water-park__sw-cd {
	font-size: 1.8rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	color: #f8fafc;
	text-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
	line-height: 1.1;
}
.nizi-water-park__sw-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 1em;
}
.nizi-water-park__sw-title {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #e2e8f0;
	line-height: 1;
	text-align: left;
	white-space: nowrap;
}
.nizi-water-park__sw-title em {
	font-style: normal;
	color: #7dd3fc;
	margin-left: 0.25em;
}
.nizi-water-park__sw-time {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 0.72rem;
	font-weight: 900;
	color: #f8fafc;
	letter-spacing: 0.04em;
	line-height: 1;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.nizi-water-park__sw-time.is-urgent {
	color: #fca5a5;
	animation: nizi-sw-pulse 0.7s ease-in-out infinite alternate;
}
@keyframes nizi-sw-pulse {
	from { opacity: 0.75; }
	to { opacity: 1; }
}
/* スプラ風：左右ゲージが中央でぶつかる */
.nizi-water-park__sw-clash {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 20px;
	border-radius: 3px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.75);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.nizi-water-park__sw-clash-side {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 100%;
	transition: width 0.28s ease;
	overflow: hidden;
}
.nizi-water-park__sw-clash-side--cyan {
	background: linear-gradient(90deg, #0c4a6e 0%, #0284c7 45%, #38bdf8 100%);
	box-shadow: 2px 0 0 #f8fafc, 3px 0 8px rgba(255, 255, 255, 0.5);
	z-index: 1;
}
.nizi-water-park__sw-clash-side--lime {
	background: linear-gradient(90deg, #a3e635 0%, #65a30d 55%, #3f6212 100%);
}
.nizi-water-park__sw-clash.is-empty .nizi-water-park__sw-clash-side--cyan,
.nizi-water-park__sw-clash.is-empty .nizi-water-park__sw-clash-side--lime {
	opacity: 0.35;
}
.nizi-water-park__sw-clash-num {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	font-size: 0.75rem;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 0 5px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	white-space: nowrap;
}
/* 残り1分：進行ゲージをモザイク隠し */
.nizi-water-park__sw-clash.is-fogged {
	position: relative;
}
.nizi-water-park__sw-clash.is-fogged::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(
			0deg,
			rgba(15, 23, 42, 0.55) 0 3px,
			transparent 3px 6px
		),
		repeating-linear-gradient(
			90deg,
			rgba(56, 189, 248, 0.55) 0 5px,
			rgba(163, 230, 53, 0.55) 5px 10px,
			rgba(15, 23, 42, 0.45) 10px 15px,
			rgba(125, 211, 252, 0.5) 15px 20px
		);
	image-rendering: pixelated;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}
.nizi-water-park__sw-clash.is-fogged .nizi-water-park__sw-clash-side {
	filter: saturate(0.55) brightness(0.85);
}
.nizi-water-park__sw-clash.is-fogged .nizi-water-park__sw-clash-num {
	z-index: 6;
	opacity: 0.55;
	letter-spacing: 0.08em;
}
.nizi-water-park__sw-fog-label {
	margin: 1px 0 0;
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fde68a;
	text-align: center;
	line-height: 1.2;
}
.nizi-water-park__sw-dots {
	display: flex;
	gap: 5px;
	justify-content: center;
}
.nizi-water-park__sw-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(100, 116, 139, 0.55);
	border: 1px solid rgba(226, 232, 240, 0.3);
	box-sizing: border-box;
}
.nizi-water-park__sw-dot.is-cyan {
	background: #38bdf8;
	box-shadow: 0 0 8px rgba(56, 189, 248, 0.75);
}
.nizi-water-park__sw-dot.is-lime {
	background: #a3e635;
	box-shadow: 0 0 8px rgba(163, 230, 53, 0.75);
}
.nizi-water-park__sw-dot.is-cyan-soft {
	background: rgba(56, 189, 248, 0.45);
	border-color: #38bdf8;
}
.nizi-water-park__sw-dot.is-lime-soft {
	background: rgba(163, 230, 53, 0.45);
	border-color: #a3e635;
}
.nizi-water-park__sw-dot.is-cyan.is-lime {
	background: linear-gradient(90deg, #38bdf8 50%, #a3e635 50%);
}
.nizi-water-park__sw-tank {
	position: relative;
	height: 11px;
	border-radius: 3px;
	background: rgba(15, 23, 42, 0.65);
	overflow: hidden;
}
.nizi-water-park__sw-tank i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #0ea5e9, #e0f2fe);
	transition: width 0.15s ease;
}
.nizi-water-park__sw-tank span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: 0 6px;
	font-size: 0.55rem;
	font-weight: 800;
	color: #0f172a;
	mix-blend-mode: difference;
}
.nizi-water-park__sw-hint {
	margin: 0;
	font-size: 0.58rem;
	font-weight: 700;
	color: rgba(226, 232, 240, 0.85);
	letter-spacing: 0.04em;
}

.nizi-water-park__bgm-now {
	position: absolute;
	top: 14px;
	right: 16px;
	z-index: 28;
	max-width: min(46%, 320px);
	padding: 0.45em 0.85em;
	border-radius: 8px;
	border: 1px solid rgba(253, 230, 138, 0.45);
	background: rgba(15, 23, 42, 0.72);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	color: #fef3c7;
	font-size: clamp(0.72rem, 1.8vw, 0.92rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-6px);
}
.nizi-water-park__bgm-now.is-in {
	animation: nizi-bgm-now-in 0.55s ease-out forwards;
}
.nizi-water-park__bgm-now.is-out {
	animation: nizi-bgm-now-out 0.9s ease-in forwards;
}
.nizi-water-park__bgm-now[hidden] {
	display: none !important;
}
@keyframes nizi-bgm-now-in {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes nizi-bgm-now-out {
	from { opacity: 1; transform: translateY(0); }
	to { opacity: 0; transform: translateY(-8px); }
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__bgm-now {
	top: 10px;
	right: 10px;
	max-width: 58%;
	font-size: 0.68rem;
	padding: 0.35em 0.65em;
}

.nizi-water-park__match-overlay {
	position: absolute;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	background: radial-gradient(circle at 50% 45%, rgba(15, 23, 42, 0.28), transparent 62%);
}
.nizi-water-park__match-overlay[hidden] {
	display: none !important;
}
.nizi-water-park__match-banner {
	padding: 0.35em 0.9em;
	border-radius: 10px;
	border: 2px solid rgba(248, 250, 252, 0.55);
	background: rgba(15, 23, 42, 0.72);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	transform: scale(1);
	animation: nizi-match-pop 0.35s ease-out;
}
.nizi-water-park__match-banner span {
	display: block;
	font-size: clamp(1.6rem, 6vw, 3.2rem);
	font-weight: 900;
	letter-spacing: 0.12em;
	color: #f8fafc;
	text-shadow: 0 2px 18px rgba(56, 189, 248, 0.45);
	line-height: 1.05;
	text-align: center;
}
.nizi-water-park__match-overlay.is-big .nizi-water-park__match-banner span {
	font-size: clamp(2.2rem, 9vw, 4.5rem);
}
.nizi-water-park__match-overlay.is-cyan .nizi-water-park__match-banner {
	border-color: #38bdf8;
	background: rgba(3, 105, 161, 0.78);
}
.nizi-water-park__match-overlay.is-lime .nizi-water-park__match-banner {
	border-color: #a3e635;
	background: rgba(77, 124, 15, 0.78);
}
.nizi-water-park__match-overlay.is-go .nizi-water-park__match-banner span,
.nizi-water-park__match-overlay.is-urgent .nizi-water-park__match-banner span {
	color: #fecaca;
	text-shadow: 0 0 22px rgba(248, 113, 113, 0.55);
}
.nizi-water-park__match-overlay.is-countdown .nizi-water-park__match-banner {
	border-color: #e2e8f0;
}
@keyframes nizi-match-pop {
	from { transform: scale(1.35); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.nizi-water-park__match-final {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.55rem;
	margin: 14px 0 6px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	font-size: clamp(1.8rem, 5vw, 2.8rem);
	line-height: 1;
}
.nizi-water-park__match-final .is-cyan { color: #38bdf8; }
.nizi-water-park__match-final .is-lime { color: #a3e635; }
.nizi-water-park__match-final .is-sep { color: rgba(248, 250, 252, 0.45); font-size: 0.7em; }
.nizi-water-park__cine-panel--match {
	min-width: min(420px, 92vw);
}

/* スプラ風：試合結果発表 */
.nizi-water-park__turf-result {
	position: absolute;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.82) 70%),
		linear-gradient(180deg, rgba(8, 47, 73, 0.55), rgba(20, 83, 45, 0.45));
	pointer-events: none;
}
.nizi-water-park__turf-finish {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nizi-water-park__turf-finish span {
	font-size: clamp(2.8rem, 12vw, 5.5rem);
	font-weight: 900;
	letter-spacing: 0.14em;
	color: #f8fafc;
	text-shadow: 0 0 28px rgba(248, 250, 252, 0.55), 0 4px 0 rgba(15, 23, 42, 0.65);
	line-height: 1;
}
.nizi-water-park__turf-finish.is-in span {
	animation: nizi-turf-finish-in 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.nizi-water-park__turf-finish.is-out span {
	animation: nizi-turf-finish-out 0.35s ease-in both;
}
@keyframes nizi-turf-finish-in {
	from { transform: scale(1.8); opacity: 0; letter-spacing: 0.4em; }
	to { transform: scale(1); opacity: 1; letter-spacing: 0.14em; }
}
@keyframes nizi-turf-finish-out {
	from { transform: scale(1); opacity: 1; }
	to { transform: scale(0.6); opacity: 0; }
}
.nizi-water-park__turf-board {
	width: min(720px, 94vw);
	padding: 18px 16px 22px;
	text-align: center;
	animation: nizi-turf-board-in 0.4s ease-out both;
}
@keyframes nizi-turf-board-in {
	from { transform: translateY(18px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
.nizi-water-park__turf-eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: rgba(226, 232, 240, 0.75);
}
.nizi-water-park__turf-bar {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	height: clamp(64px, 12vw, 92px);
	border-radius: 6px;
	overflow: hidden;
	box-shadow:
		0 0 0 3px rgba(248, 250, 252, 0.85),
		0 16px 40px rgba(0, 0, 0, 0.45);
	background: rgba(15, 23, 42, 0.8);
}
.nizi-water-park__turf-side {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	gap: 2px;
}
.nizi-water-park__turf-side--cyan {
	background: linear-gradient(90deg, #0c4a6e 0%, #0284c7 48%, #38bdf8 100%);
	box-shadow: 3px 0 0 #f8fafc, 6px 0 18px rgba(255, 255, 255, 0.45);
	z-index: 1;
}
.nizi-water-park__turf-side--lime {
	background: linear-gradient(90deg, #a3e635 0%, #65a30d 52%, #3f6212 100%);
}
.nizi-water-park__turf-team {
	font-size: clamp(0.65rem, 2vw, 0.85rem);
	font-weight: 800;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.nizi-water-park__turf-num {
	font-size: clamp(1.6rem, 6vw, 2.6rem);
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}
.nizi-water-park__turf-nodes {
	margin: 10px 0 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(226, 232, 240, 0.7);
}
.nizi-water-park__turf-verdict {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.nizi-water-park__turf-verdict[hidden] {
	display: none !important;
}
.nizi-water-park__turf-verdict.is-in {
	animation: nizi-turf-verdict-in 0.55s cubic-bezier(0.2, 1.35, 0.4, 1) both;
}
@keyframes nizi-turf-verdict-in {
	from { transform: scale(1.55); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.nizi-water-park__turf-verdict-en {
	font-size: clamp(2.2rem, 9vw, 4rem);
	font-weight: 900;
	letter-spacing: 0.12em;
	line-height: 1;
	color: #f8fafc;
	text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}
.nizi-water-park__turf-verdict.is-win .nizi-water-park__turf-verdict-en {
	color: #fde68a;
	text-shadow: 0 0 28px rgba(250, 204, 21, 0.55);
}
.nizi-water-park__turf-verdict.is-lose .nizi-water-park__turf-verdict-en {
	color: #fca5a5;
	text-shadow: 0 0 28px rgba(248, 113, 113, 0.45);
}
.nizi-water-park__turf-verdict.is-draw .nizi-water-park__turf-verdict-en {
	color: #e2e8f0;
}
.nizi-water-park__turf-verdict-jp {
	font-size: 1.05rem;
	font-weight: 800;
	color: rgba(248, 250, 252, 0.9);
}
.nizi-water-park__turf-verdict-reason {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: rgba(186, 230, 253, 0.8);
}
.nizi-water-park__turf-return {
	margin: 1.1rem 0 0;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: rgba(226, 232, 240, 0.85);
	text-align: center;
}
.nizi-water-park__turf-return[hidden] {
	display: none !important;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__turf-bar {
	height: 58px;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__turf-verdict-en {
	font-size: clamp(1.8rem, 10vw, 2.8rem);
}
.nizi-water-park__hud-quest-card--match {
	text-align: center;
	margin: 0 auto;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--quest.is-match-center {
	top: 6px !important;
	max-width: min(280px, 88%) !important;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--quest.is-match-center .nizi-water-park__hud-quest-card--match {
	width: min(260px, 88vw);
	padding: 0;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-hud--board {
	min-width: 0;
	padding: 4px 7px 5px;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-title {
	font-size: 0.6rem;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-time {
	font-size: 0.72rem;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-clash {
	height: 18px;
}
.nizi-water-park[data-window-size="phone"] .nizi-water-park__hud--quest.is-match-center .nizi-water-park__sw-clash-num {
	font-size: 0.72rem;
}

.nizi-water-park__cine--accept {
	background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.4), rgba(12, 40, 70, 0.9) 72%);
}

.nizi-water-park__cine--join {
	background: radial-gradient(circle at 50% 40%, rgba(167, 139, 250, 0.4), rgba(30, 20, 60, 0.9) 72%);
}

.nizi-water-park__cine--enter {
	background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.22), rgba(8, 47, 73, 0.94) 68%);
	animation: none;
	pointer-events: auto;
	overflow: hidden;
	align-items: center;
	justify-content: center;
}

.nizi-water-park__enter-bg {
	position: absolute;
	inset: -10%;
	background:
		radial-gradient(circle at 30% 20%, rgba(125, 211, 252, 0.2), transparent 45%),
		radial-gradient(circle at 70% 80%, rgba(244, 114, 182, 0.18), transparent 40%);
	animation: nizi-enter-drift 6s ease-in-out infinite alternate;
}

.nizi-water-park__enter-rays {
	position: absolute;
	left: 50%;
	top: 42%;
	width: 140vmax;
	height: 140vmax;
	margin: -70vmax 0 0 -70vmax;
	background: conic-gradient(from 0deg, transparent 0 12deg, rgba(255, 255, 255, 0.04) 12deg 18deg, transparent 18deg 30deg);
	animation: nizi-enter-spin 18s linear infinite;
	opacity: 0.7;
	pointer-events: none;
}

@keyframes nizi-enter-drift {
	from { transform: translate3d(-1%, -1%, 0) scale(1); }
	to { transform: translate3d(2%, 1%, 0) scale(1.05); }
}

@keyframes nizi-enter-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.nizi-water-park__cine-hint {
	margin: 14px 0 0;
	font-size: 0.88rem;
	opacity: 0.85;
}

.nizi-water-park__enter-panel {
	position: relative;
	text-align: center;
	color: #fff;
	max-width: min(440px, 92vw);
	width: 100%;
	padding: 10px 14px;
	margin: 0 auto;
	animation: nizi-cine-pop 0.65s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

.nizi-water-park__cine--enter .nizi-water-park__cine-title {
	margin: 0 0 8px;
}

.nizi-water-park__howto {
	margin: 14px auto 10px;
	padding: 12px 14px;
	text-align: left;
	border-radius: 14px;
	background: rgba(8, 28, 48, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.nizi-water-park__howto-title {
	margin: 0 0 8px;
	font-weight: 800;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
}

.nizi-water-park__howto ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nizi-water-park__howto li {
	margin: 0 0 5px;
	font-size: 0.84rem;
	line-height: 1.4;
}

.nizi-water-park__howto kbd {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	font-size: 0.78rem;
	font-family: inherit;
}

.nizi-water-park__enter-meter {
	position: relative;
	margin: 16px auto 8px;
	width: min(300px, 84%);
	height: 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.nizi-water-park__enter-meter > i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #22d3ee, #38bdf8 40%, #a78bfa 78%, #f472b6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
	transition: width 0.18s ease-out;
}

.nizi-water-park__enter-meter::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
	background-size: 220% 100%;
	animation: nizi-enter-shine 1.6s linear infinite;
	pointer-events: none;
}

@keyframes nizi-enter-shine {
	0% { background-position: 120% 0; }
	100% { background-position: -120% 0; }
}

.nizi-water-park__enter-pct {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	color: #fff;
	text-shadow: 0 2px 10px rgba(56, 189, 248, 0.45);
}

.nizi-water-park__enter-loading {
	margin: 6px 0 0;
	font-size: 0.82rem;
	opacity: 0.88;
	letter-spacing: 0.08em;
}

.nizi-water-park__enter-eta {
	margin: 4px 0 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	opacity: 0.75;
	color: #bae6fd;
}

.nizi-water-park__enter-wifi-tip {
	margin: 14px auto 0;
	max-width: min(320px, 92%);
	padding: 10px 12px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	background: rgba(8, 28, 48, 0.45);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.45;
	color: #e0f2fe;
	opacity: 0.95;
}

.nizi-water-park__stage-pick-label {
	margin: 12px 0 6px;
	font-weight: 800;
	font-size: 0.9rem;
}

.nizi-water-park__stage-pick-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nizi-water-park__stage-pick {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(14, 116, 144, 0.25);
	background: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.nizi-water-park__stage-pick.is-active {
	border-color: #0284c7;
	box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35);
	background: #e0f2fe;
}

.nizi-water-park__stage-pick.is-locked {
	opacity: 0.55;
	cursor: not-allowed;
}

.nizi-water-park__stage-pick-name {
	font-weight: 800;
}

.nizi-water-park__stage-pick-tag {
	font-size: 0.75rem;
	font-weight: 700;
	color: #0369a1;
}

.nizi-water-park__stage-pick.is-locked .nizi-water-park__stage-pick-tag {
	color: #64748b;
}

/* —— カードショップ風オプション画面 —— */
.nizi-water-park__opts-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5%;
	box-sizing: border-box;
	background: rgba(8, 12, 18, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 20;
	touch-action: auto;
}

.nizi-water-park__opts {
	width: min(560px, 94%);
	height: min(420px, 86%);
	max-height: 86%;
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	overflow: hidden;
	background: #3a3a3a;
	border: 2px solid #2a2a2a;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
	color: #f3f4f6;
	font-size: 0.84rem;
}

.nizi-water-park__opts-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 10px;
	background: linear-gradient(180deg, #f4efe6, #e8e0d4);
	border-bottom: 1px solid #cfc4b4;
	color: #1f2937;
}

.nizi-water-park__opts-head h2 {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.nizi-water-park__opts-head-title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	flex: 1 1 auto;
	min-width: 0;
}

.nizi-water-park__opts-head-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}

.nizi-water-park__opts-head-tab {
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 6px 12px;
	background: #9ca3af;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.nizi-water-park__opts-head-tab:hover {
	filter: brightness(1.05);
}

.nizi-water-park__opts-head-tab.is-active {
	background: #3b82f6;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 0 rgba(0, 0, 0, 0.15);
}

.nizi-water-park__opts-close {
	appearance: none;
	border: 0;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #9ca3af;
	color: #fff;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	font-weight: 700;
}

.nizi-water-park__opts-close:hover {
	background: #6b7280;
}

.nizi-water-park__opts-body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: row;
	background: #3f3f3f;
}

.nizi-water-park__opts-side {
	flex: 0 0 96px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 7px;
	background: transparent;
}

.nizi-water-park__opts-tab {
	appearance: none;
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 8px 6px;
	background: #3b82f6;
	color: #fff;
	font-weight: 800;
	font-size: 0.78rem;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.nizi-water-park__opts-tab:hover {
	filter: brightness(1.06);
}

.nizi-water-park__opts-tab.is-active {
	border-color: #fff;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 0 rgba(0, 0, 0, 0.2);
}

.nizi-water-park__opts-tab--link {
	margin-top: auto;
	background: #64748b;
	font-size: 0.72rem;
}

.nizi-water-park__opts-main {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
	padding: 8px 10px 10px;
	background: #454545;
	border-left: 1px solid #2f2f2f;
}

.nizi-water-park__opts-main--solo {
	border-left: 0;
}

.nizi-water-park__opts-main--status {
	overflow: hidden;
	padding: 8px 10px 6px;
	display: flex;
	flex-direction: column;
}

.nizi-water-park__status {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	flex: 1 1 auto;
}

.nizi-water-park__status-top {
	display: flex;
	align-items: stretch;
	gap: 10px;
	flex: 0 0 auto;
}

.nizi-water-park__status-portrait {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid #1e293b;
	background: #0f172a;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nizi-water-park__status-canvas {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nizi-water-park__status-meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	justify-content: center;
}

.nizi-water-park__status-name-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 8px;
	min-width: 0;
}

.nizi-water-park__status-name {
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #f8fafc;
	line-height: 1.2;
	min-width: 0;
}

.nizi-water-park__status-lv {
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 800;
	color: #93c5fd;
	letter-spacing: 0.02em;
}

.nizi-water-park__status-char {
	font-size: 0.68rem;
	font-weight: 700;
	color: #cbd5e1;
	opacity: 0.9;
}

.nizi-water-park__status-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 1px;
}

.nizi-water-park__status-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 6px;
	background: #0f172a;
	border: 1px solid #1e293b;
	color: #e2e8f0;
	font-size: 0.72rem;
	font-weight: 700;
}

.nizi-water-park__status-chip b {
	color: #fff;
	font-weight: 800;
}

.nizi-water-park__status-xp {
	margin-top: 1px;
}

.nizi-water-park__status-xp-lab {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	font-size: 0.68rem;
	font-weight: 700;
	color: #cbd5e1;
	margin-bottom: 2px;
}

.nizi-water-park__status-xp-lab b {
	color: #fdba74;
	font-weight: 800;
}

.nizi-water-park__status-xp-bar {
	height: 6px;
	border-radius: 999px;
	background: #9ca3af;
	overflow: hidden;
}

.nizi-water-park__status-xp-bar i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.nizi-water-park__status-stats,
.nizi-water-park__status-equip {
	flex: 0 0 auto;
}

.nizi-water-park__status-row {
	margin-bottom: 5px;
}

.nizi-water-park__status-stats .nizi-water-park__status-row:last-child,
.nizi-water-park__status-equip .nizi-water-park__status-row:last-child {
	margin-bottom: 0;
}

.nizi-water-park__status-control {
	display: flex;
	align-items: stretch;
	gap: 6px;
	min-width: 0;
}

.nizi-water-park__status-value {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	border: 1px solid #1e293b;
	border-radius: 6px;
	background: linear-gradient(180deg, #1e293b, #0f172a);
	color: #f8fafc;
	padding: 5px 9px;
	font-size: 0.8rem;
	font-weight: 800;
}

.nizi-water-park__status-plus {
	appearance: none;
	flex: 0 0 30px;
	width: 30px;
	border: 1px solid #1e40af;
	border-radius: 6px;
	background: #3b82f6;
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.nizi-water-park__status-plus:hover:not(:disabled) {
	filter: brightness(1.08);
}

.nizi-water-park__status-plus:disabled {
	opacity: 0.4;
	cursor: default;
	background: #64748b;
	border-color: #475569;
}

.nizi-water-park__settings-body--opts {
	padding: 0;
	overflow: visible;
}

.nizi-water-park__opts-row {
	display: grid;
	grid-template-columns: minmax(88px, 34%) 1fr;
	gap: 8px;
	align-items: center;
	margin: 0 0 7px;
}

.nizi-water-park__opts-label {
	margin: 0;
	font-weight: 700;
	color: #f8fafc;
	font-size: 0.78rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.nizi-water-park__opts-val {
	font-size: 0.78rem;
	font-weight: 800;
	color: #fdba74;
}

.nizi-water-park__opts-control {
	min-width: 0;
}

.nizi-water-park__opts-select:disabled {
	opacity: 0.72;
	cursor: not-allowed;
	color: #cbd5e1;
}

.nizi-water-park__opts-range {
	width: 100%;
	height: 1.4rem;
	cursor: pointer;
	accent-color: #111111;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}

.nizi-water-park__opts-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: #9ca3af;
}

.nizi-water-park__opts-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -6px;
	border-radius: 50%;
	background: #111111;
	border: 2px solid #f8fafc;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.nizi-water-park__opts-range::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: #9ca3af;
}

.nizi-water-park__opts-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #111111;
	border: 2px solid #f8fafc;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.nizi-water-park__opts-checks {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin: 4px 0 12px;
	width: 100%;
}

.nizi-water-park__opts-check {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
	font-weight: 700;
	color: #f8fafc;
	cursor: pointer;
	font-size: 0.86rem;
	text-align: left;
}

.nizi-water-park__opts-check-text {
	flex: 1 1 auto;
	text-align: left;
}

.nizi-water-park__opts-check input {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	margin: 0;
	accent-color: #f59e0b;
	cursor: pointer;
}

.nizi-water-park__opts-hint {
	margin: 8px 0 0;
	font-size: 0.72rem;
	line-height: 1.4;
	color: #cbd5e1;
	text-align: left;
}

.nizi-water-park__opts-keybinds {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nizi-water-park__opts-row--key {
	align-items: center;
}

.nizi-water-park__opts-keybtn {
	appearance: none;
	min-width: 7.5rem;
	padding: 7px 12px;
	border: 1px solid #4b5563;
	border-radius: 8px;
	background: #1f2937;
	color: #f8fafc;
	font-weight: 800;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	text-align: center;
}

.nizi-water-park__opts-keybtn:hover {
	background: #374151;
	border-color: #6b7280;
}

.nizi-water-park__opts-keybtn.is-listening {
	background: #92400e;
	border-color: #f59e0b;
	color: #fff7ed;
	animation: nwp-key-listen 1s ease-in-out infinite;
}

@keyframes nwp-key-listen {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.72; }
}

.nizi-water-park__opts-foot {
	flex: 0 0 auto;
	display: flex;
	gap: 8px;
	padding: 7px 9px 9px;
	background: #323232;
	border-top: 1px solid #252525;
}

.nizi-water-park__opts-btn {
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 8px 12px;
	font-weight: 800;
	font-size: 0.8rem;
	cursor: pointer;
}

.nizi-water-park__opts-btn--ghost {
	flex: 0 0 auto;
	background: #6b7280;
	color: #fff;
}

.nizi-water-park__opts-btn--ghost:hover {
	background: #4b5563;
}

.nizi-water-park__opts-btn--apply {
	flex: 1 1 auto;
	background: #374151;
	color: #fff;
	border: 1px solid #1f2937;
}

.nizi-water-park__opts-btn--apply:hover {
	background: #4b5563;
}

/* スマホ縦：カテゴリは上段タブ */
.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts {
	width: 100%;
	height: min(90%, 560px);
	max-height: 90%;
	border-radius: 10px;
	font-size: 0.8rem;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-body {
	flex-direction: column;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-side {
	flex: 0 0 auto;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 5px;
	padding: 6px;
	border-bottom: 1px solid #2f2f2f;
	border-right: 0;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-tab {
	flex: 1 1 auto;
	padding: 7px 6px;
	font-size: 0.72rem;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-tab--link {
	margin-top: 0;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-head-tab {
	padding: 5px 10px;
	font-size: 0.74rem;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-main {
	border-left: 0;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-main--status {
	overflow-y: auto;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__status-top {
	flex-direction: row;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__status-portrait {
	width: 56px;
	height: 56px;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__opts-row {
	grid-template-columns: 1fr;
	gap: 3px;
}

.nizi-water-park[data-window-size="phone"] .nizi-water-park__status-row {
	grid-template-columns: minmax(64px, 30%) 1fr;
	gap: 6px;
	align-items: center;
}

/* スマホ横：左右分割（左カテゴリ／右内容） */
.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-wrap {
	padding: 1.5% 2%;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts {
	width: min(96%, 720px);
	height: min(94%, 360px);
	max-height: 94%;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-body {
	flex-direction: row;
	min-height: 0;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-side {
	flex: 0 0 84px;
	flex-direction: column;
	flex-wrap: nowrap;
	align-content: stretch;
	gap: 5px;
	padding: 6px 5px;
	border-bottom: 0;
	border-right: 1px solid #2f2f2f;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-tab {
	flex: 0 0 auto;
	width: 100%;
	padding: 7px 4px;
	font-size: 0.7rem;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-main {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	border-left: 0;
	padding: 6px 8px 8px;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-row {
	grid-template-columns: minmax(72px, 32%) 1fr;
	gap: 6px;
	margin-bottom: 5px;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__status-row {
	grid-template-columns: minmax(64px, 28%) 1fr;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-head {
	padding: 5px 8px;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-foot {
	padding: 5px 8px 7px;
}

.nizi-water-park[data-window-size="phone"][data-orient="landscape"] .nizi-water-park__opts-btn {
	padding: 6px 10px;
	font-size: 0.74rem;
}

/* 試合参加待機 */
.nizi-water-park__match-wait-count {
	font-size: clamp(2.4rem, 8vw, 3.6rem);
	font-weight: 900;
	line-height: 1;
	margin: 10px 0 6px;
	color: #0ea5e9;
	letter-spacing: 0.04em;
}
.nizi-water-park__match-wait-count small {
	font-size: 0.45em;
	margin-left: 0.15em;
	font-weight: 800;
	color: #64748b;
}
.nizi-water-park__match-wait-players {
	margin: 12px 0 4px;
	padding: 10px 16px;
	border-radius: 10px;
	background: rgba(14, 165, 233, 0.12);
	border: 1px solid rgba(14, 165, 233, 0.35);
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
}
.nizi-water-park__match-wait-players strong {
	font-size: 1.35em;
	color: #0284c7;
	font-weight: 900;
}
.nizi-water-park__match-join-title {
	font-size: 1.15rem;
	margin: 0 0 8px;
}

