/* ============================================================
   INKD — AI Tattoo Studio
   Aesthetic: tattoo parlor / flash-sheet. Ink black, bone, blood red.
   ============================================================ */

:root {
  --ink:      #0b0b0d;
  --ink-2:    #141417;
  --ink-3:    #1c1c20;
  --line:     rgba(243, 239, 230, 0.10);
  --line-2:   rgba(243, 239, 230, 0.18);
  --bone:     #f3efe6;
  --bone-dim: #9b978e;
  --bone-dimmer: #6c6960;
  --blood:    #c8102e;
  --blood-2:  #e11d35;
  --gold:     #cba14a;
  --radius:   18px;
  --radius-sm: 12px;
  --tab-h:    64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: #060608;
  color: var(--bone);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #16161a 0%, #060608 60%);
}

/* ---- phone frame (acts like a native app, looks like a phone on desktop) ---- */
#phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  max-height: 932px;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}
@media (min-width: 460px) {
  #phone { border-radius: 44px; border: 10px solid #000; }
}

#statusbar {
  flex: 0 0 auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
  z-index: 50;
}
.sb-icons { display: inline-flex; align-items: center; gap: 6px; }

#app {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#app::-webkit-scrollbar { display: none; }

/* ---------- shared type ---------- */
.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.5px; line-height: 0.92; }
.gothic  { font-family: 'Pirata One', serif; }
.kicker  { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--bone-dim); font-weight: 600; }
.muted   { color: var(--bone-dim); }
.accent  { color: var(--blood-2); }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 15px;
  border-radius: 100px; padding: 15px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .12s ease, opacity .2s, background .2s;
  width: 100%;
}
.btn:active { transform: scale(0.975); }
.btn-blood { background: var(--blood); color: #fff; }
.btn-blood:hover { background: var(--blood-2); }
.btn-bone  { background: var(--bone); color: #111; }
.btn-ghost { background: var(--ink-3); color: var(--bone); border: 1px solid var(--line-2); }
.btn-gold  { background: linear-gradient(180deg, #e2c069, var(--gold)); color: #2a1d05; }
.btn-sm    { padding: 11px 16px; font-size: 13px; width: auto; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  appearance: none; cursor: pointer; white-space: nowrap;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 15px; border-radius: 100px;
  background: var(--ink-3); color: var(--bone-dim);
  border: 1px solid var(--line); transition: all .15s;
}
.chip[data-on="1"] { background: var(--bone); color: #111; border-color: var(--bone); }
.chip.blood[data-on="1"] { background: var(--blood); color: #fff; border-color: var(--blood); }

.row-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }

/* ---------- generic view padding ---------- */
.view { padding: 8px 20px 28px; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.section-head h2 { font-family: 'Bebas Neue'; font-size: 26px; font-weight: 400; letter-spacing: 0.5px; }
.section-head .link { font-size: 13px; color: var(--blood-2); font-weight: 600; cursor: pointer; }

/* ============================================================
   HOME / HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 14px 20px 24px;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #26262c 0%, var(--ink) 55%);
  display: flex; align-items: center; justify-content: center;
}
.hero-art svg { width: 78%; opacity: 0.85; filter: drop-shadow(0 8px 30px rgba(200,16,46,.25)); }
.hero-fade { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,13,.1) 0%, rgba(11,11,13,.55) 55%, var(--ink) 100%); }
.hero-content { position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 9px; position: relative; z-index: 3; padding-top: 4px; }
.brand .logo { font-family: 'Bebas Neue'; font-size: 30px; letter-spacing: 3px; }
.brand .logo b { color: var(--blood-2); }
.brand .tag { margin-left: auto; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--bone-dim); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 100px; }

.hero h1 { font-family: 'Bebas Neue'; font-size: 58px; line-height: 0.9; letter-spacing: 1px; margin-bottom: 12px; }
.hero h1 em { font-family: 'Pirata One'; font-style: normal; color: var(--blood-2); }
.hero p { color: var(--bone-dim); font-size: 15px; line-height: 1.5; max-width: 320px; margin-bottom: 18px; }

.stat-row { display: flex; gap: 18px; margin: 18px 2px 4px; }
.stat b { font-family: 'Bebas Neue'; font-size: 24px; display: block; line-height: 1; }
.stat span { font-size: 11px; color: var(--bone-dim); letter-spacing: 0.5px; }

/* card grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--ink-2); border: 1px solid var(--line);
  cursor: pointer; transition: transform .15s;
}
.tile:active { transform: scale(0.98); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink-2); }
.tile .tile-svg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 16%; background:
  radial-gradient(120% 120% at 50% 25%, #1b1b20, #101012); }
.tile .tile-svg svg { width: 100%; height: 100%; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.tile .cap small { display: block; color: var(--bone-dim); font-weight: 500; font-size: 10.5px; }
.tile .badge { position: absolute; top: 8px; left: 8px; font-size: 9.5px; letter-spacing: 1px;
  text-transform: uppercase; background: rgba(0,0,0,.6); border:1px solid var(--line-2);
  padding: 4px 7px; border-radius: 100px; backdrop-filter: blur(4px); }
.tile .lock { position:absolute; top:8px; right:8px; width:24px; height:24px; border-radius:50%;
  background: rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; backdrop-filter: blur(4px); }

/* ============================================================
   STUDIO (generator)
   ============================================================ */
.studio-head { padding: 6px 0 2px; }
.studio-head h2 { font-family: 'Bebas Neue'; font-size: 34px; letter-spacing: .5px; }
.studio-head p { color: var(--bone-dim); font-size: 13.5px; margin-top: 2px; }

.prompt-wrap { position: relative; margin-top: 14px; }
.prompt-wrap textarea {
  width: 100%; min-height: 96px; resize: none;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--bone); font-family: inherit; font-size: 15.5px; line-height: 1.45;
  padding: 16px 16px 40px;
}
.prompt-wrap textarea:focus { outline: none; border-color: var(--blood); }
.prompt-wrap textarea::placeholder { color: var(--bone-dimmer); }
.prompt-foot { position: absolute; left: 14px; bottom: 12px; right: 14px;
  display: flex; align-items: center; gap: 8px; }
.dice { background: var(--ink-3); border:1px solid var(--line-2); color: var(--bone-dim);
  border-radius: 100px; font-size: 12px; font-weight: 600; padding: 7px 12px; cursor: pointer;
  display: inline-flex; align-items:center; gap:6px; }
.charcount { margin-left: auto; font-size: 11px; color: var(--bone-dimmer); }

.field-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--bone-dim); font-weight: 600; margin: 22px 4px 9px; }

/* style picker */
.style-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.style-card { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; border: 1.5px solid var(--line); background: var(--ink-2);
  display:flex; align-items:flex-end; }
.style-card[data-on="1"] { border-color: var(--blood); }
.style-card .sc-bg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color: var(--bone-dim); opacity:.5; }
.style-card .sc-bg svg { width: 54%; height: 54%; }
.style-card[data-on="1"] .sc-bg { color: var(--blood-2); opacity: .9; }
.style-card span { position: relative; z-index:2; padding: 8px; font-size: 11.5px; font-weight: 600;
  width:100%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); }
.style-card .tick { position:absolute; top:6px; right:6px; z-index:3; width:18px;height:18px;border-radius:50%;
  background: var(--blood); display:none; align-items:center;justify-content:center; }
.style-card[data-on="1"] .tick { display:flex; }

.gen-bar { position: sticky; bottom: 0; z-index: 20; margin: 26px -20px -28px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--ink) 28%); }
.gen-bar .credits { text-align:center; font-size: 11.5px; color: var(--bone-dim); margin-top: 9px; }
.gen-bar .credits b { color: var(--bone); }

