/* Every world page: the map, the pills, joining, talking, name tags and bubbles. Loaded by /demos/<world>/ and /w/<id>. */
:root { color-scheme: dark; --glass: rgba(20, 24, 20, .56); --line: rgba(255, 255, 255, .14); --ink: #F7F4EC; --muted: rgba(247, 244, 236, .72); --paper: #FFFBF2; --paper-ink: #2B241C; --gold: #F3D58B;
  /* one gutter all round, inside the phone's notch and rounded corners */
  --top: max(12px, env(safe-area-inset-top)); --left: max(12px, env(safe-area-inset-left)); --right: max(12px, env(safe-area-inset-right)); --bottom: max(16px, env(safe-area-inset-bottom)) }
* { box-sizing: border-box }
html, body { margin: 0; height: 100%; background: #1A1F19; color: var(--ink); font: 15px/1.4 Inter, system-ui, sans-serif; overflow: hidden }
button, input { font: inherit }
#realm { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; opacity: 0; transition: opacity .7s }
.poster { position: fixed; inset: -24px; background: #1A1F19 center / cover no-repeat; filter: blur(7px) saturate(1.08) brightness(.82); transform: scale(1.03); transition: opacity .9s }
body.ready #realm { opacity: 1 }
body.ready .poster { opacity: 0 }
.glass { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3) }
.pill { position: fixed; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--ink); text-decoration: none }

/* the bar along the top, one row: the way home (a back arrow, Portfloor, then the world you're in) and your own face
   on the left; who's here on the right */
