﻿/* Prism field shortcuts use the existing game menu and live combat and radar controls. */
html.mobile-hud.prism-phone #world-hud{
  --pr-map-top:max(clamp(4px,.62vw,9px),env(safe-area-inset-top,0px));
  --pr-map-edge:max(clamp(4px,.58vw,8px),env(safe-area-inset-right,0px));
  --pr-map-size:clamp(65px,10.85vw,152px);
  --pr-map-gap:clamp(6px,.85vw,12px);
  --pr-map-radius:clamp(4px,.72vw,10px);
  --pr-menu-right:calc(var(--pr-map-edge) + var(--pr-map-size) + var(--pr-map-gap));
  --pr-menu-width:clamp(132px,15.8vw,221px);
  --pr-menu-height:clamp(33px,3.95vw,55px);
  --pr-menu-art-width:clamp(16px,2.05vw,29px);
  --pr-menu-art-height:clamp(14px,1.68vw,24px);
  --pr-utility-gap:clamp(4px,.52vw,7px);
  --pr-utility-column-gap:clamp(4px,.45vw,7px);
  --pr-utility-top:calc(var(--pr-menu-height) + var(--pr-utility-gap));
  --pr-utility-height:clamp(21px,2.52vw,35px);
  --pr-utility-width:calc((var(--pr-menu-width) - var(--pr-utility-column-gap))/2);
  --pr-utility-icon:clamp(12px,1.3vw,18px);
  --pr-utility-icon-gap:clamp(3px,.36vw,5px);
  --pr-utility-font:650 clamp(9px,1.03vw,14px)/1 "Segoe UI",Arial,sans-serif;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-rail{
  inset:var(--pr-map-top) var(--pr-menu-right) auto auto;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  width:var(--pr-menu-width);height:var(--pr-menu-height);padding:1px 3px;isolation:isolate;
  align-items:stretch;justify-content:stretch;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-rail::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(160deg,#5b6d73d9,#243b46f5 38%,#1c303af5);
  box-shadow:inset 0 1px #a2b1ad76,inset 0 -1px #121f28;
  clip-path:polygon(5% 0,100% 0,100% 100%,0 100%,0 15%);
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-slots{
  display:grid;grid-column:span 2;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr;height:100%;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-rail-button{
  display:grid;grid-template-rows:var(--pr-menu-art-height) auto;align-content:center;justify-items:center;
  width:100%;min-width:0;height:100%;min-height:0;gap:clamp(1px,.23vw,3px);padding:0 1px;
  color:#ede3c9;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-rail-button::before{content:none}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-rail-button:is([data-mobile-nav-menu],[data-mobile-nav-entry=actions]){
  border-left:1px solid #91a6a227;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-rail-button:is(:active,:focus-visible){
  background:#9eb4b226;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-rail-button .obs-nav-label{
  font:550 clamp(9px,.96vw,14px)/1.08 "Segoe UI",Arial,sans-serif;white-space:nowrap;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) .mobile-nav-rail-button :is(svg,.mobile-nav-native){
  width:var(--pr-menu-art-width);height:var(--pr-menu-art-height);
  filter:drop-shadow(0 1px 1px #111f20);
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) [data-mobile-nav-entry=inventory] .mobile-nav-native{
  background:url('prism-nav-inventory.png') center/contain no-repeat;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #mobile-navigation:not([data-editing=true])) [data-mobile-nav-entry=actions] .mobile-nav-native{
  background:url('prism-nav-actions.png') center/contain no-repeat;
}

html.mobile-hud.prism-phone #world-hud:has(#mobile-navigation) #hud-radar{
  top:var(--pr-map-top)!important;right:var(--pr-map-edge)!important;
  box-sizing:border-box;width:var(--pr-map-size);height:var(--pr-map-size);
  border-radius:var(--pr-map-radius);
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud:has(#mobile-navigation) #hud-radar) .obs-radar-region{
  display:none;
}
:is(html.mobile-hud.prism-phone #world-hud:has(#mobile-navigation) #hud-radar) #radar-view:not([hidden]){
  inset:0;margin:0;border:0;border-radius:var(--pr-map-radius);
  background:#332d25;box-shadow:none;
}
:is(html.mobile-hud.prism-phone #world-hud:has(#mobile-navigation) #hud-radar) .radar-map{
  height:100%;min-height:0;border-radius:var(--pr-map-radius);
}
:is(html.mobile-hud.prism-phone #world-hud:has(#mobile-navigation) #hud-radar):has(#radar-view:not([hidden])) > div:first-child::after{
  inset:0;box-sizing:border-box;width:100%;height:100%;border-radius:var(--pr-map-radius);
  border:clamp(1px,.19vw,3px) solid #d3c293;background:none;
  box-shadow:inset 0 0 0 1px #fff0bf66,0 1px 4px #111b;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud:has(#mobile-navigation) #hud-radar) #mobile-teleport{
  inset:var(--pr-utility-top) calc(100% + var(--pr-map-gap)) auto auto;transform:none;
  box-sizing:border-box;width:var(--pr-utility-width);height:var(--pr-utility-height);min-height:0;
  gap:var(--pr-utility-icon-gap);padding:0 2px;border-radius:999px;
  font:var(--pr-utility-font);color:#f4f8ff;letter-spacing:0;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud:has(#mobile-navigation) #hud-radar) #mobile-teleport::before{
  width:var(--pr-utility-icon);height:var(--pr-utility-icon);
  background:url('prism-teleport.webp') center/contain no-repeat;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud:has(#mobile-navigation) #hud-radar) #mobile-teleport::after{
  inset:0;height:auto;border:1px solid #94b3d6;border-radius:inherit;
  background:linear-gradient(#366997,#284b7d 76%);box-shadow:inset 0 1px #d8ebff34;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud:has(#mobile-navigation) #hud-radar) #mobile-teleport:active::after{filter:brightness(1.19)}

html.mobile-hud.obsidian-phone.prism-phone #world-hud.show-bar:has(#mobile-navigation) #action-bar[data-obsidian-combat] .hunt-shortcut:not([hidden]){
  top:calc(var(--pr-map-top) + var(--pr-utility-top))!important;
  right:calc(var(--pr-menu-right) + var(--pr-utility-width) + var(--pr-utility-column-gap))!important;
  box-sizing:border-box;width:var(--pr-utility-width);height:var(--pr-utility-height);min-height:0;border-radius:999px;
  grid-template-rows:minmax(0,1fr);
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut) .obsidian-hunt-face{
  isolation:isolate;display:flex;align-items:center;justify-content:center;gap:var(--pr-utility-icon-gap);
  height:100%;min-width:0;padding:0 2px;border:1px solid #9caead;border-radius:inherit;overflow:hidden;
  background:linear-gradient(#40565c,#263d47 78%);box-shadow:inset 0 0 0 1px #a4b3a92b;
  color:#ede3c9;font:var(--pr-utility-font);letter-spacing:0;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut) .obsidian-hunt-emblem{
  width:var(--pr-utility-icon);height:var(--pr-utility-icon);transform:none;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut) .obsidian-hunt-emblem::before{content:none}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut) .obsidian-hunt-emblem img{object-fit:contain}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut.running) .obsidian-hunt-face{
  border-color:#dab364;background:#825423;color:#fff2c5;box-shadow:0 0 7px #ffae4b73;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut.running) .obsidian-hunt-face::before,
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut.running) .obsidian-hunt-face::after{
  content:"";position:absolute;pointer-events:none;
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut.running) .obsidian-hunt-face::before{
  z-index:-2;inset:-150%;background:conic-gradient(#9c6128 15deg,#be7b35 55deg,#fff2a7 91deg,#ffc460 110deg,#a3612d 140deg,#9c6128 225deg,#ffcf75 268deg,#fff1a4 283deg,#a36c32 309deg,#9c6128);
}
:is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut.running) .obsidian-hunt-face::after{
  z-index:-1;inset:1px;border-radius:inherit;background:linear-gradient(#644422,#302920 78%);
}
@media(prefers-reduced-motion:no-preference){
  :is(html.mobile-hud.obsidian-phone.prism-phone #world-hud #action-bar .hunt-shortcut.running) .obsidian-hunt-face::before{
    animation:prism-hunt-ember 2.15s linear infinite;
  }
}
@keyframes prism-hunt-ember{to{transform:rotate(1turn)}}

html.mobile-hud.prism-phone #world-hud #prism-notice-row{
  position:fixed;z-index:4;top:calc(var(--pr-map-top) + var(--pr-utility-top) + var(--pr-utility-height) + 2px);
  right:var(--pr-menu-right);display:flex;justify-content:flex-end;align-items:center;
  gap:clamp(4px,.49vw,7px);pointer-events:none;
}
html.mobile-hud.prism-phone #world-hud #prism-notice-row button{pointer-events:auto}

html.prism-phone #obsidian-world-map[open]{
  --map-ink:#f6ede0;--map-edge:#8b998c;--map-panel:linear-gradient(115deg,#344850,#182c34);
}
html.prism-phone #obsidian-world-map #map-panel{background:#15262f}


/* Preserve the realm's controls and give the mobile settings a compact two-column layout. */
html.mobile-hud.prism-phone main.in-world #world-controls.window-open:has(#hunt-panel.active-window){
  width:min(480px,calc(100vw - 2 * max(8px,env(safe-area-inset-left),env(safe-area-inset-right))));
  border-color:#84918b;background:linear-gradient(#20343c,#192a32);
}
html.mobile-hud.prism-phone main.in-world #world-controls #hunt-panel:not([hidden]){
  box-sizing:border-box;width:100%;margin-inline:auto;padding:3px;
  color:#eee7d6;font:500 13px/1.3 "Segoe UI",Arial,sans-serif;color-scheme:dark;
}
html.mobile-hud.prism-phone main.in-world #world-controls #hunt-panel .window-heading{
  min-height:44px;margin:0 0 4px;padding:0 3px 0 10px;border:1px solid #82929270;border-radius:4px;
  background:linear-gradient(#3d5359,#263941);border-image:none;
}
html.mobile-hud.prism-phone main.in-world #world-controls #hunt-panel .window-heading button{
  margin:0;min-width:44px;min-height:44px;
}
html.mobile-hud.prism-phone main.in-world #world-controls #hunt-panel .window-heading h2{
  font:650 16px/1.15 "Segoe UI",Arial,sans-serif;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel fieldset{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;
  min-width:0;margin:0;padding:3px 10px 6px;border:0;border-bottom:1px solid #7889885c;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel legend{
  margin:3px 0 1px;padding:0;color:#e9cc96;font-weight:650;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel .hunt-time{
  margin:0;color:#e9cc96;font-size:12px;text-align:end;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel label{
  box-sizing:border-box;min-width:0;min-height:44px;color:inherit;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel .hunt-target{
  grid-column:1;grid-row:1;display:grid;gap:3px;align-content:start;justify-content:stretch;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel select{
  width:100%;max-width:100%;min-height:44px;margin:0;padding:0 6px;
  border:1px solid #84958c;border-radius:4px;background:#253840;color:#f3eddf;font:inherit;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel label:has(input[type=checkbox]){
  display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;
  border-bottom:1px solid #7889883d;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel .hunt-short{grid-column:1;grid-row:2}
html.mobile-hud.prism-phone #world-controls #hunt-panel .hunt-pickup{grid-column:2;grid-row:1}
html.mobile-hud.prism-phone #world-controls #hunt-panel .hunt-respectful{grid-column:2;grid-row:2}
html.mobile-hud.prism-phone #world-controls #hunt-panel input[type=checkbox]{
  appearance:none;flex:none;width:36px;height:20px;margin:0;border:1px solid #748784;border-radius:999px;
  background:radial-gradient(circle at 9px center,#a3b6b5 0 6px,transparent 6.5px),#1b292e;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel input[type=checkbox]:checked{
  border-color:#b7a076;background:radial-gradient(circle at 25px center,#e9cb89 0 6px,transparent 6.5px),#59513a;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel .hunt-potion{
  grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 6px;align-content:center;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel .prism-hunt-threshold{
  color:#eed19b;white-space:nowrap;font-variant-numeric:tabular-nums;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel input[type=range]{
  grid-column:1/-1;box-sizing:border-box;width:100%;height:26px;margin:0;accent-color:#e8c781;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel .prism-hunt-actions{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;padding:5px 10px;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel .prism-hunt-actions button{
  min-height:44px;padding-inline:10px;border:1px solid #819690;border-radius:4px;
  background:linear-gradient(#364b52,#24383e);color:#f2ece0;font-weight:650;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel .hunt-toggle{
  border-color:#bdab76;background:linear-gradient(#56604f,#354847);color:#fff1c6;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel:has(.hunt-toggle[data-hunt-running]) .hunt-toggle{
  border-color:#b48164;background:linear-gradient(#684639,#4b342b);color:#ffeade;
}
html.mobile-hud.prism-phone #world-controls #hunt-panel [role=status]{margin:0;padding:0 12px 6px}
html.mobile-hud.prism-phone #world-controls #hunt-panel [role=status]:empty{display:none}
@media(max-width:665px){
  html.mobile-hud.prism-phone main.in-world #world-controls.window-open:has(#hunt-panel.active-window){
    right:max(8px,env(safe-area-inset-right),calc((100vw - 480px)/2));
  }
}
@media(max-width:420px){
  html.mobile-hud.prism-phone #world-controls #hunt-panel fieldset{column-gap:8px;padding-inline:8px}
  html.mobile-hud.prism-phone #world-controls #hunt-panel .prism-hunt-actions{padding-inline:8px}
}
