/* The café homepage (/). The room is one box sized in container units (cqw)
   so everything scales together; below 720px it gives way to lists. */

.cafe-hero { text-align: center; padding: 34px 0 4px; }
.cafe-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.cafe-hero h1 em { font-style: normal; color: var(--acid); }
.cafe-hero .lede { color: var(--dim); margin: 12px auto 0; font-size: 16.5px; max-width: 560px; }
.cafe-hero .herobtns { margin-top: 18px; }

.scene-wrap { margin-top: 24px; }
.scene-note { color: var(--faint); font-size: 12.5px; margin-top: 10px; text-align: center; }
.scene-note b { color: var(--gold); }

/* ---------------------------------------------------------------- room */
.cafe {
  --wood: #3a2618; --wood2: #33210f; --wall: #17312c; --wall2: #12271f; --trim: #5a3a22;
  position: relative; aspect-ratio: 1000 / 620; container-type: inline-size;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line2);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 4px rgba(0,0,0,.25);
  background:
    radial-gradient(ellipse 40% 30% at 30% 55%, rgba(255,190,110,.10), transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 55%, rgba(255,190,110,.10), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 calc(12.5cqw - 2px), rgba(0,0,0,.28) calc(12.5cqw - 2px) 12.5cqw),
    repeating-linear-gradient(0deg, var(--wood) 0 3cqw, var(--wood2) 3cqw 3.2cqw);
  user-select: none;
}
.cafe button, .cafe a { font: inherit; color: inherit; }
.cafe :focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; border-radius: 10px; }

/* back wall */
.wall { position: absolute; left: 0; right: 0; top: 0; height: 19%;
  background: linear-gradient(var(--wall), var(--wall2)); border-bottom: .8cqw solid var(--trim);
  box-shadow: 0 .6cqw 1.2cqw rgba(0,0,0,.35); }
