.lottery-page { max-width: 820px; margin: auto; padding: max(16px, env(safe-area-inset-top)) 20px max(36px, env(safe-area-inset-bottom)); color: var(--text, #25324a); }
.lottery-page * { box-sizing: border-box; }
.lottery-page button { min-height: 42px; cursor: pointer; border-radius: 14px; padding: 10px 16px; font: inherit; font-size: 14px; border: 1px solid var(--line, #dae2ed); background: rgba(255,255,255,.72); color: inherit; }
.lottery-page button:disabled { opacity: .48; cursor: default; }
.lottery-page button:focus-visible, .lottery-page input:focus-visible, .lottery-page select:focus-visible { outline: 3px solid #648cce; outline-offset: 3px; }
.lottery-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.lottery-page-header strong { font-size: 18px; }
.lottery-card { padding: 24px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); border-radius: 24px; box-shadow: 0 8px 35px rgba(56,78,119,.05); margin: 18px 0; }
.lottery-page h1 { font-size: clamp(24px,5vw,34px); line-height: 1.3; margin: 8px 0 12px; overflow-wrap: anywhere; }
.lottery-page h2 { font-size: 19px; margin: 0 0 12px; }
.lottery-page h3 { font-size: 16px; }
.lottery-page p { font-size: 14px; line-height: 1.7; color: #607086; margin: 10px 0; }
.lottery-kicker { font-size: 12px; letter-spacing: .08em; color: #718198; }
.lottery-welcome { text-align: center; padding: 14px 4px; }
.lottery-mini-reels { font-size: 38px; word-spacing: 14px; margin-top: 24px; }
.lottery-mini-reels span { display: inline-block; background: white; padding: 10px; border-radius: 20px; transform: rotate(-8deg); }
.lottery-page form { display: grid; gap: 14px; margin-top: 16px; }
.lottery-page label { display: grid; gap: 7px; font-size: 13px; color: #536379; min-width: 0; }
.lottery-page input:not([type=checkbox]), .lottery-page select { width: 100%; background: rgba(255,255,255,.9); border: 1px solid #c9d4e4; border-radius: 12px; min-height: 46px; padding: 10px 12px; color: #263750; font: inherit; font-size: 16px; }
.lottery-page .lottery-check { display: flex; align-items: center; }
.lottery-check input { width: 18px; height: 18px; }
.lottery-page .lottery-primary { color: #fff; background: var(--primary, #2765c6); border-color: transparent; font-weight: 600; }
.lottery-page .lottery-secondary { background: #eff4fb; color: #345a8a; border-color: #d9e3f1; }
.lottery-page .lottery-text-button { border: 0; background: transparent; padding: 8px; color: #416692; }
.lottery-page .lottery-danger { border: 0; color: #a64951; background: transparent; }
.lottery-notice { padding: 14px 18px; background: #fff7de; border: 1px solid #ebd797; border-radius: 14px; font-size: 14px; }
.lottery-space-list { display: grid; gap: 8px; }
.lottery-space-list button { display: flex; text-align: left; align-items: center; justify-content: space-between; overflow-wrap: anywhere; gap: 12px; }
.lottery-space-list span { font-size: 12px; color: #718198; flex-shrink: 0; }
.lottery-room-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lottery-room-heading > div { min-width: 0; }
.lottery-room-heading > button { flex-shrink: 0; }
.lottery-members { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.lottery-members > span { font-size: 12px; border: 1px solid #dde5ef; border-radius: 30px; padding: 5px 10px 5px 5px; display: flex; align-items: center; gap: 6px; background: #f5f8fc; max-width: 100%; overflow-wrap: anywhere; }
.lottery-members b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e2eaf7; color: #476799; flex-shrink: 0; }
.lottery-members .is-turn { border-color: #7c9ecf; background: #eaf1fc; }
.lottery-kind-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.lottery-kind-tabs button { font-size: 15px; }
.lottery-kind-tabs button[aria-pressed=true] { background: #e3ecfc; border-color: #779acb; color: #2e5486; font-weight: 600; }
.lottery-machine { background: linear-gradient(150deg,#e9effc,#f5f2ff 48%,#fff8ef); text-align: center; border-color: white; padding: 24px; }
.lottery-machine-top { display: flex; justify-content: space-between; color: #7888a3; font-size: 11px; letter-spacing: .2em; }
.lottery-machine-caption { margin: 24px 0 16px !important; }
.lottery-reels { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 12px; border-radius: 22px; background: #c5d3ea; box-shadow: inset 0 3px 8px rgba(34,60,105,.12); }
.lottery-reel { height: 144px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 12px; background: linear-gradient(#e7edf6,white 32%,white 70%,#e7edf6); }
.lottery-reel strong { font-size: clamp(16px,3vw,24px); line-height: 1.3; width: 100%; padding: 0 4px; max-height: 65px; overflow: hidden; overflow-wrap: anywhere; }
.reel-ghost { opacity: .26; font-size: 22px; }
.lottery-result { min-height: 110px; margin: 18px 0; }
.lottery-result h2 { font-size: 24px; overflow-wrap: anywhere; }
.lottery-status { font-size: 12px; color: #72829a; }
.lottery-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lottery-result-actions form { width: 100%; max-width: 360px; text-align: left; }
.lottery-machine > button { margin: 0 4px 8px; min-width: 160px; }
.lottery-step-track { display: flex; gap: 8px; margin: 0 0 18px; }
.lottery-step-track span { font-size: 12px; padding: 7px 9px; background: #f0f3f8; border-radius: 9px; color: #748096; }
.lottery-step-track .is-current { background: #dfeafa; color: #355f97; font-weight: 600; }
.lottery-hint, .lottery-sync { text-align: center; font-size: 12px !important; }
.lottery-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lottery-section-title h2 { margin: 0; }
.lottery-section-title h2 span { color: #8c98a9; font-size: 13px; }
.lottery-items { margin-top: 12px; }
.lottery-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e8edf4; padding: 15px 0; }
.lottery-item:last-child { border: 0; }
.lottery-item-main { min-width: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }
.lottery-item-main strong { font-size: 15px; }
.lottery-item-main small { color: #62748d; font-size: 12px; }
.lottery-item-meta { font-size: 11px; color: #7b8799; }
.lottery-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lottery-page .lottery-vote { padding: 9px 12px; background: #eaf1fc; border: 1px solid #cedcf1; color: #365e95; font-size: 13px; }
.lottery-item.is-excluded { opacity: .5; }
.lottery-item.is-excluded strong { text-decoration: line-through; }
.lottery-empty { text-align: center; padding: 26px 10px; }
.lottery-empty > span { font-size: 34px; }
.lottery-empty small { font-size: 12px; color: #72829a; }
.lottery-item-editor { background: #f2f6fc; padding: 16px; border-radius: 16px; }
.lottery-form-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.lottery-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lottery-rules summary, .lottery-manage summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 24px; }
.lottery-manage-member { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; gap: 10px; overflow-wrap: anywhere; }
.lottery-code { letter-spacing: .1em; }
.daily-lottery-entry { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 22px; background: linear-gradient(110deg,rgba(255,255,255,.88),rgba(237,242,255,.9)); border: 1px solid rgba(255,255,255,.95); border-radius: 22px; color: var(--text,#263750); cursor: pointer; }
.daily-lottery-entry > span:first-child { font-size: 30px; }
.daily-lottery-entry > span:nth-child(2) { flex: 1; display: grid; gap: 5px; }
.daily-lottery-entry strong { font-size: 17px; }
.daily-lottery-entry small { font-size: 12px; color: #74849a; }
.is-spinning .lottery-reel strong { animation: lottery-roll .13s linear infinite; }
.lottery-reel strong.is-landed { animation: lottery-land .4s ease-out; }
@keyframes lottery-roll { from { transform: translateY(-22px); opacity: .5; } to { transform: translateY(22px); opacity: .9; } }
@keyframes lottery-land { 0% { transform: translateY(-20px); } 70% { transform: translateY(5px); } 100% { transform: translateY(0); } }
@media(max-width:480px) { .lottery-page { padding-left: 14px; padding-right: 14px; } .lottery-card { padding: 18px; border-radius: 20px; } .lottery-reels { padding: 8px; gap: 6px; } .lottery-reel { height: 126px; } .lottery-item-actions { flex-direction: column; gap: 0; } .lottery-kind-tabs { gap: 7px; } .lottery-kind-tabs button { padding: 10px 4px; font-size: 14px; } .lottery-room-heading { align-items: flex-start; } .lottery-room-heading > button { font-size: 12px; padding: 10px; } .lottery-step-track { gap: 5px; } .lottery-step-track span { font-size: 11px; padding: 7px; } }
@media(prefers-reduced-motion:reduce) { .lottery-page *, .lottery-page *::before, .lottery-page *::after { animation: none !important; transition: none !important; } }
