:root {
  color-scheme: dark;
  --bg: #020617;
  --card: #07111f;
  --card-2: #0d1b2d;
  --text: #e6fbff;
  --muted: #a9c7ce;
  --accent: #29f8ff;
  --accent-soft: rgba(41, 248, 255, 0.16);
  --border: rgba(41, 248, 255, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(41, 248, 255, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(41, 248, 255, 0.10), transparent 30rem),
    var(--bg);
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 27, 45, 0.94), rgba(7, 17, 31, 0.98));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42), 0 0 36px rgba(41, 248, 255, 0.07);
}

.card::before {
  content: "";
  position: absolute;
  right: clamp(-12px, 5vw, 48px);
  bottom: clamp(-10px, 3vw, 32px);
  width: clamp(150px, 30vw, 260px);
  height: clamp(150px, 30vw, 260px);
  background: url("https://cdn.discordapp.com/emojis/1513264198962905159.png?size=256&quality=lossless") center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.brand-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(41, 248, 255, 0.08);
  border: 1px solid var(--border);
  padding: 8px;
}

.brand-stack {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon.small {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  padding: 5px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.brand-icon.small:hover,
.brand-icon.small:focus-visible {
  transform: rotate(-6deg) scale(1.05);
  border-color: var(--accent);
  outline: none;
}

.bouncing-shockwock {
  position: fixed;
  left: 0;
  top: 0;
  width: 78px;
  height: 78px;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.shockwock-confetti {
  position: fixed;
  width: 8px;
  height: 14px;
  z-index: 10002;
  pointer-events: none;
  border-radius: 3px;
  animation: shockwock-confetti 900ms ease-out forwards;
}

@keyframes shockwock-confetti {
  from { opacity: 1; transform: translate(0, 0) rotate(0); }
  to { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); }
}

.shockwock-fade-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: url("https://cdn.discordapp.com/emojis/1513264198962905159.png?size=512&quality=lossless") center / min(92vmin, 760px) no-repeat;
  opacity: 0;
  transition: opacity 700ms ease;
}

.shockwock-target {
  position: fixed;
  width: 72px;
  height: 72px;
  z-index: 9999;
  cursor: crosshair;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
  transition: transform 90ms ease;
}

.shockwock-target:hover,
.shockwock-target:focus-visible {
  transform: scale(1.1) rotate(-6deg);
  outline: none;
}

.shockwock-target.in-arena {
  position: absolute;
}

.shockwock-counter {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.shockwock-clicker {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(41, 248, 255, 0.08), transparent 34rem);
}

.shockwock-game {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 16px;
  background: radial-gradient(circle, rgba(41, 248, 255, 0.08), rgba(2, 6, 23, 0.76));
}

.shockwock-game-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  padding: 24px;
  text-align: center;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5), 0 0 50px rgba(41, 248, 255, 0.13);
  backdrop-filter: blur(10px);
}

.shockwock-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--card-2);
  cursor: pointer;
}

.shockwock-game-title {
  margin: 0;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.shockwock-game-subtitle {
  margin: 4px 0 18px;
}

.shockwock-hud,
.shockwock-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.shockwock-hud span,
.shockwock-stats div {
  padding: 10px;
  background: rgba(41, 248, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.shockwock-stats strong {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
}

.shockwock-stats span {
  color: var(--muted);
}

.shockwock-arena {
  position: relative;
  height: min(52vh, 430px);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(13, 27, 45, 0.72);
}

.shockwock-arena.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
}

.shockwock-breaker {
  position: relative;
  height: min(58vh, 520px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 27, 45, 0.86), rgba(2, 6, 23, 0.74));
  touch-action: none;
}

.shockwock-bricks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 14px;
}

.shockwock-brick {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(41, 248, 255, 0.08);
  padding: 4px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.shockwock-brick img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.shockwock-brick.broken {
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
}

.shockwock-ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.38));
}

.shockwock-paddle {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 110px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(41, 248, 255, 0.16);
  border: 1px solid var(--border);
}

.shockwock-paddle img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: scaleX(1.8);
  opacity: 0.95;
}

