/* CTB — official app. One dark stage, gold light, ivory type. */

@import url("./fonts.css");

:root {
  --bg: #07070a;
  --bg-2: #0c0c11;
  --bg-3: #121218;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ivory: #f3efe6;
  --muted: #9c9a94;
  --muted-2: #6f6d68;
  --gold: #d8b568;
  --gold-2: #f0d69a;
  --gold-dim: rgba(216, 181, 104, 0.16);
  --danger: #e0614f;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --r: 18px;
  --serif: "Playfair Display", "Noto Serif KR", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ivory); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.5;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #101014; }

/* ---------------------------------------------------------------- shell */
#app {
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(216, 181, 104, 0.07), transparent 60%),
    var(--bg);
}
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 10px) 18px 10px;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.96), rgba(7, 7, 10, 0.72) 70%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand b { font-family: var(--serif); font-size: 25px; letter-spacing: 0.14em; font-weight: 700; }
.brand span { font-size: 9.5px; letter-spacing: 0.3em; color: var(--muted-2); text-transform: uppercase; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  font-size: 12px; letter-spacing: 0.04em; color: var(--ivory);
}
.icon-btn:active { transform: scale(0.96); }
.lang-btn { width: auto; padding: 0 12px; border-radius: 999px; font-size: 11px; letter-spacing: 0.12em; }

