@import url("https://cdn.dnkdhed372.com/common/webfonts/font-Paperlogy/fonts.css");
@import url("https://cdn.dnkdhed372.com/common/webfonts/font-PuradakGothic/fonts.css");
@import url("https://cdn.dnkdhed372.com/common/webfonts/font-SBAggro/fonts.css");

:root {
	--font-body: "Paperlogy", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	--font-accent: "PuradakGothic", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	--font-heading: "SBAggro", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	--fw-heading: 600;

	--fs-base: clamp(13px, 1.4vw, 18px);
	--fs-title: clamp(40px, 6vw, 80px);
	--fs-section: clamp(18px, 3vw, 26px);
	--fs-label: clamp(16px, 1.6vw, 24px);
	--fs-sm: 0.85em;
	--fs-note: 0.85em;
	--fs-footer: clamp(16px, 1.5vw, 24px);

	--popup-w: 842px;
	--popup-pad: 16px;
	--box-gap: 16px;
	--box-radius: 14px;
	--box-border: 2px;
	--pad-top: 30%;
	--pad-x: clamp(10px, 1.5vw, 40px);
	--pad-bottom: clamp(30px, 3vw, 60px);

	--label-w: 22%;
	--row-gap: 10px;
	--row-pad-y: clamp(8px, 1vw, 16px);
	--row-pad-x: clamp(8px, 1vw, 16px);
	--section-gap: 30px;
	--title-gap: 12px;
	--box-pad-y: clamp(8px, 1vw, 24px);
	--box-pad-x: clamp(12px, 1vw, 16px);
	--p-gap: 19px;
	--inner-radius: 10px;

	--popup-bg: #05070d;
	--bg-color: #020611;
	--text: #fff;
	--text-sub: rgba(255, 255, 255, 0.85);
	--box-bg: rgba(10, 14, 24, 0.82);
	--box-line: rgba(255, 255, 255, 0.08);
	--row-bg-from: rgba(10, 14, 24, 0.9);
	--row-bg-to: rgba(10, 14, 24, 0.72);
	--row-tint: 16%;
	--title-grad-sub: linear-gradient(180deg, #fff 0%, #b9c0cc 100%);

	--theme: #ff3b30;
	--theme-light: #ffb347;
	--theme-dark: #8f0f08;
	--theme-glow: rgba(255, 59, 48, 0.55);
	--label-text: #ffe9a8;
	--bg-image: url("../img/baseball-background.webp");
}

.popup__inner--baseball {
	--theme: #ff4c42;
	--theme-light: #ffb347;
	--theme-dark: #8f0f08;
	--theme-glow: rgba(255, 59, 48, 0.55);
	--label-text: #ffe9a8;
	--bg-image: url("../img/baseball-background.webp");
}

.popup__inner--football {
	--theme: #49a7ff;
	--theme-light: #b8e4ff;
	--theme-dark: #0f4fb3;
	--theme-glow: rgba(58, 160, 255, 0.55);
	--label-text: #e8f5ff;
	--bg-image: url("../img/football-background.webp");
}

.popup__inner--basketball {
	--theme: #ff993c;
	--theme-light: #ffd29a;
	--theme-dark: #a84b00;
	--theme-glow: rgba(255, 138, 31, 0.55);
	--label-text: #fff0df;
	--bg-image: url("../img/basketball-background.webp");
}

.popup__inner--ice-hockey {
	--theme: #54d2ff;
	--theme-light: #c4f0ff;
	--theme-dark: #0b7aa8;
	--theme-glow: rgba(79, 209, 255, 0.5);
	--label-text: #eaf9ff;
	--bg-image: url("../img/ice-hockey-background.webp");
}

.popup__inner--volleyball {
	--theme: #ffb020;
	--theme-light: #ffe08a;
	--theme-dark: #a86400;
	--theme-glow: rgba(255, 176, 32, 0.5);
	--label-text: #fff3cf;
	--bg-image: url("../img/volleyball-background.webp");
}

.popup__inner--tennis {
	--theme: #cbff4c;
	--theme-light: #efffb0;
	--theme-dark: #6f9a0a;
	--theme-glow: rgba(198, 255, 61, 0.45);
	--label-text: #ffffff;
	--bg-image: url("../img/tennis-background.webp");
}

.popup__inner--badminton {
	--theme: #2ee6a6;
	--theme-light: #b5ffe3;
	--theme-dark: #0b8f65;
	--theme-glow: rgba(46, 230, 166, 0.5);
	--label-text: #e6fff6;
	--bg-image: url("../img/badminton-background.webp");
}

.popup__inner--table-tennis {
	--theme: #ff6262;
	--theme-light: #ffc2b8;
	--theme-dark: #a31616;
	--theme-glow: rgba(255, 90, 90, 0.5);
	--label-text: #fff0ec;
	--bg-image: url("../img/table-tennis-background.webp");
}

.popup__inner--american-football {
	--theme: #4cd964;
	--theme-light: #c3ffd0;
	--theme-dark: #1b7a33;
	--theme-glow: rgba(76, 217, 100, 0.5);
	--label-text: #eafff0;
	--bg-image: url("../img/american-football-background.webp");
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

.popup :where(p, h2, h3, dl, dd, ul) {
	margin: 0;
}

.popup {
	display: flex;
	flex-direction: column;
	gap: var(--box-gap);
	width: var(--popup-w);
	max-width: 100%;
	max-height: 100vh;
	max-height: 100dvh;
	margin: 0 auto;
	padding: var(--popup-pad);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background: var(--popup-bg);
	container: popup / inline-size;
	-webkit-text-size-adjust: 100%;
}

.popup__inner {
	--point: var(--theme);
	--title-grad-point: linear-gradient(180deg, var(--theme-light) 0%, var(--theme) 55%, var(--theme-dark) 100%);
	--label-bg: linear-gradient(180deg, var(--theme) 0%, var(--theme-dark) 100%);
	flex: none;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	color: var(--text);
	word-break: keep-all;
	padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
	border: var(--box-border) solid var(--theme);
	border-radius: var(--box-radius);
	background: var(--bg-color) var(--bg-image) no-repeat center top / 100% auto;
	box-shadow:
		0 0 12px var(--theme-glow),
		0 6px 18px rgba(0, 0, 0, 0.6),
		inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hl {
	font-style: normal;
	color: var(--point);
}

.popup small {
	font-size: var(--fs-sm);
	color: var(--text-sub);
}

.popup__title {
	margin-bottom: 0.25em;
	font-family: var(--font-heading);
	font-size: var(--fs-title);
	font-weight: var(--fw-heading);
	line-height: 1.1;
	text-align: center;
	letter-spacing: -0.02em;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}

.popup__title .hl,
.popup__title .sub {
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.popup__title .hl {
	background-image: var(--title-grad-point);
	filter: drop-shadow(1px 1px 2px #000000);
}

.popup__title .sub {
	background-image: var(--title-grad-sub);
}

.rule-list {
	display: grid;
	gap: var(--row-gap);
}

.rule-list__row {
	display: grid;
	grid-template-columns: var(--label-w) 1fr;
	align-items: stretch;
	border: 1px solid var(--box-line);
	border-radius: 4px;
	background: linear-gradient(90deg, var(--row-bg-from) 0%, var(--row-bg-to) 100%);
	overflow: hidden;
}

@supports (background: color-mix(in srgb, red 10%, blue)) {
	.rule-list__row {
		background: linear-gradient(90deg, color-mix(in srgb, var(--theme) var(--row-tint), var(--row-bg-from)) 0%, var(--row-bg-to) 100%);
	}
}

.rule-list__row--wide {
	--label-w: 40%;
}

.rule-list dt {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--row-pad-y) 8px;
	background: var(--label-bg);
	font-family: var(--font-accent);
	font-size: var(--fs-label);
	color: var(--label-text);
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.rule-list dd {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--row-pad-y) var(--row-pad-x);
	line-height: 1.45;
	text-align: center;
}

.rule-section + .rule-section {
	margin-top: var(--section-gap);
}

.rule-section > * + * {
	margin-top: var(--row-gap);
}

.rule-section > .rule-section__title + * {
	margin-top: var(--title-gap);
}

.rule-section__title {
	font-family: var(--font-heading);
	font-size: var(--fs-section);
	font-weight: var(--fw-heading);
	line-height: 1.15;
	text-align: center;
}

.rule-section__box {
	padding: var(--box-pad-y) var(--box-pad-x);
	border-radius: var(--inner-radius);
	background: var(--box-bg);
	line-height: 1.35;
	text-align: center;
}

.rule-section__box p + p {
	margin-top: var(--p-gap);
}

.rule-section__box .note {
	font-size: var(--fs-note);
	line-height: 1.45;
	color: var(--text-sub);
}

.rule-bullets {
	padding: 0;
	list-style: none;
	text-align: left;
}

.rule-bullets li {
	position: relative;
	padding-left: 1.1em;
	line-height: 1.45;
}

.rule-bullets li::before {
	content: "-";
	position: absolute;
	left: 0.15em;
}

.rule-bullets li + li {
	margin-top: 10px;
}

.rule-footer {
	margin: var(--section-gap) 0 0;
	font-family: var(--font-accent);
	font-size: var(--fs-footer);
	line-height: 1.4;
	text-align: center;
}

.rule-section + .rule-footer {
	margin-top: 20px;
}

@container popup (max-width: 600px) {
	.popup__inner {
		--fs-base: 14px;
		--row-pad-y: 10px;
		--pad-x: 12px;
	}
}

@container popup (width <= 420px) {
	.popup__inner {
		--fs-base: 13px;
		--label-w: 26%;
	}

	.rule-list br,
	.rule-section__box p:not(.note) br {
		display: none;
	}
}
