html.prism-phone #world-hud #prism-notice-row[hidden],
html.prism-phone #world-hud #prism-notice-row:not(:has(> button:not([hidden]))) { display:none }
html.prism-phone #world-hud #prism-notice-row > button:not([hidden]) {
  --prism-notice-icon:clamp(15px,2vw,24px);
  position:relative;display:grid;place-items:center;pointer-events:auto;isolation:isolate;
  inline-size:clamp(34px,5.3vw,46px);block-size:clamp(34px,5.3vw,46px);
  padding:0;border:0;border-radius:4px;background:none;box-shadow:none;touch-action:manipulation;
}
html.prism-phone #world-hud #prism-notice-row #prism-quest-notice { --prism-notice-art:url(prism-quest-scroll.png) }
html.prism-phone #world-hud #prism-notice-row #class-transfer-medal { --prism-notice-art:url(class-transfer/medal.webp) }
html.prism-phone #world-hud #prism-notice-row > button > img,
html.prism-phone #world-hud #prism-notice-row > button::before,
html.prism-phone #world-hud #prism-notice-row > button::after {
  grid-area:1/1;inline-size:var(--prism-notice-icon);block-size:var(--prism-notice-icon);
  display:block;pointer-events:none;
}
html.prism-phone #world-hud #prism-notice-row > button > img { object-fit:contain }
html.prism-phone #world-hud #prism-notice-row > button > img,
html.prism-phone #world-hud #prism-notice-row #class-transfer-medal::before {
  filter:drop-shadow(0 1px 1px #101817b0);
}
html.prism-phone #world-hud #prism-notice-row #class-transfer-medal::before {
  content:"";background:var(--prism-notice-art) center/contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  html.prism-phone #world-hud #prism-notice-row:not([hidden]) > button:not([hidden],:disabled,[data-notice-seen])::after {
    content:"";background:linear-gradient(112deg,transparent 36%,#ffefc0bd 50%,transparent 64%) 110% 0/270% 100% no-repeat;
    -webkit-mask:var(--prism-notice-art) center/contain no-repeat;
    mask:var(--prism-notice-art) center/contain no-repeat;
    opacity:0;animation:prism-notice-sheen 5s ease-out infinite;
  }
  html.prism-phone #world-hud #prism-notice-row > #class-transfer-medal::after { animation-delay:.65s }
}
@keyframes prism-notice-sheen {
  0%,64% { background-position:110% 0;opacity:0 }
  71% { opacity:.8 }
  87%,100% { background-position:-15% 0;opacity:0 }
}

html.mobile-hud.prism-phone main.in-world #world-hud > #quest-tracker:not([hidden]) {
  grid-template-columns:minmax(0,1fr) minmax(30px,auto) 34px;grid-template-rows:auto auto;
  width:clamp(148px,27vw,267px);max-width:42vw;align-items:center;gap:0 4px;padding:0 0 0 4px;
  background:linear-gradient(100deg,#182a30ee,#17262bdc 66%,#26322c66);border:0;border-left:1px solid #d4b275;
  border-radius:0 4px 4px 0;text-shadow:none;
}
html.mobile-hud.prism-phone #world-hud > #quest-tracker .qb-notice-heading { display:none }
html.mobile-hud.prism-phone main.in-world #world-hud > #quest-tracker #quest-tracker-name {
  grid-area:1/1/3/2;position:relative;min-height:40px;text-align:left;padding:3px 0 3px 20px;
  background:url(prism-quest-scroll.png) left 5px/16px 16px no-repeat;color:#f8e7c1;
}
html.mobile-hud.prism-phone #world-hud > #quest-tracker .quest-notice-title { font:650 clamp(11px,1.48vw,14px)/1.18 'Segoe UI',system-ui,sans-serif }
html.mobile-hud.prism-phone #world-hud > #quest-tracker .quest-notice-stage { margin-top:2px;color:#dedfd0;font:400 clamp(10px,1.27vw,13px)/1.16 'Segoe UI',system-ui,sans-serif }
html.mobile-hud.prism-phone main.in-world #world-hud > #quest-tracker #quest-tracker-distance { grid-area:1/2;align-self:stretch;min-height:20px;padding:0 2px;color:#f4dfad;text-align:center }
html.mobile-hud.prism-phone main.in-world #world-hud > #quest-tracker #quest-tracker-items { grid-area:2/2;text-align:center }
html.mobile-hud.prism-phone main.in-world #world-hud > #quest-tracker #clear-quest-tracker { grid-area:1/3/3/4;width:34px;min-height:40px;font-size:19px }

