@charset "utf-8";

/* Unified, exchange ranking, alert, and settings modals.
   Split from slotmaru-polish-ui.css lines 1199-1599; preserve load order in head.sub.php. */

html:has(body.modal-open) {
	overflow: hidden !important;
	scrollbar-gutter: stable;
}

body.modal-open {
	overflow: hidden !important;
	padding-right: 0 !important;
}

.slotmaru-unified-modal .modal-dialog {
	max-width: 520px;
}

.slotmaru-unified-modal .modal-content {
	overflow: hidden;
	border: 1px solid rgba(246, 183, 60, .42);
	border-radius: 18px;
	background: var(--slotmaru-panel);
	box-shadow: 0 24px 58px rgba(7, 24, 39, .28);
}

.slotmaru-unified-modal__head {
	position: relative;
	padding: 24px 64px 20px 24px;
	border-bottom: 1px solid rgba(246, 183, 60, .28);
	background: linear-gradient(135deg, var(--slotmaru-navy), #0b3036);
	color: #fff;
}

.slotmaru-unified-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	opacity: .9;
	text-shadow: none;
}

.slotmaru-unified-modal__close:hover,
.slotmaru-unified-modal__close:focus {
	border-color: rgba(246, 183, 60, .72);
	background: rgba(246, 183, 60, .14);
	color: var(--slotmaru-gold);
	opacity: 1;
}

.slotmaru-unified-modal__title {
	margin: 0;
	color: #fff;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0;
}

.slotmaru-unified-modal__copy {
	margin: 8px 0 0;
	color: rgba(221, 235, 236, .84);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.65;
}

