/* TypeWeb/kit/web.css — web-only extras on top of kit/tool.css: the "All toys" link and a phone layout. */
#webHome {
  position: fixed; top: 10px; left: 12px; z-index: 5; color: var(--dim); text-decoration: none; font-size: 12px;
  padding: 4px 9px; border-radius: 6px; background: rgba(34,34,37,.85); border: 1px solid var(--line);
}
#webHome:hover { color: var(--text); }

/* Narrow screens: picture on top, panel underneath, page scrolls. */
@media (max-width: 820px) {
  body { flex-direction: column; overflow: auto; height: auto; min-height: 100%; }
  #stage { flex: none; height: 46vh; padding: 44px 10px 30px; }
  #panel { width: 100%; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  #recbar { flex-wrap: wrap; }
}

/* ---- web-ux.js: looks, simple panel, tip, coffee ---- */
.wx-looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.wx-look { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; text-align: left; }
.wx-look.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.wx-strip { display: flex; height: 14px; border-radius: 4px; overflow: hidden; }
.wx-strip i { flex: 1; }
.wx-name { font-size: 15px; line-height: 1.1; }
.wx-tools { display: flex; gap: 6px; margin-top: 8px; }
.wx-surprise { flex: 1; background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
.wx-surprise:hover { background: #ffe27a; }
body.wx:not(.wx-all) .wx-adv { display: none !important; }
.wx-moreRow { padding: 10px 16px 0; }
.wx-more { width: 100%; padding: 8px; color: var(--dim); }
.wx-tip { position: absolute; right: 8px; top: -30px; background: var(--accent); color: #111; font-weight: 600; font-size: 12px;
  padding: 5px 10px; border-radius: 8px; pointer-events: none; animation: wx-bob 1.6s ease-in-out infinite; }
.wx-tip::after { content: ""; position: absolute; right: 22px; bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--accent); }
@keyframes wx-bob { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .wx-tip { animation: none; } }
.wx-coffeeRow { padding: 0 16px 8px; }
a.coffee { display: inline-block; color: #111; background: #ffdd00; font-weight: 600; text-decoration: none; padding: 4px 10px; border-radius: 6px; font-size: 12px; }
a.coffee:hover { background: #ffe94d; }
a.coffee-inline { color: var(--accent); }

/* bigger touch targets on phones */
@media (pointer: coarse) {
  button, select { min-height: 38px; }
  input[type=range] { height: 28px; }
}
