        :root {
            --bg: #f7f0e8;
            --paper: #fffdf8;
            --text: #192328;
            --muted: #66727d;
            --subtle: #8b92a1;
            --line: #e9dcca;
            --red: #d93b3b;
            --red-dark: #a62425;
            --red-soft: #ffecef;
            --gold: #f7b731;
            --green: #3ca66a;
            --blue: #4e8dff;
            --shadow: rgba(37, 33, 28, 0.12);
            --card-bg: linear-gradient(180deg, #ffffff, #fffaf6);
            --header-bg: rgba(25, 35, 40, 0.92);
            --footer-bg: #192328;
            --bg-radial-1: rgba(247,183,49,0.08);
            --bg-radial-2: rgba(217,59,59,0.08);
        }

        [data-theme="dark"] {
            --bg: #0d1318;
            --paper: #161f26;
            --text: #f0f4f8;
            --muted: #96a5b2;
            --subtle: #6b7a86;
            --line: #24323c;
            --red: #ff5757;
            --red-dark: #e03838;
            --red-soft: rgba(255, 87, 87, 0.15);
            --gold: #f7b731;
            --green: #3ecc7e;
            --blue: #5496ff;
            --shadow: rgba(0, 0, 0, 0.45);
            --card-bg: linear-gradient(180deg, #1b262f, #141c22);
            --header-bg: rgba(13, 19, 24, 0.95);
            --footer-bg: #090e12;
            --bg-radial-1: rgba(247,183,49,0.04);
            --bg-radial-2: rgba(255,87,87,0.05);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at 70% 10%, var(--bg-radial-1), transparent 15%),
                radial-gradient(circle at 20% 80%, var(--bg-radial-2), transparent 16%),
                var(--bg);
            line-height: 1.6;
            transition: background 0.3s ease, color 0.3s ease;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .site-header {
            position: sticky;
            top: 0;
            background: var(--header-bg);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            z-index: 10;
            transition: background 0.3s ease;
        }

        .nav {
            max-width: 1180px;
            margin: 0 auto;
            height: 76px;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--paper);
            font-size: 24px;
            font-weight: 800;
            letter-spacing: -0.03em;
        }

        .brand-mark {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--red);
            color: white;
            font-size: 18px;
            font-weight: 900;
            box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
        }

        .nav-links {
            display: flex;
            gap: 30px;
            color: var(--paper);
            font-size: 14px;
            font-weight: 700;
        }

        .nav-links a {
            position: relative;
            color: rgba(255,255,255,0.82);
        }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 100%;
            height: 2px;
            border-radius: 10px;
            background: var(--gold);
            transform: scaleX(0);
            transition: transform 0.25s ease;
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            transform: scaleX(1);
        }

        .nav-links a.active,
        .nav-links a:hover {
            color: white;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .theme-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #ffffff;
            border-radius: 999px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
            backdrop-filter: blur(8px);
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.22);
            transform: translateY(-1px);
        }

        .theme-toggle:active {
            transform: translateY(0);
        }

        .theme-icon {
            font-size: 14px;
            line-height: 1;
        }

        .theme-label {
            font-size: 12px;
            font-weight: 800;
            letter-spacing: -0.01em;
        }

        .login {
            border: 1px solid rgba(255,255,255,0.8);
            background: transparent;
            color: white;
            border-radius: 999px;
            padding: 10px 22px;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .login:hover {
            background: white;
            color: var(--text);
        }

        .login-status {
            display: inline-block;
            margin-left: 8px;
            font-size: 12px;
            font-weight: 700;
            min-height: 18px;
        }

        .main {
            max-width: 1180px;
            margin: 0 auto;
            padding: 30px 24px 80px;
        }

        .hero {
            display: grid;
            grid-template-columns: 1.15fr 0.85fr;
            gap: 24px;
            align-items: center;
            min-height: 420px;
            padding: 34px 0;
        }

        .hero-copy {
            background: var(--paper);
            border: 1px solid var(--line);
            border-radius: 28px;
            padding: 40px;
            box-shadow: 0 20px 60px var(--shadow);
        }

        .section-label {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            font-weight: 800;
            color: var(--red);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            background: var(--red-soft);
            padding: 8px 14px;
            border-radius: 999px;
        }

        .section-label::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--red);
        }

        .hero-copy h1 {
            margin-top: 24px;
            font-size: clamp(54px, 5vw, 68px);
            line-height: 1.05;
            color: var(--text);
            font-weight: 900;
            letter-spacing: -0.045em;
        }

        .hero-copy h1 span {
            color: var(--red);
        }

        .hero-copy .subline {
            max-width: 560px;
            margin-top: 22px;
            color: var(--muted);
            font-size: 16px;
            line-height: 1.8;
        }

        .hero-actions {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .btn {
            border: none;
            border-radius: 999px;
            padding: 14px 28px;
            font-size: 14px;
            font-weight: 900;
            letter-spacing: 0.03em;
            cursor: pointer;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px var(--shadow);
        }

        .btn-primary {
            background: var(--red);
            color: white;
        }

        .btn-secondary {
            background: var(--paper);
            color: var(--text);
            border: 1px solid var(--line);
        }

        .hero-meta {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-top: 30px;
            color: var(--subtle);
            font-size: 12px;
            font-weight: 800;
            flex-wrap: wrap;
        }

        .hero-meta .divider {
            color: var(--line);
        }

        .hero-panel {
            background: linear-gradient(160deg, #192328, #2a3c42);
            border-radius: 28px;
            color: var(--paper);
            padding: 34px 32px;
            box-shadow: 0 24px 60px var(--shadow);
            border: 1px solid rgba(255,255,255,0.08);
            position: relative;
            overflow: hidden;
        }

        .hero-panel::before,
        .hero-panel::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            filter: blur(50px);
        }

        .hero-panel::before {
            width: 140px;
            height: 140px;
            background: rgba(247,183,49,0.44);
            left: -50px;
            top: -40px;
        }

        .hero-panel::after {
            width: 100px;
            height: 100px;
            background: rgba(217,59,59,0.3);
            right: -30px;
            bottom: -20px;
        }

        .panel-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            position: relative;
            z-index: 2;
        }

        .panel-head .title {
            color: rgba(255,255,255,0.8);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .panel-head .chip {
            background: var(--gold);
            color: var(--text);
            font-size: 11px;
            font-weight: 900;
            padding: 8px 14px;
            border-radius: 999px;
        }

        .jackpot {
            margin-top: 36px;
            position: relative;
            z-index: 2;
        }

        .jackpot .label {
            color: rgba(255,255,255,0.78);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .jackpot .amount {
            margin-top: 16px;
            font-size: clamp(40px, 3vw, 56px);
            font-weight: 900;
            color: white;
            white-space: nowrap;
        }

        .panel-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(120px, 1fr));
            gap: 14px;
            margin-top: 30px;
            position: relative;
            z-index: 2;
        }

        .panel-grid .grid-card {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 18px;
            padding: 14px;
        }

        .grid-card .mini-label {
            font-size: 11px;
            color: rgba(255,255,255,0.62);
            font-weight: 700;
        }

        .grid-card .mini-value {
            margin-top: 10px;
            color: white;
            font-size: 23px;
            font-weight: 900;
        }

        .recommend-section {
            margin-top: 12px;
            background: var(--paper);
            border: 1px solid var(--line);
            border-radius: 28px;
            padding: 20px;
            box-shadow: 0 20px 50px var(--shadow);
        }

        .section-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding: 8px 8px 20px;
            border-bottom: 1px dashed var(--line);
        }

        .section-title {
            color: var(--text);
            font-size: 22px;
            font-weight: 900;
            letter-spacing: -0.02em;
        }

        .section-title span {
            color: var(--red);
        }

        .section-top .actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .small-btn {
            padding: 11px 20px;
            font-size: 12px;
            border-radius: 999px;
            background: var(--paper);
            border: 1px solid var(--line);
            color: var(--text);
            cursor: pointer;
            font-weight: 800;
        }

        .results-grid {
            margin-top: 20px;
            display: grid;
            grid-template-columns: repeat(5, minmax(150px, 1fr));
            gap: 16px;
        }

        .lotto-card {
            background: var(--card-bg);
            border: 1px solid var(--line);
            border-radius: 20px;
            padding: 18px;
            box-shadow: 0 8px 24px var(--shadow);
            transition: background 0.25s ease, border-color 0.25s ease;
        }

        .lotto-card .game-title {
            color: var(--muted);
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .numbers {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .ball {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 15px;
            font-weight: 900;
            border: 2px solid rgba(255,255,255,0.9);
            box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 3px 8px var(--shadow);
        }

        .yellow { background: linear-gradient(135deg, var(--gold), #edd168); }
        .blue { background: linear-gradient(135deg, var(--blue), #92baff); }
        .red { background: linear-gradient(135deg, var(--red), #ff717c); }
        .gray { background: linear-gradient(135deg, #7a8095, #bcbdcb); }
        .green { background: linear-gradient(135deg, var(--green), #9ddca8); }

        .plus {
            color: var(--subtle);
            font-size: 16px;
            font-weight: 900;
            margin: 0 2px;
        }

        .bonus {
            margin-top: 14px;
            text-align: center;
            font-size: 11px;
            color: var(--subtle);
            font-weight: 800;
            letter-spacing: 0.08em;
        }

        .notice {
            margin-top: 16px;
            background: var(--red-soft);
            border-radius: 16px;
            padding: 16px 18px;
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
            line-height: 1.8;
        }

        .stats-strip {
            display: grid;
            grid-template-columns: repeat(3, minmax(160px, 1fr));
            gap: 16px;
            margin-top: 24px;
        }

        .stat-card {
            background: var(--paper);
            border: 1px solid var(--line);
            border-radius: 20px;
            padding: 22px 20px;
            display: flex;
            align-items: center;
            gap: 14px;
            box-shadow: 0 14px 36px var(--shadow);
        }

        .stat-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--red-soft);
            color: var(--red);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }

        .stat-body .label {
            display: block;
            font-size: 11px;
            color: var(--subtle);
            font-weight: 900;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .stat-body .value {
            display: block;
            margin-top: 6px;
            color: var(--text);
            font-size: 26px;
            font-weight: 900;
        }

        .site-footer {
            margin-top: 40px;
            background: var(--footer-bg);
            color: rgba(255,255,255,0.74);
            padding: 30px 24px;
            font-size: 12px;
            text-align: center;
            transition: background 0.3s ease;
        }

        .dashboard-section {
            display: grid;
            grid-template-columns: repeat(2, minmax(280px, 1fr));
            gap: 16px;
            margin-top: 24px;
        }

        .dashboard-card {
            background: var(--paper);
            border-radius: 24px;
            border: 1px solid var(--line);
            box-shadow: 0 16px 42px var(--shadow);
            padding: 26px 24px;
        }

        .dash-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding-bottom: 16px;
            border-bottom: 1px dashed var(--line);
        }

        .dash-title {
            color: var(--text);
            font-size: 20px;
            font-weight: 900;
            letter-spacing: -0.02em;
        }

        .dash-title span {
            color: var(--red);
        }

        .dash-tag {
            background: var(--red-soft);
            color: var(--red);
            padding: 8px 14px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 900;
        }

        .chart {
            margin-top: 22px;
        }

        .chart-row {
            display: grid;
            grid-template-columns: 70px 1fr 40px;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
        }

        .chart-label {
            color: var(--muted);
            font-size: 11px;
            font-weight: 900;
        }

        .chart-track {
            height: 10px;
            background: var(--line);
            border-radius: 999px;
            overflow: hidden;
        }

        .chart-bar {
            display: block;
            height: 100%;
            background: var(--red);
            border-radius: 999px;
        }

        .chart-count {
            color: var(--text);
            font-size: 12px;
            font-weight: 900;
            text-align: right;
        }

        .latest-card {
            background: linear-gradient(160deg, #192328, #2a3c42);
            color: white;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .latest-card .dash-title,
        .latest-card .dash-title span {
            color: white;
        }

        .latest-card .dash-tag {
            background: var(--gold);
            color: var(--text);
        }

        .latest-date {
            color: rgba(255,255,255,0.76);
            margin-top: 22px;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .latest-numbers {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .latest-numbers .ball {
            width: 36px;
            height: 36px;
            font-size: 12px;
        }

        .latest-summary {
            margin-top: 22px;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            color: rgba(255,255,255,0.82);
            font-size: 12px;
        }

        .summary-row strong {
            color: white;
        }

        .history-section {
            background: var(--paper);
            border: 1px solid var(--line);
            border-radius: 28px;
            padding: 20px;
            box-shadow: 0 20px 50px var(--shadow);
            margin-top: 24px;
        }

        .history-list {
            margin-top: 16px;
        }

        .history-row {
            display: grid;
            grid-template-columns: 90px 130px 1fr 140px;
            align-items: center;
            gap: 16px;
            padding: 16px 0;
            border-top: 1px dashed var(--line);
            font-size: 12px;
            color: var(--muted);
        }

        .history-row:first-child {
            border-top: none;
        }

        .history-round {
            color: var(--red);
            font-weight: 900;
            font-size: 14px;
        }

        .history-date {
            font-weight: 800;
        }

        .history-numbers {
            color: var(--text);
            font-weight: 900;
            letter-spacing: 0.03em;
        }

        .history-prize {
            text-align: right;
            font-weight: 800;
            color: var(--muted);
        }

        .hero-copy,
        .recommend-section,
        .dashboard-card,
        .history-section,
        .stat-card,
        .small-btn,
        .btn-secondary {
            transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
        }

        @media (max-width: 960px) {
            .hero {
                grid-template-columns: 1fr;
            }

            .results-grid {
                grid-template-columns: repeat(2, minmax(150px, 1fr));
            }

            .stats-strip {
                grid-template-columns: 1fr;
            }

            .dashboard-section {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 680px) {
            .nav {
                flex-wrap: wrap;
                height: auto;
                min-height: 76px;
                padding-top: 12px;
                padding-bottom: 12px;
            }

            .nav-actions {
                gap: 8px;
            }

            .theme-toggle {
                padding: 7px 12px;
                font-size: 12px;
            }

            .login {
                padding: 8px 16px;
                font-size: 12px;
            }

            .nav-links {
                order: 3;
                width: 100%;
                justify-content: center;
                gap: 14px;
                flex-wrap: wrap;
                margin-top: 6px;
            }

            .hero-copy {
                padding: 28px;
            }

            .hero-copy h1 {
                font-size: 44px;
            }

            .results-grid {
                grid-template-columns: 1fr;
            }

            .panel-grid {
                grid-template-columns: 1fr;
            }
        }