/* ============================================================
   RESULT
   ============================================================ */
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.result-cell { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line); cursor: pointer; }
.result-cell img { width:100%; height:100%; object-fit: cover; }
.result-cell.loading::after { content:''; position:absolute; inset:0;
  background: linear-gradient(110deg, var(--ink-2) 30%, var(--ink-3) 50%, var(--ink-2) 70%);
  background-size: 220% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -40% 0; } }
.result-cell .ink-spin { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:2; }
.result-cell .ink-spin svg { width: 34px; height:34px; animation: rot 1.4s linear infinite; opacity:.6; }
@keyframes rot { to { transform: rotate(360deg); } }

/* detail / overlay sheet */
.sheet { position: absolute; inset: 0; z-index: 80; background: var(--ink);
  display:flex; flex-direction: column; animation: slideup .3s ease; }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.sheet-head { display:flex; align-items:center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); }
.close { width: 34px; height:34px; border-radius:50%; background: var(--ink-3);
  border:1px solid var(--line-2); color: var(--bone); display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex:0 0 auto; padding:0; }
.sheet-head h3 { font-family:'Bebas Neue'; font-size: 22px; font-weight:400; letter-spacing:.5px; }
.sheet-body { flex:1; overflow-y:auto; scrollbar-width:none; }
.sheet-body::-webkit-scrollbar { display:none; }