.shockwock-pong {
  position: relative;
  height: min(58vh, 520px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(41, 248, 255, 0.18) calc(50% - 1px), rgba(41, 248, 255, 0.18) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, rgba(13, 27, 45, 0.86), rgba(2, 6, 23, 0.74));
  touch-action: none;
}

.shockwock-pong-ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.38));
}

.shockwock-pong-paddle {
  position: absolute;
  top: 0;
  width: 32px;
  height: 110px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(41, 248, 255, 0.16);
  border: 1px solid var(--border);
}

.shockwock-pong-paddle.player { left: 18px; }
.shockwock-pong-paddle.bot { right: 18px; }

.shockwock-pong-paddle img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: scaleY(1.8);
  opacity: 0.95;
}

.shockwock-grid-cell {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(41, 248, 255, 0.10);
  cursor: crosshair;
  animation: shockwock-target-pop 120ms ease-out;
}

.shockwock-grid-cell.active:hover,
.shockwock-grid-cell.active:focus-visible {
  border-color: var(--accent);
  background: rgba(41, 248, 255, 0.18);
  outline: none;
}

.shockwock-grid-cell img {
  width: min(74px, 18vw);
  height: min(74px, 18vw);
  object-fit: contain;
}

@keyframes shockwock-target-pop {
  from { transform: scale(0.72); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.shockwock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.shockwock-actions.vertical {
  flex-direction: column;
}

.shockwock-actions button,
.shockwock-shop button {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--card-2);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.shockwock-clicker-card {
  pointer-events: auto;
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
  text-align: center;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), 0 0 50px rgba(41, 248, 255, 0.12);
  backdrop-filter: blur(10px);
}

.shockwock-shop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.shockwock-clicker-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  text-align: center;
}

.shockwock-clicker-title {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shockwock-clicker-score {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 900;
}

.shockwock-clicker-button {
  display: block;
  margin: 0 auto;
  width: min(240px, 60vw);
  height: min(240px, 60vw);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(41, 248, 255, 0.08);
  box-shadow: inset 0 0 28px rgba(41, 248, 255, 0.22), 0 18px 50px rgba(0, 0, 0, 0.36);
  transition: transform 90ms ease;
}

.shockwock-clicker-button:active,
.shockwock-clicker-button.pop {
  animation: shockwock-pop 120ms ease-out;
}

@keyframes shockwock-pop {
  0% { transform: scale(1) rotate(0); }
  45% { transform: scale(0.92) rotate(-4deg); }
  100% { transform: scale(1) rotate(0); }
}

.shockwock-clicker-button:active {
  transform: scale(0.92) rotate(-4deg);
}

.shockwock-clicker-button img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  pointer-events: none;
}

.shockwock-float {
  position: fixed;
  z-index: 10001;
  pointer-events: none;
  color: var(--accent);
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  animation: shockwock-float 800ms ease-out forwards;
}

@keyframes shockwock-float {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-54px) scale(1.4); }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.05;
}

h2 {
  margin-top: 32px;
  font-size: 1.3rem;
}

p, li { color: var(--muted); }
a { color: var(--accent); }

.lead {
  max-width: 720px;
  font-size: 1.1rem;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  text-decoration: none;
  color: #001014;
  background: linear-gradient(135deg, var(--accent), #9ffbff);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
}

.button.secondary {
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--border);
}

.meta {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.nav { margin-bottom: 24px; }
.nav a {
  margin-right: 14px;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }

footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .page { width: min(100% - 20px, 920px); padding: 20px 0; }
  .card { border-radius: 18px; }
  .brand-row { align-items: flex-start; }
  .brand-icon { width: 58px; height: 58px; }
  .brand-icon.small { width: 38px; height: 38px; }
  .card::before { opacity: 0.12; }
  .shockwock-game { align-items: start; padding: 12px; }
  .shockwock-game-card { max-height: none; padding: 18px; }
  .shockwock-clicker-button { width: min(200px, 58vw); height: min(200px, 58vw); }
  .button { width: 100%; text-align: center; }
}
