@font-face{font-family:DM;src:url('/assets/dm-variable.ttf') format('truetype');font-weight:100 900;font-display:swap}@font-face{font-family:Fraunces;src:url('/assets/fraunces.ttf') format('truetype');font-weight:600;font-display:swap}
:root{--paper:#f9f3e5;--ink:#2f3f32;--green:#355b43;--muted:#67705e;--pink:#efaaa0;--mud:#76503b;--line:#d7d6c4;--white:#fffdf6;--yellow:#f3d37a;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:DM,'Trebuchet MS',sans-serif;font-size:16px;line-height:1.5}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{touch-action:manipulation}button:disabled{cursor:default}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,main:focus-visible{outline:3px solid #a84b3e;outline-offset:4px}::selection{background:var(--pink);color:var(--ink)}input{caret-color:var(--green)}html{scrollbar-color:#b2b7a2 var(--paper)}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.12;text-wrap:balance}h1,h2{font-family:Fraunces,Georgia,serif;font-weight:600}button svg{width:24px;height:24px}button{transition:background .16s,transform .18s,box-shadow .18s}button:not(:disabled):active{transform:translateY(1px)}.header{max-width:1320px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:29px 40px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;font-family:Fraunces,Georgia,serif;font-size:30px;text-decoration:none;font-weight:600;letter-spacing:-1px}.brand svg{width:36px;height:32px;color:#c36960}.brand-dot{color:#c36960;margin-left:-9px}.header nav{display:flex;align-items:center;gap:28px}.online-label{font-size:13px;color:var(--muted)}.quiet{border:0;background:transparent;padding:10px 3px;min-height:44px;font-size:14px;font-weight:600}.quiet:hover{color:#a84b3e}.quiet span{margin-left:8px}.primary,.secondary,.danger{border:0;border-radius:8px;min-height:50px;padding:13px 22px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:18px}.primary{background:var(--green);color:var(--white)}.primary:hover:not(:disabled){background:#264833;box-shadow:0 5px 14px #355b4320}.secondary{background:#e7e9d9;color:var(--ink)}.secondary:hover:not(:disabled){background:#d9deca}.danger{background:#a74336;color:white}.primary:disabled,.secondary:disabled{opacity:.55}.small{font-size:13px;color:var(--muted)}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip:focus{position:absolute;top:0;left:0;background:var(--paper);padding:12px;z-index:99}.home{max-width:1240px;margin:0 auto;padding:0 40px}.intro{display:grid;grid-template-columns:.95fr 1.2fr;align-items:center;padding:47px 0 26px;min-height:430px}.intro h1{font-size:clamp(54px,5.8vw,83px);line-height:1.02;letter-spacing:-.035em}.intro h1 em{font-style:normal;color:#a94f43}.intro-copy>p{font-size:18px;margin-top:24px;color:#56614f;line-height:1.6}.hero-art{position:relative;margin:0 -20px 0 0}.hero-art img{display:block;width:100%;height:auto;mix-blend-mode:multiply}.art-note{display:block;text-align:center;font-size:13px;color:var(--mud);transform:rotate(-4deg);margin-top:-10px}.game-facts{display:flex;gap:22px;align-items:center;font-size:13px;margin-top:30px}.game-facts span{display:flex;align-items:center;gap:6px}.game-facts svg{width:22px;height:22px}.game-facts span+span:before{content:'';width:4px;height:4px;background:#85927a;border-radius:50%;margin-right:12px}.entry{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:32px 0;display:grid;grid-template-columns:.9fr 1.3fr;gap:48px;align-items:center}.entry h2{font-size:31px}.entry-heading p{color:var(--muted);font-size:14px;margin-top:10px;max-width:260px}.entry label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}input{width:100%;min-height:50px;border:1px solid #aeb6a1;border-radius:8px;background:var(--white);color:var(--ink);padding:11px 14px}input::placeholder{color:#737969}.entry-actions{display:flex;align-items:center;gap:14px;margin-top:14px}.entry-actions>.primary{white-space:nowrap}.or{font-size:12px;color:var(--muted)}.join-control{display:flex;gap:8px;min-width:0}.join-control input{font-size:13px;letter-spacing:.04em;min-width:115px}.join-control button{padding-inline:15px}.form-error{color:#9b3c2e;font-size:13px;min-height:0;margin-top:8px}.form-error:empty{display:none}.how{display:grid;grid-template-columns:repeat(3,1fr);gap:45px;padding:30px 0 35px}.how>div{display:flex;gap:14px;align-items:flex-start}.step{border:1px solid #bac0ab;border-radius:50%;min-width:27px;height:27px;display:grid;place-items:center;font-size:12px;font-weight:700;margin-top:2px}.how p{font-size:13px;color:var(--muted)}.how strong{display:block;font-size:14px;color:var(--ink);margin-bottom:3px}footer{max-width:1240px;padding:20px 40px 28px;margin:auto;display:flex;justify-content:space-between;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}footer span{font-size:11px}.table-page{max-width:1240px;padding:0 40px 32px;margin:auto}.room-bar{display:flex;justify-content:space-between;align-items:center;padding:16px 0 18px;gap:12px}.room-code{border:0;background:transparent;min-height:44px;font-size:12px;color:var(--muted)}.room-code strong{font-size:14px;color:var(--ink);letter-spacing:.08em;margin:0 10px}.connection{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.connection:before,.pulse{content:'';height:7px;width:7px;border-radius:50%;background:#5c8550;display:inline-block}.connection.bad{color:#a74336}.connection.bad:before{background:#a74336}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:34px}.board{min-width:0;background:#e6ead9;border-radius:18px;padding:22px 28px 14px}.player-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.player-label>div:first-child{display:flex;gap:10px;align-items:center;min-width:0}.avatar{width:32px;height:32px;background:#ced5bd;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-weight:700;font-size:13px}.opponent-avatar{background:#e9c1ad}.player-label h2{font-family:DM,sans-serif;font-weight:700;font-size:15px;overflow-wrap:anywhere}.player-label small{font-weight:400;display:inline;margin-left:7px;font-size:11px;color:#59634f}.score{font-size:11px;white-space:nowrap}.score strong{font-size:19px}.opponent-cards{display:flex;gap:3px;margin-left:auto}.opponent-cards i{width:14px;height:21px;border:1px solid #557159;background:#76916f;border-radius:3px;transform:rotate(7deg)}.pig-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.pig{background:var(--white);border:0;border-radius:10px;position:relative;padding:10px 6px 6px;display:flex;flex-direction:column;align-items:center;min-height:122px;overflow:hidden;box-shadow:0 3px 6px #3b492c0b}.pig.dirty{background:#e4c8ad}.pig-index{position:absolute;left:9px;top:6px;font-size:10px;color:#75765f}.pig-picture{display:block;width:70px;height:70px;background-image:url('/assets/pigs.png');background-repeat:no-repeat;mix-blend-mode:multiply}.clean-picture{background-size:210px 140px;background-position:-2px -28px}.muddy-picture{background-size:150px 100px;background-position:-69px -17px}.pig-state{font-size:11px;font-weight:700;line-height:1.2}.protections{display:flex;min-height:20px;gap:3px;margin-top:3px}.protections svg{width:16px;height:16px}.pig.valid-target{outline:3px solid #4d714b;outline-offset:0;cursor:pointer}.pig.valid-target:hover{background:#d1dbb7;transform:translateY(-3px)}.target-prompt{position:absolute;inset:auto 0 0;background:var(--green);color:white;font-size:10px;padding:3px}.table-center{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 25px}.deck,.discard-pile{width:56px;min-height:77px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:7px;flex-shrink:0}.deck{background:var(--green);color:var(--paper);box-shadow:3px 3px 0 #9ba98d,5px 5px 0 #d0d8c1}.deck-mark{font-family:Fraunces,Georgia,serif;font-size:30px;line-height:1}.deck small,.discard-pile small{font-size:9px;margin-top:8px}.discard-pile{border:1px dashed #a5af96;color:#66705b}.discard-pile svg{width:29px;height:29px}.turn-message{text-align:center;max-width:390px}.turn-tag{font-weight:700;font-size:13px}.turn-tag.your-turn{color:#30573d}.turn-message p{font-size:12px;margin-top:4px;min-height:18px}.turn-number{font-size:10px;color:#5d6954;display:block;margin-top:4px}.your-label{margin-top:3px}.hand-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 12px;gap:8px}.hand-heading h2{font:700 14px DM,sans-serif}.hand-heading>span{font-size:10px;color:#5d6954}.hand{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:575px;margin:auto}.action-card{border:0;border-radius:10px;background:#f4ead1;text-align:left;display:flex;flex-direction:column;position:relative;min-height:184px;padding:14px;box-shadow:0 4px 10px #35452a0d}.action-card:hover:not(:disabled){transform:translateY(-4px)}.action-card.selected{outline:3px solid var(--green);outline-offset:3px;transform:translateY(-5px)}.action-card.mud{background:#e8c6ad;color:#603d2a}.action-card.rain,.action-card.wash{background:#d0e3e5;color:#30595e}.action-card.barn{background:#eadbaf;color:#655028}.action-card.rod,.action-card.lightning{background:#f2dc8e;color:#655018}.action-card.lock{background:#e9c9c0;color:#7f433c}.card-symbol svg{width:34px;height:34px}.card-title{font-family:Fraunces,Georgia,serif;font-size:19px;margin-top:7px}.card-description{font-size:11px;line-height:1.35;margin-top:6px;margin-bottom:8px;max-width:25ch}.card-bottom{font-size:9px;text-transform:uppercase;letter-spacing:.07em;margin-top:auto;font-weight:700;opacity:.8}.hand-actions{display:flex;justify-content:center;align-items:center;gap:10px;min-height:60px;padding-top:10px}.hand-actions p{font-size:11px;color:#5d6954;text-align:center}.hand-actions button{font-size:12px;min-height:42px;padding:10px 13px}.game-aside{padding-top:7px}.objective{padding-bottom:25px;border-bottom:1px solid var(--line)}.objective h2{font-size:27px}.objective>p{font-size:13px;color:#606a58;margin-top:12px;line-height:1.6}.objective .small{font-size:12px}.goal-pips{display:flex;gap:8px;margin-top:20px}.goal-pips span{width:30px;height:12px;border:1px solid #afad94;border-radius:6px;background:#f2e9d6}.goal-pips .filled{background:var(--mud);border-color:var(--mud)}.activity{margin-top:25px}.activity h2{font:700 14px DM,sans-serif}.activity ol{list-style:none;padding:0;margin:12px 0}.activity li{font-size:12px;color:#69705f;padding:11px 0;border-bottom:1px solid #dedfce;line-height:1.55}.activity li.latest{color:var(--ink)}.saved-note{font-size:11px;color:var(--muted);margin-top:10px}.winner{background:#f0d590;border-radius:12px;padding:22px 18px}.winner-art svg{width:38px;height:38px;color:var(--mud)}.winner h2{font-size:29px;margin-top:10px;overflow-wrap:anywhere}.winner p{font-size:13px;margin-top:10px}.winner button{font-size:12px;margin-top:20px;width:100%;padding-inline:10px}.winner p.small{font-size:11px}.waiting{text-align:center;max-width:650px;margin:0 auto;padding:0 0 30px}.waiting-art{width:230px;margin:0 auto}.waiting-art img{display:block;width:100%;mix-blend-mode:multiply}.waiting h1{font-size:38px;margin:12px 0 16px;overflow-wrap:anywhere}.waiting>p{font-size:15px;color:var(--muted);max-width:460px;margin:12px auto}.invite-code{font-family:DM,sans-serif;font-size:40px;font-weight:700;letter-spacing:.14em;margin:22px 0 18px}.waiting .primary svg{width:24px}.waiting input{max-width:420px;display:block;margin:18px auto;font-size:12px;background:transparent;min-height:42px}.waiting-status{display:flex;align-items:center;justify-content:center;gap:8px}.waiting>p.small{font-size:12px}.loading{padding:90px 24px;text-align:center}.loading h1{font-size:38px}.loading p{margin:18px 0}.loading button{margin:10px}dialog{border:0;background:var(--paper);color:var(--ink);max-width:640px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);border-radius:16px;padding:38px;box-shadow:0 16px 70px #18231d30}dialog::backdrop{background:#21332780}dialog h2{font-size:36px;margin:0 32px 18px 0}dialog h3{font-size:17px;margin:25px 0 10px}dialog p,dialog li{font-size:14px;line-height:1.6}.close{position:absolute;right:15px;top:12px;width:44px;height:44px;font-size:29px;background:none;border:0}.rule-row{display:flex;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);align-items:center}.rule-icon{width:34px;flex-shrink:0;color:var(--mud)}.rule-icon svg{width:30px;height:30px}.rule-row strong{display:block}.rule-row p{font-size:13px}.source-note{font-size:11px!important;color:var(--muted);margin:25px 0}.rules-done{width:100%}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);max-width:calc(100% - 32px);width:max-content;background:var(--ink);color:var(--paper);border-radius:10px;box-shadow:0 8px 25px #18231d20;padding:14px 20px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:50}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1500px){.intro{padding-top:65px;padding-bottom:40px}.header{padding-top:33px;padding-bottom:33px}}
@media(max-width:1050px){.header,.home,.table-page{padding-left:25px;padding-right:25px}.game-layout{grid-template-columns:minmax(0,1fr) 200px;gap:22px}.board{padding:18px}.entry{gap:25px;grid-template-columns:.8fr 1.4fr}.entry-actions{flex-wrap:wrap}.entry-actions>.primary{flex:1}.join-control{flex:1.2}.or{display:none}.pig-row{gap:7px}.pig{min-height:112px}.pig-picture{width:60px;height:60px}.table-center{padding:18px 5px}.action-card{padding:11px;min-height:185px}.card-title{font-size:17px}}
@media(max-width:760px){.header{padding:18px 20px}.brand{font-size:26px}.brand svg{width:29px}.header nav{gap:0}.online-label{display:none}.header .quiet{font-size:12px}.home{padding:0 22px}.intro{grid-template-columns:1fr;padding:35px 0 23px;gap:4px}.intro h1{font-size:58px;max-width:400px}.intro-copy>p{font-size:16px;margin-top:18px}.game-facts{margin-top:19px;font-size:12px}.hero-art{max-width:450px;width:100%;margin:-5px auto 0}.art-note{font-size:12px;margin-top:-14px}.entry{display:block;padding:25px 0}.entry h2{font-size:29px}.entry-heading p{max-width:none;margin-bottom:20px}.entry-actions{display:block}.entry-actions>.primary{width:100%}.or{display:block;text-align:center;margin:12px 0;font-size:11px}.join-control input{flex:1;min-width:0}.join-control button{min-width:100px}.how{grid-template-columns:1fr;gap:20px;padding:26px 0}.how p{font-size:13px}.how strong{font-size:14px}footer{padding:20px 22px;gap:6px;flex-direction:column}.table-page{padding:0 12px 24px}.room-bar{padding:9px 4px;flex-wrap:wrap;gap:2px}.room-bar .connection{font-size:10px;margin-left:auto}.room-code strong{margin-inline:5px;font-size:12px}.room-code{font-size:11px}.room-bar>.quiet{font-size:12px}.game-layout{display:flex;flex-direction:column;gap:20px}.board{padding:16px 12px 7px;border-radius:12px}.player-label{margin-bottom:10px;gap:6px}.player-label h2{font-size:13px}.player-label small{font-size:10px;margin-left:3px}.avatar{width:27px;height:27px;font-size:12px}.score{font-size:10px}.score strong{font-size:16px}.pig-row{gap:6px}.pig{min-height:106px;border-radius:7px;padding:9px 3px 5px}.pig-picture{width:54px;height:56px}.clean-picture{background-size:175px 117px;background-position:-4px -23px}.muddy-picture{background-size:130px 87px;background-position:-62px -15px}.pig-state{font-size:10px}.pig-index{font-size:9px;left:5px;top:4px}.protections{gap:1px;min-height:18px}.protections svg{width:14px;height:14px}.table-center{padding:17px 8px;gap:10px}.deck,.discard-pile{width:42px;min-height:62px;border-radius:5px}.deck small,.discard-pile small{font-size:8px}.deck-mark{font-size:26px}.turn-message p{font-size:11px}.turn-tag{font-size:12px}.turn-number{font-size:9px}.hand-heading{margin:16px 0 12px}.hand-heading h2{font-size:12px}.hand-heading>span{font-size:9px}.hand{gap:8px}.action-card{padding:11px 8px;min-height:180px;border-radius:8px}.card-title{font-size:16px}.card-description{font-size:10px}.card-symbol svg{width:29px;height:29px}.card-bottom{font-size:8px;letter-spacing:.035em}.hand-actions{min-height:60px;flex-wrap:wrap;gap:6px}.hand-actions button{font-size:11px;padding:9px 10px}.hand-actions p{font-size:10px}.game-aside{padding:0 10px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.objective{border-bottom:0;padding-bottom:0}.objective h2{font-size:24px}.objective>p{font-size:12px}.objective .small{font-size:11px}.goal-pips{gap:5px;margin-top:14px}.goal-pips span{width:23px}.activity{margin-top:0}.activity li{font-size:11px;padding:9px 0}.activity li:nth-child(n+4){display:none}.game-aside>.quiet{font-size:12px;text-align:left;align-self:start}.saved-note{margin:0;font-size:10px}.winner{grid-column:1/-1;text-align:center}.winner button{max-width:270px}.winner+.activity{grid-column:1/-1}.waiting{padding:10px 10px 25px}.waiting-art{width:190px}.waiting h1{font-size:32px}.waiting>p{font-size:14px}.invite-code{font-size:33px}.waiting input{font-size:11px}dialog{padding:28px 24px}dialog h2{font-size:31px}.dialog-actions{flex-wrap:wrap}}
@media(max-width:360px){.brand{font-size:22px}.header{padding-inline:14px}.intro h1{font-size:51px}.pig-picture{width:46px}.pig-row{gap:4px}.board{padding-inline:9px}.action-card{padding:9px 6px}.card-title{font-size:14px}.hand-heading>span{max-width:130px;text-align:right}.room-bar .connection{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.mode-picker{border:0;margin:0 0 19px;padding:0;display:flex;gap:10px}.mode-picker legend{font-size:13px;font-weight:600;margin-bottom:9px}.mode-picker label{flex:1;display:flex;align-items:flex-start;gap:8px;margin:0;cursor:pointer;padding:10px;border:1px solid #b7bea8;border-radius:8px}.mode-picker label:has(input:checked){background:#e2e7d4;border-color:#526d47}.mode-picker input{width:16px;min-height:16px;height:16px;flex-shrink:0;margin:4px 0;accent-color:var(--green)}.mode-picker strong{font-size:12px;display:block}.mode-picker small{display:block;font-size:10px;font-weight:400;color:#5f6d55;margin-top:3px}.queen-row{grid-template-columns:repeat(3,minmax(0,120px));justify-content:center;gap:20px}.queen-pig{background:#f0dda5}.crown{position:absolute;top:5px;right:8px;color:#835712}.crown svg{width:22px;height:22px}.goal-pips .royal{background:#c49637;border-color:#c49637}.action-card.queen{background:#f1d59e;color:#705015}.action-card.escape{background:#decddd;color:#604961}.action-card.lucky{background:#d4ddbf;color:#46582a}@media(max-width:760px){.queen-row{grid-template-columns:repeat(3,minmax(0,90px));gap:15px}.queen-row .pig{min-height:112px}.queen-row .pig-picture{height:62px}.queen-row+.table-center{padding-top:18px}.score{font-size:9px}.mode-picker{gap:8px}.mode-picker label{padding:10px 8px}}
.mode-picker:disabled{opacity:.55}.mode-picker:disabled label{cursor:default}.turn-message:focus-visible{outline:2px solid #52774f;outline-offset:6px;border-radius:4px}

.pig-count-picker{margin-bottom:20px}.pig-count-picker select{width:100%;min-height:48px;border:1px solid #aeb6a1;border-radius:8px;background:var(--white);color:var(--ink);padding:10px 14px;font:inherit}.pig-count-picker p{margin-top:7px}.saved-rooms{padding:20px 0;border-top:1px solid var(--line)}.saved-rooms h2{font-size:23px;margin-bottom:12px}.saved-rooms>div{display:flex;flex-wrap:wrap;gap:8px}.saved-rooms button{font-size:12px}#open-recovery{text-align:left;padding-left:0;margin-top:12px}#recovery-panel{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}#recovery-panel summary{cursor:pointer;font-size:14px;font-weight:600;padding:8px 0}#recovery-panel p{margin:10px 0}#recovery-form label{margin-top:14px}#recovery-submit{margin-top:8px}#access-dialog p{margin:16px 0}#access-dialog label{font-size:13px;display:block;margin:16px 0 7px}#personal-link{font-size:12px}#personal-code{font-family:monospace;font-size:17px;letter-spacing:.04em}#copy-personal{margin-top:12px}.access-warning{background:#ede2c9;border-radius:8px;padding:12px}.pigs-1{grid-template-columns:minmax(0,120px);justify-content:center}.pigs-2{grid-template-columns:repeat(2,minmax(0,120px));justify-content:center}.pigs-3{grid-template-columns:repeat(3,minmax(0,120px));justify-content:center}.pigs-4{grid-template-columns:repeat(4,minmax(0,1fr))}.pigs-5{grid-template-columns:repeat(5,minmax(0,1fr))}.pigs-6{grid-template-columns:repeat(3,minmax(0,1fr))}.goal-pips{flex-wrap:wrap}.room-bar{flex-wrap:wrap}#personal-access{font-size:12px}.player-label{flex-wrap:wrap}.score{white-space:normal}
@media(max-width:760px){.pigs-1{grid-template-columns:minmax(0,90px)}.pigs-2{grid-template-columns:repeat(2,minmax(0,90px))}.pigs-3{grid-template-columns:repeat(3,minmax(0,90px))}.pigs-6{grid-template-columns:repeat(3,minmax(0,1fr))}.pigs-1,.pigs-2,.pigs-3{gap:15px}.room-bar .connection{flex-basis:100%;justify-content:flex-end;padding:2px 0 6px}#personal-code{font-size:15px}}

.lock-hint{font-size:10px;line-height:1.3;text-align:center;color:#7b4935;padding:4px 2px 0;overflow-wrap:anywhere}
/* A sheltered pig reads as a little house, with independent storm and lock protection. */
.pig{padding:10px 6px 8px;min-height:166px}.pig-scene{display:block;position:relative;width:min(100%,108px);height:110px;margin:0 auto 4px;flex-shrink:0}.pig-scene .pig-picture{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);z-index:2;width:70px;height:70px}.pig-scene .clean-picture{background-size:210px 140px;background-position:-2px -28px}.pig-scene .muddy-picture{background-size:150px 100px;background-position:-69px -17px}.barn-structure{position:absolute;inset:18px 0 8px}.barn-roof{position:absolute;inset:0 -2px auto;height:31px;background:#9b513d;clip-path:polygon(50% 0,100% 80%,100% 100%,0 100%,0 80%);z-index:3}.barn-walls{position:absolute;inset:26px 5px 0;border:5px solid #b57953;border-bottom:7px solid #b57953;border-radius:0 0 4px 4px;background:#eacb95}.has-barn .pig-scene .pig-picture{bottom:12px}.has-barn{background:#f7eed7}.has-barn.dirty{background:#e6ccac}.has-barn.queen-pig{background:#f0dda5}.roof-rod{position:absolute;z-index:4;width:3px;height:27px;top:1px;left:calc(50% - 1px);background:#386b80}.roof-rod:before{content:'';position:absolute;left:-5px;top:3px;width:13px;height:3px;background:#386b80}.rod-badge{position:absolute;z-index:5;right:0;top:3px;width:26px;height:26px;border-radius:50%;background:#355f76;color:#fffdf6;display:grid;place-items:center}.rod-badge svg{width:18px;height:18px}.barn-gate{position:absolute;z-index:3;left:5px;right:5px;bottom:9px;height:24px;border:3px solid #71603d;border-radius:2px;background:#c7a87a}.barn-gate:before,.barn-gate:after{content:'';position:absolute;top:2px;bottom:2px;width:2px;background:#71603d;left:27%}.barn-gate:after{left:72%}.seal-badge{position:absolute;z-index:4;left:calc(50% - 15px);bottom:4px;display:grid;place-items:center;width:30px;height:30px;background:var(--green);color:var(--white);border-radius:7px}.seal-badge svg{width:22px;height:22px}.pig-scene .crown{z-index:5;right:calc(50% - 15px);top:28px;background:#f5d87b;border-radius:6px;display:grid;place-items:center;width:30px;height:25px}.has-barn .pig-scene .crown{top:39px}.protections{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;min-height:28px;margin-top:7px}.protections>span{display:inline-flex;gap:3px;align-items:center;font-size:10px;line-height:1.3;color:#644d34}.protections>span[title="Parafulmine"]{color:#2d596b}.protections>span[title="Lucchetto"]{color:#30573d;font-weight:700}.protections svg{width:15px;height:15px;flex-shrink:0}.pig .target-prompt{position:static;align-self:stretch;border-radius:4px;margin-top:5px;padding:4px;font-size:10px}.pig-state{font-size:12px}.pig-index{z-index:6}.hand-size-4,.hand-size-5{max-width:none}.hand-size-4{grid-template-columns:repeat(4,minmax(0,1fr))}.hand-size-5{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.hand-size-5 .action-card{padding:12px 10px}.hand-size-5 .card-title{font-size:17px}.hand-size-5 .card-description{font-size:11px}.turn-strip{position:sticky;top:8px;z-index:12;display:flex;align-items:center;gap:13px;padding:14px 18px;margin-bottom:18px;border-radius:12px;background:#ebe7d8;color:#4e5848;box-shadow:0 5px 14px #273d2420}.turn-strip.is-mine{background:var(--green);color:var(--white)}.turn-strip>svg{width:33px;height:33px;flex-shrink:0}.turn-strip strong{display:block;font-family:Fraunces,Georgia,serif;font-size:25px;line-height:1.2}.turn-strip span{display:block;font-size:12px;margin-top:3px}.turn-strip small{font-size:12px;margin-left:auto;white-space:nowrap}.turn-tag.your-turn{font-size:17px}#sound-toggle{font-size:12px}#sound-toggle[aria-pressed="true"]{font-weight:700;color:#30573d}select:focus-visible{outline:3px solid var(--focus,#a84b3e);outline-offset:4px}input,select{accent-color:var(--green);caret-color:var(--green)}
/* Short, nonblocking sequences. A dark veil and one symbol carry the event. */
.turn-alert,.screen-effect{position:fixed;inset:0;z-index:45;display:grid;place-items:center;pointer-events:none;overflow:hidden}.turn-alert[hidden],.screen-effect[hidden]{display:none}.turn-alert{background:#253b242e}.turn-stamp{max-width:calc(100% - 36px);width:490px;padding:28px 22px 32px;text-align:center;border-radius:16px;background:var(--green);color:var(--paper);box-shadow:0 16px 60px #182a2540}.turn-stamp>svg{width:54px;height:43px;display:block;margin:0 auto 13px;color:#efaaa0}.turn-stamp strong{display:block;font-family:Fraunces,Georgia,serif;font-size:clamp(42px,7vw,70px);line-height:1.1;letter-spacing:-.025em}.turn-stamp span{display:block;font-size:14px;margin-top:15px}.turn-active .turn-stamp{animation:turn-stamp 1.7s cubic-bezier(.16,1,.3,1) both}.turn-active{animation:veil 1.7s linear both}.screen-effect{background:#153749e0;color:#fffdf6}.effect-lightning{background:#443516e0;color:#fff1b6}.effect-wash{background:#20575be0;color:#efffff}.effect-message{position:relative;z-index:2;text-align:center;max-width:min(640px,calc(100% - 40px));text-shadow:0 3px 14px #18303c50}.effect-title{font-family:Fraunces,Georgia,serif;font-size:clamp(36px,6vw,65px);line-height:1.12;letter-spacing:-.025em;display:block;text-wrap:balance}.effect-description{display:block;font-size:15px;margin:16px auto 0;max-width:38ch;line-height:1.5}.effect-symbol{margin:0 auto 16px}.effect-symbol svg{width:90px;height:90px;stroke-width:1.4}.effect-particles{position:absolute;inset:0;overflow:hidden}.effect-particles i{position:absolute;left:var(--x);top:-80px;width:3px;height:70px;background:#c9f0fbab;border-radius:8px;transform:rotate(14deg)}.effect-wash .effect-particles i{top:auto;bottom:-80px;width:var(--size,36px);height:var(--size,36px);border:2px solid #c5f0eda6;border-radius:50%;background:#c5f0ed14}.effect-lightning .effect-particles i{display:none}.effect-active{animation:veil 1.4s linear both}.effect-active .effect-message{animation:event-enter .45s cubic-bezier(.16,1,.3,1) both}.effect-rain.effect-active .effect-particles i{animation:rainfall .85s linear var(--delay,0s) 2 both}.effect-wash.effect-active .effect-particles i{animation:bubbles 1.4s ease-out var(--delay,0s) 1 both}.effect-lightning.effect-active .effect-symbol{animation:thunder-strike .55s cubic-bezier(.16,1,.3,1) both}.effect-target{outline:3px solid #a84b3e;outline-offset:3px}
@keyframes turn-stamp{0%{opacity:0;transform:scale(1.12) rotate(-5deg)}18%,78%{opacity:1;transform:scale(1) rotate(-2deg)}100%{opacity:0;transform:scale(.97) rotate(-2deg)}}@keyframes veil{0%{opacity:0}15%,78%{opacity:1}100%{opacity:0}}@keyframes event-enter{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes rainfall{from{transform:translate3d(0,-10vh,0) rotate(14deg)}to{transform:translate3d(-18vw,115vh,0) rotate(14deg)}}@keyframes bubbles{from{opacity:0;transform:translate3d(0,0,0) scale(.7)}30%{opacity:1}to{opacity:0;transform:translate3d(5vw,-100vh,0) scale(1.4)}}@keyframes thunder-strike{from{opacity:0;transform:translateY(-60px) scale(1.2)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1050px) and (min-width:761px){.hand-size-5{grid-template-columns:repeat(3,minmax(0,1fr))}.turn-strip strong{font-size:23px}.pig-scene{height:102px}.pig-scene .pig-picture{width:60px;height:60px}.protections>span{font-size:9px}}
@media(max-width:760px){.pigs-4{grid-template-columns:repeat(2,minmax(0,1fr))}.pigs-5{grid-template-columns:repeat(3,minmax(0,1fr))}.pigs-1,.pigs-2,.pigs-3{grid-template-columns:repeat(var(--pig-cols,3),minmax(0,1fr));gap:8px}.pigs-1{--pig-cols:1;max-width:130px;margin-inline:auto}.pigs-2{--pig-cols:2;max-width:270px;margin-inline:auto}.pig{min-height:163px;padding:9px 5px}.pig-scene{height:104px;max-width:100px}.pig-scene .pig-picture{width:60px;height:60px}.pig-scene .clean-picture{background-size:185px 123px;background-position:-2px -24px}.pig-scene .muddy-picture{background-size:140px 93px;background-position:-66px -15px}.pig-state{font-size:11px}.protections>span{font-size:10px}.hand-size-4{grid-template-columns:repeat(2,minmax(0,1fr))}.hand-size-5{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hand-size-5 .action-card{padding:11px 8px}.hand-size-5 .card-title{font-size:16px}.hand-size-5 .card-description{font-size:10px}.turn-strip{top:5px;padding:11px 12px;margin-bottom:12px;gap:10px}.turn-strip strong{font-size:23px}.turn-strip span{font-size:11px}.turn-strip small{font-size:10px;max-width:50px;white-space:normal}.turn-strip>svg{width:27px;height:27px}.room-bar{gap:3px 9px}.room-bar .connection{flex-basis:auto;margin-left:auto;padding:0}.effect-description{font-size:14px}.effect-symbol svg{width:75px;height:75px}}
@media(prefers-reduced-motion:reduce){.turn-active{animation:veil 1.7s linear both!important}.effect-active{animation:veil 1.4s linear both!important}.turn-active .turn-stamp,.effect-active .effect-message,.effect-lightning.effect-active .effect-symbol{animation:none!important;transform:none}.effect-particles{display:none}.effect-target{outline-offset:2px}}

.effect-particles i:nth-child(1){--x:0%;--delay:-0.00s;--size:22px}.effect-particles i:nth-child(2){--x:37%;--delay:-0.17s;--size:35px}.effect-particles i:nth-child(3){--x:74%;--delay:-0.34s;--size:48px}.effect-particles i:nth-child(4){--x:1%;--delay:-0.51s;--size:61px}.effect-particles i:nth-child(5){--x:38%;--delay:-0.68s;--size:28px}.effect-particles i:nth-child(6){--x:75%;--delay:-0.85s;--size:41px}.effect-particles i:nth-child(7){--x:2%;--delay:-0.12s;--size:54px}.effect-particles i:nth-child(8){--x:39%;--delay:-0.29s;--size:67px}.effect-particles i:nth-child(9){--x:76%;--delay:-0.46s;--size:34px}.effect-particles i:nth-child(10){--x:3%;--delay:-0.63s;--size:47px}.effect-particles i:nth-child(11){--x:40%;--delay:-0.80s;--size:60px}.effect-particles i:nth-child(12){--x:77%;--delay:-0.07s;--size:27px}.effect-particles i:nth-child(13){--x:4%;--delay:-0.24s;--size:40px}.effect-particles i:nth-child(14){--x:41%;--delay:-0.41s;--size:53px}.effect-particles i:nth-child(15){--x:78%;--delay:-0.58s;--size:66px}.effect-particles i:nth-child(16){--x:5%;--delay:-0.75s;--size:33px}.effect-particles i:nth-child(17){--x:42%;--delay:-0.02s;--size:46px}.effect-particles i:nth-child(18){--x:79%;--delay:-0.19s;--size:59px}.effect-particles i:nth-child(19){--x:6%;--delay:-0.36s;--size:26px}.effect-particles i:nth-child(20){--x:43%;--delay:-0.53s;--size:39px}

/* Keep the playing surface together; secondary details expand on demand. */
.in-game .header{padding-top:6px;padding-bottom:6px}.in-game .brand{font-size:25px}.in-game .brand svg{width:28px;height:26px}.in-game footer{display:none}.in-game .table-page{padding-bottom:8px}.in-game .room-bar{padding:3px 0;gap:5px}.in-game .turn-strip{position:relative;top:auto;padding:7px 12px;margin-bottom:8px;box-shadow:none}.in-game .turn-strip strong{font-size:22px}.in-game .turn-strip span{display:none}.in-game .turn-strip>svg{width:26px;height:26px}.in-game .game-layout{gap:20px}.in-game .board{padding:10px 14px 4px}.in-game .player-label{margin:0 0 5px;min-height:25px;gap:5px}.in-game .avatar{width:24px;height:24px;font-size:11px}.in-game .player-label h2{font-size:13px}.in-game .score strong{font-size:15px}.in-game .pig-row{grid-template-columns:repeat(var(--pig-cols),minmax(0,1fr));max-width:none;gap:7px}.in-game .pigs-1{--pig-cols:1;max-width:110px;margin-inline:auto}.in-game .pigs-2{--pig-cols:2;max-width:230px;margin-inline:auto}.in-game .pigs-3{--pig-cols:3;max-width:350px;margin-inline:auto}.in-game .pigs-4{--pig-cols:4}.in-game .pigs-5{--pig-cols:5}.in-game .pigs-6{--pig-cols:6}.in-game .pig{--pig-scale:.62;min-height:110px;padding:5px 3px;border-radius:8px}.in-game .pig-scene{width:100px;max-width:none;height:110px;transform:scale(var(--pig-scale));transform-origin:top center;margin:0 auto calc(110px * (var(--pig-scale) - 1) + 2px)}.in-game .pig-scene .pig-picture{width:70px;height:70px}.in-game .pig-scene .clean-picture{background-size:210px 140px;background-position:-2px -28px}.in-game .pig-scene .muddy-picture{background-size:150px 100px;background-position:-69px -17px}.in-game .pig-state{font-size:11px}.in-game .protections{min-height:15px;margin-top:3px;gap:3px;flex-wrap:nowrap}.in-game .protections svg{width:14px;height:14px}.in-game .protections>span>span{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden}.in-game .pig .target-prompt{position:absolute;bottom:0;left:0;right:0;padding:1px;margin:0;border-radius:0;font-size:9px;z-index:7}.in-game .lock-hint{position:absolute;bottom:0;left:0;right:0;padding:2px;background:var(--white);font-size:9px;z-index:7}.in-game .table-center{padding:7px;gap:12px;min-height:88px}.in-game .deck,.in-game .discard-pile{width:42px;min-height:56px}.in-game .deck-mark{font-size:26px}.in-game .turn-message p{font-size:12px;line-height:1.35}.in-game .turn-tag{display:none}.in-game .turn-number{margin-top:3px}.in-game .hand-heading{margin:5px 0;min-height:34px}.in-game .hand-heading h2{font-size:12px}.in-game #manage-protections{min-height:34px;padding:5px 2px;font-size:11px;text-decoration:underline;text-underline-offset:3px}.in-game #manage-protections:disabled{color:#65715c;text-decoration:none}.in-game .hand{grid-template-columns:repeat(var(--hand-cols,3),minmax(0,1fr));gap:8px;max-width:none}.in-game .hand-size-4{--hand-cols:4}.in-game .hand-size-5{--hand-cols:5}.in-game .action-card{min-height:120px;padding:8px}.in-game .card-symbol svg{width:24px;height:24px}.in-game .card-title{font-size:17px;line-height:1.15;margin-top:3px;overflow-wrap:anywhere}.in-game .card-description{font-size:10px;line-height:1.25;margin:5px 0}.in-game .card-bottom{font-size:8px}.in-game .hand-actions{min-height:48px;padding-top:4px;gap:6px}.in-game .hand-actions button{min-height:40px;padding:7px 10px;font-size:11px}.in-game .hand-actions p{font-size:10px}.table-info{min-width:0}.table-info>summary{cursor:pointer;font-size:12px;font-weight:600;padding:8px 2px}.table-info .game-aside{padding-top:8px}.table-info .objective{padding-bottom:12px}.table-info .objective h2{font-size:25px}.table-info .activity{margin-top:14px}.table-info .activity li{padding:7px 0}.table-info .goal-pips{margin-top:12px}.protection-choice{border-top:1px solid var(--line);padding:14px 0}.protection-choice h3{margin:0 0 10px;font-size:15px}.protection-choice>div{display:flex;flex-wrap:wrap;gap:8px}.protection-choice button{font-size:13px;padding:10px 12px;gap:8px;text-align:left}.protection-choice small{display:block;font-size:11px;font-weight:400;margin-top:3px}#protection-list{margin:18px 0}#protections-done{width:100%}
@media(max-width:1050px){.in-game .table-page,.in-game .header{padding-inline:16px}.in-game .game-layout{grid-template-columns:minmax(0,1fr) 185px;gap:16px}.in-game .card-description{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden}.in-game .action-card{min-height:102px}.in-game .card-title{font-size:16px}.in-game .hand-size-5 .card-title{font-size:14px}.in-game .pig{--pig-scale:.55;min-height:100px}}
@media(max-width:760px){.in-game .header{padding:0 12px;min-height:44px}.in-game .brand{font-size:22px}.in-game .header .quiet{font-size:11px}.in-game .table-page{padding:0 8px 6px}.in-game .room-bar{display:grid;grid-template-columns:auto 1fr auto;padding:0;gap:0 8px}.in-game .room-bar>button{min-height:34px;padding:5px 2px;font-size:11px}.in-game .room-bar .connection{font-size:9px;padding:0;justify-content:flex-end;white-space:nowrap}.in-game .room-code strong{font-size:11px;margin-inline:3px}.in-game .room-bar #sound-toggle{grid-column:2;grid-row:2}.in-game .room-bar #leave{grid-column:1;grid-row:2}.in-game .room-bar .connection{grid-column:3;grid-row:2}.in-game .room-bar #personal-access{grid-column:3;grid-row:1}.in-game .room-bar #copy-room{grid-column:1/3;grid-row:1;text-align:left}.in-game .turn-strip{min-height:40px;padding:6px 9px;margin-bottom:5px;gap:8px}.in-game .turn-strip strong{font-size:21px}.in-game .turn-strip small{max-width:none;white-space:nowrap}.in-game .game-layout{display:flex;gap:2px}.in-game .board{padding:7px 7px 3px;border-radius:10px}.in-game .pig-row{gap:5px}.in-game .pig{--pig-scale:.5;min-height:91px;padding:4px 1px}.in-game .pigs-6 .pig{--pig-scale:.4}.in-game .pig-scene{margin-left:calc((100% - 100px) / 2);margin-right:calc((100% - 100px) / 2)}.in-game .pig-index{top:2px;left:3px;font-size:9px}.in-game .pig-state{font-size:10px}.in-game .protections{gap:2px;min-height:14px}.in-game .protections svg{width:12px;height:12px}.in-game .player-label h2{font-size:11px}.in-game .player-label small{font-size:9px}.in-game .player-label>div:first-child{gap:4px}.in-game .avatar{width:21px;height:21px;font-size:10px}.in-game .score{font-size:9px}.in-game .score strong{font-size:13px}.in-game .opponent-cards{gap:2px}.in-game .opponent-cards i{width:9px;height:15px}.in-game .table-center{min-height:84px;padding:5px 2px;gap:8px}.in-game .turn-message p{font-size:11px}.in-game .turn-number{font-size:9px}.in-game .hand{gap:5px}.in-game .action-card,.in-game .hand-size-5 .action-card{min-height:91px;padding:7px 5px}.in-game .card-symbol svg{width:22px;height:22px}.in-game .card-title{font-size:15px}.in-game .hand-size-4 .card-title,.in-game .hand-size-5 .card-title{font-size:12px}.in-game .card-bottom{font-size:7px;letter-spacing:0}.in-game .action-card.selected{outline-offset:1px;transform:translateY(-2px)}.in-game .hand-actions{flex-wrap:nowrap;min-height:45px}.in-game .hand-actions button{font-size:10px;padding:5px 7px;min-height:40px}.in-game .table-info>summary{font-size:11px;padding:6px}.in-game .game-aside{padding:8px;gap:14px}.in-game .hand-heading h2{font-size:11px}.in-game #manage-protections{font-size:10px}.in-game .table-info .activity li:nth-child(n+4){display:list-item}}
@media(max-width:760px) and (max-height:700px){.in-game .pig{--pig-scale:.42;min-height:80px}.in-game .pigs-6 .pig{--pig-scale:.36}.in-game .table-center{min-height:76px}.in-game .action-card,.in-game .hand-size-5 .action-card{min-height:85px}.in-game .hand-actions{min-height:43px}.in-game .hand-heading{margin:2px 0}.in-game .player-label{min-height:23px;margin-bottom:3px}}
@media(max-width:760px){.in-game .card-bottom{display:none}.in-game .hand-size-5 .card-title{font-size:11px}.in-game .hand-size-5 .action-card{padding-inline:4px}}
@media(max-width:760px) and (max-height:600px){.in-game .header{min-height:40px}.in-game .header .quiet{min-height:40px}.in-game .room-bar>button{min-height:30px}.in-game .pig{min-height:66px}.in-game .protections{display:none}.in-game .table-center{min-height:64px}.in-game .hand-heading,.in-game #manage-protections{min-height:30px}.in-game .action-card,.in-game .hand-size-5 .action-card{min-height:76px}.in-game .hand-actions{min-height:40px}.in-game .hand-actions p{font-size:9px}.in-game .table-info>summary{padding:4px 6px}}
@media(max-width:760px){.in-game .player-label{flex-wrap:nowrap}.in-game .player-label>div:first-child{flex:1;min-width:0}.in-game .player-label h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.in-game .player-label .score{white-space:nowrap}.in-game .opponent-cards i{display:none}.in-game .opponent-cards:after{content:attr(data-count) ' carte';font-size:9px;white-space:nowrap;color:var(--muted)}.in-game .opponent-cards{margin-left:0}}
.audio-setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.audio-setting strong{font-size:14px}.audio-setting small{display:block;font-size:12px;color:var(--muted);line-height:1.45;margin-top:4px;max-width:34ch}.audio-setting button{min-width:94px;flex-shrink:0;padding:10px 12px;font-size:13px}.audio-setting button[aria-checked="true"]{background:var(--green);color:var(--white)}.audio-setting button:disabled{background:#e7e9d9;color:var(--muted);max-width:108px;font-size:11px}.volume-label{display:flex;justify-content:space-between;font-size:12px;margin-top:15px}#music-volume{padding:0;min-height:36px;border:0;background:none;accent-color:var(--green)}#audio-status{margin:18px 0;font-size:12px}#audio-done{width:100%}.effect-mud{background:#573923e8;color:#fff0d4}.effect-mud .effect-particles{display:none}@media(max-width:420px){.audio-setting{gap:12px}.audio-setting small{font-size:11px}#audio-dialog{padding:28px 22px}#audio-title{font-size:29px}}