.detail-art { aspect-ratio: 1; background: radial-gradient(120% 120% at 50% 30%, #1a1a1f, #0c0c0e);
  display:flex; align-items:center; justify-content:center; position: relative; }
.detail-art img { width:100%; height:100%; object-fit: contain; }
.detail-art .wm { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue'; font-size: 44px; letter-spacing: 6px; color: rgba(243,239,230,.10);
  transform: rotate(-22deg); pointer-events:none; }
.detail-meta { padding: 18px 20px; }
.detail-actions { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 20px; }
.detail-actions .full { grid-column: 1 / -1; }

.spec { display:flex; gap: 8px; flex-wrap:wrap; margin: 10px 0 4px; }
.spec span { font-size: 12px; color: var(--bone-dim); background: var(--ink-2);
  border:1px solid var(--line); padding: 6px 11px; border-radius: 100px; }

/* ============================================================
   TRY-ON
   ============================================================ */
.tryon-stage { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-2); margin-top: 6px;
  display:flex; align-items:center; justify-content:center; }
.tryon-stage .skin { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.tryon-stage .skin-fallback { position:absolute; inset:0;
  background: linear-gradient(155deg, #d6a982 0%, #c69270 40%, #b07c5e 100%); }
.tryon-stage .skin-fallback::after { content:'FOREARM'; position:absolute; bottom:14px; left:0; right:0;
  text-align:center; font-family:'Bebas Neue'; letter-spacing:3px; color: rgba(0,0,0,.25); font-size: 18px; }
.tryon-design { position: absolute; cursor: grab; touch-action: none;
  mix-blend-mode: multiply; filter: contrast(1.15) saturate(.85); transition: filter .2s; }
/* keyed = true alpha. Multiply so the skin's shadows/highlights show THROUGH the ink (reads as in-skin,
   not a sticker). Crisp + darkened so it looks like real fresh ink, not a faded sketch. */
.tryon-design.keyed { mix-blend-mode: multiply; filter: contrast(1.18) brightness(.92) saturate(.92); }
.tryon-design img { width:100%; height:100%; object-fit: contain; pointer-events:none; -webkit-user-drag:none; }
.tryon-empty { text-align:center; color: var(--bone-dim); padding: 30px; z-index:2; }
.tryon-empty svg { width: 48px; height:48px; opacity:.4; margin-bottom: 12px; }

.tryon-controls { margin-top: 16px; }
.ctrl { margin: 14px 0; }
.ctrl label { display:flex; justify-content:space-between; font-size: 12px; color: var(--bone-dim);
  text-transform:uppercase; letter-spacing:1px; font-weight:600; margin-bottom: 8px; }
input[type=range] { -webkit-appearance:none; width:100%; height: 4px; border-radius: 4px;
  background: var(--ink-3); outline:none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; border-radius:50%;
  background: var(--bone); border: 4px solid var(--blood); cursor:pointer; }

.upload-row { display:flex; gap: 10px; margin-top: 14px; }

/* camera capture overlay */
#camov { position:absolute; inset:0; z-index:200; background:#000; display:flex; flex-direction:column; animation: fade .2s ease; }
#camov #camvid { flex:1; width:100%; height:100%; object-fit:cover; background:#000; }
#camov .cam-x { position:absolute; top:16px; left:16px; z-index:3; background:rgba(0,0,0,.5); backdrop-filter:blur(6px); }
#camov .cam-hint { position:absolute; top:0; left:0; right:0; z-index:2; text-align:center; padding:16px;
  font-size:13px; font-weight:600; color:#fff; background:linear-gradient(180deg,rgba(0,0,0,.55),transparent); }
#camov .cam-bar { position:absolute; left:0; right:0; bottom:0; z-index:3; padding:24px 28px calc(28px + env(safe-area-inset-bottom));
  display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.65)); }
