.brick-button {
  position: relative;
  min-height: 53px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(#354258, #202b3f);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.18),
    inset 0 -5px rgba(0, 0, 0, 0.25),
    0 10px #0a101b,
    0 17px 28px rgba(0, 0, 0, 0.34);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.11em;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.brick-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.brick-button:active {
  transform: translateY(7px);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.17), 0 3px #0a101b, 0 6px 12px rgba(0, 0, 0, 0.35);
}

.brick-button--primary,
#startButton {
  border-color: #c9e7ff;
  color: #fff;
  background: linear-gradient(180deg, #a8dcff 0 3%, #5f91d5 4% 7%, #2a5cbc 8% 54%, #2457b3 55% 76%, #1f4fa8 77% 100%);
  box-shadow:
    inset 0 3px 1px rgba(255, 255, 255, 0.73),
    inset 0 -6px rgba(10, 47, 116, 0.46),
    0 10px #123d91,
    0 18px 34px rgba(52, 124, 242, 0.34);
  text-shadow: 0 2px #0b3077;
}

.brick-button--primary:hover,
#startButton:hover {
  filter: brightness(1.04) saturate(1.04);
}

.button-studs {
  position: absolute;
  top: -11px;
  left: 18px;
  width: 23px;
  height: 12px;
  border-radius: 50% 50% 16% 16%;
  background: #78bdff;
  box-shadow: inset 0 2px 2px #e8f7ff, 51px 0 #78bdff, 102px 0 #78bdff, 153px 0 #78bdff;
}

.icon-button,
.level-step-button {
  display: grid;
  min-width: var(--tap);
  min-height: var(--tap);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  font-size: 22px;
  font-weight: 900;
  transition: 0.18s ease;
}

.icon-button:hover,
.text-button:hover {
  border-color: rgba(103, 181, 255, 0.44);
  background: rgba(52, 124, 242, 0.09);
  transform: translateY(-2px);
}

.icon-button--tool,
.round-action span {
  color: #8dccff;
}

.text-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 12px;
  color: #c4d1e2;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 900;
}

.text-button--danger {
  color: var(--danger-light);
  border-color: rgba(255, 97, 116, 0.33);
}

.admin-overlay { position:fixed; z-index:500; inset:0; display:grid; padding:20px; place-items:center; background:rgba(2,6,13,.84); backdrop-filter:blur(12px); }
.admin-card { position:relative; display:grid; width:min(420px,100%); padding:34px; gap:17px; border:1px solid rgba(101,180,255,.35); border-radius:24px; background:linear-gradient(155deg,#1c2a42,#0d1422 72%); box-shadow:inset 0 2px rgba(255,255,255,.1),0 28px 90px rgba(0,0,0,.72); }
.admin-card h2 { margin:0 0 4px; font-size:34px; }
.admin-card label { display:grid; gap:7px; color:#b8c8dc; font-size:11px; font-weight:900; }
.admin-card input { min-height:48px; padding:0 13px; border:1px solid rgba(101,180,255,.25); border-radius:10px; color:#fff; background:#08111f; }
.admin-close { position:absolute; top:13px; right:14px; width:38px; height:38px; border:0; border-radius:50%; color:#c7d5e6; background:rgba(255,255,255,.07); font-size:24px; }
.admin-message { min-height:20px; margin:0; color:#ffbdc5; font-size:11px; font-weight:800; }

.text-button--danger:hover {
  color: #fff;
  border-color: var(--danger);
  background: rgba(255, 97, 116, 0.11);
}

.star {
  display: inline-grid;
  width: 27px;
  aspect-ratio: 1;
  place-items: center;
  color: #3a4352;
  font-size: 29px;
  line-height: 1;
  text-shadow: 0 2px #080b10;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 70%;
}

.star--center,
.star:nth-child(2) {
  width: 38px;
  font-size: 42px;
  transform: translateY(-5px);
}

.star.is-earned,
.star.is-filled,
.star.filled {
  color: var(--gold);
  text-shadow: 0 1px #fffbd0, 0 4px var(--gold-dark);
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(255, 214, 64, 0.37));
}

.progress-panel,
.target-card,
.editor-canvas-card,
.editor-settings {
  border: 1px solid var(--line-blue);
  background: linear-gradient(145deg, rgba(23, 36, 58, 0.93), rgba(16, 23, 37, 0.91));
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.06), 0 12px #080b13, 0 22px 38px rgba(0, 0, 0, 0.25);
}
