/* Earned collectibles and their read-only detail dialog. Legacy paws,
   Passport settings and every other page keep their existing presentation. */
.passport-page .passport-achievement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:22px;align-items:stretch;justify-items:center}
.passport-page .passport-achievement-card{position:relative;min-width:0;width:100%;max-width:330px;height:100%;padding:0;border:0;border-radius:23px;background:transparent;text-align:center}
.passport-page .passport-achievement-card:only-child{grid-column:1/-1;max-width:330px;justify-self:center}
.passport-achievement-open{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;min-width:0;padding:21px 19px 18px;border:1.5px solid #9b844c;border-radius:23px;background:linear-gradient(155deg,#fffdf4,#fff3d6);box-shadow:0 4px 0 #c6a44b1a,0 8px 22px #806b3710;color:var(--ink,#233d35);font:inherit;text-align:center;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;touch-action:manipulation}
.passport-achievement-open::before{content:"";position:absolute;inset:7px;border:1px solid #e3d2a0;border-radius:16px;pointer-events:none;z-index:-1}
.passport-page .passport-achievement-open:focus-visible{outline:3px solid #3768b6;outline-offset:5px}
.passport-collectible-brand{display:block;font-size:10px;font-weight:800;line-height:1.5;letter-spacing:.15em;color:#755c28}
.passport-collectible-stars{position:absolute;inset:0;pointer-events:none;z-index:-1;color:#c6a24a}
.passport-collectible-stars>span{position:absolute;top:14px;left:13px;font-size:16px;line-height:1}
.passport-collectible-stars>span:nth-child(2){left:auto;right:14px;top:17px;font-size:12px}
.passport-collectible-stars>span:nth-child(3){top:auto;bottom:16px;left:13px;font-size:11px}
.passport-collectible-stars>span:nth-child(4){top:auto;left:auto;right:13px;bottom:16px;font-size:15px}
.passport-collectible-art{position:relative;display:block;width:220px;height:158px;max-width:100%;margin:7px auto 9px}
.passport-collectible-medal{position:absolute;display:block;left:6px;top:0;width:172px;height:162px}
.passport-collectible-medal>svg{display:block;width:100%;height:100%;overflow:visible}
.passport-collectible-pimori{position:absolute;display:block;right:0;bottom:2px;width:91px;height:91px;overflow:hidden;border:3px solid #fffaf0;border-radius:50%;background:#f1e6be;box-shadow:0 2px 0 #c5a75b55,0 4px 10px #6d5a2e17}
.passport-collectible-pimori>img{display:block;width:100%;height:100%;object-fit:cover;object-position:51% 50%}
.passport-achievement-title{display:block;max-width:100%;font-size:26px;font-weight:800;line-height:1.15;letter-spacing:-.7px;color:#28523e;overflow-wrap:break-word}
.passport-collectible-paws{display:flex;align-items:center;justify-content:center;gap:9px;margin:10px 0 0}
.passport-collectible-paws>span{display:flex;align-items:center;justify-content:center;color:var(--collectible-paw-color,#c5a14d);width:22px;height:22px}
.passport-collectible-paws .paw{display:block;fill:currentColor;width:22px;height:22px}
.passport-page .passport-achievement-card .passport-achievement-status{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin:12px 0 0;padding:5px 10px;border:1px solid #cedbb7;border-radius:22px;background:#edf2df;font-size:13px;font-weight:800;line-height:1.4;color:#315c43}
.passport-page .passport-achievement-card .passport-achievement-status .icon{width:16px;height:16px;flex-shrink:0}
.passport-achievement-meta{display:block;max-width:100%;font-size:14px;line-height:1.5;color:#52654d;margin:11px 0 0;overflow-wrap:break-word}
.passport-page .passport-achievement-card time{display:block;max-width:100%;font-size:12px;line-height:1.6;color:#52654d;margin:4px 0 0}
.passport-collectible-open-hint{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:auto 0 0;padding-top:14px;font-size:13px;font-weight:800;line-height:1.5;color:#286744}
.passport-collectible-open-hint .icon{width:17px;height:17px}
@media(hover:hover){
  .passport-achievement-open:hover{transform:translateY(-3px);border-color:#527843;box-shadow:0 5px 0 #c6a44b1a,0 13px 26px #806b3719}
  .passport-achievement-open:hover .passport-collectible-open-hint{text-decoration:underline;text-underline-offset:3px}
}
.passport-achievement-open:active{transform:translateY(0)}

.site-dialog.passport-achievement-dialog{width:calc(100% - 32px);max-width:600px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:38px 34px 29px;overflow:auto;overscroll-behavior:contain;border:1.5px solid #c5a762;border-radius:27px;background:linear-gradient(145deg,#fffdf5,#fff7e3);text-align:center}
.passport-achievement-dialog .dialog-close{top:10px;right:10px;width:44px;height:44px;color:#315c43}
.passport-achievement-dialog #site-dialog-title{font-size:33px;line-height:1.15;letter-spacing:-.8px;color:#28523e;margin:8px 23px 19px;overflow-wrap:break-word}
.passport-achievement-dialog #site-dialog-title:focus{outline:none}
.passport-collectible-detail{position:relative;max-width:100%;margin:0 auto}
.passport-collectible-detail .passport-collectible-brand{font-size:10px;letter-spacing:.14em}
.passport-collectible-detail .passport-collectible-art{width:270px;height:194px;margin:7px auto 6px}
.passport-collectible-detail .passport-collectible-medal{left:8px;width:210px;height:198px}
.passport-collectible-detail .passport-collectible-pimori{width:116px;height:116px;bottom:3px;border-width:4px}
.passport-collectible-detail .passport-collectible-paws{gap:11px;margin:8px 0 13px}
.passport-collectible-detail .passport-collectible-paws>span,.passport-collectible-detail .passport-collectible-paws .paw{width:26px;height:26px}
.passport-collectible-detail .passport-achievement-status{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;margin:0;padding:7px 15px;border-radius:24px;border:1px solid #c8d6af;background:#e9f0da;color:#315c43;font-size:15px;line-height:1.4;font-weight:800}
.passport-collectible-detail .passport-achievement-status .icon{width:18px;height:18px}
.passport-achievement-dialog .passport-collectible-message{max-width:420px;margin:17px auto 0;font-size:16px;line-height:1.65;color:#52654d}
.passport-collectible-facts{display:grid;grid-template-columns:1fr;gap:0;margin:20px auto 22px;text-align:left;border:1px solid #e2d7b3;border-radius:17px;background:#fffdf6;overflow:hidden}
.passport-collectible-facts>div{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:start;gap:15px;padding:13px 17px;border-top:1px solid #ebe1c7}
.passport-collectible-facts>div:first-child{border-top:0}
.passport-collectible-facts dt{margin:0;font-size:13px;font-weight:800;line-height:1.6;color:#52654d}
.passport-collectible-facts dd{margin:0;min-width:0;font-size:14px;font-weight:700;line-height:1.5;color:#315c43;overflow-wrap:break-word}
.passport-achievement-dialog [data-back-passport]{min-height:50px;min-width:210px;max-width:100%;padding:12px 22px;font-size:15px;border-radius:13px}
.passport-achievement-dialog :is(button,a):focus-visible{outline:3px solid #3768b6;outline-offset:4px}
@media(max-width:900px){.passport-page .passport-achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:600px){
  .passport-page .passport-achievement-grid{grid-template-columns:minmax(0,1fr);gap:19px}
  .passport-achievement-open{padding:21px 17px 18px}
  .site-dialog.passport-achievement-dialog{padding:36px 22px 24px;border-radius:23px}
  .passport-achievement-dialog #site-dialog-title{font-size:29px;margin:8px 19px 16px}
  .passport-collectible-detail .passport-collectible-art{width:245px;height:180px}
  .passport-collectible-detail .passport-collectible-medal{left:3px;width:190px;height:180px}
  .passport-collectible-detail .passport-collectible-pimori{width:105px;height:105px;bottom:2px}
  .passport-achievement-dialog .passport-collectible-message{font-size:15px;margin-top:15px}
  .passport-collectible-facts{margin:18px auto 20px}
  .passport-collectible-facts>div{grid-template-columns:105px minmax(0,1fr);gap:10px;padding:12px 13px}
  .passport-collectible-facts dt{font-size:12px}
  .passport-collectible-facts dd{font-size:13px}
}
@media(max-width:360px){
  .passport-achievement-open{padding-inline:13px}
  .passport-collectible-art{height:149px}
  .passport-collectible-medal{left:0;width:160px;height:151px}
  .passport-collectible-pimori{width:85px;height:85px}
  .passport-achievement-title{font-size:24px}
  .passport-collectible-paws{gap:7px}
  .passport-achievement-meta{font-size:13px}
  .site-dialog.passport-achievement-dialog{padding:37px 17px 22px}
  .passport-achievement-dialog #site-dialog-title{font-size:27px;margin-inline:12px}
  .passport-collectible-detail .passport-collectible-art{width:230px;max-width:100%;height:169px}
  .passport-collectible-detail .passport-collectible-medal{left:0;width:180px;height:170px}
  .passport-collectible-detail .passport-collectible-pimori{width:99px;height:99px}
  .passport-collectible-facts>div{grid-template-columns:1fr;gap:3px;padding:11px 13px}
  .passport-achievement-dialog [data-back-passport]{min-width:0;width:100%}
}
@media(prefers-reduced-motion:reduce){
  .passport-achievement-open,.passport-achievement-dialog .btn{transition:none!important;animation:none!important}
  .passport-achievement-open:hover,.passport-achievement-dialog .btn:hover{transform:none!important}
}
