/* 10-foot UI on a 3D wall: tiles sit on the inside of a cylinder and the wall turns to the focused column. */
:root{--bg:#0d0d10;--fg:#f5f5f7;--muted:#a1a1aa;--accent:#f22468;--tile:#1f1f27;
  --red:#e53935;--green:#43a047;--yellow:#fdd835;--blue:#1e88e5}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--fg);font:24px/1.4 Arial,Helvetica,sans-serif;overflow:hidden}
body{height:100vh;display:flex;flex-direction:column;padding:32px 64px}
header{display:flex;justify-content:space-between;align-items:center}
h1{font-size:40px;margin:0}
.groups{display:flex;gap:16px}
.dot{width:36px;height:36px;border-radius:50%;border:3px solid transparent;cursor:pointer;opacity:.45}
.dot.red{background:var(--red)}.dot.green{background:var(--green)}.dot.yellow{background:var(--yellow)}.dot.blue{background:var(--blue)}
.dot[aria-pressed="true"]{opacity:1;border-color:var(--fg)}

#stage{position:relative;flex:1;perspective:1300px;perspective-origin:50% 50%;overflow:hidden}
#wall{position:absolute;left:50%;top:52%;width:0;height:0;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.tile{position:absolute;display:flex;align-items:flex-end;width:280px;height:170px;padding:14px 16px;border-radius:12px;
  background:var(--tile) center/cover no-repeat;color:#fff;text-decoration:none;font-size:26px;border:0;cursor:pointer;
  text-shadow:0 2px 6px rgba(0,0,0,.85);backface-visibility:hidden;transition:transform .6s cubic-bezier(.2,.8,.2,1),box-shadow .2s}
.tile .slot{position:absolute;top:10px;right:12px;min-width:38px;height:38px;padding:0 8px;border-radius:19px;background:rgba(0,0,0,.6);
  font-size:24px;line-height:38px;text-align:center}
.tile.add{justify-content:center;align-items:center;border:3px dashed #3f3f46;background:rgba(13,13,16,.6);color:var(--muted)}
.tile:focus{outline:6px solid var(--accent);outline-offset:4px;box-shadow:0 0 60px rgba(242,36,104,.45)}
.c-news{background-color:#1d4ed8}.c-weather{background-color:#0e7490}.c-sports{background-color:#15803d}.c-music{background-color:#7e22ce}
.c-cooking{background-color:#b45309}.c-travel{background-color:#be123c}.c-science{background-color:#4338ca}.c-nature{background-color:#3f6212}
.custom{background-color:#27272a}

#favbar{display:flex;gap:12px;justify-content:center;margin:8px 0}
#favbar[hidden]{display:none}
#favbar span{padding:8px 16px;border-radius:10px;background:#18181b;border:2px solid #3f3f46;font-size:22px;color:var(--muted)}
#favbar span.on{color:var(--fg);border-color:var(--group,#3f3f46)}
#status{min-height:34px;color:var(--muted);margin:0;text-align:center}

footer{margin-top:8px}
.chip{font:inherit;padding:10px 22px;border-radius:999px;border:2px solid #3f3f46;background:transparent;color:var(--fg);cursor:pointer;margin-right:16px}
.chip.primary{background:var(--accent);border-color:var(--accent)}
.hint{color:var(--muted);font-size:18px;margin:8px 0 0}
:focus-visible{outline:6px solid var(--accent);outline-offset:4px}
dialog{background:#18181b;color:var(--fg);border:2px solid #3f3f46;border-radius:16px;padding:32px;width:min(900px,90vw)}
dialog::backdrop{background:rgba(0,0,0,.7)}
dialog label{display:block;margin:16px 0}
dialog input{display:block;width:100%;margin-top:8px;font:inherit;padding:12px;border-radius:8px;border:2px solid #3f3f46;background:#0d0d10;color:var(--fg)}
.actions{margin-top:24px}
code{word-break:break-all;font-size:20px}
.code{font:bold 96px/1.2 "Courier New",monospace;letter-spacing:.08em;text-align:center;margin:24px 0}
@media (prefers-reduced-motion: reduce){#wall,.tile{transition:none}}