.win { position: absolute; top: 14%; width: 9cqw; height: 58%; border: .5cqw solid var(--trim); border-radius: .4cqw;
  background: linear-gradient(160deg, #2f5b74 0%, #1d3a4f 60%, #f0b56b 140%); box-shadow: inset 0 0 2cqw rgba(255,210,140,.25); }
.win::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: .4cqw; background: var(--trim); transform: translateX(-50%); }
.win.w1 { left: 27%; } .win.w2 { left: 64%; } .win.w3 { left: 76%; }
.lamp { position: absolute; top: 0; width: 2.2cqw; height: 2.2cqw; border-radius: 0 0 1.2cqw 1.2cqw; background: #f4c46a;
  box-shadow: 0 0 4cqw 2cqw rgba(255,200,110,.18); }
.lamp::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: .2cqw; height: 3cqw; background: #222; }
.lamp.l1 { left: 24%; top: 8%; } .lamp.l2 { left: 49%; top: 4%; } .lamp.l3 { left: 74%; top: 8%; }

.floor-rug { position: absolute; border-radius: 50%; background:
  repeating-radial-gradient(circle, rgba(182,255,46,.06) 0 1cqw, rgba(0,0,0,.08) 1cqw 2cqw), #4a2a2a; opacity: .55; }
.floor-rug.r1 { left: 30%; top: 64%; width: 25%; height: 30%; }
.floor-rug.r2 { left: 30%; top: 30%; width: 25%; height: 26%; background: repeating-radial-gradient(circle, rgba(82,180,255,.07) 0 1cqw, rgba(0,0,0,.08) 1cqw 2cqw), #233344; }

/* objects */
.obj { position: absolute; cursor: pointer; transition: transform .15s, filter .15s; }
.obj:hover { transform: translateY(-.3cqw); filter: brightness(1.12); }
.obj-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, .4cqw); white-space: nowrap;
  font-size: clamp(10px, 1.15cqw, 13px); font-weight: 800; color: var(--text); background: rgba(7,9,10,.78);
  border: 1px solid var(--line2); border-radius: 99px; padding: .15em .7em; pointer-events: none; }
.obj-label b { color: var(--gold); }

.board { left: 8%; top: 3%; width: 15%; height: 12%; background: #a87a4a; border: .5cqw solid var(--trim); border-radius: .4cqw;
  box-shadow: inset 0 0 0 .2cqw rgba(0,0,0,.2); }
.board .pins { position: absolute; inset: 12%; display: flex; flex-wrap: wrap; gap: .5cqw; align-content: flex-start; }
.board .pins i { width: 3cqw; height: 2.4cqw; background: #f5ecd0; box-shadow: 0 .2cqw 0 rgba(0,0,0,.25); position: relative; }
.board .pins i:nth-child(3n+2) { background: #ffd977; } .board .pins i:nth-child(3n) { background: #c9f2a0; }
.board .pins i::before { content: ''; position: absolute; left: 50%; top: -.3cqw; width: .6cqw; height: .6cqw; border-radius: 50%; background: var(--red); transform: translateX(-50%); }
.board .obj-label { top: auto; bottom: -24%; }

.counter { left: 38%; top: 13%; width: 24%; height: 9%; border-radius: .6cqw; background: linear-gradient(#6b4528, #4a2d18);
  border-top: .7cqw solid #8a5d36; box-shadow: 0 .8cqw 1.4cqw rgba(0,0,0,.4); }
.espresso { position: absolute; left: 10%; top: -70%; width: 6cqw; height: 4.5cqw; background: #c9cfd3; border-radius: .4cqw .4cqw 0 0;
  box-shadow: inset 0 -1cqw 0 #8f979c; }
.espresso i { position: absolute; bottom: 100%; width: .5cqw; height: 1.6cqw; border-radius: 50%; background: rgba(255,255,255,.35);
  animation: steam 2.6s ease-in infinite; }
.espresso i:nth-child(1) { left: 25%; } .espresso i:nth-child(2) { left: 50%; animation-delay: .9s; } .espresso i:nth-child(3) { left: 72%; animation-delay: 1.7s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(0) scaleX(1) } 30% { opacity: .9 } 100% { opacity: 0; transform: translateY(-2.4cqw) scaleX(1.8) } }
.cups { position: absolute; right: 12%; top: -40%; width: 7cqw; height: 2cqw;
  background: radial-gradient(circle at 15% 60%, #f3ead8 0 .8cqw, transparent .85cqw), radial-gradient(circle at 50% 60%, #f3ead8 0 .8cqw, transparent .85cqw), radial-gradient(circle at 85% 60%, #f3ead8 0 .8cqw, transparent .85cqw); }

.shelf { left: 1.2%; top: 25%; width: 6.5%; height: 40%; background: #5a3a22; border: .4cqw solid #3d2614; border-radius: .3cqw; }
.books { position: absolute; inset: 4% 8%; background:
  linear-gradient(transparent 31%, #3d2614 31% 34%, transparent 34% 64%, #3d2614 64% 67%, transparent 67%),
  repeating-linear-gradient(90deg, #c94f4f 0 .9cqw, #e0b84a .9cqw 1.6cqw, #4f8fe0 1.6cqw 2.4cqw, #2fb37f 2.4cqw 3.1cqw, #b06ae0 3.1cqw 3.8cqw); }
.shelf .obj-label { top: 101%; }

.arcade { left: 79%; top: 21%; width: 19%; height: 18%; display: flex; gap: .8cqw; justify-content: center; align-items: flex-end; }
.cab { width: 4.6cqw; height: 9cqw; background: linear-gradient(#2b2350, #1a1533); border-radius: .6cqw .6cqw .2cqw .2cqw; position: relative;
  border: .25cqw solid #3d3270; box-shadow: 0 .6cqw 1cqw rgba(0,0,0,.45); }
.cab i { position: absolute; left: 12%; right: 12%; top: 14%; height: 36%; border-radius: .3cqw; background: #0b1a10;
  box-shadow: 0 0 1.4cqw rgba(182,255,46,.5); animation: screen 1.6s steps(2) infinite; }
.cab:nth-child(2) i { animation-delay: .5s; background: #16102b; box-shadow: 0 0 1.4cqw rgba(199,146,255,.55); }
.cab:nth-child(3) i { animation-delay: 1s; background: #1d140a; box-shadow: 0 0 1.4cqw rgba(255,207,77,.5); }
@keyframes screen { 0% { filter: brightness(1) } 50% { filter: brightness(1.7) } }
.arcade-faces { position: absolute; top: -2cqw; right: 0; display: flex; }
.arcade-faces .ava { margin-left: -.5cqw; box-shadow: 0 0 0 2px var(--bg); }

.door { left: 43%; bottom: 0; width: 14%; height: 6%; background: #2a1a0e; border-radius: .6cqw .6cqw 0 0; border: .3cqw solid var(--trim); border-bottom: 0; }
.door .mat { position: absolute; inset: 18% 10% 0; background: var(--acid); color: #0f1600; border-radius: .3cqw .3cqw 0 0;
  font-size: clamp(9px, 1.1cqw, 13px); font-weight: 900; display: grid; place-items: center; white-space: nowrap; }

.plant { position: absolute; width: 4cqw; height: 5cqw; pointer-events: none; background:
  radial-gradient(circle at 50% 30%, #3aa35a 0 1.4cqw, transparent 1.45cqw), radial-gradient(circle at 25% 45%, #2f8b4b 0 1.2cqw, transparent 1.25cqw),
  radial-gradient(circle at 75% 45%, #2f8b4b 0 1.2cqw, transparent 1.25cqw), linear-gradient(transparent 60%, #a0522d 60% 100%);
  background-size: 100% 100%; border-radius: 0 0 .6cqw .6cqw; }
.plant.p1 { left: 1.5%; top: 80%; } .plant.p2 { right: 1.5%; top: 82%; }

/* tables */
.ct { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 2; }
.ct-ring { position: relative; width: 12cqw; height: 12cqw; display: block; }
.ct-top { position: absolute; inset: 22%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #a77446, #7b5030 70%); border: .35cqw solid #4d2f19;
  box-shadow: 0 .9cqw 1.2cqw rgba(0,0,0,.45), inset 0 0 0 .3cqw rgba(255,255,255,.06); transition: transform .15s, box-shadow .15s; }
.ct-top span { font-size: 3cqw; line-height: 1; filter: drop-shadow(0 .2cqw 0 rgba(0,0,0,.3)); }
.ct:hover .ct-top, .ct:focus-visible .ct-top { transform: scale(1.06); box-shadow: 0 0 0 .4cqw var(--acid), 0 .9cqw 1.6cqw rgba(0,0,0,.5); }
.ct.c-gold:hover .ct-top { box-shadow: 0 0 0 .4cqw var(--gold), 0 .9cqw 1.6cqw rgba(0,0,0,.5); }
.ct.c-purple:hover .ct-top { box-shadow: 0 0 0 .4cqw var(--purple), 0 .9cqw 1.6cqw rgba(0,0,0,.5); }
.ct.c-blue:hover .ct-top { box-shadow: 0 0 0 .4cqw var(--blue), 0 .9cqw 1.6cqw rgba(0,0,0,.5); }
.ct.stage .ct-ring { width: 14cqw; height: 14cqw; }
.ct.stage .ct-top { background: radial-gradient(circle at 35% 30%, #6c4fa0, #3f2d63 70%); border-color: #2a1d45; }
.chair { position: absolute; left: 50%; top: 50%; width: 2.8cqw; height: 2.8cqw; margin: -1.4cqw 0 0 -1.4cqw; border-radius: .7cqw;
  background: #5d3a20; border: .2cqw solid #3d2614; transform: rotate(var(--a)) translateX(4.9cqw) rotate(calc(-1 * var(--a))); display: grid; place-items: center; }
.ct.stage .chair { transform: rotate(var(--a)) translateX(5.8cqw) rotate(calc(-1 * var(--a))); }
.chair.on { background: transparent; border-color: transparent; }
.chair .ava { --s: 2.8cqw !important; width: 2.8cqw; height: 2.8cqw; font-size: 1cqw; box-shadow: 0 0 0 .25cqw var(--acid); }
.ct-name { margin-top: -.6cqw; font-size: clamp(10px, 1.25cqw, 14px); font-weight: 800; background: rgba(7,9,10,.82); border: 1px solid var(--line2);
  border-radius: 99px; padding: .2em .8em; white-space: nowrap; display: flex; gap: .5em; align-items: baseline; }
.ct-name small { color: var(--dim); font-weight: 600; font-size: .85em; }

/* regulars */
.rg { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 3;
  transition: left 4s linear, top 4s linear; }
.rg-body { display: block; animation: bob 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.rg-body .sprite { width: 3.6cqw; height: 4.8cqw; display: block; filter: drop-shadow(0 .3cqw 0 rgba(0,0,0,.35)); }
.rg-body.flip .sprite { transform: scaleX(-1); }
.rg.walking .rg-body { animation: walk .35s steps(2) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-.25cqw) } }
@keyframes walk { 0% { transform: translateY(0) } 50% { transform: translateY(-.35cqw) } }
.rg-name { font-size: clamp(9px, 1cqw, 12px); font-weight: 800; color: var(--gold); background: rgba(7,9,10,.75); border-radius: 99px; padding: 0 .55em;
  opacity: 0; transform: translateY(-.2cqw); transition: opacity .15s; white-space: nowrap; }
.rg:hover .rg-name, .rg:focus-visible .rg-name { opacity: 1; }
.rg:hover .rg-body { filter: brightness(1.2); }

/* speech bubbles */
.bubble { position: absolute; transform: translate(-50%, -100%); z-index: 6; max-width: 26cqw; width: max-content;
  font-size: clamp(10.5px, 1.2cqw, 14px); line-height: 1.35; color: #1b1b1b; background: #fbf6ea; border-radius: 1cqw; padding: .55em .85em;
  box-shadow: 0 .6cqw 1.6cqw rgba(0,0,0,.45); animation: pop .25s ease-out; pointer-events: none; }
.bubble::after { content: ''; position: absolute; left: 50%; top: 100%; border: .8cqw solid transparent; border-top-color: #fbf6ea; transform: translateX(-50%); }
.bubble.left { transform: translate(-80%, -100%); } .bubble.left::after { left: 80%; }
.bubble b { color: #5a3a22; margin-right: .25em; }
.bubble .fic-mini { font-size: .85em; }
.bubble.out { opacity: 0; transition: opacity .6s; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -90%) scale(.9) } to { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  .rg, .rg-body, .espresso i, .cab i, .bubble { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- fictional tag */
.fic { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: var(--gold);
  background: rgba(255,207,77,.08); border: 1px solid rgba(255,207,77,.35); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.fic-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 4px; vertical-align: middle; }

/* ---------------------------------------------------------------- lists */
.tlist-wrap { display: none; }
.tlist { display: flex; flex-direction: column; gap: 8px; }
.trow { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.trow:hover { border-color: var(--acid); }
.trow .te { font-size: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #a77446, #7b5030 70%); }
.trow .tb { flex: 1; min-width: 0; }
.trow .tb b { display: block; font-size: 15.5px; }
.trow .tb small { display: block; color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .tf { display: flex; align-items: center; gap: 2px; flex: none; }
.mini-sprite { display: inline-flex; }
.mini-sprite .sprite { display: block; }

.people { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.person { flex: none; width: 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px 12px; }
.person:hover { border-color: var(--acid); }
.person b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { color: var(--dim); font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.person .ps { height: 44px; display: flex; align-items: flex-end; }
.person.reg { background: linear-gradient(var(--panel), rgba(255,207,77,.04)); border-style: dashed; border-color: rgba(255,207,77,.28); }
.person.reg:hover { border-color: var(--gold); }
.person .fic { font-size: 10.5px; padding: 1px 7px; }
.person.you { border-style: dashed; border-color: rgba(182,255,46,.4); }
.person .plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 900;
  color: var(--acid); border: 2px dashed rgba(182,255,46,.5); }

/* ---------------------------------------------------------------- dialogs */
.dl-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-h .fic { letter-spacing: 0; text-transform: none; }
.dl-people { display: flex; flex-direction: column; gap: 8px; }
.dl-people a { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dl-people small { display: block; color: var(--dim); font-weight: 500; font-size: 12.5px; }
.dl-last { margin-top: 10px; font-size: 14px; color: var(--dim); background: var(--panel2); border-radius: 10px; padding: 8px 12px; }
.dl-last b { color: var(--text); } .dl-last time { color: var(--faint); font-size: 12px; }
.dl-regs { display: flex; flex-direction: column; gap: 6px; }
.dl-regs button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px dashed rgba(255,207,77,.28); }
.dl-regs button:hover { border-color: var(--gold); }
.dl-regs small { display: block; color: var(--dim); font-size: 12.5px; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.dl-reg { display: flex; gap: 16px; align-items: center; }
.dl-sprite { width: 96px; height: 96px; border-radius: 20px; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--ink) 35%, transparent), var(--panel2)); }
.dl-reg .sub { margin: 2px 0 8px; }
.dl-bio { margin-top: 14px; color: var(--text); line-height: 1.5; }
.dl-proj { margin-top: 12px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 14px; }
.dl-proj small { display: block; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.dl-proj p { color: var(--dim); font-size: 14px; margin-top: 2px; }
.dl-quote { margin-top: 12px; font-style: italic; color: var(--dim); }
.shelf-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.shelf-list li { display: flex; gap: 10px; align-items: center; }
.shelf-list small { display: block; color: var(--dim); font-size: 12.5px; }
.ov .feedlist { max-height: 50vh; overflow: auto; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 719px) {
  .scene-wrap { display: none; }
  .tlist-wrap { display: block; }
  .cafe-hero { padding-top: 22px; }
}

/* ---------------------------------------------------------------- /regulars */
.fic-banner { margin-top: 22px; background: rgba(255,207,77,.07); border: 1px solid rgba(255,207,77,.3); border-radius: 12px; padding: 12px 16px; color: var(--dim); font-size: 14px; }
.fic-banner b { color: var(--gold); }
.fic-banner a { color: var(--text); font-weight: 700; }
.reg-head { display: flex; gap: 22px; align-items: center; margin: 28px 0 18px; }
.reg-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; }
.reg-head .sub { color: var(--dim); margin: 2px 0 10px; max-width: 620px; }
.dl-sprite.big { width: 150px; height: 150px; border-radius: 28px; }
.reg-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.reg-grid .card { padding: 20px; }
.reg-grid h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.reg-lines { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; color: var(--dim); font-style: italic; }
.people.wrapgrid { flex-wrap: wrap; overflow: visible; }
@media (max-width: 719px) {
  .reg-head { flex-direction: column; align-items: flex-start; }
  .reg-grid { grid-template-columns: 1fr; }
}
.tlist.owned { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
#ownedWrap .sec { margin-top: 22px; }
@media (max-width: 719px) { #ownedWrap { display: none; } }
