/* 또나 app UI. Every phone screen is built from the tokens and components in this file.
   Type (px): 26 display / 20 title / 17 lead / 15 body / 13 meta / 11 cap. Weights 700, 600, 400.
   Spacing in multiples of 4, screen margin 16-20, one accent color, touch targets at least 44px. */
@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css");

.ph {
  --bg: #18181c; --surface: #26262b; --line: #34343b;
  --t1: #fff; --t2: #a3a3ab; --t3: #74747d;
  --accent: #ff5a1f; --on-accent: #fff;
  width: 360px; height: 760px; flex: none; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 10px solid #050506; border-radius: 52px;
  background: var(--bg); color: var(--t1);
  font: 400 15px/1.5 "Wanted Sans Variable", -apple-system, "Apple SD Gothic Neo", sans-serif;
  text-align: left; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
.ph * { box-sizing: border-box; margin: 0; }
.ph.dark { --bg: #0f0f12; --surface: #1e1e23; }
/* The world is asleep (00-07): a bluer, darker screen */
.ph.night { --bg: #0d0f1a; --surface: #1a1d2e; --line: #272b40; --t2: #9aa0b8; --t3: #686e88; }

/* ---- type ---- */
.display { font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -0.03em; }
.title { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.lead { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.meta { font-size: 13px; line-height: 1.45; color: var(--t2); }
.cap { font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.02em; color: var(--t3); }
.old { font-size: 15px; color: var(--t3); text-decoration: line-through; }
.accent { color: var(--accent); }
.sec { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

/* ---- frame ---- */
.sb { flex: none; height: 44px; padding: 0 28px 0 30px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; }
.sb i { width: 26px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .9; position: relative; }
.sb i::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: currentColor; border-radius: 1.5px; }
.bar { flex: none; height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 8px; }
.bar .act { margin-left: auto; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--t2); }
.body { flex: 1; min-height: 0; padding: 4px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.feed { flex: 1; min-height: 0; overflow: hidden; padding: 4px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.foot { flex: none; padding: 12px 20px 4px; display: grid; gap: 8px; }
.home-ind { flex: none; height: 22px; display: grid; place-items: center; }
.home-ind::after { content: ""; width: 124px; height: 5px; border-radius: 3px; background: var(--t1); }
.push { margin-top: auto; }
.stack { display: grid; gap: 8px; }
.row { min-height: 48px; display: flex; align-items: center; gap: 12px; }
.row > div { flex: 1; min-width: 0; }
.row.go::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--t3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.rows > .row + .row { border-top: 1px solid var(--line); }
.card { padding: 16px; border-radius: 24px; background: var(--surface); }
.list { padding: 4px 16px; border-radius: 24px; background: var(--surface); }

/* ---- round icon buttons and the top bars ---- */
.ic { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.ic::before { content: ""; width: 22px; height: 22px; background: var(--t1); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic.back { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5 8 12l6.5 6.5'/%3E%3C/svg%3E"); margin-left: 4px; } .ic.exit { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.5H5.5v15H14'/%3E%3Cpath d='M10.5 12h9.5M16.5 8.5L20 12l-3.5 3.5'/%3E%3C/svg%3E"); } .ic.share { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M8 8l4-4 4 4'/%3E%3Cpath d='M5 13v6h14v-6'/%3E%3C/svg%3E"); } .ic.bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.5V11a6 6 0 0 1 12 0v5.5l1.5 2h-15z' fill='black'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }
.dot::after { content: ""; position: absolute; right: 1px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px var(--bg); }
.right { margin-left: auto; }
.top { flex: none; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -0.05em; }
.wname { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
/* World clock: day number, part of the day, and the world's state */
.state { height: 28px; padding: 0 10px; border-radius: 14px; background: var(--surface); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t2); }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.state.sleep::before { width: 12px; height: 12px; border-radius: 0; background: var(--t2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14.5A7.5 7.5 0 0 1 9.5 5a7.5 7.5 0 1 0 9.5 9.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14.5A7.5 7.5 0 0 1 9.5 5a7.5 7.5 0 1 0 9.5 9.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
.state.paused { background: var(--t1); color: #18181c; }
.state.paused::before { width: 12px; height: 12px; border-radius: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6v12M15 6v12'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6v12M15 6v12'/%3E%3C/svg%3E") center / contain no-repeat; }
.state.open::before { background: var(--accent); }

/* ---- controls ---- */
.btn { height: 48px; width: 100%; padding: 0 20px; border-radius: 24px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; }
.btn.plain { background: var(--surface); color: var(--t1); }
.btn.left { justify-content: flex-start; }
.btn.sm { width: auto; height: 36px; padding: 0 14px; border-radius: 18px; font-size: 13px; }
.card .btn.plain { background: var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ico { flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11h-8.5L7 19.5V16H4z'/%3E%3Cpath d='M8.5 9.5h7M8.5 12.5h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11h-8.5L7 19.5V16H4z'/%3E%3Cpath d='M8.5 9.5h7M8.5 12.5h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.dots { margin-left: auto; display: flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }
.dots i.on { opacity: 1; }
.opt { min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.opt.on { border-color: var(--t1); background: var(--surface); font-weight: 600; }
.opt.on::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.composer { height: 48px; padding: 0 6px 0 18px; border-radius: 24px; background: var(--surface); display: flex; align-items: center; gap: 8px; font-size: 15px; }
.composer span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.send::before { content: ""; width: 18px; height: 18px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sug { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 17px; display: inline-flex; align-items: center; font-size: 13px; color: var(--t2); }
.sug.on { border-color: var(--t1); background: var(--t1); color: #18181c; font-weight: 600; }
.chip { height: 24px; padding: 0 9px; border-radius: 12px; background: var(--line); display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--t2); white-space: nowrap; }
.chip.hot { background: var(--accent); color: #fff; }
.prog { flex: 1; display: flex; gap: 4px; }
.prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.prog i.on { background: var(--t1); }
/* Floating whisper button; the dots are the free whispers left */
/* The whisper bar: part of the layout above the tabs, never floating over the feed */
.wbar { flex: none; margin: 6px 12px 8px; height: 44px; padding: 0 6px 0 16px; border-radius: 22px; background: var(--surface); color: var(--t3); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.wbar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbar .dots { color: var(--accent); }
.wbar.on { color: var(--t1); box-shadow: inset 0 0 0 1.5px var(--t1); }
.wfocus { flex: none; max-height: 180px; padding: 12px 16px 4px; border-top: 1px solid var(--line); display: grid; gap: 10px; overflow: hidden; }
.wfocus .cap span { color: var(--t1); }
.wfocus .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.coach { position: relative; padding: 10px 14px; border-radius: 16px; background: var(--t1); color: #18181c; font-size: 13px; font-weight: 600; line-height: 1.4; }
.coach::after { content: ""; position: absolute; right: 36px; bottom: -5px; width: 12px; height: 12px; rotate: 45deg; background: inherit; }
.coach.float { position: absolute; right: 16px; bottom: 120px; z-index: 6; }

/* ---- people ---- */
.av { width: 32px; height: 32px; flex: none; display: block; border-radius: 50%; background: var(--surface) center / cover; font-size: 0; }
.av.s { width: 24px; height: 24px; } .av.m { width: 44px; height: 44px; } .av.l { width: 56px; height: 56px; } .av.xl { width: 84px; height: 84px; }
.jisu { background-image: url(img/avatar-jisu.jpg?v=b1f12a58); } .haeun { background-image: url(img/avatar-haeun.jpg?v=91a8c740); }
.doyun { background-image: url(img/avatar-doyun.jpg?v=a089fb8c); } .seoa { background-image: url(img/avatar-seoa.jpg?v=2e48ecde); }
/* AI resident: no face of its own, a plain disc */
.npc { position: relative; background-image: url(img/avatar-npc1.jpg?v=7ba2e178); } .npc.n2 { background-image: url(img/avatar-npc2.jpg?v=78dd7041); } .npc.n3 { background-image: url(img/avatar-npc3.jpg?v=abc6bb37); }
/* AI residents keep a visible mark wherever they appear, even without a name label */
.npc::after { content: "AI"; position: absolute; right: -3px; bottom: -3px; padding: 0 4px; border-radius: 6px; background: #18181c; color: #fff; font-size: 9px; font-weight: 800; line-height: 14px; }
.faces { display: flex; }
.faces .av { box-shadow: 0 0 0 2px var(--surface); }
.faces .av + .av { margin-left: -8px; }
.slot { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1.5px dashed var(--t3); }

/* ---- pictures ---- */
.pic { position: relative; flex: none; border-radius: 20px; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb { width: 64px; height: 64px; flex: none; border-radius: 16px; object-fit: cover; }

/* ---- feed: text-first items, pictures only for scenes ---- */
.item { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 4px 0; }
.item .who { display: flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; }
.item .who small { font-size: 12px; font-weight: 500; color: var(--t3); }
.item p { font-size: 15px; }
.thought { margin-top: 6px; padding: 8px 12px; border-radius: 14px; background: var(--surface); font-size: 14px; color: var(--t2); }
.thought::before { content: "속마음  "; font-size: 11px; font-weight: 700; color: var(--t3); }
.en .thought::before { content: "Thinking  "; }
.sys { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--t3); }
.sys::before, .sys::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sys.seen { color: var(--accent); }
.sys.seen::before, .sys.seen::after { background: rgb(255 90 31 / .4); }
.scene { flex: none; border-radius: 20px; background: var(--surface); overflow: hidden; }
.scene .pic { border-radius: 0; aspect-ratio: 16 / 8; }
.scene > div:last-child { padding: 12px 14px 14px; display: grid; gap: 4px; }

/* ---- next event: what, when, how long ---- */
.event { flex: none; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(100deg, var(--surface), #3a2218); display: flex; align-items: center; gap: 12px; }
.event > div { flex: 1; min-width: 0; }
.timer { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--t1); color: #18181c; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.event.paused { background: var(--surface); }
.event.paused .timer { background: var(--line); color: var(--t2); }

/* ---- worlds ---- */
.wcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--surface); }
.wcard > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.big { flex: none; border-radius: 24px; background: var(--surface); overflow: hidden; }
.big .pic { border-radius: 0; aspect-ratio: 16 / 9; }
.big > div:last-child { padding: 14px 16px 16px; display: grid; gap: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- members and suspicion ---- */
.mem { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 8px 0; }
.mem b { display: block; font-size: 15px; font-weight: 600; }

/* ---- top-view map: where everyone is, live ----
   .world keeps the picture's 3:2 shape and is centred in whatever frame holds it, so a pin at x %, y %
   always lands on the same spot of the picture even when a tall frame crops the sides. */
.mapview { position: relative; flex: none; height: 300px; overflow: hidden; background: #f6dfb3; }
.mapview.card { height: auto; aspect-ratio: 3 / 2; border-radius: 20px; }
.mapview.big { height: 400px; }
.world { position: absolute; top: 0; bottom: 0; left: 50%; translate: -50% 0; aspect-ratio: 3 / 2; background: url(img/map-school.jpg?v=799043b1) center / 100% 100%; }
.mapview.night .world::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #1b2350; mix-blend-mode: multiply; opacity: .72; }
.mapview.paused .world { filter: grayscale(.85); }
.world svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.world line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.world .trail { stroke: var(--accent); stroke-dasharray: 2 6; }
.world .trust { stroke: #2fb457; } .world .wary { stroke: var(--accent); } .world .cold { stroke: #6e6e78; stroke-dasharray: 5 5; }
.rel { position: absolute; z-index: 2; translate: -50% -50%; height: 20px; padding: 0 8px; border-radius: 10px; background: rgb(20 20 24 / .86); display: flex; align-items: center; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rel.trust { color: #6ee38f; } .rel.wary { color: #ff8a5c; } .rel.cold { color: #c4c4cc; }
/* A scene just happened here */
.ripple { position: absolute; z-index: 1; width: 64px; height: 64px; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2.2s ease-out infinite; }
.ripple::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2.2s 1.1s ease-out infinite; }
@keyframes ripple { from { scale: .3; opacity: 1; } to { scale: 1.6; opacity: 0; } }
.pin { position: absolute; z-index: 3; translate: -50% -50%; display: grid; justify-items: center; gap: 3px; transition: left 1.2s ease, top 1.2s ease; }
.pin .av { width: 36px; height: 36px; box-shadow: 0 0 0 2.5px #fff, 0 4px 10px rgb(0 0 0 / .25); animation: bob 2.6s ease-in-out infinite; }
.pin:nth-child(odd) .av { animation-delay: -1.3s; }
@keyframes bob { 50% { translate: 0 -3px; } }
.pin.me .av { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--accent), 0 4px 10px rgb(0 0 0 / .25); }
.pin small { padding: 1px 7px; border-radius: 8px; background: rgb(255 255 255 / .95); color: #18181c; font-size: 10px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.pin.me small, .pin.hot small { background: var(--accent); color: #fff; }
.pin .say { position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; width: max-content; max-width: 150px; padding: 5px 9px; border-radius: 12px; background: #fff; color: #18181c; font-size: 11px; line-height: 1.35; box-shadow: 0 4px 12px rgb(0 0 0 / .18); }
.mapview.card .pin .av { width: 28px; height: 28px; }
.mapview .live { position: absolute; left: 12px; top: 12px; z-index: 4; height: 26px; padding: 0 10px; border-radius: 13px; background: rgb(20 20 24 / .84); color: #fff; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.mapview .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.mapview.night .live::before { background: #9aa0b8; } .mapview.paused .live::before { background: #fff; }
.mapview .open { position: absolute; right: 12px; top: 12px; z-index: 4; height: 26px; padding: 0 10px; border-radius: 13px; background: rgb(20 20 24 / .84); color: #fff; display: flex; align-items: center; font-size: 11px; font-weight: 700; }
/* Where / Relationships switch on the full map */
.seg { position: absolute; left: 50%; top: 12px; z-index: 4; translate: -50% 0; padding: 3px; border-radius: 16px; background: rgb(20 20 24 / .84); display: flex; }
.seg span { height: 26px; padding: 0 14px; border-radius: 13px; display: flex; align-items: center; font-size: 12px; font-weight: 700; color: #c4c4cc; }
.seg .on { background: #fff; color: #18181c; }
@media (prefers-reduced-motion: reduce) { .pin .av, .ripple, .ripple::after { animation: none; } }

/* ---- home: the map fills the top, the feed rises over it as a sheet ---- */
.home { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; }
/* Below the whisper button (z-index 6) so the button floats over the feed */
.sheet2 { flex: 1; min-height: 0; position: relative; z-index: 5; margin-top: -22px; padding: 8px 16px 0; border-radius: 24px 24px 0 0; background: var(--bg); box-shadow: 0 -8px 24px rgb(0 0 0 / .3); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.grab { flex: none; align-self: center; width: 36px; height: 5px; border-radius: 3px; background: var(--line); }

/* ---- day progress ---- */

/* ---- tab bars: lobby (2) and in-world (4), icons only ---- */
.tabs { flex: none; height: 56px; border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; place-items: center; color: var(--t3); }
.tabs > span { position: relative; width: 30px; height: 30px; display: grid; place-items: center; }
.tabs > span:not(.face)::before { content: ""; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.tabs .t-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7v8.5a.5.5 0 0 1-.5.5H14v-6h-4v6H4.5a.5.5 0 0 1-.5-.5z' fill='black'/%3E%3C/svg%3E"); } .tabs .t-explore { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); } .tabs .t-goal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='black'/%3E%3C/svg%3E"); } .tabs .t-alerts { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.5V11a6 6 0 0 1 12 0v5.5l1.5 2h-15z' fill='black'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); } .tabs .t-members { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3.2' fill='black'/%3E%3Cpath d='M3 19.5c0-3.3 2.7-5.5 6-5.5s6 2.2 6 5.5z' fill='black'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M17.5 14.2c2.2.4 3.5 2.2 3.5 4.8'/%3E%3C/svg%3E"); }
.tabs .on { color: var(--t1); }
.tabs .face .av { width: 28px; height: 28px; }
.tabs .face.on .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--t1); }

/* ---- bottom sheet ---- */
.scrim { position: absolute; inset: 0; z-index: 6; background: rgb(0 0 0 / .6); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; padding: 24px 20px 0; border-radius: 28px 28px 0 0; background: var(--surface); display: grid; gap: 14px; }
.sheet .opt { border-color: var(--line); }
.sheet .opt.on { background: var(--bg); }

/* ---- profile ---- */
.cover { flex: none; height: 140px; background: linear-gradient(110deg, #4a2414, #1d2440); }
.me-face { margin: -42px 20px 0; }
.me-face .av { box-shadow: 0 0 0 5px var(--bg); }

/* ---- lock screen ---- */
.clock { margin: 36px 0 4px; text-align: center; font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.date { text-align: center; font-size: 15px; font-weight: 600; color: var(--t2); margin-bottom: 20px; }
.notice { padding: 12px 14px; border-radius: 22px; background: var(--surface); display: flex; align-items: flex-start; gap: 12px; }
.notice .app { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; letter-spacing: -0.05em; }