.topbar { position: fixed; top: var(--top); left: var(--left); right: var(--right); z-index: 4; display: flex; align-items: center; gap: 6px; pointer-events: none }
.topbar > * { pointer-events: auto }
.topbar .pill { position: static; flex: none; height: 44px; margin: 0; padding: 0 14px; font-size: 15px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .28) }
.topbar .brand { flex: 0 1 auto; min-width: 0; padding: 0 16px 0 10px; gap: 9px; letter-spacing: -.2px; transition: background .15s }
.brand .back { flex: none; width: 20px; height: 20px; margin-right: -3px; transition: transform .15s }
.brand .wordmark { flex: none; font-weight: 800; letter-spacing: -.35px }
.brand .sep { flex: none; width: 1px; height: 16px; background: rgba(255, 255, 255, .24) }
.brand .world-name { font-weight: 500; color: var(--muted) }
.brand:hover { background: rgba(40, 46, 40, .72) }
.brand:hover .back { transform: translateX(-2px) }
.world-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
/* you: your own look in a gold ring, beside the world's name; tap to change your name and look */
.me-avatar { flex: none; width: 36px; height: 36px; margin-left: 2px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(0, 0, 0, .28); cursor: pointer; transition: transform .15s }
.me-avatar[hidden] { display: none }
.me-avatar:active { transform: scale(.94) }
.me-avatar:focus-visible { outline: 2px solid #fff; outline-offset: 3px }
.me-face { display: block; width: 100%; height: 100% }
.topbar .online { margin-left: auto; gap: 7px; color: var(--ink); cursor: pointer }
.online b { font-weight: 700 }
.online i { width: 8px; height: 8px; border-radius: 50%; background: #5BE38A; box-shadow: 0 0 0 3px rgba(91, 227, 138, .22) }
.online .more { color: var(--muted); font-weight: 600 }
.online:hover { background: rgba(40, 46, 40, .72) }
/* a phone keeps the number: "● 2" */
@media (max-width: 420px) { .topbar .more { display: none } }
.hint { left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; pointer-events: none; transition: opacity .5s }
.hint.gone, body.together .hint { opacity: 0 }
.loading { left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: 14px; transition: opacity .4s }
body.ready .loading { opacity: 0; pointer-events: none }
@media (max-width: 560px) { .hint .wide { display: none } }

/* joining: a name and a look */
.join { position: fixed; left: 50%; bottom: calc(var(--bottom) + 68px); z-index: 8; transform: translateX(-50%); width: min(380px, calc(100% - 24px)); padding: 18px; border-radius: 22px; display: grid; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .5s .3s }
body.ready .join:not([hidden]) { opacity: 1; pointer-events: auto }
.join[hidden] { display: none }
.join h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.2px }
.join p { margin: -6px 0 0; color: var(--muted); font-size: 13.5px }
.looks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px }
.looks button { display: grid; justify-items: center; gap: 2px; padding: 8px 6px 9px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .06); color: var(--muted); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s }
.looks button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: var(--ink); box-shadow: inset 0 0 0 2px #F3D58B }
.looks canvas { width: 72px; height: 96px }
.looks span { font-size: 13px; font-weight: 600 }
.join input { height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px var(--line) }
.join input:focus { box-shadow: inset 0 0 0 2px #F3D58B }
.join .go { height: 46px; border: 0; border-radius: 12px; background: #F3D58B; color: #2B241C; font-weight: 650; cursor: pointer }
.join .skip { border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 2px }

/* talking */
.chat { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px }
.chat[hidden] { display: none }
.chat .emotes { display: flex; gap: 2px }
.chat .emotes button, .chat .round { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 19px; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s }
.chat .emotes button:hover, .chat .round:hover { background: rgba(255, 255, 255, .12) }
.chat .emotes button:active { transform: scale(.9) }
.chat input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--ink); outline: none }
.chat input::placeholder { color: var(--muted) }
.chat input:disabled { opacity: .6 }
.chat .send { width: 44px; height: 44px; background: #F3D58B; color: #2B241C }
.chat .send svg { width: 20px; height: 20px }
.chat .send:hover { background: #F7DE9E }
.chat svg { width: 18px; height: 18px }
@media (max-width: 560px) { .chat .emotes button:nth-child(n+3) { display: none } }
.panel { position: fixed; z-index: 5; padding: 12px; border-radius: 16px; min-width: 170px; display: grid; gap: 8px }
.panel[hidden] { display: none }
.panel h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.panel .seg { display: flex; gap: 4px }
.panel button { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--ink); cursor: pointer; font-size: 13.5px; text-align: left }
.panel button[aria-pressed="true"] { background: #F3D58B; color: #2B241C; font-weight: 600 }
.panel .danger { color: #FFB4A8 }
.host-panel { right: calc(var(--right) + 62px); bottom: calc(var(--bottom) + 68px) }

/* name tags and speech bubbles ride above heads */
#tags { position: fixed; inset: 0; pointer-events: none; overflow: hidden }
.who { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 4px; transform-origin: 0 0; will-change: transform }
.who > * { transform: translate(-50%, -100%) }
.who { width: 0 }
.name { pointer-events: auto; border: 0; padding: 2px 8px; border-radius: 999px; background: rgba(20, 24, 20, .62); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; cursor: default; position: absolute; left: 0; top: -4px }
body.hosting .name:not(.mine) { cursor: pointer; box-shadow: 0 0 0 1px rgba(243, 213, 139, .55) }
.name.mine { background: rgba(243, 213, 139, .9); color: #2B241C }
.name.muted { text-decoration: line-through; opacity: .7 }
.bubble { position: absolute; left: 0; bottom: 28px; top: auto; transform: translate(-50%, 0); max-width: 220px; width: max-content; padding: 8px 12px; border-radius: 14px; background: var(--paper); color: var(--paper-ink); font-size: 13.5px; line-height: 1.35; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); overflow-wrap: anywhere; opacity: 0; transition: opacity .25s, transform .25s }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--paper); transform: rotate(45deg); border-radius: 2px }
.bubble.show { opacity: 1 }
.bubble.fade { opacity: 0; transform: translate(-50%, -6px) }
.pop { position: absolute; left: 0; bottom: 30px; transform: translate(-50%, 0); font-size: 30px; animation: pop 1.9s ease-out forwards }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6) } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15) } 30% { transform: translate(-50%, -6px) scale(1) } 100% { opacity: 0; transform: translate(-50%, -46px) } }
/* a short note, under the top bar (above everything, the Invite sheet too) */
.toast { position: fixed; left: 50%; top: calc(var(--top) + 58px); z-index: 40; transform: translate(-50%, -8px); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 10px 16px; border-radius: 14px; background: rgba(20, 24, 20, .88); font-size: 13.5px; text-align: center; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6) }
.toast.show { opacity: 1; transform: translate(-50%, 0) }
.toast.acting { display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 16px; border-radius: 999px; text-align: left }
.toast.show.acting { pointer-events: auto }
.toast-act { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--gold); color: #2B241C; font: 650 13px/1 Inter, system-ui, sans-serif; cursor: pointer }
.toast-act:hover { background: #F7DE9E }
/* while you aren't in: your place in the line at the door, a full world, or reconnecting; under the top bar */
.status-line { position: fixed; left: 50%; top: calc(var(--top) + 56px); z-index: 6; transform: translateX(-50%); width: max-content; max-width: min(520px, calc(100vw - 32px)); margin: 0; padding: 10px 16px; border-radius: 16px; background: rgba(18, 18, 22, .86); color: #fff; font: 600 14px/1.35 Inter, system-ui, sans-serif; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; justify-items: center; gap: 10px }
.status-act { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: #2B241C; font: 650 13.5px/36px Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap }
.status-act:hover { background: #F7DE9E }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; opacity: 1 } }

/* ---------- the controls over the map (hud.js) ---------- */
/* bottom right, just above the chat bar, as in Reels: chat and people, invite (the gold paper plane). One size
   of round button, the same space between each; their names are for screen readers and a mouse's tooltip */
.rail { position: fixed; right: var(--right); bottom: calc(var(--bottom) + 68px); z-index: 4; display: flex; flex-direction: column; gap: 12px; transition: opacity .2s }
.tray-open .rail { opacity: 0; pointer-events: none }
/* a computer: the round buttons sit in the top bar beside your face, and the panel opens under them */
.hud-top .rail { position: static; flex-direction: row; gap: 6px; margin-left: 2px }
.hud-top .rail-btn { width: 44px; height: 44px }
.hud-top.tray-open .rail { opacity: 1; pointer-events: auto }
.rail-btn { position: relative; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .28); transition: background .15s, transform .15s; -webkit-tap-highlight-color: transparent }
.rail-btn:hover { background: rgba(40, 46, 40, .72) }
.rail-btn:active { transform: scale(.93) }
.rail-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px }
.rail-btn svg { width: 22px; height: 22px }
.rail-btn.share { color: var(--gold) }
.rail-btn[aria-expanded="true"] { background: rgba(243, 213, 139, .24); box-shadow: inset 0 0 0 1.5px rgba(243, 213, 139, .75) }
/* something new in the chat: a red dot */
.unread { position: absolute; top: 4px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 2px rgba(20, 24, 20, .9) }
.unread[hidden] { display: none }

/* the panel: the conversation so far, and who is here; beside the round buttons (under them on a computer) */
.talk { position: fixed; right: calc(var(--right) + 62px); top: calc(var(--top) + 58px); bottom: calc(var(--bottom) + 68px); z-index: 5; width: 330px; display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden }
.talk[hidden] { display: none }
.hud-top .talk { left: var(--left); right: auto; top: calc(var(--top) + 56px) }
.talk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 8px 12px; border-bottom: 1px solid var(--line) }
.talk-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .07) }
.talk-tabs button { height: 30px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 13.5px/1 Inter, system-ui, sans-serif; cursor: pointer }
.talk-tabs button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: var(--ink) }
.talk-tabs b { margin-left: 4px; font-weight: 700; color: #F3D58B }
.talk-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer }
.talk-x:hover { background: rgba(255, 255, 255, .1); color: var(--ink) }
.talk-x svg { width: 17px; height: 17px }
.talk-log, .talk-people { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent }
.talk-log[hidden], .talk-people[hidden] { display: none }
.talk-empty { margin: 18px 0; text-align: center; color: var(--muted); font-size: 13.5px }
.talk-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; padding: 5px 2px; font-size: 14px; line-height: 1.4 }
.talk-line b { --h: 40; color: hsl(var(--h) 75% 72%); font-weight: 700 }
.talk-line.mine b { color: #F3D58B }
.talk-text { overflow-wrap: anywhere }
.talk-line.emote .talk-text { font-size: 17px; line-height: 1 }
.talk-line time { margin-left: auto; padding-left: 8px; font-size: 11px; color: rgba(247, 244, 236, .45) }
.talk-line.note { justify-content: center; font-size: 12.5px; color: var(--muted) }
.talk-line.note time { display: none }
.person { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 2px }
.person-face { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08) }
.person-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px }
.person-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650 }
.person-name em { flex: none; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600 }
.person-name em.host { background: rgba(243, 213, 139, .2); color: #F3D58B }
.person-act { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--ink); display: grid; place-items: center; cursor: pointer }
.person-act:hover { background: rgba(255, 255, 255, .16) }
.person-act svg { width: 16px; height: 16px }
/* the person you looked for, on the map */
.who.spot .name { animation: spot 1.6s ease-out 2 }
@keyframes spot { 0% { box-shadow: 0 0 0 0 rgba(243, 213, 139, .9) } 100% { box-shadow: 0 0 0 14px rgba(243, 213, 139, 0) } }

