/* The original Homecraft interface, with owner-specific phone logos only. */
#phone .tile.platform-tile{display:flex;align-items:center;justify-content:center;background-image:none}
#phone .tile.platform-tile>img{display:block;width:62%;height:62%;object-fit:contain;filter:brightness(0) invert(1);border:0;box-shadow:none;border-radius:0}
#phone .apps .app{display:flex;flex-direction:column;align-items:center;gap:6px}
#phone .apps .app>span{margin:0;line-height:1.3;min-height:1.3em;text-align:center}
body.reading #portalButton{visibility:hidden}
/* The YouTube iframe sits behind an opening in the WebGL television surface.
   The depth buffer keeps the frame, furniture and avatar in front of it. */
#tv-layer{position:absolute;inset:0;z-index:0;pointer-events:none}
#world>canvas{position:relative;z-index:1}
.youtube-screen{width:960px;height:533.3333px;background:#000;backface-visibility:hidden;pointer-events:none!important}
.youtube-screen iframe{display:block;width:100%;height:100%;border:0;pointer-events:none}
#tv-controls{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:86px;z-index:5;display:flex;gap:8px;align-items:center}
#tv-controls .mc-button{font-size:12px;min-height:34px;padding-inline:10px}
#tv-notice{font:12px/1.4 var(--text);padding:7px 10px;background:var(--gui);color:var(--ink);border:1px solid var(--line)}
body.reading #tv-controls,body.phone-on #tv-controls{display:none}
@media(max-width:720px){#tv-controls{bottom:160px;right:12px;flex-wrap:wrap;justify-content:flex-end;max-width:220px}}