.view { display: none; animation: fade 0.35s ease both; }
.view.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wrap { padding: 0 18px; }
.sec { padding: 22px 0 6px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.sec-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head a, .sec-head button { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------------------------------------------------------------- stage */
.hero { position: relative; margin: 4px 14px 0; border-radius: 26px; overflow: hidden; background: #0b0b0f; }
.hero-img { width: 100%; height: min(74dvh, 620px); object-fit: cover; object-position: 50% 18%; }
.hero-img.breath { animation: breath 9s ease-in-out infinite; }
@keyframes breath { 0%, 100% { transform: scale(1.015); } 50% { transform: scale(1.055) translateY(-0.6%); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.18) 0%, rgba(7, 7, 10, 0) 34%, rgba(7, 7, 10, 0.82) 78%, #07070a 100%);
}
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 22px; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(216, 181, 104, 0.45); background: rgba(216, 181, 104, 0.1);
  font-size: 10px; letter-spacing: 0.14em; color: var(--gold-2); text-transform: uppercase;
}
.hero-title { font-family: var(--serif); font-size: 40px; line-height: 1.02; margin: 10px 0 6px; letter-spacing: 0.08em; }
.hero-sub { margin: 0 0 16px; color: #cfccc4; font-size: 13px; }
.hero-btns { display: flex; gap: 8px; }
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06);
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
}
.btn.gold { background: linear-gradient(135deg, #e6c887, #c69c4d); color: #17130a; border-color: transparent; font-weight: 700; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.45; }
.btn.wide { width: 100%; flex: none; }

.row-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.vcard {
  position: relative; flex: 0 0 68%; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  scroll-snap-align: start; background: #111; border: 1px solid var(--line);
}
.vcard img { width: 100%; height: 100%; object-fit: cover; }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 4, 6, 0.86)); }
.vcard .vbody { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; }
.vcard .vkind { font-size: 9.5px; letter-spacing: 0.18em; color: var(--gold-2); text-transform: uppercase; }
.vcard h3 { margin: 4px 0 0; font-size: 15px; font-weight: 700; }
.vcard p { margin: 2px 0 0; font-size: 11.5px; color: #b9b6ae; }
.play-badge {
  position: absolute; z-index: 2; right: 12px; top: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(8, 8, 11, 0.55); border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid; place-items: center; backdrop-filter: blur(6px);
}
.tri { width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qcard {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.qcard img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.qcard b { display: block; font-size: 12.5px; font-weight: 700; }
.qcard span { font-size: 10.5px; color: var(--muted); }

/* ---------------------------------------------------------------- music */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.03);
}
.chip.on { color: #17130a; background: var(--gold-2); border-color: transparent; font-weight: 700; }

.album { margin: 0 0 22px; }
.album-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 0 18px; }
.album-head img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.album-head b { font-size: 14px; }
.album-head span { display: block; font-size: 11px; color: var(--muted); }
.track {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.track:active { background: rgba(255, 255, 255, 0.03); }
.track .no { width: 18px; text-align: center; font-family: var(--serif); font-size: 12px; color: var(--muted-2); }
.track .t-info { flex: 1; min-width: 0; }
.track .t-info b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .t-info span { font-size: 11px; color: var(--muted); }
.track .t-act { display: flex; gap: 6px; align-items: center; }
.mini-play {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.04);
}
.mini-play.on { background: var(--gold-2); border-color: transparent; }
.mini-play.on .tri { border-left-color: #17130a; }
.mini-play.on .pause { display: block; }
.pause { display: none; width: 9px; height: 11px; border-left: 3px solid #17130a; border-right: 3px solid #17130a; }
.link-btn { font-size: 11px; color: var(--gold); border: 1px solid rgba(216,181,104,0.3); border-radius: 999px; padding: 5px 9px; }

.player {
  position: fixed; left: 10px; right: 10px; z-index: 45;
  bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.9); backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(140%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.player.on { transform: none; }
.player img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.player .p-info { flex: 1; min-width: 0; }
.player .p-info b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .p-info span { font-size: 10.5px; color: var(--muted); }
.player .p-bar { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.player .p-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 2px; }
.player .pv { font-size: 9px; color: var(--gold); letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- talk */
.call-card {
  position: relative; margin: 4px 18px 0; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(216, 181, 104, 0.25);
  background: #0a0a0e;
}
.call-card img { width: 100%; height: 340px; object-fit: cover; object-position: 50% 25%; }
.call-card .cc-body { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(180deg, transparent, rgba(5,5,7,0.92)); }
.call-card h3 { margin: 0 0 4px; font-size: 18px; }
.call-card p { margin: 0 0 14px; font-size: 12px; color: #c3c0b8; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 0 rgba(110,231,168,0.6); animation: pulse 1.8s infinite; margin-right: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110,231,168,0.55); } 70% { box-shadow: 0 0 0 9px rgba(110,231,168,0); } 100% { box-shadow: 0 0 0 0 rgba(110,231,168,0); } }

.qa { display: grid; gap: 10px; }
.qa-item {
  text-align: left; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035);
}
.qa-item .q { display: flex; gap: 10px; align-items: flex-start; }
.qa-item .q b { font-size: 13.5px; font-weight: 500; line-height: 1.45; flex: 1; }
.qa-item .q i { font-style: normal; color: var(--gold); font-family: var(--serif); font-size: 15px; }
.qa-item .a { margin: 10px 0 0; font-size: 12.5px; color: #c9c6be; line-height: 1.62; display: none; }
.qa-item.open .a { display: block; }
.qa-item .a .a-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pill { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; }
.pill.gold { border-color: rgba(216,181,104,0.4); color: var(--gold-2); }

/* ---------------------------------------------------------------- lounge */
.gate {
  margin: 4px 18px 0; padding: 20px; border-radius: 22px;
  border: 1px solid rgba(216, 181, 104, 0.28);
  background: radial-gradient(120% 90% at 50% 0%, rgba(216, 181, 104, 0.16), rgba(255,255,255,0.02) 60%);
}
.gate h3 { margin: 0 0 6px; font-size: 16px; }
.gate p { margin: 0 0 14px; font-size: 12px; color: #c6c3bb; }
.code-row { display: flex; gap: 8px; }
.input {
  flex: 1; min-height: 46px; padding: 0 14px; border-radius: 13px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); font-size: 14px; letter-spacing: 0.12em;
}
.input::placeholder { color: var(--muted-2); letter-spacing: 0.02em; }
textarea.input { min-height: 110px; padding: 12px 14px; line-height: 1.55; letter-spacing: 0; resize: vertical; }
.pass-badge {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(216, 181, 104, 0.4); background: rgba(216, 181, 104, 0.1); font-size: 12px;
}
.pass-badge b { color: var(--gold-2); }
.cheer { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.cheer b { font-size: 12px; color: var(--gold-2); margin-right: 8px; }
.cheer span { font-size: 10.5px; color: var(--muted-2); }
.cheer p { margin: 4px 0 0; font-size: 13px; color: #d5d2ca; line-height: 1.55; }
.notice { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.notice time { font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); }
.notice b { display: block; margin: 3px 0 4px; font-size: 13.5px; }
.notice p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }

.menu-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.menu-row b { font-size: 13.5px; font-weight: 500; }
.menu-row span { font-size: 11.5px; color: var(--muted); }
.menu-row .arrow { color: var(--muted-2); }

/* ---------------------------------------------------------------- tabbar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + var(--safe-b));
  background: rgba(9, 9, 12, 0.88); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tab { display: grid; place-items: center; gap: 3px; padding: 6px 0; color: var(--muted-2); }
.tab.on { color: var(--ivory); }
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.tab span { font-size: 9.5px; letter-spacing: 0.02em; }
.tab.on .tab-dot { opacity: 1; }
.tab-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0; }

/* ---------------------------------------------------------------- sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; }
.sheet-wrap[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.sheet {
  position: relative; width: 100%; max-height: 88dvh; overflow-y: auto;
  border-radius: 26px 26px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d12; padding: 10px 20px calc(24px + var(--safe-b));
  animation: up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes up { from { transform: translateY(30px); opacity: 0.4; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.18); margin: 6px auto 14px; }
.sheet h3 { margin: 0 0 6px; font-size: 17px; }
.sheet p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.field { margin: 0 0 12px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { font-size: 11px; color: var(--muted-2); line-height: 1.6; }
.hr { height: 1px; background: rgba(255,255,255,0.07); margin: 16px 0; }

/* ---------------------------------------------------------------- call */
.call {
  position: fixed; inset: 0; z-index: 90; background: #000;
  display: flex; flex-direction: column; overflow: hidden;
}
.call[hidden] { display: none; }
.call-stage { position: absolute; inset: 0; background: #08080b; }
.call-idle, .call-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  opacity: 0; transition: opacity 0.7s ease;
}
.call-idle.on, .call-video.on { opacity: 1; }
.call-idle { animation: callBreath 8s ease-in-out infinite; object-position: 50% 22%; }
@keyframes callBreath { 0%, 100% { transform: scale(1.02) translateY(0); } 50% { transform: scale(1.06) translateY(-0.5%); } }
#call-cvi[hidden] { display: none; }
#call-cvi { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 1; }
.pip.no-video video { display: none; }
.pip.no-video .pip-off { display: grid; }
.pip-off { display: none; }

.call-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 22%, transparent 55%, rgba(0,0,0,0.8) 100%); pointer-events: none; }
.call-live {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(120% 70% at 50% 30%, transparent 40%, rgba(216,181,104,0.10) 100%);
}
.call[data-state="speaking"] .call-live, .call[data-state="singing"] .call-live { opacity: 1; }
.call[data-state="listening"] .call-idle { animation-duration: 5.5s; }

.call-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: calc(var(--safe-t) + 16px) 18px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.call-top .who { display: flex; flex-direction: column; gap: 2px; }
.call-top .who b { font-family: var(--serif); font-size: 20px; letter-spacing: 0.12em; }
.call-top .who span { font-size: 10.5px; color: #c8c5bd; letter-spacing: 0.06em; }
.call-timer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #dcd9d1; font-variant-numeric: tabular-nums; }
.sig { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.sig i { width: 2.5px; background: #7ee0a8; border-radius: 1px; animation: sig 1.4s infinite ease-in-out; }
.sig i:nth-child(1) { height: 4px; }
.sig i:nth-child(2) { height: 7px; animation-delay: .15s; }
.sig i:nth-child(3) { height: 10px; animation-delay: .3s; }
@keyframes sig { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.call-state {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--safe-t) + 104px);
  text-align: center; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62); transition: opacity 0.3s;
}
.call-caption {
  position: absolute; z-index: 6; left: 20px; right: 20px; bottom: 172px;
  text-align: center; font-size: 14.5px; line-height: 1.5; color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity 0.4s;
}
.call-caption.on { opacity: 1; }

.pip {
  position: absolute; z-index: 7; right: 14px; top: calc(var(--safe-t) + 74px);
  width: 108px; height: 150px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25); background: #14141a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.pip video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pip .pip-off { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--muted); text-align: center; padding: 8px; }
.pip-badge {
  position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2;
  padding: 4px 7px; border-radius: 8px; background: rgba(6, 6, 9, 0.72);
  font-size: 9px; letter-spacing: 0.02em; color: #ece8df; display: flex; align-items: center; gap: 4px;
  backdrop-filter: blur(6px);
}
.pip-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.pip-badge.tired i { background: #7fa8e0; }
.pip-badge.joy i { background: #f2c66d; }
.pip-badge.sad i { background: #9b8bd8; }
.pip-flip { position: absolute; right: 6px; top: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.5); display: grid; place-items: center; }

.call-controls {
  position: absolute; z-index: 8; left: 0; right: 0; bottom: calc(70px + var(--safe-b));
  display: flex; justify-content: center; align-items: center; gap: 12px;
}
.cc {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16); font-size: 10px; line-height: 1.15; text-align: center;
}
.cc.on { background: rgba(255, 255, 255, 0.92); color: #111; }
.cc.end { width: 62px; height: 62px; background: #d94b3d; border-color: transparent; }
.cc.small { width: 46px; height: 46px; font-size: 9.5px; }
.cc:active { transform: scale(0.94); }

.call-text {
  position: absolute; z-index: 8; left: 14px; right: 14px; bottom: calc(10px + var(--safe-b));
  display: flex; gap: 8px;
}
.call-text input { flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 0 16px; height: 44px; font-size: 13px; color: #fff; }
.call-text input::placeholder { color: rgba(255,255,255,0.45); }
.call-text button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.92); color: #111; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.call-log { position: absolute; z-index: 4; left: 16px; right: 136px; top: calc(var(--safe-t) + 172px); max-height: 26dvh; overflow: hidden; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.bubble { align-self: flex-start; max-width: 92%; padding: 8px 12px; border-radius: 14px; background: rgba(12,12,17,0.66); border: 1px solid rgba(255,255,255,0.1); font-size: 11.5px; color: #dedbd3; backdrop-filter: blur(8px); animation: fade .3s both; }
.bubble.me { align-self: flex-end; background: rgba(216,181,104,0.18); border-color: rgba(216,181,104,0.3); color: #f6efe0; }

/* incoming-call screen */
.incoming {
  position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 40px) 24px calc(40px + var(--safe-b));
  background: radial-gradient(120% 60% at 50% 0%, #1b1710, #06060a 70%);
  text-align: center;
}
.incoming[hidden] { display: none; }
.incoming .inq { font-size: 11px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.incoming img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.18); margin: 22px 0 14px; }
.incoming h2 { margin: 0; font-family: var(--serif); font-size: 34px; letter-spacing: 0.1em; }
.incoming p { margin: 8px 0 0; font-size: 13px; color: #cfccc4; max-width: 260px; }
.incoming .acts { display: flex; gap: 34px; align-items: center; }
.incoming .acts button { display: grid; gap: 8px; justify-items: center; font-size: 11px; color: #d8d5cd; }
.incoming .acts i { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 17px; }
.incoming .decline i { background: #d94b3d; }
.incoming .accept i { background: #5fbf82; animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(95,191,130,0.5); } 70% { box-shadow: 0 0 0 18px rgba(95,191,130,0); } 100% { box-shadow: 0 0 0 0 rgba(95,191,130,0); } }

/* install banner + toast */
.install {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  border: 1px solid rgba(216, 181, 104, 0.3); background: rgba(17, 16, 14, 0.94);
  backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  animation: up 0.4s both;
}
.install[hidden] { display: none; }
.install img { width: 42px; height: 42px; border-radius: 11px; }
.install .i-txt { flex: 1; min-width: 0; }
.install b { display: block; font-size: 12.5px; }
.install span { font-size: 10.5px; color: var(--muted); }
.install button.go { padding: 9px 14px; border-radius: 11px; background: var(--gold-2); color: #17130a; font-size: 12px; font-weight: 700; }
.install button.x { color: var(--muted-2); font-size: 18px; padding: 0 2px; }

.toast {
  position: fixed; z-index: 99; left: 50%; top: calc(var(--safe-t) + 72px);
  transform: translate(-50%, -16px); opacity: 0; transition: all 0.28s;
  padding: 11px 18px; border-radius: 999px; background: rgba(240, 214, 154, 0.96); color: #17130a;
  font-size: 12.5px; font-weight: 600; max-width: 86vw; text-align: center; pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- misc */
.stat-row { display: flex; gap: 20px; padding: 14px 0 4px; }
.stat b { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-2); }
.stat span { font-size: 10.5px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.footer { padding: 26px 18px 30px; text-align: center; }
.footer .mark { font-family: var(--serif); letter-spacing: 0.3em; font-size: 13px; color: var(--muted); }
.footer p { margin: 8px 0 0; font-size: 10.5px; color: var(--muted-2); line-height: 1.7; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.14); position: relative; transition: 0.2s; }
.switch.on { background: var(--gold); }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: 0.2s; }
.switch.on i { left: 21px; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; color: transparent; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.hide { display: none !important; }
.center { text-align: center; }

/* keep the native scroll indicator off the phone frame */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; }
.track .t-dur { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; margin-right: 2px; }
/* .sec is declared after .wrap, so combined sections need their gutters back */
.sec.wrap { padding: 22px 18px 6px; }