/* reactions */
.chat .react svg { width: 21px; height: 21px }
.tray { position: fixed; left: 50%; bottom: calc(var(--bottom) + 68px); transform: translateX(-50%); z-index: 6; display: grid; grid-template-columns: repeat(4, 74px); gap: 6px; padding: 8px; border-radius: 20px }
.tray[hidden] { display: none }
.tray button { display: grid; justify-items: center; gap: 3px; padding: 8px 4px 7px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, transform .15s }
.tray button:hover { background: rgba(255, 255, 255, .1) }
.tray button:active { transform: scale(.92) }
.tray span { font-size: 26px; line-height: 1 }
.tray small { font-size: 11px; color: var(--muted); white-space: nowrap }

/* someone typing */
.typing { position: fixed; left: 50%; bottom: calc(var(--bottom) + 66px); transform: translateX(-50%); z-index: 3; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(20, 24, 20, .62); color: var(--muted); font-size: 12.5px; white-space: nowrap; pointer-events: none }
.typing[hidden] { display: none }

/* the first-time tip */
.tip { position: fixed; left: 50%; bottom: calc(var(--bottom) + 70px); transform: translateX(-50%); z-index: 3; margin: 0; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; white-space: nowrap; pointer-events: none; transition: opacity .5s }
.tip[hidden] { display: none }
.tip.gone { opacity: 0 }

