:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --panel2:#0c121a;
  --text:#e7eef8;
  --muted:#a9b6c6;
  --line:rgba(255,255,255,.08);
  --link:#9cc4ff;
  --link2:#cfe2ff;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font: 15px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(64,120,255,.18), transparent 60%),
              radial-gradient(900px 700px at 90% 10%, rgba(140,90,255,.14), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:var(--link); text-decoration:none}
a:hover{color:var(--link2); text-decoration:underline}
code,pre{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}

.nav{
  position:sticky; top:0; z-index:20;
  background: rgba(11,15,20,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.nav b{letter-spacing:.3px}
.nav .links{
  display:flex; flex-wrap:wrap;
  gap:14px;
  font-size:14px;
  color:var(--muted);
}
.nav .links a{color:var(--muted)}
.nav .links a:hover{color:var(--text)}

.container{
  max-width: 1020px;
  margin: 0 auto;
  padding: 26px 18px 60px;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

@media (max-width: 860px){
  .hero{grid-template-columns: 1fr}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

.card h1{
  margin:0 0 10px;
  font-size: 34px;
  letter-spacing:.2px;
}
.card p{margin:0; color:var(--muted)}
.kv{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px){ .kv{grid-template-columns:1fr} }

.kv .item{
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}
.kv .item .k{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em}
.kv .item .v{font-size:15px; margin-top:4px}

.note{
  margin-top: 14px;
  padding: 12px 12px;
  border:1px dashed rgba(255,255,255,.14);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(0,0,0,.12);
}

.footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  border-top:1px solid var(--line);
  padding-top: 14px;
}

/* 3D-ish spinning coin (single image, CSS “fake 3D”) */
.coin-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
}
.coin{
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: spinY 2.6s linear infinite;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.55));
}

@keyframes spinY{
  0%   { transform: perspective(900px) rotateY(0deg) rotateZ(-4deg); }
  50%  { transform: perspective(900px) rotateY(180deg) rotateZ(4deg); }
  100% { transform: perspective(900px) rotateY(360deg) rotateZ(-4deg); }
}

/* Add a subtle “rim” highlight using a wrapper */
.coin-frame{
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(120,170,255,.10), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.25), rgba(0,0,0,.35));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}

/* --- 3D spinning coin --- */
.coin-wrap{
  width: 256px;
  height: 256px;
  margin: 18px auto 6px auto;
  perspective: 900px;
}
.coin-3d{
  width: 256px;
  height: 256px;
  display: block;
  transform-style: preserve-3d;
  animation: coinSpin 2.6s linear infinite;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
@keyframes coinSpin{
  0%   { transform: rotateY(0deg) rotateX(10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}


/* --- 3D spinning coin --- */
.coin-wrap{
  width: 256px;
  height: 256px;
  margin: 18px auto 6px auto;
  perspective: 900px;
}
.coin-3d{
  width: 256px;
  height: 256px;
  display: block;
  transform-style: preserve-3d;
  animation: coinSpin 2.6s linear infinite;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
@keyframes coinSpin{
  0%   { transform: rotateY(0deg) rotateX(10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}


/* --- Three.js 3D Coin --- */
.coin3d-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 18px 0 8px 0;
}
#coin3d{
  width: 320px;
  height: 320px;
}
#coin3d canvas{
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: transparent !important;
}

