/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Header entrance ── */
.site-header {
  animation: fadeDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Page layout ── */
.practice-page {
  padding: 64px 48px 100px;
  position: relative;
  z-index: 1;
}

.practice-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Hero ── */
.practice-hero {
  margin-bottom: 48px;
  text-align: center;
}

.practice-title {
  font-size: clamp(4rem, 5vw, 6rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.05em;
  line-height: 1.06;
  font-family: "Nunito", sans-serif;
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.practice-sub {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  margin: 12px auto 0;
  line-height: 1.65;
  font-family: "Source Sans 3", sans-serif;
  max-width: 480px;
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}

/* ── Accordion list ── */
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Accordion item ── */
.accItem {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.accItem:nth-child(1) { animation-delay: 0.28s; }
.accItem:nth-child(2) { animation-delay: 0.36s; }
.accItem:nth-child(3) { animation-delay: 0.44s; }
.accItem:nth-child(4) { animation-delay: 0.52s; }
.accItem:nth-child(5) { animation-delay: 0.60s; }
.accItem:nth-child(6) { animation-delay: 0.68s; }
.accItem:nth-child(7) { animation-delay: 0.74s; }
.accItem:nth-child(8) { animation-delay: 0.80s; }
.accItem:nth-child(9) { animation-delay: 0.86s; }

.accItem:hover { transform: translateY(-1px); }

.accItem--green  { box-shadow: inset 5px 0 0 0 #34c989,    var(--shadow-sm); }
.accItem--blue   { box-shadow: inset 5px 0 0 0 var(--primary), var(--shadow-sm); }
.accItem--red    { box-shadow: inset 5px 0 0 0 #f05c5c,    var(--shadow-sm); }
.accItem--purple { box-shadow: inset 5px 0 0 0 #9b6ff5,    var(--shadow-sm); }

.accItem--green:hover  { box-shadow: inset 5px 0 0 0 #34c989,    var(--shadow-md); }
.accItem--blue:hover   { box-shadow: inset 5px 0 0 0 var(--primary), var(--shadow-md); }
.accItem--red:hover    { box-shadow: inset 5px 0 0 0 #f05c5c,    var(--shadow-md); }
.accItem--purple:hover { box-shadow: inset 5px 0 0 0 #9b6ff5,    var(--shadow-md); }

/* ── Accordion header button ── */
.accHeader {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background 0.15s;
}

.accHeader:hover { background: rgba(255, 255, 255, 0.45); }

.accHeader__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.accIcon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.accTitleRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.accTitle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  font-family: "Nunito", sans-serif;
}

.accDesc {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

/* ── Chevron ── */
.accChev {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
}

.accChev svg {
  width: 20px;
  height: 20px;
  display: block;
}

.accItem.open .accChev { transform: rotate(180deg); }

/* ── Accordion body ── */
.accBody {
  display: flex !important;
  flex-direction: column;
  border-top: 1px solid transparent;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease, border-top-color 0.2s ease;
}

.accItem.open .accBody {
  max-height: 600px;
  border-top-color: var(--line);
}

/* ── Game links ── */
.gameLink {
  display: flex;
  align-items: center;
  padding: 12px 22px 12px 56px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.gameLink::before {
  content: "›";
  position: absolute;
  left: 34px;
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
}

.gameLink:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.gameLink:hover::before {
  color: var(--primary);
  transform: translateX(3px);
}

.gameLink:first-child { margin-top: 6px; }
.gameLink:last-child  { margin-bottom: 6px; }

/* ── Level divider ── */
/* ── Level divider ── */

.level-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 20px;
}

.level-divider::before,
.level-divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--line);
}

.level-label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}


/* ── Locked accordion ── */
.accItem--locked {
  opacity: 0.65;
  box-shadow: inset 5px 0 0 0 var(--line), var(--shadow-sm);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.accItem--locked:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.accHeader--locked {
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.accLock {
  flex-shrink: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.accLock svg {
  width: 20px;
  height: 20px;
  display: block;
}

.accBadge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #92600a;
  background: #fff4d6;
  border: 1px solid #f5c842;
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Skyline band ── */
.footer-image-band {
  animation: fadeIn 1s ease both;
  animation-delay: 0.6s;
}

/* ── Footer ── */
.site-footer {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.7s;
}

/* ── Responsive ── */
@media (max-width: 840px) {
  .practice-page { padding: 40px 24px 80px; }
}

@media (max-width: 520px) {
  .practice-page { padding: 28px 16px 64px; }
  .practice-title { font-size: 1.95rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
  .practice-sub { font-size: 0.95rem; line-height: 1.65; max-width: 80%; margin: 8px auto 0; }
  .accHeader { padding: 16px 16px; }
  .gameLink { padding: 11px 16px 11px 44px; }
  .gameLink::before { left: 26px; }
}

/* ── Subscribers modal ── */
.sub-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.sub-modal.is-open { display: flex; }

.sub-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sub-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 380px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  text-align: center;
  animation: subCardIn 0.25s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes subCardIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.sub-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1;
}

.sub-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.sub-desc {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 28px;
  line-height: 1.5;
}

.sub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
}
.sub-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.sub-btn--primary {
  background: linear-gradient(135deg, #2f9fe8, #1f86cc);
  color: #fff;
}

.sub-btn--secondary {
  background: #f3f4f6;
  color: #374151;
}

.sub-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
}
.sub-close:hover { color: #374151; }