/* a box in the middle: a private room that isn't there */
.notice { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(10, 12, 10, .35) }
.notice-card { width: min(380px, calc(100% - 32px)); padding: 26px 24px 20px; border-radius: 24px; text-align: center; background: rgba(20, 24, 20, .86) }
.notice-card h2 { margin: 0 0 6px; font-size: 21px; font-weight: 750; letter-spacing: -.3px }
.notice-card p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px }
.notice-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: rgba(243, 213, 139, .16); color: #F3D58B }
.notice-icon svg { width: 24px; height: 24px }
.notice-badge { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(243, 213, 139, .2); color: #F3D58B; font-size: 11.5px; font-weight: 700; letter-spacing: .02em }
.notice-acts { display: flex; gap: 8px; justify-content: center }
.notice-card button { height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--ink); font: 650 14.5px/1 Inter, system-ui, sans-serif; cursor: pointer }
.notice-card button.primary { background: #F3D58B; color: #2B241C }
@media (max-width: 560px) { .notice { place-items: end center; padding-bottom: max(16px, env(safe-area-inset-bottom)) } .notice-acts button { flex: 1 } }


/* narrower screens: the same bar and column; the panel fills the room beside the column */
@media (max-width: 760px) {
  .talk { left: var(--left); width: auto }
}
@media (max-width: 560px) {
  .tray { grid-template-columns: repeat(4, 68px) }
  .tip { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 28px); border-radius: 16px }
}
@media (prefers-reduced-motion: reduce) { .who.spot .name { animation: none } }

/* a round button that is hidden stays hidden (the host gear only shows for the host) */
.chat .round[hidden], .pill[hidden] { display: none }
/* iPhones zoom the whole page into any field set smaller than 16px */
.chat input, .join input { font-size: 16px }

/* Invite friends: a sheet from the bottom with the link to copy and, on the shelf's worlds, your own private room */
.sheet-box { position: fixed; inset: 0; z-index: 30; background: rgba(8, 8, 10, 0); transition: background .25s }
.sheet-box.open { background: rgba(8, 8, 10, .45) }
.sheet { position: absolute; left: 50%; bottom: 0; width: min(480px, 100%); transform: translate(-50%, calc(100% + 24px)); padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: rgba(24, 26, 24, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 -18px 40px rgba(0, 0, 0, .35); transition: transform .26s cubic-bezier(.2, .8, .2, 1) }
.sheet-box.open .sheet { transform: translate(-50%, 0) }
.grab { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: rgba(255, 255, 255, .25) }
.sheet h2 { margin: 0 4px 4px; font-size: 19px; font-weight: 750; letter-spacing: -.3px }
.sheet p { margin: 0 4px 14px; color: var(--muted); font-size: 14px }
.link-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 6px 6px 6px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1) }
.link-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; -webkit-user-select: all; user-select: all }
.copy { flex: none; height: 44px; min-width: 88px; padding: 0 20px; border: 0; border-radius: 13px; background: var(--gold); color: #2B241C; font: 750 15px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s, transform .15s }
.copy:hover { background: #F7DE9E }
.copy:active { transform: scale(.96) }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 0; border-radius: 18px; color: var(--ink); text-align: left; font: inherit; cursor: pointer }
.opt.prem { background: linear-gradient(135deg, rgba(243, 213, 139, .22), rgba(243, 213, 139, .06)); box-shadow: inset 0 0 0 1px rgba(243, 213, 139, .45) }
.opt.prem:hover { background: linear-gradient(135deg, rgba(243, 213, 139, .3), rgba(243, 213, 139, .1)) }
.opt .oi { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: #2B241C }
.opt .oi svg { width: 21px; height: 21px }
.opt-words b { display: block; font-size: 15.5px; font-weight: 700 }
.opt-words span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted) }
/* on a wide screen it floats just above the bottom edge */
@media (min-width: 561px) { .sheet { bottom: 16px; border-radius: 28px; padding-bottom: 20px } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-box { transition: none } }
/* on a phone the tip and who's typing keep clear of the round buttons */
@media (max-width: 560px) { .tip, .typing { max-width: calc(100% - 148px) } .typing { overflow: hidden; text-overflow: ellipsis } }
