/* "Як почати грати", team extras and the donate section. Loaded after styles.min.css. */

/* ---------- Як почати грати ---------- */
.play-section { position: relative; }
.play-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 110px); align-items: end; }
.play-heading > p:last-child { max-width: 520px; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; }

.play-address {
  position: relative; padding: 28px; border: 1px solid var(--line-strong); border-radius: 26px;
  background: radial-gradient(circle at 100% 0%, rgba(32, 239, 154, .16), transparent 55%), var(--panel);
  box-shadow: var(--shadow);
}
.play-address-label { display: block; margin-bottom: 14px; color: var(--mint-soft); font-size: 12px; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
.play-address-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(3, 7, 5, .72); }
.play-address code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--paper); font: 400 clamp(24px, 2.6vw, 38px)/1.2 var(--display); letter-spacing: .02em; white-space: nowrap; }
.play-copy {
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 20px; flex: none;
  border: 0; border-radius: 14px; color: #03120a; font: 850 14px/1 var(--body); text-transform: uppercase; letter-spacing: .06em;
  background: var(--mint); box-shadow: 0 12px 30px rgba(32, 239, 154, .25); cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s;
}
.play-copy svg { width: 18px; height: 18px; }
.play-copy:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(32, 239, 154, .35); }
.play-copy:active { transform: translateY(1px); }
.play-copy.is-copied { background: var(--mint-soft); }
.play-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.play-facts li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: #c9d6ce; font-size: 13px; font-weight: 650; background: rgba(255, 255, 255, .025); }
.play-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--mint); }

.play-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; counter-reset: none; }
.play-step {
  position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 59, 39, .32), rgba(7, 17, 12, .85)); overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .35s;
}
.play-step:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.play-step::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(32, 239, 154, .08); filter: blur(30px); }
.play-step-num { color: var(--mint); font: 400 15px/1 var(--display); letter-spacing: .12em; }
.play-step h3 { margin: 18px 0 8px; font: 400 26px/1.05 var(--display); text-transform: uppercase; }
.play-step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.play-step p strong { color: var(--mint-soft); font-weight: 750; }
.play-steps .play-step:not(:last-child)::before {
  content: ""; position: absolute; top: 34px; right: -12px; width: 8px; height: 8px; border-top: 2px solid var(--mint); border-right: 2px solid var(--mint);
  transform: rotate(45deg); opacity: .55; z-index: 2;
}

