@font-face {
  font-family: "Rethink Sans";
  src: url("rethink-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --accent: #FFFF61;
  --on-accent: #16160a;
  --bg: #0a091d;
  --panel: #082126;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.1);
  --text: #ffffff;
  --muted: #a9a6d8;
  --line: rgba(255,255,255,.1);
  --radius: 28px;
  --gutter: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Rethink Sans", "Avenir Next", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.4;
  padding-top: env(safe-area-inset-top);
  overflow-x: hidden;
}
main { padding: 20px var(--gutter) calc(110px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 4px; font-weight: 700; }
h2 { font-size: 18px; letter-spacing: -.01em; margin: 28px 0 12px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* cartões */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.hero { background: var(--accent); color: var(--on-accent); border-radius: 32px; padding: 24px; margin: 18px 0 12px; position: relative; overflow: hidden; }
.hero .label { font-size: 13px; font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.hero .big { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0; }
.hero::after { content: ""; position: absolute; left: -50px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; background: rgba(0,0,0,.06); }
.hero { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; }
.hero > * { grid-column: 1; position: relative; z-index: 1; }
.hero .art { grid-column: 2; grid-row: 1 / span 3; width: 112px; height: 112px; }
.hero .big { font-size: 34px; }
.hero p { position: relative; z-index: 1; }
.empty .art { display: block; margin: 0 auto 6px; }
.empty .art ellipse:first-child { fill: transparent; }
svg.i { display: block; }
.scene { background: var(--surface); border-radius: 28px; overflow: hidden; margin: 16px 0 12px; line-height: 0; }
.scene svg { display: block; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hero .art, .empty .art { animation: bob 4.5s ease-in-out infinite; }
.bob { animation: bob 4.5s ease-in-out infinite; transform-box: fill-box; }
@media (prefers-reduced-motion: reduce) { .hero .art, .empty .art, .bob { animation: none; } }
.chip.edit { padding: 8px 10px; display: grid; place-items: center; }
#tabs button.on .t-ico { color: #f8f8fc; }
.hero .btn { position: relative; z-index: 1; margin-top: 14px; background: var(--on-accent); color: var(--accent); }

/* botões */
.btn { appearance: none; border: 0; border-radius: 999px; padding: 15px 22px; font: inherit; font-weight: 700; background: var(--accent); color: var(--on-accent); min-height: 52px; width: 100%; cursor: pointer; }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.danger { background: transparent; color: #ff8a8a; border: 1px solid var(--line); }
.btn.small { width: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn:active { transform: scale(.98); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick { background: var(--surface); border: 0; border-radius: 22px; padding: 16px 6px; color: var(--text); font: inherit; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.quick .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; }
.quick.on .ico { background: var(--accent); }

/* linha do tempo */
.item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border: 0; }
.item .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.item .grow { flex: 1; min-width: 0; }
.item b { display: block; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.pill.accent { background: var(--accent); color: var(--on-accent); }

/* gráfico */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bar i { display: block; width: 100%; border-radius: 12px 12px 6px 6px; background: var(--surface-2); min-height: 4px; }
.bar.hi i { background: var(--accent); }
.bar span { font-size: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }

/* formulários */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid transparent; border-radius: 16px; padding: 14px 16px; font: inherit; min-height: 52px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--on-accent); }

/* folha */
#sheet { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 30; display: flex; align-items: flex-end; }
#sheet[hidden] { display: none; }
#sheet .panel { background: var(--surface); width: 100%; max-width: 520px; margin: 0 auto; border-radius: 32px 32px 0 0; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; }
#sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }

/* abas */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
#tabs button { flex: 1; max-width: 100px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; cursor: pointer; }
#tabs button .t-ico { width: 52px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 18px; }
#tabs button.on { color: var(--text); }
#tabs button.on .t-ico { background: rgba(255,255,255,.07); }

.empty { text-align: center; padding: 28px 8px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.sound { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--surface); border: 0; border-radius: 22px; padding: 16px; color: var(--text); font: inherit; text-align: left; margin-bottom: 10px; cursor: pointer; }
.sound.on { background: var(--accent); color: var(--on-accent); }
.sound .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; }
.sound.on .ico { background: rgba(0,0,0,.12); }

/* ---- topo da tela Hoje ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top h1 { font-size: 34px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top .pill { font-size: 13px; letter-spacing: 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #b9a7ff; display: grid; place-items: center; flex: none; overflow: hidden; }
.avatar .art { animation: none; margin-top: 4px; }
.big-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; font-size: 17px; }

/* atalhos coloridos (blocos de cor, como no Headspace) */
.quicks { margin: 12px 0 4px; }
.quick { color: var(--on-accent); }
.quick .ico { background: rgba(255,255,255,.55); color: var(--on-accent); }
.quick.c-sky { background: #8cc8ff; } .quick.c-peach { background: #ffb38a; } .quick.c-mint { background: #8be0c0; }

/* linha do dia (estilo Napper) */
.tl { position: relative; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--text); position: relative; z-index: 1; }
.tl-card { flex: 1; min-width: 0; background: var(--surface); border-radius: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.tl-card .grow { flex: 1; min-width: 0; }
.tl-card b { display: block; }
.tl-item.done .tl-dot { background: var(--accent); color: var(--on-accent); }
.tl-item.now .tl-dot { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px rgba(255,255,97,.22); }
.tl-item.now .tl-card { outline: 2px solid var(--accent); }
.tl-item.plan .tl-dot { background: transparent; border: 2px dashed var(--muted); color: var(--muted); }
.tl-item.plan .tl-card { background: transparent; border: 2px dashed var(--line); }

/* ---- introdução ---- */
main.ob-main { padding: 0; max-width: 520px; }
.ob { min-height: 100dvh; display: flex; flex-direction: column; }
.ob-art { position: relative; height: 300px; border-radius: 0 0 48px 48px; display: grid; place-items: center; overflow: hidden; padding-top: 24px; }
.ob-art .art { position: relative; z-index: 1; filter: drop-shadow(0 8px 0 rgba(0,0,0,.08)); animation: bob 4.5s ease-in-out infinite; }
.ob-art .dots { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.ob-art .dots i { width: 26px; height: 6px; border-radius: 6px; background: rgba(0,0,0,.18); }
.ob-art .dots i.on { background: var(--on-accent); }
.ob-art .blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); }
.ob-art .b1 { width: 170px; height: 170px; left: -60px; bottom: -50px; }
.ob-art .b2 { width: 90px; height: 90px; right: -20px; top: 60px; }
.ob-body { padding: 28px var(--gutter) 0; flex: 1; }
.ob-body h1 { font-size: 34px; }
.lead { font-size: 18px; color: var(--muted); margin-top: 10px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 12px; }
.ob-foot { padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 12px; cursor: pointer; }
#tabs[hidden] { display: none; }

/* ---- anel do dia (estilo Napper) ---- */
.dial { position: relative; width: min(100%, 320px); margin: 14px auto 0; background: var(--surface); border-radius: 50%; aspect-ratio: 1; }
.dial > svg { display: block; width: 100%; height: 100%; }
.dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 22%; gap: 2px; }
.dial-center .art { animation: none; margin-bottom: -6px; }
.dial-center .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.dial-center b { font-size: 42px; letter-spacing: -.03em; line-height: 1.05; color: var(--accent); }
.dial-center b.sm { font-size: 26px; }
.dial-center .sub { font-size: 13px; color: var(--muted); }
.grp { font-size: 15px; color: var(--muted); margin: 18px 0 10px; }

/* grade de atividades */
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.act { background: none; border: 0; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; line-height: 1.2; cursor: pointer; padding: 0; }
.act .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); }
.act:active .ico { transform: scale(.94); }
.c-lilac .ico { background: #b9a7ff; } .c-sky .ico { background: #8cc8ff; } .c-yellow .ico { background: var(--accent); }
.c-mint .ico { background: #8be0c0; } .c-peach .ico { background: #ffb38a; } .c-pink .ico { background: #ff9fb8; }

/* ---- introdução, versão 2 ---- */
.ob-art { height: 300px; }
.ob-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ob-back { position: absolute; z-index: 3; left: 12px; top: calc(36px + env(safe-area-inset-top)); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.14); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.ob-body { text-align: center; animation: rise .35s ease both; }
.ob-body h1 { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.ob-body label { text-align: left; }
.ob-body input { text-align: left; font-size: 17px; min-height: 58px; border-radius: 20px; }
.ob-body .hint { text-align: center; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.opt { background: var(--surface-2); color: var(--text); border: 2px solid transparent; border-radius: 20px; padding: 18px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.opt.on { border-color: var(--accent); background: rgba(255,255,255,.04); color: var(--accent); }
.ob-stats { margin-top: 18px; text-align: left; }
.ob-stats .wide { grid-column: 1 / -1; }
.ob-stats .card { margin-bottom: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ob-body { animation: none; } }

/* ---- sons: blocos e mini player ---- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border: 0; border-radius: 28px; padding: 18px 16px; min-height: 148px; color: var(--on-accent); font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; justify-content: flex-end; cursor: pointer; position: relative; }
.tile .ico { position: absolute; top: 14px; left: 14px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.55); display: grid; place-items: center; }
.tile b { font-size: 17px; line-height: 1.15; }
.tile .small { opacity: .75; }
.tile.on { outline: 3px solid var(--text); outline-offset: 2px; }
.tile.c-sky { background: #8cc8ff; } .tile.c-peach { background: #ffb38a; } .tile.c-lilac { background: #b9a7ff; } .tile.c-mint { background: #8be0c0; }

#player { position: fixed; z-index: 25; left: 12px; right: 12px; max-width: 496px; margin: 0 auto; bottom: calc(80px + env(safe-area-inset-bottom)); background: var(--surface-2); border: 1px solid var(--line); border-radius: 26px; padding: 8px 8px 8px 8px; display: flex; align-items: center; gap: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
#player[hidden] { display: none; }
.mp-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; padding: 0; cursor: pointer; }
.mp-main .grow { display: flex; flex-direction: column; min-width: 0; }
.mp-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); flex: none; }
.mp-ico.c-sky { background: #8cc8ff; } .mp-ico.c-peach { background: #ffb38a; } .mp-ico.c-lilac { background: #b9a7ff; } .mp-ico.c-mint { background: #8be0c0; }
.mp-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; flex: none; }
.mp-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
body.has-player main { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
input[type=range] { padding: 0; min-height: 36px; accent-color: var(--accent); background: transparent; }

/* =========================================================
   Tema noite (espelhado no Napper): céu índigo, vidro, estrelas
   ========================================================= */
html { background: var(--bg); }
body {
  background: linear-gradient(180deg, #022c33 0%, #0a091d 100%);
  background-attachment: fixed;
  font-weight: 400;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.4px 1.4px at 30px 40px, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 120px 90px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.6px 1.6px at 210px 30px, rgba(190,180,255,.8), transparent),
    radial-gradient(1px 1px at 280px 160px, rgba(255,255,255,.55), transparent),
    radial-gradient(1.2px 1.2px at 70px 210px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.4px 1.4px at 180px 260px, rgba(255,255,255,.7), transparent);
  background-size: 320px 320px;
}
h1 { font-weight: 500; letter-spacing: -.03em; }
h2 { font-weight: 500; font-size: 17px; }
.ob-body h1, .top h1 { font-weight: 500; }
.muted, .lead { color: var(--muted); }
b { font-weight: 600; }

/* vidro */
.card, .tl-card, .scene, .tile, .stat {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 30px rgba(3,2,20,.35), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.tl-item.plan .tl-card { background: transparent; border: 1.5px dashed rgba(255,255,255,.18); box-shadow: none; }
.tl-item::before { background: linear-gradient(180deg, rgba(169,155,255,.6), rgba(169,155,255,.05)); width: 2px; }
.tl-dot { background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14); }
.tl-item.done .tl-dot { background: rgba(255,255,255,.08); border-color: var(--accent); color: var(--accent); }
.tl-item.now .tl-dot { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 18px rgba(255,255,97,.55); }
.tl-item.now .tl-card { outline: 1.5px solid rgba(255,255,97,.7); }
.tl-item.plan .tl-dot { border: 1.5px dashed rgba(255,255,255,.3); }

/* botões */
.btn { background: #ffe04a; box-shadow: 0 8px 26px rgba(255,224,74,.28); }
.btn.ghost { background: rgba(255,255,255,.1); box-shadow: none; color: var(--text); }
.btn.danger { box-shadow: none; }
.chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); }
.chip.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(255,255,97,.3); }
input, select, textarea { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.pill { background: rgba(255,255,255,.12); font-weight: 500; }
.avatar { background: radial-gradient(circle at 35% 30%, #d9d0ff, #7e6cf0); box-shadow: 0 0 22px rgba(140,120,255,.5); }

/* anel */
.dial { background: none; width: min(100%, 340px); margin: 10px auto 6px; }
.dial-center { padding: 0 24%; gap: 4px; }
.dial-center .label { font-size: 14px; color: var(--muted); font-weight: 400; }
.dial-center b { font-size: 50px; font-weight: 400; letter-spacing: -.04em; color: #fff; text-shadow: 0 0 28px rgba(169,155,255,.55); }
.dial-center b.sm { font-size: 26px; }
.dial-center .sub { font-size: 13px; color: var(--muted); }

/* grade de atividades em painel de vidro */
.glass-sheet { margin: 8px -6px 0; padding: 10px 12px 18px; border-radius: 34px; background: linear-gradient(180deg, rgba(2,44,51,.22), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 -10px 40px rgba(2,44,51,.12), inset 0 1px 0 rgba(255,255,255,.12); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.glass-sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 4px auto 14px; }
.acts { grid-template-columns: repeat(3, 1fr); gap: 16px 6px; }
.act { color: var(--text); font-weight: 400; gap: 6px; }
.act b { font-weight: 500; font-size: 13px; }
.act .ago { font-size: 11px; color: var(--muted); min-height: 14px; }
.act .ico { width: 66px; height: 66px; background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), rgba(255,255,255,.04) 70%); border: 1px solid rgba(255,255,255,.12); color: var(--c); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 35%, transparent); }
.act:disabled { opacity: .35; cursor: default; }
.act:disabled .ico { box-shadow: none; }

/* navegação */
#tabs { background: rgba(3,20,22,.88); border-top: 1px solid rgba(255,255,255,.08); }
#tabs button { color: #8d8ac0; font-weight: 500; }
#tabs button.on { color: #fff; }
#tabs button .t-ico { width: 46px; height: 30px; }
#tabs button.on .t-ico { background: rgba(255,255,255,.07); color: #f8f8fc; box-shadow: none; }

/* folhas e player */
#sheet .panel { background: linear-gradient(180deg, #0c2a30, #061a1e); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
#player { background: rgba(6,26,30,.92); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); flex-wrap: wrap; }
.mp-main .grow { gap: 2px; }
.mp-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); margin-top: 6px; overflow: hidden; }
.mp-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8e7dff, var(--accent)); box-shadow: 0 0 10px rgba(255,255,97,.5); }

/* sons: tiles de vidro com objeto brilhante */
.tile { color: var(--text); min-height: 168px; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 22%, transparent), rgba(255,255,255,.03)); }
.tile.c-sky { --tc: #7cc4ff; background-color: transparent; } .tile.c-peach { --tc: #ffa06a; background-color: transparent; }
.tile.c-lilac { --tc: #a99bff; background-color: transparent; } .tile.c-mint { --tc: #7be3a8; background-color: transparent; }
.tile.c-sky, .tile.c-peach, .tile.c-lilac, .tile.c-mint { background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 24%, transparent), rgba(255,255,255,.03)); }
.tile .ico { width: 64px; height: 64px; top: 16px; left: 16px; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--tc) 85%, #fff), var(--tc) 70%); color: #15133a; box-shadow: 0 0 26px color-mix(in srgb, var(--tc) 60%, transparent), inset 0 -4px 8px rgba(0,0,0,.18); }
.tile b { font-weight: 600; }
.tile .small { color: var(--muted); opacity: 1; }
.tile.on { outline: 0; border-color: var(--accent); box-shadow: 0 0 26px rgba(255,255,97,.28), inset 0 1px 0 rgba(255,255,255,.1); }
.mp-ico { background: radial-gradient(circle at 35% 28%, #fff8, transparent 60%), var(--tc, #a99bff); }
.mp-ico.c-sky { --tc: #7cc4ff; } .mp-ico.c-peach { --tc: #ffa06a; } .mp-ico.c-lilac { --tc: #a99bff; } .mp-ico.c-mint { --tc: #7be3a8; }

/* barras de padrões */
.bar i { background: rgba(255,255,255,.14); }
.bar.hi i { background: linear-gradient(180deg, #ffff61, #c9c93a); box-shadow: 0 0 16px rgba(255,255,97,.35); }

/* ---- ícones 3D ---- */
svg.i3 { display: block; filter: drop-shadow(0 3px 4px rgba(5,3,30,.45)); }
.act .ico { color: inherit; }
.tile .ico { background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.22), rgba(255,255,255,.04) 70%); color: inherit; box-shadow: 0 0 26px color-mix(in srgb, var(--tc) 45%, transparent); border: 1px solid rgba(255,255,255,.14); }
.mp-ico { background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.22), rgba(255,255,255,.05) 70%); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 14px color-mix(in srgb, var(--tc) 40%, transparent); }
.tl-dot.d3 { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.tl-item.done .tl-dot.d3, .tl-item.now .tl-dot.d3 { background: rgba(255,255,255,.08); border-color: var(--accent); box-shadow: 0 0 14px rgba(255,255,97,.35); }
.tl-item.plan .tl-dot.d3 svg { opacity: .55; filter: grayscale(.4); }
.avatar .art { filter: none; }

/* ---- introdução, tema noite ---- */
.ob-art { background: none; border-radius: 0; height: 300px; overflow: visible; }
.ob-art .dots i { background: rgba(255,255,255,.18); }
.ob-art .dots i.on { background: var(--accent); box-shadow: 0 0 10px rgba(255,255,97,.55); }
.ob-back { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ob-body h1 { color: #fff; }
.ob-svg { overflow: visible; }
.opt { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.12); font-weight: 500; }
.opt.on { border-color: var(--accent); color: var(--accent); background: rgba(255,255,97,.08); box-shadow: 0 0 18px rgba(255,255,97,.2); }
.ob-foot .link { color: var(--muted); }

/* ---- ajustes: barra no tamanho do celular e estatísticas dentro do cartão ---- */
#tabs { max-width: 520px; margin: 0 auto; border-radius: 26px 26px 0 0; border-left: 1px solid rgba(255,255,255,.08); border-right: 1px solid rgba(255,255,255,.08); }
.card .stat { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; border-radius: 0; }
.card .stats { gap: 16px; }

/* ---- caber em qualquer largura de celular (320 a 430+) ---- */
.scene svg { width: 100%; height: auto; aspect-ratio: 335 / 130; }
.ob-svg { overflow: hidden; }
.tiles > *, .stats > *, .acts > *, .grid3 > * { min-width: 0; }
html, body { max-width: 100vw; overflow-x: clip; }

/* iOS Safari: desfoque de fundo ignora o canto arredondado e deixa a borda "vazar"; isolar a camada corrige */
.card, .tl-card, .scene, .tile, .glass-sheet, #player, #tabs, .opt, .chip, input, select {
  isolation: isolate; transform: translateZ(0); -webkit-transform: translateZ(0);
}
.card, .tl-card, .tile, .glass-sheet { overflow: hidden; }
#sheet .panel { overflow-x: hidden; }

/* Amarelo da marca nos botões. */
button { --accent: #ffe04a; }

/* Limita o controle nativo de data à largura disponível no Safari/iOS. */
input[type="date"], input[type="datetime-local"] {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit { padding: 0; }
.cry-entry{font:inherit;color:var(--text);width:100%;display:flex;align-items:center;gap:14px;text-align:left;margin:20px 0;border:1px solid #ffe04a35;background:linear-gradient(120deg,#ffe04a10,#ffffff04);cursor:pointer}.cry-entry b{display:block;font-size:17px;font-weight:500}.cry-entry small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.cry-entry>span:last-child{margin-left:auto;font-size:27px;color:#ffe04a}.cry-entry-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#ffe04a15;color:#ffe04a;font-size:26px;flex:none}.cry-heading{margin:24px 0}.cry-heading h1{font-size:32px;margin:14px 0 12px}.cry-heading p{font-size:15px}.cry-badge{font-size:9px;letter-spacing:.13em;color:#ffe04a}.cry-capture{text-align:center;padding:28px 22px}.cry-mic{display:grid;place-items:center;width:100px;height:100px;background:#ffe04a12;color:#ffe04a;border:1px solid #ffe04a40;border-radius:50%;margin:5px auto 23px;font-size:42px}.cry-mic.recording{box-shadow:0 0 0 12px #ffe04a08}.cry-capture h2{margin:0 0 12px;font-size:21px}.cry-capture p{font-size:14px}.cry-capture .btn{margin-top:20px;background:#ffe04a}.cry-capture .btn.ghost{background:#ffffff15}.cry-status{font-size:14px;color:#ffbdac;margin-top:14px}.cry-status:empty{display:none}.cry-upload{font-size:12px;color:var(--muted);display:block;margin-top:18px;cursor:pointer}.cry-upload input{font-size:12px;margin-top:12px;min-height:0;padding:8px}.cry-result h2{margin:0 0 10px}.cry-scores{display:grid;gap:18px;margin:25px 0}.cry-scores>div{display:grid;grid-template-columns:1fr auto;gap:7px;font-size:16px}.cry-scores b{color:#ffe04a}.cry-track{grid-column:1/-1;height:8px;background:#ffffff12;border-radius:10px;overflow:hidden}.cry-track i{display:block;height:100%;background:linear-gradient(90deg,#caac31,#ffe04a);border-radius:inherit}.cry-privacy{line-height:1.7;margin:20px 4px}.cry-help{font-size:13px;margin:15px 4px}.cry-help p{margin-top:12px}.cry-help summary{cursor:pointer;color:var(--muted)}
.account-top{display:flex;justify-content:flex-end;margin:0 0 10px;min-height:56px}.account-menu{position:relative;flex:none;z-index:22}.account-menu summary{cursor:pointer;border:1px solid #ffffff20;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary:focus-visible{outline:2px solid #ffe04a;outline-offset:4px}.account-menu summary .art{pointer-events:none}.account-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:210px;padding:10px;background:#101e28;border:1px solid #ffffff20;border-radius:22px;box-shadow:0 15px 45px #0006}.account-name{display:block;overflow-wrap:anywhere;font-size:12px;color:var(--muted);padding:9px 12px 12px;border-bottom:1px solid #ffffff12;margin-bottom:6px}.account-dropdown button{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:13px;padding:14px 12px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;font-size:15px}.account-dropdown button:hover,.account-dropdown button:focus-visible{background:#ffffff0c}.account-dropdown .i{color:#ffe04a;flex:none}#tabs button[data-k="choro"]{font-size:10px;line-height:1.2;padding-inline:3px}
.cry-model{margin:10px 0 24px}.cry-model label{font-size:13px;color:var(--muted)}.cry-model select{font-size:15px}.cry-model p{margin-top:10px;font-size:12px}.cry-model-name{color:#ffe04a;margin-bottom:12px!important}.cry-example{margin:18px auto 12px;display:block;font-size:14px!important;color:#ffe04a!important}.cry-example+p{font-size:11px!important}
.cry-model p.cry-evaluation{padding:12px 14px;border:1px solid #ffe04a30;background:#ffe04a09;border-radius:14px;color:#e1cf8b;font-size:12px;line-height:1.6}

/* Navegação discreta, com seleção neutra e sem brilho. */
#tabs button{color:#9292aa;transition:color .16s ease;border-radius:14px}
#tabs button .t-ico{border-radius:12px;transition:background-color .16s ease,color .16s ease;box-shadow:none;filter:none}
#tabs button.on{color:#f8f8fc}
#tabs button:active .t-ico{background:rgba(255,255,255,.11)}
#tabs button:focus-visible{outline:2px solid #d6d6e3;outline-offset:-2px}
@media(hover:hover){#tabs button:not(.on):hover{color:#d6d6e3}#tabs button:not(.on):hover .t-ico{background:rgba(255,255,255,.035)}}
@media(prefers-reduced-motion:reduce){#tabs button,#tabs button .t-ico{transition:none}}
