.adventure-app{padding-bottom:70px}.adventure-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:28px;padding-top:55px;padding-bottom:34px}.adventure-heading h1{font-size:clamp(38px,5vw,64px);margin:20px 0;line-height:1.1}.adventure-heading em{color:var(--mint);font-style:normal}.adventure-heading p{color:var(--muted);max-width:510px}
.adventure-hero-card{display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px;flex:0 0 auto;max-width:100%;background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:20px}.adventure-hero-card .adventure-zoe{text-align:center}.adventure-hero-card .adventure-zoe>img{width:160px;height:240px;object-fit:contain}.adventure-identity-edit{position:absolute;top:0;right:calc(50% - 80px);width:34px;height:34px;border-radius:50%;background:var(--panel);border:1px solid var(--line-strong);font-size:15px;cursor:pointer;display:grid;place-items:center;box-shadow:0 4px 10px #0004}.adventure-identity-edit:hover{border-color:var(--primary)}.adventure-hero-progress{min-width:150px;padding-top:6px}.adventure-hero-progress span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.adventure-hero-progress progress{width:100%}.adventure-hero-link{margin-top:12px;font-size:11px;padding:8px 12px;white-space:nowrap}
/* Quiet collectible badges: compact, consistent line icons and warm metal accents. */
.adventure-hero-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:4px 0 24px;padding:16px 0;border-top:1px solid var(--line)}
.hero-badge{position:relative;display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;padding:16px;border-radius:16px;border:1px solid #ffffff16;background:linear-gradient(145deg,#24262c,#191b20);color:#93969e;cursor:pointer;box-shadow:inset 0 1px 0 #ffffff05;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.hero-badge .e8k-icon{width:28px;height:28px;stroke-width:1.4}
.hero-badge.is-earned{color:#dcc392;border-color:#c6a76d50;background:linear-gradient(145deg,#302c25,#201f20);box-shadow:inset 0 1px 0 #ead3a518,0 4px 12px #00000014}
.hero-badge.is-earned::after{content:"";position:absolute;bottom:8px;width:3px;height:3px;background:currentColor;border-radius:50%}
.hero-badge:hover{border-color:#dcc39299;transform:translateY(-2px)}
.hero-badge:focus-visible{outline:2px solid #dcc392;outline-offset:4px}
@media(max-width:520px){.adventure-hero-badges{gap:8px}.hero-badge{flex-basis:56px;width:56px;height:56px;padding:14px}.hero-badge .e8k-icon{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){.hero-badge{transition:none}.hero-badge:hover{transform:none}}
.badge-info-toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%) translateY(10px);max-width:min(420px,90vw);background:#171827;color:var(--ink);border:1px solid var(--line-strong);border-radius:14px;padding:12px 18px;font-size:13px;line-height:1.5;box-shadow:0 18px 46px rgba(0,0,0,.35);z-index:80;opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.badge-info-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:700px){.badge-info-toast{bottom:80px}}.adventure-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.adventure-subjects{display:flex;gap:7px;flex-wrap:wrap}.adventure-subjects button,.adventure-toolbar select{background:var(--panel);border:1px solid var(--line-strong);border-radius:10px;color:var(--ink);padding:12px 18px;font-size:13px;cursor:pointer}
.adventure-parent select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding-right:38px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2389efd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}.adventure-subjects button[aria-pressed=true]{background:#302644;color:#daccff;border-color:var(--primary)}.adventure-toolbar label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:10px}[data-adventure-status]{min-height:34px;font-size:13px;color:var(--mint)}.adventure-map{isolation:isolate;position:relative;overflow:hidden;border:1px solid #b7a0ff38;border-radius:26px;background:linear-gradient(#10131bdd,#141125f2),url('../images/magic/math.webp') center/cover;padding:32px 35px;min-height:490px;box-shadow:0 20px 60px #0003}.adventure-map[data-subject=polski]{background-image:linear-gradient(#151222df,#141125f2),url('../images/magic/polish.webp')}.adventure-map[data-subject=angielski]{background-image:linear-gradient(#111c22df,#141125f2),url('../images/magic/english.webp')}.adventure-map-top{display:flex;align-items:center;justify-content:space-between;gap:25px;position:relative;z-index:2}.adventure-kicker{font-size:10px;letter-spacing:.16em;color:var(--primary);font-weight:800}.adventure-map h2{font-size:28px;margin:9px 0}.adventure-map-progress{min-width:200px;max-width:260px;font-size:11px;color:var(--muted)}progress{width:100%;height:8px;border:0;border-radius:10px;background:#ffffff12;accent-color:var(--mint)}progress::-webkit-progress-bar{background:#ffffff12;border-radius:10px}progress::-webkit-progress-value{background:linear-gradient(90deg,#9580d5,var(--mint));border-radius:10px}.adventure-route-landscape{position:absolute;inset:100px 0 50px;z-index:-1;pointer-events:none}.adventure-route-landscape svg{width:100%;height:100%;fill:none;stroke:#b5a1d342;stroke-width:3;stroke-dasharray:5 9}.terrain{position:absolute;border-radius:48% 52% 30% 70%;background:#5f718712;transform:rotate(-15deg)}.terrain-one{width:230px;height:160px;top:2%;left:22%}.terrain-two{width:300px;height:140px;top:55%;right:12%;background:#87c4b00b}.terrain-three{width:140px;height:120px;bottom:3%;left:10%}.adventure-route{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 18px;padding:35px 0;margin:0;position:relative}.adventure-route>li:nth-child(4n+2),.adventure-route>li:nth-child(4n+3){padding-top:35px}.map-node{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;background:none;border:none;color:var(--ink);cursor:pointer;min-height:150px;padding:8px}.map-node-orb{position:relative;display:grid;place-items:center;width:68px;height:68px;border-radius:22px;background:linear-gradient(135deg,#39304f,#191b2c);border:1px solid #b7a0ff58;box-shadow:0 8px 0 #080c1680,0 14px 25px #0004;color:var(--primary);transform:rotate(-4deg);transition:transform .18s}.map-node-orb svg{width:30px;height:30px;transform:rotate(4deg)}.map-node:hover .map-node-orb,.map-node:focus-visible .map-node-orb{transform:translateY(-3px) rotate(0)}.map-node b{font-size:13px;line-height:1.4;max-width:180px}.map-node small{font-size:10px;color:var(--muted)}.map-node-status{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--mint)}.map-node[data-status=completed] .map-node-orb{background:linear-gradient(135deg,#245c52,#17272e);border-color:#89efd066;color:var(--mint)}.map-node[data-status=available] .map-node-orb{border-color:var(--mint);box-shadow:0 8px 0 #080c1680,0 0 30px #89efd023}.map-node[data-status=locked]{color:#aaa4b8}.map-node[data-status=locked] .map-node-orb{background:#1b1b29;border-color:#938ba134;color:#8e839e;box-shadow:0 7px 0 #080c1680}.map-node[data-type=boss] .map-node-orb{border-radius:20px 20px 36px 36px;color:var(--accent)}.map-node[data-type=chest] .map-node-orb{background:linear-gradient(135deg,#604c2d,#252037);color:var(--accent);border-color:#f2d39188}.adventure-map-legend{display:flex;gap:22px;justify-content:center;flex-wrap:wrap;color:var(--muted);font-size:10px}.adventure-map-legend span{display:flex;gap:7px;align-items:center}.adventure-map-legend i{width:7px;height:7px;border-radius:50%;background:#8c849a}.adventure-map-legend .legend-available{background:var(--mint)}.adventure-map-legend .legend-completed{background:var(--primary)}.adventure-guest{border-top:1px solid var(--line);margin-top:25px;padding-top:24px;font-size:13px;line-height:1.8}.adventure-guest p{color:var(--muted);margin:8px 0 15px}.adventure-guest .btn{font-size:12px;padding:10px 18px;margin:3px}.adventure-city,.adventure-profile{padding-top:70px}.adventure-section-head{display:flex;justify-content:space-between;gap:25px;align-items:end;margin-bottom:28px}.adventure-section-head h2{font-size:clamp(26px,3vw,38px);margin-top:13px}.adventure-section-head>p{color:var(--muted);font-size:13px;max-width:310px}.adventure-city-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.city-place{background:linear-gradient(145deg,#201d32,#151827);border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;align-items:center;padding:22px 15px 20px;color:var(--ink);cursor:pointer;position:relative;overflow:hidden;min-height:190px;transition:border-color .2s,transform .2s}.city-place:hover{transform:translateY(-3px);border-color:var(--primary)}.city-building{display:grid;place-items:center;width:76px;height:80px;background:linear-gradient(145deg,#564570,#25223b);clip-path:polygon(50% 0,96% 30%,90% 100%,10% 100%,4% 30%);color:#d9c8ff;margin-bottom:15px}.city-building:before{content:'';position:absolute;width:36px;height:4px;background:#f2d39133;top:45px;transform:rotate(-35deg)}.city-building svg{width:32px;height:32px}.city-place>b{font-size:14px}.city-place>span:last-child{font-size:10px;color:var(--muted);margin-top:6px}.city-chest .city-building,.city-forge .city-building{background:linear-gradient(145deg,#766344,#302937);color:var(--accent)}.city-stable .city-building,.city-guild .city-building{background:linear-gradient(145deg,#365c59,#202b3c);color:var(--mint)}.adventure-rumors{margin-top:25px;display:flex;flex-wrap:wrap;gap:14px}.rumor-card{flex:1;min-width:min(280px,100%);background:#191725;border:1px solid var(--line);border-radius:16px;padding:22px;text-align:left;color:var(--muted);font-size:13px;line-height:1.8}.rumor-card b{display:block;color:var(--accent);font-size:11px;margin-bottom:7px}.rumor-locations{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.rumor-locations button{color:var(--primary);border:1px solid var(--line-strong);background:none;border-radius:9px;padding:9px 12px;font-size:11px;cursor:pointer}.adventure-profile-character{text-align:center;margin-bottom:28px}.adventure-profile-portrait{position:relative;display:inline-block}.adventure-profile-portrait img{width:140px;height:210px;object-fit:contain}.adventure-profile-character [data-profile-identity] b{display:block;color:var(--accent);margin:6px 0}.adventure-profile-character [data-profile-identity] small{display:block;color:var(--muted);font-size:11px}
.profile-level-progress{color:var(--mint)!important;margin-top:8px!important}
.profile-level-bar{display:block;width:min(220px,100%);margin:6px auto 0;height:6px}.adventure-profile-links{text-align:center;margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}.adventure-profile-links .btn{margin:0 6px 10px}.adventure-profile-links p{color:var(--muted);font-size:12px;margin-top:8px}.adventure-profile-grid{display:grid;grid-template-columns:300px 1fr;gap:30px;background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:30px}.adventure-profile-grid-solo{grid-template-columns:minmax(0,1fr);width:100%;max-width:760px;margin:0 auto}.adventure-zoe{text-align:center}.adventure-zoe>img{width:165px;height:245px;object-fit:contain}.adventure-zoe b{display:block;color:var(--accent);margin:6px 0}.adventure-zoe small{display:block;color:var(--muted);font-size:11px}.adventure-metrics{display:grid;gap:16px;min-width:0}.metric-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;font-size:13px}.metric-row progress{grid-column:1/-1}.metric-row small{color:var(--muted);font-size:11px}.adventure-inventory{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.inventory-list,.adventure-active-pets{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.inventory-list span,.adventure-active-pets span{font-size:11px;color:var(--primary);background:#b7a0ff10;border:1px solid var(--line);padding:7px 11px;border-radius:9px}.adventure-dialog{position:fixed;inset:0;margin:auto;background:#171827;color:var(--ink);border:1px solid var(--line-strong);border-radius:24px;padding:34px;--adv-dlg-pt:34px;--adv-dlg-pr:34px;width:min(600px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 25px 90px #0008}.adventure-dialog::backdrop{background:#070912cc}.adventure-dialog h2{font-size:28px;margin:20px 25px 20px 0}.adventure-dialog-close{position:sticky;right:calc(16px - var(--adv-dlg-pr,34px));top:calc(14px - var(--adv-dlg-pt,34px));z-index:5;display:block;width:34px;height:34px;margin:-34px calc(16px - var(--adv-dlg-pr,34px)) 0 auto;border-radius:9px;border:1px solid var(--line);color:var(--ink);background:#171827e6;cursor:pointer}.adventure-dialog p{font-size:14px;line-height:1.85;color:var(--muted);margin:12px 0}.adventure-lesson{border-left:2px solid var(--primary);padding:12px 17px;background:#b7a0ff08;margin:16px 0;color:var(--muted);font-size:13px;line-height:1.8}.adventure-answers{display:grid;gap:10px;margin:20px 0}.adventure-answers button{background:#ffffff04;color:var(--ink);border:1px solid var(--line-strong);border-radius:12px;padding:14px 17px;text-align:left;cursor:pointer}.adventure-answers button:hover{border-color:var(--primary)}.adventure-answers button:disabled{opacity:.7;cursor:default}.adventure-result{padding:20px;border:1px solid #89efd055;border-radius:16px;background:#89efd008}.adventure-result.is-wrong{border-color:#f2d39155;background:#f2d39108}.adventure-result h3{font-size:21px}.adventure-dialog [role=status]{font-size:13px;color:var(--accent);margin-top:14px}.adventure-catalog{display:grid;gap:12px}.catalog-item{padding:16px;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:15px}.catalog-item b{font-size:13px}.catalog-item p{font-size:11px;margin:5px 0}.catalog-item .btn{font-size:11px;padding:9px 13px;white-space:normal}
.real-reward-heading{font-size:16px;margin:26px 0 4px;padding-top:20px;border-top:1px solid var(--line)}.real-reward-note{font-size:12px;color:var(--muted);margin:0 0 12px}.real-reward-list .catalog-item small{display:block;color:var(--mint);margin-top:4px}
.reward-catalog-list,.reward-request-list{list-style:none;padding:0;margin:10px 0;display:grid;gap:8px}.reward-catalog-list li,.reward-request-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;font-size:12px}.reward-catalog-list li span,.reward-request-list li span{flex:1 1 auto}.adventure-busy{opacity:.65;pointer-events:none}.adventure-parent{border:1px solid var(--line-strong);border-radius:20px;padding:24px;margin:28px 0;background:var(--panel)}.adventure-parent h3{font-size:22px;margin-bottom:14px}.adventure-parent label{display:grid;gap:6px;font-size:12px;margin:12px 0;color:var(--muted)}.adventure-parent input,.adventure-parent select,.adventure-parent textarea{width:100%;padding:11px 13px;background:var(--bg-2);border:1px solid var(--line-strong);border-radius:9px;color:var(--ink)}.adventure-parent .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.adventure-parent .form-check{display:flex;align-items:center;gap:10px}.adventure-parent .form-check input{width:18px;height:18px}.adventure-parent progress{margin:10px 0}.adventure-parent p{font-size:13px;color:var(--muted);line-height:1.8}.adventure-parent details{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.adventure-parent summary{cursor:pointer;color:var(--primary);font-size:14px}.adventure-parent [role=status]{font-size:13px;color:var(--mint);margin-top:10px}.adventure-parent-report{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.adventure-parent-report span{font-size:12px;background:var(--bg-2);border:1px solid var(--line);padding:9px 12px;border-radius:10px}
@media(max-width:700px){.adventure-heading{padding-top:32px}.adventure-heading h1{font-size:38px}.adventure-heading p{font-size:13px}.adventure-hero-card{width:100%;justify-content:center}.adventure-hero-card .adventure-zoe>img{width:130px;height:195px}.adventure-toolbar{align-items:start;flex-direction:column;gap:14px}.adventure-subjects{width:100%}.adventure-subjects button{flex:1;font-size:11px;padding:11px 9px}.adventure-toolbar select{padding:9px 16px}.adventure-map{padding:22px 16px;border-radius:20px}.adventure-map-top{display:block}.adventure-map h2{font-size:23px}.adventure-map-progress{margin-top:13px;max-width:100%}.adventure-route{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px;padding-block:25px}.adventure-route>li:nth-child(n){padding-top:0}.adventure-route>li:nth-child(even){padding-top:38px}.map-node{min-height:150px}.map-node-orb{width:60px;height:60px;border-radius:19px}.map-node b{font-size:12px}.adventure-map-legend{gap:10px;font-size:8px}.adventure-city,.adventure-profile{padding-top:45px}.adventure-section-head{display:block}.adventure-section-head>p{margin-top:15px;font-size:12px}.adventure-city-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.city-place{min-height:170px;padding:16px 10px}.city-place>b{font-size:12px}.city-place>span:last-child{font-size:9px}.city-building{width:63px;height:67px}.adventure-profile-grid{grid-template-columns:1fr;padding:23px;gap:25px}.adventure-zoe>img{height:205px;width:138px}.adventure-dialog{padding:26px 20px;--adv-dlg-pt:26px;--adv-dlg-pr:20px}.adventure-dialog h2{font-size:24px}.adventure-parent{padding:20px 16px}.adventure-parent .form-grid{grid-template-columns:1fr}.catalog-item{align-items:start;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.map-node-orb,.city-place{transition:none;transform:none!important}}

.adventure-reading .adventure-lesson,.adventure-reading .adventure-answers button{font-size:1.2rem;line-height:1.8;letter-spacing:.02em}.adventure-calm *{animation:none!important;transition:none!important}.adventure-profile-portrait{isolation:isolate}.has-moon-cloak .adventure-profile-portrait:before,.has-star-wand .adventure-profile-portrait:before{content:"";position:absolute;inset:10px 8% 30%;border:1px solid #c0aaff70;border-radius:50%;background:radial-gradient(ellipse,#a788e933,transparent 65%);z-index:-1}.has-star-wand .adventure-profile-portrait:before{border-color:#e3c98788;background:radial-gradient(ellipse,#e9c78533,transparent 65%)}.adventure-active-pets .e8k-icon{width:32px;height:32px}.map-node-treasure .map-node-orb{border-color:#ddbc7780;color:#f0d69d;background:#352c28}.adventure-parent-report{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px;color:var(--mint);font-size:12px}.pay-form-wide input,.pay-form-wide select{display:block;width:100%;margin-top:7px}.pay-form-wide select{background:var(--panel);color:var(--ink);padding:12px;border:1px solid var(--line);border-radius:10px}

.chapter-topics{display:grid;gap:9px;margin:20px 0}.chapter-topics .btn{white-space:normal;text-align:left;justify-content:flex-start}.chapter-topics .btn.is-practiced{border-color:#89efd055}.topic-check{color:var(--mint);font-weight:800;flex-shrink:0}.chapter-more-btn{width:100%;justify-content:center;font-size:12px;margin:2px 0 4px;color:var(--mint);border-style:dashed}
.chapter-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.chapter-status-badge{display:inline-flex;align-items:center;gap:8px;color:var(--mint)!important;background:#89efd014;border:1px solid #89efd055;border-radius:999px;padding:8px 16px;font-size:12px;font-weight:700;margin:0 0 6px}
.city-visit-toggle{border-top:0;padding-top:0;margin-top:0}
.city-visit-toggle>summary::-webkit-details-marker{display:none}
.city-visit-toggle:not([open])>summary{display:inline-flex;align-items:center;gap:5px;list-style:none;min-height:48px;padding:13px 26px;font-size:14px;font-weight:800;color:#102b28;background:var(--mint);border-radius:100px;box-shadow:0 10px 26px #75ebc627}
.city-visit-toggle:not([open])>summary:hover{background:#a5f7df}
.city-visit-toggle[open]>summary{display:inline-block;list-style:none;font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.city-visit-toggle[open]>summary:hover{color:var(--mint)}
.city-visit-toggle>summary:focus-visible{outline:3px solid var(--mint);outline-offset:5px}.study-diagram{display:block;width:100%;max-width:500px;margin:20px auto}.adventure-zoe select{max-width:100%;color:var(--ink);background:var(--panel);padding:8px;border:1px solid var(--line);border-radius:8px}

.worn-items{display:flex;gap:12px;flex-wrap:wrap}.worn-items>span{display:flex;align-items:center;gap:9px;border:1px solid #bca1ed55;padding:10px;border-radius:12px}.worn-items svg,.catalog-art svg{width:36px;height:36px;color:var(--mint)}.catalog-art{display:grid;place-items:center;background:#b7a0ff15;border-radius:12px;width:54px;height:54px;flex-shrink:0}.adventure-identity-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}[data-name-form]{display:grid;gap:14px}[data-name-form] label{display:grid;gap:6px;font-size:12px;color:var(--muted)}[data-name-form] input{padding:11px 13px;background:var(--bg-2);border:1px solid var(--line-strong);border-radius:9px;color:var(--ink);font-size:15px}.character-picker-heading{font-size:13px;color:var(--muted);margin:22px 0 4px;text-transform:uppercase;letter-spacing:.06em}.character-picker-heading:first-of-type{margin-top:10px}.character-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:12px;margin-top:14px}.character-picker-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-align:center}.character-picker-card img{width:100%;height:120px;object-fit:cover;object-position:top center;border-radius:10px;background:transparent}.character-picker-card:hover{border-color:#89efd078}.character-picker-card.is-selected{border-color:var(--mint);background:#89efd014;box-shadow:0 0 0 1px var(--mint) inset}.character-picker-select{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;padding:0;border:0;background:none;cursor:pointer;text-align:center;font-size:11px;font-weight:700;color:inherit;font-family:inherit}.character-picker-select:disabled{cursor:default}.character-picker-card.is-locked img{filter:blur(5px) grayscale(.5) brightness(.6)}.character-picker-lock-badge{position:absolute;top:34px;left:50%;transform:translateX(-50%);background:#0d0f18cc;border:1px solid var(--line-strong);border-radius:100px;padding:4px 10px;font-size:10px;font-weight:700;pointer-events:none}.character-picker-info{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;border:1px solid var(--line-strong);background:#0d0f18cc;color:var(--ink);font-size:12px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}.character-picker-info:hover{border-color:var(--primary)}
/* Student shell: one next action, progressive disclosure, real server measurements. */
.mission-continue{display:inline-flex;margin-top:16px}.adventure-heading [data-mission-caption]{display:block;margin-top:10px;color:var(--muted);max-width:44ch}.adventure-realms{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:16px 0 24px;position:relative;z-index:1}.realm-card{display:grid;gap:7px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel-2)}.realm-card small{color:var(--mint)}.learning-hub,.student-exams{padding-top:36px;padding-bottom:28px;scroll-margin-top:90px}.learning-hub>p,.student-exams>p{color:var(--muted);max-width:65ch}.adventure-app details>summary,.parent-resources summary{cursor:pointer;min-height:48px;padding:14px 0;font-weight:700;color:var(--ink)}.adventure-app details>summary:focus-visible,.parent-resources summary:focus-visible{outline:2px solid var(--mint);outline-offset:4px}.adventure-city-grid{margin-top:16px}.subject-stat{border-bottom:1px solid var(--line);padding:8px 0}.subject-domain{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px 0}.subject-domain progress{grid-column:1/-1;width:100%;height:8px;accent-color:var(--mint)}.subject-domain small{grid-column:1/-1;color:var(--muted);line-height:1.6}.skill-card{display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid var(--line);border-radius:14px;margin:12px 0}.skill-card>.e8k-icon{width:32px;height:32px;flex-shrink:0;color:var(--mint)}.skill-card p{color:var(--muted)}
/* Panel umiejętności: kafelki przedmiotów (Matematyka / Polski / Angielski). */
.adventure-skills-panel{margin-top:8px}
.subject-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:12px 0 20px}
.subject-tile{display:grid;gap:6px;justify-items:center;text-align:center;padding:18px 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.subject-tile>.e8k-icon{width:30px;height:30px;color:var(--mint)}
.subject-tile b{font-size:13px}
.subject-tile small{color:var(--muted);font-size:11px}
.subject-tile progress{width:100%;height:6px;margin-top:2px}
.subject-tile .subject-tile-hint{color:var(--muted-2,var(--muted));font-size:10px}
.subject-tile.is-locked{opacity:.45;filter:grayscale(.85)}
.subject-tile.is-locked>.e8k-icon{color:var(--muted)}.role-choice{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:20px}.role-resource-links{display:flex;flex-wrap:wrap;gap:12px}.role-resource-links a{display:inline-flex;align-items:center;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:12px 18px;color:var(--mint)}.parent-resources{padding-top:24px}.adventure-profile h3{margin-top:28px}
@media(max-width:600px){.subject-domain{grid-template-columns:1fr}.adventure-realms{grid-template-columns:repeat(2,minmax(0,1fr))}.realm-card{padding:12px;overflow-wrap:anywhere}.mission-continue{width:100%;justify-content:center}.adventure-hero-card{flex-direction:column;align-items:center;text-align:center}.adventure-hero-progress{width:100%}.role-resource-links{flex-direction:column}.role-resource-links a{justify-content:center}.skill-card .btn{white-space:normal;text-align:left}.adventure-app details>summary{line-height:1.6}}
.adventure-realms .realm-card{font:inherit;text-align:left;color:var(--ink);cursor:pointer;min-height:82px;transition:border-color .15s,background .15s}.adventure-realms .realm-card[aria-pressed="true"]{border-color:var(--mint);background:#183933;box-shadow:inset 0 0 0 1px var(--mint)}.adventure-realms .realm-card:focus-visible{outline:3px solid var(--mint);outline-offset:4px}.adventure-realm-title{position:relative;z-index:1;margin:24px 0 8px;color:var(--ink)}
.showroom-notice{padding:14px;border:1px solid #89efd044;border-radius:12px;background:#89efd008;color:var(--mint);line-height:1.7}.showroom-feature{display:grid;justify-items:center;text-align:center;gap:14px;padding:24px 8px}.showroom-feature>.e8k-icon{width:96px;height:96px;color:var(--mint)}.showroom-feature p{max-width:45ch;line-height:1.8}.showroom-result{padding:16px;margin-top:20px;border-left:3px solid var(--mint);background:#89efd009;border-radius:0 12px 12px 0}.showroom-outfit{padding:16px;border:1px solid var(--line);border-radius:14px;margin-bottom:18px}.showroom-outfit>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.showroom-outfit span{display:grid;justify-items:center;gap:7px;max-width:110px;font-size:12px;text-align:center}.showroom-outfit .e8k-icon{width:48px;height:48px;color:var(--mint)}.showroom-outfit p{font-size:12px;color:var(--muted)}
/* Eight lightweight, distinct places: architecture replaces generic icon containers. */
.adventure-city-grid .city-building{width:100%;max-width:200px;height:160px;display:grid;place-items:center;clip-path:none;background:none;color:inherit;margin-bottom:10px;position:relative}.adventure-city-grid .city-building:before{content:none}.adventure-city-grid .city-building .city-art{display:block;width:100%;height:160px;overflow:visible;filter:drop-shadow(0 9px 9px #080c1844)}.adventure-city-grid .city-place{min-height:265px;padding:14px 12px 22px;background:radial-gradient(ellipse at 50% 40%,#a89ae512,transparent 66%),#171927;border-color:#aea0d62b}.adventure-city-grid .city-place>b{font-size:15px;line-height:1.5}.adventure-city-grid .city-place>span:last-child{font-size:11px;line-height:1.6;text-align:center;max-width:23ch}.adventure-city-grid .city-place:focus-visible{outline:3px solid var(--mint);outline-offset:4px}.city-place:hover .city-art-glimmer,.city-place:focus-visible .city-art-glimmer{opacity:1}.city-art-glimmer{transition:opacity .2s}.adventure-city-grid .city-forge{background:radial-gradient(ellipse at 50% 45%,#d8a77915,transparent 65%),#191824}.adventure-city-grid .city-guild,.adventure-city-grid .city-stable{background:radial-gradient(ellipse at 50% 45%,#87d6bc15,transparent 65%),#151c28}
@media(max-width:600px){.adventure-city-grid .city-building,.adventure-city-grid .city-building .city-art{height:128px}.adventure-city-grid .city-place{min-height:222px;padding:8px 8px 16px}.adventure-city-grid .city-place>b{font-size:13px}.adventure-city-grid .city-place>span:last-child{font-size:10px}}
@media(prefers-reduced-motion:reduce){.city-art,.city-art *{animation:none!important;transition:none!important}.adventure-city-grid .city-place:hover{transform:none}}
.adventure-profile-stats-head{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:6px}.adventure-profile-stats-head h3{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:0}.stat-info-btn{width:22px;height:22px;border-radius:50%;border:1px solid var(--line-strong);background:none;color:var(--muted);font-size:13px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}.stat-info-btn:hover{border-color:var(--primary);color:var(--ink)}.daily-mission-stages.profile-stat-row li{font-size:12px}.daily-mission-stages.profile-stat-row b{font-size:16px}.coming-soon-note{color:var(--muted);font-size:12px;text-align:center;padding:14px;border:1px dashed var(--line-strong);border-radius:12px;background:var(--panel)}
.catalog-emoji{font-size:26px;line-height:1}
.shop-intro{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.shop-open-banner{background:#89efd014;border:1px solid #89efd040;border-radius:14px;padding:14px 16px;margin-bottom:16px}
.shop-open-banner b{display:block;color:var(--mint);font-size:15px;letter-spacing:.02em}
.shop-open-banner p{font-size:13px;color:var(--muted);margin-top:4px}
.shop-closed-note{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px 18px;text-align:center}
.shop-closed-note b{display:block;font-size:16px;color:var(--text);margin-bottom:6px}
.shop-closed-note p{font-size:13px;color:var(--muted);margin-top:4px}
.shop-closed-note p:last-child{color:var(--mint);font-weight:700;font-size:14px}
.shop-section-title{font-size:16px;margin:26px 0 4px;padding-top:18px;border-top:1px solid var(--line)}
.shop-section-title:first-of-type{border-top:0;padding-top:0}
.shop-section-tagline{color:var(--muted);font-size:12px;margin-bottom:14px;font-style:italic}
.shop-category{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:16px 0 8px}
.shop-category:first-of-type{margin-top:6px}
.onboarding-story{font-style:italic;color:var(--muted);border-left:2px solid var(--primary);padding-left:14px;margin:18px 0}
.showroom-result.is-flash{animation:showroom-flash .9s ease}
@keyframes showroom-flash{0%{background:#89efd03a;border-left-color:var(--mint)}100%{background:#89efd009;border-left-color:var(--mint)}}
@media(prefers-reduced-motion:reduce){.showroom-result.is-flash{animation:none}}
.daily-mission-level-cta{font-size:12px;color:var(--gold);background:#f2d39114;border:1px solid #f2d39140;border-radius:10px;padding:8px 12px;margin-top:8px}
.daily-mission-level-cta a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.starter-chest{margin-top:16px;padding:14px 16px;border:1px solid #f2d39140;background:#f2d39110;border-radius:14px}
.starter-chest b{display:block;color:var(--gold);font-size:14px;margin-bottom:4px}
.starter-chest p{font-size:12px;color:var(--muted);margin:0 0 8px}
.starter-chest progress{width:100%;height:6px}
.starter-chest .btn{font-size:12px;padding:9px 14px}
.backpack-dialog{display:flex;flex-direction:column;gap:6px}
.backpack-intro{font-size:13px;color:var(--muted);margin:0 0 4px}
.backpack-heading{margin:14px 0 8px;font-size:14px}
.backpack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.backpack-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-align:center;font-size:12px}
.backpack-card-emoji{font-size:26px;line-height:1}
.backpack-card-name{font-weight:600}
.backpack-card.is-locked{opacity:.6}
.backpack-card.is-locked .backpack-card-emoji{filter:grayscale(1) brightness(.7)}
.backpack-card.is-mythic-locked{opacity:.45}
.backpack-card-price{font-size:11px;color:var(--gold)}
.backpack-heading,.backpack-title,.backpack-album-title,.backpack-nfc h3{position:relative}
.backpack-section-info{display:inline-grid;place-items:center;width:22px;height:22px;margin-left:6px;vertical-align:middle;border-radius:50%;border:1px solid var(--line-strong);background:transparent;color:inherit;font-size:12px;line-height:1;cursor:pointer;padding:0}
.backpack-heading .backpack-card-popover,.backpack-title .backpack-card-popover,.backpack-album-title .backpack-card-popover,.backpack-nfc h3 .backpack-card-popover{top:calc(100% + 6px);left:0;right:auto;max-width:min(340px,86vw);font-weight:400;font-size:13px;letter-spacing:normal;text-transform:none}
.backpack-card-popover{position:absolute;z-index:6;top:30px;left:6px;right:6px;background:#0d0f18;color:var(--ink);border:1px solid var(--line-strong);border-radius:10px;padding:8px 10px;font-size:12px;line-height:1.45;text-align:left;box-shadow:0 10px 28px rgba(0,0,0,.4)}
.backpack-card-info{position:absolute;top:6px;right:6px;width:20px;height:20px;border-radius:50%;border:1px solid var(--line-strong);background:#0d0f18cc;color:var(--ink);font-size:11px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
/* Provenance odkrycia: za które zadanie przedmiot wpadł do plecaka (item.task z backpackState). */
.backpack-card-source{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:2px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.backpack-mythic-chest{margin:6px 0 10px;padding:12px 14px;border:1px solid #b58cf240;background:#b58cf212;border-radius:14px}
.backpack-mythic-chest h4{margin:0 0 8px;font-size:13px}
.backpack-mythic-chest progress{width:100%;height:6px;margin-bottom:6px}
.backpack-mythic-chest p{font-size:12px;color:var(--muted);margin:0 0 8px}
.backpack-mythic-chest-done{font-size:12px;color:var(--muted)}
.backpack-toast{background:#b58cf2;color:#1a1330}

/* Rigid hinged 3D chest, with illustrated fallback when WebGL is unavailable. */
.adventure-dialog.is-chest-dialog{width:min(620px,calc(100% - 24px));padding:28px 32px;--adv-dlg-pt:28px;--adv-dlg-pr:32px;background:radial-gradient(ellipse at 50% 35%,#25213b 0,transparent 62%),#101322;border-color:#b89b6047;box-shadow:0 30px 100px #000b,inset 0 1px #e7ce9a12}
.is-chest-dialog h2{font-family:Georgia,serif;font-weight:500;font-size:clamp(26px,5vw,36px);text-align:center;margin:20px 0 4px;letter-spacing:-.025em}
.is-chest-dialog>.eyebrow{font-size:10px}
.magic-chest{text-align:center}
.adventure-dialog .magic-chest-kicker{font-size:10px;letter-spacing:.2em;color:#d7bc85;margin:8px 0 0;line-height:1.5}
.magic-chest-scene{position:relative;isolation:isolate;width:min(320px,100%);aspect-ratio:1;margin:-8px auto -22px}
.magic-chest-sprite{display:none;background-size:300% 200%;background-position:0 0;aspect-ratio:1;mask-image:radial-gradient(ellipse 65% 65% at center,#000 52%,transparent 77%);-webkit-mask-image:radial-gradient(ellipse 65% 65% at center,#000 52%,transparent 77%)}
.is-chest-fallback .magic-chest-sprite{display:block;background-image:url('../images/magic/chest-sequence-v1.webp')}
.magic-chest-scene.is-chest-loading .magic-chest-sparks{display:none}
.magic-chest-sprite{position:absolute;inset:0;z-index:1}
.magic-chest-halo{position:absolute;inset:20% 8% 10%;border-radius:50%;background:radial-gradient(ellipse,#a482ef2b,transparent 66%);filter:blur(15px);transition:background 1s,transform 1s}
.magic-chest-scene.is-waking .magic-chest-halo{opacity:.7}
.magic-chest-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:2;pointer-events:none}
.magic-chest-scene.has-chest-model .magic-chest-sprite,.magic-chest-scene.has-chest-model:not(.is-open) .magic-chest-sparks{display:none}
.magic-chest-scene.is-open .magic-chest-sprite{background-position:100% 100%}
.magic-chest-scene.is-open .magic-chest-halo{background:radial-gradient(ellipse,#efc06d45,transparent 68%);transform:scale(1.15)}
.magic-chest-sparks{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.magic-chest-sparks i{position:absolute;left:50%;top:55%;width:5px;height:5px;opacity:0;--spark-x:8px;--spark-rise:-94px;--spark-duration:3.2s;--spark-phase:-.5s;filter:drop-shadow(0 0 5px #ffd57e)}
.magic-chest-sparks i:before{content:"";position:absolute;inset:0;background:#ffe8ac;clip-path:polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%)}
.magic-chest-sparks i:nth-child(2){left:42%;width:8px;height:8px;--spark-x:-15px;--spark-rise:-110px;--spark-duration:3.8s;--spark-phase:-2.2s}
.magic-chest-sparks i:nth-child(3){left:61%;width:3px;height:3px;--spark-x:19px;--spark-rise:-78px;--spark-duration:2.8s;--spark-phase:-1.4s}
.magic-chest-sparks i:nth-child(4){left:46%;--spark-x:-8px;--spark-rise:-123px;--spark-duration:4.1s;--spark-phase:-3s}
.magic-chest-sparks i:nth-child(5){left:64%;width:7px;height:7px;--spark-x:13px;--spark-rise:-104px;--spark-duration:3.5s;--spark-phase:-.9s}
.magic-chest-sparks i:nth-child(6){left:37%;width:3px;height:3px;--spark-x:-17px;--spark-rise:-84px;--spark-duration:3s;--spark-phase:-2.5s}
.magic-chest-sparks i:nth-child(3n):before{clip-path:none;border-radius:50%}
.magic-chest-scene.is-open .magic-chest-sparks i{animation:chest-spark-drift var(--spark-duration) linear var(--spark-phase) infinite}
@keyframes chest-spark-drift{0%{opacity:0;transform:translate3d(0,5px,0) scale(.35) rotate(0deg)}14%{opacity:.8}45%{opacity:.65}72%{opacity:.4}100%{opacity:0;transform:translate3d(var(--spark-x),var(--spark-rise),0) scale(.65) rotate(65deg)}}
.magic-chest h3{font-size:20px;margin:8px 0;color:#f8ecd5;font-weight:500}
.adventure-dialog .magic-chest-copy p{margin:8px auto 20px;max-width:40ch;font-size:13px;line-height:1.7;color:#b9b6ca}
.magic-chest .magic-chest-cta{min-height:48px;padding:13px 28px;border:1px solid #edcf8d;background:linear-gradient(120deg,#e9c782,#b79757);color:#221b30;box-shadow:0 4px 28px #d8ad4d22;font-weight:700;border-radius:12px}
.magic-chest .magic-chest-cta:hover:not(:disabled){background:linear-gradient(120deg,#f5dca4,#d0aa65);color:#221b30;border-color:#ffe3a6;box-shadow:0 6px 28px #d8ad4d40;transform:translateY(-1px)}
.magic-chest .magic-chest-cta:focus-visible{outline:2px solid #ffe3a6;outline-offset:4px}
.magic-chest .magic-chest-cta:active:not(:disabled){background:linear-gradient(120deg,#d9b675,#ab874b);color:#221b30;transform:translateY(0);box-shadow:0 2px 12px #d8ad4d22}
.magic-chest .magic-chest-cta:disabled{background:linear-gradient(120deg,#e9c782,#b79757);color:#221b30;border-color:#edcf8d;box-shadow:0 4px 28px #d8ad4d22;transform:none;opacity:.7;cursor:wait}
.magic-chest-progress{max-width:340px;margin:0 auto 22px;text-align:left}.magic-chest-progress span{display:flex;justify-content:space-between;font-size:12px;color:#c5bdd5}.magic-chest-progress progress{width:100%;height:6px;accent-color:#b4edd7;margin-top:8px}
.adventure-dialog .magic-chest-footnote{font-size:11px;color:#9996ad;margin:18px 0 0;line-height:1.6}
.magic-chest-reward{display:grid;grid-template-columns:46px 1fr;gap:12px;text-align:left;padding:20px;border:1px solid #d8b77255;border-radius:16px;background:linear-gradient(120deg,#d3af6915,#aa88ef08);animation:chest-reward .45s ease-out}
.magic-chest-reward small{font-size:9px;letter-spacing:.17em;color:#d9b97a}.magic-chest-reward h3{font-size:21px;margin:5px 0}.adventure-dialog .magic-chest-reward p{font-size:12px;line-height:1.7;margin:8px 0 0}.magic-chest-reward-star{font-size:40px;color:#f5d390;text-shadow:0 0 24px #e2af6688}.magic-chest-replay{grid-column:1/-1;justify-self:center;font-size:12px;margin-top:5px}.magic-chest [hidden]{display:none!important}
@keyframes chest-awaken{50%{filter:brightness(1.13);transform:translateY(-2px)}}
@keyframes chest-spark{15%{opacity:1}100%{opacity:0;transform:translate(var(--spark-x,12px),-140px) scale(.3)}}
@keyframes chest-reward{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:480px){.adventure-dialog.is-chest-dialog{padding:24px 18px;--adv-dlg-pt:24px;--adv-dlg-pr:18px}.magic-chest-scene{width:min(300px,100%);margin:-8px auto -18px}.magic-chest h3{font-size:18px}.magic-chest-reward{padding:15px;gap:8px;grid-template-columns:36px 1fr}.magic-chest-cta{width:100%}}
@media(prefers-reduced-motion:reduce){.magic-chest-scene,.magic-chest-sprite,.magic-chest-sparks i,.magic-chest-reward{animation:none!important}.magic-chest-halo{transition:none}.magic-chest-scene.is-opening .magic-chest-sprite{background-position:100% 100%}}
.adventure-calm .magic-chest-scene,.adventure-calm .magic-chest-sprite,.adventure-calm .magic-chest-sparks i,.adventure-calm .magic-chest-reward{animation:none!important}.adventure-calm .magic-chest-halo{transition:none}

/* Hall of Fame: ceremonial scene, isolated from the illustrated city tile. */
.hall-scene{position:relative;isolation:isolate;width:min(420px,100%);height:300px;margin:0 auto 8px}
.hall-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.hall-aura{position:absolute;inset:12% 8% 3%;background:radial-gradient(ellipse,#aa8ce429,transparent 68%);transition:opacity 1.6s;opacity:.55}
.is-revealed .hall-aura{opacity:1;background:radial-gradient(ellipse,#d6b27138,transparent 68%)}
.hall-ring{position:absolute;left:50%;top:40%;width:70px;height:70px;margin:-35px;border:1px solid #ffe2a6;border-radius:50%;opacity:0;pointer-events:none;z-index:3}
.is-revealing .hall-ring{animation:hall-light-ring 1.6s ease-out both}
@keyframes hall-light-ring{0%,25%{opacity:0;transform:scale(.4)}45%{opacity:.65}100%{opacity:0;transform:scale(2.8)}}
.hall-scene.is-revealed .magic-chest-sparks i{animation:chest-spark-drift var(--spark-duration) linear var(--spark-phase) infinite}
.hall-scene .magic-chest-sparks i{top:52%}
.hall-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hall-badge{padding:16px 10px;border:1px solid #d8b77244;border-radius:14px;background:linear-gradient(145deg,#d2ac6512,#ad8fec08);display:flex;align-items:center;flex-direction:column;gap:8px}
.hall-badge>span{font-size:28px;color:#efcd88}.hall-badge b{font-size:12px;color:#eee0c9}.hall-badge small{font-size:10px;color:#b7acc4}.hall-badge.is-locked{filter:saturate(.15);opacity:.6}
.hall-fallback{display:none;position:absolute;inset:20% 20% 6%;text-align:center}.is-hall-fallback .hall-fallback{display:block}.hall-fallback>span{color:#f7d697;font-size:42px;opacity:0}.is-revealed .hall-fallback>span{opacity:1}
.hall-cup{width:95px;height:78px;margin:auto;background:linear-gradient(110deg,#8b5b29,#f5d79a 45%,#ac7734);border-radius:8px 8px 48% 48%;border:3px solid #e8c583;box-shadow:0 0 35px #e0bd7630;position:relative}.hall-cup:before{content:'';position:absolute;inset:4px -27px 17px;border:6px solid #d6b26b;border-radius:8px 8px 45% 45%;z-index:-1}.hall-cup:after{content:'';position:absolute;top:100%;left:40%;width:20%;height:40px;background:linear-gradient(90deg,#ad7936,#efd192,#ad7936)}.hall-plinth{width:140px;height:32px;background:linear-gradient(#b88b4b 5px,#302d47 5px);margin:38px auto 0;border-radius:5px}
@media(max-width:480px){.hall-scene{height:265px}.hall-collection{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.hall-scene *{animation:none!important;transition:none!important}}
.adventure-calm .hall-scene *{animation:none!important;transition:none!important}

.quest-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.quest-scene.is-revealed .magic-chest-sparks i{animation:chest-spark-drift var(--spark-duration) linear var(--spark-phase) infinite}
.quest-fallback{display:none;position:absolute;inset:18% 24% 8%;padding:20px 12px;color:#654826;background:linear-gradient(110deg,#c5a46c,#f2dfac,#d8b77c);border:6px double #aa803d;border-radius:9px;font-family:Georgia,serif;box-shadow:0 12px 30px #0005}
.is-quest-fallback .quest-fallback{display:block}.quest-cards{display:grid;gap:14px;text-align:left}.quest-card{padding:20px;border:1px solid #d8b77255;border-radius:16px;background:linear-gradient(130deg,#d3af6915,#aa88ef08)}
.quest-card>small{font-size:9px;letter-spacing:.16em;color:#d9b97a}.quest-card h3{margin:8px 0}.adventure-dialog .quest-card p{font-size:13px;line-height:1.6;margin:8px 0}.quest-rewards{color:#f5d390;font-size:16px;margin:14px 0}.quest-rewards span{margin:0 10px;font-size:11px}.quest-card label{display:block;font-size:12px;color:#c9c0d4;margin:16px 0}.quest-card progress{display:block;width:100%;height:7px;margin-top:8px;accent-color:#a3e7ce}.quest-card .magic-chest-cta:disabled{cursor:default}.quest-rules{text-align:left;margin-top:20px;border-top:1px solid #d8b77222;padding-top:14px;color:#bcb4ca;font-size:12px}.quest-rules summary{cursor:pointer;color:#d7bc85}.adventure-dialog .quest-rules p{font-size:12px;line-height:1.7}.quest-demo-note{color:#bcb4ca}

.map-learning-evidence{position:relative;margin:20px 0;padding:18px;border:1px solid #d2bd8c33;border-radius:16px;background:#141922d9}.map-learning-evidence[hidden]{display:none}.map-learning-evidence h3{font-size:18px;margin:0 0 10px}.map-learning-evidence>small,.map-evidence-realms span,.map-evidence-realms small{color:var(--muted);font-size:12px}.map-evidence-realms{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:16px 0}.map-evidence-realms>div{border-left:1px solid #d2bd8c66;padding-left:12px}.map-evidence-realms b,.map-evidence-realms span,.map-evidence-realms small{display:block}.map-evidence-realms b{font-size:13px;margin-bottom:5px}.map-evidence-realms .e8k-icon{color:#d2bd8c;width:14px;height:14px}.map-mission-legend{position:relative;margin:14px 0;font-size:13px;color:var(--muted)}.map-mission-legend summary{cursor:pointer;color:var(--ink);padding:10px 0}.map-mission-legend p{max-width:75ch;line-height:1.6}

.character-coming-soon{display:flex;min-height:160px;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#c8bbd9}.character-coming-soon .e8k-icon{width:36px;height:36px}.character-coming-soon strong{font-size:14px;font-weight:500}

/* Illustrated companions use the same transparent artwork as the room. */
.stable-pet-art{display:block;width:108px;height:108px;background-repeat:no-repeat;filter:drop-shadow(0 8px 12px #080b23aa)}
.catalog-art:has(.stable-pet-art){width:116px;min-width:116px;height:116px;border-radius:18px;background:radial-gradient(ellipse at center,#39345388,#121727cc);border:1px solid #a699cb40}
.stable-next{padding:18px;border:1px solid #b8a8dd44;border-radius:14px;background:#26203955;color:inherit}
.coherent-pet{cursor:default}

/* Niespodzianki misyjne (Agent 4): zapowiedzi, znaleziska, odsłonięcie 3 skrzynek, MYTHIC ze Szałasów. */
.mission-surprise{margin:14px 0;padding:14px;border-radius:14px;border:1px solid rgba(94,234,212,.4);background:linear-gradient(150deg,rgba(45,212,191,.08),rgba(167,139,250,.06));text-align:center}
.mission-surprise p{margin:4px 0}
.mission-surprise-title{font-family:ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.22em;color:#5eead4;text-shadow:0 0 10px rgba(94,234,212,.6)}
.mission-surprise-gadget{font-family:ui-monospace,Menlo,monospace;font-size:13px;letter-spacing:.14em;color:#fde68a;text-shadow:0 0 12px rgba(253,230,138,.65)}
.mission-surprise-hint{margin:14px 0;padding:12px 14px;border-radius:12px;border:1px dashed rgba(56,189,248,.45);background:rgba(56,189,248,.06);font-style:italic;color:#bae6fd}
.mission-surprise-promise{margin:14px 0;padding:12px 14px;border-radius:12px;border:1px solid rgba(253,230,138,.4);background:rgba(253,230,138,.05);color:#fef3c7;font-style:italic}
.mission-chest-others{margin:16px 0 4px;padding-top:12px;border-top:1px solid rgba(216,183,114,.25);text-align:center}
.mission-chest-others>p{font-size:12px;color:#bcb4ca;margin:0 0 10px}
.mission-chest-others-row{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.mission-chest-other{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:88px;padding:10px 8px;border-radius:12px;border:1px solid rgba(167,139,250,.35);background:rgba(255,255,255,.03);font-size:12px;color:#e9e4f5}
.mission-chest-other b{font-family:ui-monospace,Menlo,monospace;letter-spacing:.12em;color:#a78bfa}
.mission-chest-other.is-picked{border-color:rgba(253,230,138,.7);box-shadow:0 0 16px rgba(253,230,138,.35);color:#fde68a}
.mission-chest-other.is-picked b{color:#fde68a}
.szalasy-mythic-reveal{text-align:center;padding:10px 6px}
.szalasy-mythic-kicker{font-family:ui-monospace,Menlo,monospace;font-size:10px;letter-spacing:.24em;color:#d8b772;margin:0 0 10px}
.szalasy-mythic-emoji{font-size:56px;margin:6px 0;text-shadow:0 0 26px rgba(216,183,114,.8)}
.szalasy-mythic-rarity{font-family:ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.3em;color:#f0abfc;text-shadow:0 0 12px rgba(240,171,252,.7);margin:2px 0}
.szalasy-mythic-reveal h3{margin:8px 0;font-size:22px;color:#f7d697}
.szalasy-mythic-coins{color:#fde68a;font-weight:700}
.szalasy-mythic-note{font-size:12px;font-style:italic;color:#bcb4ca;margin:12px 0}
@media (prefers-reduced-motion:reduce){.mission-chest-other,.mission-chest-box{transition:none}}

/* Compact subject/grade selector below the main site header. */
.adventure-toolbar{justify-content:flex-start;align-items:flex-end;gap:18px;margin-top:24px;margin-bottom:28px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(110deg,var(--panel),rgba(137,239,208,.025));box-shadow:0 14px 40px rgba(3,7,22,.2)}
.adventure-toolbar-choice{min-width:0;flex:1 1 auto}.adventure-toolbar-grade{flex:0 0 auto}.adventure-toolbar-label{display:block;margin:0 0 7px 3px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.adventure-subjects{gap:8px}.adventure-subjects button,.adventure-toolbar select,.adventure-grade-fixed{min-height:42px;padding:9px 15px}
.adventure-subjects button.is-locked{display:inline-flex;align-items:center;gap:7px;border-style:dashed;color:var(--muted);background:rgba(255,255,255,.018);opacity:.78}
.adventure-subjects button.is-locked:hover,.adventure-subjects button.is-locked:focus-visible{opacity:1;color:var(--ink);border-color:var(--primary);background:rgba(124,92,255,.09)}
.subject-access-message{text-align:center;max-width:440px;margin:0 auto}.subject-access-message p{max-width:42ch;margin:10px auto}.subject-access-icon{display:grid;place-items:center;width:68px;height:68px;margin:4px auto 20px;border:1px solid rgba(124,92,255,.5);border-radius:20px;background:rgba(124,92,255,.1);color:var(--primary);box-shadow:0 0 28px rgba(124,92,255,.15)}.subject-access-icon .e8k-icon{width:30px;height:30px}.subject-access-message .btn{margin-top:12px}
@media(max-width:700px){.adventure-toolbar{align-items:stretch;gap:14px;margin-top:16px;padding:13px}.adventure-toolbar-grade{align-self:flex-start}.adventure-subjects button{flex:1 1 auto}.adventure-toolbar-label{margin-left:1px}}
@media(max-width:440px){.adventure-subjects button{flex:1 1 calc(50% - 8px)}.adventure-subjects button:first-child{flex-basis:100%}}

/* Physical NFC collection: activation-screen language, with a distinct identity per tier. */
.player-nfc-section{margin:28px 0;padding:24px;border:1px solid var(--line-strong);border-radius:22px;background:radial-gradient(circle at 88% 12%,rgba(37,244,200,.07),transparent 30%),#0a0d19;overflow:hidden}.player-nfc-section[hidden]{display:none}
.player-nfc-heading,.backpack-nfc-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.player-nfc-heading h3,.backpack-nfc-heading h3{margin:7px 0 3px;font-size:22px}.player-nfc-heading p{margin:0;color:var(--muted);font-size:12px}.player-nfc-count,.backpack-nfc-heading>span{flex:none;padding:6px 11px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:11px;font-weight:700}
.player-nfc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:14px}.player-nfc-card{--nfc:#25f4c8;--nfc2:#4dd7ff;position:relative;isolation:isolate;display:grid;grid-template-columns:106px minmax(0,1fr);align-items:center;min-height:142px;padding:17px;border:1px solid color-mix(in srgb,var(--nfc) 42%,transparent);border-radius:18px;background:radial-gradient(circle at 20% 50%,color-mix(in srgb,var(--nfc) 13%,transparent),transparent 38%),linear-gradient(135deg,#101526,#090c17);box-shadow:inset 0 1px rgba(255,255,255,.045),0 16px 38px rgba(0,0,0,.22);overflow:hidden}
.player-nfc-card::before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(112deg,transparent 25%,rgba(255,255,255,.075) 46%,transparent 62%);transform:translateX(-75%)}.player-nfc-card:hover::before{transition:transform .7s ease;transform:translateX(75%)}
.player-nfc-card.tier-limited{--nfc:#b76cff;--nfc2:#ff4fa3;background:radial-gradient(circle at 20% 50%,rgba(183,108,255,.17),transparent 40%),linear-gradient(135deg,#171025,#0c0b18)}
.player-nfc-card.tier-legendary{--nfc:#ffd45c;--nfc2:#e99a2b;border-color:rgba(255,212,92,.56);background:radial-gradient(circle at 20% 50%,rgba(255,212,92,.18),transparent 42%),linear-gradient(135deg,#21190d,#0e0c0a);box-shadow:inset 0 1px rgba(255,239,190,.12),0 16px 42px rgba(94,58,5,.22)}
.player-nfc-card-art{position:relative;display:grid;place-items:center;width:90px;height:90px}.player-nfc-orbit{position:absolute;inset:7px;border:1px solid color-mix(in srgb,var(--nfc) 45%,transparent);border-radius:50%;transform:rotate(-18deg)}.player-nfc-orbit::after{content:'';position:absolute;right:-4px;top:48%;width:7px;height:7px;border-radius:50%;background:var(--nfc);box-shadow:0 0 14px var(--nfc)}
.player-nfc-emblem{display:grid;place-items:center;width:54px;height:66px;border:1px solid color-mix(in srgb,var(--nfc) 55%,transparent);background:linear-gradient(145deg,color-mix(in srgb,var(--nfc) 16%,transparent),rgba(255,255,255,.02));clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);transform:rotate(-5deg);box-shadow:0 0 24px color-mix(in srgb,var(--nfc) 18%,transparent)}.player-nfc-emblem svg{width:37px;fill:none;stroke:var(--nfc);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.player-nfc-waves{position:absolute;right:1px;top:7px;display:flex;align-items:center;gap:2px;height:22px}.player-nfc-waves i{display:block;width:4px;border:1px solid var(--nfc);border-block-color:transparent;border-left:0;border-radius:0 100% 100% 0}.player-nfc-waves i:nth-child(1){height:7px}.player-nfc-waves i:nth-child(2){height:13px}.player-nfc-waves i:nth-child(3){height:19px}
.player-nfc-card-copy{display:flex;min-width:0;flex-direction:column;gap:5px}.player-nfc-tier{font:700 10px/1 'Chakra Petch',sans-serif;letter-spacing:.2em;color:var(--nfc);text-shadow:0 0 12px color-mix(in srgb,var(--nfc) 55%,transparent)}.player-nfc-card-copy strong{overflow-wrap:anywhere;color:#f4f2ff;font:700 18px/1.15 'Chakra Petch',sans-serif;letter-spacing:.04em}.player-nfc-card-copy small{color:var(--muted);font-size:10px}
.player-nfc-scan-hint{margin-top:3px;color:var(--nfc);font-size:10px;line-height:1.4}
.backpack-nfc{margin:16px 0 22px;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(37,244,200,.025)}.backpack-nfc-heading{align-items:center;margin-bottom:12px}.backpack-nfc-heading h3{font-size:16px}.player-nfc-grid.is-backpack{grid-template-columns:repeat(auto-fit,minmax(min(205px,100%),1fr))}.player-nfc-card.is-compact{grid-template-columns:76px minmax(0,1fr);min-height:104px;padding:12px}.player-nfc-card.is-compact .player-nfc-card-art{width:66px;height:66px}.player-nfc-card.is-compact .player-nfc-emblem{width:39px;height:49px}.player-nfc-card.is-compact .player-nfc-emblem svg{width:28px}.player-nfc-card.is-compact .player-nfc-card-copy strong{font-size:14px}
.backpack-nfc-heading p{margin:4px 0 0;color:var(--muted);font-size:11px}
@media(max-width:560px){.player-nfc-section{padding:17px}.player-nfc-heading{align-items:flex-start}.player-nfc-card{grid-template-columns:82px minmax(0,1fr);min-height:120px;padding:13px}.player-nfc-card-art{width:72px;height:72px}.player-nfc-emblem{width:45px;height:56px}.player-nfc-emblem svg{width:31px}}

/* Event Hub — centralna strefa wydarzeń (kafelek w mieście) */
.event-hub{display:flex;flex-direction:column;gap:12px}
.event-hub-tagline{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.event-hub-live,.event-hub-countdown{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.event-hub-live b{display:block;font-size:17px;color:var(--text);margin-bottom:6px}
.event-hub-countdown b{display:block;font-size:16px;color:var(--text)}
.event-hub-live p,.event-hub-countdown p{margin:6px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
.event-hub-joined{margin:0;font-size:13px;color:var(--muted)}
.event-hub-next{margin:0;font-size:12px;color:var(--muted)}
.event-hub [data-event-hub-join]{align-self:flex-start}

/* Earned forge frames, shared across existing character art. */
[data-forge-quality="2"] { outline: 2px solid #b57948; outline-offset: 3px; border-radius: 16px; }
[data-forge-quality="3"] { outline: 3px double #9ca8b5; outline-offset: 3px; border-radius: 16px; }
[data-forge-quality="4"] { outline: 3px solid #caa335; outline-offset: 3px; border-radius: 16px; box-shadow: 0 0 18px #caa33555; }
[data-forge-quality="5"] { outline: 3px solid #9873de; outline-offset: 3px; border-radius: 16px; box-shadow: 0 0 24px #9873de77; }
