/* ── Kruglya Pages — Shared CSS ── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #08081a;
  --sur: #181836;
  --sur2: #20203e;
  --acc: #7c3aed;
  --violet: #a855f7;
  --pink: #ec4899;
  --txt: #eeeeff;
  --txt2: #9999cc;
  --gradient: linear-gradient(135deg, #7c3aed, #ec4899);
  --border: rgba(168,85,247,0.22);
  --card-bg: rgba(24,24,54,0.85);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html { scroll-behavior:smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Floating Emoji Canvas ── */
#eCvs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Nav ── */
.p-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,26,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.p-nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #f093fb, #f5576c, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.p-nav-links {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.p-nav-links a {
  color: var(--txt2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
  white-space: nowrap;
}

.p-nav-links a:hover {
  color: var(--txt);
  border-color: var(--violet);
  background: rgba(168,85,247,0.12);
}

/* ── Main wrapper ── */
.p-main {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 36px 16px 80px;
}

/* ── Hero ── */
.p-hero {
  text-align: center;
  padding: 36px 0 44px;
}

.p-hero-emoji {
  font-size: 3.4rem;
  display: block;
  margin-bottom: 14px;
  animation: pFloat 3s ease-in-out infinite;
}

@keyframes pFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.p-hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  background: linear-gradient(135deg, #f093fb, #f5576c, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 12px;
}

.p-hero p {
  color: var(--txt2);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Cards ── */
.p-card {
  background: var(--card-bg);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.p-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.7;
}

.p-card h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: #c084fc;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-card p {
  color: var(--txt2);
  line-height: 1.78;
  font-size: 0.92rem;
}

.p-card p + p { margin-top: 10px; }

.p-card a { color: var(--violet); text-decoration: none; }
.p-card a:hover { text-decoration: underline; }

.p-card ul, .p-card ol {
  padding-left: 20px;
  margin-top: 8px;
}

.p-card li {
  color: var(--txt2);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 5px;
}

/* ── Grid 2-col ── */
.p-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 12px;
  margin-top: 14px;
}

.p-mini {
  background: rgba(124,58,237,0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}

.p-mini .icon { font-size: 1.9rem; display: block; margin-bottom: 7px; }
.p-mini strong { display: block; color: var(--txt); font-size: 0.88rem; margin-bottom: 3px; }
.p-mini span { color: var(--txt2); font-size: 0.76rem; }

/* ── Step list ── */
.p-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.p-step:last-child { border-bottom: none; padding-bottom: 0; }

.p-step-num {
  min-width: 38px;
  height: 38px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}

.p-step-body strong {
  display: block;
  color: var(--txt);
  font-size: 0.93rem;
  margin-bottom: 3px;
}

.p-step-body p {
  color: var(--txt2);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0 !important;
}

/* ── Highlight box ── */
.p-highlight {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--txt);
  line-height: 1.7;
}

/* ── Tip box ── */
.p-tip {
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.22);
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--txt2);
  line-height: 1.65;
}

.p-tip strong { color: #ec4899; }

/* ── Tag badge ── */
.p-tag {
  display: inline-block;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 18px;
  margin-bottom: 12px;
}

.p-tag-pink {
  background: rgba(236,72,153,0.15);
  border-color: rgba(236,72,153,0.3);
  color: #ec4899;
}

/* ── Section title ── */
.p-section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--txt2);
  margin: 24px 0 12px;
  padding-left: 4px;
  letter-spacing: 0.02em;
}

/* ── Gesture grid ── */
.p-gesture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px,1fr));
  gap: 10px;
  margin-top: 14px;
}

.p-gesture {
  background: rgba(124,58,237,0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
  text-align: center;
}

.p-gesture .icon { font-size: 1.7rem; display: block; margin-bottom: 5px; }
.p-gesture strong { display: block; color: var(--txt); font-size: 0.82rem; margin-bottom: 3px; }
.p-gesture span { color: var(--txt2); font-size: 0.72rem; }

/* ── Accordion FAQ ── */
details {
  background: var(--card-bg);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
  backdrop-filter: blur(10px);
}

details[open] { border-color: var(--violet); }
details[open]::before { content:''; display:block; height:2px; background: var(--gradient); }

summary {
  padding: 18px 20px;
  cursor: pointer;
  font-family: 'Fredoka One', cursive;
  font-size: 0.98rem;
  color: var(--txt);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }
summary::after { content:'＋'; color: var(--violet); font-size:1.1rem; transition: transform 0.28s; flex-shrink:0; }
details[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 20px 18px;
  color: var(--txt2);
  line-height: 1.78;
  font-size: 0.88rem;
}

.faq-body a { color: var(--violet); text-decoration: none; }
.faq-body strong { color: var(--txt); }

/* ── Blog cards ── */
.p-blog-card {
  background: var(--card-bg);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 14px;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(10px);
}

.p-blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.6;
}

.p-blog-card:hover { border-color: var(--violet); transform: translateY(-2px); }

.p-blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.p-blog-date { color: var(--txt2); font-size: 0.72rem; }

.p-blog-card h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--txt);
  margin-bottom: 7px;
  line-height: 1.3;
}

.p-blog-card p { color: var(--txt2); font-size: 0.85rem; line-height: 1.65; }

.p-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--violet);
  font-size: 0.8rem;
  margin-top: 10px;
  font-weight: 700;
}

/* ── Article header ── */
.p-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--txt2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.p-back-link:hover { color: var(--violet); }

/* ── Question list ── */
.p-q-list { list-style: none; padding: 0; }

.p-q-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
  color: var(--txt2);
  line-height: 1.5;
}

.p-q-list li:last-child { border-bottom: none; }

.p-q-num {
  min-width: 26px;
  height: 26px;
  background: rgba(168,85,247,0.15);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--violet);
  font-weight: 800;
  flex-shrink: 0;
}

.p-q-num-pink {
  background: rgba(236,72,153,0.12);
  border-color: rgba(236,72,153,0.25);
  color: #ec4899;
}

/* ── Requisites ── */
.p-req {
  background: rgba(124,58,237,0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-top: 14px;
}

.p-req-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.83rem;
  flex-wrap: wrap;
}

.p-req-row:last-child { border-bottom: none; }
.p-req-label { color: var(--txt2); }
.p-req-value { color: var(--txt); text-align: right; }

/* ── Contact item ── */
.p-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.p-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.p-contact-icon { font-size: 1.7rem; min-width: 40px; text-align: center; }
.p-contact-info strong { display: block; color: var(--txt); font-size: 0.88rem; margin-bottom: 2px; }
.p-contact-info a { color: var(--violet); text-decoration: none; font-size: 0.92rem; word-break: break-all; }
.p-contact-info a:hover { text-decoration: underline; }
.p-contact-info span { color: var(--txt2); font-size: 0.76rem; }

/* ── CTA Button ── */
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(124,58,237,0.45);
}

.p-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(236,72,153,0.4); }
.p-btn:active { transform: scale(0.97); }

.p-cta { text-align: center; margin-top: 38px; }

/* ── Divider ── */
.p-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 18px 0; }

/* ── Footer ── */
.p-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 16px;
  text-align: center;
  color: var(--txt2);
  font-size: 0.78rem;
}

.p-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 14px;
  margin-bottom: 10px;
}

.p-footer-links a { color: var(--violet); text-decoration: none; font-size: 0.78rem; }
.p-footer-links a:hover { text-decoration: underline; }

/* ── Game badge ── */
.p-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: #c084fc;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.35); border-radius: 2px; }