:root{--wine:#741f33;--wine-dark:#3d0d1b;--gold:#d8b45a;--gold-light:#f7e9bd;--cream:#fffaf0;--ink:#22181b;--muted:#77696c;--line:#e9ddd3;--shadow:0 22px 60px rgba(63,22,31,.14);font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:var(--ink);background:#f7f1eb}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 10% 0,#fff 0,transparent 28%),linear-gradient(160deg,#faf7f2,#efe5dc);font-size:16px}button,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}.site-shell{width:min(1180px,100%);min-height:100vh;margin:auto;padding:24px clamp(18px,4vw,54px) 54px}.topbar,.admin-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:52px}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;color:var(--gold-light);background:linear-gradient(145deg,var(--wine),var(--wine-dark));box-shadow:0 10px 24px rgba(116,31,51,.25);font-family:Georgia,serif;font-size:27px;font-weight:800}.brand small,.eyebrow{display:block;color:#aa8b55;font-size:.72rem;font-weight:900;letter-spacing:.18em}.brand strong{display:block;margin-top:2px;font-size:1.08rem}.member-actions{display:flex;align-items:center;gap:12px;color:var(--muted)}.ghost-button,.secondary-button{padding:10px 16px;border:1px solid var(--line);border-radius:12px;color:var(--wine);background:rgba(255,255,255,.7);font-weight:800}.auth-layout{display:grid;grid-template-columns:1.1fr .8fr;align-items:center;gap:clamp(32px,8vw,110px);min-height:65vh}.hero-copy h1,.game-heading h1,.section-title h1{margin:9px 0 14px;font-family:Georgia,"Noto Serif TC",serif;font-size:clamp(2.6rem,6vw,5.6rem);line-height:1.02;letter-spacing:-.05em}.hero-copy p{max-width:590px;color:var(--muted);font-size:1.08rem;line-height:1.9}.hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.hero-badges span{padding:9px 14px;border:1px solid #dbc99f;border-radius:999px;color:#735a28;background:rgba(255,250,233,.74);font-weight:800}.auth-card,.panel,.admin-card,.table-card{padding:28px;border:1px solid rgba(116,31,51,.1);border-radius:24px;background:rgba(255,255,255,.9);box-shadow:var(--shadow);backdrop-filter:blur(18px)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:25px;padding:5px;border-radius:14px;background:#f1eae4}.auth-tabs button{padding:12px;border:0;border-radius:10px;color:var(--muted);background:transparent;font-weight:850}.auth-tabs button.active{color:#fff;background:var(--wine);box-shadow:0 6px 16px rgba(116,31,51,.22)}form{display:grid;gap:17px}label{display:grid;gap:8px;color:#56464a;font-size:.9rem;font-weight:800}input{width:100%;min-height:49px;padding:0 14px;border:1px solid #ded2cb;border-radius:12px;outline:none;background:#fff}input:focus{border-color:var(--wine);box-shadow:0 0 0 3px rgba(116,31,51,.1)}.primary-button{min-height:50px;padding:12px 18px;border:0;border-radius:13px;color:#fff;background:linear-gradient(135deg,var(--wine),#9e3148);box-shadow:0 10px 24px rgba(116,31,51,.2);font-weight:900}.auth-card form small{color:var(--muted);line-height:1.6}.game-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.game-heading h1{font-size:clamp(2.3rem,5vw,4.8rem)}.spin-balance{display:flex;align-items:end;gap:6px;padding:15px 20px;border:1px solid #ead9b5;border-radius:18px;color:#75581f;background:#fff9e7}.spin-balance small{align-self:center;margin-right:5px}.spin-balance strong{font-size:2.2rem;line-height:1}.game-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.7fr);gap:32px}.wheel-stage{position:relative;display:grid;place-items:center;align-content:start;min-height:680px;padding:30px 20px;border-radius:32px;background:radial-gradient(circle,#fff 0,#fff8e6 48%,#ead7ac 49%,#5b1425 50%,#350a16 76%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),var(--shadow);overflow:hidden}.wheel-rotator{width:min(570px,90vw);aspect-ratio:1;filter:drop-shadow(0 20px 25px rgba(45,11,20,.28));transition:transform 5.2s cubic-bezier(.12,.62,.05,1)}#wheelCanvas{display:block;width:100%;height:100%}.pointer{position:absolute;z-index:3;top:10px;width:0;height:0;border-left:28px solid transparent;border-right:28px solid transparent;border-top:70px solid #f2cf72;filter:drop-shadow(0 5px 2px rgba(0,0,0,.2))}.spin-button{position:absolute;z-index:4;top:calc(30px + min(570px,90vw)/2 - 62px);display:grid;place-items:center;width:124px;height:124px;border:8px solid #e5c56c;border-radius:50%;color:#ffe9a9;background:linear-gradient(145deg,#8b263c,#551224);box-shadow:0 9px 0 #3b0c18,0 14px 28px rgba(0,0,0,.3);font-size:1.25rem;font-weight:950;line-height:1.25}.spin-button:disabled{cursor:not-allowed;filter:grayscale(.6);opacity:.7}.wheel-stage>p{margin:20px 0 0;color:#fff0cc;font-weight:800;text-align:center}.game-side{display:grid;align-content:start;gap:20px}.panel h2,.admin-login h1{margin:8px 0 10px;font-family:Georgia,"Noto Serif TC",serif;font-size:1.65rem}.panel p{color:var(--muted);line-height:1.7}.redeem-panel form{grid-template-columns:1fr auto}.redeem-panel .primary-button{min-width:108px}.panel-title{display:flex;justify-content:space-between;gap:15px;align-items:start}.record-list{display:grid;margin-top:10px}.record-item{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.record-item:last-child{border:0}.record-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f7eed8;font-size:1.35rem}.record-item strong,.record-item span{display:block}.record-item small{color:var(--muted)}.empty{padding:30px 8px;color:var(--muted);text-align:center}.modal{position:fixed;z-index:30;inset:0;display:grid;place-items:center;padding:20px;background:rgba(35,10,17,.72);backdrop-filter:blur(8px)}.result-card{position:relative;width:min(410px,100%);padding:38px;border:1px solid rgba(255,224,141,.5);border-radius:30px;text-align:center;background:radial-gradient(circle at 50% 0,#fff8dc,#fff 52%);box-shadow:0 30px 80px rgba(0,0,0,.36)}.result-icon{margin:22px auto 12px;font-size:5.5rem}.result-card p{margin:0;color:var(--muted)}.result-card h2{margin:8px 0 25px;color:var(--wine);font-family:Georgia,"Noto Serif TC",serif;font-size:2rem}.modal-close{position:absolute;top:13px;right:13px;width:36px;height:36px;border:0;border-radius:50%;background:#f4ece7;font-size:1.5rem}.toast{position:fixed;z-index:50;left:50%;bottom:28px;transform:translateX(-50%);max-width:min(430px,90vw);padding:13px 18px;border-radius:12px;color:#fff;background:#29161b;box-shadow:0 12px 30px rgba(0,0,0,.24);font-weight:800}.admin-body{background:#f4f1ee}.admin-shell{width:min(1320px,100%);margin:auto;padding:24px}.admin-header{margin-bottom:28px}.admin-login{display:grid;place-items:center;min-height:68vh}.admin-login .auth-card{width:min(430px,100%)}.admin-nav{display:flex;gap:8px;margin-bottom:34px;padding:8px;border:1px solid #ded7d1;border-radius:18px;background:#fff;overflow-x:auto}.admin-nav button{flex:0 0 auto;padding:12px 19px;border:0;border-radius:12px;color:var(--muted);background:transparent;font-weight:850}.admin-nav button.active{color:#fff;background:var(--wine)}.section-title{margin-bottom:24px}.section-title h1{font-size:clamp(2.1rem,4vw,3.7rem)}.section-title p{color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.stat-card{padding:22px;border:1px solid #e3d9d1;border-radius:18px;background:#fff}.stat-card span{color:var(--muted);font-size:.86rem}.stat-card strong{display:block;margin-top:8px;color:var(--wine);font-size:2rem}.prize-rows{display:grid;gap:10px;margin-bottom:22px}.prize-row{display:grid;grid-template-columns:55px 1.5fr 90px 110px 90px;align-items:end;gap:10px;padding:13px;border:1px solid var(--line);border-radius:15px}.prize-row input[type=color]{padding:4px}.prize-percent{padding-bottom:14px;color:var(--wine);font-weight:900;text-align:right}.toolbar{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:15px}.table-card{padding:0;overflow:auto}.data-row,.data-head{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));min-width:720px;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}.data-head{color:var(--muted);background:#faf7f5;font-size:.84rem;font-weight:850}.data-row:last-child{border:0}.row-actions{display:flex;gap:7px}.row-actions button{padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff}.status-active{color:#237653}.status-blocked{color:#b22d3e}.code-form{grid-template-columns:repeat(3,1fr);margin-bottom:20px}.code-form .wide{grid-column:1/-1}.generated-codes{margin-bottom:20px;padding:20px;border-radius:18px;color:#fff;background:var(--wine);white-space:pre-wrap;font-family:ui-monospace,monospace;line-height:1.7}.admin-card{margin-bottom:20px}@media(max-width:900px){.auth-layout,.game-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.wheel-stage{min-height:620px}.topbar{margin-bottom:32px}}@media(max-width:600px){body{font-size:16px}.site-shell{padding:16px 14px 34px}.topbar,.admin-header{margin-bottom:30px}.brand-mark{width:42px;height:42px}.member-actions>span{display:none}.auth-layout{align-content:start;gap:30px}.hero-copy h1{font-size:3rem}.auth-card,.panel{padding:21px}.game-heading{align-items:center}.game-heading h1{font-size:2.4rem}.spin-balance{padding:11px 14px}.spin-balance small{display:none}.wheel-stage{min-height:460px;padding:20px 8px;background:radial-gradient(circle,#fff 0,#fff8e6 47%,#ead7ac 48%,#5b1425 49%,#350a16 78%)}.wheel-rotator{width:min(390px,92vw)}.spin-button{top:calc(20px + min(390px,92vw)/2 - 48px);width:96px;height:96px;border-width:6px;font-size:1rem}.pointer{top:3px;border-left-width:20px;border-right-width:20px;border-top-width:50px}.wheel-stage>p{font-size:.86rem}.redeem-panel form{grid-template-columns:1fr}.admin-shell{padding:16px 12px}.admin-nav{border-radius:14px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{padding:17px}.prize-row{grid-template-columns:44px 1fr 78px}.prize-row label:nth-child(4),.prize-percent{grid-column:auto}.code-form{grid-template-columns:1fr}.data-row,.data-head{min-width:650px}}
