* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #050910;
  --panel: #0b111b;
  --mint: #7af0c4;
  --muted: #a5b0c0;
}
body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 12px 42px;
  background: radial-gradient(ellipse at 50% 0%, #101c31 0%, #050910 48%, #02050a 100%);
  color: #eaf2ff;
  font-family: Arial, Helvetica, sans-serif;
}
.page { width: min(100%, 620px); margin: 0 auto; }
h1 {
  margin: 0 0 20px;
  color: #60a5fa;
  font-size: clamp(27px, 5vw, 36px);
  text-shadow: 0 0 12px #2563eb;
}
.examples { display: grid; gap: 13px; }
.example {
  overflow: hidden;
  padding: 12px;
  border: 1px solid #174c3e;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(10,23,28,.98), rgba(7,13,24,.98));
  box-shadow: 0 0 12px rgba(16,185,129,.06), inset 0 0 18px rgba(16,185,129,.025);
}
.example header h2 { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.example header p { margin: 0; color: #91a0ad; font-size: 10px; }
.stage {
  min-height: 112px;
  display: grid;
  place-items: center;
  margin: 9px 0;
  border: 1px solid #152b34;
  border-radius: 7px;
  background: radial-gradient(ellipse, #111a2a, #080d16 72%);
}
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 82px;
  min-height: 31px;
  padding: 8px 16px;
  border: 1px solid #45617d;
  border-radius: 4px;
  background: #17243b;
  color: #f7fbff;
  font: 700 9px/1 Arial, sans-serif;
  letter-spacing: .6px;
  cursor: pointer;
  transition: .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.btn::before, .btn::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }

/* 01 Glow Effect */
.btn1:hover, .btn1:focus-visible {
  box-shadow: 0 0 10px #2563eb, 0 0 30px #2563eb, 0 0 60px #2563eb;
  transform: translateY(-4px);
  border-color: #60a5fa;
}
/* 02 Fill Left */
.btn2::before { inset: 0 auto 0 0; width: 0; background: #00e5ff; transition: width .4s; }
.btn2:hover::before, .btn2:focus-visible::before { width: 100%; }
.btn2:hover, .btn2:focus-visible { color: #001018; border-color: #00e5ff; }
/* 03 Fill Right */
.btn3::before { inset: 0 0 0 auto; width: 0; background: #f43f5e; transition: width .4s; }
.btn3:hover::before, .btn3:focus-visible::before { width: 100%; }
.btn3:hover, .btn3:focus-visible { border-color: #fb7185; }
/* 04 Center Fill */
.btn4::before {
  width: 0; height: 0; left: 50%; top: 50%; border-radius: 50%;
  background: #a855f7; transform: translate(-50%,-50%);
  transition: width .45s, height .45s;
}
.btn4:hover::before, .btn4:focus-visible::before { width: 300px; height: 300px; }
/* 05 Shine Sweep */
.btn5::after {
  top: -60%; left: -70%; width: 38%; height: 220%;
  transform: skewX(-25deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  transition: left .55s;
}
.btn5:hover::after, .btn5:focus-visible::after { left: 130%; }
/* 06 3D Press */
.btn6 { background: #9a3412; border: 0; box-shadow: 0 6px 0 #61200e; }
.btn6:hover, .btn6:focus-visible { transform: translateY(5px); box-shadow: 0 2px 0 #9a3412; }
/* 07 Border Glow */
.btn7 { border: 1px solid #526477; }
.btn7:hover, .btn7:focus-visible {
  border-color: #22d3ee;
  box-shadow: inset 0 0 15px #22d3ee, 0 0 20px #22d3ee;
}
/* 08 Ripple */
.btn8::after {
  left: 50%; top: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(236,72,153,.85);
  transform: translate(-50%,-50%) scale(0); transition: transform .5s;
}
.btn8:hover::after, .btn8:focus-visible::after { transform: translate(-50%,-50%) scale(20); }
/* 09 Text Slide */
.btn9 span { display: inline-block; transition: transform .35s; }
.btn9::after { content: "WELCOME"; inset: 100% 0 auto; padding: 9px 0; color: #fff; text-align: center; transition: transform .35s; }
.btn9:hover span, .btn9:focus-visible span { transform: translateY(-40px); }
.btn9:hover::after, .btn9:focus-visible::after { transform: translateY(-18px); }
/* 10 Neon */
.btn10 { border-color: #00ffcc; }
.btn10:hover, .btn10:focus-visible {
  color: #000; background: #00ffcc;
  box-shadow: 0 0 10px #00ffcc, 0 0 30px #00ffcc, 0 0 70px #00ffcc;
}
/* 11 Gradient */
.btn11 {
  border: 0; background: linear-gradient(90deg,#7c3aed,#ec4899,#f97316,#7c3aed);
  background-size: 300% 100%; background-position: 0 50%;
}
.btn11:hover, .btn11:focus-visible { background-position: 100% 50%; transform: scale(1.08); }
/* 12 Rotate */
.btn12:hover, .btn12:focus-visible { transform: rotate(-5deg) scale(1.08); }
/* 13 Magnetic Lift */
.btn13:hover, .btn13:focus-visible { transform: translateY(-8px) scale(1.08); box-shadow: 0 9px 20px rgba(34,211,238,.3); }
/* 14 Underline */
.btn14 { border: 0; background: transparent; }
.btn14::after { left: 0; bottom: 3px; width: 0; height: 2px; background: #22d3ee; transition: width .35s; }
.btn14:hover::after, .btn14:focus-visible::after { width: 100%; }
/* 15 Corner Fill */
.btn15::before { left: 0; bottom: 0; width: 0; height: 0; background: #16a34a; transition: width .4s,height .4s; }
.btn15:hover::before, .btn15:focus-visible::before { width: 100%; height: 100%; }
/* 16 Double Border */
.btn16::before { inset: 0; border: 1px solid #f472b6; transition: inset .3s; }
.btn16:hover::before, .btn16:focus-visible::before { inset: -7px; }
/* 17 Liquid Fill */
.btn17::before {
  left: -10%; top: 100%; width: 120%; height: 160%;
  border-radius: 42%; background: #0284c7;
  transition: top .5s; transform: rotate(-8deg);
}
.btn17:hover::before, .btn17:focus-visible::before { top: -50%; }
/* 18 Pulse */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,63,94,.7); } 100% { box-shadow: 0 0 0 18px rgba(244,63,94,0); } }
.btn18:hover, .btn18:focus-visible { animation: pulse .8s infinite; background: #e11d48; }
/* 19 Skew */
.btn19:hover, .btn19:focus-visible { transform: skew(-12deg); }
/* 20 Electric Border */
@keyframes electric {
  from { box-shadow: 0 0 5px #60a5fa; }
  to { box-shadow: 0 0 10px #60a5fa, 0 0 30px #60a5fa, 0 0 50px #2563eb; }
}
.btn20 { border-color: #60a5fa; }
.btn20:hover, .btn20:focus-visible { animation: electric .45s ease-in-out infinite alternate; }

.example pre {
  margin: 0;
  padding: 9px 10px;
  overflow-x: auto;
  border-radius: 5px;
  background: #050a10;
  color: #80eac0;
  font: 10px/1.5 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (min-width: 700px) {
  .page { width: min(100%, 760px); }
  .example { padding: 15px; }
  .stage { min-height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
