/* Trei zile nemaipomenite, jocul complet (M1). Aspectul prototipului B: fără casete, chenare sau pastile, text direct pe imagine. */
:root {
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --barh: 66px;
}

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

html, body {
  margin: 0; height: 100%;
  background: #f6e8cd;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none; /* fără zoom accidental, fără derulare: glisările sunt ale jocului */
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
img { -webkit-user-drag: none; user-select: none; }

/* coloana 9:16 centrată (pe telefon umple tot ecranul) */
#col {
  position: relative;
  height: 100vh; height: 100dvh;
  width: min(100vw, calc(100vh * 9 / 16));
  width: min(100vw, calc(100dvh * 9 / 16));
  margin: 0 auto;
  overflow: hidden;
  background: #fbf1dc;
  font-family: var(--sans);
  color: var(--ink);
  --ink: #7b3708;
  --gold: #a35d05;
  --sh: 0 0 2px rgba(255,249,232,1), 0 0 9px rgba(255,249,232,.95), 0 1px 18px rgba(255,244,214,.85);
}
#col[data-screen="room"], #col[data-screen="ball"] {
  --ink: #5a2806;
  --gold: #9a5404;
  --sh: 0 0 2px rgba(255,249,232,1), 0 0 8px rgba(255,249,232,.95), 0 0 18px rgba(255,244,214,.9);
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.hidden { display: none !important; }
.fail { position: absolute; inset: 40% 8% auto; text-align: center; font-family: var(--serif); font-size: 26px; font-weight: 700; color: #7b3708; }

/* ecrane */
.screen {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.screen.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .5s ease, visibility 0s; }

.stage { position: absolute; top: 0; transform-origin: 0 0; will-change: transform; }
.stage > .bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* text de bază */
.line, #back, #timer, #intro, #big, #end p, .textlink, #switch span, .day, #day-prog, #run-msg,
#sg-title, .sg-t, .sg-n, #sg-hint, #sg-top, #sg-msg, #sg-ins, #sg-result p {
  color: var(--ink); text-shadow: var(--sh);
}

/* elemente comune */
#back {
  position: absolute; z-index: 60;
  left: 4px; top: calc(var(--barh) + var(--st) - 4px);
  min-height: 52px; padding: 0 10px;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  display: flex; align-items: center;
}
#col[data-screen="plate"] #back { display: none; }

.textlink {
  padding: 8px 10px 14px; min-height: 56px; font-family: var(--serif); font-size: 28px; font-weight: 700; white-space: nowrap;
  background-image: linear-gradient(90deg, rgba(240,180,60,0), #f0b43c 20%, #ffd978 50%, #f0b43c 80%, rgba(240,180,60,0));
  background-repeat: no-repeat; background-position: 50% calc(100% - 6px); background-size: 100% 2px;
  animation: underline 2.4s ease-in-out infinite alternate;
}
@keyframes underline { from { background-size: 30% 2px; } to { background-size: 100% 2px; } }
.textlink.small { font-size: 21px; min-height: 42px; padding: 4px 10px 10px; }
.big { font-size: 32px; }

/* ---------- ecran 1: planșa ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.housenr { position: absolute; left: 35.6%; top: 76.2%; width: 3.4%; height: auto; transform: rotate(1.2deg); filter: drop-shadow(0 1px 1px rgba(70,35,10,.35)); pointer-events: none; }
.ss-txt { font-family: "DIN Condensed", "DIN Alternate", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; letter-spacing: .02em; }

#plate-zones { position: absolute; inset: 0; pointer-events: none; }
.pzone { position: absolute; pointer-events: none; }
.pzone .ring {
  display: none; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(255,214,120,.9), 0 0 16px 5px rgba(255,200,90,.55), inset 0 0 14px 2px rgba(255,214,120,.35);
  animation: ring 2.6s ease-in-out infinite;
}
.pzone.open .ring { display: block; }
@keyframes ring {
  0%, 100% { transform: scale(.94); opacity: .5; }
  50%      { transform: scale(1.06); opacity: .95; }
}

#plate-top {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(var(--barh) + var(--st) - 6px);
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  transition: opacity .4s ease;
}
#plate-top > * { pointer-events: auto; position: relative; }
#plate-top::before, #plate-links::before {
  content: ""; position: absolute; left: -15%; right: -15%; top: -10px; bottom: -30px; pointer-events: none;
  background: radial-gradient(ellipse 60% 62% at 50% 45%, rgba(255,250,236,.92) 0%, rgba(255,250,236,.62) 55%, rgba(255,250,236,0) 100%);
}
#days { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.day {
  font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1; padding: 8px 10px 14px; min-height: 52px;
  transition: font-size .25s ease; opacity: .85;
}
.day.on {
  font-size: 36px; color: var(--gold); opacity: 1;
  background-image: linear-gradient(90deg, rgba(240,180,60,0), #f0b43c 20%, #ffd978 50%, #f0b43c 80%, rgba(240,180,60,0));
  background-repeat: no-repeat; background-position: 50% calc(100% - 6px); background-size: 100% 2px;
  animation: underline 2.4s ease-in-out infinite alternate;
}
.dsep { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold); opacity: .6; text-shadow: var(--sh); }
#atena-link { margin-top: -6px; }
#day-prog { margin: -2px 0 0; font-size: 17px; font-weight: 600; text-align: center; }

#plate-links {
  position: absolute; z-index: 20; left: 0; right: 0; bottom: calc(6px + var(--sb));
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  transition: opacity .4s ease;
}
#plate-links::before { top: -26px; bottom: -10px; }
#plate-links > * { pointer-events: auto; position: relative; font-size: 26px; min-height: 52px; padding: 6px 10px 12px; }
#s-plate.zooming #plate-top, #s-plate.zooming #plate-links { opacity: 0; }

/* ---------- ecran 2: camera ---------- */
#room-stage.nobg { background: linear-gradient(180deg, #f9e9c8 0%, #ecd0a0 55%, #cfa569 100%); }
.zone { position: absolute; cursor: pointer; }
.obj { position: absolute; translate: -50% 0; transform-origin: 50% 100%; }
.obj > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; object-fit: contain; object-position: 50% 100%; }
.obj.hit { cursor: pointer; }
.obj.hit::after { content: ""; position: absolute; inset: -10px; }
.obj.nohit { pointer-events: none; }
.obj.hint > img { animation: hint 1.6s ease-in-out infinite; }
@keyframes hint {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255,214,120,0)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255,224,140,.95)); }
}
.hglow {
  display: none; position: absolute; inset: -14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,226,150,.55) 0%, rgba(255,200,100,.25) 45%, rgba(255,190,90,0) 72%);
  animation: hg 1.6s ease-in-out infinite;
}
.hint > .hglow { display: block; }
@keyframes hg { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }

