/* Home: a focused workspace with shared, responsive controls. */
:root { --primary: #17634b; --ink: #182e27; --muted: #65746d; --line: #dfe6df; }
body { display: block; padding: 0; background: #f7f8f2; color: var(--ink); }
.container { max-width: 1160px; margin: auto; padding: 0 36px; background: transparent; border: 0; box-shadow: none; }
button, select, input { font: inherit; }
a { color: var(--primary); }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #b88321; outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px; background: white; z-index: 2000; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 90px; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: flex; align-items: center; font-size: 25px; font-weight: 900; letter-spacing: -1px; text-decoration: none; color: var(--ink); }
.brand-icon { display: grid; place-items: center; width: 36px; height: 36px; background: var(--primary); color: #eff3bf; border-radius: 11px; margin-right: 10px; font-size: 30px; }
.brand-dot { color: var(--primary); }
.site-header nav, .site-footer div { display: flex; gap: 26px; flex-wrap: wrap; }
.site-header nav a, .site-footer a { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.site-header a:hover, .site-footer a:hover { color: var(--primary); text-decoration: underline; }
.hero { padding: 58px 0 40px; text-align: center; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 800; color: var(--primary); }
h1 { margin: 15px 0 12px; font-size: clamp(38px, 5vw, 60px); color: var(--ink); letter-spacing: -2px; font-weight: 900; }
.tagline { margin: 0 auto 12px; font-weight: 500; color: var(--ink); font-size: 18px; }
.hero-note { color: var(--muted); font-size: 13px; line-height: 1.8; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.generator-panel, .output-panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.output-panel { background: #eef2e9; min-height: 476px; }
.panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.panel-heading h2 { font-size: 16px; font-weight: 700; }
.step { color: var(--muted); font-size: 11px; border: 1px solid #d4ded2; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.live-dot { margin-left: auto; width: 7px; height: 7px; background: #629779; border-radius: 50%; }
.selectors { grid-template-columns: 1.2fr 1fr; gap: 12px; margin-bottom: 18px; }
.selector-wrapper label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 7px; }
select { min-height: 46px; padding: 10px; font-size: 13px; background: #fff; box-shadow: none; border-radius: 8px; }
.lottery-info { padding: 15px; background: #f4f7f0; border: 0; box-shadow: none; border-radius: 10px; margin-bottom: 22px; }
.lottery-info .lottery-name { font-size: 17px; margin-bottom: 6px; }
.lottery-info .lottery-format { display: inline-block; border: 0; background: transparent; padding: 0; font-size: 12px; font-weight: 500; }
.options-section { padding: 0; border: 0; box-shadow: none; margin-bottom: 22px; }
.mode-tabs { display: flex; flex-direction: row; background: #f3f5f1; border-radius: 10px; padding: 4px; gap: 3px; margin-bottom: 22px; }
.mode-tab { min-width: 0; padding: 10px 5px; border: 0; background: transparent; font-size: 12px; font-weight: 600; border-radius: 7px; }
.mode-tab.active { background: white; color: var(--primary); box-shadow: 0 2px 5px #182e2710; }
.option-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.option-label { font-size: 12px; }
.line-btn { min-width: 43px; min-height: 40px; padding: 8px 12px; font-size: 13px; }
.line-btn.active, .group-mode-btn.active { background: #e5eee5; border-color: var(--primary); color: var(--primary); }
.group-mode-btn.active .mode-title, .group-mode-btn.active .mode-desc { color: var(--primary); }
.group-play-section { padding: 15px; box-shadow: none; }
.add-participant-btn, .participant-avatar { background: var(--primary); }
.add-participant-btn:hover { background: #104c39; }
.generate-btn { min-height: 54px; font-size: 16px; border-radius: 10px; box-shadow: none; margin: 0; }
.generate-btn:hover:not(:disabled) { background: #104c39; box-shadow: 0 5px 16px #17634b20; }
.generation-note { margin-top: 14px; color: var(--muted); font-size: 10px; text-align: center; line-height: 1.7; }
.empty-state { padding: 70px 10px 45px; text-align: center; }
.empty-state[hidden] { display: none; }
.preview-balls { display: flex; justify-content: center; margin-bottom: 30px; }
.preview-balls span { width: 62px; height: 62px; display: grid; place-items: center; background: #dce7d5; border: 5px solid #eef2e9; border-radius: 50%; font-size: 23px; font-weight: 700; color: #688162; transform: rotate(-14deg); }
.preview-balls span:nth-child(2) { background: #f2e6b9; color: #978343; transform: translateY(-12px); margin: 0 -5px; }
.empty-state h3 { font-size: 17px; margin-bottom: 12px; }
.empty-state p { max-width: 290px; margin: auto; font-size: 12px; color: var(--muted); line-height: 1.9; }
.results { margin-top: 0; }
.result-line { box-shadow: none; padding: 16px; border-radius: 12px; }
.ball { width: 43px; height: 43px; font-size: 16px; box-shadow: none; }
.numbers-container { gap: 7px; flex-wrap: wrap; }
.share-btn, .clear-history-btn { min-height: 36px; font-size: 11px; font-weight: 600; }
.line-number { font-size: 13px; }
.history-section { margin-top: 25px; padding-top: 20px; }
.history-header { flex-direction: row; align-items: center; }
.history-title { font-size: 14px; }
.history-list { max-height: 310px; overflow-y: auto; }
.history-item { box-shadow: none; }
.site-intro { margin-top: 36px; padding: 28px 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.site-intro h2 { font-size: 20px; }
.site-intro p, .site-intro ul { font-size: 13px; }
.site-intro ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; }
.site-intro a { color: var(--primary); }
.content-nav { margin-top: 0; padding-top: 26px; }
.content-nav-title { text-align: left; font-size: 18px; }
.content-nav-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.content-nav-item { flex-direction: row; justify-content: flex-start; min-height: 75px; padding: 15px; border-radius: 12px; box-shadow: none; gap: 12px; }
.content-nav-icon { font-size: 22px; }
.content-nav-text { font-size: 12px; text-align: left; }
.technical-details { margin-top: 35px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 12px; }
.technical-details summary { cursor: pointer; }
.ai-readable { box-shadow: none; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; font-size: 12px; color: var(--muted); }
.site-footer a { font-size: 11px; }
@media (max-width: 800px) { .workspace { grid-template-columns: 1fr; } .container { padding: 0 20px; } .output-panel { min-height: 300px; } .empty-state { padding: 35px 10px; } .hero { padding: 38px 0 28px; } }
@media (max-width: 480px) { .site-header { min-height: 74px; } .brand { font-size: 21px; } .site-header nav { gap: 12px; } .site-header nav a { font-size: 11px; } .site-header nav a:last-child { display: none; } .generator-panel, .output-panel { padding: 20px; } .content-nav-grid { grid-template-columns: 1fr 1fr; } .site-intro ul { grid-template-columns: 1fr; } .site-footer { flex-direction: column; } .eyebrow { font-size: 8px; letter-spacing: 1.3px; } .tagline { font-size: 15px; } .hero-note { font-size: 12px; } .ball { width: 35px; height: 35px; font-size: 14px; } .numbers-container { gap: 4px; } .lines-selector { gap: 5px; } .line-btn { min-width: 36px; padding: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