html.mobile-hud.prism-phone main.in-world #world-controls.window-open:has(> #quests-panel.active-window:not([hidden])) {
  position:fixed;inset:max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));
  width:auto;height:auto;max-width:none;max-height:none;transform:none;box-sizing:border-box;
  display:flex;flex-direction:column;overflow:hidden;padding:0;
  border:1px solid #a59572;border-radius:6px;background:#1b2c31;box-shadow:0 4px 20px #101b21b3;
}
html.mobile-hud.prism-phone main.in-world #world-controls.window-open > #quests-panel.active-window:not([hidden]) {
  flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:0;border:0;border-radius:0;
  background:linear-gradient(144deg,#24383d,#1b2a31 73%);overflow:hidden;color:#f2ebd8;
}
html.mobile-hud.prism-phone #quests-panel > .window-heading {
  flex:none;display:flex;align-items:center;justify-content:space-between;min-height:40px;
  margin:0;padding:0 8px 0 clamp(10px,1.8vw,26px);border-bottom:1px solid #9a886b;background:#203136;
}
html.mobile-hud.prism-phone #quests-panel > .window-heading h2 { margin:0;color:#ffdfad;font:700 clamp(17px,2.5vw,25px)/1.15 Georgia,serif }
html.mobile-hud.prism-phone #quests-panel > .window-heading button { min-height:34px;margin:0 }
html.mobile-hud.prism-phone #quests-panel > :is(#quests-summary,#quests-list,.journal-empty,#completed-quests) { display:none }
html.mobile-hud.prism-phone #prism-quest-book { position:relative;flex:1;min-height:0;display:flex;flex-direction:column }
html.mobile-hud.prism-phone #prism-quest-book [hidden],html.mobile-hud.prism-phone #prism-quest-book[hidden] { display:none!important }
html.mobile-hud.prism-phone .prism-journal-status { position:absolute;inset:6px 10px auto auto;z-index:1;margin:0;color:#eee3c5;pointer-events:none }
html.mobile-hud.prism-phone .prism-journal-body { display:grid;grid-template-columns:clamp(140px,30%,250px) minmax(0,1fr);flex:1;min-height:0 }
html.mobile-hud.prism-phone .prism-journal-sidebar {
  display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid #7e785d;background:#1b2c31;
}
html.mobile-hud.prism-phone .prism-journal-tabs { display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #7e785d }
html.mobile-hud.prism-phone .prism-journal-tabs button { min-width:0;min-height:40px;padding:4px 2px;border:0;border-radius:0;background:none;font-size:clamp(11px,1.7vw,15px);color:#e5dfcb }
html.mobile-hud.prism-phone .prism-journal-tabs button + button { border-left:1px solid #8c978744 }
html.mobile-hud.prism-phone .prism-journal-tabs button[aria-pressed=true] { background:linear-gradient(#bda36a29,#bda36a10);box-shadow:inset 0 -2px #e1bd7c;color:#ffdfa1 }
html.mobile-hud.prism-phone .prism-journal-search { display:grid;gap:1px;padding:4px 6px }
html.mobile-hud.prism-phone .prism-journal-search input[type=search] { width:100%;min-width:0;box-sizing:border-box;margin:0 }
html.mobile-hud.prism-phone .prism-journal-search label { display:flex;align-items:center;gap:3px;font-size:11px }
html.mobile-hud.prism-phone .prism-journal-list { display:grid;align-content:start;gap:4px;padding:5px;overflow:auto;overscroll-behavior:contain;min-height:0 }
html.mobile-hud.prism-phone .prism-journal-entry {
  min-width:0;min-height:44px;display:grid;gap:2px;align-content:center;padding:5px 7px;
  color:#ebeadc;background:#2d42454f;border:1px solid transparent;border-radius:4px;text-align:left;font-size:clamp(12px,1.8vw,15px);
}
html.mobile-hud.prism-phone .prism-journal-entry[aria-pressed=true] { border-color:#ab9365;background:linear-gradient(100deg,#53523a,#2d4143 78%) }
html.mobile-hud.prism-phone .prism-journal-entry small { color:#c9ccba;font-size:clamp(11px,1.45vw,13px) }
html.mobile-hud.prism-phone .prism-journal-detail { min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:clamp(9px,1.5vw,20px) clamp(10px,2.2vw,28px);font:400 clamp(13px,1.7vw,16px)/1.4 'Segoe UI',system-ui,sans-serif }
html.mobile-hud.prism-phone .prism-journal-detail :is(h3,h4,p),html.mobile-hud.prism-phone .prism-journal-empty { margin:0 }
html.mobile-hud.prism-phone .prism-journal-detail h3 { color:#f4dfb0;font:700 clamp(20px,2.95vw,29px)/1.12 Georgia,serif }
html.mobile-hud.prism-phone .prism-journal-detail .prism-journal-meta {
  display:flex;justify-content:space-between;gap:4px 8px;flex-wrap:wrap;margin:4px 0 clamp(8px,1.5vw,18px);color:#ccd2c2;font-size:clamp(12px,1.48vw,14px);
}
html.mobile-hud.prism-phone .prism-journal-meta b { color:#e6c98c }
html.mobile-hud.prism-phone .prism-journal-objective { padding:clamp(7px,1.32vw,16px) clamp(9px,1.7vw,20px);border-left:2px solid #e1bc77;background:linear-gradient(107deg,#b4965a30,#79827510 92%);box-shadow:inset 0 -1px #bfa0682d }
html.mobile-hud.prism-phone .prism-journal-objective h4 { color:#f0cf92;font-size:clamp(12px,1.6vw,15px) }
html.mobile-hud.prism-phone .prism-journal-detail .prism-journal-instruction { margin-top:4px;color:#fff0cd;font:650 clamp(18px,2.7vw,30px)/1.18 'Segoe UI',system-ui,sans-serif }
html.mobile-hud.prism-phone .prism-journal-detail :is(h3,p,li),html.mobile-hud.prism-phone .prism-journal-entry { overflow-wrap:anywhere }
html.mobile-hud.prism-phone .prism-journal-goals { display:grid;gap:10px;margin:clamp(8px,1.55vw,20px) 0 0;padding:0;list-style:none }
html.mobile-hud.prism-phone .prism-journal-goals li { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 6px;align-items:baseline;color:#ede9db }
html.mobile-hud.prism-phone .prism-journal-goals b { color:#ffe0a0;white-space:nowrap;font-variant-numeric:tabular-nums }
html.mobile-hud.prism-phone .prism-journal-goals progress { grid-column:1/-1;appearance:none;width:100%;height:5px;border:0;border-radius:2px;background:#101e24;overflow:hidden;accent-color:#d3a657 }
html.mobile-hud.prism-phone .prism-journal-goals progress::-webkit-progress-bar { background:#101e24 }
html.mobile-hud.prism-phone .prism-journal-goals progress::-webkit-progress-value { background:linear-gradient(90deg,#8c6638,#dfb86b) }
html.mobile-hud.prism-phone .prism-journal-goals progress::-moz-progress-bar { background:linear-gradient(90deg,#8c6638,#dfb86b) }
html.mobile-hud.prism-phone .prism-journal-extras { margin-top:clamp(10px,1.8vw,24px) }
html.mobile-hud.prism-phone .prism-journal-extras details { border-top:1px solid #83917c45 }
html.mobile-hud.prism-phone .prism-journal-extras summary { min-height:42px;align-content:center;box-sizing:border-box;padding:5px 0;color:#f0d6a4 }
html.mobile-hud.prism-phone .prism-journal-extras ol { margin:0 0 10px;padding-inline-start:20px;color:#bdc9bb }
html.mobile-hud.prism-phone .prism-journal-extras ol li { padding:4px 0 }
html.mobile-hud.prism-phone .prism-journal-extras [aria-current=step] { color:#ffe0a0 }
html.mobile-hud.prism-phone .prism-journal-detail .prism-journal-description { margin-top:4px;color:#d4d1bb;font-size:.93em }
html.mobile-hud.prism-phone .prism-journal-reward-grid { display:flex;flex-wrap:wrap;gap:6px;padding:0 0 8px }
html.mobile-hud.prism-phone .prism-journal-reward-grid button {
  position:relative;display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:0;border:1px solid #a19373;border-radius:4px;overflow:hidden;background:#19292e;
}
html.mobile-hud.prism-phone .prism-journal-reward-grid button[aria-pressed=true] { border-color:#ffdfa1;box-shadow:0 0 0 1px #dbb777 }
html.mobile-hud.prism-phone .prism-journal-reward-grid img { width:100%;height:100%;object-fit:cover }
html.mobile-hud.prism-phone .prism-journal-reward-count { position:absolute;inset:auto 1px 1px auto;padding:1px 2px;color:#fff6dc;background:#132029df;font-size:10px;line-height:1.1 }
html.mobile-hud.prism-phone .prism-journal-reward-fallback { max-width:100%;padding:2px;overflow:hidden;font-size:10px }
html.mobile-hud.prism-phone .prism-journal-detail .prism-journal-reward-name { margin:0 0 8px;padding:5px 7px;border-left:2px solid #d0ad6f;background:#78846b22 }
html.mobile-hud.prism-phone .prism-journal-footer { display:flex;justify-content:space-between;gap:6px;padding:5px clamp(8px,1.8vw,24px);border-top:1px solid #7e785d;background:#1c2c31 }
html.mobile-hud.prism-phone .prism-journal-footer button,html.mobile-hud.prism-phone .prism-journal-manage button {
  min-height:36px;padding:4px 10px;border:1px solid #8c7758;border-radius:4px;color:#f8eacd;background:linear-gradient(140deg,#465657,#263a43);font-size:clamp(12px,1.66vw,15px);
}
html.mobile-hud.prism-phone .prism-journal-footer .prism-quest-map { border-color:#e3c28b;background:linear-gradient(145deg,#aa884f,#6c5635);color:#fff4da }
html.mobile-hud.prism-phone :is(#prism-notice-row,#prism-quest-book) :is(button,input,summary):focus-visible { outline:2px solid #ffdd9d;outline-offset:-2px }

@media(max-width:535px) {
  html.mobile-hud.prism-phone .prism-journal-body { grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) }
  html.mobile-hud.prism-phone .prism-journal-sidebar { border-right:0;border-bottom:1px solid #7e785d }
  html.mobile-hud.prism-phone .prism-journal-tabs button { min-height:32px }
  html.mobile-hud.prism-phone .prism-journal-list { grid-template-columns:repeat(2,minmax(0,1fr));max-height:100px }
  html.mobile-hud.prism-phone .prism-journal-entry { min-height:36px }
}
