:root {
	color-scheme: dark;
	--page: #101311;
	--surface: #171b18;
	--surface-raised: #1d221f;
	--line: rgba(237, 239, 229, 0.11);
	--text: #f0f1e9;
	--muted: #929990;
	--lime: #d5f36a;
	--yellow: #f4c542;
	--blue: #5ca5ee;
	--red: #ef6b68;
	--gray: #a8b0ae;
	--green: #62c98b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	min-width: 320px;
	background:
		radial-gradient(ellipse at 77% 6%, rgba(95, 119, 63, 0.13), transparent 36rem),
		var(--page);
	color: var(--text);
	font-family: "DM Sans", "Noto Sans KR", sans-serif;
	-webkit-font-smoothing: antialiased;
}

button, select { font: inherit; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.site-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }

.topbar {
	height: 82px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
}

.brand, .top-link, .footer-brand { color: var(--text); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 700; letter-spacing: 1.4px; }
.brand-light { color: var(--lime); margin-left: 5px; }
.brand-mark { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-24deg); }
.brand-mark span { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; }
.brand-mark span:nth-child(2) { transform: translateY(-6px); }
.brand-mark span:nth-child(3) { transform: translateY(5px); background: #f1f0e8; }
.topbar-note { display: flex; align-items: center; gap: 9px; color: #aeb4ac; font-size: 12px; }
.live-dot, .status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(213, 243, 106, .55); }
.top-link { font-size: 12px; color: #c9cec3; transition: color .2s; }
.top-link:hover { color: var(--lime); }
.top-link span { padding-left: 5px; color: var(--lime); }

.hero {
	min-height: 390px;
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}
.hero-copy { z-index: 1; padding: 57px 0 66px; animation: rise-in .65s both; }
.eyebrow, .section-kicker { margin: 0; color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: 1.75px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 25px; height: 1px; background: var(--lime); }
.hero h1 { margin: 22px 0 14px; font-family: "Noto Sans KR", sans-serif; font-size: clamp(35px, 5vw, 52px); line-height: 1.32; letter-spacing: 0; font-weight: 700; }
.hero h1 span { color: var(--lime); }
.hero-description { margin: 0; color: #a9afa7; font-size: 13px; line-height: 1.9; }
.hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 23px; color: #858d84; font-size: 11px; }
.meta-icon { color: var(--lime); font-size: 15px; }
.hero-art { position: absolute; right: 7%; top: 50%; width: 315px; height: 315px; transform: translateY(-49%); display: grid; place-items: center; }
.hero-image { position: relative; z-index: 1; width: 174px; height: 174px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .42)); animation: float-in 1s .1s both; }
.art-orbit { position: absolute; border: 1px solid rgba(213, 243, 106, .13); border-radius: 50%; }
.orbit-one { width: 260px; height: 260px; transform: rotate(-25deg) scaleY(.72); }
.orbit-two { width: 215px; height: 215px; border-color: rgba(239, 241, 233, .08); transform: rotate(35deg) scaleY(.7); }
.art-spark { position: absolute; z-index: 2; color: var(--lime); }
.spark-one { top: 48px; right: 50px; font-size: 19px; }
.spark-two { bottom: 67px; left: 36px; color: #f3c953; font-size: 15px; }
.art-label { position: absolute; right: -5px; bottom: 22px; color: #747d73; font-size: 8px; line-height: 1.6; letter-spacing: 1.4px; text-align: right; }
.hero-index { position: absolute; right: 0; bottom: 21px; color: #737a72; font-size: 10px; letter-spacing: 1px; }
.hero-index span { padding: 0 5px; color: #414941; }
.mobile-break { display: none; }

.draw-section { padding: 44px 0 42px; border-bottom: 1px solid var(--line); }
.section-heading, .latest-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading h2, .latest-heading h2 { margin: 7px 0 0; font-family: "Noto Sans KR", sans-serif; font-size: 20px; line-height: 1.45; font-weight: 600; letter-spacing: 0; }
.section-kicker { color: #7f8980; font-size: 9px; letter-spacing: 1.6px; }
.draw-controls { display: flex; align-items: center; gap: 10px; }
.draw-controls label { color: #8c958c; font-size: 11px; }
.draw-controls select { height: 40px; padding: 0 29px 0 12px; appearance: none; color: #e1e5d9; border: 1px solid var(--line); border-radius: 3px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23929990' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center; font-size: 11px; cursor: pointer; }
.draw-button { height: 40px; padding: 0 17px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 3px; background: var(--lime); color: #1b2114; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.draw-button:hover { background: #e1ff7c; transform: translateY(-1px); }
.draw-button:disabled { opacity: .7; cursor: wait; transform: none; }
.button-star { font-size: 14px; }
.ticket-list { display: grid; gap: 10px; margin-top: 25px; }
.ticket-row { min-height: 78px; display: flex; align-items: center; gap: 18px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(105deg, rgba(255,255,255,.027), rgba(255,255,255,.008)); animation: row-in .45s both; }
.ticket-index { width: 55px; flex: 0 0 55px; color: #798178; font-size: 10px; letter-spacing: .8px; }
.ticket-balls { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(7px, 1.7vw, 15px); }
.lotto-ball { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 50%; color: #131613; font-size: 13px; font-weight: 700; box-shadow: inset 0 -3px 6px rgba(0,0,0,.16), 0 4px 10px rgba(0,0,0,.18); animation: ball-in .48s cubic-bezier(.16, .9, .28, 1.25) both; }
.ball-yellow { background: var(--yellow); }
.ball-blue { background: var(--blue); color: #10171e; }
.ball-red { background: var(--red); color: #1d1111; }
.ball-gray { background: var(--gray); color: #171a19; }
.ball-green { background: var(--green); color: #101b13; }
.draw-footer { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.draw-message { margin: 0; color: #737c73; font-size: 11px; }
.text-button { padding: 7px 0 7px 12px; border: 0; background: transparent; color: #b2b9ae; font-size: 11px; cursor: pointer; }
.text-button span { margin-right: 5px; color: var(--lime); font-size: 14px; }
.text-button:disabled { color: #555c55; cursor: not-allowed; }
.text-button:disabled span { color: #555c55; }

.latest-section { padding: 38px 0 46px; }
.latest-heading { align-items: center; }
.data-status { display: inline-flex; align-items: center; gap: 8px; color: #899187; font-size: 10px; }
.latest-content { margin-top: 20px; }
.latest-card { display: grid; grid-template-columns: 178px 1fr auto; align-items: center; gap: 23px; min-height: 98px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); animation: rise-in .45s both; }
.round-label { color: #f0f1e9; font-size: 13px; font-weight: 600; }
.round-date { margin-top: 6px; color: #7f887e; font-size: 10px; }
.latest-balls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.latest-balls .lotto-ball { width: 34px; height: 34px; flex-basis: 34px; font-size: 11px; animation: none; }
.bonus-group { display: flex; align-items: center; gap: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
.bonus-label { color: #747d74; font-size: 10px; }
.bonus-ball { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid rgba(213,243,106,.38); border-radius: 50%; color: var(--lime); font-size: 11px; font-weight: 700; }
.latest-placeholder, .latest-error { padding: 24px; border: 1px solid var(--line); border-radius: 4px; color: #879087; font-size: 12px; }
.site-footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: #717a71; }
.footer-brand { font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.footer-brand span { color: var(--lime); padding: 0 4px; }
.site-footer p { margin: 0; font-size: 10px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ball-in { from { opacity: 0; transform: translateY(9px) scale(.72); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 700px) {
	.site-shell { width: min(100% - 36px, 540px); }
	.topbar { height: 68px; }
	.topbar-note { display: none; }
	.hero { min-height: 350px; align-items: flex-start; }
	.hero-copy { padding: 49px 0 42px; }
	.hero h1 { font-size: clamp(34px, 9vw, 44px); }
	.hero-description { font-size: 12px; }
	.mobile-break { display: block; }
	.hero-art { right: -67px; top: auto; bottom: -47px; width: 220px; height: 220px; transform: none; opacity: .55; }
	.hero-image { width: 118px; height: 118px; }
	.orbit-one { width: 190px; height: 190px; }
	.orbit-two { width: 160px; height: 160px; }
	.spark-one { top: 30px; right: 36px; }
	.spark-two { bottom: 44px; left: 20px; }
	.art-label { display: none; }
	.hero-index { bottom: 15px; }
	.draw-section { padding: 34px 0 30px; }
	.section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
	.draw-controls { width: 100%; }
	.draw-controls label { margin-right: auto; }
	.draw-button { padding: 0 13px; }
	.ticket-row { min-height: 70px; gap: 10px; padding: 12px; }
	.ticket-index { width: 44px; flex-basis: 44px; font-size: 9px; }
	.ticket-balls { gap: 7px; }
	.lotto-ball { width: clamp(33px, 9vw, 38px); height: clamp(33px, 9vw, 38px); flex-basis: clamp(33px, 9vw, 38px); font-size: 11px; }
	.latest-section { padding: 31px 0 35px; }
	.section-heading h2, .latest-heading h2 { font-size: 18px; }
	.latest-card { grid-template-columns: 1fr auto; gap: 15px 10px; padding: 16px; }
	.latest-balls { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
	.latest-balls .lotto-ball, .bonus-ball { width: 32px; height: 32px; flex-basis: 32px; }
	.bonus-group { gap: 7px; padding-left: 11px; }
	.site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 15px 0; }
}

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