
:root{--ink:#343d32;--muted:#757b6c;--green:#42604c;--paper:#f6f2e7;--line:#dcdccc;--gold:#f1ce70;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 35%,#fffdf5,transparent 70%)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:#fffdf6;color:var(--ink);padding:12px 19px;border-radius:12px;font-weight:700;min-height:46px;transition:transform .16s,background .16s}button:hover:enabled{transform:translateY(-2px);background:#efeedf}button:disabled{opacity:.4;cursor:default}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover:enabled{background:#314b39}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #bd8734;outline-offset:4px}header{max-width:1160px;margin:auto;padding:25px 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;align-items:center;gap:10px;font-size:29px;color:var(--green)}.brand span{font-size:15px;font-weight:800}.brand small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px;letter-spacing:.04em}.quiet{border:0;background:transparent;font-size:13px}.quiet span{border:1px solid var(--line);padding:3px 7px;border-radius:50%;margin-left:9px}main{max-width:1100px;padding:35px 25px 10px;margin:auto}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.19em;text-transform:uppercase;color:var(--green)}.hero{text-align:center;max-width:800px;margin:25px auto 35px}.hero h1{font-size:clamp(65px,10vw,104px);font-weight:900;line-height:1;letter-spacing:-.07em;margin:18px 0;color:var(--green)}.hero h1 i{color:#c17c44;font-style:normal}.hero p{font-size:17px;line-height:1.65;color:var(--muted);max-width:440px;margin:18px auto}.hero-art{width:min(450px,90%);height:175px;object-fit:contain;display:block;margin:10px auto}.pills{display:flex;gap:8px;justify-content:center}.pill{font-size:11px;border:1px solid var(--line);border-radius:30px;padding:7px 11px;color:var(--green)}.entry{max-width:720px;margin:auto;background:#fffdf6;border:1px solid var(--line);border-radius:22px;padding:25px;box-shadow:0 15px 50px #4a503109}.name-field{display:flex;align-items:center;gap:20px;margin-bottom:23px}.name-field label{font-weight:700;font-size:13px;white-space:nowrap}input,select{padding:12px;border:1px solid var(--line);background:#fffdf8;border-radius:9px;color:var(--ink);min-width:0}input{width:100%}.entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.entry-grid>div+div{border-left:1px solid var(--line);padding-left:25px}h2{font-size:22px;letter-spacing:-.035em}h3{font-size:16px;margin:0 0 8px}.muted,.entry p{color:var(--muted);font-size:13px;line-height:1.6}.entry p{min-height:40px}.entry-grid button{width:100%}.join-line{display:flex;gap:6px}.join-line input{width:60%;text-transform:uppercase;letter-spacing:.07em}.join-line button{width:40%}.practice{text-align:center;margin:20px auto;color:var(--muted);font-size:12px}.practice button{font-size:12px;padding:9px 14px;min-height:36px}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.table-heading h1{font-size:32px;letter-spacing:-.06em;margin:5px 0}.room-tools{display:flex;align-items:center;gap:6px}.room-tools button{font-size:12px;padding:9px 12px}.room-code{font-family:monospace;font-weight:800;letter-spacing:.12em}.status{border:1px solid #d9dec9;background:#edf0df;padding:17px 22px;border-radius:13px;margin:22px 0;font-size:14px;line-height:1.6}.status strong{color:var(--green)}.players{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:11px}.player{border:1px solid var(--line);background:#fffdf6;padding:17px;border-radius:15px;min-width:0}.player.active{border-color:#748f68;box-shadow:0 0 0 2px #748f6820}.player.me{background:#f0f0e2}.player-name{display:flex;gap:6px;align-items:center;font-size:13px;font-weight:700;overflow-wrap:anywhere}.avatar{display:grid;place-items:center;background:#e8e7d4;width:30px;height:30px;border-radius:50%;flex:none}.player small{font-size:10px;color:var(--muted)}.score{display:flex;align-items:center;margin-top:12px;gap:4px;font-size:12px}.score img{width:32px;height:38px;object-fit:contain}.score .empty{opacity:.2;filter:grayscale(1)}.center-table{margin:23px 0;display:flex;gap:30px;justify-content:center;align-items:center;min-height:150px;background:radial-gradient(ellipse,#e6ead9aa,transparent 70%);border-block:1px solid #dedfce66;padding:22px}.deck-stack{width:77px;height:105px;border:5px solid #fffdf6;background:repeating-linear-gradient(45deg,#526c52 0 7px,#617b5d 7px 9px);border-radius:10px;box-shadow:3px 3px 0 #d9dbc7,6px 6px 0 #fdf9ed;display:grid;place-items:center;color:#f6e9ba;font-size:27px;transform:rotate(-5deg)}.center-item{text-align:center;font-size:10px;color:var(--muted)}.center-item>span{display:block;margin-top:13px}.reserve-egg{width:73px;height:100px}.discard-art{width:77px;height:105px;object-fit:contain;background:#fffdf6;border:1px dashed var(--line);border-radius:10px}.hand-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 12px}.hand-heading h2{font-size:18px;margin:0}.hand-heading span{font-size:11px;color:var(--muted)}.hand{display:flex;gap:15px;justify-content:center}.card{width:135px;height:183px;padding:9px;border:1px solid #d6d4c5;background:#fffcf3;border-radius:14px;box-shadow:0 4px 0 #dcd9c9;position:relative;display:flex;flex-direction:column;align-items:center}.card img{width:100%;height:130px;object-fit:contain}.card strong{font-size:12px}.card::before{content:'✿';position:absolute;top:8px;left:10px;color:#839577;font-size:15px}.card.selected{border-color:var(--green);box-shadow:0 0 0 3px #64845b50;transform:translateY(-9px)}.actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin:26px 0 12px}.actions button{font-size:13px}.hint{text-align:center;font-size:12px;color:var(--muted);line-height:1.6}.lobby{max-width:650px;margin:35px auto}.lobby .players{margin:25px 0}.lobby-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:23px 0}.lobby-controls label{font-size:12px}.history{max-width:650px;margin:25px auto;border-top:1px solid var(--line);padding-top:16px}.history summary{cursor:pointer;color:var(--muted);font-size:12px}.history li{font-size:12px;color:var(--muted);line-height:1.9}.result{text-align:center;padding:20px;background:#f4e7b6;border:1px solid #ddc784;border-radius:15px;margin:18px 0}.result h2{margin:8px}footer{text-align:center;font-size:10px;color:var(--muted);padding:30px 15px;letter-spacing:.03em}footer span{margin:0 9px}#notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#344834;color:white;border-radius:12px;box-shadow:0 6px 30px #0002;padding:14px 20px;font-size:13px;z-index:5;max-width:90vw;width:max-content;pointer-events:none}#notice:empty{display:none}dialog{border:1px solid var(--line);border-radius:22px;padding:35px;max-width:580px;width:calc(100% - 30px);max-height:85dvh;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#29382580;backdrop-filter:blur(5px)}dialog p{font-size:14px;line-height:1.65}.close{float:right;padding:0;width:35px;min-height:35px;font-size:24px}.rule{padding:13px 0;border-bottom:1px solid var(--line)}.rule p{margin:5px 0}.defense{border-color:#d1a45c;background:#fff0cb}.defense .actions{justify-content:flex-start;margin:12px 0 0}@media(max-width:600px){header{padding:17px 16px}main{padding:20px 14px 5px}.hero{margin:18px auto 25px}.hero-art{height:140px}.hero p{font-size:15px}.entry{padding:20px}.entry-grid{grid-template-columns:1fr;gap:20px}.entry-grid>div+div{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.entry p{min-height:0}.name-field{gap:12px}.card{width:calc((100vw - 55px)/4);height:145px;padding:6px 3px}.card img{height:105px}.card strong{font-size:10px}.hand{gap:8px}.card::before{font-size:11px;left:6px}.table-heading{align-items:flex-start}.room-tools{flex-wrap:wrap;justify-content:flex-end;max-width:200px}.players{grid-template-columns:repeat(2,1fr)}.player{padding:12px}.center-table{gap:25px;margin:16px 0;padding:17px;min-height:130px}.center-table .deck-stack,.discard-art{width:65px;height:88px}.reserve-egg{width:65px;height:88px}.actions{gap:7px}.actions button{padding:11px;font-size:12px}.hand-heading span{max-width:155px;text-align:right}.status{padding:14px 16px}.hero h1{font-size:72px}.room-code{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Las fotografías se conservan intactas; estas ventanas encuadran las cartas. */
.photo-art{display:inline-block;position:relative;overflow:hidden;vertical-align:middle;isolation:isolate;flex:none;background:#fffdf4;border-radius:9px;aspect-ratio:var(--ratio, .64);width:100%;--width:142.86%;--left:-22.62%;--top:-11.74%}
.photo-art>img{position:absolute;display:block;max-width:none!important;width:var(--width)!important;height:auto!important;left:var(--left);top:var(--top);object-fit:initial!important}
.photo-hen{--ratio:840/1320;--width:142.86%;--left:-22.62%;--top:-11.74%}
.photo-rooster{--ratio:780/1200;--width:153.85%;--left:-24.36%;--top:-17.5%}
.photo-nest{--ratio:830/1240;--width:144.58%;--left:-20.48%;--top:-11.29%}
.photo-fox{--ratio:690/1030;--width:173.91%;--left:-37.68%;--top:-28.16%}
.photo-back{--ratio:790/1200;--width:151.9%;--left:-18.99%;--top:-19.17%}
.photo-egg{--ratio:600/820;--width:200%;--left:-62.5%;--top:-56.71%;clip-path:polygon(48% 0,65% 3%,81% 16%,94% 38%,100% 62%,94% 82%,78% 96%,50% 100%,23% 94%,7% 79%,0 57%,7% 32%,23% 10%);border-radius:45%}
.photo-chick{--ratio:740/1010;--width:162.16%;--left:-25.68%;--top:-35.15%;clip-path:ellipse(49% 49% at 50% 50%);border-radius:45%}
.hero-photos{display:flex;justify-content:center;align-items:center;gap:18px;margin:25px auto 28px;height:180px}.hero-photos .photo-art{width:112px;box-shadow:0 7px 12px #684a2625;transform:rotate(-9deg)}.hero-photos .photo-chick{width:110px;transform:rotate(5deg);box-shadow:none}.hero-photos .photo-rooster{transform:rotate(9deg)}
:root{--green:#28653c;--paper:#fff9df;--line:#d7d8a9;--gold:#ffda47;--muted:#626b49}
body{background:radial-gradient(ellipse at 20% 0%,#fff0a1,transparent 55%),#fff9df}
.hero h1 i{color:#ed9940}.pill{background:#fff3b4;border-color:#e5c966}.entry{border-color:#e0cd87;box-shadow:0 15px 50px #b79a3a1a}.primary{background:#347f42}.primary:hover:enabled{background:#266a33}
main.tablecloth{margin:28px auto 0;padding:28px;border:8px solid #fff7c5;border-radius:30px;outline:1px solid #d0ae5d;box-shadow:0 12px 35px #685a2c22,inset 0 0 0 2px #ffffff70;background-color:#c6e86a;background-image:linear-gradient(90deg,#ffffff35 50%,transparent 50%),linear-gradient(#ffffff35 50%,transparent 50%),repeating-linear-gradient(0deg,#5f902810 0 1px,transparent 1px 4px);background-size:52px 52px,52px 52px,4px 4px}
.table-heading{padding-bottom:15px;border-bottom:1px dashed #69963d}.table-heading h1{color:#245f34}.room-code{background:#fff7c9;padding:7px 11px;border-radius:8px}.tablecloth .eyebrow{color:#285c2d}.tablecloth .quiet{background:#ffffff70}.status{background:#fff4a9;border-color:#dabb49;box-shadow:0 3px 0 #b69e3c25}.player{background:#fffdf0eF;border:2px solid #fffdf0;box-shadow:0 4px 10px #40601912}.player.me{background:#fff4b6;border-color:#ebcf4e}.player.active{border-color:#3d8a40;box-shadow:0 0 0 3px #fff9cf,0 5px 12px #40601920}.avatar{background:#e2e9a8}.center-table{background:#84bb49bb;border:2px dashed #fbffda;border-radius:50% / 28%;box-shadow:inset 0 2px 12px #3e741620;padding:25px;gap:34px}.center-item{color:#274c1e;font-weight:700}.center-item>span:last-child{background:#fff9d4;border-radius:20px;padding:5px 9px}.center-item>.photo-art{display:inline-block;margin-top:0;padding:0}.deck-stack{padding:0;background:#c9e531;border:3px solid #fff9d4;overflow:hidden;width:77px;height:111px;box-shadow:3px 3px 0 #eadfa5,6px 6px 0 #fff9d4}.deck-stack .photo-art{width:100%;height:100%;border-radius:3px}.reserve-egg{width:73px;height:100px}.discard-art{width:77px;height:111px;background:#fffdf4;border:0;border-radius:7px;box-shadow:0 3px 7px #31582025}.card{height:209px;padding:5px 5px 9px;background:#fffdf4;box-shadow:0 5px 0 #71983f,0 8px 13px #365a2328;border:2px solid #fffdf4;gap:6px}.card .photo-art{height:174px;width:100%;border-radius:8px}.card::before{content:none}.card strong{color:#42572c}.card.selected{border-color:#f2ae23;box-shadow:0 0 0 4px #ffe479,0 8px 13px #365a2340}.actions button{box-shadow:0 3px 0 #789d4050;border-color:#93ad59}.actions .primary{border-color:#2c783a}.hint{color:#354e24}.hand-heading{color:#234d29}.hand-heading span{color:#42642f}.history{border-color:#719840}.history summary,.history li{color:#385729}.defense{background:#ffe89c;border-color:#d38d25}.lobby .muted{color:#385729}
@media(max-width:600px){main.tablecloth{margin:16px 8px 0;padding:15px 10px;border-width:5px;border-radius:22px}.card{width:calc((100vw - 82px)/4);height:auto;min-height:134px;padding:3px 3px 7px;gap:5px}.card .photo-art{height:auto;aspect-ratio:var(--ratio)}.center-table{gap:20px;padding:20px 10px;border-radius:28px}.center-item>span:last-child{font-size:9px;padding:5px 7px}.center-item>.photo-art{padding:0}.hero-photos{height:155px;gap:14px}.hero-photos .photo-art{width:92px}.hero-photos .photo-chick{width:90px}.table-heading h1{font-size:29px}.room-tools{max-width:170px}.room-tools button{padding:7px 9px}.actions{margin-top:22px}.photo-art>img{height:auto!important}.player{padding:10px}.score .photo-art{width:28px;height:35px}.hand-heading span{max-width:140px}}
.score .photo-art{width:32px;height:38px;background:#fffdf4;flex:none}.score .photo-art>img{width:var(--width)!important;height:auto!important}
