/* metin2.html — page-only styles */

/* ---------------------------------------------------------- hero visual: SVG Metin stone (no photo) */
.m2-hero-art {
  position: absolute; inset: 0;
  /* the stone sits in the upper part: the glass stats panel covers the bottom of the card */
  display: flex; align-items: flex-start; justify-content: center; padding-top: 28px;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(165deg, #0d1528 0%, #070a14 75%);
  transition: transform 0.4s ease;
}
.cs-visual-card:hover .m2-hero-art { transform: scale(1.03); }
.m2-stone { width: min(62%, 245px); height: auto; overflow: visible; }
.m2-shadow { fill: rgba(0, 0, 0, 0.45); }
.m2-rock { fill: #141d33; stroke: #60a5fa; stroke-width: 3; stroke-linejoin: round; }
.m2-facet { fill: none; stroke: rgba(147, 197, 253, 0.28); stroke-width: 2; stroke-linejoin: round; }
.m2-runes path { fill: none; stroke: #93c5fd; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.m2-sparks circle { fill: #93c5fd; opacity: 0.5; }
.m2-float { animation: m2Float 6s ease-in-out infinite; }
.m2-runes { animation: m2Runes 4s ease-in-out infinite; }
@keyframes m2Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes m2Runes { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

html[data-theme="light"] .m2-hero-art {
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 55%),
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(165deg, #eef3fb 0%, #e2e8f0 75%);
}
html[data-theme="light"] .m2-shadow { fill: rgba(15, 23, 42, 0.14); }
html[data-theme="light"] .m2-rock { fill: #ffffff; stroke: #2563eb; }
html[data-theme="light"] .m2-facet { stroke: rgba(37, 99, 235, 0.22); }
html[data-theme="light"] .m2-runes path { stroke: #2563eb; }
html[data-theme="light"] .m2-sparks circle { fill: #2563eb; opacity: 0.35; }

/* the shared badge overlay is purple; keep this page on the single blue accent */
.cs-visual-card .cs-engine-badge-overlay { border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: #bfdbfe; }
.cs-visual-card .cs-badge-dot { background: var(--primary); box-shadow: none; }

/* animations always run (site policy: the OS "reduce animations" setting is ignored, see common.js) */

/* ---------------------------------------------------------- plans */
/* the plan cards use the shared cs16-style card (metin2.js); no page overrides */


.m2-store-link { text-align: center; margin-top: 28px; font-size: 14px; }
.m2-store-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); text-decoration: none; font-weight: 600;
  transition: color 0.2s;
}
.m2-store-link a:hover { color: var(--primary); }
.m2-store-link i, .m2-store-link svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------- how it works */
.m2-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  counter-reset: none;
}
.m2-step {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px;
}
.m2-step-num {
  position: absolute; top: 22px; right: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700;
  color: var(--text-dim); letter-spacing: 0.05em;
}
.m2-step-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.m2-step h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--text); }
.m2-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .m2-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------- closing CTA */
.m2-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 44px;
}
.m2-cta-text { flex: 1 1 420px; min-width: 0; }
.m2-cta-text h2 { font-size: 30px; font-weight: 800; margin: 0 0 8px; color: var(--text); }
.m2-cta-text p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0; max-width: 620px; }
.m2-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .m2-cta { padding: 28px 22px; }
  .m2-cta-text h2 { font-size: 24px; }
  .m2-cta-actions, .m2-cta-actions .btn { width: 100%; }
  .m2-cta-actions .btn { justify-content: center; text-align: center; }
}
