@layer legacy{
:root{font-family:'DM Sans',sans-serif;color:#203b31;background:#f5f7f3;font-size:16px;--green:#244f3e;--muted:#68776e;--line:#dce4da}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;padding-bottom:100px}button,input{font:inherit}button{cursor:pointer;min-height:48px;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #be854e;outline-offset:3px}header{height:72px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);gap:20px}.brand{font-size:25px;letter-spacing:-1px;font-weight:700;color:#203b31;text-decoration:none}.brand span{color:#c8834e}#header-name{font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}main,#welcome{max-width:600px;margin:0 auto;padding:32px 24px}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;margin:28px 0 10px}h2{font-size:21px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}p{line-height:1.5;color:var(--muted);margin:0 0 24px}#welcome h1{margin-top:8px}label{display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:600}input{width:100%;min-width:0;padding:13px 12px;border:1px solid #cbd6c8;background:#fff;border-radius:9px;min-height:50px;color:#203b31}input:focus{border-color:var(--green)}button.dark,.join{border:1px solid var(--green);border-radius:9px;background:var(--green);color:#fff;padding:13px 18px;font-weight:600}.dark{width:100%}.secondary{background:transparent;border:1px solid #bdccba;border-radius:9px;padding:12px 16px;color:var(--green);font-weight:500}.entry-tabs{display:flex;gap:6px;padding:5px;background:#e5ebe1;border-radius:12px;margin:25px 0}.entry-tabs button{flex:1;border:0;background:transparent;color:#52634f;border-radius:8px;font-weight:600}.entry-tabs .active{background:#fff;color:var(--green);box-shadow:0 1px 5px #203b3110}.entry-form{display:flex;flex-direction:column;gap:22px}.entry-form fieldset{margin:6px 0 0;padding:20px 0 0;border:0;border-top:1px solid var(--line)}legend{font-size:18px;font-weight:600;padding:0 12px 0 0}.hint{font-size:14px;color:var(--muted);margin:5px 0 14px;line-height:1.5}.animal-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 36px;gap:10px;margin:12px 0}.animal-row button{border:0;background:transparent;color:#825442;font-size:25px;align-self:end}.animal-row label{font-size:14px}#add-animal{width:100%;background:transparent;border:1px dashed #bdccba;border-radius:9px;color:var(--green);padding:10px}#room-code{font-size:28px;font-weight:600;letter-spacing:6px;text-align:center}#entry-error{color:#a03e2c;font-size:15px;margin-top:15px}.room-heading{display:flex;flex-direction:column;gap:5px;padding-bottom:20px;border-bottom:1px solid var(--line)}.room-heading strong{font-size:17px;overflow-wrap:anywhere}.room-heading span{color:var(--muted);font-size:14px}.cards{display:flex;flex-direction:column;gap:14px}.card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px}.card.choice{display:flex;align-items:center;justify-content:space-between;gap:16px}.choice>div{min-width:0}.choice h2{margin:0 0 4px}.choice .hint{margin:0}.choice .join{flex-shrink:0;min-width:116px}.choice.selected{border-color:#95ae88;background:#f0f5ea}.join.joined{color:var(--green);background:white;border-color:#b6c9ab}.finished{font-size:14px;color:var(--muted);margin:10px 0 0}.choice .finished{max-width:100px;text-align:right;margin:0}.selection-hint{text-align:center;margin:4px 12px}.winner{padding:16px;background:#eff3ea;border-radius:9px;display:flex;flex-direction:column;gap:4px;margin-top:12px}.winner span{color:var(--muted);font-size:14px}.winner strong{font-size:19px}.winner.mine{background:#e1efd4}.winner.mine span{color:var(--green);font-weight:700}.empty{text-align:center;padding:40px 20px}.empty>span{display:block;font-size:44px;color:#8ca280;margin-bottom:18px}.empty p{font-size:15px}.admin-controls{flex-direction:row;align-items:center;justify-content:space-between;margin:20px 0}.admin-controls input{width:80px}details{font-size:14px;color:var(--muted);margin:12px 0}summary{cursor:pointer;min-height:32px}details p{margin:8px 0;overflow-wrap:anywhere}.card .hint:last-child{margin-bottom:0}.share-card{padding:26px;background:white;border:1px solid var(--line);border-radius:13px;text-align:center}.share-card p{font-size:15px;margin-bottom:12px}.share-card>strong{display:block;font-size:36px;font-weight:700;letter-spacing:7px;margin:22px 0 25px}.share-card button+button{margin-top:10px;width:100%}.member-card{display:flex;flex-direction:column;gap:5px;padding:25px 0}.member-card span{color:var(--muted);font-size:14px}.member-card strong{font-size:18px}#leave-room{width:100%}#info-panel>.hint{text-align:center;margin-top:12px}#sync-status{color:#a03e2c;font-size:14px;margin:15px 0}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:4px;background:#fff;border-top:1px solid var(--line);padding:8px 12px calc(8px + env(safe-area-inset-bottom));z-index:5}.nav{flex:1;max-width:150px;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:62px;padding:6px 2px;border:0;border-radius:9px;background:none;color:var(--muted);font-size:13px;font-weight:500}.nav>span{font-size:23px;line-height:25px}.nav.active{color:var(--green);background:#eaf0e4;font-weight:700}body:not(.in-room) nav{display:none}body:not(.in-room){padding-bottom:20px}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);max-width:480px;width:calc(100% - 40px);border-radius:10px;padding:15px 20px;background:#203b31;color:#fff;font-size:14px;line-height:1.5;box-shadow:0 8px 30px #0002;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20;text-align:center}#toast.show{opacity:1}dialog{border:0;border-radius:16px;max-width:440px;width:calc(100% - 32px);padding:32px;color:#203b31;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#15281fb3}dialog h2{padding-right:20px;margin-top:10px}dialog p{font-size:16px;margin:15px 0}.close{position:absolute;right:7px;top:3px;border:0;background:none;font-size:28px;width:44px;color:var(--muted)}#draw-stage{margin:18px 0}#confirm-draw{margin-top:12px}@media(max-width:400px){main,#welcome{padding:25px 18px}h1{font-size:27px}.card{padding:18px}.choice .join{min-width:105px;padding:12px}.choice h2{font-size:20px}.animal-row{grid-template-columns:minmax(0,1fr) 78px 30px;gap:7px}}
/* Wildlife portraits: compact so choices remain easy to scan. */
.card.choice.has-photo{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px 18px;padding:14px;overflow:hidden}.animal-photo{grid-column:1;grid-row:1 / 3;width:112px;height:128px;object-fit:cover;border-radius:9px;background:#303825}.choice.has-photo>div{grid-column:2;align-self:end}.choice.has-photo .join{grid-column:2;justify-self:start;min-height:44px;padding:10px 17px;align-self:start}.choice.has-photo .finished{grid-column:2;max-width:none;text-align:left;align-self:start}.choice.has-photo h2{font-size:22px}.card.choice.selected .animal-photo{outline:2px solid #849c73;outline-offset:-2px}@media(max-width:400px){.card.choice.has-photo{grid-template-columns:96px minmax(0,1fr);gap:9px 14px;padding:12px}.animal-photo{width:96px;height:124px}.choice.has-photo h2{font-size:21px}.choice.has-photo .hint{font-size:13px}}
.animal-row{grid-template-columns:64px minmax(0,1fr) 74px 30px;align-items:end}.species-preview{width:64px;height:64px;object-fit:cover;border-radius:8px;align-self:end}.animal-row select{width:100%;min-width:0;min-height:50px;border:1px solid #cbd6c8;border-radius:9px;background-color:#fff;color:#203b31;padding:12px 25px 12px 10px;font:inherit;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23244f3e' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center}.animal-row .custom-species{grid-column:1 / -1}.animal-row:has(.species-preview[hidden]){grid-template-columns:minmax(0,1fr) 74px 30px}.animal-row select:focus-visible{outline:3px solid #be854e;outline-offset:3px}@media(max-width:400px){.animal-row{grid-template-columns:50px minmax(0,1fr) 64px 26px;gap:6px}.species-preview{width:50px;height:60px}.animal-row select{font-size:14px;padding-left:7px}.animal-row:has(.species-preview[hidden]){grid-template-columns:minmax(0,1fr) 64px 26px}}
#draw-dialog{max-width:460px;padding:26px;max-height:calc(100dvh - 24px);overflow:auto}#draw-dialog h2{font-size:24px;margin-top:10px}#draw-detail{font-size:14px;margin:10px 0 18px}.wheel-wrap{position:relative;width:min(100%,320px);margin:22px auto 15px;filter:drop-shadow(0 8px 12px #203b3125)}#lottery-wheel{display:block;width:100%;height:auto;border:7px solid #e2c898;border-radius:50%;background:#244f3e}.wheel-pointer{position:absolute;z-index:2;top:-9px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-top:32px solid #d79b48;filter:drop-shadow(0 2px 2px #0006)}.wheel-hub{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;background:#f3e4c5;color:#244f3e;border:4px solid #d2ad70;border-radius:50%;font-size:25px}.wheel-live{text-align:center;font-size:22px;font-weight:700;color:#244f3e;overflow-wrap:anywhere;margin:12px 0!important;min-height:33px}#wheel-winners .winner{padding:11px 15px;margin-top:8px}#wheel-winners strong{font-size:17px}.celebrate{animation:winner-pop .65s ease-out}@keyframes winner-pop{0%{transform:scale(.8);opacity:.3}65%{transform:scale(1.07)}100%{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.celebrate{animation:none}}@media(max-width:400px){#draw-dialog{padding:22px}.wheel-wrap{width:min(100%,280px)}.wheel-live{font-size:20px}}
/* Casino styling stays scoped to the drawing dialog. */
#draw-dialog{background:radial-gradient(ellipse at 50% 32%,#263d30,#101c17 75%);color:#fff1d2;border:1px solid #b38a46;box-shadow:0 24px 100px #0009,inset 0 0 45px #0005}#draw-dialog h2{color:#fff1d2;text-align:center;font-size:25px}#draw-dialog .close{color:#e6ca8c}#draw-detail{color:#c8bca2;text-align:center}#draw-dialog::backdrop{background:#050a08cc;backdrop-filter:blur(5px)}.wheel-wrap{padding:19px;width:min(100%,340px);border-radius:50%;background:conic-gradient(from -30deg,#72501b,#fff2af 13%,#bc8b32 24%,#fff6c0 40%,#8b5d1b 53%,#f2cc6b 70%,#fff1b0 84%,#72501b);box-shadow:0 0 0 2px #62451d,0 0 0 5px #e2bc67,0 0 0 7px #584020,0 14px 22px #0008,inset 0 0 0 2px #fff2bc;filter:none;margin:30px auto 24px}#lottery-wheel{border:3px solid #73501e;box-shadow:0 0 0 2px #ffe49a,inset 0 0 25px #0007}.wheel-pointer{top:-18px;border:0;width:30px;height:46px;background:linear-gradient(105deg,#8c5f1e,#fff2a7 45%,#d9a646 68%,#754a13);clip-path:polygon(50% 100%,6% 32%,10% 10%,30% 0,70% 0,90% 10%,94% 32%);filter:drop-shadow(0 3px 2px #000);z-index:4}.wheel-hub{width:54px;height:54px;border:3px solid #f5d587;background:radial-gradient(circle at 30% 20%,#fffbd3,#efcd72 30%,#b57a22 68%,#6e4614);color:#77430e;box-shadow:0 3px 6px #0007,inset 0 0 0 3px #a97725;font-size:23px;z-index:3}.wheel-lights{position:absolute;inset:0;pointer-events:none}.wheel-lights i{position:absolute;left:calc(50% - 4px);top:calc(50% - 4px);width:8px;height:8px;border-radius:50%;transform:rotate(var(--angle)) translateY(calc(-1 * var(--lamp-radius,153px)));background:#fff9d5;box-shadow:0 0 4px 2px #ffe49b,0 0 12px #f7bd35;border:1px solid #d6a94c}.wheel-wrap{--lamp-radius:153px}.wheel-wrap.spinning .wheel-lights i{animation:casino-lights .65s ease-in-out infinite alternate;animation-delay:calc(var(--lamp) * -65ms)}@keyframes casino-lights{from{opacity:.45;box-shadow:0 0 2px #ffce5c}to{opacity:1;box-shadow:0 0 7px 3px #ffecaf,0 0 18px #ffc93d}}#draw-dialog .wheel-live{color:#ffe5a0;text-shadow:0 2px 12px #dba64b44}#draw-dialog #confirm-draw{background:linear-gradient(#f8dc8e,#c89940);color:#34240b;border:1px solid #ffe7ac;box-shadow:0 3px 0 #72521e;font-size:17px;font-weight:700;min-height:52px}#draw-dialog #confirm-draw:disabled{opacity:.6}#draw-dialog .winner{background:#ffffff0b;border:1px solid #806838;color:#fff0cb}#draw-dialog .winner span{color:#c8bca2}@media(max-width:460px){.wheel-wrap{width:280px;max-width:100%;padding:17px;--lamp-radius:126px}}@media(max-width:360px){.wheel-wrap{width:248px;--lamp-radius:110px}}@media(prefers-reduced-motion:reduce){.wheel-wrap.spinning .wheel-lights i{animation:none}}
.result-card{padding:20px}.result-heading{display:flex;align-items:center;gap:15px;margin-bottom:20px}.result-heading img{width:72px;height:72px;object-fit:cover;border-radius:10px}.result-kicker{font-size:11px;letter-spacing:1.4px;font-weight:700;color:#6d795f}.result-heading h2{font-size:27px;margin:3px 0}.result-heading p{font-size:14px;margin:0;color:#68776e}.winner.winner-result{background:linear-gradient(125deg,#fff9e9,#f5e4b8);border:1px solid #d6b66c;border-left:5px solid #b88c31;padding:19px 20px;gap:8px;margin-top:14px;box-shadow:0 3px 10px #76531c0a}.winner-result .winner-label{display:flex;align-items:center;gap:9px}.winner-result .winner-label span{font-size:12px;font-weight:800;letter-spacing:1.6px;color:#775515}.winner-result .winner-label span:first-child{font-size:23px;letter-spacing:0}.winner.winner-result strong{font-size:29px;line-height:1.2;color:#283c2e;overflow-wrap:anywhere;letter-spacing:-.6px}.winner.winner-result .winner-share{font-size:14px;color:#77623b;letter-spacing:0}.winner.winner-result.mine{background:linear-gradient(125deg,#edf5e6,#d9e9c9);border-color:#75935c;border-left-color:#386136}.winner-result.mine .winner-label span{color:#386136}#draw-dialog .wheel-live{background:linear-gradient(120deg,#fff0bd,#dab65f);color:#30230b;border:1px solid #ffdfa0;border-radius:12px;padding:18px 12px;text-shadow:none}#draw-dialog .reveal-label{display:block;font-size:13px;letter-spacing:2px;color:#705219}#draw-dialog .reveal-name{display:block;font-size:32px;line-height:1.15;letter-spacing:-.6px;margin:9px 0;overflow-wrap:anywhere}#draw-dialog .reveal-share{display:block;font-size:15px;font-weight:500;color:#6b5221}@media(max-width:400px){.result-card{padding:16px}.winner.winner-result{padding:17px}.winner.winner-result strong{font-size:27px}}
#update-banner{position:relative;z-index:20;max-width:600px;margin:12px auto;padding:15px 20px;background:#f8e7b5;color:#594214;border:1px solid #d6b469;border-radius:10px;font-size:15px;display:flex;align-items:center;gap:15px}#update-app{border:0;background:#244f3e;color:white;padding:10px 15px;border-radius:8px;white-space:nowrap}@media(max-width:500px){#update-banner{margin:10px 15px;flex-direction:column;align-items:stretch}}
/* Unified forest-and-gold app theme. */
:root{color-scheme:dark;color:#fff1d2;background:#0c1813;--green:#e0ba67;--muted:#c4bda8;--line:#806735;--gold:#e5c47b;--surface:#172a20;--ink:#fff1d2}
body{min-height:100dvh;background:radial-gradient(ellipse at 50% 10%,#283e30 0%,#12251b 45%,#0c1813 85%);background-attachment:fixed;color:var(--ink)}
header{background:#0d1c16eb;border-bottom:1px solid #80673570;box-shadow:0 5px 25px #0002}.brand{color:#ffe9b3;letter-spacing:-.8px}.brand span{color:#cf9e43}#header-name{color:#c9bea3}
main,#welcome{margin:28px auto 20px;padding:28px;max-width:600px;border:1px solid #92733b;border-radius:20px;background:radial-gradient(ellipse at 50% 10%,#203629,#101f17 80%);box-shadow:0 20px 65px #0003,inset 0 1px 0 #f8df9d0b}h1,h2{color:#fff0ce;font-weight:700}h1{margin-top:24px}p,.hint,#view-description,#entry-description{color:#c4bda8}.room-heading{border-bottom-color:#9c7d3b4d;padding-bottom:20px}.room-heading strong{color:#f6d991}.room-heading span{color:#c4bda8}
.entry-tabs{background:#07130e80;border:1px solid #80673580;padding:5px}.entry-tabs button{color:#c9bea3}.entry-tabs .active{background:linear-gradient(#f5d78a,#c89b44);color:#35260e;box-shadow:0 2px 0 #77541d;font-weight:700}
label,legend{color:#eee0bd}.entry-form fieldset{border-top-color:#80673580}input,.animal-row select{background-color:#0b1a13;color:#fff1d2;border:1px solid #897442;border-radius:10px;box-shadow:inset 0 2px 5px #0002}input::placeholder{color:#a89f88;opacity:1}input:focus,.animal-row select:focus{border-color:#f2ce7e}input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #15251b inset;-webkit-text-fill-color:#fff1d2}.animal-row select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23e5c47b' stroke-width='2'/%3E%3C/svg%3E")}.animal-row select option{background:#14251c;color:#fff1d2}.animal-row button{color:#dcb96c}.species-preview,.animal-photo,.result-heading img{border:1px solid #9e7b3c}
button.dark,.join,#update-app{background:linear-gradient(180deg,#f9df94 0%,#e0ba66 55%,#c2953f 100%);color:#35260c;border:1px solid #ffe7aa;border-radius:11px;box-shadow:0 3px 0 #74531e,inset 0 1px 0 #fff4c4;font-weight:700}button.dark:hover:not(:disabled),.join:hover:not(:disabled){filter:brightness(1.07)}button.dark:active:not(:disabled),.join:active:not(:disabled){box-shadow:0 1px 0 #74531e;transform:translateY(1px)}button:disabled{opacity:.5}.secondary,#add-animal{background:#ffffff05;border-color:#aa8745;color:#f1d58e;border-radius:10px;box-shadow:none}.join.joined{background:#1c3525;color:#ffe4a2;border:1px solid #cfac61;box-shadow:inset 0 0 0 1px #cfac6122}.card{background:linear-gradient(135deg,#25372b,#15271e);border-color:#90723b;box-shadow:0 5px 16px #0002;border-radius:15px}.card.choice.selected{background:linear-gradient(135deg,#304630,#1a3020);border-color:#d9b568}.card.choice.selected .animal-photo{outline-color:#d9b568}.choice .hint,.finished,details{color:#c4bda8}.card .finished{color:#ebd397}
.share-card{background:linear-gradient(145deg,#24382a,#112219);border-color:#a17d3b;border-radius:16px;box-shadow:0 6px 24px #0002}.share-card>strong{color:#ffe39b;text-shadow:0 2px 18px #e2b54a22}.member-card{border-bottom:1px solid #80673555;margin-bottom:20px}.member-card span{color:#c4bda8}.member-card strong{color:#ffebbe}.empty{border:1px dashed #80673570;border-radius:14px;background:#ffffff03}.empty>span{color:#d7b467}
.result-kicker{color:#d8bc7a}.result-heading p{color:#c4bda8}.winner,.winner.winner-result{background:linear-gradient(125deg,#2b3c2d,#1a2b20);border:1px solid #9f7c3e;border-left:4px solid #d9b566;color:#fff1d2;box-shadow:0 3px 12px #0002}.winner strong,.winner.winner-result strong{color:#ffedbd}.winner span,.winner.winner-result .winner-share{color:#c9bea3}.winner-result .winner-label span{color:#e8c779}.winner.winner-result.mine{background:linear-gradient(125deg,#3b482c,#253b25);border-color:#ebcd84;border-left-color:#ffe49b}.winner-result.mine .winner-label span{color:#ffe39b}
nav{background:#0c1a14f7;border-top:1px solid #947338;box-shadow:0 -5px 24px #0003;backdrop-filter:blur(15px)}.nav{color:#bdb59f}.nav.active{color:#ffe4a3;background:linear-gradient(145deg,#3d3c24,#223023);box-shadow:inset 0 0 0 1px #987739;border-radius:10px}.nav>span{color:inherit}#toast{background:linear-gradient(135deg,#e8ca80,#c89f50);color:#30240c;border:1px solid #ffe4a2;font-weight:600;box-shadow:0 8px 30px #0005}#entry-error,#sync-status{color:#ffb4a2}#update-banner{background:#49391b;color:#ffedba;border-color:#bd954b}button:focus-visible,input:focus-visible,a:focus-visible,summary:focus-visible,.animal-row select:focus-visible{outline:3px solid #ffe3a0;outline-offset:3px}
@media(min-width:700px){header{padding-inline:max(28px,calc((100vw - 600px)/2))}#welcome{margin-top:38px}#welcome h1{font-size:30px}}@media(max-width:650px){main,#welcome{margin:18px 12px 12px;padding:23px 18px;border-radius:17px}header{padding:0 22px;height:68px}.room-heading{padding-bottom:17px}.result-card{padding:16px}#welcome h1{font-size:27px}.card.choice.has-photo{gap:10px 14px}.choice.has-photo h2{font-size:21px}}@media(max-width:360px){main,#welcome{margin-inline:8px;padding:20px 13px}.card.choice.has-photo{grid-template-columns:80px minmax(0,1fr);gap:8px 11px}.animal-photo{width:80px}.choice.has-photo .join{padding-inline:12px;min-width:0}}
/* Compact results: one tappable row per drawing. */
.card.result-accordion{margin:0;padding:0;overflow:hidden}.result-summary{display:flex;align-items:center;gap:14px;padding:16px;min-height:88px;list-style:none;cursor:pointer;color:#fff1d2}.result-summary::-webkit-details-marker{display:none}.result-summary img{width:56px;height:56px;object-fit:cover;border-radius:9px;border:1px solid #99783d;flex-shrink:0}.result-summary-text{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.result-summary-text strong{font-size:22px;line-height:1.2;color:#ffedbd;overflow-wrap:anywhere}.result-summary-text>span{font-size:14px;color:#c9bea3}.result-chevron{width:10px;height:10px;border-right:2px solid #e5c47b;border-bottom:2px solid #e5c47b;transform:rotate(45deg);margin:0 6px 5px 2px;flex-shrink:0}.result-accordion[open] .result-chevron{transform:rotate(225deg);margin-top:8px}.result-accordion[open] .result-summary{border-bottom:1px solid #80673566}.result-summary:hover{background:#ffffff04}.result-winners{padding:0 16px 16px}.result-winners .winner.winner-result{padding:13px 15px;margin-top:12px;gap:6px}.result-winners .winner.winner-result strong{font-size:23px}.result-winners .winner-label span{font-size:11px}.result-winners .winner-label span:first-child{font-size:18px}.result-winners .winner.winner-result .winner-share{font-size:13px}@media(max-width:400px){.result-summary{padding:13px;gap:12px;min-height:82px}.result-summary img{width:52px;height:52px}.result-summary-text strong{font-size:21px}}

/* Season pass prototype */
#plan-tools{margin:0 0 22px}.plan-strip{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #806735;border-radius:13px;background:#ffffff04}.plan-strip>div{flex:1;min-width:0}.plan-eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:700;color:#e6c476}.plan-strip p{font-size:14px;margin:6px 0 0}.plan-strip button{font-size:14px;flex-shrink:0;padding:9px 12px}.plan-links{display:flex;gap:14px;flex-wrap:wrap;padding:8px 0}.plan-links button{background:none;border:0;color:#d9c38e;font-size:14px;padding:4px 0;min-height:40px}#season-dialog,#insights-dialog{background:linear-gradient(145deg,#223b2c,#0c1913);color:#fff0cb;border:1px solid #b38c43;max-width:480px;max-height:90dvh;overflow:auto;padding:28px}#season-dialog h2{font-size:29px;line-height:1.15;margin-top:16px}#season-dialog p{color:#c8c0a9}.season-price{font-size:38px;font-weight:700;color:#ffe19b;margin:22px 0}.season-price span{font-size:16px;color:#c8c0a9;font-weight:400}.season-benefits{padding-left:22px;line-height:1.6;margin:20px 0}.season-benefits li{padding:4px 0}.demo-note{display:flex;flex-direction:column;gap:6px;border:1px dashed #9b824c;border-radius:10px;padding:14px;margin:22px 0;font-size:14px;color:#c8c0a9;line-height:1.5}.demo-note strong{color:#ffe19b}#keep-free{width:100%;margin-top:14px}.archive-name{padding:8px 0;color:#fff0cb}@media(max-width:400px){.plan-strip{align-items:stretch;flex-direction:column}.plan-strip button{align-self:flex-start}#season-dialog,#insights-dialog{padding:24px 20px}}

.season-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.season-price span{white-space:nowrap}

#name-dialog{background:linear-gradient(145deg,#223b2c,#0c1913);color:#fff0cb;border:1px solid #b38c43}#name-error{color:#ffb4a2;margin:12px 0}

/* Mobile layout: safe areas, readable form controls and reliable touch targets. */
.animal-row{grid-template-columns:64px minmax(0,1fr) 74px 44px}.animal-row:has(.species-preview[hidden]){grid-template-columns:minmax(0,1fr) 74px 44px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
header{padding-top:env(safe-area-inset-top,0px);height:calc(72px + env(safe-area-inset-top,0px))}
main,#welcome{min-width:0}
input,.animal-row input,.animal-row select{font-size:16px}
.entry-form fieldset{min-width:0}
button,summary{min-height:44px}
button{min-width:44px;overflow-wrap:anywhere}
.nav{min-width:0}
.plan-links button{min-height:44px;padding:8px 12px}
.member-card strong,.winner strong,.archive-name{overflow-wrap:anywhere}
input[type=date]{display:block;max-width:100%;min-width:0}
nav{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
#toast{bottom:calc(100px + env(safe-area-inset-bottom,0px))}
dialog,#draw-dialog,#insights-dialog,#name-dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;max-width:calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}
dialog{width:min(440px,calc(100% - 24px))}#draw-dialog{width:min(460px,calc(100% - 24px))}#insights-dialog{width:min(480px,calc(100% - 24px))}
.wheel-lights i{top:0;left:calc(50% - 4px);height:50%;width:8px;transform-origin:50% 100%;transform:rotate(var(--angle));background:none;box-shadow:none;border:0;border-radius:0}
.wheel-lights i::before{content:'';position:absolute;top:10px;left:0;width:8px;height:8px;border-radius:50%;background:#fff9d5;box-shadow:0 0 4px 2px #ffe49b,0 0 12px #f7bd35;border:1px solid #d6a94c}
.wheel-wrap.spinning .wheel-lights i{animation:none}
.wheel-wrap.spinning .wheel-lights i::before{animation:casino-lights .65s ease-in-out infinite alternate;animation-delay:calc(var(--lamp) * -65ms)}
@media(prefers-reduced-motion:reduce){.wheel-wrap.spinning .wheel-lights i::before{animation:none}}
@media(max-width:480px){
 .animal-row,.animal-row:has(.species-preview[hidden]){grid-template-columns:56px minmax(0,1fr) 44px;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid #80673566}
 .species-preview{grid-column:1;grid-row:1;width:56px;height:56px}
 .animal-row>label:has(.animal-species){grid-column:2 / 4;grid-row:1}
 .animal-row:has(.species-preview[hidden])>label:has(.animal-species){grid-column:1 / 4}
 .animal-row>label:has(.animal-count){grid-column:1 / 3;grid-row:2}
 .animal-row>button{grid-column:3;grid-row:2;width:44px;height:50px}
 .animal-row select{font-size:16px;padding-left:12px}
 .animal-row .custom-species{grid-row:3;grid-column:1 / 4}
 .share-card{padding:20px 14px}
 .share-card>strong{font-size:clamp(24px,8vw,36px);letter-spacing:4px}
 #draw-dialog,#name-dialog,#insights-dialog{padding:24px 18px}
 #draw-dialog .reveal-name{font-size:clamp(24px,7vw,32px)}
 .admin-controls{gap:12px}.admin-controls input{flex-shrink:0}
}
@media(max-height:480px) and (orientation:landscape){
 header{height:calc(56px + env(safe-area-inset-top,0px))}
 main,#welcome{margin-top:12px}
 #draw-dialog,#name-dialog,#insights-dialog{padding:22px}
 .wheel-wrap{width:min(100%,240px)}
}

/* Forest glass. Registry-inspired effects adapted to the existing DOM:
   no extra client framework, pointer tracking or continuous background animation. */
:root{--muted:#c0cbbf;--line:#a7bd9e30;--gold:#eed190;--glass-edge:#e0edca26;--ink:#faf3dd;background:#081710}
body{background:radial-gradient(ellipse at 5% 0%,#345f424d,transparent 45%),radial-gradient(ellipse at 95% 35%,#a78a3620,transparent 45%),linear-gradient(155deg,#162e21,#081710 75%);background-attachment:scroll;color:var(--ink)}
header{background:#0e241bf2;border-bottom-color:var(--glass-edge);box-shadow:0 1px 0 #0003;gap:14px}
.brand{display:flex;align-items:center;gap:10px;font-size:25px;letter-spacing:-1px;color:#f8e6b5}
.brand-mark{width:33px;height:33px;padding:7px;border:1px solid #f2d38b70;border-radius:11px;background:linear-gradient(145deg,#ecd29926,#e2bb4c08);box-shadow:inset 0 1px 0 #fff5c529;color:#f0d18c;flex-shrink:0}
.brand span{margin-left:-8px}
#header-name{color:#bac8b8}
main,#welcome{background:none;border:0;box-shadow:none;margin-top:12px;padding-top:22px}
h1{font-size:32px;letter-spacing:-1.1px;line-height:1.16;color:#faf3dd}
h2{color:#faf3dd;letter-spacing:-.4px}
p,.hint,#view-description,#entry-description{color:var(--muted)}
.room-heading{border-bottom:1px solid var(--glass-edge);padding-bottom:20px}
.room-heading strong{color:#e5cd96;font-size:16px}
.room-heading span{color:#b8c7b6}
.welcome-art{position:relative;height:148px;border:1px solid #d8cf9940;border-radius:23px;margin:0 0 26px;overflow:hidden;background:#1d3324}
.welcome-art img{width:100%;height:100%;object-fit:cover;object-position:center 40%;display:block}
.welcome-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#06170fe8,#081b1160 65%,transparent),linear-gradient(180deg,#fff4bf15,transparent 50%,#07181080);pointer-events:none}
.welcome-art span{position:absolute;z-index:1;left:21px;bottom:22px;font-size:14px;letter-spacing:2px;font-weight:700;line-height:1.6;color:#f4dfa9;max-width:60%}
.entry-tabs{background:#081a12d9;border:1px solid #cfdda52b;padding:5px;border-radius:17px;box-shadow:inset 0 2px 6px #0004;margin:24px 0}
.entry-tabs button{border-radius:12px;min-height:48px;color:#c1cbbd;transition:color .2s,background .2s,box-shadow .2s}
.entry-tabs .active{background:linear-gradient(155deg,#f2dfa5,#d7b46b);color:#292411;box-shadow:inset 0 1px 0 #fff9de,0 3px 9px #0004}
.entry-form{gap:23px}.entry-form fieldset{border-top-color:var(--glass-edge)}
input,.animal-row select{border:1px solid #b4c69d48;background-color:#091d15;box-shadow:inset 0 2px 6px #0003,0 1px 0 #ffffff08;border-radius:13px;min-height:54px;transition:border-color .2s,box-shadow .2s}
input:focus,.animal-row select:focus{border-color:#f2d38b;box-shadow:0 0 0 3px #e8cb7a14,inset 0 2px 6px #0003}
input::placeholder{color:#9eaf9d}#room-code{font-size:28px;letter-spacing:7px;color:#f7dfaa}
button.dark,.join,#update-app,#draw-dialog #confirm-draw{position:relative;isolation:isolate;overflow:hidden;border:1px solid #f8e7b0;border-radius:14px;background:linear-gradient(175deg,#fff0b9 0%,#ebcd83 43%,#cfaa5d 100%);color:#302610;box-shadow:inset 0 1px 0 #fffbe7,inset 0 -2px 0 #a57e3544,0 5px 15px #0003;min-height:50px;transition:transform .2s,box-shadow .2s,filter .2s}
button.dark::after,.join:not(.joined)::after{content:'';position:absolute;inset:-75% -50%;background:linear-gradient(110deg,transparent 40%,#ffffff55 49%,transparent 58%);transform:translateX(-75%);pointer-events:none;animation:gold-sheen 1.15s ease-out .15s 1}
@keyframes gold-sheen{to{transform:translateX(75%)}}
button.dark:active:not(:disabled),.join:active:not(:disabled){transform:translateY(1px) scale(.985);box-shadow:inset 0 2px 4px #67502026,0 2px 6px #0002}
.secondary,#add-animal{background:linear-gradient(160deg,#d7e4bd12,#ceddb404);border:1px solid #c3cfa43b;border-radius:13px;color:#ecdbab;box-shadow:inset 0 1px 0 #ffffff09;transition:background .2s,border-color .2s,transform .2s}
#add-animal{border-style:dashed}
.card,.share-card{border:1px solid var(--glass-edge);background:linear-gradient(145deg,#2c4935e6,#142b20f5 65%);border-radius:20px;box-shadow:inset 0 1px 0 #f0f6d50c,0 8px 25px #0002}
.card.choice.has-photo{padding:10px;gap:10px 18px;grid-template-columns:112px minmax(0,1fr);min-height:148px}
.animal-photo{width:112px;height:132px;border:0;border-radius:14px;box-shadow:0 3px 12px #0004}
.choice.has-photo .hint{font-size:14px}.choice.has-photo h2{font-size:23px}
.choice.has-photo .join{font-size:14px;border-radius:11px;padding:10px 15px;min-height:44px}
.card.choice.selected{border-color:#d9c080a8;background:linear-gradient(140deg,#425536c9,#1b3625 70%);box-shadow:inset 0 1px 0 #ffe2a12b,0 0 0 1px #d5b96a0c,0 8px 25px #0002}
.card.choice.selected .animal-photo{outline:1px solid #e9cc8c66}
.join.joined{background:linear-gradient(150deg,#b4d29b22,#a9c88908);color:#f2e2af;border:1px solid #e5ce7e70;box-shadow:inset 0 1px 0 #ffffff0c}
.card .finished{color:#d9d4b3}.choice .hint,.finished,details{color:#bfccb9}
.result-summary{padding:15px;gap:15px;min-height:87px}
.result-summary img{border:0;border-radius:12px}.result-summary-text strong{font-size:22px;color:#f5e7c5}
.result-summary-text>span{color:#c1cbb9}.result-chevron{transition:transform .25s ease}
.result-accordion[open] .result-summary{border-bottom-color:var(--glass-edge)}
.result-winners{animation:glass-reveal .25s ease-out}
@keyframes glass-reveal{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}
.winner,.winner.winner-result{border-color:#bdca9d33;border-left-color:#d7bf81;border-radius:13px;background:linear-gradient(125deg,#cad8b013,#d1e2c504);box-shadow:inset 0 1px 0 #fff7cb08}
.winner.winner-result.mine{background:linear-gradient(125deg,#c8b9672e,#b0ca8720);border-color:#dcc17a80;border-left-color:#f6d98d}
.result-winners .winner-label span,.result-winners .winner.winner-result .winner-share{font-size:14px}
.share-card>strong{background:linear-gradient(160deg,#fff3cb,#dfbd70);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:none}
.member-card{border-bottom-color:var(--glass-edge)}
.plan-links{gap:8px}.plan-links button{padding:8px 16px;border:1px solid var(--glass-edge);background:#d7e7bd0a;border-radius:22px;color:#e6d7ac}
nav{left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:576px;margin-inline:auto;gap:4px;padding:7px;border:1px solid #d0e3b54d;border-radius:25px;background:linear-gradient(150deg,#304b3bf5,#10291ff5);box-shadow:inset 0 1px 0 #fff4c329,inset 0 -1px 0 #0004,0 12px 35px #0007}
.nav{position:relative;isolation:isolate;border-radius:18px;min-height:62px;color:#c2cdbb;font-size:13px;font-weight:600;gap:5px;padding:7px 2px;transition:color .2s,background .2s,box-shadow .2s}
.nav>span{display:grid;place-items:center;height:24px;line-height:24px}.nav svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s cubic-bezier(.2,.8,.3,1.3)}
.nav.active{background:linear-gradient(160deg,#e4cf8c33,#c9b15b0c);color:#ffe7a8;box-shadow:inset 0 1px 0 #fff0bd35,inset 0 0 0 1px #e8cc7e55,0 3px 8px #0002;border-radius:18px}
.nav.active svg{transform:translateY(-1px) scale(1.08)}
.nav.active::after{content:'';position:absolute;top:0;left:30%;right:30%;height:1px;background:#fff1b2;box-shadow:0 0 10px #f5d78a80;pointer-events:none}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 nav{background:linear-gradient(145deg,#425a468c,#132d22d9);-webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%)}
}
dialog,#draw-dialog,#insights-dialog,#name-dialog{border:1px solid #ddcf925e;border-radius:24px;background:radial-gradient(ellipse at 20% 0%,#36543c,#10271b 70%);box-shadow:inset 0 1px 0 #fff1b921,0 24px 90px #0009;color:#faf0d5}
dialog[open]{animation:glass-reveal .22s ease-out}
dialog::backdrop,#draw-dialog::backdrop{background:#030c09ba;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.close{color:#e8d6a5;border-radius:50%;transition:background .2s}
#draw-dialog .wheel-live{border-radius:16px;background:linear-gradient(135deg,#fff1b5,#dec07a);box-shadow:inset 0 1px 0 #fffbe5,0 6px 20px #0003}
#draw-dialog .reveal-name{animation:winner-arrive .45s cubic-bezier(.2,.8,.3,1.2)}
@keyframes winner-arrive{from{opacity:.3;transform:translateY(8px) scale(.95)}to{opacity:1;transform:none}}
#toast{border-radius:16px;bottom:calc(105px + env(safe-area-inset-bottom,0px))}
@media(hover:hover) and (pointer:fine){
 .nav:hover:not(.active),.secondary:hover,.close:hover{background-color:#c7d8b314}
 .card.choice:hover{border-color:#d8d5a168}
 button.dark:hover:not(:disabled)::after,.join:not(.joined):hover:not(:disabled)::after{animation:gold-sheen .9s ease-out 1}
}
@media(max-width:650px){
 main,#welcome{padding:16px 8px;margin:10px 16px 16px}
 header{padding-inline:24px}#welcome h1{font-size:30px}
 .card.choice.has-photo{gap:9px 14px}.room-heading{padding-bottom:19px}
}
@media(max-width:360px){
 header{padding-inline:17px}.brand{font-size:23px}.brand-mark{width:29px;height:29px}
 main,#welcome{margin-inline:12px;padding-inline:4px}
 #welcome h1,h1{font-size:28px}.welcome-art{height:128px}
 .card.choice.has-photo{grid-template-columns:86px minmax(0,1fr);gap:9px 12px}
 .animal-photo{width:86px;height:126px}.choice.has-photo h2{font-size:21px}
 nav{left:8px;right:8px;padding:6px;gap:2px;border-radius:22px}.nav{font-size:12px}
}
@media(max-height:480px) and (orientation:landscape){
 .welcome-art{height:100px;margin-bottom:18px}nav{bottom:calc(8px + env(safe-area-inset-bottom,0px));padding:5px}.nav{min-height:50px;flex-direction:row;justify-content:center;gap:8px}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media(prefers-reduced-transparency:reduce){nav{background:#173325;-webkit-backdrop-filter:none;backdrop-filter:none}dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:#030c09e6}}

/* Illustrated wildlife: show the whole silhouette, including antlers, at every size. */
.animal-photo,.species-preview,.result-summary img,.result-heading img{
 object-fit:contain;padding:4px;background:radial-gradient(ellipse at center,#dcca8e16,transparent 75%);
 border:0;box-shadow:none;
}
.card.choice.selected .animal-photo{outline:0}
.species-preview{border-radius:12px}
#language{font:inherit;font-size:16px;min-height:44px;max-width:134px;flex-shrink:0;padding:8px 26px 8px 10px;color:#f4dfa9;border:1px solid #d5c38755;border-radius:12px;background:#193426;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23e5c47b' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}
#language:focus-visible{outline:3px solid #ffe3a0;outline-offset:3px}
#header-name{min-width:0;flex:1;text-align:right}header{gap:10px}
#invite-fallback{margin-top:18px;text-align:left}#invite-link{font-size:16px}
@media(max-width:650px){header{flex-wrap:wrap;height:auto;min-height:76px;padding-block:calc(12px + env(safe-area-inset-top,0px)) 12px}#header-name{display:none}.brand{flex:1}#language{max-width:124px}}
@media(max-width:360px){.brand{font-size:21px;gap:7px}.brand-mark{width:25px;height:25px;padding:5px}#language{max-width:112px;padding-left:8px}header{gap:6px}}


/* One compact row per animal; details are edited in a focused dialog. */
.animal-row,.animal-row:has(.species-preview[hidden]){grid-template-columns:minmax(0,1fr) 64px 44px;gap:8px;margin:0;padding:10px 0;align-items:end;border-bottom:1px solid #80673544}
.animal-row>label{gap:4px;min-width:0;font-size:14px}
.animal-row>.animal-picker-label{grid-column:1;grid-row:1}
.animal-row>label:has(.animal-count){grid-column:2;grid-row:1}
.animal-row>.remove-animal{grid-column:3;grid-row:1;width:44px;height:48px;min-height:44px}
.animal-row .animal-picker{display:flex;align-items:center;gap:6px;width:100%;min-height:48px;padding:4px 8px;border:1px solid #b4c69d48;border-radius:10px;background:#091d15;color:#fff1d2;font-size:16px;text-align:left}
.animal-row .species-preview{width:32px;height:38px;padding:0;flex-shrink:0}
.animal-picker-text{min-width:0;flex:1;overflow-wrap:anywhere;font-size:16px;line-height:1.25;font-weight:600}
.picker-chevron{font-size:20px;color:#e5c47b;flex-shrink:0}
.animal-row .animal-count{height:48px;min-height:48px;padding:8px;font-size:16px;border-radius:10px}
.animal-row .animal-dialog{width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;overflow-y:auto}
.animal-dialog h2{padding-right:30px;margin-bottom:20px}
.animal-dialog label{display:flex;gap:6px;margin-bottom:16px;font-size:14px}
.animal-dialog input,.animal-dialog select{font-size:16px;min-height:48px;padding-block:10px}
.animal-row .animal-dialog .close{position:absolute;top:10px;right:10px;width:44px;height:44px;min-height:44px;padding:0;font-size:26px}
.animal-row .animal-dialog .save-animal{width:100%;border-radius:10px;margin-top:8px;min-height:48px;font-size:16px;color:#33220a;background:linear-gradient(135deg,#f8dfa0,#c39a49);border:1px solid #f8dfa0}
#create-form fieldset>.hint{margin-bottom:4px}
#add-animal{margin-top:10px;min-height:44px;padding-block:9px}
@media(max-width:360px){.animal-row,.animal-row:has(.species-preview[hidden]){grid-template-columns:minmax(0,1fr) 52px 44px;gap:5px}.animal-row .species-preview{width:25px;height:34px}.animal-row .animal-picker{gap:4px;padding-inline:5px}}

.species-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}
.animal-row .species-choice{display:flex;align-items:center;gap:7px;min-height:52px;padding:8px;border:1px solid #8c804b66;border-radius:10px;background:#10291e;color:#fff1d2;font-size:16px;text-align:left}
.species-choice img{object-fit:contain;flex-shrink:0}
.species-choice span{overflow-wrap:anywhere}
.animal-row .species-choice[aria-pressed=true]{border-color:#f4d58d;background:#3b442a;box-shadow:inset 0 0 0 1px #f4d58d}
@media(max-width:360px){.animal-row .animal-dialog{padding:18px}.animal-row .species-choice{gap:5px;padding:6px}.species-choice img{width:28px;height:32px}}
.entry-form>.dark{scroll-margin-block:16px}
.participant-list{margin:12px 0}.participant-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #c7af6e33}
.participant-row>span{min-width:0;overflow-wrap:anywhere}.participant-row strong,.participant-row small{display:block}.participant-row small{font-size:14px;color:#c6bda4;margin-top:3px}
.participant-action{flex-shrink:0;min-width:88px;min-height:44px;padding:8px 10px;font-size:14px}
.allocation-note{padding:12px;border:1px solid #cbb47766;border-radius:10px;color:#f6dda3;font-size:15px;margin:12px 0}
#directory-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;overflow-y:auto}
#directory-title{padding-right:32px;font-size:26px;margin-bottom:12px}
.directory-actions{display:flex;gap:8px;margin:16px 0}
.directory-actions button{flex:1;min-width:0;font-size:16px;padding:10px}
#directory-refresh,#directory-more{min-height:44px;font-size:14px;padding:8px 12px}
#directory-status{margin:12px 0;font-size:15px}
#directory-list{display:flex;flex-direction:column;gap:10px}
.directory-room{display:flex;flex-direction:column;gap:8px;width:100%;min-height:110px;padding:16px;background:linear-gradient(135deg,#293e2d,#10271d);border:1px solid #bba16470;border-radius:16px;color:#fff0c8;text-align:left;box-shadow:inset 0 1px 0 #ffffff0d}
.directory-room>span{font-size:14px;color:#cfc6ad;overflow-wrap:anywhere}
.directory-room-top{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center}
.directory-room strong{font-size:18px;color:#fff0c8;overflow-wrap:anywhere;min-width:0;flex:1 1 150px}
.room-status{font-size:13px;padding:4px 8px;border-radius:20px;background:#263f2e;border:1px solid #879e6c77;color:#ece7cb;white-space:nowrap}
.status-live{color:#ffe394;border-color:#dfb45d}.status-closed{background:#3a2c26;color:#f0cbb5;border-color:#a8765e}.directory-room>.directory-closes{color:#ffe394;font-weight:700}#entry-registration{margin:0 0 12px;font-weight:700;color:var(--gold,#e5c47b);overflow-wrap:anywhere}.status-completed{background:#3d422a;color:#ffe5a3}
#directory-more{margin-top:14px;width:100%}
@media(max-width:360px){#directory-dialog{padding:18px}.directory-actions{flex-direction:column}}
.card.admin-card{padding:14px 16px}
.admin-animal-heading{display:flex;align-items:center;gap:10px;margin-bottom:2px}
.admin-animal-heading img{width:44px;height:44px;object-fit:contain;flex-shrink:0}
.admin-animal-heading h2{font-size:20px;margin:0}
.admin-card details{margin:2px 0 8px}
.admin-card summary{font-size:14px;min-height:44px;display:flex;align-items:center;cursor:pointer}
.admin-card summary::before{content:'▸';margin-right:6px}.admin-card details[open]>summary::before{content:'▾'}
.admin-draw-controls{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;align-items:end}
.admin-card .admin-controls{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:0;font-size:14px}
.admin-card .admin-controls input{width:100%;height:44px;min-height:44px;padding:8px 10px}
.admin-draw-controls>.dark{min-height:44px;padding:10px;font-size:16px}
.admin-card>.hint,.admin-card>.finished{font-size:14px;margin:8px 0 0}
.admin-card>[data-reset]{margin-top:10px;min-height:44px;padding:8px 12px;font-size:14px}
.admin-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 12px}
.admin-overview>span{display:flex;gap:6px;align-items:baseline;justify-content:center;padding:10px 6px;border:1px solid #ab9a5944;border-radius:12px;font-size:14px;color:#d2c7a6;background:#10281e}
.admin-overview strong{font-size:23px;color:#ffe4a0}
.admin-toolbar{display:flex;gap:8px;margin-bottom:18px}.admin-toolbar>.dark{flex:1;min-width:0;font-size:16px;padding:10px}
.admin-toolbar>.secondary{flex-shrink:0;font-size:14px;padding:10px;min-height:44px}
#admin-add-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px}
#admin-add-title{padding-right:30px}#admin-add-form>.dark{margin-top:18px;scroll-margin-block:12px}
#admin-animal-rows .remove-animal{visibility:hidden}#admin-add-error{color:#ffd7b9;font-size:14px;margin:10px 0}
@media(max-width:360px){#admin-add-dialog{padding:18px}.admin-toolbar{flex-wrap:wrap}.admin-toolbar>.dark{flex-basis:100%}}
/* Compact administration: details are opened only for the selected draw. */
.admin-view main{padding-top:16px}
.admin-view .room-heading{padding-bottom:10px;gap:3px}
.admin-view #section-title{font-size:25px;margin:16px 0 10px}
.admin-view #view-description{display:none}
.admin-view #plan-tools{margin:0}
.admin-view .plan-links{margin:8px 0;gap:8px}
.admin-view .plan-links button{min-height:44px;padding:8px 12px}
.admin-view .admin-overview{margin:8px 0;gap:6px}
.admin-view .admin-overview>span{padding:6px;font-size:13px}
.admin-view .admin-overview strong{font-size:20px}
.admin-view .admin-toolbar{margin-bottom:10px}
.admin-view #cards{gap:8px}
.card.admin-card{padding:0;border-radius:14px;overflow:hidden}
.admin-card>.admin-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:74px;padding:10px 12px;margin:0;list-style:none}
.admin-card>.admin-summary::before{content:none}.admin-summary::-webkit-details-marker{display:none}
.admin-summary .admin-animal-heading{flex:1;min-width:0;margin:0;gap:9px}
.admin-summary img{width:38px;height:42px}
.admin-summary-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.admin-summary-text strong{font-size:18px;line-height:1.2;overflow-wrap:anywhere}
.admin-summary-text>span{font-size:13px;line-height:1.35;color:#cec4a9}
.admin-summary .result-chevron{flex-shrink:0;width:8px;height:8px;margin-right:3px}
.admin-card[open]>.admin-summary{border-bottom:1px solid #a7925055}
.admin-card-body{padding:12px}
.admin-card-body .hint,.admin-card-body .finished{font-size:14px;margin:8px 0}
.admin-card-body .delete-draw{margin-top:12px;padding:8px 12px;min-height:44px;font-size:14px;color:#f0b29c;border-color:#b9836955}
.admin-card-body>[data-reset]{min-height:44px;font-size:14px;padding:8px 12px}
.admin-view main{padding-top:12px}
.admin-view #section-title{font-size:22px;margin:12px 0 6px}
.admin-view .admin-overview{margin:4px 0 8px}
.admin-view .admin-overview>span{border:0;background:transparent;padding:2px 0;justify-content:flex-start}
.admin-view .admin-overview strong{font-size:18px}
.admin-view .admin-toolbar{flex-wrap:nowrap}
.admin-view .admin-toolbar>.dark{flex-basis:auto;font-size:14px;min-height:44px;padding:8px}
.admin-view .admin-toolbar>.secondary{padding:8px;font-size:14px}

/* Hunt directory is the home screen; one hunt opens in its own sheet. */
body{padding-bottom:20px}
body.in-room{overflow:hidden}
#directory-page{max-width:640px;padding:24px;margin:12px auto}
#directory-title{font-size:30px;margin:6px 0 8px;padding:0}
#directory-page>.hint{font-size:16px;margin-bottom:18px}
#directory-page .directory-actions{margin:16px 0 12px}
#directory-page .directory-room{min-height:104px;padding:14px 16px;gap:6px}
#directory-page .directory-room-top{gap:6px}
#directory-page .directory-room strong{font-size:18px}
#directory-page .directory-actions button{min-height:48px}

/* Two entry points, one page per draw. Dialogs are reserved for short actions. */
body,body:not(.in-room){padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
body.in-room{overflow:auto}
html{scroll-padding-block:20px}
body>header{position:relative}
.experience-label{font-size:12px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:#dfbf72}
.directory-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 12px}
.directory-title-row .dark{width:auto;flex-shrink:0;padding:12px 18px}
.directory-title-row h1{min-width:0;margin:0!important}
#directory-page,#welcome,#room{max-width:640px;width:100%;margin:12px auto;padding:24px}
#hunt-page{width:100%;margin:0}
#room{border:0;border-radius:0;background:transparent;box-shadow:none}
.hunt-page-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
#close-hunt{position:static;width:auto;min-height:44px;font-size:14px;padding:10px 14px}
#room .room-heading{gap:8px;padding-bottom:20px}
#room-heading{font-size:28px;line-height:1.2;margin:0;overflow-wrap:anywhere;letter-spacing:-.5px}
/* Your name is the control that opens the per-draw rename (owner decision 2026-11-25): a quiet button with a pencil, no extra text. */
.member-line{display:flex;align-items:center;margin:16px 0 24px;min-width:0}
.member-name-button{display:inline-flex;align-items:center;flex-wrap:wrap;gap:2px 6px;max-width:100%;min-width:44px;min-height:44px;margin:0;padding:6px 10px;border:1px solid #b4a26955;border-radius:12px;background:#ffffff06;box-shadow:none;color:var(--muted);font-size:14px;font-weight:400;text-align:left;overflow-wrap:anywhere}
.member-name-button strong{min-width:0;color:#f6e8bd;font-size:16px}
.member-name-pencil{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:#e5c47b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#section-title{font-size:22px;margin:26px 0 8px}
#view-description{font-size:15px;margin-bottom:18px}
#admin-dashboard .admin-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#admin-share{width:100%}
#plan-tools .plan-links{margin:12px 0}
#cards .result-accordion{margin:0}
.admin-card-body>.result-accordion{background:#0a1b13aa;border-color:#b49a5340;margin:12px 0!important}
#share-dialog{max-width:480px;padding:34px 20px 20px}
#share-dialog .share-card{padding:8px;border:0;background:none;box-shadow:none}
#share-dialog .share-card h2{font-size:24px;padding-right:0}
#share-dialog .share-card strong{font-size:32px}
#cancel-create{margin-bottom:20px}
#update-banner{max-width:592px;margin:12px auto}
#toast{bottom:calc(24px + env(safe-area-inset-bottom,0px))}
#sync-status:empty{display:none}
@media(max-width:480px){
 #directory-page,#welcome,#room{padding:20px 18px;margin:0 auto}
 #directory-title{font-size:26px}.directory-title-row{gap:10px}.directory-title-row .dark{padding:10px 13px;font-size:15px}
 #room-heading{font-size:25px}.hunt-page-top{margin-bottom:20px}
}
@media(max-width:360px){
 #directory-page,#welcome,#room{padding:18px 14px}
 .directory-title-row{align-items:flex-start}.directory-title-row h1{font-size:24px!important;max-width:150px}
 .experience-label{letter-spacing:.05em}
}

/* Account entry uses the same forest glass and gold as the draw screens. */
#auth-page{max-width:500px;margin:32px auto;padding:28px;border:1px solid #7e7745;border-radius:26px;background:linear-gradient(145deg,#294534c9,#0b2119e6);box-shadow:0 18px 70px #0003}
#auth-page h1{font-size:clamp(28px,7vw,38px);line-height:1.15;margin:14px 0}
#auth-page>p{line-height:1.55}#auth-form{display:grid;gap:16px}#auth-form label{display:grid;gap:8px}#auth-form input{width:100%;min-width:0}
.auth-providers{display:grid;gap:10px}.auth-providers button,#auth-submit{width:100%}
.auth-divider{display:flex;align-items:center;gap:14px;margin:20px 0;color:var(--muted,#bfc8b6);font-size:14px}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:#84764766;flex:1}
.auth-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.auth-links button{flex:1;font-size:14px;padding:10px;min-height:44px}
#auth-error{color:#ffe2b3;overflow-wrap:anywhere}#auth-apple-note{font-size:13px;margin:8px 0}
#account-bar{max-width:840px;margin:12px auto 0;padding:0 24px;display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:14px}#account-email{overflow-wrap:anywhere;min-width:0}#account-bar button{flex-shrink:0;font-size:14px;padding:10px 14px}
#legacy-account{padding:16px;margin-bottom:20px;border:1px solid #99824b;border-radius:16px;background:#b9923020}#legacy-account p{font-size:14px;line-height:1.5;margin:0 0 12px}
@media(max-width:540px){#auth-page{margin:18px 12px;padding:22px 18px}#account-bar{padding:0 16px}}

.auth-providers button{display:flex;align-items:center;justify-content:center;gap:12px}.auth-provider-icon{width:24px;height:24px;flex:0 0 24px}.auth-providers #auth-google{background:#fff;color:#1f1f1f;border-color:#dadce0;box-shadow:0 2px 5px #0002}.auth-providers #auth-apple{background:#111d17;color:#fff;border-color:#6d7966}

.self-entry{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #c7af6e33}
.self-entry>span{flex:1 1 110px;min-width:0}.self-entry strong,.self-entry small{display:block;font-size:14px;line-height:1.4}.self-entry small{color:var(--muted);margin-top:3px}
.self-entry .join{flex:1 1 125px;min-height:44px;padding:10px 12px;font-size:15px}.self-entry .finished{flex:1 1 100%}
body.has-admin-nav{padding-bottom:calc(124px + env(safe-area-inset-bottom,0px))}
html:has(body.has-admin-nav){scroll-padding-bottom:calc(124px + env(safe-area-inset-bottom,0px))}
body.has-admin-nav :is(button,input,select,summary){scroll-margin-block:16px}
body.has-admin-nav #toast{bottom:calc(116px + env(safe-area-inset-bottom,0px))}
#admin-navigation:not([hidden]){display:flex}
#admin-navigation .nav{max-width:none;min-height:70px;flex-direction:column;justify-content:center;gap:5px}
#admin-navigation .nav-label{display:block;height:auto;font-size:14px;line-height:1.2;text-align:center;overflow-wrap:normal}
#admin-navigation .nav:disabled{opacity:.45;cursor:default}
@media(max-height:500px) and (orientation:landscape){#admin-navigation .nav{min-height:48px;flex-direction:row;gap:8px}body.has-admin-nav{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}}

/* Personal history and settings use one compact, consistent app navigation. */
.account-page{max-width:640px;margin:0 auto;padding:24px;min-width:0}
.account-page h1{font-size:30px;line-height:1.2;margin:16px 0}.account-page>p{line-height:1.5}
.account-page form,.account-card form{display:grid;gap:12px}.account-page label,.account-card label{display:grid;gap:8px;font-size:16px}
.account-page input,.account-page select,.account-card input,.entry-form select:not(.animal-row select){width:100%;min-width:0;font-size:16px;min-height:48px}
.account-page select,.entry-form select:not(.animal-row select){appearance:none;border:1px solid #73846488;border-radius:14px;color:#ffedbd;padding:12px 42px 12px 14px;background:#081e15 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23e5c47b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center}
.account-page p:empty{display:none}
.account-page button,.account-link{min-height:44px;font-size:16px}
.account-card{border:1px solid #bc9b4b55;border-radius:20px;padding:18px;background:linear-gradient(130deg,#2c4937aa,#10261b);margin:18px 0;min-width:0;overflow-wrap:anywhere}
.account-card h2,.win-card-body h2{font-size:19px;margin:0 0 12px}.account-card p{font-size:16px;line-height:1.5}
.account-card summary{min-height:48px;display:flex;align-items:center;font-size:17px;font-weight:600;cursor:pointer}.account-card details{border-top:1px solid #baa36833;margin-top:12px;padding-top:8px}
.account-card details[open]>summary{margin-bottom:12px}
.account-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.account-actions>*{flex:1 1 130px;min-width:0;text-align:center}
.account-link{display:flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #aa924f;border-radius:14px;color:#f6df9b;padding:10px}
#wins-summary{color:#f5dc9c;font-size:15px;margin:16px 0}#wins-list{display:grid;gap:12px}
.win-card{background:linear-gradient(130deg,#2c4937b8,#11281d);border:1px solid #baa05a66;border-radius:20px;overflow:hidden;margin:0}
.win-card>summary{display:flex;align-items:center;gap:12px;list-style:none;padding:16px;min-height:88px;cursor:pointer}.win-card>summary::-webkit-details-marker{display:none}
.win-card>summary img,.win-symbol{flex:0 0 52px;width:52px;height:52px;object-fit:contain}.win-symbol{display:grid;place-items:center;font-size:28px}
.win-card-title{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}.win-card-title strong{font-size:20px;color:#fff0c7}.win-card-title span{font-size:16px;color:#ead18a}.win-card-title small{font-size:14px;line-height:1.4;color:var(--muted)}
.win-card .result-chevron{flex-shrink:0}.win-card[open] .result-chevron{transform:rotate(225deg)}.win-card-body{padding:0 18px 18px;border-top:1px solid #baa36833}
.win-badge{font-size:16px;color:#f8df92}.sharing-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.sharing-list li{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;padding:12px;border-radius:12px;background:#071a1166;font-size:16px}.sharing-list strong{min-width:0;overflow-wrap:anywhere}.sharing-list span{color:var(--muted);font-size:14px}
.win-card-body>.secondary{width:100%}#settings-logout{width:100%;margin-top:18px}
.danger-zone{border-color:#d29b815c}.danger-button{background:#633b31;color:#ffe9de;border:1px solid #e3aa8d;box-shadow:none}
.account-page .confirm-check{display:flex;align-items:center;gap:12px;line-height:1.5}.confirm-check input{flex:0 0 44px;width:44px;height:44px;accent-color:#d7b563}
.hunt-page-top{flex-wrap:wrap}#room-info{min-height:44px;font-size:14px;padding:10px 14px}#member-status{margin-left:auto}
#directory-join{margin-bottom:10px}#directory-refresh{margin-bottom:10px}
#save-participation{margin-top:24px}#save-participation h2{font-size:20px}
@media(max-width:480px){.account-page{padding:20px 16px}.account-page h1{font-size:27px}.account-card{padding:16px}#admin-navigation .nav{padding:8px 4px;min-width:0}.win-card>summary{padding:14px;gap:10px}}
@media(max-width:360px){.account-page{padding:18px 12px}.account-card{padding:14px}.win-card>summary{padding:12px;gap:8px}.win-card-title strong{font-size:18px}#account-bar{flex-wrap:wrap}}

/* Searchable flag picker shared by settings and the participant web. */
.language-picker{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-height:54px;padding:12px 14px;border:1px solid #a4935c80;border-radius:16px;background:linear-gradient(145deg,#254333,#0b2118);box-shadow:inset 0 1px 0 #fff1bf15;color:#ffedbd;font-size:16px}
.language-picker:hover{border-color:#e4c879}.language-picker:focus-visible,.language-option:focus-visible{outline:3px solid #f8dc91;outline-offset:3px}
.language-flag{display:block;flex:0 0 32px;width:32px;height:24px;object-fit:cover;border-radius:5px;box-shadow:0 0 0 1px #f9e3a626,0 2px 5px #0004}
.language-name{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
.language-chevron{width:9px;height:9px;flex:0 0 9px;transform:rotate(45deg);border-right:2px solid #e5c47b;border-bottom:2px solid #e5c47b;margin:0 3px 5px 5px}
#language.language-picker{width:auto;max-width:190px;min-height:44px;padding:9px 12px;gap:10px;background:linear-gradient(145deg,#254333,#0b2118);font-size:15px}
#language.language-picker .language-flag{width:28px;height:21px;flex-basis:28px}
#language-dialog{width:calc(100% - 28px);max-width:430px;max-height:calc(100dvh - 32px);padding:24px 18px 18px;border-radius:24px;overflow:auto;overscroll-behavior:contain}
#language-dialog h2{font-size:24px;line-height:1.2;margin:0 48px 20px 0;padding:0}
#language-dialog .close{top:10px;right:10px;width:44px;height:44px;min-height:44px}
.language-search-label{display:grid;gap:8px;color:#e6d1a1;font-size:14px;margin-bottom:14px}
#language-search{width:100%;min-width:0;min-height:48px;font-size:16px;margin:0;padding:12px 14px;border-radius:14px;background:#081e15;color:#fff0c8;border:1px solid #82917288}
.language-options{display:grid;grid-template-columns:1fr;gap:8px;max-height:min(380px,calc(100dvh - 240px));min-height:60px;overflow-y:auto;overscroll-behavior:contain;padding:4px;scroll-padding:4px}
.language-option{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:12px;border:1px solid #b3a36b40;border-radius:14px;background:#10291e;box-shadow:none;color:#f5e7c2;text-align:left;font-size:16px}
.language-option[aria-pressed="true"]{border-color:#e0bf67;background:linear-gradient(135deg,#4c5937,#263d26);box-shadow:inset 0 1px 0 #ffe6a140}
.language-option-name{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}.language-check{width:20px;flex:0 0 20px;color:#f9d774;font-size:20px}
#language-empty{font-size:16px;line-height:1.5;margin:16px 4px;color:var(--muted)}
@media(max-width:430px){#language.language-picker .language-name{display:none}#language.language-picker{padding:9px 10px;gap:6px}}
@media(max-height:440px){#language-dialog{padding:18px 14px 12px}#language-dialog h2{font-size:21px;margin-bottom:10px}.language-search-label{margin-bottom:8px}.language-search-label>span{display:none}.language-options{max-height:calc(100dvh - 176px)}}

/* The first screen exposes the task; account and maintenance actions stay secondary. */
body>header{height:60px;padding-inline:20px}#header-name{display:none}
.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 16px}
.page-title-row h1,#directory-title{font-size:26px;line-height:1.2;max-width:none!important;margin:0!important;min-width:0}
.icon-button{width:44px;min-width:44px;height:44px;padding:10px;display:grid;place-items:center}
.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#directory-page .directory-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}
#directory-join,#directory-refresh{margin:0}#directory-create,#directory-join{font-size:15px;padding:10px}
#directory-list{display:grid;gap:10px}#directory-page .directory-room{min-height:96px;padding:12px 14px;margin:0;gap:5px}
#directory-page .directory-room strong{font-size:17px}#directory-page .directory-room>span{font-size:13px}
#wins-page .account-actions{margin:10px 0}#wins-summary{margin:0 0 12px}#wins-status:empty,#directory-status:empty{display:none}
#wins-list{gap:10px}.win-card>summary{min-height:84px;padding:12px}.win-card-title strong{font-size:18px}
.win-card-body .winner-result{padding:12px}.win-card-body h2{margin-top:12px}
#room,#directory-page,.account-page{padding:18px 16px;margin:0 auto}
.hunt-page-top{margin:0 0 8px;gap:8px;flex-wrap:nowrap}
#close-hunt{border:0;background:none;box-shadow:none;padding:6px 0;text-align:left;font-size:13px;min-height:44px}
#close-hunt:before{content:'‹';margin-right:8px;font-size:23px;vertical-align:-1px}
#member-status{font-size:10px;letter-spacing:.06em;white-space:nowrap}
#room .room-heading{display:grid;grid-template-columns:1fr auto;gap:6px 10px;border:0;padding:0;margin:0 0 12px}
#room-heading{grid-column:1/-1;font-size:25px;line-height:1.2}
#room-date{font-size:13px;align-self:center}.room-heading .room-state{font-size:12px;color:#e6d3a2;border:1px solid #b4a26955;border-radius:20px;padding:4px 8px;text-align:center}
.room-sharing{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 4px}
#room-info{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;min-height:48px;padding:6px 8px;font-size:12px;background:#153223}
#room-info strong{font-size:16px;letter-spacing:1px;color:#ffe7a5}#room-copy-link{min-height:48px;padding:8px;font-size:15px}
.member-line{margin:0 0 8px}.member-name-button{font-size:12px}.member-name-button strong{font-size:13px}
.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin:0 0 8px}
#section-title,.admin-view #section-title{font-size:19px;margin:0}
#admin-dashboard #admin-add-game{min-height:44px;padding:6px 10px;font-size:13px;white-space:nowrap}
#view-description{font-size:13px;margin:0 0 12px}.admin-view #view-description{display:none}
#cards{gap:10px}.card.choice{padding:12px;gap:10px;min-height:104px}.choice.has-photo .animal-photo{width:58px;height:64px;object-fit:contain;border-radius:0;background:none}
.card.choice h2{font-size:18px}.card.choice .hint{font-size:12px}.choice .join{min-width:94px;padding:9px;font-size:14px;min-height:44px}
.card.admin-card{position:relative;padding:12px;border-radius:18px;overflow:visible}
.admin-card .admin-animal-heading{display:flex;align-items:center;gap:10px;min-height:44px;margin:0 78px 10px 0}
.admin-card .admin-animal-heading img{width:44px;height:44px;object-fit:contain;flex:0 0 44px}
.admin-card .admin-summary-text strong{font-size:18px}.admin-card .admin-summary-text>span{font-size:12px;line-height:1.4}
.admin-card>.admin-summary{position:absolute;right:10px;top:12px;width:74px;min-height:44px;display:block;margin:0;padding:8px 6px;font-size:12px;border:1px solid #a7925055;border-radius:12px;background:#0c211977}
.admin-card>.admin-summary::before{content:none}.admin-card>.admin-summary[aria-expanded=true]{color:#ffe5a2;border-color:#d6b467;background:#b99e3e26}
.animal-quick-actions{display:flex;gap:8px}.animal-quick-actions:empty{display:none}.animal-quick-actions>button{flex:1;min-width:0;min-height:44px;padding:9px;font-size:14px}
.animal-quick-actions .join:not(.joined){background:#193d2b;color:#f8e6b3;border-color:#aa985c88;box-shadow:none}
.animal-quick-actions .join.joined{background:#364b28;color:#ffe29a;border-color:#c4a75d;box-shadow:inset 0 1px 0 #fff1b41f}
.admin-card-body{padding:12px 0 0;margin-top:12px;border-top:1px solid #a7925044}
.admin-card-body .admin-controls{flex-direction:row;align-items:center;justify-content:space-between;margin:10px 0;gap:8px}
.admin-card-body .admin-controls input{width:80px;font-size:16px}
.admin-card-body .delete-draw{width:100%;margin-top:10px}
.admin-card>.result-accordion{border:0;background:none;box-shadow:none}.admin-card>.result-accordion>.result-summary{padding:0 78px 0 0;min-height:52px;gap:8px}
.admin-card>.result-accordion .result-summary img{width:44px;height:44px}.admin-card .result-summary-text strong{font-size:18px}
.result-summary-text>span{font-size:13px}.result-winners{padding:0}.winner.winner-result{padding:12px;margin-top:10px;gap:4px}
.winner-result strong{font-size:23px;line-height:1.2}.winner-result .winner-label{font-size:12px}.winner-result .winner-share{font-size:13px}
#hunt-more{margin:16px 0}#hunt-more>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:14px}#hunt-more>summary:before{content:'＋'}#hunt-more[open]>summary:before{content:'−'}
#save-participation{margin-top:18px}#save-participation h2{font-size:17px}
#admin-navigation .nav{min-height:58px}#admin-navigation .nav-label{font-size:12px}#admin-navigation .nav svg{width:23px;height:23px}
body.has-admin-nav{padding-bottom:calc(106px + env(safe-area-inset-bottom,0px))}
html:has(body.has-admin-nav){scroll-padding-bottom:calc(106px + env(safe-area-inset-bottom,0px))}
body.has-admin-nav #toast{bottom:calc(100px + env(safe-area-inset-bottom,0px))}
@media(max-width:360px){
 body>header{height:56px;padding-inline:14px}#room,#directory-page,.account-page{padding:12px}
 .page-title-row h1,#directory-title{font-size:24px}.directory-title-row{align-items:center}
 #room-heading{font-size:22px}#room .room-heading{gap:4px 6px}.room-heading .room-state{font-size:10px}#room-date{font-size:12px}
 .member-name-button{font-size:11px;padding-inline:8px}.member-name-button strong{font-size:12px}
 #section-title,.admin-view #section-title{font-size:17px}#admin-dashboard #admin-add-game{font-size:12px;padding-inline:8px}
 .admin-card .admin-summary-text strong{font-size:17px}.admin-card .admin-animal-heading{gap:7px}
 .card.choice{gap:8px}.choice.has-photo .animal-photo{width:44px;height:52px}.card.choice h2{font-size:17px}
 #admin-navigation .nav-label{font-size:11px}.win-card>summary{padding:10px}.win-card-title small{font-size:12px}
}
@media(max-height:500px) and (orientation:landscape){#admin-navigation .nav{min-height:44px}body.has-admin-nav{padding-bottom:86px}}
#registration{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 12px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;font-size:13px}
#registration [role=timer]{font-weight:700;color:var(--gold,#e5c47b);min-width:0;overflow-wrap:anywhere}
#registration .registration-until{color:var(--muted);min-width:0;overflow-wrap:anywhere}
#registration.registration-soon{border-color:var(--gold,#e5c47b)}
#registration [data-reopen]{flex:1 1 100%;min-width:0;min-height:44px;font-size:14px;padding:8px 12px}
.section-toolbar:has(#admin-add-hint){flex-wrap:wrap}
#admin-dashboard:has(#admin-add-hint){flex:1 1 100%;min-width:0}
#admin-dashboard:has(#admin-add-hint) #admin-add-game{width:100%}
#admin-dashboard #admin-add-hint{margin:6px 0 0;font-size:13px}
.admin-view #view-description.closed-note{display:block}
#share-registration{margin:12px 0 0;font-size:14px}
/* Hunting teams: "Mina jaktlag" and the team dialog. */
#my-teams{margin:0 0 18px}#my-teams h2,#teams-empty h2{font-size:19px;margin:0 0 12px}#my-teams-list{display:grid;gap:10px;margin-bottom:12px}#my-teams-list:empty{display:none}
.team-pill{white-space:normal;text-align:center;overflow-wrap:anywhere}.team-pending{margin:0;padding:14px}.team-pending .hint{margin:10px 0}.team-pending button{width:100%}
#teams-empty .directory-actions{margin:12px 0 0}#teams-empty p{margin:0}
#team-dialog{width:min(440px,calc(100% - 24px));padding:28px 20px 20px}#team-dialog h2{font-size:22px;margin:0 44px 12px 0}#team-dialog .close{top:10px;right:10px;width:44px;height:44px;min-height:44px}
#team-form{display:grid;gap:12px}#team-form label{display:grid;gap:8px;margin:0;font-size:16px}#team-form input{width:100%;min-width:0;font-size:16px;min-height:48px}#team-form button{width:100%}
#team-error{color:#ffb4a2;margin:0;overflow-wrap:anywhere}#team-error:empty{display:none}
#team-back{border:0;background:none;box-shadow:none;padding:6px 0;text-align:left;font-size:13px;min-height:44px}#team-back:before{content:'‹';margin-right:8px;font-size:23px;vertical-align:-1px}
.team-page-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}.team-page-top button{min-width:0}#team-heading{overflow-wrap:anywhere}
#team-page section{margin:22px 0}#team-page section h2{font-size:19px;margin:0 0 12px;overflow-wrap:anywhere}#team-request-list,#team-rooms{display:grid;gap:10px}
.team-request{display:grid;gap:10px;padding:14px;border:1px solid #bba16470;border-radius:16px;overflow-wrap:anywhere}.team-buttons{display:flex;gap:8px}.team-buttons button{flex:1;min-width:0}
#team-new-draw{width:100%;margin:0 0 12px}#team-more{width:100%;margin:12px 0 0}#team-rooms-empty{margin:0}
.team-room{display:grid;gap:8px}.team-room>.directory-room{min-height:96px;padding:12px 14px;gap:5px}.directory-room>.team-room-state{color:#ffe394;font-weight:700}
.team-member{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #baa36833;overflow-wrap:anywhere}.team-member-name{flex:1 1 140px;min-width:0}.team-member button{min-width:0}
#entry-team-tip{margin:0 0 12px;overflow-wrap:anywhere}
/* Team statistics (B.7 screen 6): the team page only. Lists, no tables; long names wrap. */
.team-stats-period{margin:0 0 4px}.team-stats-disclaimer{margin:8px 0 14px}.team-stats-note{margin:12px 0;overflow-wrap:anywhere}
#team-stats-content h3{font-size:17px;line-height:1.3;margin:18px 0 10px;color:#fff0ce;overflow-wrap:anywhere}
.team-stats-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}.team-stats-list li{padding:10px 12px;border:1px solid #bba16455;border-radius:12px;line-height:1.45;overflow-wrap:anywhere;min-width:0}
.team-stats-person{display:block}.team-stats-species{display:block;margin-top:4px;font-size:14px;color:#cfc6ad}
.team-stats-overview{margin:0 0 14px;font-weight:600;overflow-wrap:anywhere}
/* Fördelning per vilt: one card per animal (owner decision 2026-11-25). Winner rows are flex: the name wraps on the left, the share count stays right. */
.team-stats-cards{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:10px}.team-stats-card{padding:12px;border:1px solid #bba16455;border-radius:14px;background:#ffffff05;min-width:0;overflow-wrap:anywhere}
.team-stats-card-head{display:flex;align-items:center;gap:12px;min-width:0}.team-stats-photo{width:52px;height:52px;flex:0 0 52px;object-fit:contain}.team-stats-card-text{flex:1;min-width:0}
.team-stats-card h4{margin:0;font-size:17px;line-height:1.3;color:#fff0ce}.team-stats-card-meta{margin:2px 0 0;font-size:14px;line-height:1.4;color:#cfc6ad}
.team-stats-winners{list-style:none;margin:10px 0 0;padding:0}.team-stats-winners li{display:flex;align-items:baseline;gap:12px;padding:8px 0;border-top:1px solid #baa36833;line-height:1.45}
.team-stats-winner-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.team-stats-winner-shares{flex:0 0 auto;margin-left:auto;text-align:right;color:#ffe19b;font-weight:600}
/* Team draws (B.7 screens 4–5 and the attach mode of screen 2): the form's team picker, the room's team chip and the link dialog's choices. */
#create-team-hint{margin:-14px 0 0;overflow-wrap:anywhere}
#room-team-chip{display:block;max-width:100%;margin:0 0 12px;padding:10px 14px;text-align:left;overflow-wrap:anywhere;font-weight:600}#room-team-chip:disabled{opacity:1;cursor:default}#room-team-note{margin:0 0 12px;overflow-wrap:anywhere}
#team-attach-field{margin:0;padding:0;border:0;min-width:0}#team-attach-field legend{padding:0;margin:0 0 8px;font-size:16px;font-weight:600}#team-attach-list{display:grid;gap:4px}
#team-form .team-attach-option{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:48px;font-weight:500;overflow-wrap:anywhere}#team-form .team-attach-option input{flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;accent-color:#d7b563}.team-attach-option span{flex:1;min-width:0}
#team-attach-tip{margin:10px 0 0;overflow-wrap:anywhere}
/* Animal photos: the framed 3:2 photo and the organiser buttons. */
.animal-shot{grid-column:1/-1;flex:1 0 100%;margin:10px 0 0;aspect-ratio:3/2;overflow:hidden;border:1px solid #baa05a66;border-radius:14px;background:#0b1a13}
.animal-shot img{display:block;width:100%;height:100%;object-fit:cover}
.card.choice:has(>.animal-shot),.result-summary:has(>.animal-shot){flex-wrap:wrap}.admin-card>.animal-shot{margin:0 0 10px}
.photo-actions{display:flex;gap:8px;margin:0 0 10px}.photo-actions>button{flex:1;min-width:0;min-height:44px;padding:8px 12px;font-size:14px}
/* Animal photos in Mina vinster. */
.win-card-body>.animal-shot{margin:12px 0 0}
}
/* v4 tokens */
:root {
  /* ---- Skogsglas ---- */
  color-scheme: dark;
  --sky: radial-gradient(120% 70% at 85% -5%, rgba(232, 196, 112, .26), transparent 55%), radial-gradient(90% 60% at 0% 0%, rgba(84, 140, 100, .35), transparent 60%),
         linear-gradient(180deg, #0D2018 0%, #153126 34%, #22463A 56%, #2E5A47 66%, #1B3729 82%, #102219 100%);
  --bg-worst: #2E5A47;                    /* the lightest region behind the glass, used as the base colour */
  --forest-far: #1B3A2B; --forest-mid: #11281C; --forest-near: #07130D; --mist: rgba(170, 214, 180, .16);
  --ink: #F7F1DE; --ink-2: #CBD5C6;
  --glass: rgba(16, 36, 26, .78); --glass-strong: rgba(12, 28, 20, .92); --glass-lite: rgba(14, 32, 24, .64);
  --glass-solid: #15291F; --glass-strong-solid: #102019;
  --glass-edge: rgba(236, 214, 150, .24); --glass-hi: rgba(255, 246, 214, .08);
  --elev: inset 0 1px 0 rgba(255, 246, 214, .06), 0 14px 34px rgba(0, 0, 0, .38), 0 2px 6px rgba(0, 0, 0, .25);
  --link: #A9DEB6; --focus: #A9DEB6; --select: #A9DEB6; --on-select: #0B1A12; --ok: #A9DEB6;
  --p-bg: linear-gradient(180deg, #FFF3C4 0%, #F1D58F 34%, #DDB665 62%, #D3A858 100%); --p-press: linear-gradient(180deg, #E9D394, #D3A858);
  --p-ink: #2A1E07; --p-edge: #FFE9A8; --p-edge-paper: #7A5418; --p-glow: 0 8px 22px rgba(222, 178, 92, .30), 0 2px 0 #6A4A18;
  --s-bg: rgba(255, 255, 255, .07); --s-press: rgba(255, 255, 255, .16); --s-ink: #F7F1DE; --s-edge: rgba(206, 224, 196, .62);
  --in-bg: rgba(6, 18, 12, .55);
  --code: #FFE6A2; --mark: #E8C473; --win-ink: #FFE29A;
  --row-win: linear-gradient(90deg, rgba(240, 206, 128, .16), rgba(240, 206, 128, .07)); --row-win-edge: rgba(240, 206, 128, .5);
  --live-ink: #A8F2C4; --live-bg: rgba(84, 214, 132, .13); --live-edge: rgba(140, 232, 172, .55); --live-dot: #5BE08F;
  --signal: #FF9C8F; --danger-fill: #7E241D; --on-danger: #F7F1DE;
  --tag-bg: rgba(255, 255, 255, .11); --tag-ink: #DCE4D6;
  --tile: radial-gradient(circle at 50% 38%, rgba(236, 200, 120, .28), rgba(255, 255, 255, .04) 62%); --tile-edge: rgba(236, 214, 150, .26); --sil-fill: url(#g-cream); --sil-shadow: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); --sil-ink: rgba(78, 50, 12, .62);
  --scrim: rgba(3, 10, 7, .72);
  --bar-bg: rgba(10, 24, 17, .95);
  --brand-bg: linear-gradient(150deg, rgba(236, 210, 150, .22), rgba(226, 187, 76, .05)); --brand-fg: #F0D18C; --brand-ring: rgba(242, 211, 139, .5);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --r-ctl: 14px; --r-card: 22px; --bar-h: 0px;
  /* icons, drawn as masks so they take currentColor */
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --i-done: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8 5.7-5.8'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5.5l6.5 6.5L9 18.5'/%3E%3C/svg%3E");
  --i-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5.5 8.5 12l6.5 6.5'/%3E%3C/svg%3E");
  --i-chev-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9'/%3E%3C/svg%3E");
  --i-spruce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 13h4l-3 5h5v3h2v-3h5l-3-5h4L12 3Z'/%3E%3C/svg%3E");
  --i-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11M7.5 8 12 3.5 16.5 8M5 12.5V19a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6.5'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 21a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E");
  --i-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h3.5M12.5 7H20M4 17h8.5M17.5 17H20'/%3E%3Ccircle cx='10' cy='7' r='2.5'/%3E%3Ccircle cx='15' cy='17' r='2.5'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
  --i-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='11.5' height='11.5' rx='2'/%3E%3Cpath d='M15.5 8.5V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7.5a2 2 0 0 0 2 2h2.5'/%3E%3C/svg%3E");
  --i-ticket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2V10a2 2 0 0 0 0 4v2.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2V14a2 2 0 0 0 0-4Z'/%3E%3Cpath d='M14.5 6v2M14.5 11v2M14.5 16v2'/%3E%3C/svg%3E");
  --i-ticket-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2V10a2 2 0 0 0 0 4v2.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2V14a2 2 0 0 0 0-4Z'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.8 2.8 19.5h18.4Z'/%3E%3Cpath d='M12 10v4.2M12 17.2h.01'/%3E%3C/svg%3E");
  --i-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L18.5 9.5a2.8 2.8 0 0 0-4-4L4 16v4Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E");
  --pointer-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 42'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%238C5F1E'/%3E%3Cstop offset='.45' stop-color='%23FFF2A7'/%3E%3Cstop offset='.7' stop-color='%23D9A646'/%3E%3Cstop offset='1' stop-color='%23754A13'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 40 3 7A4 4 0 0 1 6.6 1.5h18.8A4 4 0 0 1 29 7Z' fill='url(%23p)' stroke='%234A3410' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='10' r='3.4' fill='%232A1E07'/%3E%3C/svg%3E");
  --hub-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 5 13h4l-3 5h5v3h2v-3h5l-3-5h4L12 3Z' fill='none' stroke='%23F0D18C' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F1DE' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html.t-dag {
  /* ---- Dagsljus ---- */
  color-scheme: light;
  --sky: radial-gradient(70% 45% at 88% 4%, rgba(255, 226, 158, .85), rgba(255, 226, 158, 0) 70%), radial-gradient(100% 60% at 10% 0%, rgba(196, 226, 238, .9), transparent 70%),
         linear-gradient(180deg, #CBE3EE 0%, #DCEBEA 30%, #EEF0E0 52%, #F7EBCF 64%, #EADFC6 100%);
  --bg-worst: #B8D0C2;                    /* the near ridge: pale daylight haze, so dark text stays legible over it */
  --forest-far: #D8E6DD; --forest-mid: #C9DCCF; --forest-near: #B8D0C2; --mist: rgba(255, 255, 255, .5);
  --ink: #12261B; --ink-2: #3D5045;
  --glass: rgba(255, 255, 255, .82); --glass-strong: rgba(255, 255, 255, .93); --glass-lite: rgba(255, 255, 255, .7);
  --glass-solid: #F4F7F4; --glass-strong-solid: #FAFCFA;
  --glass-edge: rgba(255, 255, 255, .95); --glass-hi: rgba(255, 255, 255, .9);
  --elev: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(20, 50, 35, .10), 0 10px 26px rgba(20, 50, 35, .14), 0 30px 50px -28px rgba(20, 50, 35, .35);
  --link: #1D5A3B; --focus: #1D5A3B; --select: #1E5C3C; --on-select: #FFFFFF; --ok: #17573A;
  --p-bg: linear-gradient(180deg, #215F45 0%, #1E5B39 40%, #184A30 70%, #123A26 100%); --p-press: linear-gradient(180deg, #1F5C40, #123A26);
  --p-ink: #FFFFFF; --p-edge: #164730; --p-edge-paper: #164730; --p-glow: 0 8px 20px rgba(30, 92, 60, .28), 0 2px 0 #0E2E1E;
  --s-bg: rgba(255, 255, 255, .92); --s-press: #E3ECE6; --s-ink: #12261B; --s-edge: #4F6A5B;
  --in-bg: rgba(255, 255, 255, .95);
  --code: #12261B; --mark: #7A5410; --win-ink: #573B06;
  --row-win: linear-gradient(90deg, #FBEFCB, #FFF7E2); --row-win-edge: #C9A048;
  --live-ink: #10522F; --live-bg: rgba(40, 160, 95, .12); --live-edge: rgba(30, 110, 65, .5); --live-dot: #1E9C5A;
  --signal: #A3231B; --danger-fill: #A3231B; --on-danger: #FFFFFF;
  --tag-bg: #E2EBE5; --tag-ink: #33463B;
  --tile: radial-gradient(circle at 50% 35%, #FFFFFF, #E5EFE8 70%); --tile-edge: rgba(30, 80, 55, .16); --sil-fill: url(#g-forest); --sil-shadow: drop-shadow(0 2px 2px rgba(20, 60, 40, .25)); --sil-ink: rgba(226, 242, 232, .62);
  --scrim: rgba(20, 40, 30, .45);
  --bar-bg: rgba(255, 255, 255, .95);
  --brand-bg: linear-gradient(150deg, #2D6A4C, #163D2A); --brand-fg: #FFFFFF; --brand-ring: transparent;
  --select-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312261B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
/* without backdrop-filter the glass is opaque */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root { --glass: var(--glass-solid); --glass-strong: var(--glass-strong-solid); --glass-lite: var(--glass-solid); }
}
:root {
  --settled-bg: rgba(169, 222, 182, .13); --settled-band: rgba(169, 222, 182, .17); --settled-edge: rgba(169, 222, 182, .55); --settled-ink: #D2F0D9;
  --left-edge: rgba(236, 214, 150, .62);
  --draw-bg: #2C5A44; --draw-press: #234A37; --draw-ink: #FFF3D6; --draw-edge: #A9DEB6;
  --hero-scrim: linear-gradient(180deg, rgba(21, 41, 31, 0) 36%, rgba(21, 41, 31, .72) 74%, #15291F 96%);
  --photo-print: #FBFAF5;
  --i-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.6A1.6 1.6 0 0 1 5.1 7h2.6l1.6-2.3h5.4L16.3 7h2.6a1.6 1.6 0 0 1 1.6 1.6v9.3a1.6 1.6 0 0 1-1.6 1.6H5.1a1.6 1.6 0 0 1-1.6-1.6Z'/%3E%3Ccircle cx='12' cy='12.9' r='3.6'/%3E%3C/svg%3E");
  --i-wheel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12.5' r='8.5'/%3E%3Cpath d='M12 4v17M4.6 8.3l14.8 8.4M19.4 8.3 4.6 16.7'/%3E%3Cpath d='M9.5 1.8h5L12 4.6Z' fill='black'/%3E%3C/svg%3E");
}
html.t-dag {
  --settled-bg: rgba(196, 228, 207, .62); --settled-band: #CBE5D4; --settled-edge: #6E9A80; --settled-ink: #0F3D27;
  --left-edge: #6A8174;
  --draw-bg: #DCEEE2; --draw-press: #C9E3D2; --draw-ink: #0F3D27; --draw-edge: #1E5C3C;
  --hero-scrim: linear-gradient(180deg, rgba(244, 247, 244, 0) 48%, rgba(244, 247, 244, .62) 80%, #F4F7F4 97%);
}
/* v4 base */
html{background:var(--bg-worst)}
body{background:transparent;color:var(--ink);font:400 1.0625rem/1.45 var(--font);font-variant-numeric:tabular-nums;overflow-wrap:break-word}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain, none), var(--forest-near-img, none) center bottom / 100% auto no-repeat, var(--mist-img, none) center 80% / 100% 34% no-repeat,
              var(--forest-mid-img, none) center bottom / 100% auto no-repeat, var(--forest-far-img, none) center bottom / 100% auto no-repeat, var(--sky); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.625rem; font-weight: 700; letter-spacing: -.018em; line-height: 1.15; }
h2 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a{color:var(--link)}
select option{background:var(--glass-strong-solid);color:var(--ink)}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .disc { transition: none !important; }
}
.choice-row { font: inherit; text-align: left; display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid var(--s-edge); border-radius: var(--r-ctl); background: var(--s-bg); color: var(--ink); cursor: pointer; }
.choice-row:active { background: var(--s-press); }
.choice-row[aria-checked=true] { border-color: var(--select); box-shadow: inset 0 0 0 1px var(--select); background: rgba(169, 222, 182, .10); }
html.t-dag .choice-row[aria-checked=true] { background: #E8F2EB; }
.choice-row.disabled { cursor: default; color: var(--ink-2); border-style: dashed; }
.choice-text { flex: 1; min-width: 0; font-weight: 600; }
.choice-row.check .choice-text { font-weight: 400; }
.mark { flex: none; width: 28px; height: 28px; border: 2px solid var(--s-edge); background: transparent; display: inline-flex; align-items: center; justify-content: center; margin-top: -1px; }
.mark.radio { border-radius: 50%; }
.mark.box { border-radius: 8px; }
[aria-checked=true] > .mark { border-color: var(--select); background: var(--select); }
[aria-checked=true] > .mark.radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-select); }
[aria-checked=true] > .mark.box::after { content: ""; width: 18px; height: 18px; background: var(--on-select); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
/* v4 skin (Task 2): the glass look on the app's real selectors. Unlayered, so it wins over @layer legacy; tokens only, so Dagsljus follows. */
/* the legacy variables follow the theme, so every legacy var(--muted|--gold|--green|--line) reads in both themes; --rule and --inset-card are the dividers and the quiet card inside a panel */
:root{--muted:var(--ink-2);--gold:var(--win-ink);--green:var(--win-ink);--line:var(--rule);--rule:var(--glass-edge);--inset-card:rgba(255,255,255,.04)}
html.t-dag{--rule:rgba(30,70,50,.14);--inset-card:#F2F6F3}
html{scroll-padding-top:80px}
/* header (v4 .top, .brand) */
body>header{position:sticky;top:0;z-index:6;min-height:64px;height:auto;flex-wrap:wrap;gap:8px;row-gap:4px;padding:max(8px,env(safe-area-inset-top,0px)) max(16px,calc((100% - 640px)/2)) 8px;background:var(--glass-strong);-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%);border-bottom:1px solid var(--glass-edge);box-shadow:none}
@media(max-height:500px) and (orientation:landscape){body>header{position:relative}} /* a short landscape screen keeps its height for content */
.brand{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 4px;margin-left:-4px;border-radius:8px;font-weight:700;font-size:1.25rem;letter-spacing:-.02em;color:var(--ink);text-decoration:none;text-transform:capitalize}
.brand span{display:none}
.brand::after{content:"";position:absolute;left:26px;top:calc(50% - 12px);width:7px;height:7px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#FFE7A8,#D49A3E);box-shadow:0 0 6px rgba(240,200,110,.8);pointer-events:none}
.brand-mark{flex:none;width:34px;height:34px;padding:6.5px;border:0;border-radius:11px;background:var(--brand-bg);color:var(--brand-fg);box-shadow:inset 0 0 0 1px var(--brand-ring),inset 0 1px 0 rgba(255,245,197,.2),0 3px 8px rgba(0,0,0,.2)}
.brand-mark path{stroke-width:1.8}
#header-name{color:var(--ink-2)}
/* one glass panel per page; a floating page (R-3) has none */
main,#welcome,#auth-page,.account-page{width:auto;max-width:min(640px,calc(100% - 24px));margin:12px auto 16px;background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);border-radius:var(--r-card);box-shadow:var(--elev);color:var(--ink)}
#auth-page{max-width:min(500px,calc(100% - 24px))}
main.floating{background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;border-radius:0;box-shadow:none}
@media(max-width:360px){main,#welcome,#auth-page,.account-page{max-width:calc(100% - 16px);margin-top:8px}}
/* cards: quiet inside a panel, full glass on a floating page */
.card,.account-card,.win-card,.directory-room,.team-request,.share-card,.empty,details.danger-zone,#legacy-account{background:var(--inset-card);border:1px solid var(--rule);border-radius:var(--r-card);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--ink)}
.floating :is(.card,.account-card,.win-card,.directory-room,.team-request,.share-card,.empty,details.danger-zone){background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border-color:var(--glass-edge);box-shadow:var(--elev)}
.admin-card>.result-accordion{background:none;border:0;box-shadow:none}
.card.choice.selected{background:var(--inset-card);border-color:var(--ok);box-shadow:inset 0 0 0 1px var(--ok)}
.card.choice.selected .animal-photo{outline:0}
.empty>span{color:var(--mark)}
/* text */
h1,h2,h3,h4,legend,label,p{color:var(--ink)}
.hint,small,.finished,details,#view-description,.card .finished,.choice .hint,#directory-status,#wins-status,#team-status,#team-stats-status,#auth-loading,#account-loading-status,#legacy-status,#claim-status,#settings-name-status,#settings-language-status,#refresh-account-status,#email-change-status,#password-change-status,#settings-identity{color:var(--ink-2)}
[role=alert],#sync-status{color:var(--signal)}
legend{font-weight:700}
label{font-weight:600}
/* headings: the screens' own sizes and spacing on top of the v4 scale */
#welcome h1{margin:4px 0 10px}
.account-page h1{margin:8px 0 16px}
#auth-page h1{font-size:clamp(28px,7vw,34px);line-height:1.15;margin:14px 0}
#room-heading{font-size:1.5625rem;line-height:1.2;letter-spacing:-.02em}
main h2,#welcome h2,dialog h2{margin:0 0 8px}
.account-card h2{margin:0 0 12px}
.win-card-body h2,#my-teams h2,#teams-empty h2,#team-page section h2{font-size:1.1875rem;margin:0 0 12px}
.win-card-body h2{margin-top:12px}
#section-title,.admin-view #section-title{font-size:1.1875rem;margin:0}
.choice h2{margin:0 0 4px}
.card.choice h2{font-size:1.125rem}
dialog h2{padding-right:44px;margin-top:6px}
#draw-dialog h2{font-size:1.5rem;text-align:center;padding-inline:44px;margin:6px 0 8px}
#language-dialog h2{font-size:1.5rem;line-height:1.2;margin:0 48px 20px 0;padding:0}
#team-dialog h2{font-size:1.375rem;margin:0 48px 12px 0;padding:0}
.animal-dialog h2{padding-right:48px;margin-bottom:20px}
#save-participation h2{font-size:1.0625rem}
#team-stats-content h3{font-size:1.0625rem;line-height:1.3;margin:18px 0 10px}
.team-stats-card h4{color:var(--ink)}
@media(max-width:480px){#room-heading{font-size:1.5rem}}
@media(max-width:360px){#room-heading{font-size:1.375rem}#section-title,.admin-view #section-title{font-size:1.0625rem}.card.choice h2{font-size:1.0625rem}}
/* buttons: gold primary (forest green in Dagsljus), quiet secondary, red danger */
button.dark,.join,#update-app,#confirm-draw,.save-animal{position:relative;isolation:isolate;overflow:hidden;min-height:56px;border:1px solid var(--p-edge);border-radius:var(--r-ctl);background:var(--p-bg);color:var(--p-ink);font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -2px 0 rgba(0,0,0,.16),var(--p-glow);text-shadow:none;transition:transform 80ms linear,filter 80ms linear,background-color 80ms linear}
/* :where() keeps these at the base rule's weight, so the secondary, joined and provider buttons below still win */
:where(html.t-dag) button.dark,:where(html.t-dag) .join,:where(html.t-dag) #update-app,:where(html.t-dag) #confirm-draw,:where(html.t-dag) .save-animal{box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -2px 0 rgba(0,0,0,.22),var(--p-glow)}
:where(button.dark,.join,#update-app,#confirm-draw,.save-animal)::after{content:"";position:absolute;inset:1px 1px 52% 1px;border-radius:13px 13px 40% 40%/13px 13px 12px 12px;background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.05));transform:none;animation:none;z-index:-1;pointer-events:none}
:where(html.t-dag) :where(button.dark,.join,#update-app,#confirm-draw,.save-animal)::after{background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,0))}
:where(button.dark,.join,#update-app,#confirm-draw,.save-animal):not(.joined):active:not(:disabled){background:var(--p-press);box-shadow:inset 0 2px 4px rgba(0,0,0,.3);transform:translateY(1px)}
.entry-form button.dark,#confirm-draw{min-height:60px;font-size:1.1875rem}
.secondary,button.secondary,#add-animal,.account-link,.join.joined,.animal-quick-actions .join:not(.joined){background:var(--s-bg);color:var(--s-ink);border:1px solid var(--s-edge);border-radius:var(--r-ctl);box-shadow:inset 0 1px 0 var(--glass-hi);font-weight:600;text-shadow:none}
#add-animal{border-style:dashed}
.join.joined,.animal-quick-actions .join.joined{border-color:var(--select);box-shadow:inset 0 0 0 1px var(--select)}
.join.joined::after,.animal-quick-actions .join::after{display:none}
:where(.secondary,#add-animal,.account-link,.join.joined):active:not(:disabled){background:var(--s-press)}
.danger-button{width:100%;min-height:60px;border:1px solid var(--signal);border-radius:var(--r-ctl);background:var(--danger-fill);color:var(--on-danger);font-size:1.125rem;font-weight:700;box-shadow:none}
.delete-draw,.admin-card-body .delete-draw{background:var(--s-bg);color:var(--signal);border-color:var(--signal)}
button:disabled:not(.nav),#confirm-draw:disabled,#update-app:disabled{opacity:1;background:transparent;color:var(--ink-2);border:1px dashed var(--s-edge);box-shadow:none;transform:none;filter:none;cursor:not-allowed}
button:disabled::after{display:none}
#admin-navigation .nav:disabled{opacity:1;cursor:default}
#room-team-chip:disabled{cursor:default}
/* back buttons (v4 .back) */
#close-hunt,#team-back,#cancel-create{display:inline-flex;align-items:center;gap:2px;min-height:48px;padding:0 12px 0 2px;border:0;border-radius:14px;background:none;box-shadow:none;color:var(--link);font-size:.9375rem;font-weight:600}
#close-hunt:before,#team-back:before,#cancel-create:before{content:"";flex:none;width:22px;height:22px;margin:0;background:currentColor;-webkit-mask:var(--i-chev-l) center/contain no-repeat;mask:var(--i-chev-l) center/contain no-repeat}
.floating :is(#close-hunt,#team-back,#cancel-create){background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
/* the dialog close: a quiet 48 x 48 button with the x icon */
dialog .close{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:var(--ink);font-size:0;line-height:0}
dialog .close::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--i-x) center/contain no-repeat;mask:var(--i-x) center/contain no-repeat}
dialog .close:disabled{border:0;color:var(--ink-2)}
/* form controls */
input:where(:not([type=checkbox],[type=radio],[type=file])),select,.animal-picker,.language-picker{min-height:56px;font-size:1.125rem;border:1px solid var(--s-edge);border-radius:var(--r-ctl);background-color:var(--in-bg);color:var(--ink);box-shadow:none}
select,.account-page select,.entry-form select:not(.animal-row select),.animal-row select{-webkit-appearance:none;appearance:none;padding-right:44px;font-size:1.0625rem;background:var(--in-bg) var(--select-img) right 14px center/22px no-repeat;color:var(--ink)}
input:focus,select:focus,.animal-row select:focus{outline:none;border-color:var(--focus);box-shadow:inset 0 0 0 1px var(--focus)}
input[aria-invalid=true]{border-color:var(--signal);box-shadow:inset 0 0 0 1px var(--signal)}
input::placeholder{color:var(--ink-2);opacity:1}
input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--glass-solid) inset;-webkit-text-fill-color:var(--ink)}
input[type=checkbox],input[type=radio]{accent-color:var(--select)}
#room-code,#team-code{font-size:1.5rem;font-weight:700;letter-spacing:.08em;color:var(--ink)}
.entry-form fieldset,.account-card details,.win-card-body,.admin-card-body,.team-member,.team-stats-winners li{border-color:var(--rule)}
.animal-row,.animal-row:has(.species-preview[hidden]),.participant-row,.self-entry{border-bottom-color:var(--rule)}
.animal-row .remove-animal,.picker-chevron{color:var(--ink-2)}
.language-chevron{border-color:var(--ink-2)}
.animal-picker,.language-picker{text-align:left;background:var(--in-bg)}
#language.language-picker{min-height:48px;background:var(--s-bg);color:var(--s-ink);font-size:1rem}
.animal-row .species-choice,.language-option{background:var(--s-bg);color:var(--ink);border:1px solid var(--s-edge);border-radius:var(--r-ctl);box-shadow:none}
.animal-row .species-choice[aria-pressed=true],.language-option[aria-pressed="true"]{background:rgba(169,222,182,.10);border-color:var(--select);box-shadow:inset 0 0 0 1px var(--select)}
html.t-dag :is(.animal-row .species-choice[aria-pressed=true],.language-option[aria-pressed="true"]){background:#E8F2EB}
.language-check{color:var(--select)}
.language-search-label{color:var(--ink)}
.language-flag{box-shadow:0 0 0 1px var(--rule),0 2px 5px rgba(0,0,0,.2)}
/* dialogs */
dialog{border:1px solid var(--glass-edge);border-radius:26px;background:var(--glass-strong-solid);color:var(--ink);box-shadow:inset 0 1px 0 var(--glass-hi),0 24px 70px rgba(0,0,0,.45)}
html.t-dag dialog{border-color:rgba(30,70,50,.12);box-shadow:0 1px 2px rgba(20,50,35,.10),0 24px 60px rgba(20,50,35,.28)}
dialog::backdrop,#draw-dialog::backdrop{background:var(--scrim)}
#draw-detail{color:var(--ink-2)}
#draw-dialog .winner,.archive-name{color:var(--ink)}
#draw-dialog .wheel-live{color:#30230b} /* dark ink on its own gold plate, in both themes */
/* the app bar (v4 .bar): docked, the active item in the selection colour */
#admin-navigation{left:0;right:0;bottom:0;max-width:none;margin:0;gap:6px;padding:10px max(12px,calc((100% - 640px)/2)) calc(12px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid var(--glass-edge);border-radius:0;background:var(--bar-bg);-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%);box-shadow:0 -10px 30px rgba(0,0,0,.2)}
html.t-dag #admin-navigation{border-top-color:rgba(30,70,50,.12);box-shadow:0 -8px 24px rgba(20,50,35,.12)}
#admin-navigation .nav{border:0;border-radius:14px;background:none;box-shadow:none;color:var(--ink-2)}
#admin-navigation .nav.active{background:var(--select);color:var(--on-select);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 10px rgba(0,0,0,.18)}
html.t-dag #admin-navigation .nav.active{background:linear-gradient(180deg,#2E7A54,#1B5134)}
#admin-navigation .nav.active::after{display:none}
/* toast and update banner */
#toast{background:var(--glass-strong);color:var(--ink);border:1px solid var(--glass-edge);border-radius:14px;box-shadow:var(--elev);font-weight:600;-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%)}
#update-banner{max-width:min(640px,calc(100% - 24px));margin:12px auto;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--glass-strong);color:var(--ink);border:1px solid var(--glass-edge);border-radius:14px;box-shadow:var(--elev);-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%)}
/* tags (v4 .tag) and the role chip (v4 .role) */
.room-status,.team-pill,.experience-label,.room-heading .room-state{display:inline-block;padding:0 7px;border:0;border-radius:6px;background:var(--tag-bg);color:var(--ink);font-size:.875rem;font-weight:600;line-height:1.5;letter-spacing:0;text-transform:none;box-shadow:none}
.experience-label{color:var(--tag-ink)}
.room-heading .room-state{justify-self:start;text-align:left}
.status-live{background:var(--live-bg);color:var(--live-ink);box-shadow:inset 0 0 0 1px var(--live-edge)}
.status-completed{background:var(--settled-bg);color:var(--ink);box-shadow:inset 0 0 0 1px var(--settled-edge)}
#member-status{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:2px 10px;border-radius:8px;background:var(--tag-bg);color:var(--tag-ink);font-size:.9375rem;font-weight:600;letter-spacing:0;text-transform:none;white-space:nowrap}
#member-status::before{content:"";flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--i-person) center/contain no-repeat;mask:var(--i-person) center/contain no-repeat}
#member-status:empty{display:none}
/* segments (v4 .segs) */
.entry-tabs{background:var(--glass-lite);border:1px solid var(--glass-edge);border-radius:18px;box-shadow:none}
.entry-tabs button{color:var(--ink);border-radius:13px}
.entry-tabs .active{background:var(--select);color:var(--on-select);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 10px rgba(0,0,0,.18)}
/* disclosure summaries (v4 .archive summary) */
details:where(:not(.win-card,.result-accordion))>summary{min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--link);cursor:pointer}
.danger-zone>summary{color:var(--signal)}
.welcome-art{display:none}
/* directory and team rows */
.directory-room,.directory-room strong{color:var(--ink)}
.directory-room>span,.admin-summary-text>span,.team-stats-card-meta,.team-stats-species,.result-summary-text>span,.participant-row small,.win-card-title small,.sharing-list span,.self-entry small,#room-date,.room-heading span:not(.room-state){color:var(--ink-2)}
.directory-room>.directory-closes,.directory-room>.team-room-state,#entry-registration,#registration [role=timer],.win-card-title span,.win-badge,#wins-summary,.team-stats-winner-shares,.plan-eyebrow{color:var(--win-ink)}
.directory-room:active{background:var(--s-press)}
.share-card>strong{background:none;color:var(--code);-webkit-text-fill-color:currentColor;text-shadow:none}
.team-stats-card,.team-stats-list li,.plan-strip,.sharing-list li{background:var(--inset-card);border-color:var(--rule)}
.allocation-note,.demo-note{border-color:var(--rule);color:var(--ink)}
/* the köttlott page */
#registration{border-color:var(--rule);background:var(--inset-card)}
#registration.registration-soon{border-color:var(--win-ink)}
.member-name-button{background:var(--s-bg);border:1px solid var(--s-edge);border-radius:var(--r-ctl);color:var(--ink-2)}
.member-name-button strong{color:var(--ink)}
.member-name-pencil{stroke:var(--link)}
.result-summary,.result-summary-text strong,.admin-summary-text strong,.win-card-title strong{color:var(--ink)}
.result-chevron{border-color:var(--ink-2)}
.result-accordion[open] .result-summary,.admin-card[open]>.admin-summary{border-bottom-color:var(--rule)}
.result-summary img{border:0}
.admin-card .result-summary::before{content:none}
.result-winners{padding:0 12px 12px}
.admin-card>.result-accordion .result-winners{padding:0}
.admin-card>.admin-summary[aria-expanded=true]{border-color:var(--select);box-shadow:inset 0 0 0 1px var(--select);color:var(--s-ink)}
.winner,.winner.winner-result{background:var(--s-bg);border:1px solid var(--rule);border-left:4px solid var(--left-edge);color:var(--ink);box-shadow:none}
.winner strong,.winner.winner-result strong{color:var(--ink)}
.winner span,.winner.winner-result .winner-share,.winner-result .winner-label span{color:var(--ink-2)}
.winner.mine,.winner.winner-result.mine{background:var(--row-win);border-color:var(--row-win-edge);border-left-color:var(--row-win-edge)}
.winner.mine strong,.winner-result.mine .winner-label span,.winner.mine span{color:var(--win-ink)}
html:not(.t-dag) .winner.mine strong{color:var(--ink)} /* over the gold row on an inset card, cream keeps the name at 7:1 */
.animal-shot{border-color:var(--rule);background:var(--glass-solid)}
.auth-divider{color:var(--ink-2)}
.auth-divider:before,.auth-divider:after{background:var(--rule)}
.auth-providers #auth-google{background:#fff;color:#1f1f1f;border-color:#dadce0;box-shadow:0 2px 5px rgba(0,0,0,.13)} /* the provider's own neutral button */
.auth-providers #auth-google::after{display:none}
.auth-providers #auth-google:disabled{background:transparent;color:var(--ink-2);border:1px dashed var(--s-edge);box-shadow:none}
@media(hover:hover) and (pointer:fine){
 .secondary:hover:not(:disabled),dialog .close:hover,#admin-navigation .nav:hover:not(.active),.directory-room:hover{background-color:var(--s-press)}
 .card.choice:hover{border-color:var(--s-edge)}
}
/* v4 Task 4: the paper tickets (v4 style.css:295-340, 662-684). paper.js draws each [data-lott] as an SVG with real notches and perforation, grain, fibres
   and a guilloché frame. The colour is the viewer's outcome: a = cream (open, live, not taken part), g = green (won), b = red raffle paper (took part, no share),
   t = the team's sage admission ticket. --l-paper is the darkest paper stop (data-paper, PAPER[v].paper2): the inks are checked against it (scripts/test-theme.mjs). */
.lott{position:relative;isolation:isolate;display:flex;align-items:stretch;color:var(--l-ink);text-shadow:none}
.lott-bg{position:absolute;inset:0;z-index:-1;overflow:visible;pointer-events:none;filter:drop-shadow(0 9px 12px rgba(0,0,0,.40)) drop-shadow(0 1px 1px rgba(0,0,0,.35))}
html.t-dag .lott-bg{filter:drop-shadow(0 8px 14px rgba(20,50,35,.25)) drop-shadow(0 1px 1px rgba(20,50,35,.3))}
.lott-a{--l-ink:#1E1609;--l-ink-2:#574325;--l-ok:#123F29;--l-live:#10422A;--l-dia:#7A5410;--l-serial:#8E3517;--l-edge:#6F5A3A;--l-btn-bg:rgba(255,255,255,.55);--l-btn-press:rgba(120,90,40,.16);--l-paper:#E7D4A8;--l-stub-bg:#1F4A36;--l-stub-press:#133022;--l-stub-ink:#FFF5DE;--l-stub-ring:#F5E9CB}
.lott-g{--l-ink:#0E2416;--l-ink-2:#234A31;--l-ok:#0B2E1B;--l-live:#0B2E1B;--l-dia:#5B4A10;--l-serial:#0E2416;--l-edge:#3F6A4C;--l-btn-bg:rgba(255,255,255,.5);--l-btn-press:rgba(20,70,40,.14);--l-paper:#9FCB93}
.lott-b{--l-ink:#22140A;--l-ink-2:#6A3820;--l-ok:#123F29;--l-live:#10422A;--l-dia:#7A3A12;--l-serial:#FFF0D8;--l-edge:#7A4A30;--l-btn-bg:rgba(255,255,255,.6);--l-btn-press:rgba(120,40,20,.14);--l-paper:#B3361B}
.lott-t{--l-ink:#17211A;--l-ink-2:#3D4B42;--l-ok:#123F29;--l-serial:#5B3A1C;--l-edge:#55655A;--l-paper:#C3CDBD;--l-stub-bg:#2E3D34;--l-stub-press:#1E2A23;--l-stub-ink:#F4F1E6;--l-stub-ring:#DFE6D9}
/* legible before (or without) the painter: the paper as a plain background; the painted SVG replaces it */
.lott-a{background:#F5E9CB}.lott-g{background:#BEE0B2}.lott-b{background:#D3492A}.lott-t{background:#DFE6D9}
.lott:not(.painted){border-radius:7px;background-image:linear-gradient(135deg,transparent 35%,var(--l-paper))}
.lott.painted{background:none}
.lott p,.lott h2,.lott h3{color:var(--l-ink)}
.lott :focus-visible{outline-color:var(--l-ink)}
.lott-main{flex:1;min-width:0;padding:16px 12px 16px 24px}
.lott-main>*+*{margin-top:5px}
.lott-stub{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px 16px 12px 20px;text-align:center}
.lott-b .lott-main{margin:10px 0 10px 16px;padding:10px 12px 12px 14px;border-radius:8px;background:var(--window-fill,#FBF0DA);box-shadow:inset 0 0 0 1px rgba(110,40,20,.3)}
.lott .code{font:700 1.125rem/1.15 var(--font);letter-spacing:.03em;color:var(--l-ink);white-space:nowrap}
.serial{font:600 .71875rem/1 ui-monospace,"SF Mono","Roboto Mono",Menlo,Consolas,monospace;letter-spacing:.16em;color:var(--l-serial)}
/* the code ticket on the köttlott page (#room-info replaces the old code button; the legacy #room-info box is reset here). The code stays on one line:
   when code and stub do not fit side by side, the stub drops below and paper.js draws the perforation across. */
.lott-code{min-height:100px;flex-wrap:wrap;justify-content:normal;gap:0;margin:4px 0 14px;padding:0;font-size:1.0625rem;transform:rotate(-.6deg)}
.lott-code .lott-main{display:flex;flex-direction:column;justify-content:center;flex:999 1 auto;min-width:min(100%,max-content);padding-left:26px}
.lott-code .lbl{display:block;font-size:1rem;font-weight:600;color:var(--l-ink-2)}
.lott-code .code{display:block;font-size:1.9375rem;letter-spacing:.085em;line-height:1.08;margin-top:3px}
.lott-code .lott-stub{flex:1 1 auto;min-width:0}
/* the button printed on a ticket's stub ("Bjud in"): dark ink on the paper, with the share icon */
.ticket-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;min-width:104px;max-width:100%;padding:8px 14px;border:0;border-radius:10px;background:var(--l-stub-bg);color:var(--l-stub-ink);font:inherit;font-weight:700;line-height:1.2;text-align:center;text-shadow:none;cursor:pointer;box-shadow:inset 0 0 0 1.5px rgba(10,30,20,.55),0 1.5px 0 rgba(60,40,15,.35);transition:transform 80ms linear,background-color 80ms linear;-webkit-tap-highlight-color:transparent}
.ticket-button::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:var(--i-share) center/contain no-repeat;mask:var(--i-share) center/contain no-repeat}
.ticket-button:active{transform:translateY(1px);background:var(--l-stub-press);box-shadow:inset 0 0 0 1.5px rgba(10,30,20,.55),inset 0 2px 4px rgba(0,0,0,.38)}
.ticket-button:focus-visible{outline:3px solid var(--l-ink);outline-offset:3px;box-shadow:0 0 0 3px var(--l-stub-ring)}
.ticket-button[hidden]{display:none}
@media(max-width:240px){
 .lott-code .lott-main{padding-left:20px;padding-right:14px}
 .lott-code .lott-stub{padding-left:12px;padding-right:12px}
 .lott-code .ticket-button{min-width:0;padding-left:10px;padding-right:10px}
 .lott-code .code{font-size:1.5rem;letter-spacing:.05em;white-space:normal}
}
/* "Din lott": the compact cream ticket once you have entered, with the quiet Ångra beside it (R-9) */
.entered-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;min-width:0}
.lott-mini{display:inline-flex;flex:0 1 auto;max-width:100%;min-height:48px;margin:0;transform:rotate(-.8deg)}
.lott-mini .lott-main{display:flex;align-items:center;flex-wrap:wrap;column-gap:6px;min-width:0;padding:9px 12px 9px 16px;font-size:1.0625rem;line-height:1.25;color:var(--l-ink)}
.lott-mini .lott-main>*+*{margin-top:0}
.lott-mini .ml-lbl{font-weight:600;color:var(--l-ink-2)}
.lott-mini b{min-width:0;font-weight:700;overflow-wrap:anywhere}
.lott-mini .lott-stub{flex:none;padding:0 12px 0 13px}
.lott-mini .ml-stamp{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:2px solid var(--l-ok);transform:rotate(-14deg);opacity:.9}
.lott-mini .ml-stamp::before{content:"";width:15px;height:15px;background:var(--l-ok);-webkit-mask:var(--i-check) center/contain no-repeat;mask:var(--i-check) center/contain no-repeat}
.entered-row>.quiet{flex:none;min-width:96px}
/* where the entry sits: a row of its own under the animal's name (participant card) or above the draw button (organiser card) */
.card.choice{flex-wrap:wrap}
.card.choice>:is(.entered-row,.join){flex:1 1 100%}
.choice.has-photo>:is(.entered-row,.join){grid-column:1/-1;justify-self:stretch;align-self:start}
.animal-quick-actions{flex-wrap:wrap}
.animal-quick-actions>.entered-row{flex:1 1 100%}
/* v4 Task 5: the outcome tickets (v4 style.css:341-373, 650-661, phase-h.css:87-95). Each state also differs without colour: the foil seal, VINST and the gold
   ticket icon (won), the crossed-out ticket and the red raffle frame (took part, no share), the torn stub, Klar and the code line (did not take part). */
.lott-row{width:100%;min-height:104px;margin:0;padding:0;border:0;box-shadow:none;font:inherit;text-align:left;cursor:pointer;transition:transform 90ms ease-out;-webkit-tap-highlight-color:transparent}
button.lott-row:disabled{border:0;box-shadow:none;color:var(--l-ink);cursor:default} /* while the list loads: the paper stays as it is */
.lott-row:active{transform:translateY(2px)}
.lott-row:active .lott-bg{filter:drop-shadow(0 2px 3px rgba(0,0,0,.42)) brightness(.93)}
.lott-row:focus-visible{outline:3px solid var(--focus);outline-offset:5px;border-radius:10px}
.lott-row .lott-main>span{display:block}
.lott-row .lott-stub{width:112px}
.r-title{font-size:1.15625rem;font-weight:700;line-height:1.22;letter-spacing:-.005em;color:var(--l-ink);overflow-wrap:anywhere}
.r-team{font-size:.90625rem;line-height:1.35;color:var(--l-ink-2);overflow-wrap:anywhere}
.lott .r-status{position:relative;margin-top:6px;padding-left:26px;font-size:.9375rem;font-weight:600;line-height:1.3;color:var(--l-ink)}
/* the status on paper: the word in the paper's ink with an icon (clock, lock, wheel, check), not a tag */
.lott .room-status{display:inline;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--l-ink);font:inherit;letter-spacing:0;white-space:normal}
.lott .status-completed{color:var(--l-ok)}.lott .status-live{color:var(--l-live)}
.st.status-open{--st-icon:var(--i-clock)}.st.status-closed{--st-icon:var(--i-lock)}.st.status-live{--st-icon:var(--i-wheel)}.st.status-completed{--st-icon:var(--i-done)}
.lott .st::before{content:"";position:absolute;left:0;top:calc(.65em - 9px);width:18px;height:18px;background:currentColor;-webkit-mask:var(--st-icon) center/contain no-repeat;mask:var(--st-icon) center/contain no-repeat}
.lott .st.status-open::before{background:var(--l-ok)}
.lott-row .lott-main>span.r-out{display:grid}
.r-out{grid-template-columns:18px 1fr;column-gap:7px;align-items:start;margin-top:6px;font-size:.96875rem;font-weight:700;line-height:1.3;color:var(--l-ink)}
.r-out::before,.lott-win .lott-main>p::before{content:"";width:18px;height:18px;margin-top:1px;background:var(--l-ink-2);-webkit-mask:var(--i-ticket-off) center/contain no-repeat;mask:var(--i-ticket-off) center/contain no-repeat}
.r-out.won::before,.lott-win.lott-g .lott-main>p::before{-webkit-mask-image:var(--i-ticket);mask-image:var(--i-ticket);background:linear-gradient(135deg,#8A5F1C,#F6DB8E 35%,#B8862F 55%,#FFF0BA 75%,#8F6421)}
.r-codeline{margin-top:6px;font-size:.9375rem;font-weight:600;color:var(--l-ink-2)}
.r-codeline b{font:700 1.0625rem/1.2 var(--font);letter-spacing:.05em;color:var(--l-ink);white-space:nowrap}
.r-plate{display:flex;flex-direction:column;align-items:center;gap:1px}
.lott-b .r-plate{padding:5px 8px 6px;border-radius:6px;background:var(--window-fill,#FBF0DA);box-shadow:inset 0 0 0 1px rgba(110,40,20,.3)}
.r-kod,.r-drawn{font-size:.84375rem;font-weight:600;color:var(--l-ink-2)}
.r-drawn{white-space:nowrap}
.r-code{font:700 1.125rem/1.15 var(--font);letter-spacing:.03em;color:var(--l-ink);white-space:nowrap}
/* the won ticket's stub: the gold-foil seal above the code and the ink stamp "VINST" below it */
.stub-seal{width:50px;height:50px;filter:drop-shadow(0 1.5px 1px rgba(30,50,20,.45))}
.vinst-ink{display:inline-block;padding:4px 7px 3px;border:2.5px solid #5E3F06;border-radius:6px;color:#5E3F06;font:800 .875rem/1 var(--font);letter-spacing:.14em;text-indent:.14em;transform:rotate(-8deg);opacity:.85;mix-blend-mode:multiply;-webkit-mask:var(--stamp-mask,none) center/70px 70px;mask:var(--stamp-mask,none) center/70px 70px}
/* did not take part: no stub (paper.js tears it off) and the faded "Klar" stamp in its own column, so it never covers the text (Review Focus 3);
   where the row is too narrow the stamp moves below the text, at the bottom right */
.lott-row.torn{flex-wrap:wrap;align-items:center}
.lott-row.torn .lott-main{flex:1 1 168px;align-self:stretch}
.klar-stamp{flex:none;margin:14px 22px 20px auto;padding:7px 10px 6px;border:3px solid #2F6B4A;border-radius:8px;color:#2F6B4A;font:800 1.3125rem/1 var(--font);letter-spacing:.16em;text-indent:.16em;text-transform:uppercase;transform:rotate(-10deg);opacity:.5;mix-blend-mode:multiply;-webkit-mask:var(--stamp-mask,none) center/90px 90px;mask:var(--stamp-mask,none) center/90px 90px;pointer-events:none}
/* Task M (owner 2026-11-26): the join code is void once every animal is drawn (#room-info.void). The rubber stamp MAKULERAD lies over the code: Klar's and
   VINST's family (a double rule, uppercase, letter-spaced, worn through --stamp-mask, multiply) in the serial's red ink, at least 4.5:1 on the paper. The code
   is struck through in that red and printed in a softer ink that still keeps the code floor (7:1). The main part becomes a grid only so the stamp can hang
   from the code's own row (an absolute grid item, grid-row 2/3): it lands just below and right of the code, so only its rule grazes the digits and the code
   stays readable, and the main part grows at the bottom to hold it. left is clamped so the stamp stays on the main part on a 320 px phone, where the stub
   still sits beside it. The stub keeps the serial alone, as when entries are closed (R-8); paper.js repaints the perforation where the stub now is. */
.lott-code.void .lott-main{display:grid;grid-template-columns:minmax(0,max-content);justify-content:start;align-content:center;position:relative;padding-bottom:46px}
.lott-code.void .code{color:#4A3820;text-decoration-line:line-through;text-decoration-color:var(--l-serial);text-decoration-thickness:.09em}
.void-stamp{position:absolute;grid-row:2/3;left:min(7.2em,calc(100% - 5.2em));top:calc(100% + 11px);margin:0;padding:5px 9px 4px;border:2.5px solid currentColor;border-radius:8px;color:var(--l-serial);font:800 1.0625rem/1 var(--font);letter-spacing:.15em;text-indent:.15em;text-transform:uppercase;white-space:nowrap;transform:translate(-50%,-50%) rotate(-11deg);opacity:.94;mix-blend-mode:multiply;-webkit-mask:var(--stamp-mask,none) center/90px 90px;mask:var(--stamp-mask,none) center/90px 90px;pointer-events:none}
.void-stamp::after{content:"";position:absolute;inset:2px;border:1.25px solid currentColor;border-radius:5px}
/* "Du fick" on the köttlott page: green with the seal and VINST, or the red ticket; up to two small prints clipped to it */
#you-got{margin:4px 0 16px}
.lott-win{min-height:96px}
.lott-win .lott-main{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;padding:16px 12px 16px 24px}
.lott-win.lott-b .lott-main{margin:10px 0 10px 16px}
.lott-win .lott-main>p{flex:1 1 170px;display:grid;grid-template-columns:24px 1fr;column-gap:9px;align-items:start;margin:0;font-size:1.1875rem;font-weight:700;line-height:1.3;color:var(--l-ink)}
.lott-win .lott-main>p::before{width:24px;height:24px}
.lott-win .lott-stub{position:relative;width:98px;padding:8px;gap:4px}
.lott-win .foil-seal{width:52px;height:52px;filter:drop-shadow(0 1.5px 1px rgba(30,50,20,.45))}
.lott-pics{position:relative;flex:none;display:flex;align-self:center;margin:4px 0}
.lott-pics:not(:has(.clip-photo:not([hidden]))){display:none}
.clip-photo{position:relative;display:block;width:74px;padding:3px 3px 4px;background:var(--photo-print);border-radius:2px;transform:rotate(-4deg);box-shadow:0 2px 5px rgba(40,30,10,.35)}
.clip-photo+.clip-photo{margin-left:-38px;margin-top:10px;transform:rotate(5deg)}
.clip-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#D9DED6}
.clip-photo:first-child::after{content:"";position:absolute;left:22px;top:-12px;width:12px;height:32px;transform:rotate(8deg);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 32'%3E%3Cpath d='M3.6 24V6.4a2.4 2.4 0 0 1 4.8 0V26a3.9 3.9 0 0 1-7.8 0V8.5' fill='none' stroke='%23596168' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M3.6 24V6.4a2.4 2.4 0 0 1 4.8 0V26a3.9 3.9 0 0 1-7.8 0V8.5' fill='none' stroke='%23D8DDE0' stroke-width='.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}
/* Mina köttlotter floats on the forest (R-3): the title row on a scrim; the actions and the status line on glass; the tickets 12 px apart */
#directory-page.floating,#teams-page.floating{max-width:min(640px,calc(100% - 32px));padding:12px 0 24px}
.floating .directory-title-row{margin:0 0 12px;padding:4px 4px 4px 18px;border-radius:16px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
#directory-page.floating>.directory-actions,.floating #directory-status,.floating #legacy-account,.floating #teams-status,.floating #team-inbox,#teams-page #my-teams>.directory-actions{background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);border-radius:var(--r-card);box-shadow:var(--elev)}
#directory-page.floating>.directory-actions{margin:0 0 16px;padding:12px}
.floating #directory-status,.floating #teams-status{margin:0 0 16px;padding:10px 16px;border-radius:14px}
.floating #legacy-account{margin:0 0 16px;padding:16px}
#directory-list{gap:12px}
.floating #directory-more{margin-top:16px;background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
/* Jaktlag (task J): floats like Mina köttlotter. The requests you approve on one glass panel (inset rows), each team and each own request a glass card, the two
   team actions on a glass bar; without teams, one glass card with the invitation and both actions. */
#teams-status{color:var(--ink-2)}#teams-status:empty{display:none}
.floating #team-inbox{margin:0 0 16px;padding:18px}
#team-inbox h2{margin:0 0 12px;font-size:1.1875rem;overflow-wrap:anywhere}
#team-inbox-list{display:grid;gap:10px}
#team-inbox .team-request{gap:8px;background:var(--inset-card);border-color:var(--rule);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.team-request-team{color:var(--ink-2);font-size:.9375rem;overflow-wrap:anywhere}
#teams-page #my-teams{margin:0;padding:0;border:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#teams-page #my-teams-list{gap:12px;margin:0 0 16px}
#teams-page #my-teams>.directory-actions{margin:0;padding:12px}
#teams-page .team-row{min-height:88px;padding:14px 16px;gap:6px}
#teams-page .team-pending{padding:16px}
.floating #teams-empty{margin:0;padding:18px}
#teams-empty>p{color:var(--ink)}
/* v4 Task 6: the köttlott page frame. #room floats glass cards and paper on the forest (R-3), in the order of R-7: the header card (v4 style.css:246-250),
   the overview of every animal (phase-h.css:22-42) with its silhouette tile (:53-55), the tickets, the cards, the fairness note (:70). Loose lines sit on a scrim. */
#room.floating{display:flex;flex-direction:column;gap:16px;max-width:min(640px,calc(100% - 32px));padding:12px 0 24px}
#room.floating>*{margin:0;min-width:0}
#room.floating>#sync-status:empty{display:none}
.floating :is(#view-description,#sync-status,.selection-hint,#admin-add-hint,#self-entry-hint,#wheel-hint){padding:8px 14px;border-radius:14px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.floating .selection-hint{margin:0}
.floating #admin-add-hint{margin:8px 0 0}
.floating :is(.member-name-button,#admin-add-game){background:linear-gradient(var(--s-bg),var(--s-bg)),var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.floating #hunt-more{padding:2px 16px;border:1px solid var(--glass-edge);border-radius:var(--r-card);background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);box-shadow:var(--elev)}
.floating #hunt-more[open]{padding-bottom:14px}
.floating .card.choice.selected{background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%)} /* an entered card stays glass on the forest; the green ring marks it */
/* the header card: the team as the eyebrow, the heading, the date, "Jaktledare: …", the status with its icon, the countdown */
.room-head{padding:18px;border-radius:var(--r-card);background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
#room-head{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#room-head>*,#room-head .room-heading>*{margin:0;max-width:100%}
#room-head .room-heading{display:contents}
#room-head #room-heading{order:1;width:100%;overflow-wrap:anywhere}
#room-head #room-date{order:2;align-self:auto;font-size:1.0625rem}
#room-head #room-organiser{order:3;color:var(--ink-2);font-size:1.0625rem;overflow-wrap:anywhere}
#room-head #room-status{order:4;display:block;margin-top:6px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:1.1875rem;font-weight:600;line-height:1.3;text-align:left}
#room-head #room-team-note{order:5;margin-top:4px}
#room-head #registration{order:6;align-self:stretch;margin-top:8px}
/* the status icons (v4 style.css:227-241): clock (open), lock (closed), check (done), the pulsing green dot (live) */
.st::before{content:"";display:inline-block;width:18px;height:18px;margin-right:7px;vertical-align:-3px;background:currentColor;-webkit-mask:var(--st-icon) center/contain no-repeat;mask:var(--st-icon) center/contain no-repeat}
.st-open{--st-icon:var(--i-clock)}
.st-open::before{background:var(--ok)}
.st-closed{--st-icon:var(--i-lock)}
.st-done{--st-icon:var(--i-done)}
#room-head .st-done{color:var(--ok)}
#room-head .st-live{color:var(--live-ink)}
.st-live::before{-webkit-mask:none;mask:none;width:10px;height:10px;margin:0 10px 0 4px;vertical-align:1px;border-radius:50%;background:var(--live-dot);box-shadow:0 0 0 3px rgba(91,224,143,.22);animation:onair 1.8s ease-in-out infinite}
@keyframes onair{50%{box-shadow:0 0 0 7px rgba(91,224,143,0),0 0 14px rgba(91,224,143,.5)}}
/* the team chip as the eyebrow (v4 .team-link): ◆ and the underlined team name; a leader who left the team sees a plain label */
.team-link{font:inherit;font-weight:600;color:var(--link);background:none;border:0;padding:0;min-height:44px;display:inline-flex;align-items:center;gap:6px;text-decoration:none;cursor:pointer;box-shadow:none}
.team-link>.tl{min-width:0;overflow-wrap:anywhere;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
#room-head #room-team-chip{order:0;margin:-10px 0 -4px;border-radius:6px;text-align:left}
#room-team-chip>[aria-hidden]{color:var(--mark)}
#room-team-chip:disabled{border:0;background:none;color:var(--ink-2);cursor:default}
#room-team-chip:disabled>.tl{text-decoration:none}
/* the overview: what the köttlott raffles, and what is drawn or left (a dashed tile is left, a green one drawn, a live one being drawn) */
.overview{padding:14px 12px 12px;border-radius:var(--r-card);background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
.ov-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 12px;padding:0 6px 10px}
.ov-head h2{margin:0;font-size:1.1875rem}
.ov-count{font-size:.9375rem;font-weight:600;color:var(--ink-2)}
.ov-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.ov-list.many{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
@media(max-width:340px){.ov-list,.ov-list.many{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ov-item{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;height:100%;min-height:104px;margin:0;padding:10px 6px;border-radius:14px;border:1.5px dashed var(--left-edge);background:transparent;box-shadow:none;color:var(--ink);font:inherit;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ov-item:active{transform:translateY(1px)}
.ov-item .a-tile{flex:none;width:44px;height:34px}
.ov-item .a-tile svg{width:37px;height:32px}
.ov-name{max-width:100%;font-weight:700;font-size:1rem;line-height:1.2;overflow-wrap:anywhere}
.ov-st{display:block;font-size:.875rem;font-weight:600;line-height:1.2;color:var(--ink-2)}
.ov-mark{display:inline-block;width:13px;height:13px;margin-right:5px;vertical-align:-2px;border-radius:50%;border:2px dashed currentColor}
.ov-item.is-done{border:1.5px solid var(--settled-edge);background:var(--settled-band)}
.ov-item.is-done .ov-st{color:var(--settled-ink);font-weight:700}
.ov-item.is-done .ov-mark{width:16px;height:16px;border:0;border-radius:0;background:currentColor;-webkit-mask:var(--i-done) center/contain no-repeat;mask:var(--i-done) center/contain no-repeat}
.ov-item.is-live{border:1.5px solid var(--live-edge);background:var(--live-bg)}
.ov-item.is-live .ov-st{color:var(--live-ink);font-weight:700}
.ov-item.is-live .ov-mark{width:10px;height:10px;border:0;background:var(--live-dot);animation:onair 1.8s ease-in-out infinite}
/* the silhouette tile (cream in Skogsglas, forest green in Dagsljus). The busts are 7:6 (viewBox 4 0 56 48); their details take --sil-ink. */
.a-tile{display:inline-grid;place-items:center;width:48px;height:38px;border-radius:11px;background:var(--tile);border:1px solid var(--tile-edge);vertical-align:middle}
.a-tile svg{width:42px;height:36px;fill:var(--sil-fill);filter:var(--sil-shadow)}
/* Task 19: Mina vinster and the statistics (v4 style.css:422-423), and the species picker */
.stat-img{flex:none;display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--tile);border:1px solid var(--tile-edge)}
.stat-img svg{width:49px;height:42px;fill:var(--sil-fill);filter:var(--sil-shadow)}
.species-tile{flex:none;display:inline-grid;place-items:center;width:44px;height:40px;border-radius:11px;background:var(--tile);border:1px solid var(--tile-edge)}
.species-tile svg{width:40px;height:34px;fill:var(--sil-fill);filter:var(--sil-shadow)}
@media(max-width:360px){.species-tile{width:36px;height:34px;border-radius:9px}.species-tile svg{width:33px;height:28px}}
/* a card the overview jumps to takes the focus; the ring shows for the keyboard only */
#cards [data-animal]:focus{outline:none}
#cards [data-animal]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
/* the fairness note, once, under the animals */
.fair-note{padding:10px 14px;border-radius:14px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--ink-2);font-size:1.0625rem;line-height:1.45}
/* LIVE (R-11): the green badge with a gently pulsing dot (v4 style.css:535-536), and the green "Visa snurran" button; red is for errors only */
.live-tag{display:inline-flex;align-items:center;gap:8px;padding:4px 12px;border-radius:999px;background:var(--live-bg);color:var(--live-ink);box-shadow:inset 0 0 0 1px var(--live-edge);font-weight:700;font-size:1rem;line-height:1.3}
.live-tag::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:var(--live-dot);box-shadow:0 0 0 3px rgba(91,224,143,.22),0 0 10px rgba(91,224,143,.9);animation:onair 1.8s ease-in-out infinite}
#draw-dialog #draw-live{display:flex;width:fit-content;max-width:100%;margin:32px auto 10px;text-align:left} /* its own row under the close button, so it stays on one line on a phone */
#draw-dialog #draw-live[hidden]{display:none}
.live-watch{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;padding:12px 16px;border:1.5px solid var(--live-edge);border-radius:var(--r-ctl);background:linear-gradient(var(--live-bg),var(--live-bg)),var(--glass);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);color:var(--live-ink);font:inherit;font-weight:700;line-height:1.3;text-align:center;box-shadow:var(--elev);cursor:pointer}
.live-watch:active{transform:translateY(1px)}
/* the wheel on the tokens: the canvas paints cream and sage segments in a gold rim (paintWheel); the hub is the v4 forest hub */
#lottery-wheel{background:#C99A3E;border-color:#3A2A0C}
.wheel-hub{border:0;background:radial-gradient(circle at 35% 30%,#2C5A42,#0E2419 70%);color:#F0D18C;box-shadow:0 0 0 3px #D9AF5C,0 0 0 4px #4A3410,0 4px 10px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.25)}
@media (prefers-reduced-motion: reduce){.live-tag::before,.st-live::before,.ov-item.is-live .ov-mark{animation:none}}
/* v4 Task 7: the animal cards (phase-h.css:44-86, style.css:251-279). An undrawn card is active: the glass card with the dashed "Kvar att lotta" mark, the entrants,
   Din lott or Anmäl mig and, for the organiser, "Anmälda och andelar" and the solid green "Lotta ut {djur}". A drawn card is settled: a calmer green tint, a solid
   green edge, tighter corners and no shadow, the "✓ Lottad" band across its top and a compact winners list, so it differs in shape, band and icon, not only in
   colour. Paper stays for the tickets. The photo keeps its API (.animal-shot) and gets the v4 frame: a fixed 3:2 cover crop in a photo-print border. */
#cards{display:flex;flex-direction:column;gap:16px}
#cards>*{margin:0}
.animal{scroll-margin-top:84px;border-radius:var(--r-card);padding:16px 18px 18px}
#cards .animal.active.entered{box-shadow:var(--elev),inset 0 0 0 2px var(--ok)}
.card-state{display:flex;align-items:center;gap:7px;margin:-2px 0 10px;font-size:.875rem;font-weight:700;letter-spacing:.02em;color:var(--ink-2)}
.cs-mark{flex:none;width:13px;height:13px;border-radius:50%;border:2px dashed currentColor}
/* the head: the name as a big heading with its silhouette tile, the shares in the secondary ink */
.animal h3{display:block;margin:0;font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere}
.animal h3 .a-tile{margin:-5px 10px 0 0}
.an-name{font-size:1.375rem;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.an-shares{font-size:1.0625rem;font-weight:600;color:var(--ink-2);white-space:nowrap}
.animal .names{margin:6px 0 0;overflow-wrap:anywhere}
.animal .exclusion-note{margin:8px 0 0}
/* the photo: one frame for all (fixed 3:2, cover crop, a photo-print border), an extra picture next to the silhouette */
.animal .animal-shot{margin:0 0 12px;padding:6px 6px 7px;aspect-ratio:auto;overflow:visible;border:0;border-radius:10px;background:var(--photo-print);box-shadow:0 1px 0 rgba(0,0,0,.1),0 8px 18px rgba(0,0,0,.3)}
html.t-dag .animal .animal-shot{box-shadow:0 0 0 1px rgba(30,60,40,.12),0 6px 14px rgba(20,50,35,.18)}
.animal .animal-shot img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:5px;background:#D9DED6}
.animal .photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 6px}
.animal .photo-actions>button{flex:0 1 auto;min-width:0;min-height:48px;padding:6px 14px;font-size:1rem}
[data-photo-take]{display:inline-flex;align-items:center;justify-content:center;gap:9px}
[data-photo-take]::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:var(--i-camera) center/contain no-repeat;mask:var(--i-camera) center/contain no-repeat}
/* the actions: Din lott with Ångra, or Anmäl mig (secondary, as in v4; the participant's is big), and the organiser's "Anmälda och andelar" */
.animal-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:12px}
.animal-actions>button{width:100%;min-height:48px;margin:0;font-size:1.0625rem}
.animal-actions .join{background:var(--s-bg);color:var(--s-ink);border:1px solid var(--s-edge);box-shadow:inset 0 1px 0 var(--glass-hi);font-weight:600}
.animal-actions .join::after{display:none}
.animal-actions .join:active:not(:disabled){background:var(--s-press);box-shadow:none}
.animal:not(.admin-card) .animal-actions>.join{min-height:68px;font-size:1.25rem}
.animal-actions>.entered-row{margin:0;padding:0}
.animal-actions>.admin-summary[aria-expanded=true]{border-color:var(--select);box-shadow:inset 0 0 0 1px var(--select);color:var(--s-ink)}
/* draw one animal: secondary but solid, with the wheel icon */
.draw-one{margin-top:14px;padding-top:14px;border-top:1px solid var(--glass-edge)}
html.t-dag .draw-one{border-top-color:rgba(30,70,50,.14)}
.btn-draw{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:56px;margin:0;padding:9px 16px;border:1.5px solid var(--draw-edge);border-radius:var(--r-ctl);background:var(--draw-bg);color:var(--draw-ink);font:inherit;font-size:1.0625rem;font-weight:700;line-height:1.2;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 2px 6px rgba(0,0,0,.18);cursor:pointer;transition:transform 80ms linear,background-color 80ms linear}
.btn-draw::before{content:"";flex:none;width:22px;height:22px;background:currentColor;-webkit-mask:var(--i-wheel) center/contain no-repeat;mask:var(--i-wheel) center/contain no-repeat}
.btn-draw:active:not(:disabled){background:var(--draw-press);transform:translateY(1px)}
.animal .admin-card-body{margin-top:14px}
/* settled: a calmer, greener surface, a 1.5 px green edge, tighter corners, no shadow; the band runs edge to edge across the top */
#cards .animal.settled{padding-top:0;overflow:hidden;border-radius:16px;background:linear-gradient(var(--settled-bg),var(--settled-bg)),var(--glass);border:1.5px solid var(--settled-edge);box-shadow:none}
.settled-band{display:flex;align-items:center;gap:9px;margin:0 -18px 14px;padding:10px 18px;background:var(--settled-band);border-bottom:1px solid var(--settled-edge);color:var(--settled-ink);font-size:.9375rem;font-weight:700;line-height:1.3}
.settled-band>span:last-child{min-width:0;overflow-wrap:anywhere}
.sb-mark{flex:none;width:22px;height:22px;background:currentColor;-webkit-mask:var(--i-done) center/contain no-repeat;mask:var(--i-done) center/contain no-repeat}
.settled-band.live{background:var(--live-bg);border-bottom-color:var(--live-edge);color:var(--live-ink)}
/* the compact winners list: "Andel 1" in the secondary ink, the name, your own row on the win tint with "(du)" */
.animal .winners{display:grid;gap:0;margin:10px 0 0;padding:0;list-style:none}
.animal .winners li{padding:7px 0;border-top:1px solid var(--glass-edge);font-size:1.0625rem;overflow-wrap:anywhere}
.animal .winners li:first-child{border-top:0}
html.t-dag .animal .winners li{border-top-color:rgba(30,70,50,.14)}
.animal .winners li span{display:inline-block;min-width:4.5em;color:var(--ink-2)}
.animal .winners li strong{font-weight:600;color:var(--ink)}
.animal .winners .me{margin:0 -10px;padding-left:10px;padding-right:10px;border-radius:10px;background:var(--row-win);box-shadow:inset 0 0 0 1px var(--row-win-edge)}
.animal .winners .me strong{color:var(--win-ink);font-weight:700}
.animal .winners .muted{color:var(--ink-2)}
.animal .allocation-note{margin:10px 0 0;padding:0;border:0;border-radius:0;background:none;color:var(--ink);font-size:1.0625rem;line-height:1.45}
/* Skogsglas: v4 stacks the band (.17) on the card tint (.13), which leaves the band and your own name under 7:1 over the lightest forest (--bg-worst). In the card
   the tints are .07 and .10 and your name is cream on the gold row, as on the legacy winner rows (7.7:1 and 7.3:1); the overview tiles keep the tokens. */
html:not(.t-dag) #cards .animal.settled{--settled-bg:rgba(169,222,182,.07)}
html:not(.t-dag) .animal .settled-band:not(.live){background:rgba(169,222,182,.10)}
html:not(.t-dag) .animal .winners .me strong{color:var(--ink)}
/* Om köttlotten (R-10): "Gör om en dragning" with one row per drawn animal, above the links */
.plan-redo{margin:8px 0 4px}
.plan-redo h3{margin:0;font-size:1.0625rem}
.plan-redo .hint{margin:2px 0 8px}
.plan-redo-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 0;border-top:1px solid var(--rule)}
.plan-redo-row>span{flex:1 1 100%;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.plan-redo-row>button{flex:1 1 auto;width:auto;min-height:48px;margin:0;padding:8px 14px;font-size:1rem}
/* the result chevron (Mina vinster, the last result accordion): the v4 chevron, down when closed and up when open, without the sideways turn of the border chevron */
.result-chevron{flex:none;width:22px;height:22px;margin:0 2px;border:0;background:var(--ink-2);-webkit-mask:var(--i-chev-d) center/contain no-repeat;mask:var(--i-chev-d) center/contain no-repeat;transform:none;transition:none}
details[open]>summary>.result-chevron{transform:rotate(180deg)}
/* The menu with the Jaktlag tab (task J): four items share the bar, each a flexible share of it. A label may wrap onto two lines between words and never
   runs wider than its item. The badge (join requests waiting for you as team leader) sits on the icon's corner in the primary colour, ringed by the bar.
   CI fix 2026-11-27: an item is never narrower than its longest word (min-width:auto, the flex minimum), so with a wider font (Linux DejaVu Sans, Android,
   larger text) "Inställningar" takes the room it needs from the short labels instead of running out of its button. With the usual fonts every word fits
   its equal share, so the four items stay equal, as before. Below 280 px (a zoomed page) a word that still cannot fit may break, so the bar never overflows. */
#admin-navigation{gap:4px}
#admin-navigation .nav{flex:1 1 0;min-width:auto;padding:8px 2px}
#admin-navigation .nav-label{max-width:100%;overflow-wrap:normal}
@media(max-width:279px){#admin-navigation .nav{min-width:0}#admin-navigation .nav-label{overflow-wrap:anywhere}}
#admin-navigation .nav-icon{position:relative;display:grid;place-items:center;height:24px;line-height:normal}
#admin-navigation .nav-badge{position:absolute;top:-7px;left:calc(100% - 8px);display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--p-bg);color:var(--p-ink);font-size:.6875rem;font-weight:800;line-height:1;letter-spacing:0;box-shadow:0 0 0 2px var(--bar-bg)}
@media(max-width:360px){#admin-navigation{gap:2px;padding-inline:6px}}
/* the active item keeps the others' weight, so a label never wraps only while active (the bar would change height between tabs); the active pill marks it.
   The icons share one row and the labels hang below them, also when one label takes two lines. */
#admin-navigation .nav,#admin-navigation .nav.active{font-weight:600;justify-content:flex-start;padding-top:9px}
@media(max-height:500px) and (orientation:landscape){#admin-navigation .nav,#admin-navigation .nav.active{justify-content:center;padding-top:8px}}
/* the inbox at 320 px: Godkänn and Neka keep their words whole */
.team-buttons button{overflow-wrap:normal}
@media(max-width:360px){.floating #team-inbox{padding:14px}#team-inbox .team-request{padding:12px}#team-inbox .team-buttons button{padding-inline:10px}}
/* landscape (icon and label side by side): the badge keeps clear of the label */
@media(max-height:500px) and (orientation:landscape){#admin-navigation .nav-icon:has(.nav-badge:not([hidden])){margin-right:12px}}
/* v4 Task 9: the bottom sheet (v4 style.css:508-523) for the confirmation (#confirm-dialog) and, later, Lagets inställningar. It docks to the bottom edge, at most
   640 px wide, on the strong solid glass, with a sticky head and foot. The glass keeps its gloss: a faint top light and a gold hairline on the head, a foot that lifts
   off the body, the gold primary (green in Dagsljus) and a glossy red for a danger, lit and shaded like the gold button, never a flat fill. It slides up. */
dialog.sheet{width:100%;max-width:640px;max-height:92dvh;margin:auto auto 0;padding:0;border:0;border-radius:26px 26px 0 0;background:var(--glass-strong-solid);color:var(--ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 -16px 40px rgba(0,0,0,.35),inset 0 1px 0 var(--glass-edge)}
html.t-dag dialog.sheet{box-shadow:0 -12px 36px rgba(20,50,35,.22),0 -1px 0 rgba(30,70,50,.08)}
dialog.sheet[open]{animation:sheet-up .28s cubic-bezier(.2,.8,.25,1)}
@keyframes sheet-up{from{transform:translateY(48px);opacity:.3}}
.sheet-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 18px;background:linear-gradient(180deg,rgba(255,240,196,.075),rgba(255,240,196,.015)),var(--glass-strong-solid);border-bottom:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 rgba(255,236,180,.26)}
html.t-dag .sheet-head{background:linear-gradient(180deg,#FFFFFF,#F3F8F4),var(--glass-strong-solid);border-bottom-color:rgba(30,70,50,.12);box-shadow:inset 0 1px 0 #FFFFFF}
.sheet-head h2{min-width:0;margin:0;padding:0;font-size:1.25rem;line-height:1.25;color:var(--ink);overflow-wrap:anywhere}
.sheet-body{padding:18px 18px 24px}
.sheet-body>*{margin:0}
.sheet-body>*+*{margin-top:14px}
.sheet-body p{color:var(--ink);overflow-wrap:anywhere}
.sheet-body .card{background:rgba(255,255,255,.04);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
html.t-dag .sheet-body .card{background:#F2F6F3;border-color:rgba(30,70,50,.12)}
.sheet-foot{position:sticky;bottom:0;z-index:2;padding:14px 18px calc(16px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,rgba(255,240,196,.03),rgba(255,240,196,0)),var(--glass-strong-solid);border-top:1px solid var(--glass-edge);box-shadow:0 -8px 24px rgba(0,0,0,.18)}
html.t-dag .sheet-foot{background:var(--glass-strong-solid);border-top-color:rgba(30,70,50,.12);box-shadow:0 -6px 18px rgba(20,50,35,.08)}
.confirm-q{font-size:1.25rem;font-weight:700;line-height:1.3}
/* the two answers: the outcome on top, Avbryt below at a safe distance (v4 confirmShell) */
#confirm-dialog .confirm-actions{display:grid;gap:16px}
.confirm-actions>button{width:100%;margin:0;padding:12px 18px;line-height:1.25;overflow-wrap:anywhere}
.confirm-actions>button.dark{min-height:60px;font-size:1.1875rem}
.confirm-actions>.secondary{min-height:52px;font-size:1.0625rem}
.sheet-foot .danger-button{position:relative;isolation:isolate;overflow:hidden;min-height:60px;font-size:1.125rem;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,0) 55%),var(--danger-fill);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -2px 0 rgba(0,0,0,.26),0 8px 20px rgba(150,36,28,.34),0 2px 0 #4A120D;transition:transform 80ms linear}
html.t-dag .sheet-foot .danger-button{box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -2px 0 rgba(0,0,0,.22),0 8px 18px rgba(163,35,27,.26),0 2px 0 #6A1610}
.sheet-foot .danger-button:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px rgba(0,0,0,.35)}
/* a label or question that wraps breaks evenly ("Ta bort Bertil Ek / från råbocken"), never leaving one word alone; on a narrow phone the answers step down a size */
.sheet-head h2,.confirm-q,.confirm-actions>button{text-wrap:balance}
.sheet-body p:not(.confirm-q){text-wrap:pretty}
@media(max-width:360px){.sheet-head,.sheet-body{padding-inline:16px}.sheet-foot{padding-inline:16px}.confirm-actions>button{padding-inline:12px}.confirm-actions>button.dark,.sheet-foot .danger-button{font-size:1.0625rem}}
/* v4 Task 12: the team page floats on the forest (R-3). The banner is the team picture blended by the scrim into its glass card, with the name over it (v4
   phase-h.css:97-103). Four tabs share one segmented bar (v4 style.css:410-416): one row when every label fits, else two rows of two, never one column and never a
   cut label (owner 2026-11-26). Every panel's loose text sits on glass, and the team code is the sage admission ticket on a glass card (phase-h.css:114-127). */
#team-page.floating{max-width:min(640px,calc(100% - 32px));padding:12px 0 24px}
#team-page .team-page-top{margin:0 0 12px}
.floating .team-page-top .secondary{min-height:48px;padding:0 16px;background:linear-gradient(var(--s-bg),var(--s-bg)),var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.team-hero{overflow:hidden;margin:0 0 16px;border-radius:var(--r-card);background:var(--glass-solid);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
.th-photo{position:relative;aspect-ratio:2/1;max-height:300px;background:var(--glass-solid)}
.th-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.th-photo::after{content:"";position:absolute;inset:0;background:var(--hero-scrim)}
.th-text{position:relative;margin-top:-14px;padding:0 18px 14px}
#team-page #team-heading{margin:0;font-size:1.75rem;line-height:1.15;letter-spacing:-.02em;color:var(--ink);overflow-wrap:anywhere}
html:not(.t-dag) .th-text h1{text-shadow:0 1px 10px rgba(0,0,0,.45)}
.th-meta{display:flex;align-items:center;justify-content:space-between;gap:4px 12px;margin-top:4px}
#team-meta{margin:0;min-width:0;color:var(--ink-2);font-size:1.0625rem;line-height:1.35}
.th-meta #team-refresh{flex:none;width:48px;min-width:48px;height:48px;border-radius:14px}
.floating #team-status{margin:0 0 16px;padding:10px 16px;border-radius:14px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
#team-content{display:flex;flex-direction:column;gap:16px}
#team-content>*,#team-content section{margin:0;min-width:0}
/* the requests (above the tabs) on one glass panel with inset rows, as on the Jaktlag page */
.floating #team-requests{padding:18px;border-radius:var(--r-card);background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
#team-page #team-requests h2{margin:0 0 12px}
#team-requests .team-request{background:var(--inset-card);border-color:var(--rule);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
/* Kom igång (v4 style.css:128, 484-487): a glass card ringed in the selection colour, two numbered steps */
#team-start{padding:18px;box-shadow:var(--elev),inset 0 0 0 2px var(--select)}
#team-page #team-start h2{margin:0 0 4px;font-size:1.25rem}
.step-list{margin:0;padding:0;list-style:none}
.step-list>li{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--rule)}
.step-list>li:first-child{border-top:0}
.step-num{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:2px solid var(--select);color:var(--ink);font-weight:700}
.step-list .done .step-num{background:var(--select);color:var(--on-select)}
.step-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
.step-body>p{margin:0;padding-top:4px;color:var(--ink)}
.step-body>button{width:100%;margin:0}
#team-start-hide{min-width:104px;min-height:44px;margin:2px 0 0}
/* the tabs: a glass bar of four segments. Each pair of tabs keeps together, so the bar wraps from one row straight to two rows of two. A tab never shrinks
   below its label; the selected one takes the selection colour (forest green in Dagsljus) and a short bar under its label. */
#team-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:5px;border-radius:18px;background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
#team-tabs .seg-pair{display:flex;flex:1 1 0;gap:4px;min-width:max-content}
#team-tabs [role=tab]{position:relative;flex:1 1 0;min-width:max-content;min-height:50px;margin:0;padding:4px 12px;border:0;border-radius:13px;background:none;box-shadow:none;color:var(--ink);font:inherit;font-size:1rem;font-weight:600;line-height:1.15;white-space:nowrap;text-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
#team-tabs [role=tab]:active{background:var(--s-press)}
#team-tabs [role=tab][aria-selected=true]{background:var(--select);color:var(--on-select);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 10px rgba(0,0,0,.18)}
html.t-dag #team-tabs [role=tab][aria-selected=true]{background:linear-gradient(180deg,#2E7A54,#1B5134)}
#team-tabs [role=tab][aria-selected=true]::after{content:"";position:absolute;left:50%;bottom:6px;width:26px;height:3px;margin-left:-13px;border-radius:2px;background:var(--on-select);opacity:.75}
html.t-dag #team-tabs [role=tab][aria-selected=true]::after{background:#F2D38C;opacity:1}
@media(hover:hover) and (pointer:fine){#team-tabs [role=tab]:not([aria-selected=true]):hover{background:var(--s-press)}}
#team-draws,#team-stats,#team-dist,#team-members{display:flex;flex-direction:column;gap:12px}
/* Köttlotter: the rows are glass cards; the empty line and Visa fler sit on glass */
#team-page #team-new-draw,#team-page #team-more{width:100%;margin:0}
#team-page #team-rooms{gap:12px}
#team-page #team-rooms:empty{display:none}
.floating #team-rooms-empty{margin:0;padding:12px 16px;border-radius:14px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--ink)}
.floating :is(#team-more,.team-room>.secondary){background:linear-gradient(var(--s-bg),var(--s-bg)),var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
/* Statistik and Fördelning: the picker and the disclaimer on a scrim, each list a glass card, the overview tiles and the cards per animal glass */
:is(#team-stats-status,#team-dist-status):empty,:is(#team-stats-content,#team-dist-content):empty{display:none}
.floating :is(#team-stats-status,#team-dist-status){margin:0;padding:10px 16px;border-radius:14px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
#team-stats-content,#team-dist-content{display:flex;flex-direction:column;gap:12px}
#team-page :is(.team-stats-period,.team-stats-disclaimer,.team-stats-note){margin:0;padding:10px 14px;border-radius:16px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
#team-page .team-stats-period{padding-bottom:14px;color:var(--ink)}
#team-page .team-stats-disclaimer{color:var(--ink-2);font-size:1.0625rem;line-height:1.45}
#team-page .team-stats-note{color:var(--ink)}
.team-stats-block{padding:16px 18px 18px;border-radius:var(--r-card);background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
#team-page .team-stats-block h3{margin:0 0 12px;font-size:1.1875rem;color:var(--ink)}
#team-page .team-stats-block .team-stats-list{margin:0}
#team-page .team-stats-block .team-stats-note{padding:0;border-radius:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#team-page .team-stats-overview{margin:0;padding:14px 18px;border-radius:18px;background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev);color:var(--ink);font-size:1.0625rem;font-weight:600;line-height:1.45}
.team-stats-overview>span{white-space:nowrap}
#team-page :is(.team-stats-title,.team-list-title){align-self:flex-start;max-width:100%;margin:4px 0 0;padding:8px 14px;border-radius:14px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-size:1.1875rem;color:var(--ink);overflow-wrap:anywhere}
#team-page .team-stats-cards{margin:0;gap:12px}
#team-page .team-stats-card{padding:14px 18px 10px;border-radius:var(--r-card);background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
/* v4 Task 14: the period. Its label and the choices sit on the scrim; up to four choices are chips in a radio group (v4 phase-h.css:129-134), lit glass pills with a
   soft top light, the checked one in the selection colour (the forest-green gradient in Dagsljus, as the tabs) with a check; five or more are the themed select
   (v4 style.css:398-399). */
#team-page .team-stats-period{display:flex;flex-direction:column;gap:10px;padding:12px 14px 14px;font-weight:600}
#team-page .team-stats-period>.label{margin:0;padding:0 2px;font-size:1rem;font-weight:600;line-height:1.3;color:var(--ink)}
.period-chips{display:flex;flex-wrap:wrap;gap:8px}
.pchip{position:relative;min-height:48px;min-width:0;max-width:100%;margin:0;padding:8px 16px;border:1px solid var(--s-edge);border-radius:999px;background:linear-gradient(180deg,var(--glass-hi),rgba(255,255,255,0) 60%),var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--ink);font:inherit;font-size:1.0625rem;font-weight:600;line-height:1.2;text-align:center;text-wrap:balance;overflow-wrap:anywhere;text-shadow:none;box-shadow:inset 0 1px 0 var(--glass-hi),0 2px 6px rgba(0,0,0,.16);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform 80ms linear}
.pchip[aria-checked=true]{background:var(--select);border-color:var(--select);color:var(--on-select);font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.10),0 3px 10px rgba(0,0,0,.22)}
html.t-dag .pchip[aria-checked=true]{background:linear-gradient(180deg,#2E7A54,#1B5134);border-color:#1B5134;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 3px 10px rgba(20,50,35,.24)}
.pchip[aria-checked=true]::before{content:"";display:inline-block;width:15px;height:15px;margin:0 7px -2px 0;background:currentColor;-webkit-mask:var(--i-check) center/contain no-repeat;mask:var(--i-check) center/contain no-repeat}
.pchip:active{transform:scale(.97)}
.pchip:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@media(hover:hover) and (pointer:fine){.pchip:not([aria-checked=true]):hover{background:linear-gradient(var(--s-press),var(--s-press)),var(--glass)}}
.select{width:100%;min-height:56px;margin:0;padding:12px 44px 12px 16px;border:1px solid var(--s-edge);border-radius:var(--r-ctl);background:var(--in-bg) var(--select-img) right 14px center/22px no-repeat;color:var(--ink);font:inherit;font-size:1.0625rem;font-weight:400;-webkit-appearance:none;appearance:none}
.select option{color:var(--ink);background:var(--glass-strong-solid)}
/* who has not had a share: the scope hint under the heading, the list note under Per person; a guest's "gäst" is a small bordered text tag, explained by one legend
   per panel (under the not-won list, or under "Fördelning per vilt" on its own scrim) */
#team-page .team-stats-block>.hint{margin:-6px 0 12px;font-size:1rem;line-height:1.4;color:var(--ink-2)}
.team-stats-guest{display:inline-block;margin-left:2px;padding:0 7px;border:1px solid var(--rule);border-radius:6px;background:var(--tag-bg);color:var(--tag-ink);font-size:.875rem;font-weight:600;line-height:1.45;letter-spacing:0;vertical-align:1px;white-space:nowrap}
.team-stats-legend{margin:12px 0 0;color:var(--ink);font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
.team-stats-legend>.team-stats-guest{margin:0}
#team-dist-content>.team-stats-legend{margin:0;padding:10px 14px;border-radius:14px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
/* Medlemmar (old T11): the heading and the guest sentence open the code card, above the admission ticket; the list title sits on the scrim above the list */
#team-page #team-members-heading{margin:0;font-size:1.25rem;line-height:1.3;color:var(--ink);overflow-wrap:anywhere;text-wrap:balance}
#team-page #team-guests{margin:8px 0 0;color:var(--ink);line-height:1.45;overflow-wrap:anywhere;text-wrap:pretty}
.team-code-card>#team-ticket{margin-top:16px}
#team-page .team-list-title:empty{display:none}
/* Medlemmar: the admission ticket and its hint on a glass card, the member list on another */
.team-code-card,#team-member-list{border-radius:var(--r-card);background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
.team-code-card{padding:18px}
#team-page #team-code-hint{margin:14px 0 0;color:var(--ink-2);overflow-wrap:anywhere}
#team-member-list{padding:2px 18px}
#team-member-list:empty{display:none}
#team-member-list>.team-member:first-child{border-top:0}
/* the admission ticket (inträdesbiljett): sage paper, cut corners, a printed frame and a tear-off stub; the code stays on one line, the stub drops below when needed */
.lott-team{flex-wrap:wrap;margin:0 -6px}
.lott-team .lott-main{flex:999 1 auto;min-width:min(100%,max-content);display:flex;flex-direction:column;justify-content:center;padding:18px 14px 18px 22px}
.lott-team .lott-main>*+*{margin-top:0}
.lott-team .tt-team{font-size:.9375rem;font-weight:700;letter-spacing:.04em;line-height:1.3;color:var(--l-ink-2);overflow-wrap:anywhere}
.lott-team .lbl{display:block;margin:8px 0 0;font-size:.9375rem;font-weight:600;color:var(--l-ink-2)}
.lott-team .code{display:block;margin-top:1px;font:700 1.625rem/1.1 var(--font);letter-spacing:.08em;color:var(--l-ink);white-space:nowrap}
.lott-team .lott-stub{flex:1 1 auto;min-width:0;padding:14px 16px;gap:7px}
.lott-team .ticket-button{flex-direction:column;gap:3px;min-height:56px;min-width:0;max-width:124px;padding:8px 12px;border-radius:8px;line-height:1.15;white-space:normal}
.lott-team .serial{color:var(--l-serial)}
@media(max-width:360px){.th-text{padding:0 14px 12px}#team-page #team-heading{font-size:1.5rem}:is(.team-code-card,.team-stats-block,#team-start,.floating #team-requests){padding:14px}#team-member-list{padding:2px 14px}#team-tabs [role=tab]{padding-inline:8px}}
/* v4 Task 13: Lagets inställningar (mockups 13 and 24). The glass button with the sliders icon sits at the right of the top row; the v4 sheet (Task 9) has the title and
   "✕ Stäng" in its head. The leader's view starts with Lagets bild: five photo tiles in one row (v4 phase-h.css:104-112), lit with a soft top sheen and a drop shadow,
   the checked one ringed in the selection colour with a check badge. Then the three choices as glass buttons and the danger zone, a card with an outlined red button. */
/* the top row stays one row: the back button keeps its line, and on a narrow phone Lagets inställningar breaks its label in two instead of dropping below */
#team-page .team-page-top{flex-wrap:nowrap}
#team-page #team-back{flex:none}
#team-page #team-settings{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:0 1 auto;min-width:0;margin-left:auto;padding:6px 16px 6px 13px;font-size:1rem;line-height:1.15;white-space:normal;text-align:left;text-wrap:balance}
#team-settings::before{content:"";flex:none;width:22px;height:22px;background:currentColor;-webkit-mask:var(--i-sliders) center/contain no-repeat;mask:var(--i-sliders) center/contain no-repeat}
.sheet-head .close{position:static;display:inline-flex;align-items:center;gap:8px;flex:none;width:auto;height:auto;min-width:0;min-height:48px;padding:0 16px 0 12px;border:1px solid var(--s-edge);border-radius:var(--r-ctl);background:var(--s-bg);box-shadow:inset 0 1px 0 var(--glass-hi);color:var(--s-ink);font-size:1rem;font-weight:600;line-height:1.2}
.sheet-head .close::before{width:20px;height:20px}
.sheet-head .close:active{background:var(--s-press)}
#team-settings-title:focus:not(:focus-visible){outline:none}
#team-settings-dialog .sheet-body{padding-bottom:calc(26px + env(safe-area-inset-bottom,0px))}
#team-settings-dialog .sheet-body>p{font-size:1.0625rem;line-height:1.45}
.team-pic h3{margin:0 0 10px;font-size:1.0625rem;line-height:1.3;color:var(--ink)}
.pic-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-width:400px}
.pic-opt{position:relative;width:100%;max-width:76px;min-width:0;height:auto;min-height:0;aspect-ratio:1;margin:0;padding:0;border:0;border-radius:14px;background:var(--glass-solid);cursor:pointer;box-shadow:0 0 0 1px var(--glass-edge),0 6px 14px rgba(0,0,0,.34),0 1px 2px rgba(0,0,0,.3);transition:transform 80ms linear,box-shadow .15s ease;-webkit-tap-highlight-color:transparent}
html.t-dag .pic-opt{box-shadow:0 0 0 1px rgba(30,70,50,.14),0 5px 12px rgba(20,50,35,.2),0 1px 2px rgba(20,50,35,.16)}
.pic-opt img{display:block;width:100%;height:100%;object-fit:cover;border-radius:14px}
.pic-opt::before{content:"";position:absolute;inset:0;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,0) 44%);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(255,255,255,.08);pointer-events:none}
.pic-opt:active{transform:scale(.97)}
.pic-opt[aria-checked=true]{box-shadow:0 0 0 3px var(--select),0 8px 18px rgba(0,0,0,.38)}
html.t-dag .pic-opt[aria-checked=true]{box-shadow:0 0 0 3px var(--select),0 6px 14px rgba(20,50,35,.24)}
.pic-opt[aria-checked=true]::before{inset:auto;right:-7px;top:-7px;width:24px;height:24px;border-radius:50%;background:var(--select);box-shadow:0 0 0 2px var(--glass-strong-solid),0 2px 4px rgba(0,0,0,.3)}
.pic-opt[aria-checked=true]::after{content:"";position:absolute;right:-2px;top:-2px;width:14px;height:14px;background:var(--on-select);-webkit-mask:var(--i-check) center/contain no-repeat;mask:var(--i-check) center/contain no-repeat}
.pic-opt:focus-visible{outline:3px solid var(--focus);outline-offset:5px}
#team-settings-dialog .team-pic+.settings-list{margin-top:18px}
.settings-list{display:grid;gap:12px}
.settings-list>button{width:100%;min-height:50px;margin:0;padding:10px 16px;font-size:1.0625rem;line-height:1.25;text-wrap:balance}
.settings-list .hint{margin:0 0 0 4px;font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit;white-space:nowrap}
#team-settings-dialog .danger-zone{margin-top:32px;padding:16px 18px 18px;border-radius:var(--r-card);background:var(--glass-solid);border:1px solid var(--glass-edge);box-shadow:var(--elev)}
html.t-dag #team-settings-dialog .danger-zone{background:#FFFFFF;border-color:rgba(30,70,50,.08)}
#team-settings-dialog .danger-zone>*{margin:0}
#team-settings-dialog .danger-zone>*+*{margin-top:12px}
#team-settings-dialog .danger-zone .hint{font-size:1rem;line-height:1.45;color:var(--ink-2)}
#team-settings-dialog .danger-button{min-height:50px;border:1.5px solid var(--signal);background:var(--s-bg);color:var(--signal);box-shadow:inset 0 1px 0 var(--glass-hi),0 1px 2px rgba(0,0,0,.18);font-size:1.0625rem;font-weight:600}
html.t-dag #team-settings-dialog .danger-button{background:#FFFFFF;box-shadow:inset 0 1px 0 #FFFFFF,0 1px 2px rgba(20,50,35,.12)}
#team-settings-dialog .danger-button:active:not(:disabled){background:var(--s-press)}
.settings-members{margin:0;padding:0;list-style:none}
.settings-members .team-member{gap:10px 12px;padding:12px 0}
.settings-members .team-member:first-child{border-top:0;padding-top:0}
.settings-members .team-member-name{color:var(--ink);font-size:1.0625rem}
#team-settings-dialog .settings-members .danger-button{flex:none;width:auto;min-width:104px;padding:0 18px}
#team-settings-dialog .settings-back{display:inline-flex;align-items:center;gap:6px;min-height:48px;margin-top:18px;padding:0 14px 0 6px;border:0;border-radius:14px;background:none;box-shadow:none;color:var(--link);font-size:1rem;font-weight:600}
#team-settings-dialog .settings-back:active{background:var(--s-press)}
@media(max-width:360px){.pic-row{gap:8px}#team-page #team-settings{gap:8px;padding:6px 12px 6px 10px}#team-settings-dialog .danger-zone{padding:14px}.settings-list>button{padding-inline:12px}}
/* v4 Task 16: the language notice on Mina köttlotter, the v4 .notice (v4 style.css:220-221) on glass (:121). The line keeps its own width (flex-basis auto
   instead of v4's 160px, which broke "Appen visas på svenska." over two lines at 390) and the two buttons move as one group, so on a phone they wrap together
   under one line of text (never Stäng alone), and in landscape all three share one row. The switch is a small secondary button, Stäng a quiet link (v4 .btn-link, :164). */
.notice{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 16px;padding:10px 14px;border-radius:18px;background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass-edge);box-shadow:var(--elev);color:var(--ink)}
.notice p{flex:1 1 auto;margin:0;color:var(--ink);line-height:1.4}
.notice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:100%}
#language-notice-switch{min-height:48px;padding:9px 16px;line-height:1.2}
#language-notice-close{min-width:44px;min-height:44px;padding:4px 6px;border:0;border-radius:12px;background:none;box-shadow:none;color:var(--link);font-weight:600;line-height:1.2;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
#language-notice-close:active{opacity:.75}
/* CI fix 2026-11-27: at 320 px a wider font (Linux DejaVu Sans) pushed Stäng onto a row of its own. The narrow notice is a little tighter, so the two buttons
   keep one row with room to spare; from 361 px the notice is unchanged. */
@media(max-width:360px){.notice{padding-inline:12px}.notice-actions{column-gap:8px}#language-notice-switch{padding-inline:12px;font-size:1rem}#language-notice-close{padding-inline:4px}}
/* v4 Task 17 (old T6): the receipts and the copy fallback. A receipt ("✓ Inbjudan delad kl. 14:05") says what happened, in the ok green: under the code ticket on
   the loose-line glass scrim (v4 style.css:338, below the paper and never on the bare forest), on the admission ticket's glass card and in Kom igång's first step.
   #share-dialog is the v4 sheet (Task 9): the link selected in its field right under the title, the message as selectable text on a quiet inset, and the gold
   Kopiera inbjudan with Kopiera bara koden in the sticky foot, so the primary action is in view on a 320 × 568 phone too. */
.feedback{margin:0;color:var(--ok);font-weight:600;line-height:1.4;overflow-wrap:anywhere;text-wrap:pretty}
#room-receipt{margin:-2px 0 14px;padding:8px 14px;border-radius:14px;background:var(--glass-lite);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
#team-page #team-receipt{margin:12px 0 0}
#team-start-receipt{margin-top:6px}
#team-start-receipt:focus:not(:focus-visible){outline:none}
#share-dialog .sheet-body{display:grid;gap:14px}
#share-dialog .share-actions{display:grid;gap:12px}
#share-dialog .sheet-body>*+*{margin-top:0}
#share-dialog #share-text{white-space:pre-line;padding:12px 14px;border:1px solid var(--rule);border-radius:14px;background:var(--inset-card);font-size:1.0625rem;line-height:1.45;-webkit-user-select:text;user-select:text}
#share-dialog #invite-fallback{display:grid;gap:6px;margin:0;color:var(--ink-2);font-size:1rem;font-weight:600;text-align:left}
#share-dialog #invite-link{width:100%;min-width:0;min-height:48px;margin:0;font-size:16px}
#share-dialog :is(#copy-link,#copy-code){width:100%;margin:0}
#share-dialog #copy-link{min-height:56px;font-size:1.125rem}
#share-dialog :is(#share-note,.share-hold,#share-registration){color:var(--ink-2)}
#share-dialog .share-hold{margin-top:-6px}
/* v4 Task 18 (old T7): a finished köttlott. Its one line ("Alla djur är lottade. …") shows for the organiser too, where the legacy rule hides #view-description;
   it sits on the loose-line scrim like the other lines. Om köttlotten's reopen line (p.plan-reopen) follows the redo rows: the words, then the button. */
.admin-view #view-description.done-note{display:block}
.plan-reopen{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:8px 0 4px;padding:10px 0;border-top:1px solid var(--rule)}
.plan-reopen>span{flex:1 1 auto;font-weight:600;color:var(--ink)}
.plan-reopen>button{flex:0 1 auto;width:auto;min-height:48px;margin:0;padding:8px 14px;font-size:1rem}
