/* =========================================================
   Kvietimas — single page, mobile first
   ========================================================= */

:root {
  --bg: #050506;
  --ink: #f6f5f2;
  --muted: #9a9a9f;

  --red: #ff2440;
  --red-deep: #b3091f;
  --green: #2fe08a;
  --green-deep: #0d7a4a;

  --accent: var(--red);
  --accent-soft: rgba(255, 36, 64, 0.55);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slam: cubic-bezier(0.2, 1.35, 0.35, 1);

  --pad-x: clamp(18px, 5vw, 28px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button { font: inherit; color: inherit; }

/* ---------- atmosphere ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(255, 36, 64, 0.22), transparent 62%),
    radial-gradient(90% 60% at 50% -18%, rgba(255, 36, 64, 0.10), transparent 70%),
    radial-gradient(60% 40% at 80% 20%, rgba(90, 20, 60, 0.14), transparent 70%);
  transition: background 1.2s var(--ease-out);
  pointer-events: none;
}

body[data-mood="go"] .ambient,
body[data-mood="invite"] .ambient {
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(47, 224, 138, 0.16), transparent 62%),
    radial-gradient(90% 60% at 50% -18%, rgba(47, 224, 138, 0.08), transparent 70%),
    radial-gradient(60% 40% at 20% 30%, rgba(30, 120, 90, 0.12), transparent 70%);
}

.grain {
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(6) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-2%, 1%, 0); }
  40%  { transform: translate3d(1%, -2%, 0); }
  60%  { transform: translate3d(-1%, 2%, 0); }
  80%  { transform: translate3d(2%, 1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- scenes ---------- */

.stage { position: relative; z-index: 2; }

.scene {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  gap: clamp(20px, 6vh, 44px);
  padding:
    calc(env(safe-area-inset-top, 0px) + 22px)
    var(--pad-x)
    calc(env(safe-area-inset-bottom, 0px) + 26px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scene--gate,
.scene--invite { grid-auto-rows: min-content; align-content: center; }

.scene--invite {
  align-content: safe center;
  overflow-y: auto;
  place-items: center;
  padding-top: calc(env(safe-area-inset-top, 0px) + 34px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 34px);
  scrollbar-width: none;
}
.scene--invite::-webkit-scrollbar { display: none; }

/* ---------- flower button ---------- */

.flower {
  position: relative;
  width: min(62vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}

.flower:active { transform: scale(0.94); }

.flower:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 14px;
  border-radius: 50%;
}

.flower__svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flower__halo {
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle at 50% 55%, var(--accent-soft), transparent 62%);
  filter: blur(18px);
  animation: halo-breathe 3.6s ease-in-out infinite;
}

.flower__ring {
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  animation: spin 26s linear infinite;
}

.flower__ring::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* petals */

.petals {
  transform-box: view-box;
  transform-origin: 100px 100px;
  animation: petals-breathe 4.6s ease-in-out infinite;
}

.petal {
  fill: color-mix(in srgb, var(--accent) 62%, #1a0508);
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 40%, transparent));
  animation: petal-shimmer 4.6s ease-in-out infinite;
}

.petal:nth-child(2) { animation-delay: -0.35s; fill: color-mix(in srgb, var(--accent) 72%, #1a0508); }
.petal:nth-child(3) { animation-delay: -0.7s;  fill: color-mix(in srgb, var(--accent) 55%, #1a0508); }
.petal:nth-child(4) { animation-delay: -1.05s; fill: color-mix(in srgb, var(--accent) 78%, #1a0508); }
.petal:nth-child(5) { animation-delay: -1.4s;  fill: color-mix(in srgb, var(--accent) 60%, #1a0508); }
.petal:nth-child(6) { animation-delay: -1.75s; fill: color-mix(in srgb, var(--accent) 70%, #1a0508); }

.core {
  fill: #060507;
  stroke: color-mix(in srgb, var(--accent) 70%, transparent);
  stroke-width: 1.5;
  transform-box: view-box;
  transform-origin: 100px 100px;
}

.core-dot {
  fill: white;
  opacity: 0.75;
  transform-box: view-box;
  transform-origin: 100px 100px;
  animation: core-pulse 2.8s ease-in-out infinite;
}

@keyframes petals-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@keyframes petal-shimmer {
  0%, 100% { opacity: 0.86; }
  50%      { opacity: 1; }
}

@keyframes core-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.18); }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

@keyframes spin { to { transform: rotate(360deg); } }

.flower--danger { --accent: var(--red); }

.flower--danger .flower__svg {
  animation: danger-jitter 5.5s ease-in-out infinite;
}

@keyframes danger-jitter {
  0%, 92%, 100% { rotate: 0deg; }
  93%           { rotate: -1.2deg; }
  95%           { rotate: 1deg; }
  97%           { rotate: -0.6deg; }
}

.flower--go { --accent: var(--green); }

.flower--go .flower__halo {
  background: radial-gradient(circle at 50% 55%, rgba(47, 224, 138, 0.5), transparent 62%);
}

/* ---------- hint ---------- */

.hint {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b9b9c0;
  opacity: 0.8;
  text-align: center;
  animation: hint-in 1s var(--ease-out) 0.5s both;
}

@keyframes hint-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.8; transform: none; }
}

/* ---------- alert ---------- */

.scene--alert { background: rgba(0, 0, 0, 0.001); }

.alert {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 3vh, 26px);
  width: 100%;
  animation: alert-in 0.42s var(--ease-slam) both, alert-shake 0.5s 0.42s linear both;
}

.alert__bar {
  width: min(92%, 520px);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  filter: drop-shadow(0 0 10px rgba(255, 36, 64, 0.9));
  animation: bar-in 0.5s var(--ease-out) 0.1s both;
}

.alert__bar--bottom { animation-delay: 0.18s; }

.alert__text {
  margin: 0;
  position: relative;
  max-width: 100%;
  font-size: clamp(2.4rem, 15.5vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 0 28px rgba(255, 36, 64, 0.75),
    0 0 90px rgba(255, 36, 64, 0.45);
}

@keyframes alert-in {
  from { opacity: 0; transform: scale(1.6); filter: blur(10px); }
  to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}

@keyframes alert-shake {
  0%, 100% { translate: 0 0; }
  15%      { translate: -7px 3px; }
  30%      { translate: 6px -4px; }
  45%      { translate: -5px -2px; }
  60%      { translate: 4px 3px; }
  80%      { translate: -2px 1px; }
}

@keyframes bar-in {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.scene--alert.is-out .alert {
  animation: alert-out 0.36s var(--ease-out) both;
}

@keyframes alert-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.12); filter: blur(6px); }
}

/* ---------- invitation card ---------- */

.petals-fall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.petal-fall {
  position: absolute;
  top: -12vh;
  width: 10px;
  height: 16px;
  border-radius: 60% 60% 55% 55% / 70% 70% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), color-mix(in srgb, var(--green) 70%, #fff));
  opacity: 0;
  animation: fall linear infinite;
  filter: blur(0.2px);
}

@keyframes fall {
  0%   { opacity: 0;   transform: translate3d(0, -10vh, 0) rotate(0deg); }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { opacity: 0;   transform: translate3d(var(--drift, 20px), 112vh, 0) rotate(var(--twist, 320deg)); }
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: clamp(26px, 7vw, 44px) clamp(20px, 6vw, 38px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(26, 32, 29, 0.92), rgba(7, 10, 9, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(47, 224, 138, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  text-align: center;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(47, 224, 138, 0.22), transparent 70%);
  pointer-events: none;
}

.scene--invite.is-active .card > * {
  animation: rise 0.85s var(--ease-out) both;
}
.scene--invite.is-active .card > *:nth-child(1) { animation-delay: 0.10s; }
.scene--invite.is-active .card > *:nth-child(2) { animation-delay: 0.18s; }
.scene--invite.is-active .card > *:nth-child(3) { animation-delay: 0.26s; }
.scene--invite.is-active .card > *:nth-child(4) { animation-delay: 0.34s; }
.scene--invite.is-active .card > *:nth-child(5) { animation-delay: 0.42s; }
.scene--invite.is-active .card > *:nth-child(6) { animation-delay: 0.50s; }
.scene--invite.is-active .card > *:nth-child(7) { animation-delay: 0.58s; }
.scene--invite.is-active .card > *:nth-child(8) { animation-delay: 0.66s; }
.scene--invite.is-active .card > *:nth-child(9) { animation-delay: 0.74s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.card__kicker {
  margin: 0 0 14px;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.9;
}

.card__kicker span { opacity: 0.7; }

.card__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 9.5vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card__lead {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(0.95rem, 3.9vw, 1.05rem);
  line-height: 1.55;
  color: rgba(246, 245, 242, 0.74);
  text-wrap: pretty;
}

.card__rule {
  display: grid;
  place-items: center;
  margin: clamp(20px, 4vh, 28px) 0;
  height: 14px;
}

.card__rule span {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 224, 138, 0.45), transparent);
  position: relative;
}

.card__rule span::after {
  content: "✿";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--green);
  background: #0b0f0d;
}

.details {
  margin: 0;
  display: grid;
  gap: 16px;
}

.detail dt {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(47, 224, 138, 0.8);
  margin-bottom: 5px;
}

.detail dd {
  margin: 0;
  font-size: clamp(1rem, 4.4vw, 1.18rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.card__rsvp {
  margin: 0 0 8px;
  font-size: clamp(0.9rem, 3.8vw, 1rem);
  line-height: 1.5;
  color: rgba(246, 245, 242, 0.86);
}

.card__sign {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.replay {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(246, 245, 242, 0.8);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.replay:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.replay:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.scene--invite.is-active .replay { animation: rise 0.8s var(--ease-out) 0.95s both; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .alert__text { text-shadow: 0 0 40px rgba(255, 36, 64, 0.8); }
}

/* ---------- wider screens ---------- */

@media (min-width: 700px) and (min-height: 620px) {
  .flower { width: min(34vw, 280px); }
  .hint { font-size: 0.72rem; }
}

/* labai maži ekranai */
@media (max-width: 359px) {
  .alert__text { font-size: clamp(2.1rem, 15vw, 4rem); }
  .hint { letter-spacing: 0.16em; font-size: 0.7rem; }
  .card { padding: 24px 18px; border-radius: 24px; }
  .details { gap: 12px; }
  .card__rule { margin: 16px 0; }
}

@media (max-height: 700px) {
  .card { padding-top: 22px; padding-bottom: 22px; }
  .card__rule { margin: 14px 0; }
  .details { gap: 12px; }
  .flower { width: min(52vw, 210px); }
}

/* =========================================================
   Kliūčių ruožas
   ========================================================= */

.scene--quest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
}
.scene--quest::-webkit-scrollbar { display: none; }

.quest__head {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding-top: 4px;
}

.progress {
  display: flex;
  gap: 7px;
}

.progress i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.35s, box-shadow 0.35s, transform 0.35s;
}

.progress i.is-done {
  background: var(--green);
  box-shadow: 0 0 10px rgba(47, 224, 138, 0.85);
  transform: scale(1.15);
}

.quest__count {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.quest__mount {
  width: 100%;
  flex: 1;
  display: grid;
  place-items: center;
  padding-bottom: 26px;
}

.task {
  width: min(100%, 430px);
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  animation: task-in 0.5s var(--ease-out) both;
}

.task.is-done { animation: task-out 0.42s var(--ease-out) both; }

@keyframes task-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes task-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-14px) scale(0.97); }
}

.task__title {
  margin: 0;
  font-size: clamp(1.15rem, 5.2vw, 1.5rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.task__sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(246, 245, 242, 0.62);
  max-width: 32ch;
  text-wrap: pretty;
}

.task__body {
  margin-top: 16px;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.btn {
  appearance: none;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid rgba(47, 224, 138, 0.4);
  background: rgba(47, 224, 138, 0.13);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background 0.2s, border-color 0.2s;
  min-width: 160px;
  touch-action: manipulation;
}

.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 550;
}

.btn--wide { width: 100%; }

.btn--shake { animation: shake-x 0.4s; }

@keyframes shake-x {
  0%, 100% { translate: 0 0; }
  20% { translate: -6px 0; }
  40% { translate: 5px 0; }
  60% { translate: -4px 0; }
  80% { translate: 3px 0; }
}

.feedback {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #ff9aa8;
  max-width: 30ch;
}

.feedback.is-ok { color: var(--green); }

/* 1 — bėgantis mygtukas */

.dodge {
  position: relative;
  width: 100%;
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 14px;
}

.dodge__runner { position: relative; transition: transform 0.26s var(--ease-out); }

/* 3 — labirintas */

.maze {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 290px);
}

.maze button {
  aspect-ratio: 1;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.maze button.wall {
  background: rgba(255, 255, 255, 0.015);
  border-color: transparent;
  opacity: 0.35;
  cursor: default;
}

.maze button.player {
  background: radial-gradient(circle at 50% 45%, rgba(47, 224, 138, 0.65), rgba(47, 224, 138, 0.12));
  border-color: rgba(47, 224, 138, 0.9);
  box-shadow: 0 0 22px rgba(47, 224, 138, 0.45);
}

.maze button.goal { color: var(--green); font-size: 1.35rem; }

.maze__meta {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 4 — gaudom gėles */

.field {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  background: radial-gradient(80% 60% at 50% 100%, rgba(47, 224, 138, 0.06), transparent 70%);
  overflow: hidden;
}

.wildflower {
  position: absolute;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 18px rgba(47, 224, 138, 0.75);
  cursor: pointer;
  animation: bloom-pop 0.32s var(--ease-slam) both;
  transition: transform 0.18s, opacity 0.18s;
}

.wildflower:active { transform: scale(0.85); }

.wildflower.is-picked {
  animation: pick-out 0.32s var(--ease-out) both;
  pointer-events: none;
}

@keyframes bloom-pop {
  from { opacity: 0; transform: scale(0.2) rotate(-25deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes pick-out {
  to { opacity: 0; transform: scale(1.7) rotate(30deg); }
}

/* 5 — seka */

.pads {
  display: grid;
  grid-template-columns: repeat(2, 76px);
  gap: 10px;
}

.pad {
  aspect-ratio: 1;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
}

.pad:active { transform: scale(0.96); }

.pad.is-lit {
  background: rgba(47, 224, 138, 0.75);
  border-color: var(--green);
  box-shadow: 0 0 26px rgba(47, 224, 138, 0.65);
  color: #052014;
}

.pads.is-locked { pointer-events: none; opacity: 0.75; }

/* 7 — palaikyk */

.hold {
  position: relative;
  width: min(100%, 250px);
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(47, 224, 138, 0.4);
  background: rgba(47, 224, 138, 0.07);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.hold__fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(47, 224, 138, 0.5), rgba(47, 224, 138, 0.9));
}

.hold span {
  position: relative;
  z-index: 1;
  font-weight: 650;
  font-size: 0.92rem;
}

/* 8 — slaptažodis */

.text {
  width: 100%;
  padding: 15px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.text:focus {
  outline: none;
  border-color: rgba(47, 224, 138, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 224, 138, 0.15);
}

.linkish {
  border: 0;
  background: none;
  padding: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* 9 — žvakės */

.cake {
  width: 210px;
  padding-top: 46px;
  position: relative;
}

.cake__candles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: -4px;
}

.candle {
  position: relative;
  width: 9px;
  height: 30px;
  border-radius: 3px;
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, #fffdf5, #f0c98a);
  cursor: pointer;
  transition: filter 0.3s;
}

.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 9px;
  height: 13px;
  translate: -50% 0;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 65%, #fff8c4, #ffb020 55%, rgba(255, 120, 0, 0) 72%);
  box-shadow: 0 0 14px rgba(255, 170, 30, 0.85);
  transition: opacity 0.3s, transform 0.3s;
}

.candle.is-out::after {
  opacity: 0;
  transform: translate(-50%, 6px) scale(0.35);
}

.candle.is-out { filter: brightness(0.65); }

.cake__body {
  height: 96px;
  border-radius: 12px 12px 18px 18px;
  background:
    linear-gradient(180deg, #f7e6d0 0 12%, transparent 12%),
    linear-gradient(180deg, #4a2b1c, #24140c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -18px 30px -18px rgba(0, 0, 0, 0.9);
  position: relative;
}

.cake__body::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 8px, transparent 8px 16px);
}

/* mažesni ekranai */

@media (max-height: 700px) {
  .field { height: 190px; }
  .task__body { margin-top: 12px; }
  .maze { width: min(100%, 250px); }
}
