/* The phone and everything on its screen. Fixed design size 340 x 700; the page scales it with --s. */

.phone-fit {
  position: relative;
  width: calc(340px * var(--s, 1));
  height: calc(700px * var(--s, 1));
}

.phone-scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 340px;
  height: 700px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  perspective: 1600px;
}

.tilt, .spin { width: 100%; height: 100%; transform-style: preserve-3d; }
.tilt { transition: transform 220ms ease-out; }

.body {
  position: relative;
  width: 340px;
  height: 700px;
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(145deg, #34453f 0%, #0c1512 38%, #22312b 100%);
  box-shadow:
    inset 0 0 0 1.5px #46574f,
    inset 0 0 0 4px #0a110e,
    0 60px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 90px -30px rgba(47, 211, 162, 0.35);
}

.body::before, .body::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2a3a34;
}
.body::before { right: -3px; top: 160px; height: 78px; }
.body::after { left: -3px; top: 130px; height: 44px; box-shadow: 0 64px 0 #2a3a34; }

.screen {
  position: relative;
  width: 316px;
  height: 676px;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 27px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: #000;
  z-index: 30;
}

.glare {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 32%);
}

/* ---------- shared screen kit ---------- */
.app {
  position: absolute;
  inset: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', 'Noto Sans Devanagari', 'Noto Sans Telugu', 'Noto Sans Tamil', 'Noto Sans Bengali', 'Noto Sans Gujarati', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Gurmukhi', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-align: left;
}
.app * { box-sizing: border-box; }
:where(.app) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
:where(.app) h2, :where(.app) h3, :where(.app) p { margin: 0; }
.app svg.fill { fill: currentColor; stroke: none; }

.sb {
  position: absolute; inset: 0 0 auto 0; height: 48px; padding: 16px 28px 0;
  display: flex; justify-content: space-between; font-weight: 600; font-size: 13px;
  z-index: 20; pointer-events: none;
}
.sb-r { display: flex; align-items: center; gap: 6px; }
.sb-sig { width: 16px; height: 9px; background: linear-gradient(90deg, currentColor 3px, transparent 3px 5px, currentColor 5px 8px, transparent 8px 10px, currentColor 10px 13px, transparent 13px 15px, currentColor 15px); border-radius: 1px; }
.sb-bat { position: relative; width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 4px; opacity: 0.9; }
.sb-bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }

.scr { position: absolute; left: 0; right: 0; top: 48px; bottom: 0; display: flex; flex-direction: column; padding-bottom: 22px; }
.scr.full { top: 0; padding-bottom: 22px; }
.scr.in { animation: scr-in 240ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes scr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hbar { position: absolute; left: 50%; bottom: 0; width: 150px; height: 22px; transform: translateX(-50%); z-index: 25; }
.hbar::before { content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.4; }

.hd { display: flex; align-items: center; gap: 10px; padding: 6px 18px 10px; }
.hd h2 { font-size: 20px; letter-spacing: -0.01em; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); flex: none; }
.pad { padding: 4px 18px; display: flex; flex-direction: column; gap: 10px; }
.sub { padding: 0 18px 8px; color: var(--mute); }
.mute { color: var(--mute); }
.lbl { font-size: 12px; font-weight: 600; color: var(--mute); margin: 6px 0 -2px; }
.foot { margin-top: auto; padding: 12px 18px 6px; }
.pbtn { width: 100%; height: 48px; border-radius: 14px; background: var(--pri); color: var(--onpri); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pbtn:active { transform: scale(0.98); }
.chipb { height: 38px; padding: 0 14px; border-radius: 19px; background: var(--soft); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; }
.chipb.on { background: var(--pri); color: var(--onpri); }
.app small { display: block; font-size: 12px; color: var(--mute); }
.toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; padding: 9px 16px; border-radius: 20px; background: #fff; color: #111; font: 600 13px 'Space Grotesk', system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: scr-in 200ms ease-out both; }
.tabs { display: flex; border-top: 1px solid var(--line); background: var(--bg); margin-top: auto; }
.tabs button { flex: 1; padding: 10px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--mute); }
.tabs button.on { color: var(--pri); }

