/* ============================================================
   Growvia — layar Halving "Viaz Mint" (screens/halving.js).
   ============================================================ */

.mint-view { gap: 12px; }
.main .mint-view img.pix.pix:not(.x) { max-width: none; max-height: none; }

/* ─────────── HERO ─────────── */
.mint-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); align-items: center; gap: 16px;
  min-height: 340px; padding: 18px 22px;
  background: radial-gradient(ellipse at 50% 50%, #3a2a0e 0%, #1a1308 50%, #0b0805 100%);
  border: 3px solid #0d0a07; box-shadow: 0 0 0 2px #7a5a1e, 0 6px 0 rgba(0, 0, 0, .55), inset 0 0 80px rgba(242, 178, 58, .08);
  animation: mint-in .5s cubic-bezier(.2, .9, .3, 1.1) both;
}
.mint-hero.floor { box-shadow: 0 0 0 2px #7a2a24, 0 6px 0 rgba(0, 0, 0, .55); }
.mint-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mint-rays {
  position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(rgba(242, 178, 58, .09) 0 6deg, transparent 6deg 15deg);
  mask: radial-gradient(circle, #000 10%, transparent 60%);
  animation: mint-spin 60s linear infinite;
}
.mint-grid {
  position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(242, 178, 58, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 178, 58, .15) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 80%);
}
.mint-left, .mint-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mint-right { align-items: flex-end; text-align: right; }
.mint-kicker { font-family: var(--font-pixel); font-size: 9px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.mint-epoch { display: flex; align-items: baseline; gap: 10px; }
.mint-epoch span { font-family: var(--font-pixel); font-size: 10px; color: var(--muted); }
.mint-epoch b {
  font-family: var(--font-pixel); font-size: 56px; line-height: 1; color: #ffe08a;
  text-shadow: 4px 4px 0 #6b4a0e, 8px 8px 0 rgba(0, 0, 0, .55), 0 0 30px rgba(242, 178, 58, .5);
  animation: mint-pop .7s cubic-bezier(.2, 1.6, .4, 1) both .2s;
}
.mint-rate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mint-rate > div { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; background: rgba(0, 0, 0, .4); border: 2px solid #3a2a10; }
.mint-rate small, .mint-stat small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.mint-rate b { font-family: var(--font-pixel); font-size: 16px; color: var(--head); }
.mint-rate-now { border-color: #7a5a1e !important; }
.mint-rate-now b { color: var(--gold); }
.mint-rate-next b { color: #ff9b8f; }
.mint-rate-arrow { width: 0; height: 0; border: 8px solid transparent; border-left: 12px solid #ff9b8f; animation: mint-nudge 1.2s ease-in-out infinite; }

/* koin 3D */
.mint-center { position: relative; width: 300px; height: 300px; justify-self: center; }
.mint-ring { position: absolute; inset: 0; width: 300px; height: 300px; transform: rotate(0deg); }
.mint-track { fill: none; stroke: #241a0b; stroke-width: 14; }
.mint-arc { fill: none; stroke-width: 14; transform: rotate(-90deg); transform-origin: 150px 150px; filter: drop-shadow(0 0 8px rgba(242, 178, 58, .8)); animation: mint-arc 1.6s cubic-bezier(.3, .8, .3, 1) forwards .3s; }
.mint-tick { stroke: #3a2a10; stroke-width: 3; }
.mint-tick.on { stroke: #f2b23a; filter: drop-shadow(0 0 3px #f2b23a); }
.mint-head { fill: #fff6c8; filter: drop-shadow(0 0 8px #ffd469); animation: mint-blink 1.2s ease-in-out infinite; }
.mint-coin-wrap { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; perspective: 600px; }
.mint-coin { position: relative; width: 100%; height: 100%; animation: mint-bob 3.2s ease-in-out infinite; }
.mint-face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0%, #ffd469 25%, #f2b23a 55%, #a8740f 85%);
  box-shadow: inset 0 0 0 8px #c98d16, inset 0 0 0 11px #7a5212, inset 0 -10px 20px rgba(0, 0, 0, .35);
}
.mint-face::after { content: ''; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: rotate(25deg); animation: mint-glint 3s ease-in-out infinite; }
.mint-glyph { width: 76px !important; height: 76px !important; filter: drop-shadow(0 3px 0 rgba(107, 74, 14, .8)); }
.mint-crack { position: absolute; left: 50%; top: 8%; width: 2px; height: 84%; margin-left: -1px; background: linear-gradient(180deg, transparent, rgba(80, 50, 8, .75) 20%, rgba(80, 50, 8, .75) 80%, transparent); clip-path: polygon(0 0, 100% 0, 100% 30%, 300% 34%, 100% 38%, 100% 100%, 0 100%, 0 62%, -200% 58%, 0 54%); }
.mint-shadow { position: absolute; left: 20%; right: 20%; bottom: -26px; height: 14px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(3px); animation: mint-shadow 3.2s ease-in-out infinite; }
.mint-sparks { position: absolute; inset: 0; pointer-events: none; }
.mint-sparks i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; background: #fff1a8; box-shadow: 0 0 6px #ffd469; transform: rotate(var(--a)) translateY(-90px); animation: mint-spark 2.4s ease-out infinite; }
.mint-pct { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 5px 12px; background: #0d0a07; border: 2px solid #7a5a1e; white-space: nowrap; }
.mint-pct b { font-family: var(--font-pixel); font-size: 13px; color: var(--gold); }
.mint-pct small { font-size: 9px; color: var(--muted); }
.mint-stat { display: flex; flex-direction: column; gap: 2px; }
.mint-stat b, .mint-count { font-family: var(--font-pixel); font-size: 14px; color: var(--head); font-variant-numeric: tabular-nums; }
.mint-stat.big b, .mint-stat.big .mint-count { font-size: 20px; color: #ffe08a; text-shadow: 3px 3px 0 #6b4a0e; }
.mint-meter { width: 100%; max-width: 260px; }
.mint-meter-bar { height: 12px; background: #0d0a07; border: 2px solid #3a2a10; overflow: hidden; }
.mint-meter-bar i { display: block; height: 100%; transform-origin: left; background: repeating-linear-gradient(-45deg, #f2b23a 0 8px, #c98d16 8px 16px); background-size: 22px 22px; animation: mint-stripes .8s linear infinite; box-shadow: 0 0 10px rgba(242, 178, 58, .6); }
.mint-meter-lbl { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; color: var(--muted); }

/* ─────────── panel umum ─────────── */
.mint-panel { position: relative; overflow: hidden; border-color: #3a2a10; animation: mint-in .45s ease-out both; }
.mint-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }

/* kurva suplai */
.sc-wrap { position: relative; margin-top: 4px; background: radial-gradient(ellipse at 30% 100%, rgba(242, 178, 58, .08), transparent 60%), #120d07; border: 2px solid #241a0b; }
.sc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.sc-grid { stroke: rgba(242, 178, 58, .12); stroke-dasharray: 3 5; }
.sc-ylab, .sc-xlab { font: 10px var(--font-body); fill: #a89070; }
.sc-area-future { fill: rgba(168, 144, 112, .06); }
.sc-area { fill: url(#scFill); }
.sc-line { fill: none; stroke: #f2b23a; stroke-width: 3; stroke-linejoin: miter; filter: drop-shadow(0 0 4px rgba(242, 178, 58, .7)); stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: sc-draw 2.2s ease-out forwards .2s; }
.sc-vline { stroke: rgba(240, 228, 205, .1); }
.sc-mark .sc-dot { fill: #241a0b; stroke: #6b5236; stroke-width: 2; }
.sc-mark.passed .sc-dot { fill: #f2b23a; stroke: #fff1a8; }
.sc-mark.passed .sc-xlab { fill: #f2b23a; }
.sc-now-line { stroke: #ff9b8f; stroke-width: 2; stroke-dasharray: 4 4; animation: sc-dash 1s linear infinite; }
.sc-now { fill: #ff6b5c; stroke: #fff; stroke-width: 2; }
.sc-now-pulse { fill: none; stroke: #ff6b5c; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: sc-pulse 1.6s ease-out infinite; }
.sc-now-lab { font: bold 11px var(--font-body); fill: #ffd9d4; paint-order: stroke; stroke: #000; stroke-width: 3px; }
.mint-epochs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-top: 10px; }
.mint-ep { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; background: #120d07; border: 2px solid #241a0b; text-align: center; }
.mint-ep-n { font-family: var(--font-pixel); font-size: 8px; color: var(--muted); }
.mint-ep b { font-family: var(--font-pixel); font-size: 11px; color: #6b5236; }
.mint-ep small { font-size: 10px; color: var(--muted); }
.mint-ep-tag { font-size: 9px; text-transform: uppercase; color: var(--muted); }
.mint-ep.passed { border-color: #7a5a1e; background: linear-gradient(180deg, #2a1f0a, #120d07); }
.mint-ep.passed b { color: var(--gold); }
.mint-ep.passed .mint-ep-tag { color: var(--green); }
.mint-ep.next { border-color: #ff6b5c; animation: mint-next 1.6s ease-in-out infinite; }
.mint-ep.next b { color: #ff9b8f; }
.mint-ep.next .mint-ep-tag { color: #ff9b8f; font-weight: 700; }

/* ekonomi */
.eco-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #a5f05a; font-weight: 700; }
.eco-live i { width: 8px; height: 8px; border-radius: 50%; background: #8ac926; box-shadow: 0 0 8px #8ac926; animation: mint-blink 1.2s ease-in-out infinite; }
.eco-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: center; }
.eco-donut-wrap { position: relative; width: 160px; height: 160px; }
.eco-donut { width: 160px; height: 160px; transform: rotate(-90deg); }
.eco-burn { fill: none; stroke: #5a1612; stroke-width: 20; }
.eco-circ { fill: none; stroke: #f2b23a; stroke-width: 20; filter: drop-shadow(0 0 5px rgba(242, 178, 58, .6)); animation: mint-arc 1.6s cubic-bezier(.3, .8, .3, 1) forwards .3s; }
.eco-donut-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.eco-donut-in b { font-family: var(--font-pixel); font-size: 16px; color: var(--gold); }
.eco-donut-in small { font-size: 10px; color: var(--muted); }
.eco-legend { display: grid; gap: 6px; }
.eco-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; background: #120d07; border: 2px solid #241a0b; font-size: 12px; }
.eco-row > i { width: 12px; height: 12px; }
.eco-row.circ > i { background: #f2b23a; } .eco-row.burn > i { background: #a8322b; }
.main .eco-row img { width: 16px; height: 16px; }
.eco-row b, .eco-row .mint-count { font-family: var(--font-pixel); font-size: 10px; color: var(--head); }
.eco-skills { grid-column: 1 / -1; display: grid; gap: 6px; }
.eco-stack { display: flex; height: 12px; border: 2px solid #0d0a07; overflow: hidden; margin-bottom: 4px; }
.eco-stack i { min-width: 2px; transition: flex-grow .8s ease; }
.eco-skill { display: grid; grid-template-columns: 20px 84px minmax(0, 1fr) 46px 50px; align-items: center; gap: 8px; font-size: 12px; }
.main .eco-skill img { width: 20px; height: 20px; }
.eco-skill-bar { height: 10px; background: #120d07; border: 2px solid #241a0b; overflow: hidden; }
.eco-skill-bar i { display: block; height: 100%; transform-origin: left; background: var(--c); box-shadow: 0 0 8px var(--c); animation: mint-grow 1.2s cubic-bezier(.3, .8, .3, 1) both .3s; }
.eco-skill b { font-family: var(--font-pixel); font-size: 10px; color: var(--head); text-align: right; }
.eco-skill small { font-size: 10px; color: var(--muted); text-align: right; }

/* seumur hidup */
.life-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.life-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, #120d07), #120d07); border: 2px solid color-mix(in srgb, var(--c) 40%, #241a0b);
  animation: mint-in .45s ease-out both;
}
.main .life-cell img { width: 30px; height: 30px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.life-cell small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; min-height: 2.4em; }
.life-cell .mint-count { font-size: 13px; color: var(--c); }

/* cara kerja */
.how-flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.how-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; background: #120d07; border: 2px solid #241a0b; font-size: 10px; text-align: center; color: var(--head); }
.main .how-step img { width: 26px; height: 26px; }
.how-step.hot { border-color: #7a5a1e; animation: mint-next 2s ease-in-out infinite; }
.how-arrow { flex: none; width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid var(--gold); animation: mint-nudge 1.2s ease-in-out infinite; }
.how-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.how-fact { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; background: #120d07; border: 2px solid #241a0b; }
.how-fact small { font-size: 10px; color: var(--muted); }
.how-fact b { font-family: var(--font-pixel); font-size: 11px; color: var(--gold); }
.how-affs { display: grid; gap: 6px; }
.how-aff { display: flex; align-items: center; gap: 8px; padding: 7px 9px; background: #120d07; border-left: 3px solid var(--gold); font-size: 12px; }
.main .how-aff img { width: 18px; height: 18px; }

/* ─────────── keyframes ─────────── */
@keyframes mint-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes mint-spin { to { transform: rotate(360deg); } }
@keyframes mint-pop { from { transform: scale(.3); opacity: 0; } }
@keyframes mint-arc { to { stroke-dashoffset: var(--off); } }
@keyframes mint-blink { 50% { opacity: .4; } }
@keyframes mint-bob { 50% { transform: translateY(-10px) rotate(-4deg); } }
@keyframes mint-shadow { 50% { transform: scaleX(.75); opacity: .3; } }
@keyframes mint-glint { 0%, 60% { left: -60%; } 100% { left: 140%; } }
@keyframes mint-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-80px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-150px) scale(1); } }
@keyframes mint-stripes { to { background-position: 22px 0; } }
@keyframes mint-nudge { 50% { transform: translateX(4px); } }
@keyframes mint-next { 50% { box-shadow: 0 0 14px rgba(255, 107, 92, .45); } }
@keyframes mint-grow { from { transform: scaleX(0); } }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-dash { to { stroke-dashoffset: -8; } }
@keyframes sc-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* ─────────── responsif ─────────── */
@media (max-width: 1180px) {
  .mint-hero { grid-template-columns: minmax(0, 1fr) 280px; }
  .mint-right { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; text-align: left; }
  .mint-center, .mint-ring { width: 280px; height: 280px; }
  .mint-cols { grid-template-columns: minmax(0, 1fr); }
  .life-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mint-hero { grid-template-columns: minmax(0, 1fr); padding: 14px; min-height: 0; gap: 14px; }
  .mint-left { align-items: center; text-align: center; }
  .mint-rate { justify-content: center; }
  .mint-epoch b { font-size: 42px; }
  .mint-center, .mint-ring { width: 240px; height: 240px; }
  .mint-coin-wrap { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
  .mint-glyph { width: 60px !important; height: 60px !important; }
  .mint-right { flex-direction: column; align-items: center; text-align: center; }
  .eco-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .eco-legend { width: 100%; }
  .eco-skill { grid-template-columns: 20px 70px minmax(0, 1fr) 40px; }
  .eco-skill small { display: none; }
  .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .mint-view * { animation: none !important; }
  .mint-arc, .eco-circ { stroke-dashoffset: var(--off) !important; }
  .sc-line { stroke-dashoffset: 0 !important; }
}
