.wpw-detail:has(.jp-card){padding:12px max(10px,env(safe-area-inset-right)) calc(14px + var(--native-banner-height,0px)) max(10px,env(safe-area-inset-left));backdrop-filter:blur(5px)}
.wpw-detail-card.jp-card{width:min(440px,100%);max-width:440px;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;box-sizing:border-box;border:3px solid #b6814e;border-radius:29px;background:radial-gradient(ellipse at top,#fffdf0,#fff1d1);box-shadow:inset 0 0 0 3px #fff9e5,0 12px 26px #30203444;padding:10px 12px 15px;color:#65371e;text-align:center;font-weight:800}
.jp-card .jp-heading{position:relative;padding:0 38px 0;z-index:1}.jp-card .jp-journey{position:relative;display:table;margin:0 auto 7px;padding:5px 19px;border:2px solid #d8a765;border-radius:24px;background:linear-gradient(#fff8de,#ffe3ac);box-shadow:inset 0 0 0 2px #fff6d8;color:#8c552d;font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.jp-journey:before,.jp-journey:after{content:'';position:absolute;top:7px;width:13px;height:9px;background:linear-gradient(#b9d873,#70a448);border:1px solid #7da048;border-radius:80% 5% 80% 5%;z-index:-1}.jp-journey:before{left:-12px;transform:rotate(30deg)}.jp-journey:after{right:-12px;transform:rotate(-30deg) scaleX(-1)}
.jp-card h2{font-size:34px!important;line-height:1.06;margin:0!important;color:#61301d;font-weight:1000;letter-spacing:-.6px}.jp-card .jp-heading>p{font-size:12px;line-height:1.2;margin:5px 0 0;color:#956b45}.jp-card .jp-close{position:absolute;top:3px;right:0;width:44px;height:44px;border:2px solid #b98c52;border-radius:50%;background:#fff3d4;box-shadow:inset 0 0 0 2px #fff9e7;color:#86532e;font:700 31px/1 system-ui}.jp-status{display:inline-block;margin-top:5px;padding:3px 10px;border-radius:20px;background:#f5dfba;color:#906333;font-size:10px}
.jp-scenery{height:155px;margin-top:8px;border:2px solid #fff9e8;border-radius:21px 21px 12px 12px;background:#bde0e1 url('ui/journey-preview-v601/scenery.webp') center/cover;position:relative;overflow:hidden}.jp-pal{width:43%;height:100%;display:grid;place-items:center;padding:3px;box-sizing:border-box;filter:drop-shadow(0 0 5px #ffe78c)}.jp-pal canvas,.jp-pal svg{width:100%;max-height:100%;aspect-ratio:1;object-fit:contain;display:block}
.jp-card section{position:relative;text-align:left;box-sizing:border-box}.jp-card h3{font-size:10px;line-height:1.1;text-transform:uppercase;letter-spacing:.3px;font-weight:900;margin:0;color:#80602f}.jp-required{margin-top:17px;padding:14px 5px 5px;border:2px solid #a8c879;border-radius:13px;background:#f1f6de}.jp-required>h3{position:absolute;top:-11px;left:50%;transform:translateX(-50%);background:linear-gradient(#c4dc9a,#99ba6c);color:#405a29;border:1px solid #95b36c;border-radius:18px;padding:5px 12px;white-space:nowrap;box-shadow:inset 0 0 0 1px #e5efc7}
.jp-goal-row{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:7px;padding:6px 7px;min-height:48px;box-sizing:border-box}.jp-required .jp-goal-row{background:#f6f9e7;border:1px solid #c2d89d;border-radius:9px;margin-top:3px}.jp-goal-row strong{font-size:15px;line-height:1.2;overflow-wrap:anywhere}.jp-goal-icon{display:grid;place-items:center;width:40px;height:40px}.jp-goal-icon canvas,.jp-goal-icon svg,.jp-goal-icon img{display:block;width:100%;height:100%;object-fit:contain}.jp-icon-fallback{display:none;width:100%;height:100%}.jp-goal-icon:not(:has(img))>.jp-icon-fallback{display:block}
.jp-optional{margin-top:18px;border:2px solid #e1b963;border-radius:13px;padding:12px 4px 4px;background:linear-gradient(110deg,#fff4cc,#fff9e6)}.jp-optional>h3{position:absolute;top:-11px;left:16px;padding:4px 13px;background:linear-gradient(#e9c45e,#d2a23c);border:1px solid #e0b65b;border-radius:16px;color:#fffdf2;box-shadow:inset 0 0 0 1px #ffe5a3}.jp-optional>h3 small{font-size:8px;margin-left:5px;font-weight:700;opacity:.95}.jp-optional-body{display:grid;grid-template-columns:minmax(0,1fr) 93px;align-items:center;gap:4px}.jp-optional .jp-goal-row{min-height:54px;padding:5px 4px;grid-template-columns:38px minmax(0,1fr);gap:5px}.jp-optional .jp-goal-row strong{font-size:14px}.jp-optional .jp-goal-icon{width:38px;height:38px}.jp-optional-reward{border-left:1px solid #e2c58c;padding:3px 4px 3px 7px;color:#806032}.jp-optional-reward>span{display:flex;gap:5px;align-items:center;min-height:25px}.jp-optional-reward svg{width:23px;height:23px;flex-shrink:0}.jp-optional-reward b{font-size:14px;white-space:nowrap}.jp-optional-reward b small{font-size:10px}.jp-earned-label{display:block;font-size:9px;color:#507239;margin-left:28px}.jp-mastery{border-color:#bd9ada;background:linear-gradient(110deg,#f1e5fa,#faf2ff)}.jp-mastery>h3{background:linear-gradient(#baa0e2,#9470c3);border-color:#b091d0;box-shadow:inset 0 0 0 1px #dec9f1}.jp-mastery .jp-optional-reward{border-color:#d4bce4;color:#80589e}
.jp-clear{margin-top:19px;border:2px solid #e3ba6d;border-radius:13px;padding:17px 4px 6px;background:linear-gradient(#fff8e3,#fff0ca)}.jp-clear>h3{position:absolute;top:-11px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 14px;border:1px solid #e5bd76;border-radius:17px;background:linear-gradient(#fff7df,#f7dda7);color:#966730}.jp-reward-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.jp-reward-tray>div{display:grid;grid-template-columns:28px auto;align-items:center;justify-content:center;gap:0 5px;padding:5px 2px;border-right:1px solid #e3c48b}.jp-reward-tray>div:last-child{border:0}.jp-reward-tray svg{width:28px;height:28px;grid-row:span 2}.jp-reward-tray strong{font-size:21px;line-height:1.1}.jp-reward-tray small{font-size:10px;line-height:1.3;white-space:nowrap}.jp-replay-note{font-size:11px!important;line-height:1.35;margin:13px 5px 3px!important;color:#8a6845}
.jp-card .jp-actions{display:grid;gap:9px;margin-top:12px;position:static;background:none;padding:0}.jp-actions #wpwPlay{display:flex;justify-content:center;align-items:center;gap:9px;width:100%;min-height:56px;padding:10px 15px;border:2px solid #729844;border-radius:28px;background:linear-gradient(#cef493,#a4dd68);box-shadow:inset 0 0 0 2px #e6ffc0;color:#285b16;font-size:23px;font-weight:1000;line-height:1.15}.jp-actions #wpwPlay svg{width:24px;height:24px;flex-shrink:0}.jp-actions #wpwCancel{width:100%;min-height:47px;border:2px solid #947b60;border-radius:18px;background:linear-gradient(#e7f2ff,#c7ddf6);box-shadow:inset 0 0 0 2px #f7fbff;color:#2d527e;font-size:17px;font-weight:900;padding:9px 15px}.jp-card button:disabled{opacity:.6;cursor:wait}.jp-card button:focus-visible{outline:3px solid #8260bf;outline-offset:2px}.jp-rule{margin-top:12px;padding:10px;border:1px solid #bfabd1;border-radius:11px;background:#eee3f5;color:#6f4f83}.jp-rule small{display:block;text-transform:uppercase;font-size:9px}.jp-rule strong{display:block;font-size:13px;margin-top:3px}.jp-rule p{font-size:11px;margin:3px 0 0;line-height:1.3}.jp-extra-rewards{margin-top:12px}.jp-extra-rewards .wpw-finale-kicker{font-size:10px}.jp-extra-rewards .wpw-finale-reward strong{font-size:12px}.jp-card .wpw-guided-replay-warning{font-size:12px;line-height:1.35}
@media(max-width:350px){.wpw-detail-card.jp-card{padding:9px 9px 12px;border-radius:25px}.jp-card h2{font-size:29px!important}.jp-card .jp-heading{padding-left:38px;padding-right:38px}.jp-card .jp-journey{font-size:10px;padding:5px 11px}.jp-card .jp-heading>p{font-size:11px}.jp-scenery{height:130px}.jp-goal-row{grid-template-columns:33px minmax(0,1fr);gap:5px;padding:5px;min-height:43px}.jp-goal-icon{width:33px;height:33px}.jp-goal-row strong{font-size:13px}.jp-optional-body{grid-template-columns:minmax(0,1fr) 80px}.jp-optional .jp-goal-row{grid-template-columns:30px minmax(0,1fr);min-height:50px}.jp-optional .jp-goal-icon{width:30px;height:30px}.jp-optional .jp-goal-row strong{font-size:12px}.jp-optional-reward b{font-size:12px}.jp-optional-reward b small{font-size:9px}.jp-optional-reward svg{width:20px;height:20px}.jp-reward-tray>div{grid-template-columns:22px auto;gap:0 3px}.jp-reward-tray svg{width:22px;height:22px}.jp-reward-tray strong{font-size:18px}.jp-reward-tray small{font-size:9px}.jp-actions #wpwPlay{min-height:52px;font-size:21px}}
@media(max-height:480px){.wpw-detail-card.jp-card{max-width:520px;width:min(520px,100%)}.jp-scenery{height:130px}.jp-pal{width:140px}.jp-card h2{font-size:29px!important}}

.jp-pal canvas{width:100%;height:100%;max-height:100%;object-fit:contain}

/* Scenery-only preview composition. Goal Pal icons remain informative. */
.jp-card .jp-heading{padding:0 40px}.jp-card .jp-journey{font-size:11px;padding:4px 16px;margin-bottom:5px}.jp-card h2{font-size:29px!important;line-height:1.08}.jp-card .jp-heading>.jp-subtitle{font-size:11px;line-height:1.35;margin-top:4px}.jp-card .jp-status{display:inline;margin:0;padding:0;background:none;border:0;font-size:inherit;color:inherit;font-weight:700}.jp-card .jp-close{top:0}
.jp-card .jp-scenery{height:98px;margin-top:9px;border-radius:16px;background-size:120% auto;background-position:75% 50%}
.jp-card .jp-required>h3{left:16px;transform:none}.jp-card .jp-required .jp-goal-row,.jp-card .jp-optional .jp-goal-row{grid-template-columns:36px minmax(0,1fr);gap:7px;padding:5px 6px}.jp-card .jp-required .jp-goal-icon,.jp-card .jp-optional .jp-goal-icon{width:36px;height:36px}.jp-card .jp-optional .jp-goal-row{min-height:46px}.jp-card .jp-optional{padding-top:11px;padding-bottom:3px}.jp-card .jp-optional-reward>span{min-height:22px}.jp-card .jp-optional-reward svg{width:21px;height:21px}.jp-card .jp-earned-label{font-size:9px;margin-left:26px;line-height:1.2}
.jp-card .jp-rule{background:linear-gradient(#fff9e8,#fff1d7);border-color:#dfc28c;color:#866538}.jp-card .jp-rule>small{display:flex;align-items:center;gap:4px;font-size:9px}.jp-card .jp-rule>small svg{width:13px;height:13px;flex-shrink:0}
@media(max-width:350px){.jp-card h2{font-size:26px!important}.jp-card .jp-heading{padding:0 38px}.jp-card .jp-journey{font-size:10px;padding:4px 11px}.jp-card .jp-heading>.jp-subtitle{font-size:10px}.jp-card .jp-scenery{height:90px}.jp-card .jp-required .jp-goal-row,.jp-card .jp-optional .jp-goal-row{grid-template-columns:30px minmax(0,1fr);gap:5px;padding:5px}.jp-card .jp-required .jp-goal-icon,.jp-card .jp-optional .jp-goal-icon{width:30px;height:30px}.jp-card .jp-optional .jp-goal-row{min-height:43px}}
@media(max-height:480px){.jp-card .jp-scenery{height:85px}.jp-card h2{font-size:27px!important}}

.jp-card .jp-required{padding-left:4px;padding-right:4px}.jp-card .jp-optional .jp-goal-row{border:1px solid transparent}

.jp-completed-badge{display:table;margin:6px auto 0;padding:3px 10px;border:1px solid #8caa66;border-radius:14px;background:#e3f0cf;color:#466738;font-size:10px;font-weight:850}
.jp-mastery-status{display:flex;align-items:center;gap:6px;color:#7c6344;font-size:12px;line-height:1.25;margin:0 0 6px}
.jp-mastery-status>span{display:grid;place-items:center;flex:0 0 22px;height:24px;border:2px solid #ad986d;border-radius:50% 50% 6px 6px;background:#fff6df;color:#9c8451;font-size:17px}
.jp-mastery-status.is-mastered>span{background:linear-gradient(#fff3a9,#ecc650);color:#715018;border-color:#a7772c}
.jp-mastery-status.is-mastered{color:#785819}

/* The stage identity belongs to the scenic banner, while remaining live, accessible text. */
.jp-card .jp-scenery{height:auto;min-height:105px;display:grid;place-items:center;box-sizing:border-box;padding:12px;background-position:75% 50%}.jp-scene-title{width:min(100%,330px);box-sizing:border-box;text-align:center;padding:8px 12px;border:1px solid #fff6d6bf;border-radius:16px;background:linear-gradient(135deg,#fff9e9ed,#fff0d6df);box-shadow:0 2px 12px #45331d55;overflow-wrap:anywhere}.jp-card .jp-scene-title h2{font-size:27px!important;line-height:1.08}.jp-card .jp-scene-title .jp-subtitle{font-size:11px;line-height:1.25;margin:4px 0 0;color:#6d4b32}.jp-card .jp-scene-title .jp-status{display:inline;font-size:inherit;font-weight:700;color:inherit}.jp-card .jp-journey{margin-bottom:0}@media(max-width:350px){.jp-card .jp-scenery{min-height:96px}.jp-card .jp-scene-title h2{font-size:24px!important}}@media(max-height:480px){.jp-card .jp-scenery{min-height:90px}.jp-scene-title{padding:5px 12px}}
.jp-card .jp-heading{min-height:44px;display:flex;align-items:center;justify-content:center}.jp-card .jp-journey{margin:0 auto}

/* Required skill limits are explained before starting, without changing optional goals. */
.jp-limit-note{margin:10px 0 0;padding:9px 11px;border:1px solid #b99d68;border-radius:10px;background:#fff0bf;color:#594429;font-size:12px;line-height:1.4;font-weight:700;text-align:left}
