:root {
  --ink: #252338;
  --muted: #67647a;
  --paper: rgba(255, 255, 255, 0.93);
  --line: rgba(37, 35, 56, 0.14);
  --pink: #ff70a6;
  --blue: #70a6ff;
  --gold: #ffd166;
  --green: #5cd39d;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.78)),
    url("../../res/images/backgrounds/Be-Shinning.png") center / cover fixed;
}

button,
a {
  font: inherit;
}

.game-shell {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.topbar a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #5c4f9a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1;
}

.hero p:last-child {
  max-width: 650px;
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(37, 35, 56, 0.13);
}

.hud {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.hud span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.hud strong {
  display: block;
  margin-top: 2px;
  font-size: 1.35rem;
}

.hud button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #252338;
  background: linear-gradient(135deg, var(--gold), var(--green));
  font-weight: 900;
  cursor: pointer;
}

.hud button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.pads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px auto 0;
  width: min(100%, 560px);
}

.pad {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 -18px 38px rgba(37, 35, 56, 0.14), 0 18px 38px rgba(37, 35, 56, 0.12);
  opacity: 0.78;
  transition: transform 0.12s ease, opacity 0.12s ease, filter 0.12s ease;
}

.pad-a { background: var(--pink); }
.pad-b { background: var(--blue); }
.pad-c { background: var(--gold); }
.pad-d { background: var(--green); }

.pad.is-active,
.pad:active {
  transform: scale(0.97);
  opacity: 1;
  filter: saturate(1.35) brightness(1.12);
}

.message {
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .hud {
    grid-template-columns: repeat(2, 1fr);
  }

  .hud button {
    grid-column: 1 / -1;
  }

  .pad {
    min-height: 118px;
  }

  h1 {
    font-size: 2.3rem;
  }
}
