.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: var(--accent);
  padding: 14px 22px;
  border-radius: 16px;
  width: 100%;
  box-shadow: 0 6px 0 var(--accent-hover), 0 10px 18px var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--accent-hover), 0 4px 10px var(--shadow);
}

.img-btn {
  appearance: none;
  border: none;
  background: transparent center / contain no-repeat;
  cursor: pointer;
  padding: 0;
  image-rendering: pixelated;
  transition: transform .1s ease;
  filter: drop-shadow(0 5px 6px var(--shadow));
}
.img-btn:active { transform: translateY(3px) scale(0.98); }
.play-btn {
  width: clamp(170px, 52vw, 220px);
  height: clamp(84px, 26vw, 108px);
  margin: 2px auto 0;
  display: block;
}
.hint {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.65;
}
.install-btn {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: #fff;
  background: linear-gradient(135deg, #f3a24c 0%, #e07a3f 55%, #d2682f 100%);
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow:
    0 5px 0 var(--accent-hover),
    0 12px 24px -8px rgba(224, 122, 63, 0.7);
  text-shadow: 0 1px 1px rgba(120, 60, 20, 0.35);
  transition: transform .1s ease, box-shadow .1s ease, filter .12s ease;
  margin: 16px auto 0;
  display: none;
  -webkit-tap-highlight-color: transparent;
}
.install-btn.show {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: installBob 2.4s ease-in-out infinite;
}
/* fényes felső csillanás, hogy „gombóc” hatású legyen */
.install-btn::before {
  content: "";
  position: absolute;
  inset: 2px 2px 48%;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* időnként végigfutó fénycsík – odahúzza a szemet */
.install-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: installShine 3.4s ease-in-out infinite;
  pointer-events: none;
}
.install-btn:hover { filter: brightness(1.05); }
.install-btn:active {
  animation: none;
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--accent-hover), 0 5px 12px -6px rgba(224, 122, 63, 0.6);
}
@keyframes installBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes installShine {
  0%        { left: -60%; }
  55%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .install-btn.show { animation: none; }
  .install-btn::after { animation: none; opacity: 0; }
}
.note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(128, 128, 128, 0.12);
  border: 1px dashed var(--panel-border);
  border-radius: 12px;
  padding: 10px 12px;
}

.corner-note, .corner-credit {
  position: absolute;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  font-size: 11px;
  line-height: 1.4;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 9px 11px;
  box-shadow: 0 4px 14px var(--shadow);
  opacity: 0.92;
}

.corner-note {
  left: max(12px, env(safe-area-inset-left));
  width: min(220px, 46vw);
  text-align: left;
}

.corner-credit {
  right: max(12px, env(safe-area-inset-right));
  max-width: min(220px, 46vw);
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease, transform .15s ease;
}
.corner-credit b { color: var(--accent); }
.corner-credit:hover { opacity: 1; transform: translateY(-2px); }
.corner-credit .app-ver {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.5;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.corner-credit .app-id {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.5;
  margin-top: 2px;
  white-space: nowrap;        /* a teljes UUID egy sorban férjen el (PC-n is) */
  font-variant-numeric: tabular-nums;
}
.corner-credit .app-id[hidden] { display: none; }

@media (max-width: 600px) {
  #start-screen {
    flex-direction: column;
    justify-content: safe center;
    overflow-y: auto;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  #start-screen .card {
    margin: 0;
    padding: 20px 18px 22px;
  }
  .card .big-emoji { font-size: 46px; margin-bottom: 4px; }
  .card .lead { font-size: 14px; margin-bottom: 10px; }
  .rules { gap: 6px; margin-bottom: 10px; }
  .rules li { font-size: 12.5px; padding: 7px 10px; }
  .card .warn { font-size: 13px; margin-bottom: 14px; }
  .note, .hint { margin-top: 10px; font-size: 12px; }

  .corner-note, .corner-credit {
    position: static;
    width: auto;
    max-width: 100%;
    margin: 8px auto 0;
    text-align: center;
    white-space: normal;
  }
}