/* Small animated pictures for each step. */
.play-step-visual { position: relative; height: 92px; margin-top: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(3, 7, 5, .6); overflow: hidden; }
.visual-launch i { position: absolute; left: 18px; top: 22px; width: 48px; height: 48px; border-radius: 10px; background:
  linear-gradient(#6b4a2c 0 0) bottom / 100% 55% no-repeat, linear-gradient(#5fb83e 0 0) top / 100% 45% no-repeat; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); animation: play-bob 3s ease-in-out infinite; }
.visual-launch b { position: absolute; right: 16px; bottom: 14px; padding: 5px 9px; border-radius: 8px; color: #03120a; background: var(--mint); font: 400 16px/1 var(--display); }
.visual-server span { position: absolute; left: 14px; right: 14px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.visual-server span:nth-child(1) { top: 14px; }
.visual-server span:nth-child(2) { top: 38px; width: 45%; }
.visual-server em { position: absolute; left: 14px; bottom: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--mint-soft); font: 600 12px/1.2 monospace; font-style: normal;
  white-space: nowrap; overflow: hidden; background: #07120d; animation: play-type 4s linear infinite; }
.visual-server em::after { content: ""; position: absolute; inset: 0; background: #07120d; animation: play-type-cover 4s steps(19) infinite; }
.visual-login i { position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 7px; background: repeating-linear-gradient(45deg, rgba(32, 239, 154, .35) 0 5px, rgba(32, 239, 154, .15) 5px 10px); }
.visual-login span { position: absolute; left: 48px; right: 14px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.visual-login span:nth-of-type(1) { top: 16px; width: 40%; }
.visual-login span:nth-of-type(2) { top: 31px; width: 25%; }
.visual-login b { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 24px; border-radius: 8px; background: rgba(32, 239, 154, .18); overflow: hidden; }
.visual-login b::before { content: ""; position: absolute; inset: 0; background: var(--mint); transform: translateX(-100%); animation: play-fill 3.5s ease-in-out infinite; }
.visual-play { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; }
.visual-play i { position: relative; border-radius: 8px; background: rgba(32, 239, 154, .12); border: 1px solid var(--line); animation: play-pick 4s ease-in-out infinite; }
.visual-play i::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(32, 239, 154, .43); opacity: 0; animation: play-pick-glow 4s ease-in-out infinite; }
.visual-play i:nth-child(2), .visual-play i:nth-child(2)::before { animation-delay: 1s; }
.visual-play i:nth-child(3), .visual-play i:nth-child(3)::before { animation-delay: 2s; }
.visual-play i:nth-child(4), .visual-play i:nth-child(4)::before { animation-delay: 3s; }

.play-help { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.play-help a { color: var(--mint-soft); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(143, 255, 201, .4); }
.play-help a:hover { color: var(--mint); text-decoration-color: currentColor; }

@keyframes play-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
/* Only transform and opacity here: the video card runs them, so they cost the page almost nothing. */
@keyframes play-type { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes play-type-cover { 0%, 10% { transform: translateX(0); } 55%, 100% { transform: translateX(100%); } }
@keyframes play-fill { 0%, 15% { transform: translateX(-100%); } 60%, 100% { transform: translateX(0); } }
@keyframes play-pick { 0%, 20%, 100% { transform: none; } 8% { transform: translateY(-4px); } }
@keyframes play-pick-glow { 0%, 20%, 100% { opacity: 0; } 8% { opacity: 1; } }

/* ---------- Команда: what you get + how to join ---------- */
.team-extras { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin: 0 0 clamp(36px, 4vw, 56px); }
.team-perks, .team-process { padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(3, 9, 6, .62); backdrop-filter: blur(8px); }
.team-extras-label { display: block; margin-bottom: 16px; color: var(--mint-soft); font-size: 12px; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
.team-perks ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.team-perks li { display: grid; gap: 10px; align-content: start; }
.team-perks b { color: var(--mint); font: 400 14px/1 var(--display); letter-spacing: .12em; }
.team-perks li > span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.team-perks strong { display: block; margin-bottom: 4px; color: var(--paper); font-size: 16px; }
.team-process ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.team-process li { display: flex; align-items: center; gap: 12px; color: #d6e2db; font-size: 15px; }
.team-process i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; font-style: normal; font-weight: 850; color: #03120a; background: var(--mint); }

/* ---------- Підтримка ---------- */
.donate-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; }
.donate-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 56px);
  border-radius: 30px; border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 0% 100%, rgba(183, 169, 25, .16), transparent 45%), radial-gradient(circle at 100% 0%, rgba(49, 90, 255, .14), transparent 45%), var(--panel);
}
.donate-glow { position: absolute; width: 360px; height: 360px; right: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(32, 239, 154, .35), transparent 65%); animation: donate-breathe 6s ease-in-out infinite; pointer-events: none; }
.donate-card h2 { position: relative; margin-bottom: 20px; font-size: clamp(46px, 5vw, 84px); line-height: 1.02; }
.donate-lead { position: relative; max-width: 520px; margin: 0 0 30px; color: #c3d0c8; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; }
.donate-button { position: relative; align-self: flex-start; }
.donate-card small { position: relative; margin-top: 16px; color: var(--muted); font-size: 13px; }

.donate-goals { display: grid; gap: 12px; align-content: start; }
.donate-goals-label { color: var(--mint-soft); font-size: 12px; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
.donate-goal { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(7, 17, 12, .78); transition: transform .3s var(--ease-out), border-color .3s; }
.donate-goal:hover { transform: translateX(6px); border-color: var(--line-strong); }
.donate-goal-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 15px; color: var(--mint); background: rgba(32, 239, 154, .1); border: 1px solid var(--line-strong); }
.goal-events .donate-goal-icon { color: #f3dc54; background: rgba(183, 169, 25, .12); border-color: rgba(243, 220, 84, .35); }
.goal-content .donate-goal-icon { color: #8aa2ff; background: rgba(49, 90, 255, .12); border-color: rgba(138, 162, 255, .35); }
.donate-goal-icon svg { width: 26px; height: 26px; }
.donate-goal strong { display: block; font: 400 24px/1.1 var(--display); text-transform: uppercase; }
.donate-goal p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.donate-free { margin-top: 4px; padding: 18px 20px; border-radius: 20px; border: 1px dashed var(--line-strong); color: #d6e2db; font-size: 14.5px; }
.donate-free ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.donate-free li { padding: 6px 12px; border-radius: 999px; background: rgba(32, 239, 154, .08); color: var(--mint-soft); font-size: 13px; font-weight: 650; }
@keyframes donate-breathe { 50% { transform: scale(1.18); opacity: .7; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .play-steps { grid-template-columns: repeat(2, 1fr); }
  .play-steps .play-step:nth-child(2)::before { display: none; }
  .team-perks ul { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .play-layout, .team-extras, .donate-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .play-steps { grid-template-columns: 1fr; }
  .play-steps .play-step::before { display: none; }
  .play-address { padding: 20px; border-radius: 22px; }
  .play-address-row { flex-direction: column; align-items: stretch; padding: 14px; }
  .play-address code { text-align: center; font-size: 26px; }
  .play-copy { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-launch i, .visual-server em, .visual-login b::before, .visual-play i, .visual-play i::before, .donate-glow { animation: none; }
  .visual-server em::after { display: none; }
  .visual-login b::before { transform: none; }
}

/* LIVE badge: a ring that grows and fades, shown while the card is hovered. */
.media-live { box-shadow: none; animation: none; }
.media-live::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 76, 105, .45); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .team-card:hover .media-live::after { animation: live-ring 2.4s ease-out infinite; }
}
@keyframes live-ring { 0% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: scale(1.3, 2); } }

/* Sections away from the screen stop animating (app.js sets the class). */
.is-offscreen, .is-offscreen::before, .is-offscreen::after,
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* Blocks fade in quickly, and app.js starts it before they reach the screen. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(12px); transition: opacity 300ms ease, transform 300ms ease; }
  .js :is(.direction-card, .team-card, .social-card, .story-milestone, .story-path, .story-quote).reveal.is-visible {
    transition: opacity 300ms ease, transform 300ms ease, filter 300ms ease, border-color 360ms ease, box-shadow 420ms ease;
  }
}

/* Phones and narrow screens: drop the effects a weak video chip struggles with. */
@media (max-width: 920px), (pointer: coarse) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header.is-scrolled { background: rgba(3, 7, 5, .96); }
  .main-nav { background: rgba(4, 12, 8, .97); }
  .identity-card::before { animation: none; }
  .identity-card { box-shadow: 0 24px 48px rgba(0, 0, 0, .5), inset 0 0 90px rgba(32, 239, 154, .06); }
  .play-address, .team-card, .social-card, .code-window, .creative-panel { box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
}

/* Лаунчер: помітно, але без тиску */
.main-nav a.nav-launcher { color: var(--mint-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; }
.main-nav a.nav-launcher:hover { background: rgba(32, 239, 154, 0.12); }
.play-launcher { display: block; margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--paper); text-decoration: none; transition: background 0.2s; }
.play-launcher:hover { background: rgba(32, 239, 154, 0.08); }
.play-launcher b { display: block; color: var(--mint-soft); }
.play-launcher small { color: var(--muted); }
