html {
	scroll-behavior: smooth;
	zoom: 1.2;
}

html,
h1,
h2,
h3,
h4,
p,
div,
span,
a,
td,
th,
button,
textarea,
small {
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

::selection {
	background: rgba(166, 175, 189, .3) !important;
	color: #222 !important;
}

.white {
	color: rgba(255, 255, 255) !important;
}

.uk-accordion-title {
	color: rgba(255, 255, 255) !important;
}

.bold {
	font-weight: 600;
}

.light {
	font-weight: 300;
}

.fullscreen {
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	text-align: left;
	color: rgba(255, 255, 255);
}

.hero {
	padding-top: 150px;
	padding-bottom: 20px;
}

.hero-block {
	margin-bottom: 32px;
}

.hero-block > span {
	display: block;
	line-height: 1.7;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-temp {
	color: rgba(255, 255, 255, 0.95);
	font-size: 285%;
	line-height: 1.2 !important;
	letter-spacing: -0.5px;
	margin-bottom: 8px;
}

.hero-sub {
	color: rgba(255, 255, 255, 0.9);
}

.hero-dim {
	color: rgba(255, 255, 255, 0.65);
}

.hero-prob {
	color: rgba(255, 255, 255, 0.92);
	font-size: 112%;
	margin-top: 6px;
}

.stock-row {
	max-width: 560px;
	margin-bottom: 18px;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.stock-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.stock-head > span {
	white-space: nowrap;
}

.stock-name {
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
}

.stock-price {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	font-variant-numeric: tabular-nums;
}

/* 오도미터 카운터: 각 자릿수가 세로로 굴러가는 효과 */
.odo {
	display: inline-flex;
	align-items: flex-end;
}

.odo-digit {
	display: block;
	height: 1.3em;
	line-height: 1.3em;
	overflow: hidden;
}

.odo-strip {
	display: block;
	transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
	will-change: transform;
}

.odo-strip > span {
	display: block;
	height: 1.3em;
	line-height: 1.3em;
	text-align: center;
}

.odo-sep {
	display: block;
	height: 1.3em;
	line-height: 1.3em;
}

.stock-price.flash-up {
	animation: price-flash-up 0.7s ease-out;
}

.stock-price.flash-down {
	animation: price-flash-down 0.7s ease-out;
}

@keyframes price-flash-up {
	0% {
		color: #ff8080;
		text-shadow: 0 0 12px rgba(255, 128, 128, 0.8);
	}

	100% {
		color: rgba(255, 255, 255, 0.95);
	}
}

@keyframes price-flash-down {
	0% {
		color: #80aaff;
		text-shadow: 0 0 12px rgba(128, 170, 255, 0.8);
	}

	100% {
		color: rgba(255, 255, 255, 0.95);
	}
}

.stock-rate {
	font-size: 86%;
	font-weight: 600;
}

.stock-target {
	margin-left: auto;
	font-size: 86%;
	color: rgba(255, 255, 255, 0.55);
}

.stock-bar {
	height: 6px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 3px;
	overflow: hidden;
	margin: 7px 0 5px;
}

.stock-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #67e8f9, #818cf8);
	border-radius: 3px;
	transition: width 0.6s ease;
}

.stock-remain {
	font-size: 88%;
	color: rgba(255, 255, 255, 0.65);
}

.region-wrap {
	display: block;
	margin-top: 10px;
}

.region-toggle {
	background: rgba(8, 14, 40, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 78%;
	font-weight: 600;
	padding: 4px 10px;
	cursor: pointer;
}

.region-toggle:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.region-chips {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: 8px;
	vertical-align: middle;
}

.region-chip {
	background: rgba(8, 14, 40, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 78%;
	font-weight: 600;
	padding: 4px 11px;
	cursor: pointer;
}

.region-chip:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.region-chip.active {
	background: rgba(255, 255, 255, 0.9);
	color: #0c1a4a;
	border-color: transparent;
}

.stock-add {
	max-width: 560px;
	margin: 2px 0 14px;
}

.stock-add-toggle,
#add-submit {
	background: rgba(8, 14, 40, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 85%;
	font-weight: 600;
	padding: 6px 14px;
	cursor: pointer;
}

.stock-add-toggle:hover,
#add-submit:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.stock-add-form {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.stock-add-form input {
	background: rgba(8, 14, 40, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: #fff;
	font-size: 85%;
	padding: 6px 12px;
	width: 190px;
	max-width: 45%;
}

.stock-add-form input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.stock-remove {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	font-size: 90%;
	padding: 0 2px;
	line-height: 1;
}

.stock-remove:hover {
	color: #ff9b9b;
}

.index-chips {
	display: flex;
	gap: 12px;
	max-width: 560px;
	margin: 4px 0 14px;
	flex-wrap: wrap;
}

.index-chip {
	flex: 1 1 140px;
	background: rgba(8, 14, 40, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	padding: 10px 14px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.index-name {
	display: block;
	font-size: 80%;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 2px;
}

.index-value {
	font-weight: 700;
	font-size: 118%;
	color: rgba(255, 255, 255, 0.95);
	font-variant-numeric: tabular-nums;
}

.index-rate {
	font-size: 86%;
	font-weight: 600;
	margin-left: 6px;
}

.run-track {
	position: relative;
	max-width: 560px;
	height: 36px;
	margin-top: 12px;
	border-bottom: 2px dashed rgba(255, 255, 255, 0.28);
	overflow: hidden;
}

.river-goal {
	position: absolute;
	right: 0;
	bottom: 4px;
	font-size: 92%;
	color: rgba(255, 255, 255, 0.75);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.runner {
	position: absolute;
	left: 0;
	bottom: 2px;
	font-size: 140%;
	animation: run-to-river 8s linear infinite;
	will-change: transform;
}

/* 스틱피겨 러너: 팔다리가 실제로 교차하는 런 사이클 (--step = 한 보폭 주기) */
.runner-svg {
	display: block;
	overflow: visible;
	filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

.rn-head {
	fill: #fff;
}

.rn-torso,
.rn-limb {
	stroke: #fff;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.rn-arm-b,
.rn-leg-b {
	stroke: rgba(255, 255, 255, 0.5);
}

.rn-limb,
.rn-bob {
	transform-box: view-box;
}

.rn-arm {
	transform-origin: 16.5px 11px;
}

.rn-leg {
	transform-origin: 13.5px 20px;
}

.rn-arm-a {
	animation: rn-swing-arm var(--step, 0.3s) ease-in-out infinite;
}

.rn-arm-b {
	animation: rn-swing-arm var(--step, 0.3s) ease-in-out infinite;
	animation-delay: calc(var(--step, 0.3s) / -2);
}

.rn-leg-a {
	animation: rn-swing-leg var(--step, 0.3s) ease-in-out infinite;
}

.rn-leg-b {
	animation: rn-swing-leg var(--step, 0.3s) ease-in-out infinite;
	animation-delay: calc(var(--step, 0.3s) / -2);
}

.rn-bob {
	animation: rn-bob calc(var(--step, 0.3s) / 2) ease-in-out infinite;
}

@keyframes rn-swing-leg {

	0%,
	100% {
		transform: rotate(42deg);
	}

	50% {
		transform: rotate(-38deg);
	}
}

@keyframes rn-swing-arm {

	0%,
	100% {
		transform: rotate(-45deg);
	}

	50% {
		transform: rotate(40deg);
	}
}

@keyframes rn-bob {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-1.5px);
	}
}

@keyframes run-to-river {
	0% {
		transform: translateX(0);
		opacity: 1;
	}

	88% {
		opacity: 1;
	}

	100% {
		transform: translateX(var(--run-distance, 460px));
		opacity: 0;
	}
}

.run-hint {
	display: block;
	font-size: 78%;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 4px;
}

@media (max-width: 640px) {
	.hero {
		padding-top: 100px;
	}

	.hero-temp {
		font-size: 215%;
	}
}

.comment-warn {
	color: rgba(255, 255, 255, 0.6);
	margin-top: -20px;
}

/* 댓글 스티커 (흰색 카드 안이라 라이트 톤) */
.sticker-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.sticker {
	background: #f4f4f6;
	border: 1px solid #e1e1e8;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 13px;
	color: #333;
	cursor: pointer;
}

.sticker:hover {
	background: #e6e6ee;
}

.comment-card {
	white-space: normal;
}

.comment-card h4 {
	margin-bottom: 0px;
}

.comment-card span {
	word-wrap: break-word;
}

td,
th {
	color: rgba(255, 255, 255, 0.8) !important;
}

.a-dark {
	color: rgba(0, 0, 0, 0.53) !important;
}

.a-dark:hover {
	color: rgba(0, 0, 0, 0.5) !important;
}

a {
	color: rgba(255, 255, 255) !important;
}

a:hover {
	color: rgba(255, 255, 255, 0.5) !important;
	text-decoration: none;
}

.gear {
	color: white;
	cursor: pointer;
	position: fixed !important;
	top: auto !important;
	bottom: 12px !important;
	left: 12px !important;
	z-index: 100;
	padding: 8px;
}

/* 댓글이 한강 위를 떠다니는 레이어 (화면 오른쪽 → 강물 흐르듯 왼쪽으로) */
#float-layer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.float-comment {
	position: absolute;
	left: 100%;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.78);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.6);
	animation: float-drift var(--dur, 18s) linear forwards;
	will-change: transform;
}

.float-bob {
	display: inline-block;
	animation: float-bob 3.2s ease-in-out infinite;
}

/* 방금 올라온 새 댓글: 따뜻한 빛으로 강조 */
.float-new {
	color: rgba(255, 236, 170, 0.95);
	font-size: 16px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 14px rgba(255, 220, 130, 0.45);
}

@keyframes float-drift {
	0% {
		transform: translateX(0);
		opacity: 0;
	}

	8% {
		opacity: 0.9;
	}

	78% {
		opacity: 0.9;
	}

	100% {
		transform: translateX(-58vw);
		opacity: 0;
	}
}

@keyframes float-bob {

	0%,
	100% {
		transform: translateY(0) rotate(-1.5deg);
	}

	50% {
		transform: translateY(-6px) rotate(1.5deg);
	}
}

@media (max-width: 640px) {
	.float-comment {
		font-size: 13px;
	}
}

.visitor-info {
	padding-top: 20px;
	font-size: 88%;
	color: rgba(255, 255, 255, 0.55);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.footer-copy {
	padding-top: 8px;
	padding-bottom: 20px;
	color: rgba(255, 255, 255, 0.6);
}

.cbs-alert {
	margin-bottom: 20px;
}

.bg-img {
	background-color: #05102e;
	background-image: linear-gradient(rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.38)),
		url("../img/background.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
}

.uk-accordion-title,
.footer-copy,
.comment-warn {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

#APHORISM {
	transition: opacity 0.6s ease;
}

.rate-up {
	color: #ff9b9b;
}

.rate-down {
	color: #9bb8ff;
}