.slotmaru-unified-modal__body {
	padding: 24px;
	background: linear-gradient(180deg, #fff, #f8fafb);
}

.slotmaru-unified-modal__footer {
	padding: 18px 24px 22px;
	border-top: 1px solid rgba(223, 230, 239, .9);
	background: #f8fafb;
}

.exchange-ranking-modal .modal-dialog {
	max-width: 560px;
}

@media (min-width: 768px) {
	.exchange-ranking-modal.modal {
		overflow-y: hidden;
	}

	.exchange-ranking-modal .modal-dialog {
		margin-top: 16px;
		margin-bottom: 16px;
	}

	.exchange-ranking-modal .modal-content {
		max-height: calc(100vh - 32px);
	}

	.exchange-ranking-modal .slotmaru-unified-modal__body {
		overflow-y: auto;
	}
}

.exchange-ranking-modal__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.exchange-ranking-modal__crown {
	width: 46px;
	height: 34px;
	object-fit: contain;
}

.exchange-ranking-modal__summary {
	margin-top: 16px;
	padding: 12px 16px;
	width: calc(100% + 40px);
	box-sizing: border-box;
	border: 1px solid rgba(246, 183, 60, .34);
	border-radius: 12px;
	background: rgba(255, 248, 232, .14);
	text-align: center;
}

.exchange-ranking-modal__summary-label {
	display: block;
	color: rgba(221, 235, 236, .78);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.exchange-ranking-modal__summary-value {
	display: block;
	margin-top: 4px;
	color: var(--slotmaru-gold);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
}

.exchange-ranking-modal__toolbar {
	display: flex;
	gap: 10px;
	align-items: stretch;
	margin-bottom: 14px;
}

.exchange-ranking-modal__filter,
.exchange-ranking-modal__search {
	height: 44px;
	border: 1px solid rgba(246, 183, 60, .34);
	border-radius: 10px;
	background: #fff;
	color: var(--slotmaru-text);
	box-shadow: none;
}

.exchange-ranking-modal__filter {
	min-width: 132px;
	font-size: 14px;
	font-weight: 700;
}

.exchange-ranking-modal__search-group {
	flex: 1 1 auto;
}

.exchange-ranking-modal__search {
	border-right: 0;
	font-size: 14px;
	font-weight: 700;
}

.exchange-ranking-modal__search-button {
	min-width: 48px;
	border: 1px solid rgba(15, 140, 124, .3);
	border-radius: 0 10px 10px 0;
	background: linear-gradient(180deg, var(--slotmaru-teal), var(--slotmaru-teal-2));
	color: #fff;
}

.exchange-ranking-modal__search-button:hover,
.exchange-ranking-modal__search-button:focus {
	border-color: var(--slotmaru-gold-2);
	background: linear-gradient(180deg, #f7dc8b 0%, #d6ad4b 100%);
	color: var(--slotmaru-navy);
	box-shadow: none;
}

.exchange-ranking-modal__table-wrap {
	overflow: hidden;
	border: 1px solid rgba(223, 230, 239, .9);
	border-radius: 12px;
	background: #fff;
}

.exchange-ranking-modal__table {
	margin-bottom: 0;
}

.exchange-ranking-modal__table thead th {
	border: 0 !important;
	background: #eef3f6 !important;
	color: var(--slotmaru-navy-2) !important;
	font-size: 13px;
	font-weight: 900;
	padding: 11px 10px;
	text-align: center;
}

.exchange-ranking-modal__table tbody td {
	border-top: 1px solid #edf1f5 !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 0 !important;
	background: #fff;
	color: #334155;
	font-size: 14px;
	font-weight: 700;
	padding: 11px 10px;
	text-align: center;
	vertical-align: middle;
}

.exchange-ranking-modal__empty {
	color: var(--slotmaru-muted) !important;
}

.exchange-ranking-modal__footnotes {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.exchange-ranking-modal__footnotes li {
	color: var(--slotmaru-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.7;
}

.exchange-ranking-modal__footnotes li::before {
	content: "•";
	margin-right: 6px;
	color: var(--slotmaru-gold-deep);
}

.exchange-ranking-modal .member-visual {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	vertical-align: middle;
}

.exchange-ranking-modal .member-visual__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
}

.exchange-ranking-modal .member-visual__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.slotmaru-inline-alert-modal .modal-dialog {
	max-width: 470px;
}

.slotmaru-inline-alert-modal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	margin: 0 auto 16px;
	border: 2px solid rgba(246, 183, 60, .42);
	border-radius: 50%;
	background: rgba(255, 248, 232, .14);
	color: var(--slotmaru-gold);
	font-size: 30px;
}

.slotmaru-inline-alert-modal .slotmaru-unified-modal__head {
	padding-left: 64px;
	padding-right: 64px;
	text-align: center;
}

.slotmaru-inline-alert-modal .slotmaru-unified-modal__title {
	font-size: 28px;
}

.slotmaru-inline-alert-modal__actions {
	display: flex;
	justify-content: center;
}

.slotmaru-inline-alert-modal__button {
	min-width: 132px;
	min-height: 46px;
	border: 1px solid rgba(15, 140, 124, .3);
	border-radius: 10px;
	background: linear-gradient(180deg, var(--slotmaru-teal), var(--slotmaru-teal-2));
	color: #fff;
	font-size: 15px;
	font-weight: 900;
}

.slotmaru-inline-alert-modal__button:hover,
.slotmaru-inline-alert-modal__button:focus {
	border-color: var(--slotmaru-gold-2);
	background: linear-gradient(180deg, #f7dc8b 0%, #d6ad4b 100%);
	color: var(--slotmaru-navy);
	box-shadow: none;
}

.slotmaru-settings-modal__form {
	display: grid;
	gap: 16px;
}

.slotmaru-settings-modal__field label {
	display: block;
	margin-bottom: 6px;
	color: var(--slotmaru-navy);
	font-size: 13px;
	font-weight: 900;
}

.slotmaru-settings-modal__field .frm_input {
	width: 100%;
	height: 46px;
	border: 1px solid rgba(246, 183, 60, .34);
	border-radius: 10px;
	background: #fff;
	padding: 0 14px;
}

.slotmaru-settings-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 4px;
}

.slotmaru-settings-modal__actions .btn {
	min-width: 110px;
	min-height: 44px;
	font-weight: 900;
}

.slotmaru-settings-modal__actions .btn-secondary {
	border-color: rgba(38, 60, 84, .24);
	background: #eef3f6;
	color: var(--slotmaru-navy);
}

.slotmaru-settings-modal__actions .btn-secondary:hover,
.slotmaru-settings-modal__actions .btn-secondary:focus {
	background: #dfe7ee;
	color: var(--slotmaru-navy);
}

@media (max-width: 575.98px) {
	.slotmaru-unified-modal.modal {
		overflow-y: hidden;
		overscroll-behavior: contain;
	}

	.slotmaru-unified-modal .modal-dialog {
		display: flex;
		align-items: center;
		width: min(calc(100vw - 44px), 360px);
		max-width: min(calc(100vw - 44px), 360px);
		min-height: 100dvh;
		margin: 0 auto;
	}

	.slotmaru-unified-modal__head {
		padding: 14px 48px 12px 14px;
	}

	.slotmaru-inline-alert-modal .slotmaru-unified-modal__head {
		padding-left: 48px;
		padding-right: 48px;
	}

	.slotmaru-unified-modal__close {
		top: 10px;
		right: 10px;
		width: 32px;
		height: 32px;
		font-size: 26px;
	}

	.slotmaru-unified-modal__title {
		font-size: 22px;
	}

	.slotmaru-unified-modal__copy {
		margin-top: 5px;
		font-size: 12px;
		line-height: 1.45;
	}

	.slotmaru-unified-modal__body,
	.slotmaru-unified-modal__footer {
		padding: 14px;
	}

	.exchange-ranking-modal .modal-dialog {
		width: min(calc(100vw - 56px), 348px);
		max-width: min(calc(100vw - 56px), 348px);
	}

	.exchange-ranking-modal .modal-content {
		max-height: calc(100dvh - 16px);
	}

	.exchange-ranking-modal .slotmaru-unified-modal__head {
		padding: 13px 14px 10px;
	}

	.exchange-ranking-modal .slotmaru-unified-modal__body {
		overflow-y: visible;
		padding: 10px 12px 9px;
	}

	.exchange-ranking-modal .slotmaru-unified-modal__title {
		font-size: 21px;
		line-height: 1.15;
	}

	.exchange-ranking-modal__title-row {
		gap: 7px;
	}

	.exchange-ranking-modal__crown {
		width: 34px;
		height: 25px;
	}

	.exchange-ranking-modal__summary {
		width: 100%;
		margin-top: 8px;
		padding: 7px 10px;
		border-radius: 10px;
	}

	.exchange-ranking-modal__summary-label {
		font-size: 10px;
	}

	.exchange-ranking-modal__summary-value {
		margin-top: 2px;
		font-size: 21px;
	}

	.exchange-ranking-modal__toolbar {
		flex-direction: column;
		gap: 6px;
		margin-bottom: 8px;
	}

	.exchange-ranking-modal__filter,
	.exchange-ranking-modal__search {
		height: 38px;
		font-size: 13px;
	}

	.exchange-ranking-modal__filter {
		width: 100%;
		min-width: 0;
	}

	.exchange-ranking-modal__search-button {
		min-width: 42px;
	}

	.exchange-ranking-modal__table-wrap {
		border-radius: 10px;
	}

	.exchange-ranking-modal__table thead th {
		padding: 7px 6px;
		font-size: 12px;
	}

	.exchange-ranking-modal__table tbody td {
		padding: 7px 6px;
		font-size: 12.5px;
	}

	.exchange-ranking-modal .member-visual {
		gap: 4px;
	}

	.exchange-ranking-modal .member-visual__icon {
		width: 20px;
		height: 20px;
		flex-basis: 20px;
	}

	.exchange-ranking-modal__footnotes {
		margin-top: 7px;
	}

	.exchange-ranking-modal__footnotes li {
		font-size: 11px;
		line-height: 1.35;
	}

	.slotmaru-settings-modal__actions {
		flex-direction: column-reverse;
	}

	.slotmaru-settings-modal__actions .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
