.po-site{--po-ink:#172d43;--po-text:#354758;--po-green:#155e51;--po-cream:#fbf7ed;--po-stroke:#dcd4c3;--po-head:var(--head,system-ui);color:var(--po-ink);background:#fbf9f3;min-height:100vh}
.po-wrap{width:min(1150px,calc(100% - clamp(28px,8vw,112px)));margin-inline:auto;min-width:0}
.po-head{background:#fffaf0;border-bottom:1px solid var(--po-stroke)}.po-head>.po-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(10px,3vw,44px);min-height:72px}
.po-logo{margin-right:auto;flex:none}.po-logo img{display:block;width:clamp(101px,15vw,178px);height:auto}
.po-head nav{display:flex;align-items:center;gap:5px}.po-head nav a,.po-head summary{font-weight:700;text-decoration:none;color:var(--po-ink);padding:10px 12px;border-radius:10px}
.po-head nav a[aria-current]{color:#214b92;background:#e7ecfa}.po-head details{position:relative;min-width:0;max-width:210px;z-index:5}.po-head summary{cursor:pointer;display:flex;gap:6px;align-items:center;min-height:44px}.po-head summary::-webkit-details-marker,.po-roomrules summary::-webkit-details-marker{display:none}.po-head summary svg{flex:none;width:20px;stroke:currentColor;stroke-width:1.8;fill:none}.po-head #po-nick{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.po-head details>div{position:absolute;right:0;top:100%;width:190px;padding:6px;background:#fffefa;border:1px solid var(--po-stroke);border-radius:12px;box-shadow:0 8px 24px #17364920}.po-head details>div>a{display:block;padding:10px;color:var(--po-ink);text-decoration:none}.po-head nav a:hover,.po-head details a:hover,.po-head summary:hover{background:#f1ead8}
.po-bread{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.85rem;color:#4d5f65;padding:16px 0}.po-bread a,.po-back{color:#285751}
.po-site h1,.po-site h2,.po-site h3{font-family:var(--po-head);letter-spacing:-.034em;line-height:1.1;margin:0;color:var(--po-ink)}.po-site h2{font-size:clamp(1.55rem,3.1vw,2.35rem)}.po-site h3{font-size:clamp(1.2rem,2vw,1.48rem)}.po-main{padding-bottom:38px}.po-main [id]{scroll-margin-top:12px}
.po-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;align-items:center;overflow:hidden;border-radius:22px;background:#f8efd5}
.po-hero-copy{padding:clamp(21px,3.6vw,48px) 0 clamp(21px,3.6vw,48px) clamp(21px,3.7vw,48px);z-index:1}.po-hero h1,.po-roomhead h1{font-size:clamp(2.4rem,4.8vw,4.5rem);max-width:13ch}.po-hero h1 em{position:relative;display:inline-block;font-style:normal}.po-hero h1 em::after{position:absolute;content:"";bottom:-.04em;height:.085em;left:0;right:0;background:#eeb439;border-radius:80% 50%;transform:rotate(-2deg)}.po-hero-copy>p{max-width:42ch;font-size:clamp(1rem,1.55vw,1.22rem);margin:15px 0 18px}.po-hero-art{height:100%;display:grid;min-width:0}.po-hero-art img{width:100%;height:100%;object-fit:cover;object-position:56% 50%;mask-image:linear-gradient(to right,transparent,#000 13%)}
.po-site .po-actions,.po-cardactions,.po-inline{display:flex;align-items:center;gap:9px 14px;flex-wrap:wrap}.po-site .po-btn,.po-site #po-body button:not(.po-close){display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;text-align:center;text-decoration:none;border-radius:11px;border:1px solid #a7b5aa;padding:.57rem .95rem;color:#21443e;font:700 1rem/1.28 Portal,system-ui,sans-serif;background:#fffdf6}
.po-site .po-btn.primary,.po-site #po-body .primary{background:var(--po-green);border-color:var(--po-green);color:white}.po-site .po-btn.primary:hover:enabled,.po-site #po-body .primary:hover:enabled{background:#0e4d42}.po-site .po-btn.light:hover,.po-site #po-body button:hover:enabled:not(.primary){background:#f2eddd}
.po-section{margin-top:clamp(27px,4vw,50px)}.po-section>h2{margin-bottom:18px}.po-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px}
.po-game{--theme:#e9e3cd;display:flex;flex-direction:column;overflow:hidden;background:#fffcf5;border-radius:15px;border:1px solid #ded6c6;min-width:0;box-shadow:0 3px 0 #312a2010}.po-game[data-card=warcaby]{--theme:#e9acc2}.po-game[data-card=szachy]{--theme:#b6c7e5}.po-game[data-card=statki]{--theme:#a9dedb}.po-game[data-card=cztery-w-rzedzie]{--theme:#edc863}.po-game>img{width:100%;height:auto;aspect-ratio:1.95;object-fit:cover;border-bottom:3px solid var(--theme)}.po-game>div{display:flex;flex-direction:column;flex:1;padding:16px 15px}.po-game p{margin:7px 0 10px;color:var(--po-text);line-height:1.4}.po-game small{font-weight:600;color:#475954;display:block;margin-top:auto}.po-cardactions{margin-top:13px;font-weight:700;gap:5px 12px}.po-cardactions a{color:#285852;min-height:44px;display:inline-flex;align-items:center}
.po-sectionhead,.po-roomhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.po-sectionhead p,.po-roomhead p{margin:7px 0 0;color:var(--po-text)}.po-sectionhead label,#po-body label{font-weight:700}.po-site select,.po-site input:not([type=checkbox]),.po-site textarea{background:#fffefa;border:1px solid #948e7e;border-radius:8px;min-height:44px;padding:8px 10px;color:var(--po-ink);min-width:0;max-width:100%}
.po-lobby{padding:clamp(18px,3vw,32px);border-radius:18px;border:1px solid #c3d4cc;background:#f0f5ed}.po-list-row,.po-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #c4d1c9;padding:12px 0}.po-list-row>div,.po-history-row>div{min-width:0;overflow-wrap:anywhere}.po-list-row strong,.po-history-row strong{display:block}.po-list-row small,.po-history-row small{display:block;color:#41534f}.po-lobby #po-list{margin:18px 0}.po-empty{margin:0;padding:15px 0;border-block:1px solid #c4d1c9}.po-empty p{margin:.25em 0;color:var(--po-text)}.po-tips{display:grid;grid-template-columns:1fr 1fr;gap:clamp(15px,4vw,70px)}.po-tips section{border-top:3px solid #cb9c3b;padding:14px 0}.po-tips p{max-width:53ch;margin:8px 0;color:var(--po-text)}
.po-site #po-network,.po-site #po-notice,.po-site #po-resume,.po-roomnote{padding:12px 16px;background:#f7edcb;border-left:4px solid #ac842a;border-radius:6px;margin:12px 0;overflow-wrap:anywhere}.po-site #po-network{background:#f8e6d2}.po-site #po-resume{border-color:#327367;background:#e9f3ea;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.po-site [hidden]{display:none!important}.po-roomhead{align-items:end;margin:6px 0 22px}.po-roomhead h1{margin-top:6px}.po-roomhead .po-back{font-size:.9rem}.po-seats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.po-seat{border:1px solid #c9d4c7;border-radius:14px;background:#f0f5ed;padding:10px 15px;min-width:0}.po-seat.empty{background:transparent;border-style:dashed}.po-seat strong,.po-seat small{display:block;overflow-wrap:anywhere}.po-seat strong{font-size:1.07rem}.po-seat small{color:#405850}.po-seat.mine{border-left:4px solid #427d6a}.po-roomnote{margin:15px 0}.po-roomnote p{margin:.3em 0}.po-wait,.po-summary{padding:clamp(16px,4vw,35px);margin:14px 0;border-radius:15px;background:#f3efdf;border:1px solid var(--po-stroke)}.po-roomrules{margin-top:12px;color:#41514e}.po-roomrules summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;text-decoration:underline}.po-roomrules p{margin:0 0 10px;max-width:65ch}.po-main #po-table-actions{margin:14px 0}.po-site .po-quiet{color:#40525a;font-size:.9rem}.po-site .po-danger{color:#863731;border-color:#c59e91}.po-foot{border-top:1px solid var(--po-stroke);background:#f7f1e3}.po-foot>div{display:flex;gap:22px;align-items:center;min-height:62px;flex-wrap:wrap}.po-foot a{color:#31524f}
#po-dialog{box-sizing:border-box;width:min(490px,calc(100vw - 26px));max-width:100%;max-height:min(88dvh,840px);overflow:auto;border:1px solid #beb8a5;border-radius:19px;background:#fffcf4;padding:clamp(16px,4vw,26px);color:var(--po-ink);box-shadow:0 16px 65px #122c3b44}#po-dialog::backdrop{background:#1d293e76}.po-dhead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}.po-dhead h2{font-size:1.72rem;overflow-wrap:anywhere}#po-body{overflow-wrap:anywhere}#po-body p{margin:.45em 0 .85em}#po-body label:not(.po-check){display:block;margin:12px 0 3px}#po-body input:not([type=checkbox]),#po-body textarea,#po-body select{width:100%;margin-top:4px;font-weight:400}#po-body small{font-weight:400;color:#485651;display:block}#po-body .po-check{display:flex;gap:8px;align-items:baseline;margin:12px 0;font-weight:400}#po-body .po-check input{width:18px;height:18px;flex:none}#po-body .po-actions{margin-top:14px}#po-body .po-choice{display:flex;align-items:flex-start;flex-direction:column;gap:3px;text-align:left;width:100%;margin:8px 0;padding:10px 15px}#po-body .po-choice small{font-size:.88rem;line-height:1.4;color:inherit}#po-body .po-text{border:none;text-decoration:underline;background:transparent;padding-inline:3px}.po-close{width:44px;height:44px;flex:none;padding:0;font-size:1.5rem;line-height:1;background:transparent}.po-site #po-feedback{background:#f7e7db;border-left:3px solid #a45840;padding:9px;border-radius:5px;color:#71342d}.po-site :where(button,a,input,select,summary):focus-visible{outline:3px solid #284db3;outline-offset:2px}
@media(max-width:700px){.po-wide-nav{display:none}.po-head>.po-wrap{min-height:55px;gap:4px}.po-head nav{gap:0}.po-head nav a,.po-head summary{padding:8px 6px;font-size:.87rem}.po-head details{max-width:110px}.po-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.po-game>div{padding:10px}.po-cardactions{align-items:start;gap:2px 5px}.po-cardactions .po-btn{font-size:.9rem;padding:6px 9px}.po-cardactions a{font-size:.86rem}.po-tips{grid-template-columns:1fr;gap:12px}.po-hero-copy{padding:18px 12px 17px 16px}.po-hero-copy>p{margin:10px 0}.po-hero h1{font-size:clamp(2rem,7.5vw,3rem)}.po-bread{padding-block:10px}.po-roomhead{margin-bottom:14px}}
@media(max-width:530px){.po-wrap{width:calc(100% - 24px)}.po-hero{grid-template-columns:minmax(0,1fr) 29%;align-items:start;background:#f8efd8}.po-hero-copy{display:contents}.po-hero h1{grid-area:1/1;margin:17px 0 4px 15px;align-self:center}.po-hero-art{grid-area:1/2;min-height:88px}.po-hero-art img{object-position:68% 45%;mask-image:linear-gradient(to right,transparent,#000 15%)}.po-hero-copy>p{grid-column:1/-1;padding:0 15px;margin:6px 0 11px}.po-hero .po-actions{grid-column:1/-1;padding:0 15px 16px;gap:6px}.po-hero .po-btn{padding:8px;font-size:.88rem}.po-hero .po-btn span{display:none}.po-lobby{padding:14px 12px}.po-lobby .po-sectionhead{align-items:flex-start}.po-game h3{font-size:1.14rem}.po-game p{font-size:.94rem}.po-head .po-logo img{width:98px}.po-roomhead h1{font-size:2.4rem}.po-seat{padding:8px}.po-head summary{max-width:88px}.po-head summary svg{width:16px}.po-head #po-nick{max-width:55px}.po-site #po-main{padding-bottom:max(24px,env(safe-area-inset-bottom))}}
@media(max-width:350px){.po-wrap{width:calc(100% - 16px)}.po-cardactions .po-btn{width:100%}.po-head .po-logo img{width:84px}}
@media(prefers-reduced-motion:reduce){.po-site *, .po-site *::before,.po-site *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.po-site [aria-invalid=true]{border-color:#a5483c}.po-head details{max-width:min(210px,45vw)}
