:root {
      color-scheme: light dark;

      --bg: #222;
      --text: #fff;
      --card-bg: rgba(255,255,255,.1);
      --card-border: rgba(255,255,255,.14);
      --ghost-border: rgba(255,255,255,.22);
      --ball-text: #111;
      --input-bg: rgba(0,0,0,.2);
      --input-border: rgba(255,255,255,.2);
    }

    body.light-mode {
      --bg: #f0f0f0;
      --text: #333;
      --card-bg: rgba(255,255,255,.6);
      --card-border: rgba(0,0,0,.1);
      --input-bg: rgba(255,255,255,.8);
      --input-border: rgba(0,0,0,.1);
    }
    
    body{
      font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
      margin:0; padding:24px;
      min-height:100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 20px;
      background: var(--bg);
      color: var(--text);
    }

    .theme-container{
      position: fixed;
      top: 24px;
      right: 24px;
    }

    #themeBtn{
      background: #fff;
      color: #000;
      border: 1px solid rgba(0,0,0,.1);
    }
    body.light-mode #themeBtn{
      background: #000;
      color: #fff;
      border: 1px solid rgba(255,255,255,.14);
    }

    .card{
      width:min(760px, 100%);
      border:1px solid var(--card-border);
      border-radius:18px;
      padding:22px;
      background: var(--card-bg);
      box-shadow: 0 14px 38px rgba(0,0,0,.22);
      backdrop-filter: blur(8px);
      box-sizing: border-box;
    }

    h1{ margin:0 0 8px; font-size:22px; letter-spacing:-.2px; }
    p{ margin:0 0 18px; opacity:.85; line-height:1.55; }

    .row{
      display:flex; align-items:center; justify-content:space-between;
      gap:12px; flex-wrap:wrap;
      margin-bottom:14px;
    }

    .left{
      display:flex; align-items:center; gap:10px; flex-wrap:wrap;
      opacity:.9;
    }
    label{ cursor:pointer; }

    .actions{ display:flex; gap:10px; flex-wrap:wrap; }

    button{
      cursor:pointer;
      border:0;
      padding:12px 16px;
      border-radius:12px;
      font-weight:800;
      font-size:15px;
      letter-spacing:-.2px;
      transition: transform .06s ease, filter .2s ease, background .2s ease, color .2s ease;
      box-shadow: 0 10px 22px rgba(0,0,0,.18);
    }
    button:active{ transform: translateY(1px); }

    .primary{ background:#3b82f6; color:#fff; }
    .ghost{
      background:transparent;
      color: inherit;
      border:1px solid var(--ghost-border);
      box-shadow:none;
    }
    .ghost:hover{ filter:brightness(1.05); }

    .numbers{
      display:flex; flex-wrap:wrap; gap:10px;
      padding:16px;
      border-radius:14px;
      border:1px dashed var(--ghost-border);
      min-height:72px;
      align-items:center;
    }

    .ball{
      width:46px; height:46px;
      display:grid; place-items:center;
      border-radius:999px;
      font-weight:900;
      font-size:15px;
      user-select:none;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.35),
                  0 10px 20px rgba(0,0,0,.18);
      border: 1px solid rgba(255,255,255,.18);
      color: var(--ball-text);
    }

    /* 번호 구간별 컬러(로또 느낌) */
    .c1{ background: linear-gradient(180deg, #ffe37a, #f7b733); }  /* 1~10 노랑 */
    .c2{ background: linear-gradient(180deg, #8fd3ff, #2a74ff); color:#fff; } /* 11~20 파랑 */
    .c3{ background: linear-gradient(180deg, #ff9a9a, #ef4444); color:#fff; } /* 21~30 빨강 */
    .c4{ background: linear-gradient(180deg, #e5e7eb, #9ca3af); } /* 31~40 회색 */
    .c5{ background: linear-gradient(180deg, #a7f3d0, #22c55e); } /* 41~45 초록 */

    .sep{
      opacity:.7;
      font-weight:900;
      padding:0 2px;
    }

    .meta{
      margin-top:10px;
      opacity:.8;
      font-size:13px;
      line-height:1.4;
    }

    .hint{
      opacity:.75;
      font-size:13px;
    }

    input[type="checkbox"]{ transform: scale(1.12); }
    
    .subscribe-container {
      text-align: center;
    }
    .subscribe-container h2 {
      font-size: 18px;
      margin-bottom: 12px;
      opacity: 0.9;
    }
    .subscribe-form {
      display: flex;
      gap: 10px;
      justify-content: center;
    }
    .subscribe-form input[type="email"] {
      padding: 12px;
      border-radius: 12px;
      border: 1px solid var(--input-border);
      background-color: var(--input-bg);
      color: var(--text);
      min-width: 250px;
      font-size: 15px;
    }
    .subscribe-form button {
      background-color: #3b82f6;
      color: #fff;
    }
    .link-button {
      display: inline-block;
      margin-top: 12px;
      padding: 10px 14px;
      border-radius: 12px;
      background: transparent;
      color: inherit;
      border: 1px solid var(--ghost-border);
      text-decoration: none;
      font-weight: 700;
      box-shadow: 0 10px 22px rgba(0,0,0,.12);
    }

    .comments-card h2 {
      margin: 0 0 10px;
      font-size: 18px;
      letter-spacing: -0.2px;
    }
    .comments-card p {
      margin: 0 0 12px;
      opacity: 0.8;
      font-size: 13px;
    }
    #disqus_thread {
      margin-top: 6px;
    }
    footer {
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
        opacity: 0.8;
    }
    footer a {
        color: inherit;
        margin: 0 10px;
        text-decoration: none;
    }
    footer a:hover {
        text-decoration: underline;
    }
    footer p {
        margin-top: 10px;
    }