#camov .cam-shutter { width:72px; height:72px; border-radius:50%; background:#fff; cursor:pointer;
  border:5px solid rgba(255,255,255,.45); box-shadow:0 0 0 2px #fff; transition:transform .1s; }
#camov .cam-shutter:active { transform:scale(.92); }
#camov .cam-flip { width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,.16); color:#fff;
  border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; }

/* live AR overlay */
#arov { position:absolute; inset:0; z-index:200; background:#000; overflow:hidden; animation: fade .2s ease; }
#arov #arvid { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#arov #arcanvas { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; mix-blend-mode:multiply; pointer-events:none; }
#arov .ar-x { position:absolute; top:16px; left:16px; z-index:6; background:rgba(0,0,0,.5); backdrop-filter:blur(6px); }
#arov .ar-hint { position:absolute; top:0; left:0; right:0; z-index:4; text-align:center; padding:16px 16px 22px;
  font-size:13px; font-weight:600; color:#fff; background:linear-gradient(180deg,rgba(0,0,0,.6),transparent); transition:opacity .3s; }
#arov .ar-load { position:absolute; inset:0; z-index:7; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px; background:#0b0b0d; color:#9b978e; text-align:center; font-size:14px; line-height:1.5; }
#arov .ar-load small { color:#6c6960; }
#arov .ar-load .ar-spin { width:46px; height:46px; color:#c8102e; animation: rot 1.4s linear infinite; }
#arov .ar-controls { position:absolute; left:0; right:0; bottom:0; z-index:6;
  padding:16px 20px calc(18px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:10px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.8)); }
#arov .ar-ctrl { display:flex; align-items:center; gap:12px; }
#arov .ar-ctrl label { font-size:11px; text-transform:uppercase; letter-spacing:1px; color:#cdc9bf; width:78px; font-weight:600; }
#arov .ar-ctrl input { flex:1; }
#arov .ar-controls.locked .ar-ctrl { display:none; }
#arov .ar-bar { display:flex; align-items:center; justify-content:space-between; margin-top:4px; }
#arov .ar-bar .btn-sm { width:auto; }
#arov .ar-shutter { width:66px; height:66px; border-radius:50%; background:#fff; cursor:pointer;
  border:5px solid rgba(255,255,255,.45); box-shadow:0 0 0 2px #fff; transition:transform .1s; }
#arov .ar-shutter:active { transform:scale(.92); }

/* ============================================================
   PAYWALL / PRO
   ============================================================ */
