@font-face { font-family: 'Playfair Display'; src: url(../fonts/playfair-display-normal.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(../fonts/playfair-display-italic.woff2) format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Great Vibes'; src: url(../fonts/great-vibes-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }

/* =====================================================================
   Liquid Glass — vidro fosco translúcido, borda especular, cantos contínuos
   ===================================================================== */
:root {
  --ele: #9aa8ff;
  --ela: #ff8ab8;
  --red: #ff2d4a;
  --ink: rgba(255, 255, 255, .96);
  --ink-2: rgba(255, 255, 255, .62);
  --ink-3: rgba(255, 255, 255, .4);
  --hair: rgba(255, 255, 255, .22);
  --serif: 'Playfair Display', 'New York', Georgia, serif;
  --script: 'Great Vibes', 'Playfair Display', cursive;
  --sf: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', Inter, system-ui, 'Segoe UI', sans-serif;
  --blur: blur(28px) saturate(185%);
  --r-lg: 34px; --r-md: 22px; --r-sm: 14px;
  --ease: cubic-bezier(.2, .9, .25, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #16040f; color: var(--ink);
  font-family: var(--sf); font-weight: 400; -webkit-font-smoothing: antialiased; user-select: none; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 80% 75% at 50% 55%, transparent 50%, rgba(20, 6, 30, .7) 100%); }
/* foco suave: as bordas da cena ficam desfocadas, como um sonho */
.dreamblur { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 56%, transparent 45%, #000 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 56%, transparent 45%, #000 100%); }
body.leve .dreamblur { display: none; }

/* ---------- material de vidro reutilizável ---------- */
.chip, .icon-btn, .track-bar, .turn, .roll, #toast, .panel, .card, .seg, .cta, .ghost, .wish, input, select {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 45%, rgba(255,255,255,.09) 100%);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--hair);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),      /* reflexo superior */
    inset 0 -1px 0 rgba(255,255,255,.08),
    inset 0 0 24px rgba(255,255,255,.04),
    0 10px 34px rgba(0, 0, 0, .35);
}
/* brilho especular em gradiente na borda (efeito "líquido") */
.panel::after, .card::after, .roll::after, .chip::after, .cta::after, .wish::after, #toast::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.75), rgba(255,255,255,.08) 30%, rgba(255,255,255,0) 55%, rgba(255,255,255,.25) 85%, rgba(255,255,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* vidro com tinta (vermelho / rosa) */
.cta, .roll {
  background: linear-gradient(135deg, rgba(255, 70, 100, .55) 0%, rgba(200, 10, 50, .38) 50%, rgba(255, 60, 90, .45) 100%);
  border-color: rgba(255, 170, 190, .35);
}

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5;
  padding: max(12px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
#hud > * { pointer-events: auto; }
.topbar { display: flex; align-items: center; gap: 8px; }
.chip { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; min-width: 0;
  transition: transform .5s var(--ease), background .4s, box-shadow .4s; }
.chip .sym { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; font-size: 15px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 10px rgba(0,0,0,.3); }
.chip.ele .sym { background: linear-gradient(160deg, #b8c0ff, #6a6ae0); }
.chip.ela .sym { background: linear-gradient(160deg, #ffb0d0, #e04a9a); }
.chip .nm { font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chip .pos { font-size: 12px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.ela { flex-direction: row-reverse; text-align: right; padding: 6px 6px 6px 14px; }
.chip:not(.on) { opacity: .78; }
.chip.on { transform: scale(1.02); }
.chip.on.ele { background: linear-gradient(135deg, rgba(150,160,255,.38), rgba(110,90,230,.18)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 30px rgba(91,157,255,.4), 0 10px 30px rgba(0,0,0,.3); }
.chip.on.ela { background: linear-gradient(135deg, rgba(255,140,190,.4), rgba(220,60,150,.2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 30px rgba(255,79,126,.45), 0 10px 30px rgba(0,0,0,.3); }
.mid-btns { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: transform .3s var(--ease); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.on { background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.25)); }
.icon-btn.on svg { stroke: #3a0614; }

.track { margin-top: 12px; padding: 0 4px; }
.track-bar { height: 10px; border-radius: 999px; padding: 2px; }
.track-bar::before { content: ''; position: absolute; inset: 2px; border-radius: 999px; opacity: .85;
  background: linear-gradient(90deg, #7a5cff, #b45cff, #e05cd0, #ff6aa8); box-shadow: 0 0 14px rgba(200, 100, 255, .45); }
.dot { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; transition: left .6s var(--ease);
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.6); }
.dot.ele { background: linear-gradient(160deg, #b8c0ff, #6a6ae0); } .dot.ela { background: linear-gradient(160deg, #ffb0d0, #e04a9a); }
.fase { margin: 10px auto 0; text-align: center; font-size: 12px; font-weight: 500; color: var(--ink-2); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.fase b { font: italic 600 17px var(--serif); color: #fff; }
.fase i { font-style: normal; }

.bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.turn { padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.turn b { font-weight: 600; color: #fff; }
.roll { display: flex; align-items: center; gap: 14px; padding: 10px 30px 10px 10px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -8px 20px rgba(120, 0, 30, .35), 0 0 40px rgba(255, 40, 80, .45), 0 14px 40px rgba(0,0,0,.4);
  transition: transform .35s var(--ease); animation: breathe 3s ease-in-out infinite; }
.roll:active { transform: scale(.95); }
.roll:disabled { opacity: .5; animation: none; filter: saturate(.3); }
.die-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font: 700 21px var(--serif); color: #ffe7a8;
  background: linear-gradient(145deg, rgba(255,120,140,.95), rgba(210,0,35,.9) 50%, rgba(110,0,20,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 8px rgba(0,0,0,.35), 0 4px 14px rgba(255, 20, 60, .6); transform: rotate(-10deg); }
@keyframes breathe { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -8px 20px rgba(120,0,30,.35), 0 0 64px rgba(255, 40, 80, .7), 0 14px 40px rgba(0,0,0,.4); } }

#toast { position: fixed; left: 50%; top: max(118px, calc(env(safe-area-inset-top) + 110px)); transform: translateX(-50%); z-index: 6;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 22px; text-align: center; font-size: 15px; font-weight: 600;
  pointer-events: none; animation: drop .5s var(--ease); }
@keyframes drop { from { transform: translate(-50%, -16px) scale(.94); opacity: 0 } }

/* ---------- Palco do dado ---------- */
#dice-layer { position: fixed; inset: 0; z-index: 8; pointer-events: auto; }
.dice-dim { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease, backdrop-filter .55s ease;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(60, 0, 18, .55) 0%, rgba(8, 0, 6, .88) 60%, rgba(0, 0, 0, .95) 100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%); backdrop-filter: blur(0px) saturate(100%); }
#dice-layer.in .dice-dim { opacity: 1; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
#dice-layer.out .dice-dim, #dice-layer.out #dice-stage, #dice-layer.out .dice-caption { opacity: 0; transition: opacity .45s ease; }
#dice-stage { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease .15s; }
#dice-layer.in #dice-stage { opacity: 1; }
#dice-stage canvas { display: block; width: 100%; height: 100%; }
.dice-caption { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; pointer-events: none;
  font: italic 600 64px var(--serif); color: #fff; opacity: 0; transform: translateY(14px);
  text-shadow: 0 0 24px rgba(255, 40, 80, .9), 0 0 60px rgba(255, 20, 60, .6); transition: opacity .5s ease, transform .6s var(--ease); }
.dice-caption.show { opacity: 1; transform: none; }

/* ---------- Telas ---------- */
.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; z-index: 10; overflow: auto;
  background: rgba(10, 0, 8, .35); animation: fade .4s ease; }
#setup { background: radial-gradient(ellipse at 50% 45%, rgba(20, 2, 12, .1), rgba(4, 0, 4, .55)); }
@keyframes fade { from { opacity: 0 } }
.panel { width: min(420px, 100%); max-height: 100%; padding: 26px 22px; border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 16px; animation: rise .6s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 40px rgba(255,255,255,.05), 0 30px 80px rgba(0,0,0,.55), 0 0 80px rgba(255, 40, 90, .15); }
@keyframes rise { from { transform: translateY(24px) scale(.97); opacity: 0 } }
.panel.scroll { overflow: auto; }
.panel.wide { width: min(780px, 100%); text-align: center; overflow: auto; }

.badges { display: flex; justify-content: center; gap: 6px; }
.badges span { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ink-2);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.logo { margin: 0; text-align: center; line-height: .9; display: flex; flex-direction: column; align-items: center; }
.logo .l1 { font: italic 800 76px var(--serif); letter-spacing: -.02em;
  background: linear-gradient(180deg, #ffffff 0%, #ffe3ea 45%, #ff9ab0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 20px rgba(255, 80, 120, .45)); }
.logo .l2 { font: 400 56px var(--script); margin-top: -6px; color: #fff; text-shadow: 0 0 14px rgba(255, 40, 90, 1), 0 0 34px rgba(255, 20, 70, .8), 0 2px 10px rgba(60, 0, 20, .8); }
.tag { text-align: center; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.names label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); padding-left: 4px; }
.names .ele span { color: #9cc2ff; } .names .ela span { color: #ff9ab4; }
input { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); color: #fff; font: 500 16px var(--sf);
  background: rgba(255,255,255,.08); box-shadow: inset 0 1px 3px rgba(0,0,0,.25); margin-left: -4px; }
input::placeholder { color: var(--ink-3); }
input:focus { outline: none; border-color: rgba(255,255,255,.5); box-shadow: inset 0 1px 3px rgba(0,0,0,.25), 0 0 0 4px rgba(255, 79, 126, .3); }
.opt > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); padding-left: 4px; }
/* controle segmentado estilo iOS */
.seg { display: flex; gap: 2px; margin-top: 7px; padding: 3px; border-radius: 16px;
  background: rgba(0,0,0,.22); box-shadow: inset 0 1px 3px rgba(0,0,0,.3); }
.seg button { flex: 1; padding: 8px 4px; border-radius: 13px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .35s var(--ease), color .35s, box-shadow .35s; }
.seg button small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.seg button.on { color: #fff; background: linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,.14));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 12px rgba(0,0,0,.3); }
.cta { padding: 16px; border-radius: 999px; font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -8px 18px rgba(120,0,30,.3), 0 0 34px rgba(255, 40, 80, .4), 0 12px 30px rgba(0,0,0,.35);
  transition: transform .3s var(--ease); }
.cta:active, .ghost:active, .wish:active { transform: scale(.96); }
.ghost { padding: 14px; border-radius: 999px; font-size: 16px; font-weight: 600; color: #fff; transition: transform .3s var(--ease); }
.link { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.fine { margin: 0; font-size: 11px; line-height: 1.5; text-align: center; color: var(--ink-3); }
h2 { margin: 0; text-align: center; font: italic 700 32px var(--serif); color: #fff; }
ol { padding-left: 22px; line-height: 1.6; margin: 0; color: rgba(255,255,255,.85); font-size: 15px; } ol b { color: #fff; }
.cats { padding-left: 0; list-style: none; margin: 6px 0; }
.cats li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.ci { display: inline-block; width: 28px; height: 28px; flex: none; border-radius: 50%; background: center/70% no-repeat, rgba(255,255,255,.1);
  border: 1px solid var(--hair); }
.c-ele { color: #9cc2ff !important } .c-ela { color: #ff9ab4 !important } .c-red { color: #ff6b80 !important }

/* ---------- Carta ---------- */
.card { --c: #ff3324; width: min(390px, 100%); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, rgba(255,255,255,.18)) 0%, rgba(255,255,255,.06) 45%, color-mix(in srgb, var(--c) 18%, rgba(255,255,255,.06)) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 50px rgba(255,255,255,.05), 0 0 80px color-mix(in srgb, var(--c) 40%, transparent), 0 40px 80px rgba(0,0,0,.55);
  animation: reveal .7s var(--ease); }
@keyframes reveal { from { transform: translateY(40px) scale(.9) rotateX(18deg); opacity: 0; filter: blur(10px) } }
.card-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px 4px; text-align: center; }
.card-head .ico { width: 72px; height: 72px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 58%, 100%;
  border: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 30px color-mix(in srgb, var(--c) 60%, transparent); }
.card-head .cat { font: italic 700 30px var(--serif); color: #fff; }
.fase-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--ink-2);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.card-who { padding: 12px 20px 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.card-who b { font-weight: 600; }
.card-text { margin: 0; padding: 10px 26px 10px; text-align: center; font: italic 500 clamp(21px, 5.6vw, 25px)/1.38 var(--serif); min-height: 110px;
  text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.timer { position: relative; width: 92px; height: 92px; margin: 2px auto 6px; cursor: pointer; border-radius: 50%;
  background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 5; } .timer .bg { stroke: rgba(255,255,255,.14); }
.timer .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 276.5; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 6px var(--c)); }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; gap: 10px; padding: 12px 18px 20px; }
.card-actions .ghost { flex: 1; font-size: 15px; }
.card-actions .cta { flex: 1.5; }

/* ---------- Final ---------- */
.crown svg { width: 62px; height: 62px; fill: #ff2d55; filter: drop-shadow(0 0 16px #ff2d55) drop-shadow(0 0 40px rgba(255, 45, 85, .6));
  animation: beat 1.3s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1) } 12% { transform: scale(1.14) } 24% { transform: scale(1) } 36% { transform: scale(1.1) } }
#final-sub { margin: 0; color: var(--ink-2); font-size: 15px; }
.wishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wish { padding: 20px 16px; border-radius: var(--r-md); text-align: center; font: italic 500 17px/1.4 var(--serif);
  transition: transform .4s var(--ease), box-shadow .4s; }
.wish:hover, .wish:focus-visible { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 40px rgba(255, 45, 85, .45), 0 16px 34px rgba(0,0,0,.4); }
.wish i { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%;
  font: 600 14px var(--sf); font-style: normal; color: #fff; background: linear-gradient(145deg, rgba(255,120,150,.9), rgba(210,0,50,.85));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 14px rgba(255, 30, 70, .5); }
.chosen-text { font: italic 600 28px/1.35 var(--serif); margin: 6px 0 20px; color: #fff; text-shadow: 0 0 26px rgba(255, 45, 85, .7); }

/* sem suporte a backdrop-filter: vidro mais opaco */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .card, .chip, .roll, .cta, .ghost, .wish, #toast { background-color: rgba(40, 8, 24, .9); }
}
@media (max-width: 640px) {
  .wishes { grid-template-columns: 1fr; }
  .logo .l1 { font-size: 66px; } .logo .l2 { font-size: 50px; }
  .chip .nm { font-size: 15px; }
  .chip .pos { display: none; }
  .fase i { display: none; }
}

/* ---------- Login, configurações e modo de teste ---------- */
.panel .gear { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; z-index: 2; }
.links { display: flex; justify-content: center; gap: 22px; }
.logo.small .l1 { font-size: 52px; } .logo.small .l2 { font-size: 40px; }
#lock form, #troca-senha { display: flex; flex-direction: column; gap: 10px; }
#lock input, #troca-senha input { margin-left: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: #ff4f7e; }
.group { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.group h3 { margin: 0; font: italic 600 19px var(--serif); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink-2); }
.row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.row input[type=range] { flex: 1; max-width: 60%; accent-color: #ff4f7e; }
select { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); color: #fff; font: 500 15px var(--sf); -webkit-appearance: none; appearance: none; }
select option { color: #000; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.18); transition: background .3s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .35s var(--ease); }
.switch input:checked + i { background: linear-gradient(135deg, #ff6a9a, #d0104a); }
.switch input:checked + i::after { transform: translateX(20px); }
.danger { color: #ff8a9a; }
#test-badge { position: fixed; left: 50%; bottom: max(96px, calc(env(safe-area-inset-bottom) + 90px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; z-index: 6; pointer-events: auto;
  background: rgba(30, 10, 40, .7); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-size: 13px; white-space: nowrap; }
#test-badge button { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 600; }
.row input[type=range] { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; height: 28px; }

/* ---------- Indicadores laterais ---------- */
.side { --c: #ff8ab8; position: fixed; top: 44%; z-index: 7; pointer-events: none; display: flex; align-items: center; gap: 10px;
  max-width: min(44vw, 260px); padding: 10px 16px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 34%, rgba(255,255,255,.12)), rgba(255,255,255,.05));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid color-mix(in srgb, var(--c) 55%, rgba(255,255,255,.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 30px color-mix(in srgb, var(--c) 45%, transparent), 0 10px 30px rgba(0,0,0,.35); }
.side.l { left: max(12px, env(safe-area-inset-left)); animation: sideL .55s var(--ease) both; }
.side.r { right: max(12px, env(safe-area-inset-right)); text-align: right; animation: sideR .55s var(--ease) .12s both; }
.side.out.l { animation: sideLout .45s ease forwards; } .side.out.r { animation: sideRout .45s ease forwards; }
@keyframes sideL { from { transform: translateX(-120%); opacity: 0 } }
@keyframes sideR { from { transform: translateX(120%); opacity: 0 } }
@keyframes sideLout { to { transform: translateX(-120%); opacity: 0 } }
@keyframes sideRout { to { transform: translateX(120%); opacity: 0 } }
.side-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; background: center/70% no-repeat, rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.35); }
.side small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.side b { display: block; font: italic 600 19px/1.15 var(--serif); color: #fff; text-shadow: 0 0 14px var(--c); }
@media (max-width: 640px) { .side { top: 40%; padding: 8px 12px; } .side b { font-size: 16px; } .side-ico { width: 32px; height: 32px; } }

/* =====================================================================
   Layout responsivo das telas
   celular: folhas de tela cheia, com o botão principal preso embaixo
   desktop: painéis largos em colunas, sem espaço desperdiçado
   ===================================================================== */
.hero, .form { display: flex; flex-direction: column; gap: 16px; }
.sheet-head { display: flex; align-items: center; justify-content: center; position: relative; }
.sheet-head .close { position: absolute; right: 0; width: 38px; height: 38px; }
.groups, .groups > .col { display: flex; flex-direction: column; gap: 14px; }
.sheet-foot { display: flex; flex-direction: column; }
#menu .panel { gap: 12px; }

/* tablet e telas médias: um pouco mais de largura e grupos em duas colunas */
@media (min-width: 641px) {
  .screen { padding: 28px; }
  .sheet { width: min(760px, 100%); }
  .groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; gap: 16px; }
  /* cabeçalho e rodapé ficam visíveis enquanto o conteúdo rola */
  .panel.sheet { padding-top: 0; padding-bottom: 0; }
  .sheet-head, .sheet-foot, .rules-panel > h2 { position: sticky; z-index: 3; margin: 0 -28px; padding: 22px 28px 12px;
    background: linear-gradient(rgba(26, 6, 24, .72), rgba(26, 6, 24, .5)); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
  .sheet-head, .rules-panel > h2 { top: 0; }
  .sheet-foot { bottom: 0; padding: 14px 28px 22px; flex-direction: row; justify-content: flex-end; }
  .sheet-foot .cta { min-width: 220px; }
  .panel.sheet { padding-left: 28px; padding-right: 28px; }
}

/* desktop */
@media (min-width: 900px) {
  .screen { padding: 40px; }
  .panel.duo { width: min(1080px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 0; padding: 0; }
  .panel.duo .hero { padding: 56px 48px; gap: 22px; border-right: 1px solid rgba(255,255,255,.12); height: 100%; justify-content: center; }
  .panel.duo .form { padding: 52px 52px 44px; gap: 20px; }
  .panel.duo .logo .l1 { font-size: 112px; } .panel.duo .logo .l2 { font-size: 82px; margin-top: -10px; }
  .panel.duo .logo.small .l1 { font-size: 88px; } .panel.duo .logo.small .l2 { font-size: 64px; }
  .panel.duo .tag { font-size: 19px; max-width: 30ch; margin: 0 auto; }
  .panel.duo .form h2 { text-align: left; }
  .panel.duo .gear { top: 20px; right: 20px; }
  .names input { padding: 14px 16px; font-size: 17px; }
  .seg button { padding: 11px 6px; font-size: 15px; }
  .cta { padding: 18px; font-size: 18px; }

  .sheet { width: min(1100px, 100%); max-height: min(88vh, 880px); }
  .groups { gap: 18px; padding: 6px 0 4px; }
  .groups > .col { gap: 18px; }
  .group { padding: 20px; gap: 14px; }
  .group h3 { font-size: 22px; }
  .row { font-size: 15px; }
  #settings h2, .rules-panel > h2 { font-size: 38px; }

  .rules-panel { width: min(1000px, 100%); }
  .rules-panel ol { columns: 2; column-gap: 48px; font-size: 16px; padding: 8px 0 8px 22px; }
  .rules-panel ol > li { break-inside: avoid; margin-bottom: 12px; }

  #menu .panel { width: min(460px, 100%); padding: 34px 30px; }
  .card { width: min(520px, 100%); }
  .card-head .ico { width: 88px; height: 88px; }
  .card-head .cat { font-size: 36px; }
  .card-text { font-size: 30px; min-height: 160px; padding: 14px 40px; }
  .card-actions { padding: 16px 28px 28px; }
  .panel.wide { width: min(1000px, 100%); padding: 40px 44px; }
  .wish { padding: 28px 22px; font-size: 19px; }
}

/* celular: cada tela ocupa o aparelho inteiro, como uma folha do iOS */
@media (max-width: 640px) {
  .screen { padding: 0; place-items: stretch; }
  .screen > .panel { width: 100%; min-height: 100%; max-height: none; border-radius: 0; border: 0; justify-content: center;
    padding: max(22px, calc(env(safe-area-inset-top) + 14px)) 20px max(22px, calc(env(safe-area-inset-bottom) + 14px));
    background-color: rgba(14, 3, 14, .35); animation: fade .4s ease; }
  .screen > .panel::after { display: none; }
  .panel .gear { top: max(14px, calc(env(safe-area-inset-top) + 6px)); }
  /* telas com rolagem: o conteúdo rola e o botão principal fica preso embaixo */
  .screen > .panel.sheet { height: 100%; justify-content: flex-start; padding-top: 0; padding-bottom: 0; }
  .sheet-head, .rules-panel > h2 { position: sticky; top: 0; z-index: 3; margin: 0 -20px; padding: max(16px, calc(env(safe-area-inset-top) + 8px)) 20px 12px;
    background: rgba(22, 5, 20, .6); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
  .sheet-head .close { right: 0; }
  .sheet-foot { position: sticky; bottom: 0; z-index: 3; margin: auto -20px 0; padding: 14px 20px max(16px, calc(env(safe-area-inset-bottom) + 8px));
    background: linear-gradient(rgba(22, 5, 20, 0), rgba(22, 5, 20, .75) 35%); }
  /* pausa: folha que sobe de baixo, no estilo iOS */
  #menu { place-items: end stretch; }
  #menu .panel { min-height: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; animation: rise .5s var(--ease); }
  .card { width: 100%; }
  .card-actions .cta, .card-actions .ghost { padding: 16px; }
}

/* =====================================================================
   Abertura e transições
   ===================================================================== */
/* abertura (#splash): o estilo fica embutido no index.html para aparecer já no primeiro quadro */
/* a cena surge da escuridão quando está pronta */
#stage { opacity: 0; transition: opacity 1.6s ease .2s; }
body.ready #stage { opacity: 1; }

/* saída das telas (a entrada já usa fade + rise) */
.screen.leaving { animation: fadeOut .28s ease forwards; pointer-events: none; }
.screen.leaving > .panel, .screen.leaving > .card { animation: sink .28s ease forwards; }
@keyframes fadeOut { to { opacity: 0 } }
@keyframes sink { to { transform: translateY(14px) scale(.98); opacity: 0; filter: blur(4px) } }

/* número do dado: surge de dentro da luz */
.dice-caption { filter: blur(10px); letter-spacing: .2em; transition: opacity .6s ease, transform .8s var(--ease), filter .7s ease, letter-spacing .9s var(--ease); }
.dice-caption.show { filter: none; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}

/* painéis grandes: um pouco mais de tinta para o texto não brigar com o tabuleiro */
@media (min-width: 641px) {
  .panel.duo, .panel.sheet, .panel.wide { background-color: rgba(18, 4, 16, .5); }
  .groups { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .sheet:not(.rules-panel) { width: min(980px, 100%); }
}
/* categorias em "Como jogar": ícone à esquerda e o texto corre livre */
.cats li { display: block; position: relative; padding-left: 38px; min-height: 28px; line-height: 1.5; }
.cats .ci { position: absolute; left: 0; top: 0; }
@media (max-width: 640px) {
  /* a carta continua sendo uma carta: centralizada, com respiro em volta */
  #card { place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
}
/* login no celular: rola sempre que faltar altura (nada se sobrepõe); com o teclado aberto a marca encolhe */
@media (max-width: 640px) {
  #lock .panel { justify-content: flex-start; gap: 18px; min-height: 100%; }
  #lock .hero { flex: 1 0 auto; justify-content: center; align-items: center; gap: 8px; padding: 8px 0 0; transition: padding .3s var(--ease); }
  #lock .logo.small .l1 { font-size: 60px; transition: font-size .3s var(--ease); }
  #lock .logo.small .l2 { font-size: 46px; transition: font-size .3s var(--ease); }
  #lock .form { flex: none; gap: 12px; }
  #lock .form h2 { text-align: left; font-size: 28px; margin-bottom: -2px; }
  #lock input { padding: 15px 16px; font-size: 17px; }
  #lock .cta { padding: 17px; }
  #lock .ou { margin: 2px 0; }
  html.teclado #lock .hero { flex: none; padding: 0; }
  html.teclado #lock .hero .tag { display: none; }
  html.teclado #lock .logo.small .l1 { font-size: 38px; }
  html.teclado #lock .logo.small .l2 { font-size: 30px; }
}
/* campo de senha com o olho para mostrar */
.campo-senha { position: relative; }
.campo-senha input { padding-right: 52px !important; }
.olho { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.olho svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.olho.on svg { stroke: #ff9ab4; }

/* =====================================================================
   Noite do casal: o que vale hoje, nossas cartas, lembrança
   ===================================================================== */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border-radius: var(--r-md); text-align: left;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: background .3s, transform .3s var(--ease); }
.tile-btn:hover { background: rgba(255,255,255,.12); }
.tile-btn:active { transform: scale(.97); }
.tile-btn b { font-size: 14px; font-weight: 600; color: #fff; }
.tile-btn small { font-size: 12px; color: var(--ink-2); }
.tile-btn::after { content: '›'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ink-3); }
.tile-btn { position: relative; padding-right: 30px; }
.lead { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; text-align: center; }

.limites { display: flex; flex-direction: column; gap: 10px; }
.limite { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.limite b { display: block; font: italic 600 19px var(--serif); color: #fff; }
.limite small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.limite:has(input:not(:checked)) { opacity: .62; }

.cartas-grid { display: flex; flex-direction: column; gap: 14px; }
.group h3 small { font: 500 14px var(--sf); color: var(--ink-3); }
textarea { width: 100%; resize: vertical; min-height: 84px; padding: 12px 14px; border-radius: var(--r-sm); color: #fff; font: 500 16px/1.45 var(--sf);
  background: rgba(255,255,255,.08); border: 1px solid var(--hair); box-shadow: inset 0 1px 3px rgba(0,0,0,.25); user-select: text; }
textarea::placeholder { color: var(--ink-3); }
textarea:focus { outline: none; border-color: rgba(255,255,255,.5); box-shadow: inset 0 1px 3px rgba(0,0,0,.25), 0 0 0 4px rgba(255, 79, 126, .3); }
#nova-carta .seg { margin-top: 0; }
#nova-carta .seg button { font-size: 13px; }
.lista-cartas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.lista-cartas li { position: relative; padding: 12px 40px 12px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.lista-cartas li.vazio { padding: 18px; text-align: center; color: var(--ink-3); font-size: 14px; }
.lista-cartas p { margin: 6px 0 0; font: italic 500 16px/1.4 var(--serif); color: #fff; }
.lista-cartas button { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; color: var(--ink-2); background: rgba(255,255,255,.08); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.tag.t-verdade { color: #ff9ac4; } .tag.t-desafio { color: #ff8a96; }

.memoria { margin: 4px 0 18px; }
.memoria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.memoria-grid div { padding: 12px 6px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.memoria-grid b { display: block; font: italic 700 26px var(--serif); color: #fff; }
.memoria-grid small { display: block; font-size: 12px; color: var(--ink-2); }
.final-actions { display: flex; gap: 10px; justify-content: center; }
.final-actions > * { flex: 1; max-width: 280px; }

@media (min-width: 900px) {
  .cartas-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 18px; }
  .limites { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  #limites .sheet { width: min(860px, 100%); }
  .lead { font-size: 16px; max-width: 60ch; margin: 0 auto; }
}
@media (max-width: 640px) {
  .final-actions { flex-direction: column; align-items: stretch; }
  .final-actions > * { max-width: none; }
  .tile-btn b { font-size: 13px; }
}

/* login: entrar sem conta */
.ou { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ou::before, .ou::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); }
.ghost.visitante { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 13px 16px; }
.ghost.visitante b { font-size: 16px; font-weight: 600; }
.ghost.visitante small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
#lk-demo { align-self: center; }
.link.destaque { color: #ff9ab4; }

/* =====================================================================
   Jeito de app nativo
   ===================================================================== */
html, body { overscroll-behavior: none; -webkit-touch-callout: none; touch-action: manipulation; background-color: #16040f; }
input, textarea { -webkit-touch-callout: default; }
button, .tile-btn, .limite, .wish { -webkit-user-select: none; user-select: none; }
/* app instalado: sem cursor de texto em nada que não seja campo */
.app body { cursor: default; }

#instalar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(60, 14, 44, .88), rgba(24, 6, 22, .9)); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.3);
  animation: sobeConvite .6s var(--ease) both; }
@keyframes sobeConvite { from { transform: translate(-50%, 30px); opacity: 0 } }
#instalar img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
#instalar div { flex: 1; min-width: 0; }
#instalar b { display: block; font-size: 15px; font-weight: 600; }
#instalar small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
#instalar small b { display: inline; font-size: 12px; color: #fff; }
#instalar .cta { padding: 10px 16px; font-size: 14px; flex: none; }
#instalar .fechar { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; font-size: 16px; line-height: 1;
  background: rgba(30, 8, 26, .95); border: 1px solid rgba(255,255,255,.2); color: var(--ink-2); }

/* celular: rodapé fixo em vidro escuro (o conteúdo que passa por baixo não embaralha o botão) */
@media (max-width: 640px) {
  .sheet-foot { background: rgba(20, 5, 18, .82); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
  .panel.sheet { padding-bottom: 0; }
}
/* celular com pouca altura (iPhone SE, Safari com barras): marca compacta para o essencial caber sem rolar */
@media (max-width: 640px) and (max-height: 720px) {
  #lock .logo.small .l1 { font-size: 46px; } #lock .logo.small .l2 { font-size: 36px; }
  #lock .hero .tag { font-size: 13px; }
  #lock .panel { gap: 12px; }
  #lock input { padding: 13px 15px; }
  #lock .cta { padding: 15px; }
  #setup .logo .l1 { font-size: 50px; } #setup .logo .l2 { font-size: 38px; }
  #setup .panel { gap: 12px; }
  #setup .badges { display: none; }
  .tag { font-size: 13px; }
}
/* celular: telas de conteúdo em fluxo normal. O painel tem no mínimo a altura da tela e cresce com o conteúdo,
   então nunca transborda para cima (parte inalcançável) — rola normalmente. Carta e pausa seguem centralizada/folha. */
@media (max-width: 640px) {
  .screen:not(#card):not(#menu) { display: block; }
  .screen:not(#card):not(#menu) > .panel:not(.sheet) { min-height: 100%; }
}

/* =====================================================================
   Direção "veneno": vidro fumê escuro, fios de luz rosa-sangue, veludo carmim.
   Sem reflexo branco e sem aspecto de borracha: mistério em vez de brilho.
   ===================================================================== */
:root {
  --ink: #f6e8ee;
  --ink-2: rgba(246, 222, 232, .62);
  --ink-3: rgba(246, 210, 225, .38);
  --hair: rgba(255, 110, 150, .16);
  --fio: rgba(255, 120, 160, .26);      /* contorno fino quente */
  --fumê: rgba(16, 3, 12, .58);         /* vidro escuro */
  --veludo: linear-gradient(160deg, #8e1236 0%, #5a0a24 55%, #2e0412 100%);
  --rubi: 0 0 0 1px rgba(255, 70, 110, .35), 0 0 28px rgba(200, 20, 60, .35);
}
.chip, .icon-btn, .track-bar, .turn, #toast, .panel, .card, .seg, .ghost, .wish, input, select, textarea {
  background: linear-gradient(160deg, rgba(40, 8, 28, .62) 0%, var(--fumê) 55%, rgba(30, 5, 20, .6) 100%);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 140, 170, .07), 0 14px 40px rgba(0, 0, 0, .5);
}
/* o contorno "líquido" vira um fio de luz quente, sem branco */
.panel::after, .card::after, .roll::after, .chip::after, .cta::after, .wish::after, #toast::after {
  background: linear-gradient(140deg, rgba(255, 120, 160, .45), rgba(255, 80, 120, .06) 30%, transparent 55%, rgba(170, 40, 90, .2) 85%, rgba(255, 120, 160, .32));
}
.panel { box-shadow: inset 0 1px 0 rgba(255, 140, 170, .08), 0 30px 90px rgba(0, 0, 0, .65), 0 0 90px rgba(150, 10, 50, .18); }
.panel.duo, .panel.sheet, .panel.wide { background-color: rgba(10, 2, 8, .55); }
@media (max-width: 640px) { .screen > .panel { background-color: rgba(8, 1, 6, .5); } }

/* botões principais: veludo carmim com brasa por dentro */
.cta, .roll {
  background: var(--veludo); border-color: rgba(255, 90, 130, .35);
  box-shadow: inset 0 1px 0 rgba(255, 150, 175, .22), inset 0 -10px 22px rgba(30, 0, 10, .55), 0 0 30px rgba(190, 15, 55, .38), 0 12px 30px rgba(0, 0, 0, .5);
  text-shadow: 0 1px 8px rgba(60, 0, 20, .6);
}
@keyframes breathe { 50% { box-shadow: inset 0 1px 0 rgba(255, 150, 175, .22), inset 0 -10px 22px rgba(30, 0, 10, .55), 0 0 52px rgba(210, 20, 65, .6), 0 12px 30px rgba(0, 0, 0, .5); } }
.ghost { color: var(--ink); }
.ghost:hover, .tile-btn:hover { border-color: rgba(255, 110, 150, .32); }

/* seletores e interruptores: vinho com luz de rubi, sem pílula branca */
.seg { background: rgba(0, 0, 0, .35); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .5); border-color: rgba(255, 110, 150, .1); }
.seg button.on { color: #fff; background: linear-gradient(160deg, rgba(150, 20, 60, .75), rgba(80, 8, 34, .8));
  box-shadow: inset 0 1px 0 rgba(255, 150, 180, .2), 0 0 16px rgba(200, 20, 60, .35); }
.switch i { background: rgba(0, 0, 0, .4); box-shadow: inset 0 0 0 1px rgba(255, 110, 150, .16); }
.switch i::after { background: linear-gradient(160deg, #f4d3dc, #c98a9c); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.switch input:checked + i { background: linear-gradient(135deg, #a3123d, #5c0822); box-shadow: inset 0 0 0 1px rgba(255, 90, 130, .4), 0 0 14px rgba(200, 20, 60, .4); }
input, textarea { background: rgba(0, 0, 0, .32); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .45); }
input:focus, textarea:focus { border-color: rgba(255, 90, 130, .55); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .45), 0 0 0 4px rgba(170, 15, 55, .3); }
.row input[type=range] { accent-color: #c4164c; }
.check input { accent-color: #c4164c; }
.icon-btn.on { background: linear-gradient(160deg, rgba(150, 20, 60, .8), rgba(80, 8, 34, .85)); }
.icon-btn.on svg { stroke: #fff; }
.tile-btn, .group, .limite, .memoria-grid div, .lista-cartas li, .badges span, .fase-tag {
  background: rgba(0, 0, 0, .26); border-color: rgba(255, 110, 150, .12); }
.group h3, .limite b { color: #f8dce6; }
/* títulos com brilho de brasa, não de neon branco */
h2 { color: #f8e1e9; text-shadow: 0 0 24px rgba(200, 20, 60, .35); }
.logo .l1 { background: linear-gradient(180deg, #fbe6ec 0%, #f0a8bb 55%, #b8355d 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 18px rgba(170, 10, 50, .55)); }
.logo .l2 { color: #ffd9e3; text-shadow: 0 0 12px rgba(220, 20, 70, .9), 0 0 30px rgba(150, 0, 45, .8), 0 2px 10px rgba(30, 0, 10, .9); }
.card { box-shadow: inset 0 1px 0 rgba(255, 140, 170, .1), 0 0 70px color-mix(in srgb, var(--c) 28%, transparent), 0 40px 90px rgba(0, 0, 0, .7); }
.vignette { background: radial-gradient(ellipse 78% 72% at 50% 55%, transparent 40%, rgba(6, 0, 6, .82) 100%); }
#instalar { background: linear-gradient(160deg, rgba(40, 8, 28, .92), rgba(12, 2, 10, .94)); border-color: var(--hair); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
/* número do dado em ouro velho com brasa (sem neon branco) e fundo mais escuro durante a rolagem */
.dice-caption { color: #f0d49a; text-shadow: 0 0 18px rgba(200, 20, 60, .9), 0 0 50px rgba(120, 0, 40, .8); }
.dice-dim { background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(50, 0, 16, .6) 0%, rgba(6, 0, 4, .92) 60%, rgba(0, 0, 0, .97) 100%); }
/* logo: o itálico do "Noite" e os floreios do "a Dois" passam da caixa do texto; o degradê recortado (background-clip)
   cortava essas pontas. A folga lateral deixa as letras inteiras, e a margem negativa mantém o logo no lugar. */
.logo .l1 { padding: 0 .16em .06em; margin-inline: -.16em; margin-bottom: -.06em; }
.logo .l2 { padding-inline: .2em; margin-inline: -.2em; }
/* símbolos de ele e ela desenhados (SVG): centrados de verdade em qualquer aparelho */
svg.gen { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.2em; margin-right: .3em; flex: none; }
.chip .sym svg.gen { width: 19px; height: 19px; margin: 0; vertical-align: 0; display: block; }
.names label span { display: inline-flex; align-items: center; }
/* rolagem: fundo bem escuro e sensual, sem halo claro */
.dice-dim { background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(36, 0, 12, .7) 0%, rgba(4, 0, 3, .95) 62%, #000 100%); }

/* =====================================================================
   Painéis estilo RPG: último lance e avisos laterais
   moldura dupla em ouro-rosé, cantos em losango, rótulo em versalete
   ===================================================================== */
.rpg, .side {
  --ouro: rgba(232, 168, 150, .55);
  background: linear-gradient(170deg, rgba(36, 8, 24, .9), rgba(10, 2, 8, .92));
  border: 1px solid var(--ouro); border-radius: 10px;
  box-shadow: inset 0 0 0 3px rgba(10, 2, 8, .9), inset 0 0 0 4px rgba(232, 120, 150, .22), 0 0 26px rgba(200, 30, 80, .25), 0 12px 30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.rpg::before, .rpg::after, .side::before, .side::after { content: ''; position: absolute; width: 7px; height: 7px; transform: rotate(45deg);
  background: #e8a896; box-shadow: 0 0 8px rgba(255, 110, 150, .8); }
.rpg::before, .side::before { top: -4px; left: 50%; margin-left: -3.5px; }
.rpg::after, .side::after { bottom: -4px; left: 50%; margin-left: -3.5px; }

#dado-hud { position: fixed; z-index: 6; left: max(12px, env(safe-area-inset-left)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 4px);
  width: 86px; padding: 8px 6px 9px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; }
#dado-hud small { font-size: 8px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: #e8a896; }
#dado-hud .pedra { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
#dado-hud img { position: absolute; inset: -8px; width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 80, 130, .55)); }
#dado-hud b { line-height: 1; margin-top: -2px; font: italic 700 20px var(--serif); color: #fff3f6; text-shadow: 0 0 10px rgba(255, 60, 110, .9); }
#dado-hud .quem { font-size: 11px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dado-hud .quem i { font-style: normal; }
#dado-hud.novo { animation: lance .7s var(--ease); }
#dado-hud.novo img { animation: brilhoLance 1.4s ease-out; }
@keyframes lance { from { transform: translateX(-24px) scale(.9); opacity: 0 } }
@keyframes brilhoLance { 0% { filter: drop-shadow(0 0 22px rgba(255, 90, 140, 1)) brightness(1.4) } 100% { filter: drop-shadow(0 0 10px rgba(255, 80, 130, .55)) } }

/* avisos laterais no mesmo estilo */
.side { border-radius: 10px; padding: 10px 16px; }
.side small { color: #e8a896; letter-spacing: .18em; }
.side b { color: #fff0f4; text-shadow: 0 0 12px var(--c); }
.side-ico { border-color: var(--ouro); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); }

@media (max-width: 640px) {
  #dado-hud { width: 72px; padding: 7px 5px 8px; }
  #dado-hud .pedra { width: 54px; height: 54px; }
  #dado-hud img { inset: -6px; width: 66px; height: 66px; }
  #dado-hud b { font-size: 18px; }
}

/* aviso de versão nova: pílula de vidro discreta embaixo, no estilo do resto */
#atualizar { position: fixed; z-index: 31; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 4px); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border-radius: 999px;
  background: linear-gradient(160deg, rgba(40, 8, 28, .92), rgba(12, 2, 10, .94)); border: 1px solid var(--hair);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 24px rgba(180, 20, 60, .2);
  font-size: 14px; color: var(--ink); animation: sobeConvite .5s var(--ease) both; }
#atualizar svg { width: 17px; height: 17px; flex: none; fill: #ff8aa8; filter: drop-shadow(0 0 6px rgba(255, 60, 110, .7)); }
#atualizar .cta { padding: 8px 14px; font-size: 13px; }
#atualizar .cta:disabled { opacity: .7; }
@media (max-width: 640px) { #atualizar span { font-size: 13px; } }