/* ---------- home ---------- */
.home { --bg: #0a2a21; --ink: #eef8f3; --mute: #9fc4b5; --line: transparent; --soft: rgba(255,255,255,.1); --pri: #2fd3a2; --onpri: #06150f;
  background: radial-gradient(90% 55% at 70% 8%, #1e8f6e 0%, transparent 65%), radial-gradient(80% 50% at 10% 100%, #145c47 0%, transparent 70%), #06150f; }
.home-scr { padding: 40px 22px 0; }
.h-date { text-align: center; font-size: 13px; color: var(--mute); }
.h-time { text-align: center; font-size: 76px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin-top: 2px; }
.h-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.h-app { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; }
.h-ic, .b-ic { display: grid; place-items: center; font-weight: 700; }
.h-ic { width: 62px; height: 62px; border-radius: 17px; font-size: 26px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.5); transition: transform 160ms ease-out; }
.h-app:hover .h-ic { transform: translateY(-3px); }
.ic-suno { background: #0f5c4e; color: #f2a93b; }
.ic-ani { background: #ff2d7a; color: #15110f; }
.ic-bas { background: #c6f432; color: #121310; }
.h-hint { text-align: center; margin-top: auto; padding-bottom: 14px; font-size: 12px; color: var(--mute); }

/* ---------- Suno ---------- */
.suno { --bg: #f6f1e7; --card: #fff; --ink: #13201d; --mute: #5e6b66; --line: #e3dccd; --pri: #0f5c4e; --onpri: #fff; --acc: #f2a93b; --soft: #e6eee8; --hl: #fbe3b4; }
.s-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--pri); color: var(--acc); display: grid; place-items: center; font-weight: 700; }
.list { gap: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.doc-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--pri); display: grid; place-items: center; flex: none; }
.doc-t { flex: 1; } .doc-t b { font-size: 15px; }
.doc-go { width: 30px; height: 30px; border-radius: 50%; background: var(--pri); color: var(--onpri); display: grid; place-items: center; }
.tiles { gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.tile svg { color: var(--pri); margin-bottom: 8px; } .tile b { font-size: 16px; }
.reading { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 80px; text-align: center; }
.spin-ring { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--pri); animation: turn 800ms linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tip { color: var(--mute); font-size: 13px; padding: 6px 2px 0; }
.opt { padding: 7px 9px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; }
.opt b { font-size: 15px; display: block; line-height: 1.3; } .opt small { font-size: 11px; } .opt.on { border-color: var(--pri); background: #e9f3ee; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; }
.vrow.on { border-color: var(--pri); }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.vrow.on .radio { border: 5px solid var(--pri); }
.np { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 18px 10px; }
.cover { width: 112px; height: 112px; border-radius: 24px; background: linear-gradient(145deg, #0f5c4e, #1e8f6e); color: var(--acc); font-size: 52px; font-weight: 700; display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 14px 24px -12px rgba(15,92,78,.6); }
.np h3 { font-size: 18px; }
.sents { padding: 6px 18px; display: flex; flex-direction: column; gap: 6px; }
.sent { padding: 8px 10px; border-radius: 10px; color: var(--mute); font-size: 14px; line-height: 1.5; transition: background-color 200ms, color 200ms; }
.sent.on { background: var(--hl); color: var(--ink); }
.bar { height: 5px; border-radius: 3px; background: var(--soft); margin: 14px 18px 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--pri); border-radius: 3px; }
.times { display: flex; justify-content: space-between; padding: 0 18px; font-size: 12px; color: var(--mute); }
.ctl { margin-top: auto; padding: 8px 18px 8px; display: flex; align-items: center; justify-content: space-between; }
.playbtn { width: 62px; height: 62px; border-radius: 50%; background: var(--pri); color: var(--onpri); display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(15,92,78,.7); }

/* ---------- AniReels ---------- */
.ani { --bg: #15110f; --ink: #fff7e8; --mute: #b9ada2; --line: rgba(255,255,255,.1); --soft: rgba(255,255,255,.1); --pri: #ff2d7a; --onpri: #15110f; --yellow: #ffd23f; color: var(--ink); }
.reel { position: relative; flex: 1; overflow: hidden; touch-action: pan-x; user-select: none; }
.reel.up { animation: reel-up 260ms cubic-bezier(.2,.8,.2,1) both; }
.reel.down { animation: reel-down 260ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes reel-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes reel-down { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 50%, rgba(0,0,0,.78)); }
.rail { position: absolute; right: 10px; bottom: 120px; display: flex; flex-direction: column; gap: 14px; }
.rb { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: #fff; }
.rb.on { color: var(--pri); } .rb.on svg { fill: currentColor; }
.cap { position: absolute; left: 14px; right: 62px; bottom: 14px; }
.cap h3 { font-size: 20px; margin: 6px 0 0; } .cap p { font-size: 13px; opacity: .85; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 10px; background: var(--yellow); color: #15110f; font-size: 11px; font-weight: 700; }
.cap-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pill { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--pri); color: var(--onpri); font-weight: 700; font-size: 13px; }
.swipe { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.ani .tabs { background: #15110f; }
.ani .tabs button.on { color: var(--pri); }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 10; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 11; background: #211b18; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; padding: 14px 16px 30px; animation: scr-in 220ms ease-out both; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cmts { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.cmts p { display: flex; flex-direction: column; } .cmts b { font-size: 12px; color: var(--yellow); } .cmts span { font-size: 14px; }
.cmt-in { display: flex; gap: 8px; margin-top: 8px; }
.cmt-in input { flex: 1; height: 40px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--ink); padding: 0 14px; font: inherit; outline: none; }
.cmt-in input:focus { border-color: var(--pri); }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--pri); color: var(--onpri); display: grid; place-items: center; }
.story-art { position: relative; height: 210px; flex: none; } 
.story-b { padding: 14px 18px; flex: 1; overflow: hidden; } .story-b h2 { font-size: 24px; margin: 8px 0 2px; } .story-b p { color: var(--mute); }
.eps { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ep { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); width: 100%; }
.ep > span:nth-child(2) { flex: 1; } .ep b { font-size: 14px; }
.ep-n { width: 30px; height: 30px; border-radius: 9px; background: var(--pri); color: var(--onpri); display: grid; place-items: center; font-weight: 700; }
.mini { position: relative; width: 44px; height: 58px; border-radius: 8px; overflow: hidden; flex: none; }
.empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--mute); padding-bottom: 60px; } .empty b { color: var(--ink); }

/* ---------- Bas ---------- */
.bas { --bg: #f3f3ee; --card: #fff; --ink: #121310; --mute: #62645d; --line: #e2e3db; --soft: #e8e9e1; --pri: #121310; --onpri: #fff; --lime: #c6f432; }
.total { padding: 16px; border-radius: 18px; background: #121310; color: #fff; }
.total small { color: #a9ac9f; } .total b { display: block; font-size: 34px; letter-spacing: -0.02em; color: var(--lime); }
.b-ic { border-radius: 12px; font-size: 15px; flex: none; }
.b-row { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; width: 100%; }
.b-t { flex: 1; } .b-t b { font-size: 15px; }
.b-bar { display: block; height: 6px; border-radius: 3px; background: var(--soft); margin-top: 7px; overflow: hidden; }
.b-bar span { display: block; height: 100%; background: #121310; border-radius: 3px; transition: width 300ms; }
.b-bar span.hot { background: #ff5a36; }
.ghost { height: 44px; border-radius: 14px; border: 1.5px dashed #b8baae; font-weight: 600; font-size: 14px; text-align: center !important; }
.lim { align-items: center; text-align: center; gap: 14px; padding-top: 14px; } .lim h3 { font-size: 20px; }
.stepper { display: flex; align-items: center; gap: 18px; } .stepper b { font-size: 36px; letter-spacing: -0.02em; min-width: 130px; text-align: center; }
.stepper .iconbtn { width: 44px; height: 44px; background: var(--card); border: 1px solid var(--line); }
.chips { display: flex; gap: 8px; } .bas .chipb.on { background: var(--lime); color: #121310; }
.note { color: var(--mute); font-size: 13px; max-width: 230px; }
.scr.dark { background: #121310; color: #fff; --mute: #a9ac9f; }
.lockd { margin: auto 0; padding: 0 28px 70px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.lock-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); color: #121310; display: grid; place-items: center; margin-bottom: 8px; }
.lockd h2 { font-size: 24px; } .lockd p { color: #a9ac9f; }
.lockd .pbtn { background: var(--lime); color: #121310; margin-top: 10px; }
.linkb { color: #a9ac9f; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.bas:has(.dark) { background: #121310; color: #fff; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 18px; }
.bcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; }
.bv { width: 100%; border-radius: 8px 8px 4px 4px; background: #cfd1c6; } .bv.now { background: #121310; }
.bcol small { font-size: 10px; }

/* Bas: buddy */
.buddy-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--lime); color: #121310; font-size: 12px; font-weight: 700; }
.buddy { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: #121310; color: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.shared { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.shared li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.shared li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #121310; flex: none; transform: translateY(-1px); }
.log { display: grid; gap: 6px; } .log p { font-size: 12px; color: var(--mute); padding: 7px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.bas .reading { padding-bottom: 120px; }