/* obiectul care se deschide: închis → deschis, cu o mică rotire a ușii */
.opener .o-closed { transform-origin: 0 50%; transition: opacity .35s ease, transform .45s ease; }
.opener .o-open { opacity: 0; transform: perspective(500px) rotateY(-18deg) scaleX(.9); transform-origin: 0 50%; transition: opacity .35s ease, transform .5s ease; }
.opener.open .o-open { opacity: 1; transform: none; }
.opener.open .o-closed { opacity: 0; transform: perspective(500px) rotateY(-70deg); }
.opener.flip .o-open { transform: scaleX(-1) perspective(500px) rotateY(18deg) scaleX(.9); transform-origin: 50% 50%; }
.opener.flip.open .o-open { transform: scaleX(-1); }

.sway { animation: sway 1s ease-in-out 2; }
@keyframes sway { 0% { transform: rotate(0); } 25% { transform: rotate(15deg); } 75% { transform: rotate(-15deg); } 100% { transform: rotate(0); } }
.hop { animation: hop .8s ease-out 1; }
@keyframes hop { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-26%) rotate(-6deg); } 50% { transform: translateY(0); } 75% { transform: translateY(-16%) rotate(5deg); } }
.nod { animation: nod .5s ease-out 1; }
@keyframes nod { 0% { transform: scale(1); } 30% { transform: scale(1.04, .94); } 60% { transform: scale(.98, 1.04); } 100% { transform: scale(1); } }
.jig { animation: jig .55s ease-in-out 1; }
@keyframes jig { 0%,100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-4deg) scale(1.05); } 50% { transform: rotate(4deg) scale(1.05); } 80% { transform: rotate(-2deg); } }
.shake { animation: shake .5s linear 1; }
@keyframes shake { 0%,100% { transform: translateX(0); } 15% { transform: translateX(-6px) rotate(-2deg); } 35% { transform: translateX(6px) rotate(2deg); } 55% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.spin { animation: spin .9s ease-in-out 1; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* reacțiile decorului */
.fxbox { position: absolute; pointer-events: none; overflow: visible; z-index: 6; }
.fxbox > i, .fxbox > span { position: absolute; pointer-events: none; }
.f-puff { bottom: 40%; width: 26px; height: 26px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 70%); animation: puff 1.6s ease-out forwards; }
@keyframes puff { 0% { transform: translateY(0) scale(.5); opacity: 0; } 25% { opacity: .95; } 100% { transform: translateY(-70px) scale(1.7); opacity: 0; } }
.f-fall { top: -8%; width: 10px; height: 10px; border-radius: 50%; opacity: 0; animation: fall2 1.6s linear 1 forwards; }
@keyframes fall2 { 0% { opacity: 0; transform: translate3d(0,0,0); } 15% { opacity: 1; } 100% { opacity: .2; transform: translate3d(var(--dx, 0), 120px, 0); } }
.f-glow { inset: -20%; border-radius: 50%; opacity: 0; animation: flicker 1.6s linear 1 forwards;
  background: radial-gradient(circle, rgba(255,226,150,.95) 0%, rgba(255,200,100,.45) 38%, rgba(255,190,90,0) 70%); }
@keyframes flicker { 0%{opacity:0} 8%{opacity:.9} 16%{opacity:.2} 26%{opacity:1} 40%{opacity:.35} 52%{opacity:.95} 66%{opacity:.5} 82%{opacity:.85} 100%{opacity:0} }
.f-rainbow { inset: -40% -20% 10% -20%; opacity: 0; animation: fadeio 1.8s ease forwards;
  background: radial-gradient(circle at 50% 100%, transparent 38%, #ff6b6b 39% 46%, #ffd166 46% 53%, #7bd88f 53% 60%, #5aa9ff 60% 67%, transparent 68%); }
@keyframes fadeio { 0% { opacity: 0; } 25% { opacity: .9; } 70% { opacity: .9; } 100% { opacity: 0; } }
.f-paint { left: 0; top: 40%; width: 100%; height: 16%; opacity: 0; transform-origin: 0 50%; animation: streak 1.2s ease-out forwards;
  background: linear-gradient(90deg, rgba(60,120,220,0), rgba(60,120,220,.85), rgba(60,120,220,0)); }
@keyframes streak { 0% { transform: scaleX(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.f-flash { inset: 0; opacity: 0; animation: flashy .8s linear 1 forwards;
  background: radial-gradient(circle, rgba(225,242,255,.95), rgba(180,210,255,.4) 60%, rgba(180,210,255,0)); }
@keyframes flashy { 0% { opacity: 0; } 10% { opacity: 1; } 25% { opacity: .2; } 40% { opacity: 1; } 100% { opacity: 0; } }
.f-note { bottom: 30%; opacity: 0; font-family: var(--serif); font-size: 30px; font-weight: 700; color: #fff8e6; text-shadow: 0 1px 2px rgba(96,44,6,.8), 0 0 10px rgba(96,44,6,.5); animation: rise 1.3s ease-out 1 forwards; }
@keyframes rise { from { transform: translateY(0) scale(.8); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-60px) scale(1.1); opacity: 0; } }
.f-ping { left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;
  box-shadow: 0 0 0 3px rgba(255,226,150,.9), 0 0 18px 6px rgba(255,200,90,.5); animation: ping 1s ease-out forwards; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.f-tic { left: 55%; top: -10%; font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff8e6; text-shadow: 0 1px 2px rgba(96,44,6,.8), 0 0 10px rgba(96,44,6,.5); }

/* obiectul care zboară spre contor sau spre Bal */
.flyo { position: absolute; left: 0; top: 0; width: 64px; height: 64px; opacity: 0; pointer-events: none; z-index: 30; will-change: transform, opacity; }
.flyo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.flyo.glyph { font-size: 54px; line-height: 64px; text-align: center; color: #ffe09a; text-shadow: 0 1px 3px rgba(96,44,6,.7), 0 0 14px rgba(255,200,90,.9); }

.line {
  position: absolute; left: 7%; right: 7%; top: calc(var(--barh) + var(--st) + 50px); margin: 0; z-index: 10;
  text-align: center; font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.22;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  pointer-events: none;
}
.line.in { animation: lineIn .4s ease-out 1; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

#pocket { height: 24px; width: auto; filter: drop-shadow(0 1px 2px rgba(96,44,6,.5)); }

#player { position: absolute; left: 3%; bottom: calc(1.5% + var(--sb)); height: 25%; perspective: 700px; z-index: 11; pointer-events: none; }
#player img { height: 100%; width: auto; display: block; }
#switch {
  position: absolute; right: 8px; bottom: calc(8px + var(--sb)); z-index: 13;
  min-width: 70px; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; perspective: 700px;
}
#switch img { height: 110px; width: auto; display: block; }
#switch span { font-size: 20px; font-weight: 700; margin-top: 2px; }

#home-link { position: absolute; left: 50%; translate: -50% 0; top: 68%; z-index: 14; }
#sug { position: absolute; left: 50%; translate: -50% 0; top: 58%; z-index: 14; width: 86%; white-space: normal; text-align: center; font-size: 22px; line-height: 1.15; }
#vsprite { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; z-index: 30; will-change: transform, opacity; }

/* ---------- ecran 3: fuga prin copac ---------- */
#run-bg { position: absolute; inset: 0; overflow: hidden; background: #eaf0fb; }
#run-bg img { position: absolute; left: 0; top: 0; display: block; max-width: none; will-change: transform; filter: brightness(.95) contrast(1.06) saturate(1.08); }
#lanes, #ents { position: absolute; inset: 0; pointer-events: none; }
.seg, .ent { position: absolute; left: 0; top: 0; will-change: transform; }
.seg img, .ent img { position: absolute; left: 50%; top: 50%; display: block; max-width: none; }
.seg img { transform: translate(-50%, -50%) rotate(90deg); }
.ent img { transform: translate(-50%, -50%); }
.ent.pop { transition: opacity .35s ease; opacity: 0; }
#runner { position: absolute; left: 0; top: 0; will-change: transform; pointer-events: none; z-index: 5; }
#runner img { position: absolute; left: 50%; top: 50%; display: block; max-width: none; transform: translate(-50%, -50%) rotate(-72deg); filter: drop-shadow(0 3px 4px rgba(120,60,10,.25)); }
#runner.air img { transform: translate(-50%, -50%) rotate(0deg); }
#runner.stun img { animation: wob .22s linear infinite; }
@keyframes wob { 0%,100% { translate: -4px 0; } 50% { translate: 4px 0; } }

#hud { position: absolute; left: 0; right: 0; top: calc(var(--barh) + var(--st) + 4px); text-align: center; pointer-events: none; z-index: 6; }
#timer { font-family: var(--serif); font-size: 68px; font-weight: 700; line-height: 1; }
#intro { position: absolute; left: 8%; right: 8%; top: 36%; margin: 0; text-align: center; font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; pointer-events: none; z-index: 6; }
#big { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: var(--serif); font-size: 130px; font-weight: 700; line-height: 1; pointer-events: none; z-index: 6; }
#big.pulse { animation: pulse .7s ease-out 1; }
@keyframes pulse { from { transform: scale(1.5); opacity: 0; } 25% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

#end { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 7% 20px; text-align: center; }
#end img { height: 33%; width: auto; filter: drop-shadow(0 4px 8px rgba(120,60,10,.25)); animation: lineIn .6s ease-out 1; }
#end p { margin: 10px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.2; }
#end p#end-best { font-family: var(--sans); font-size: 20px; font-weight: 600; margin-top: 8px; }
#end-links { display: flex; flex-direction: column; align-items: center; margin-top: 12px; }
#end::before {
  content: ""; position: absolute; left: -20%; right: -20%; top: 45%; bottom: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255,250,236,.9) 0%, rgba(255,250,236,.6) 50%, rgba(255,250,236,0) 100%);
  pointer-events: none; z-index: -1;
}
#end > * { position: relative; }
#s-run:has(#end:not(.hidden)) #lanes, #s-run:has(#end:not(.hidden)) #ents { opacity: .35; transition: opacity .6s ease; }

/* fuga, M2: mesaje scurte în timpul cursei, pornirea și instrucțiunile */
#run-msg { position: absolute; left: 6%; right: 6%; top: 27%; margin: 0; z-index: 6; text-align: center; pointer-events: none; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.15; }
#run-msg.in { animation: lineIn .35s ease-out 1; }
#intro { top: 24%; }
#intro span { display: block; }
#intro .t1 { font-size: 36px; line-height: 1.1; margin-bottom: 14px; color: var(--gold); }
#intro .t2 { font-size: 26px; margin-bottom: 10px; }
#intro .t3 { font-size: 21px; font-family: var(--sans); font-weight: 600; margin-top: 12px; }
#run-start { position: absolute; left: 50%; translate: -50% 0; top: 66%; z-index: 7; }
#hud #timer { font-size: 60px; }
#end-img { max-width: 70%; object-fit: contain; }

/* ---------- ecran 4: cântecele copacului ---------- */
#s-songs { background: radial-gradient(ellipse at 50% 40%, #fff6e0 0%, #f4dfb5 100%); }
#sg-list { position: absolute; inset: 0; padding: calc(var(--barh) + var(--st) + 44px) 7% 24px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
#sg-box { height: 84px; width: auto; filter: drop-shadow(0 3px 5px rgba(120,60,10,.25)); }
#sg-title { margin: 6px 0 8px; font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1.1; color: var(--ink); }
#sg-items { display: flex; flex-direction: column; align-items: center; width: 100%; }
.sg-item { display: flex; flex-direction: column; align-items: center; padding: 10px 6px 14px; min-height: 64px; width: 100%;
  background-image: linear-gradient(90deg, rgba(240,180,60,0), #f0b43c 20%, #ffd978 50%, #f0b43c 80%, rgba(240,180,60,0));
  background-repeat: no-repeat; background-position: 50% calc(100% - 7px); background-size: 40% 2px; transition: background-size .3s ease; }
.sg-item:active, .sg-item:hover { background-size: 90% 2px; }
.sg-t { font-family: var(--serif); font-size: 33px; font-weight: 700; line-height: 1.08; }
.sg-n { font-size: 16px; font-weight: 600; margin-top: 2px; }
.sg-item.locked { opacity: .5; }
.sg-stars { display: flex; gap: 2px; margin-top: 3px; }
.sg-stars img { height: 22px; width: auto; filter: drop-shadow(0 1px 1px rgba(96,44,6,.4)); }
.sg-stars img.off { opacity: .22; filter: grayscale(1); }
#sg-hint { margin: 10px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.2; min-height: 54px; }
#sg-hint.in { animation: lineIn .35s ease-out 1; }

#sg-play { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
#sg-bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; }
#sg-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255,247,228,.34); }
#sg-lanes, #sg-rings, #sg-notes, #sg-fx { position: absolute; inset: 0; pointer-events: none; }
#sg-lanes { opacity: .95; }
.sg-ring { position: absolute; }
.sg-ring img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg-ring img.lit { opacity: 0; transition: opacity .12s ease; }
.sg-ring.lit img.lit { opacity: 1; }
.sg-ring.press { animation: press .18s ease-out 1; }
@keyframes press { 0% { transform: scale(1); } 40% { transform: scale(.93); } 100% { transform: scale(1); } }
.sg-note { position: absolute; left: 0; top: 0; will-change: transform; }
.sg-note img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(120,60,10,.3)); }
.sg-note.miss img { animation: missfade .65s ease-out forwards; }
@keyframes missfade { 0% { transform: translateX(0); opacity: 1; } 15% { transform: translateX(-6px); } 30% { transform: translateX(6px); } 45% { transform: translateX(-4px); opacity: .85; } 100% { transform: translateX(0); opacity: 0; } }
.sg-note.hitpop img { animation: hitpop .38s ease-out forwards; }
@keyframes hitpop { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.sg-spark { position: absolute; animation: spark .55s ease-out forwards; }
@keyframes spark { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.sg-word { position: absolute; translate: -50% 0; font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff8e6; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(96,44,6,.9), 0 0 10px rgba(96,44,6,.5); animation: rise 0.75s ease-out forwards; }
.sg-word.great { color: #ffe07a; font-size: 31px; }
#sg-top { position: absolute; left: 6%; right: 6%; top: calc(var(--barh) + var(--st) + 48px); margin: 0; text-align: center; font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.1; }
#sg-msg { position: absolute; left: 6%; right: 6%; top: 24%; margin: 0; text-align: center; font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.15; }
#sg-msg.in { animation: lineIn .4s ease-out 1; }
#sg-ins { position: absolute; left: 8%; right: 8%; top: 36%; margin: 0; text-align: center; font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.2; animation: fadeout 4.5s ease forwards; }
@keyframes fadeout { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
#sg-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 7% 20px; }
#sg-result p { margin: 8px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; }
#sg-result p#sg-r-title { font-size: 40px; }
#sg-result p#sg-r-rec { font-family: var(--sans); font-size: 19px; font-weight: 600; }
#sg-result p#sg-r-orn { font-size: 22px; min-height: 28px; }
#sg-r-stars .sg-stars { justify-content: center; gap: 8px; margin-top: 10px; }
#sg-r-stars .sg-stars img { height: 70px; }
#sg-r-stars.in .sg-stars img { animation: starin .6s ease-out backwards; }
#sg-r-stars.in .sg-stars img:nth-child(2) { animation-delay: .25s; }
#sg-r-stars.in .sg-stars img:nth-child(3) { animation-delay: .5s; }
@keyframes starin { from { transform: scale(.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
#sg-r-links { display: flex; flex-direction: column; align-items: center; margin-top: 14px; }

/* ---------- ecran 5: Balul animalelor ---------- */
#ball-stage .bg { z-index: -1; }
.bsp { position: absolute; translate: -50% 0; pointer-events: none; transform-origin: 50% 100%; }
.bsp > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; object-position: 50% 100%; }
.bsp.guest { pointer-events: auto; cursor: pointer; }
.bsp.guest::after { content: ""; position: absolute; inset: -6px; }
.bsp.enter { animation: benter .8s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes benter { from { opacity: 0; transform: translateY(-14%) scale(.6); } to { opacity: 1; transform: none; } }
.bsp.chr.dance { animation: bdance 1.1s ease-in-out infinite; }
.bsp.chr.vevi.dance { animation-duration: .8s; animation-delay: -.3s; }
@keyframes bdance { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-3%); } }
.bsp.orn .str { position: absolute; left: 50%; bottom: 100%; width: 2px; translate: -50% 0; background: rgba(138,90,43,.7); }
.bsp.orn > img { filter: drop-shadow(0 0 6px rgba(255,214,120,.8)); }
.bsp.orn { animation: osway 4s ease-in-out infinite alternate; transform-origin: 50% 0; }
.bsp.orn.enter { animation: benter .8s cubic-bezier(.2,.9,.3,1.2) both, osway 4s ease-in-out .9s infinite alternate; }
@keyframes osway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.atena-fly { z-index: 12; }
#ball-fx { position: absolute; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.flake { position: absolute; top: -20px; border-radius: 50%; opacity: 0; animation: gold 7s linear infinite;
  background: radial-gradient(circle, #fff6c8 25%, #ffd24a 55%, rgba(255,210,74,0) 75%); }
@keyframes gold { 0% { opacity: 0; transform: translate3d(0,0,0); } 10% { opacity: .95; } 90% { opacity: .9; } 100% { opacity: 0; transform: translate3d(var(--dx, 0), 112vh, 0); } }
#s-ball .line { z-index: 16; }
#ball-bottom { position: absolute; z-index: 20; left: 0; right: 0; bottom: calc(4px + var(--sb)); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
#ball-bottom::before { content: ""; position: absolute; left: -10%; right: -10%; top: -26px; bottom: -6px; pointer-events: none;
  background: linear-gradient(to top, rgba(255,250,236,.92) 0%, rgba(255,250,236,.8) 62%, rgba(255,250,236,0) 100%); }
#ball-bottom > * { position: relative; pointer-events: auto; }
#bal-tix { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 2px 6px 0; max-width: 100%; }
#bal-tix img { display: block; width: min(52%, 190px); height: auto; filter: drop-shadow(0 2px 3px rgba(90,38,4,.4)); }
#bal-tix .textlink { white-space: normal; text-align: center; font-size: 25px; line-height: 1.12; min-height: 0; padding: 4px 8px 12px; }
#ball-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 10px; }
#ball-links .textlink { font-size: 20px; min-height: 44px; padding: 4px 8px 10px; }
#bal-dance.glow { color: var(--gold); }

/* ---------- fotografia ---------- */
#photo-view { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6% calc(10px + var(--sb));
  background: radial-gradient(ellipse at 50% 45%, rgba(255,247,228,.94), rgba(250,235,205,.9)); }
#photo-view.in { animation: lineIn .4s ease-out 1; }
#photo-img { max-height: calc(100% - 128px); max-width: 100%; width: auto; height: auto; border-radius: 4px; box-shadow: 0 12px 30px rgba(90,50,10,.35), 0 2px 6px rgba(90,50,10,.25); transform: rotate(-.8deg); }
#photo-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; margin-top: 10px; }
#photo-links .textlink { font-size: 26px; }
#flash { position: absolute; inset: 0; z-index: 90; background: #fff; pointer-events: none; opacity: 0; }
#flash.go { animation: flash .5s ease-out 1; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
#photo-room { position: absolute; left: 50%; translate: -50% 0; bottom: calc(14px + var(--sb)); z-index: 12; }

/* biletul Atenei: Atena vorbește deasupra foii */
#ticket-atena { position: relative; display: block; height: 104px; width: auto; margin-bottom: -16px; z-index: 1; filter: drop-shadow(0 4px 6px rgba(90,50,10,.28)); }
#ticket.in #ticket-atena { animation: paperIn .6s ease-out 1; }

/* link-ul Bal de pe planșă: indicatorul stă lângă cuvânt, mai mic */
#ball-ind { font-size: .66em; font-weight: 600; }

/* ---------- biletul Atenei: foaie de hârtie, fără chenar ---------- */
#ticket { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--barh) + var(--st)) 7% 24px; }
#ticket-veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(255,247,228,.84), rgba(255,247,228,.64) 60%, rgba(255,247,228,.46)); }
#paper {
  position: relative; width: 100%; max-width: 340px; padding: 30px 26px 24px; transform: rotate(-1.6deg);
  background: radial-gradient(circle at 18% 12%, rgba(255,255,255,.75), rgba(255,255,255,0) 42%), linear-gradient(172deg, #fffdf6 0%, #fbf0d4 60%, #f3e2b8 100%);
  box-shadow: 0 14px 34px rgba(90,50,10,.28), 0 2px 5px rgba(90,50,10,.18);
  border-radius: 3px 6px 4px 7px;
}
#ticket.in #paper { animation: paperIn .6s ease-out 1; }
@keyframes paperIn { from { opacity: 0; transform: translateY(26px) rotate(-5deg); } to { opacity: 1; transform: rotate(-1.6deg); } }
#paper-txt { margin: 0; font-family: var(--serif); font-style: italic; font-size: 25px; font-weight: 600; line-height: 1.28; color: #5a3410; }
#paper-txt .pl { display: block; margin-bottom: .55em; }
#paper-sig { margin: 8px 0 0; text-align: right; font-family: var(--serif); font-style: italic; font-size: 25px; font-weight: 700; color: #7b3708; }
#ticket-ok { position: relative; margin-top: 18px; color: #7b3708; text-shadow: 0 0 6px rgba(255,249,232,.95); }

/* ---------- bara de sus (toate ecranele) ----------
   Fără casete, chenare sau pastile: doar o lumină caldă care se stinge spre jos, ca să se citească peste desen. */
#bar {
  position: absolute; z-index: 60; left: 0; right: 0; top: 0;
  padding: var(--st) 2px 0 0; height: calc(var(--barh) + var(--st));
  display: flex; align-items: center; gap: 4px;
  pointer-events: none;
}
#bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--barh) + var(--st) + 30px); z-index: -1;
  background: linear-gradient(to bottom, rgba(255,249,236,.88) 0%, rgba(255,249,236,.7) 45%, rgba(255,249,236,.3) 75%, rgba(255,249,236,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
#bar > * { pointer-events: auto; }
#tix { flex: 0 0 auto; display: flex; align-items: center; min-height: 60px; padding: 4px 6px 4px 8px; }
#tix img { display: block; width: 78px; height: auto; filter: drop-shadow(0 1px 1.2px rgba(90,38,4,.6)) drop-shadow(0 2px 5px rgba(90,38,4,.25)); }
#tix:active img { transform: scale(.96); }
#bar > #tix.nolink { pointer-events: none; cursor: default; }
#tix.nolink:active img { transform: none; }
#sign { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.streetsign { display: block; width: 100%; max-width: 158px; height: auto; overflow: visible; transform: rotate(-.6deg);
  filter: drop-shadow(0 2px 1.5px rgba(60,30,8,.35)) drop-shadow(0 4px 8px rgba(60,30,8,.15)); }
#bar-r { flex: 0 0 auto; display: flex; align-items: center; gap: 0; color: #7b3708;
  text-shadow: 0 0 2px rgba(255,249,232,1), 0 0 8px rgba(255,249,232,.9); font-weight: 800; }
#counter, #nuts { display: none; align-items: center; gap: 2px; font-size: 19px; padding: 0 2px; min-height: 48px; pointer-events: none; }
#col[data-screen="room"] #counter, #col[data-screen="ball"] #counter { display: flex; }
#col[data-screen="run"] #nuts { display: flex; }
#nuts { font-size: 19px; font-weight: 800; }
#nuts > img { height: 24px; width: auto; filter: drop-shadow(0 1px 1px rgba(96,44,6,.4)); }
#nuts .ic { height: 26px; margin-left: 2px; transition: opacity .3s, transform .3s; }
#nuts .ic.off { display: none; }
#mini-switch { width: 46px; height: 60px; display: flex; align-items: center; justify-content: center; perspective: 400px; }
#mini-switch img { height: 48px; width: auto; filter: drop-shadow(0 1px 2px rgba(96,44,6,.45)); }
#col[data-screen="run"] #mini-switch { display: none; }
#mute { width: 44px; height: 60px; font-family: var(--serif); font-size: 30px; line-height: 60px; text-align: center; color: #7b3708; }
#mute.off { opacity: .45; text-decoration: line-through; }
@media (max-width: 370px) { #tix img { width: 74px; } #mini-switch { width: 44px; } #mute { width: 42px; } .day.on { font-size: 32px; } }

@media (prefers-reduced-motion: reduce) {
  .pzone .ring, .textlink, .day.on, .obj.hint > img, .hglow { animation-duration: 6s; }
}

/* ---------- ?debug=1: contururi și nume pentru zonele de atingere ---------- */
.debug .pzone, .debug .zone, .debug .obj { outline: 1px solid rgba(235,20,20,.85); outline-offset: -1px; }
.debug .pzone::before, .debug .zone::before, .debug .obj::before {
  content: attr(data-name); position: absolute; left: 1px; top: 1px; z-index: 9; font: 700 10px/1 var(--sans); color: #d11; text-shadow: 0 0 3px #fff, 0 0 3px #fff; pointer-events: none;
}

/* fundalul camerei, încețoșat, sub scenă (umple ce rămâne sus și jos pe telefoanele înguste) */
#room-under, #ball-under { position: absolute; inset: -30px; background-size: cover; background-position: 50% 50%; filter: blur(16px) saturate(1.05) brightness(1.04); pointer-events: none; }

.bsp.bobj > img { filter: drop-shadow(0 2px 3px rgba(96,44,6,.28)); }
.bsp.hangobj > img { filter: drop-shadow(0 0 5px rgba(255,214,120,.75)); }

/* pe ecran lat: lângă coloană, planșa încețoșată, foarte discret */
@media (min-aspect-ratio: 3/4) {
  body::before { content: ""; position: fixed; inset: -40px; z-index: 0; pointer-events: none;
    background: url(assets/plate.webp) center / cover no-repeat; filter: blur(28px) saturate(1.05) brightness(1.06); opacity: .55; }
  #col { z-index: 1; box-shadow: 0 0 60px rgba(120,70,20,.18); }
}
#s-ball .line { font-size: 21px; -webkit-line-clamp: 3; }

/* ---------- lizibilitate (16 nov. 2026): voaluri calde în spatele textelor, cerneală închisă, halou mai dens ---------- */
#col {
  --sh: 0 0 1px #fffaf0, 0 0 4px rgba(255,249,232,1), 0 0 10px rgba(255,249,232,.95), 0 0 22px rgba(255,244,214,.9);
}
#col[data-screen="room"], #col[data-screen="ball"] {
  --sh: 0 0 1px #fffaf0, 0 0 4px rgba(255,249,232,1), 0 0 10px rgba(255,249,232,.95), 0 0 22px rgba(255,244,214,.9);
}
/* voal de sus: de sub bară până sub replică */
#s-room::before, #s-run::before, #s-ball::before, #sg-play::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; pointer-events: none;
  height: calc(var(--barh) + var(--st) + 150px);
  background: linear-gradient(180deg, rgba(253,246,230,.97) 0%, rgba(253,246,230,.9) 62%, rgba(253,246,230,.55) 82%, rgba(253,246,230,0) 100%);
}
#s-room::before { z-index: 9; }
#s-run::before { z-index: 5; height: calc(var(--barh) + var(--st) + 120px); }
#s-ball::before { z-index: 15; height: calc(var(--barh) + var(--st) + 160px); }
#sg-play::before { z-index: 3; height: calc(var(--barh) + var(--st) + 110px); }
#sg-top { z-index: 5; }
/* voal de jos în cameră, sub personaje, ca să se citească „Fă o fotografie” și „Schimbă” */
#s-room::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 10; pointer-events: none;
  background: linear-gradient(0deg, rgba(253,246,230,.85) 0%, rgba(253,246,230,.55) 55%, rgba(253,246,230,0) 100%);
}
#switch span { color: var(--ink); text-shadow: var(--sh); font-size: 21px; }
/* fuga: voal cald cât timp se citește ecranul de start sau cel de final */
#s-run:has(#run-start:not(.hidden))::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 50% 46%, rgba(255,250,236,.92), rgba(255,250,236,.72) 60%, rgba(255,250,236,.35));
}
#end { background: radial-gradient(ellipse 85% 60% at 50% 55%, rgba(255,250,236,.93), rgba(255,250,236,.75) 60%, rgba(255,250,236,.4)); }
#intro .t1 { color: #8a4a00; }
#run-msg, #sg-msg, #sg-ins, #big { text-shadow: 0 0 1px #fffaf0, 0 0 5px rgba(255,249,232,1), 0 0 14px rgba(255,249,232,1), 0 0 28px rgba(255,244,214,.95); }
#sg-ins { color: var(--ink); }
/* cuvintele „Bine!” / „Minunat!” și textele care zboară: cerneală închisă pe halou crem */
.sg-word { color: #7b3708; text-shadow: 0 0 2px #fffaf0, 0 0 8px rgba(255,249,232,1), 0 0 16px rgba(255,244,214,.95); }
.sg-word.great { color: #a14f00; }
.f-note, .f-tic { color: #6a2e05; text-shadow: 0 0 2px #fffaf0, 0 0 8px rgba(255,249,232,1), 0 0 16px rgba(255,244,214,.95); }
/* mărimi minime */
.day { font-size: 26px; opacity: 1; }
.dsep { opacity: .8; }
#day-prog { font-size: 18px; }
.sg-n { font-size: 18px; }
#ball-ind { font-size: .75em; }
#sg-hint { font-size: 21px; }
#ball-links .textlink { font-size: 21px; }
/* bilețelul Atenei: planșa rămâne vizibilă, dar nu se amestecă cu textul */
#ticket-veil { background: radial-gradient(ellipse at 50% 45%, rgba(255,247,228,.9), rgba(255,247,228,.72) 60%, rgba(255,247,228,.55)); }
#sg-ins, #sg-msg { z-index: 6; animation-duration: 6s; }
#sg-ins::before, #sg-msg::before, #run-msg::before {
  content: ""; position: absolute; inset: -34px -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(255,250,236,.9), rgba(255,250,236,.6) 55%, rgba(255,250,236,0) 80%);
}
.sg-item.locked { opacity: .72; }
/* replicile nu se mai taie: până la 3 rânduri; pe ecrane înguste, puțin mai mic */
.line { -webkit-line-clamp: 3; }
@media (max-width: 370px) { .line { font-size: 22px; } #s-ball .line { font-size: 20px; } }

/* ---------- începutul (intro, 13 s) ---------- */
#film { position: absolute; inset: 0; z-index: 55; overflow: hidden; background: #e9eefa; cursor: pointer; transition: opacity .6s ease; touch-action: none; }
#film.out { opacity: 0; pointer-events: none; }
.f-cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.f-plate { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.f-glow { position: absolute; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 55% 55% at 50% 52%, rgba(255,214,140,.85), rgba(255,190,100,.35) 55%, rgba(255,190,100,0) 80%); }
.f-vevi { position: absolute; width: auto; opacity: 0; transform-origin: 50% 100%; translate: -50% 0;
  filter: drop-shadow(0 2px 2px rgba(90,40,6,.35)); }
#film.vevi-in .f-vevi { animation: fVeviIn .9s cubic-bezier(.2,.9,.3,1.25) forwards; }
#film.vevi-look .f-vevi { animation: fVeviLook 1.6s ease-in-out forwards; }
#film.vevi-in .f-glow { animation: fGlow 2.6s ease-in-out .5s infinite alternate; }
@keyframes fVeviIn { from { opacity: 0; transform: translateY(18%) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes fVeviLook { 0% { opacity: 1; transform: none; } 30% { transform: scaleX(-1); } 55% { transform: scaleX(-1) translateY(-6%) rotate(-3deg); } 100% { opacity: 1; transform: scaleX(-1) rotate(-2deg); } }
@keyframes fGlow { from { opacity: .25; } to { opacity: .9; } }
.f-snow { position: absolute; inset: 0; pointer-events: none; }
.f-snow i { position: absolute; top: -4%; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.9);
  animation: fSnow linear infinite; }
@keyframes fSnow { from { transform: translate(0, -5vh); } to { transform: translate(var(--dx), 112vh); } }
.f-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease;
  background: linear-gradient(180deg, rgba(233,238,250,.78) 0%, rgba(251,241,220,.62) 52%, rgba(233,238,250,.74) 100%); }
#film.wait .f-veil { opacity: 1; }
#film.wait .f-cam { filter: blur(10px) brightness(1.1) saturate(.92); }
#film.going .f-cam { filter: none; transition: filter 1.1s ease; }
.f-start { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 10% 5% 14%; pointer-events: none; }
.f-sign { position: relative; width: 92%; max-width: 560px; flex: 0 0 auto; transform-origin: 50% 0; will-change: transform; }
.f-sign-body { transform-origin: 93.67% 50%; will-change: transform; }
.f-sign svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 6px rgba(60,30,8,.3)) drop-shadow(0 14px 24px rgba(60,30,8,.18)); }
#film.wait .f-sign { animation: fSignIdle 3.6s ease-in-out infinite; }
@keyframes fSignIdle {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: translateY(5px) rotate(1.6deg); } }
.f-go { margin: 0; max-width: 20em; text-align: center; font-family: var(--serif); font-size: clamp(26px, 7vw, 36px); font-weight: 700; line-height: 1.2;
  color: #6a2e05; text-shadow: 0 0 2px #fffaf0, 0 0 8px rgba(255,249,232,1), 0 0 16px rgba(255,244,214,.95), 0 0 28px rgba(255,244,214,.9);
  animation: fGoPulse 2.2s ease-in-out infinite; }
#film:not(.wait) .f-go { opacity: 0; animation: none; transition: opacity .35s ease; }
@keyframes fGoPulse { 0%, 100% { opacity: .92; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
#film.wait .f-skip, #film.going:not(.has-skip) .f-skip { opacity: 0; visibility: hidden; }
#col.film-bar #sign { animation: fBarSign .7s ease forwards; }
@keyframes fBarSign { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.f-tit, .f-note { position: absolute; left: 112%; top: 20%; transform: translate(-50%,-50%); pointer-events: none; }
.f-tit { width: 21%; max-width: 120px; z-index: 2; }
.f-tit img { display: block; width: 100%; height: auto; transform: scaleX(-1); animation: fFlap .28s ease-in-out infinite alternate; }
@keyframes fFlap { from { transform: scaleX(-1) scaleY(1); } to { transform: scaleX(-1) scaleY(.9) translateY(3%); } }
.f-note { width: 13%; max-width: 76px; z-index: 1; filter: drop-shadow(0 4px 6px rgba(90,50,10,.25)); }
#film.tit-in .f-tit { animation: fTit 1.6s cubic-bezier(.2,.7,.3,1) forwards; }
#film.tit-in .f-note { animation: fCarry 1.6s cubic-bezier(.2,.7,.3,1) forwards; }
#film.note-in .f-tit { animation: fTitAway 1.4s ease-in forwards; }
#film.note-in .f-note { animation: fDrift 1.8s ease-in-out forwards; }
@keyframes fTit { 0% { left: 112%; top: 20%; } 50% { top: 26%; } 100% { left: 57%; top: 30%; } }
@keyframes fCarry { 0% { left: 115%; top: 28%; transform: translate(-50%,-50%) rotate(12deg); } 50% { top: 34%; } 100% { left: 60%; top: 38%; transform: translate(-50%,-50%) rotate(6deg); } }
@keyframes fTitAway { from { left: 57%; top: 30%; } to { left: -20%; top: 8%; } }
@keyframes fDrift {
  0% { left: 60%; top: 38%; width: 13%; transform: translate(-50%,-50%) rotate(6deg); opacity: 1; }
  35% { left: 42%; top: 45%; width: 24%; transform: translate(-50%,-50%) rotate(-10deg); }
  70% { left: 54%; top: 48%; width: 46%; transform: translate(-50%,-50%) rotate(4deg); }
  100% { left: 50%; top: 50%; width: 78%; max-width: 340px; transform: translate(-50%,-50%) rotate(-1.6deg); opacity: .92; } }
.f-skip { position: absolute; right: 14px; bottom: calc(14px + var(--sb)); z-index: 3; font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: #6a2e05; text-shadow: 0 0 2px #fffaf0, 0 0 8px rgba(255,249,232,1), 0 0 16px rgba(255,244,214,.95); padding: 12px 8px; opacity: .9; }
/* bara: în primele secunde rămâne doar ♪; plăcuța ajunge la locul ei, apoi apar și celelalte */
#tix, #sign, #bar-r > *:not(#mute), #bar::before { transition: opacity .6s ease; }
#col.film-on:not(.film-bar) #tix, #col.film-on:not(.film-bar) #sign, #col.film-on:not(.film-bar) #bar-r > *:not(#mute), #col.film-on:not(.film-bar) #bar::before { opacity: 0; }
#col.film-on #plate-top, #col.film-on #plate-links { opacity: 0; }
#intro-replay { margin-top: -4px; }
.f-sign svg.streetsign { max-width: none; width: 100%; transform: none; }
.f-snow i { background: #fff; box-shadow: 0 0 2px rgba(120,140,185,.55), 0 0 7px rgba(255,255,255,.95); }