.paywall { padding: 24px 22px 28px; text-align:center; }
.paywall .crown { width: 56px; height:56px; margin: 0 auto 14px; border-radius: 16px;
  background: linear-gradient(180deg,#e2c069,var(--gold)); display:flex;align-items:center;justify-content:center; }
.paywall .crown svg { width: 30px; height: 30px; }
.paywall h2 { font-family:'Bebas Neue'; font-size: 40px; letter-spacing:.5px; line-height: .95; }
.paywall h2 em { font-style:normal; color: var(--gold); letter-spacing: 1px; }
.paywall .sub { color: var(--bone-dim); font-size: 14px; margin: 8px 0 20px; }

.perks { text-align:left; margin: 4px 0 22px; }
.perk { display:flex; gap:12px; align-items:flex-start; padding: 10px 0; border-bottom:1px solid var(--line); }
.perk:last-child { border:none; }
.perk .pk-ic { flex:0 0 22px; width:22px; height:22px; border-radius:50%; background: rgba(203,161,74,.16);
  color: var(--gold); display:flex;align-items:center;justify-content:center; margin-top:1px; }
.perk b { font-size: 14.5px; font-weight: 600; }
.perk small { display:block; color: var(--bone-dim); font-size: 12.5px; margin-top:1px; }

.plans { display:flex; flex-direction:column; gap: 10px; margin-bottom: 16px; }
.plan { position:relative; text-align:left; border:1.5px solid var(--line-2); border-radius: var(--radius);
  padding: 16px 16px 16px 50px; cursor:pointer; background: var(--ink-2); }
.plan[data-on="1"] { border-color: var(--gold); background: rgba(203,161,74,.07); }
.plan .radio { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:22px;height:22px;
  border-radius:50%; border:2px solid var(--line-2); }
.plan[data-on="1"] .radio { border-color: var(--gold); background: radial-gradient(circle at 50% 50%, var(--gold) 0 6px, transparent 7px); }
.plan .pl-title { font-weight: 700; font-size: 15px; }
.plan .pl-sub { color: var(--bone-dim); font-size: 12.5px; margin-top:2px; }
.plan .pl-price { position:absolute; right:16px; top:50%; transform:translateY(-50%); text-align:right; }
.plan .pl-price b { font-family:'Bebas Neue'; font-size: 24px; }
.plan .pl-price span { display:block; font-size: 11px; color: var(--bone-dim); }
.plan .tagpop { position:absolute; top:-9px; right:14px; background: var(--gold); color:#2a1d05;
  font-size: 10px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; padding: 3px 9px; border-radius: 100px; }
.paywall .fine { font-size: 11px; color: var(--bone-dimmer); margin-top: 12px; line-height: 1.5; }
.paywall .restore { color: var(--bone-dim); font-size: 12.5px; margin-top:14px; text-decoration: underline; cursor:pointer; }

/* book artist */
.artist-card { display:flex; gap:12px; align-items:center; padding: 14px; background: var(--ink-2);
  border:1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; cursor:pointer; }
.artist-card .av { width: 52px; height:52px; border-radius: 14px; background: linear-gradient(135deg,#2a2a30,#17171b);
  display:flex; align-items:center; justify-content:center; font-family:'Bebas Neue'; font-size:22px; color: var(--blood-2); flex:0 0 auto; }
.artist-card .info { flex:1; }
.artist-card .info b { font-size: 14.5px; }
.artist-card .info small { display:block; color: var(--bone-dim); font-size: 12px; margin-top:1px; }
.artist-card .info .stars { color: var(--gold); font-size: 12px; margin-top: 3px; }
.artist-card .dist { font-size: 12px; color: var(--bone-dim); text-align:right; }

/* ============================================================
   TAB BAR
   ============================================================ */
#tabbar {
  flex: 0 0 auto; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(13,13,16,.92); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); z-index: 60;
}
.tab { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  color: var(--bone-dimmer); cursor:pointer; font-size: 10px; font-weight:600; letter-spacing:.3px; }
.tab svg { width: 23px; height:23px; }
.tab[data-on="1"] { color: var(--bone); }
.tab.center { position: relative; }
.tab.center .fab { width: 50px; height:50px; border-radius:50%; margin-top:-22px;
  background: var(--blood); display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(200,16,46,.45); border: 3px solid var(--ink); }
.tab.center .fab svg { width: 24px; height:24px; color:#fff; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 30px);
  background: var(--bone); color:#111; font-size: 13.5px; font-weight:600;
  padding: 12px 18px; border-radius: 100px; opacity:0; pointer-events:none;
  transition: all .3s; z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,.5); max-width: 90%; }
#toast.show { opacity:1; transform: translate(-50%, 0); }

/* misc */
.spacer { height: 8px; }
.center { text-align:center; }
.divider { height:1px; background: var(--line); margin: 20px 0; }
.pill-note { display:inline-flex; gap:7px; align-items:center; font-size:12px; color: var(--gold);
  background: rgba(203,161,74,.10); border:1px solid rgba(203,161,74,.25); padding:7px 13px; border-radius:100px; }
