/* QuestPick 3.1: Trophy Hall and iOS adaptive modal/keyboard layout. */
.pn-hall-hero{display:flex;align-items:center;gap:24px;overflow:hidden;min-height:185px;background:radial-gradient(ellipse at 90% 30%,rgba(245,184,90,.2),transparent 50%),radial-gradient(ellipse at 0% 100%,rgba(187,82,236,.22),transparent 65%),linear-gradient(135deg,#421856,#2b1138);border-color:#bfa4cb5c}
.pn-hall-hero-mark{display:grid;place-items:center;width:66px;height:66px;flex:none;color:#ffdfa6;border-radius:21px;border:1px solid #ffe0a164;background:#c68c3240;box-shadow:0 0 36px #e4bd4353}.pn-hall-hero-mark svg{width:36px;height:36px}
.pn-hall-hero-copy{min-width:0;flex:1}.pn-hall-hero h2{margin:8px 0 10px;font-size:clamp(21px,3vw,34px);letter-spacing:-.7px;line-height:1.2}.pn-hall-hero p{color:#dbbfe8;line-height:1.6;font-size:13px;margin:0;max-width:580px}.pn-hall-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:850;color:#ffe0a6}.pn-hall-emblem{opacity:.25;color:#e9bf68;flex:none}.pn-hall-emblem svg{width:126px;height:126px;filter:drop-shadow(0 0 20px #e5bb5a)}
.pn-hall-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 26px}.pn-hall-stat{min-width:0;padding:19px;border-radius:18px;border:1px solid #c889e636;background:linear-gradient(130deg,#351644,#281033)}.pn-hall-stat span{font-size:12px;color:#cdabdc;display:flex;align-items:center;gap:8px}.pn-hall-stat svg{width:17px;height:17px;color:#d694f4}.pn-hall-stat strong{font-size:clamp(23px,3vw,32px);font-weight:890;display:block;margin-top:10px;color:#f4e3fc}
.pn-hall-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:13px}.pn-hall-search{display:flex;gap:12px;align-items:center;border:1px solid #944fb361;background:#341343;border-radius:16px;padding:0 13px;flex:1;min-width:0}.pn-hall-search svg{width:20px;height:20px;color:#c680e7;flex:none}.pn-hall-search input{background:none;border:0;outline:0;padding:14px 0;min-height:48px;color:#f4e3fc;font-size:16px;width:100%;min-width:0}.pn-hall-sort{font-size:11px;color:#c8a1d9;display:flex;align-items:center;gap:9px}.pn-hall-sort select{width:auto;max-width:210px;min-width:140px;font-size:13px}
.pn-hall-filters{display:flex;gap:8px;overflow:auto;margin-bottom:22px;padding:4px 0 7px;scrollbar-width:none}.pn-hall-filters button{white-space:nowrap;flex:none;border-radius:99px;border:1px solid #a272b855;background:#321540;color:#c2a0d1;font-size:12px;font-weight:750;padding:9px 14px;min-height:36px}.pn-hall-filters button.current{background:#45195a;border-color:#c86ff1;color:#e5bbf8;box-shadow:0 0 18px #c567f025}.pn-hall-heading{display:flex;justify-content:space-between;gap:12px;margin:12px 0;color:#f4e3fc}.pn-hall-heading strong{font-size:16px}.pn-hall-heading span{color:#b286c6;font-size:12px}
.pn-hall-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;align-items:stretch}.pn-trophy-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border-radius:20px;border:1px solid #bf81dc38;background:linear-gradient(135deg,#3a1849,#250f30);box-shadow:0 14px 40px #0e031350;animation:hallAppear .45s ease both;animation-delay:var(--hall-delay);transition:transform .25s,border-color .25s}.pn-trophy-card:hover{transform:translateY(-3px);border-color:#cb79f280}
.pn-trophy-cover{border:0;display:block;position:relative;overflow:hidden;background:#240c2f;padding:12px 14px;width:100%;cursor:pointer}.pn-trophy-cover .cover{width:100%;aspect-ratio:2/3;max-height:310px;margin:0 auto;border-radius:13px;box-shadow:0 11px 26px #0006}.pn-hall-medal{display:grid;place-items:center;position:absolute;right:8px;top:9px;width:40px;height:40px;border-radius:13px;border:1px solid #b577d285;background:#321041df;color:#d591f4;box-shadow:0 5px 15px #0008;backdrop-filter:blur(7px)}.pn-hall-medal.platinum{background:#604719e0;border-color:#ffdf9d;color:#ffe3a0}.pn-hall-medal svg{width:23px;height:23px}
.pn-trophy-info{padding:14px;display:flex;flex-direction:column;flex:1;gap:8px}.pn-trophy-tags{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;font-size:9px;letter-spacing:1px;font-weight:830}.pn-trophy-tags .gold{color:#ffe2a0}.pn-trophy-tags .aqua{color:#82f5d9}.pn-trophy-rating{color:#ffe0a1;font-size:11px}.pn-trophy-title{font-size:14px;line-height:1.36;font-weight:790;color:#f4e3fc;background:none;padding:0;border:0;text-align:left;overflow-wrap:anywhere;cursor:pointer}.pn-trophy-info small{color:#b88ccd;font-size:11px}.pn-trophy-link{display:flex;align-items:center;gap:4px;margin-top:auto;padding:11px 0 0;color:#d591f4;font-size:12px;font-weight:770;background:none;border:0;cursor:pointer;text-align:left}.pn-trophy-link svg{width:14px;height:14px}
.pn-hall-empty{grid-column:1/-1;text-align:center;padding:45px 15px}.pn-hall-empty svg{width:45px;height:45px;color:#ffdea1}.pn-hall-empty h3{margin:15px 0}.pn-hall-empty p{font-size:13px;color:#c299d6;line-height:1.6}.pn-hall-legal{margin:18px 0;color:#aa7cbf;font-size:11px;line-height:1.6}
.pn-hall-shortcut,.pn-hall-hub-link{display:flex;align-items:center;gap:13px;min-width:0}.pn-hall-shortcut h3{margin:0 0 7px;font-size:17px}.pn-hall-shortcut p{margin:0;color:#bf96d2;font-size:12px}.pn-hall-shortcut>div:nth-child(2),.pn-hall-hub-link>div:nth-child(2){flex:1;min-width:0}.pn-hall-shortcut-icon,.pn-hall-hub-symbol{flex:none;display:grid;place-items:center;width:55px;height:55px;border-radius:17px;background:#57431d61;color:#ffe1a7;border:1px solid #e6c17973}.pn-hall-shortcut-icon svg,.pn-hall-hub-symbol svg{width:27px;height:27px}
.pn-hall-hub-link{border-radius:20px;margin:22px 0 8px;padding:15px 18px;border:1px solid #b5c2b841;background:linear-gradient(110deg,#371845,#2e153a)}.pn-hall-hub-link b{display:block;font-size:15px}.pn-hall-hub-link small{display:block;margin-top:5px;font-size:11px;color:#c5a3d6}
.pn-passport-full{padding:3px;max-width:100%;min-width:0}.pn-passport-full-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;letter-spacing:1.1px;font-weight:790;color:#d898f5;margin-bottom:15px}.pn-passport-full-top span:last-child{color:#ffdda0}.pn-passport-art{display:grid;grid-template-columns:115px minmax(0,1fr);gap:17px;align-items:center;padding:15px;border-radius:18px;border:1px solid #ba5fe452;background:linear-gradient(130deg,#4a1961,#2f123c)}.pn-passport-art .cover{width:115px;max-width:100%;aspect-ratio:2/3}.pn-passport-copy{min-width:0}.pn-passport-copy h3{font-size:clamp(17px,3vw,23px);line-height:1.2;overflow-wrap:anywhere;margin:11px 0;color:#f4e3fc}.pn-passport-full-date{font-size:12px;color:#cba1df}.pn-passport-medal{display:inline-flex;gap:5px;align-items:center;font-size:10px;font-weight:800;color:#83e8d1}.pn-passport-medal.gold{color:#ffe6a8}.pn-passport-medal svg{width:16px;height:16px}.pn-passport-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.pn-passport-metrics div{border-radius:15px;background:#2f113d;padding:14px;border:1px solid #8941aa4b;min-width:0}.pn-passport-metrics small{display:block;color:#c49cd7;font-size:11px}.pn-passport-metrics strong{display:block;margin-top:7px;font-size:23px;color:#fbe4ad}.pn-passport-notes{margin-top:14px}.pn-passport-notes b{font-size:12px;color:#d490f4}.pn-passport-notes p{font-size:13px;white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere;color:#e5ccf0}.pn-passport-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:19px}.pn-passport-actions .btn:last-child{grid-column:1/-1}
@keyframes hallAppear{from{opacity:.1;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:990px){.pn-hall-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:740px){
 .pn-hall-hero{padding:21px 17px;gap:12px;min-height:180px}.pn-hall-hero-mark{width:44px;height:44px;border-radius:14px}.pn-hall-hero-mark svg{width:25px;height:25px}.pn-hall-emblem{display:none}.pn-hall-hero h2{font-size:24px}.pn-hall-hero p{font-size:12px}.pn-hall-stats{gap:8px}.pn-hall-stat{padding:13px 10px;border-radius:15px}.pn-hall-stat strong{font-size:23px}.pn-hall-stat span{font-size:10px;line-height:1.3}.pn-hall-stat svg{width:14px;height:14px}.pn-hall-toolbar{display:grid;grid-template-columns:1fr;gap:10px}.pn-hall-sort{justify-content:space-between}.pn-hall-sort select{max-width:190px}.pn-hall-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pn-trophy-cover{padding:9px}.pn-trophy-info{padding:11px;gap:6px}.pn-trophy-title{font-size:13px}.pn-trophy-info small{font-size:10px}.pn-hall-medal{width:33px;height:33px;border-radius:11px}.pn-hall-medal svg{width:19px;height:19px}.pn-hall-shortcut{flex-wrap:wrap}.pn-hall-shortcut .btn{width:100%}.pn-hall-hub-link{gap:9px;padding:13px}.pn-hall-hub-link .btn{padding:9px;font-size:11px}.pn-hall-hub-symbol{width:45px;height:45px}.pn-hall-hub-symbol svg{width:24px;height:24px}
 /* Keep modal within the visual viewport and away from the iOS keyboard. */
 html,body,#app,.shell,.main,.content{max-width:100%;min-width:0}
 body{overflow-x:hidden}body.pn-input-focused .bottomnav,body.pn-dialog-open .bottomnav{display:none!important}
 #modal{position:fixed;top:calc(var(--pn-vv-top,0px) + env(safe-area-inset-top) + 8px);left:8px!important;right:auto;bottom:auto;transform:none!important;margin:0;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;min-width:0!important;max-height:calc(var(--pn-vv-height,100dvh) - env(safe-area-inset-top) - 24px)!important;padding:17px 15px calc(20px + env(safe-area-inset-bottom));border-radius:20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;animation:none!important}
 #modal #modal-content,#modal .active-hero>div,#modal .modal-body,#modal .modal-actions,#modal form,#modal .pn-detail-addons{min-width:0!important;max-width:100%;overflow-wrap:anywhere}
 #modal .modal-head{position:sticky;top:-17px;background:linear-gradient(180deg,#321341 90%,#321341e3);padding:8px 0 13px;margin-bottom:13px;z-index:4;align-items:center}#modal .modal-head h2{font-size:20px;min-width:0;line-height:1.2;overflow-wrap:anywhere}
 #modal .active-hero{display:grid;grid-template-columns:95px minmax(0,1fr);gap:13px;max-width:100%;align-items:start}#modal .active-hero .cover{width:95px;aspect-ratio:2/3}#modal .active-hero h3{font-size:19px;line-height:1.24;overflow-wrap:anywhere}#modal .active-hero p{font-size:12px;overflow-wrap:anywhere}
 #modal .detailrow{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;padding:10px 0}#modal .detailrow strong{max-width:100%;text-align:left;font-size:13px;overflow-wrap:anywhere}#modal .detailrow .muted{font-size:11px}
 #modal .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#modal .modal-actions .btn{font-size:11px;padding:12px 8px;min-width:0;white-space:normal}
 #modal .formrow,#modal .grid.cols-2{grid-template-columns:minmax(0,1fr);gap:12px}
 #modal input:not([type="checkbox"]):not([type="radio"]),#modal textarea,#modal select{font-size:16px;max-width:100%;min-width:0}
 #modal .pn-passport-art{grid-template-columns:95px minmax(0,1fr);gap:12px;padding:11px}#modal .pn-passport-art .cover{width:95px}#modal .pn-passport-actions{grid-template-columns:1fr}#modal .pn-passport-actions .btn:last-child{grid-column:auto}
 .pn-hall-filters{scroll-snap-type:x proximity}.pn-hall-filters button{scroll-snap-align:start}
}
@media(max-width:355px){.pn-hall-stat{padding:10px 6px}.pn-hall-stat strong{font-size:20px}#modal .active-hero{grid-template-columns:76px minmax(0,1fr)}#modal .active-hero .cover{width:76px}#modal .modal-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.pn-trophy-card{animation:none!important;transition:none!important}}
