.phone-game-trim33{display:none}
.ar-library-player[data-phone-game-chevron] .phone-game-trim33{
  --game-metal:#e0c580;--game-glow:#bf8033;--game-well:#251c13;
  position:absolute;top:max(5px,env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);
  z-index:500;display:grid;justify-items:center;gap:5px;pointer-events:none;font:600 14px/1.2 system-ui,sans-serif;
}
.ar-library-player[data-player-app=ember-rest] .phone-game-trim33{--game-metal:#ffd199;--game-glow:#df733d;--game-well:#211510}
.ar-library-player:is([data-player-app=abyss],[data-player-app=optic-archive]) .phone-game-trim33{--game-metal:#ffd2ce;--game-glow:#cd575d;--game-well:#251415}
.ar-library-player:is([data-player-app=azeroth],[data-player-app=cottage]) .phone-game-trim33{--game-metal:#f8d3f3;--game-glow:#b672b1;--game-well:#211724}
.ar-library-player:is([data-player-app=sheep],[data-player-app=woolly-abc],[data-player-app=woolly-123],[data-player-app=a-small-voice]) .phone-game-trim33{--game-metal:#f3ecb9;--game-glow:#8eaf5a;--game-well:#202618}
.ar-library-player[data-player-app=galilee] .phone-game-trim33{--game-metal:#d4f4ff;--game-glow:#669dab;--game-well:#142429}

.ar-library-player[data-phone-game-chevron] .ar-library-frame-wrap{flex:1 1 100%;width:100%;min-height:0;margin:0!important;padding:0!important}
.phone-game-chevron33{
  appearance:none;pointer-events:auto;touch-action:manipulation;color:var(--game-metal);border:1px solid var(--game-glow);
  background:var(--game-well);font:inherit;cursor:pointer;
}
.phone-game-chevron33{
  display:grid;place-items:center;width:52px;height:44px;border-radius:16px 16px 24px 24px;
  box-shadow:inset 0 0 12px color-mix(in srgb,var(--game-glow) 26%,transparent),0 2px 10px #000b;
}
.phone-game-chevron33 svg{width:24px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px var(--game-glow));}
.phone-game-chevron33[aria-expanded=true] svg{transform:rotate(180deg);animation:none}
@keyframes phone-chevron-v33{0%,100%{translate:0 -1px}50%{translate:0 2px}}
@media(prefers-reduced-motion:reduce){.phone-game-chevron33 svg{animation:none}}


.ar-library-player[data-ember-game-only] [data-phone-game-return33]{display:none}
.phone-game-trim33 button:focus-visible{outline:2px solid var(--game-metal);outline-offset:2px}
.ar-library-player[data-player-app=scripture-quest] .phone-game-trim33{--game-metal:#f1e0b7;--game-glow:#9b8262;--game-well:#252018}
.ar-library-player[data-player-app=gifts-of-grace] .phone-game-trim33{--game-metal:#ffe0c7;--game-glow:#a96757;--game-well:#2b1b19}
.ar-library-player[data-player-app=knucklebones] .phone-game-trim33{--game-metal:#efdcc2;--game-glow:#a47c55;--game-well:#221916}
.ar-library-player[data-player-app=archaeology-dig] .phone-game-trim33{--game-metal:#f2daa1;--game-glow:#ad8660;--game-well:#241f15}
.ar-library-player[data-player-app=twenty-squares] .phone-game-trim33{--game-metal:#f7d997;--game-glow:#b88446;--game-well:#211b14}

/* Full stage on mobile in either supported orientation, without reflow on reveal. */
html body dialog.ar-library-player[open][data-phone-game-chevron] .ar-library-frame-wrap{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  flex:none!important;max-width:none!important;max-height:none!important;min-height:0!important;
  margin:0!important;padding:0!important;transform:none!important;
}
html body dialog.ar-library-player[open][data-phone-game-chevron] :is([data-player-slot],iframe.ar-library-frame){
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
}
html body dialog.ar-library-player[open][data-player-phone] [data-player-fullscreen]{display:none!important}
html body dialog.ar-library-player[open][data-player-phone] [data-player-edge]{display:none!important}
html body dialog.ar-library-player[open][data-phone-game-chevron]:not([data-phone-game-hud=open]) #ar-player-controls{display:none!important}
html body dialog.ar-library-player[open][data-phone-game-chevron][data-phone-game-hud=open] #ar-player-controls{
  position:absolute!important;inset:0 0 auto!important;z-index:480!important;display:flex!important;align-items:center!important;
  min-height:50px!important;width:100%!important;height:auto!important;max-height:min(35dvh,126px)!important;
  transform:none!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  box-sizing:border-box;padding-top:max(8px,env(safe-area-inset-top,0px))!important;
  overflow:auto!important;animation:phone-toolbar-in34 .18s ease-out both;
}
@keyframes phone-toolbar-in34{from{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}
.ar-library-player[data-phone-game-hud=open] .phone-game-trim33{top:max(5px,env(safe-area-inset-top,0px))}
.ar-library-player[data-phone-game-hud=open] #ar-player-controls :is(.ar-library-player-heading,.ar-library-player-actions){max-width:calc(50% - 30px);min-width:0}
.ar-library-player[data-phone-game-hud=open] #ar-library-controls h2,.ar-library-player[data-phone-game-hud=open] #ar-library-player-title{overflow-wrap:anywhere}
.ar-library-player[data-phone-game-hud=open] #ar-player-controls .ar-library-player-actions{justify-content:flex-end;flex-wrap:wrap}
.ar-library-player[data-phone-game-hud=hidden] .phone-game-chevron33{
  opacity:0;width:116px;height:34px;border-radius:0;box-shadow:none;
}
.ar-library-player[data-phone-game-chevron] .phone-game-chevron33{touch-action:none;transition:opacity .22s ease,width .18s ease}
.ar-library-player[data-phone-game-hud=hint] .phone-game-chevron33[data-phone-game-intro] svg{animation:phone-chevron-v33 .9s ease-in-out 2}
.phone-game-orientation34[hidden]{display:none!important}
html body dialog.ar-library-player[open][data-phone-game-rotate] .phone-game-orientation34{
  position:absolute;inset:0;z-index:600;background:rgba(13,11,13,.98);
  color:#fff3da;display:grid;place-items:center;text-align:center;padding:20px;overflow:auto;
  font:16px/1.45 system-ui,sans-serif;
}
html body dialog.ar-library-player[open][data-phone-game-rotate] :is(.ar-library-frame-wrap,#ar-player-controls){
  visibility:hidden!important;pointer-events:none!important;
}
.phone-game-orientation34 strong{display:block;font-size:20px}
.phone-game-orientation34 p{margin:.3rem 0 1rem}
.phone-game-orientation34 svg{width:52px;height:52px;fill:none;stroke:#ebc88e;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ar-library-player[data-phone-game-orientation=landscape] .phone-game-orientation34 svg{transform:rotate(90deg)}
.phone-game-orientation34 button{min-height:44px;padding:8px 20px}
@media(prefers-reduced-motion:reduce){
  .ar-library-player[data-phone-game-hud=hint] .phone-game-chevron33[data-phone-game-intro] svg,
  html body dialog.ar-library-player[open][data-phone-game-chevron][data-phone-game-hud=open] #ar-player-controls{animation:none!important}
  .ar-library-player[data-phone-game-chevron] .phone-game-chevron33{transition:none}
}/* Float the lit mark on the scene, keeping a full invisible touch target. */
html body dialog.ar-library-player[open][data-phone-game-chevron] .phone-game-chevron33,
html body dialog.ar-library-player[open][data-phone-game-chevron] .phone-game-chevron33:is(:hover,:active){
  border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  padding:0!important;color:var(--game-metal)!important;filter:none!important;
}
html body dialog.ar-library-player[open][data-phone-game-chevron] .phone-game-chevron33 svg {
  width:26px;height:18px;filter:drop-shadow(0 1px 2px #000) drop-shadow(0 0 5px var(--game-glow)) drop-shadow(0 0 9px var(--game-glow));
}
@media(forced-colors:active){
  html body dialog.ar-library-player[open][data-phone-game-chevron] .phone-game-chevron33{color:ButtonText!important}
}
