:root { --ink:#24231f; --muted:#746e63; --gold:#d9b06d; --line:rgba(44,39,31,.14); --ui-accent:#9a7138; --ui-accent-soft:rgba(217,176,109,.16); --ui-danger:#8d5147; --scroll-thumb:#c79753; --result-text:#f8eddb; --result-muted:rgba(249,239,220,.48); --result-surface:rgba(255,255,255,.05); --history-pill-bg:#d7b477; --history-pill-text:#24231f; --roulette-1:#d9b06d; --roulette-2:#332d25; --roulette-3:#b67b48; --roulette-4:#efe0bd; --modal-rolling-border:rgba(183,139,78,.58); --modal-glow-soft:rgba(217,176,109,.08); --modal-glow-strong:rgba(217,176,109,.2); --modal-settle-border:rgba(255,255,255,.6); --theme-control-bg:#fffaf0; --theme-control-text:#2f291f; --theme-control-border:#c8a76e; --theme-control-accent:#9a6f32; --theme-control-shadow:rgba(95,65,25,.14); }
* { box-sizing:border-box; }
body { min-height:100vh; margin:0; color:var(--ink); font-family:'DM Sans',system-ui,sans-serif; background:radial-gradient(circle at 12% 8%,#fff9ed 0 12%,transparent 36%),radial-gradient(circle at 86% 91%,rgba(184,139,69,.22),transparent 27%),linear-gradient(135deg,#d9cfbd,#eee3d1 55%,#d7ccba); }
.page { width:min(1120px,calc(100% - 32px)); min-height:100vh; margin:auto; display:grid; place-items:center; padding:44px 0; }
.app { width:100%; display:grid; grid-template-columns:1.05fr .95fr; align-items:start; overflow:hidden; border:1px solid rgba(255,255,255,.6); border-radius:34px; background:rgba(253,247,235,.7); box-shadow:0 25px 55px rgba(67,55,38,.2),inset 0 1px rgba(255,255,255,.85); backdrop-filter:blur(8px); }
.panel { min-width:0; padding:clamp(28px,5vw,58px); }.entry { position:relative; }
.eyebrow { display:flex; align-items:center; gap:9px; margin:0 0 19px; color:#8d6f3e; font-size:.76rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }.eyebrow::before { content:''; width:22px; height:1px; background:currentColor; }.brand { display:inline-flex; align-items:center; gap:9px; margin:0 0 23px; color:#765a32; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }.brand-mark { display:grid; place-items:center; width:29px; height:29px; border-radius:9px; color:#fff7e5; background:linear-gradient(135deg,#2f2a21,#75572d); box-shadow:0 5px 12px rgba(77,54,20,.19); font-size:.68rem; letter-spacing:0; }
h1 { max-width:520px; margin:0; font-family:'Playfair Display',Georgia,serif; font-size:clamp(2.5rem,5vw,4.6rem); line-height:.92; letter-spacing:-.06em; }.entry h1 span { color:#a0773b; font-style:italic; font-weight:600; }.intro { max-width:460px; margin:22px 0 31px; color:var(--muted); font-size:1rem; line-height:1.6; }
.mode-switch { display:flex; gap:4px; width:max-content; max-width:100%; margin-bottom:22px; padding:4px; border:1px solid var(--line); border-radius:12px; background:rgba(255,253,247,.6); }.mode-button { padding:9px 12px; border-radius:8px; color:var(--muted); background:transparent; font-size:.78rem; white-space:nowrap; }.mode-button.active { color:var(--ink); background:#f2d79f; box-shadow:0 2px 5px rgba(104,77,34,.12); }.mode-button:hover { transform:none; }
.mode-content { max-height:0; overflow:hidden; opacity:0; transform:translateY(-8px); pointer-events:none; transition:max-height .38s ease,opacity .24s ease,transform .32s ease; }.mode-content.is-active { max-height:900px; opacity:1; transform:translateY(0); pointer-events:auto; }
.input-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; font-size:.9rem; font-weight:700; }#count { color:#9a7c4b; font-weight:600; }
textarea { width:100%; min-height:170px; resize:vertical; padding:17px 18px; border:1px solid var(--line); border-radius:14px; outline:none; color:var(--ink); background:rgba(255,253,247,.78); font:500 .96rem/1.55 'DM Sans',sans-serif; transition:border .2s,box-shadow .2s; }textarea::placeholder { color:#aaa196; }textarea:focus { border-color:#caa56b; box-shadow:0 0 0 4px rgba(217,176,109,.16); }textarea { scrollbar-width:thin; scrollbar-color:#c79753 transparent; }textarea::-webkit-scrollbar { width:10px; }textarea::-webkit-scrollbar-track { margin:10px; background:transparent; }textarea::-webkit-scrollbar-thumb { border:3px solid transparent; border-radius:99px; background:#c79753; background-clip:padding-box; }
.range-inputs { display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:10px; }.range-inputs label { display:grid; gap:7px; color:var(--muted); font-size:.78rem; font-weight:700; }.range-inputs input { width:100%; padding:14px; border:1px solid var(--line); border-radius:12px; outline:none; color:var(--ink); background:rgba(255,253,247,.78); font:600 1rem 'DM Sans',sans-serif; }.range-inputs input:focus { border-color:#caa56b; box-shadow:0 0 0 4px rgba(217,176,109,.16); }.range-divider { padding-bottom:14px; color:#9a7c4b; font-size:.8rem; font-weight:700; }
.draw-options { display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; margin:4px 0 23px; }.quantity-label { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.8rem; font-weight:600; }.quantity-label input { width:50px; padding:7px 5px; border:1px solid var(--line); border-radius:8px; outline:none; color:var(--ink); background:rgba(255,253,247,.78); font:700 .9rem 'DM Sans',sans-serif; text-align:center; }.quantity-label input:focus { border-color:#caa56b; }.toggle { display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:.8rem; font-weight:600; cursor:pointer; }.toggle input { position:absolute; opacity:0; }.toggle-ui { position:relative; width:34px; height:19px; border-radius:20px; background:#c9c1b3; transition:.2s; }.toggle-ui::after { content:''; position:absolute; width:13px; height:13px; top:3px; left:3px; border-radius:50%; background:white; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:.2s; }.toggle input:checked + .toggle-ui { background:#b88b45; }.toggle input:checked + .toggle-ui::after { transform:translateX(15px); }.toggle input:focus-visible + .toggle-ui { outline:3px solid rgba(217,176,109,.4); }
.helper { display:flex; align-items:center; gap:7px; margin:11px 0 24px; color:var(--muted); font-size:.78rem; }.helper svg { width:15px; color:#a78248; }
.import-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px 13px; margin:-10px 0 24px; }.import-button { display:inline-flex; align-items:center; padding:8px 11px; border:1px solid rgba(151,113,53,.35); border-radius:8px; color:#795a2d; background:rgba(255,255,255,.44); cursor:pointer; font-size:.76rem; font-weight:700; transition:.2s; }.import-button:hover { border-color:#a77b39; background:#f7e5bf; transform:translateY(-1px); }#file-import { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }#import-status { color:var(--muted); font-size:.72rem; }
.import-options { display:flex; flex-wrap:wrap; align-items:end; gap:9px; margin:-11px 0 24px; padding:12px; border:1px solid rgba(151,113,53,.2); border-radius:11px; background:rgba(255,255,255,.42); }.import-options[hidden] { display:none; }.import-options label { display:grid; flex:1 1 105px; gap:5px; color:var(--muted); font-size:.7rem; font-weight:700; }.import-options .header-option { display:flex; align-items:center; flex:1 1 100%; gap:7px; }.import-options select { min-width:0; padding:8px; border:1px solid var(--line); border-radius:7px; outline:none; color:var(--ink); background:#fffaf0; font:600 .78rem 'DM Sans',sans-serif; }.import-options button { padding:9px 11px; border-radius:8px; color:#fff8e9; background:#71542c; font-size:.75rem; }.import-options button:hover { background:#533c1e; }
#roulette-file-import { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }#roulette-import-status { color:var(--muted); font-size:.72rem; }
button { cursor:pointer; border:0; font:700 .95rem 'DM Sans',sans-serif; transition:transform .18s,box-shadow .18s,background .18s; }button:hover { transform:translateY(-2px); }button:active { transform:translateY(0); }button:disabled { cursor:wait; opacity:.7; transform:none; }.draw-actions { display:flex; align-items:center; }.draw { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-width:175px; padding:16px 22px; border-radius:12px; color:#27231e; background:linear-gradient(135deg,#f7ddaa,#d5a85e); box-shadow:0 12px 22px rgba(146,105,44,.24),inset 0 1px rgba(255,255,255,.7); }.draw svg { width:18px; }
.result-panel { display:flex; flex-direction:column; justify-content:flex-start; min-height:570px; overflow:hidden; color:#f9efdc; background:radial-gradient(circle at 85% 10%,rgba(220,178,102,.18),transparent 26%),linear-gradient(145deg,#292823,#11110f); box-shadow:inset 1px 0 rgba(255,255,255,.06); }.result-panel .eyebrow { color:#d7b477; }.result-panel h2 { margin:0; font-family:'Playfair Display',Georgia,serif; font-size:clamp(2rem,3vw,3.1rem); line-height:1; letter-spacing:-.045em; }
.result-card { position:relative; display:flex; flex-direction:column; align-items:stretch; margin:30px 0 20px; padding:23px; overflow:hidden; border:1px solid rgba(249,239,220,.16); border-radius:23px; background:linear-gradient(125deg,rgba(255,255,255,.13),rgba(255,255,255,.035)); box-shadow:0 18px 28px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.11); }.result-card::before { content:''; position:absolute; width:220px; height:220px; border-radius:50%; background:rgba(236,194,117,.15); top:-130px; right:-80px; }.result-label { position:relative; margin-bottom:14px; color:#cbb896; font-size:.73rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }.results-grid { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; max-height:260px; overflow:auto; padding-right:3px; scrollbar-width:thin; scrollbar-color:rgba(241,208,146,.7) transparent; }.results-grid::-webkit-scrollbar,.winner-list::-webkit-scrollbar { width:9px; }.results-grid::-webkit-scrollbar-track,.winner-list::-webkit-scrollbar-track { background:transparent; }.results-grid::-webkit-scrollbar-thumb,.winner-list::-webkit-scrollbar-thumb { border:2px solid transparent; border-radius:99px; background:rgba(241,208,146,.7); background-clip:padding-box; }.result-chip { display:flex; align-items:center; min-height:54px; padding:10px 13px; border:1px solid rgba(249,239,220,.13); border-radius:12px; color:#fff2d9; background:rgba(255,255,255,.075); font-family:'Playfair Display',Georgia,serif; font-size:clamp(1rem,2.3vw,1.35rem); line-height:1.15; overflow-wrap:anywhere; }.result-detail { position:relative; margin-top:14px; color:rgba(249,239,220,.58); font-size:.76rem; }.result-detail:empty { display:none; }.placeholder { display:block; color:rgba(249,239,220,.48); font-family:'DM Sans',sans-serif!important; font-size:1.03rem!important; letter-spacing:0!important; text-align:center; }.reveal { animation:reveal .55s cubic-bezier(.2,.8,.2,1) both; }@keyframes reveal { from { opacity:0; transform:translateY(14px) scale(.95); } to { opacity:1; transform:translateY(0) scale(1); } }
.restart,.export-history { padding:4px 0; color:rgba(249,239,220,.7); background:transparent; border-bottom:1px solid rgba(249,239,220,.35); border-radius:0; font-size:.67rem; }.restart:hover,.export-history:hover { color:#fff3dc; }.history { display:flex; flex:1; min-height:0; flex-direction:column; margin-top:25px; padding-top:20px; border-top:1px solid rgba(249,239,220,.13); }.history-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; }.history-head > div { display:flex; align-items:center; gap:9px; }.history h3 { margin:0; color:#f5dfb4; font-size:.8rem; letter-spacing:.04em; }.history-head span { display:grid; place-items:center; min-width:21px; height:21px; padding:0 6px; border-radius:99px; color:#24231f; background:#d7b477; font-size:.7rem; font-weight:700; }#history-list { flex:1; min-height:0; overflow-y:auto; padding-right:5px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--scroll-thumb) transparent; }#history-list::-webkit-scrollbar { width:9px; }#history-list::-webkit-scrollbar-track { background:transparent; }#history-list::-webkit-scrollbar-thumb { border:2px solid transparent; border-radius:99px; background:var(--scroll-thumb); background-clip:padding-box; }.history-empty { margin:13px 0 0; color:rgba(249,239,220,.43); font-size:.76rem; }.history-item { display:grid; grid-template-columns:auto 1fr; gap:10px; margin-top:9px; padding:10px; border-radius:10px; color:#f8eddb; background:rgba(255,255,255,.05); font-size:.8rem; }.history-item time { padding-top:2px; color:rgba(249,239,220,.46); font-size:.7rem; }.history-item strong { font-weight:600; line-height:1.4; overflow-wrap:anywhere; }.notice { min-height:22px; margin-top:15px; color:#aa4e42; font-size:.82rem; font-weight:600; }.footer { margin-top:auto; padding-top:28px; color:rgba(249,239,220,.48); font-size:.77rem; }
@keyframes dot-bounce { 0%,100% { opacity:.35; transform:translateY(8px) scale(.78); } 50% { opacity:1; transform:translateY(-10px) scale(1.18); } }
.modal[hidden] { display:none; }.modal { position:fixed; z-index:10; inset:0; display:grid; place-items:center; overflow:auto; padding:16px; }.modal-backdrop { position:absolute; inset:0; background:rgba(20,18,14,.62); backdrop-filter:blur(6px); animation:fade-in .2s ease; }.modal-card { position:relative; z-index:1; display:flex; flex-direction:column; width:min(100%,520px); max-height:calc(100dvh - 32px); overflow:hidden; padding:clamp(28px,6vw,48px); border:1px solid rgba(255,255,255,.6); border-radius:24px; color:var(--ink); background:linear-gradient(140deg,#fff8eb,#e9d8ba); box-shadow:0 28px 70px rgba(0,0,0,.32); animation:modal-in .38s cubic-bezier(.2,.8,.2,1); text-align:center; }.modal-card .eyebrow { justify-content:center; }.modal-card h2 { margin:0; font-family:'Playfair Display',Georgia,serif; font-size:clamp(2.2rem,7vw,3.5rem); letter-spacing:-.055em; }.modal-copy { margin:12px 0 23px; color:var(--muted); }.close-modal { position:absolute; top:15px; right:17px; width:33px; height:33px; border-radius:50%; color:var(--ink); background:rgba(255,255,255,.52); font-size:1.55rem; font-weight:400; line-height:1; }.winner-list { display:grid; flex:1 1 auto; min-height:0; gap:9px; overflow:auto; margin:0 0 27px; padding-right:3px; scrollbar-width:thin; scrollbar-color:#b78b4e transparent; }.winner-list span { display:block; padding:13px 16px; border:1px solid rgba(112,83,40,.16); border-radius:10px; background:rgba(255,255,255,.45); font-family:'Playfair Display',Georgia,serif; font-size:1.25rem; overflow-wrap:anywhere; }.modal-draw { width:100%; flex:none; }@keyframes modal-in { from { opacity:0; transform:translateY(18px) scale(.96); } to { opacity:1; transform:none; } }@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
.modal-card.rolling { border-color:rgba(183,139,78,.58); box-shadow:0 0 0 7px rgba(217,176,109,.16),0 28px 70px rgba(0,0,0,.32); animation:modal-in .38s cubic-bezier(.2,.8,.2,1),modal-glow 1.4s ease-in-out infinite alternate; }.modal-card.rolling .winner-list { display:flex; align-items:center; justify-content:center; min-height:92px; gap:13px; overflow:visible; padding:0; }.modal-card.rolling .rolling-dot { width:13px; height:13px; padding:0; border:0; border-radius:50%; background:#b78b4e; box-shadow:0 0 16px rgba(183,139,78,.55); animation:dot-bounce 1.1s ease-in-out infinite; }.modal-card.rolling .rolling-dot:nth-child(2) { animation-delay:.16s; }.modal-card.rolling .rolling-dot:nth-child(3) { animation-delay:.32s; }.modal-card.rolling .close-modal,.modal-card.rolling .modal-draw { visibility:hidden; }.modal-card.result-reveal { animation:result-settle .6s cubic-bezier(.2,.8,.2,1) both; }.modal-card.result-reveal h2,.modal-card.result-reveal .modal-copy { animation:result-copy-in .5s cubic-bezier(.2,.8,.2,1) both; }.modal-card.result-reveal .modal-copy { animation-delay:.07s; }.modal-card.result-reveal .winner-list span { animation:winner-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay:var(--reveal-delay); }@keyframes modal-glow { from { box-shadow:0 0 0 2px rgba(217,176,109,.08),0 28px 70px rgba(0,0,0,.32); } to { box-shadow:0 0 0 8px rgba(217,176,109,.2),0 32px 78px rgba(0,0,0,.38); } }@keyframes result-settle { from { border-color:rgba(183,139,78,.58); box-shadow:0 0 0 7px rgba(217,176,109,.16),0 32px 78px rgba(0,0,0,.38); } to { border-color:rgba(255,255,255,.6); box-shadow:0 28px 70px rgba(0,0,0,.32); } }@keyframes result-copy-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }@keyframes winner-in { from { opacity:0; transform:translateY(12px) scale(.96); } to { opacity:1; transform:none; } }
.modal-card.roulette-rolling .winner-list { position:relative; min-height:250px; }.roulette-wheel { position:relative; width:224px; height:224px; flex:none; border:7px solid #fff4dc; border-radius:50%; box-shadow:0 12px 30px rgba(67,45,20,.28),inset 0 0 0 2px rgba(48,37,22,.18); transition:transform 2.9s cubic-bezier(.12,.68,.08,1); }.modal-card.rolling .roulette-wheel span { position:absolute; top:50%; left:50%; width:72px; margin:-12px 0 0 -36px; padding:3px 5px; border:0; border-radius:5px; color:#fff9eb; background:rgba(30,25,20,.58); box-shadow:none; font:700 .62rem 'DM Sans',sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.roulette-pointer { position:absolute; z-index:2; top:4px; left:50%; width:0; height:0; border-right:12px solid transparent; border-left:12px solid transparent; border-top:22px solid #7d5531; filter:drop-shadow(0 3px 2px rgba(0,0,0,.25)); transform:translateX(-50%); }
.roulette-wheel span b { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.roulette-add { display:grid; grid-template-columns:minmax(0,1fr) 110px auto; align-items:end; gap:9px; }.roulette-add label { display:grid; gap:6px; color:var(--muted); font-size:.72rem; font-weight:700; }.roulette-add input { min-width:0; width:100%; padding:11px; border:1px solid var(--line); border-radius:9px; outline:none; color:var(--ink); background:rgba(255,253,247,.78); font:600 .84rem 'DM Sans',sans-serif; }.roulette-add input:focus { border-color:#caa56b; box-shadow:0 0 0 3px rgba(217,176,109,.14); }.roulette-add button { min-height:40px; padding:10px 12px; border-radius:9px; color:#fff8e9; background:#71542c; font-size:.76rem; }.roulette-entry-list { display:grid; gap:6px; max-height:150px; overflow:auto; margin-top:11px; padding-right:3px; }.roulette-entry-list > p { margin:8px 0; color:var(--muted); font-size:.76rem; }.roulette-entry-list > div { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:9px; padding:9px 10px; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.42); }.roulette-entry-list strong { min-width:0; overflow:hidden; font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }.roulette-entry-list span { color:#9a7138; font-size:.75rem; font-weight:700; }.roulette-entry-list button { padding:3px 0; color:#8d5147; background:transparent; border-bottom:1px solid rgba(141,81,71,.35); border-radius:0; font-size:.65rem; }
.mode-switch { width:100%; flex-wrap:wrap; }.mode-button { flex:1 1 auto; }.draw-options[hidden],textarea[hidden] { display:none!important; }.coin-content { text-align:center; }.coin-preview { width:88px; height:88px; margin:5px auto 12px; display:grid; place-items:center; border:3px solid #b88b45; border-radius:50%; color:#7a5529; background:#f5d999; box-shadow:0 10px 20px rgba(105,73,31,.18); font-size:3.2rem; }.coin-content p { margin:0 0 22px; color:var(--muted); font-size:.86rem; }.teams-quantity { display:flex; align-items:center; justify-content:space-between; gap:15px; color:var(--muted); font-size:.8rem; font-weight:700; }.teams-quantity input { width:74px; padding:10px; border:1px solid var(--line); border-radius:9px; outline:none; color:var(--ink); background:rgba(255,253,247,.78); font:700 .9rem 'DM Sans',sans-serif; text-align:center; }.modal-card.special-rolling .winner-list { min-height:140px; }.modal-card.rolling .special-draw { padding:0; border:0; color:#8b6033; background:transparent; box-shadow:none; font:700 clamp(3rem,10vw,5rem) 'Playfair Display',Georgia,serif; }.special-brackets { animation:special-sway .8s ease-in-out infinite alternate; }.special-coin { animation:coin-flip .65s linear infinite; }.special-teams { animation:special-pulse .75s ease-in-out infinite alternate; font-size:2.3rem!important; letter-spacing:.25em; }@keyframes special-pulse { from { opacity:.4; transform:scale(.75); } to { opacity:1; transform:scale(1.12); } }@keyframes special-sway { from { transform:rotate(-12deg) scale(.9); } to { transform:rotate(12deg) scale(1.1); } }@keyframes coin-flip { 0% { transform:rotateY(0) scale(1); } 50% { transform:rotateY(90deg) scale(.8); } 100% { transform:rotateY(180deg) scale(1); } }
.modal-card.rolling .special-coin { display:grid; place-items:center; width:104px; height:104px; border:5px solid #fff0c9; border-radius:50%; color:#66451e; background:linear-gradient(145deg,#f7dfa5,#c89543); box-shadow:0 12px 24px rgba(83,55,20,.25),inset 0 0 0 3px rgba(122,78,25,.22); font-size:3.5rem; }.winner-list .coin-result { align-self:center; width:132px; height:132px; margin:auto; display:grid; place-items:center; border:7px solid #fff0c9; border-radius:50%; color:#5e3c18; background:linear-gradient(145deg,#f9e7b8,#ce9947); box-shadow:0 16px 28px rgba(76,48,17,.24),inset 0 0 0 3px rgba(126,82,27,.2); font-size:1.65rem; }
.entry-top { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }.theme-picker { position:relative; z-index:4; display:grid; gap:6px; color:var(--theme-control-accent); font-size:.62rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; opacity:1; }.theme-picker select { min-width:126px; min-height:40px; padding:9px 36px 9px 13px; appearance:none; border:1px solid var(--theme-control-border)!important; border-radius:12px; outline:none; color:var(--theme-control-text)!important; background-color:var(--theme-control-bg)!important; background-image:linear-gradient(45deg,transparent 50%,var(--theme-control-accent) 50%),linear-gradient(135deg,var(--theme-control-accent) 50%,transparent 50%)!important; background-position:calc(100% - 16px) 17px,calc(100% - 11px) 17px!important; background-repeat:no-repeat!important; background-size:5px 5px,5px 5px!important; box-shadow:0 5px 14px var(--theme-control-shadow),inset 0 1px rgba(255,255,255,.18); font:800 .75rem 'DM Sans',sans-serif; text-transform:none; cursor:pointer; opacity:1; transition:border-color .2s,box-shadow .2s,transform .2s; }.theme-picker select:hover { transform:translateY(-1px); }.theme-picker select:focus-visible { border-color:var(--theme-control-accent)!important; box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-control-accent) 24%,transparent),0 7px 17px var(--theme-control-shadow); }.theme-picker select option { color:var(--theme-control-text); background:var(--theme-control-bg); }
@media (max-width:760px) { .page { width:min(100% - 20px,560px); padding:10px 0; }.app { grid-template-columns:1fr; border-radius:24px; }.panel { padding:31px 25px; }.result-panel { min-height:0; }.result-card { margin:24px 0 17px; }.results-grid { max-height:220px; } }
@media (max-width:760px) { body { padding-bottom:90px; }.page { width:100%; min-height:0; padding:0; }.app { border-width:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none!important; transform:none!important; }.entry { padding:30px 20px 110px; background:rgba(253,247,235,.76); }.entry .eyebrow { margin-bottom:13px; }.entry h1 { font-size:clamp(2.55rem,13vw,3.55rem); }.intro { margin:15px 0 23px; font-size:.93rem; }.mode-switch { width:100%; margin-bottom:18px; }.mode-button { flex:1; padding:11px 6px; }.draw-options { gap:11px; margin-bottom:18px; }.draw-actions { position:static; }.draw-actions #draw { position:fixed; z-index:5; right:16px; bottom:16px; left:16px; width:calc(100% - 32px); min-height:57px; border-radius:16px; box-shadow:0 12px 30px rgba(86,58,20,.35),inset 0 1px rgba(255,255,255,.7); }.result-panel { max-height:none; overflow:visible; padding:30px 20px; }.result-panel h2 { font-size:2.4rem; }.result-card { padding:19px; border-radius:19px; }.results-grid { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:190px; }.result-chip { min-height:48px; font-size:1.05rem; }.history { flex:none; margin-top:20px; }.history #history-list { flex:none; max-height:360px; }.history.collapsed #history-list { display:none; }.toggle-history { display:inline-block; padding:4px 0; color:#f5dfb4; background:transparent; border-bottom:1px solid rgba(245,223,180,.4); border-radius:0; font-size:.67rem; }.modal { align-items:end; padding:8px; }.modal-card { width:100%; max-height:calc(100dvh - 16px); padding:34px 24px 24px; border-radius:25px 25px 18px 18px; }.modal-card .eyebrow { margin-bottom:12px; }.modal-card h2 { font-size:2.7rem; }.winner-list { margin-bottom:20px; }.modal-draw { min-height:54px; } }
@media (min-width:761px) { .toggle-history { display:none; } }
@media (max-width:380px) { .results-grid { grid-template-columns:1fr; } }
@media (max-width:390px) { .mode-switch { width:100%; }.mode-button { flex:1; padding-inline:5px; font-size:.66rem; } }
@media (max-width:520px) { .roulette-add { grid-template-columns:minmax(0,1fr) 100px; }.roulette-add button { grid-column:1/-1; }.roulette-entry-list > div { grid-template-columns:minmax(0,1fr) auto; }.roulette-entry-list button { grid-column:1/-1; justify-self:start; } }
@media (max-width:760px) { body { overflow-x:hidden; }.entry-top { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; width:100%; }.entry-top .brand { min-width:0; margin-bottom:18px; }.theme-picker { max-width:126px; }.theme-picker select { width:126px; min-width:0; }.mode-switch { min-width:0; }.mode-button { min-width:0; flex:1 1 calc(33.333% - 4px); white-space:normal; }.draw-options { min-width:0; } }
@media (max-width:420px) { .theme-picker span { display:none; }.theme-picker select { width:112px; }.mode-button { flex-basis:calc(50% - 4px); } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation-duration:.01ms!important; } }
.results-grid.placeholder { letter-spacing:.32em!important; }
.mode-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; }.mode-icon { display:block; width:17px; height:17px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ui-icon { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }.theme-picker > span,.history h3,.restart,.export-history,.roulette-add button { display:inline-flex; align-items:center; gap:5px; }.import-button { gap:6px; }.roulette-add button { justify-content:center; }.modal-draw .ui-icon { width:17px; height:17px; }
.campus-motifs { display:none; }
.campus-footer-mark { display:none; }
.history-head button span { display:grid; place-items:center; min-width:21px; height:21px; padding:0 6px; border-radius:99px; color:var(--history-pill-text); background:var(--history-pill-bg); font-size:.7rem; font-weight:700; }.history-head #history-count { color:var(--history-pill-text); background:var(--history-pill-bg); }
.modal-card.rolling { border-color:var(--modal-rolling-border); animation:modal-in .38s cubic-bezier(.2,.8,.2,1),themed-modal-glow 1.4s ease-in-out infinite alternate; }.modal-card.result-reveal { animation:themed-result-settle .6s cubic-bezier(.2,.8,.2,1) both; }@keyframes themed-modal-glow { from { box-shadow:0 0 0 2px var(--modal-glow-soft),0 28px 70px rgba(0,0,0,.32); } to { box-shadow:0 0 0 8px var(--modal-glow-strong),0 32px 78px rgba(0,0,0,.38); } }@keyframes themed-result-settle { from { border-color:var(--modal-rolling-border); box-shadow:0 0 0 7px var(--modal-glow-strong),0 32px 78px rgba(0,0,0,.38); } to { border-color:var(--modal-settle-border); box-shadow:0 28px 70px rgba(0,0,0,.32); } }
.range-divider,.roulette-entry-list span { color:var(--ui-accent); }.roulette-entry-list button { color:var(--ui-danger); border-bottom-color:currentColor; opacity:.86; }.roulette-entry-list button:hover { opacity:1; }.range-inputs input:focus,.roulette-add input:focus,textarea:focus { border-color:var(--ui-accent); box-shadow:0 0 0 4px var(--ui-accent-soft); }textarea::placeholder { color:var(--muted); opacity:.65; }textarea,.results-grid,.winner-list { scrollbar-color:var(--scroll-thumb) transparent; }textarea::-webkit-scrollbar-thumb,.results-grid::-webkit-scrollbar-thumb,.winner-list::-webkit-scrollbar-thumb { background:var(--scroll-thumb); background-clip:padding-box; }
.result-label { color:var(--result-muted); }.result-detail,.history-empty,.footer { color:var(--result-muted); }.history-item { color:var(--result-text); background:var(--result-surface); }.history-item time { color:var(--result-muted); }
.page { grid-template-columns:minmax(0,1fr); align-content:center; }.site-footer { width:100%; }.global-footer { display:flex; align-items:center; justify-content:space-between; gap:14px 24px; margin-top:17px; padding:0 9px; }.global-footer .footer { margin:0; padding:0; color:var(--muted); }.footer-nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px 16px; }.footer-nav a { color:var(--muted); font-size:.7rem; font-weight:700; text-decoration:none; border-bottom:1px solid transparent; }.footer-nav a:hover,.footer-nav a:focus-visible { color:var(--ink); border-bottom-color:currentColor; outline:none; }
@media (max-width:760px) { body { padding-bottom:90px; }.history-head { align-items:flex-start; flex-direction:column; }.history-head > div { width:100%; flex-wrap:wrap; }.global-footer { align-items:flex-start; flex-direction:column-reverse; gap:13px; margin:0; padding:22px 20px 28px; background:color-mix(in srgb,var(--ink) 5%,transparent); }.global-footer .footer { font-size:.7rem; }.footer-nav { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; justify-content:stretch; border:1px solid color-mix(in srgb,var(--muted) 22%,transparent); border-radius:12px; overflow:hidden; }.footer-nav a { min-height:43px; display:flex; align-items:center; padding:8px 10px; border:0; border-right:1px solid color-mix(in srgb,var(--muted) 18%,transparent); border-bottom:1px solid color-mix(in srgb,var(--muted) 18%,transparent); line-height:1.25; }.footer-nav a:nth-child(even) { border-right:0; }.footer-nav a:nth-last-child(-n+2) { border-bottom:0; } }
@media (max-width:350px) { .footer-nav { grid-template-columns:1fr; }.footer-nav a { border-right:0; border-bottom:1px solid color-mix(in srgb,var(--muted) 18%,transparent)!important; }.footer-nav a:last-child { border-bottom:0!important; } }
.ad-zone[hidden] { display:none; }.ad-zone { width:min(100%,970px); min-height:122px; margin:22px auto 4px; padding:18px; border:1px solid color-mix(in srgb,var(--muted) 18%,transparent); border-radius:16px; background:color-mix(in srgb,var(--ink) 4%,transparent); }.ad-label { display:block; margin-bottom:9px; color:var(--muted); font-size:.6rem; font-weight:700; letter-spacing:.1em; text-align:center; text-transform:uppercase; }.ad-slot { width:100%; min-height:90px; display:grid; place-items:center; overflow:hidden; }.ad-slot-preview { color:var(--muted); border:1px dashed color-mix(in srgb,var(--muted) 30%,transparent); border-radius:8px; background:color-mix(in srgb,var(--ink) 3%,transparent); font-size:.72rem; }
@media (max-width:760px) { .ad-zone { width:calc(100% - 32px); min-height:142px; margin:22px 16px 4px; padding:14px; }.ad-slot { min-height:100px; }body.ad-zone-visible .draw-actions #draw { opacity:0; pointer-events:none; transform:translateY(20px); } }
