.hide-levels {
  max-width: 1080px;
  margin: auto;
}

.hide-catalog-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px 12px;
  margin-block: 8px 20px;
  text-align: center;
}

.hide-catalog-heading h1 { margin: 0; font-size: clamp(24px, 4vw, 39px); }
.hide-catalog-heading p { grid-column: 2; margin: 0; font-size: clamp(12px, 2vw, 15px); color: #506957; }
.hide-catalog-heading button { justify-self: start; min-height: 44px; padding: 0 13px; white-space: nowrap; }

.hide-level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
}

.hide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 17px;
  padding: 5px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
}

.hide-card:hover { border-color: #f2c26c; }
.hide-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 11px; background: #e9eddf; }
.hide-card strong { display: grid; gap: 2px; padding: 6px 5px 5px; font-size: clamp(13px, 1.65vw, 17px); }
.hide-card strong span { color: #526c5a; font-weight: 600; font-size: 12px; }

@media (max-width: 900px) {
  .hide-level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
  .hide-level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hide-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-catalog-heading { margin-block: 1px 14px; gap: 4px; }
}

body:has(.hide-player) .topbar {
  padding-block: 8px;
}

body:has(.hide-player) main {
  padding: 4px clamp(8px, 3vw, 24px) 14px;
}

.hide-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  column-gap: clamp(14px, 3vw, 30px);
  max-width: min(100%, max(650px, calc(100dvh + 124px)));
  margin: auto;
}

.hide-heading {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.hide-heading h1 { margin: 0; font-size: clamp(15px, 3vw, 23px); }
.hide-heading span { margin-left: auto; font-size: 13px; white-space: nowrap; }
.hide-heading .capsule { min-height: 44px; padding: 0 13px; white-space: nowrap; }

.hide-player .painted-scene {
  border-radius: clamp(13px, 2.1vw, 23px);
  box-shadow: var(--shadow);
}

.hide-player .hotspot.hide-found {
  outline: 3px solid #fff1ac;
  box-shadow: 0 0 0 2px #407557;
  background: #fff1ac24;
}

.hide-player .hide-highlight {
  outline: 3px solid #ffe29b;
  box-shadow: 0 0 0 5px #41331f65, 0 0 24px #ffe48e;
}

.hide-tray {
  display: grid;
  gap: 12px;
  text-align: center;
}

.hide-guide, .hide-basket {
  border-radius: 20px;
  background: #fffdf3;
  border: 2px solid white;
  padding: 13px;
  box-shadow: var(--shadow);
}

.hide-guide p { margin: 0 0 7px; font-size: 16px; font-weight: 800; }
.hide-guide #hideCaption { font-size: 14px; }
.hide-guide .hide-actions { margin: 8px 0 0; gap: 7px; }
.hide-actions .capsule { min-height: 44px; padding: 0 13px; font-size: 14px; }
.hide-basket { display: flex; align-items: center; justify-content: center; gap: 11px; }
.hide-basket > span { font-size: 32px; }
.hide-basket strong { font-size: 13px; }
.hide-stamps { display: flex; justify-content: center; gap: 4px; margin-top: 3px; }
.hide-stamps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #edeedc; color: #617550; }
.hide-stamps .collected { background: #f9e1a1; animation: popDialog .3s ease; }

dialog.hide-result {
  background: radial-gradient(ellipse at top, #fff0c5, #fffdf5 70%);
  border: 2px solid white;
}

@media (max-width: 700px) and (orientation: portrait) {
  .hide-player { display: flex; flex-direction: column; align-items: stretch; max-width: 500px; }
  .hide-tray { margin-top: 8px; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .hide-guide, .hide-basket { padding: 8px; border-radius: 13px; }
  .hide-guide p { font-size: 14px; }
  .hide-basket { flex-direction: column; gap: 0; }
  .hide-basket > span { font-size: 23px; }
  .hide-stamps span { width: 20px; height: 20px; font-size: 13px; }
}

@media (max-height: 580px) and (orientation: landscape) {
  .hide-player { max-width: min(100%, calc(100dvh + 110px)); }
  .hide-guide, .hide-basket { padding: 8px; }
  .hide-heading .capsule { min-height: 38px; }
  body:has(.hide-player) .topbar { padding-block: 3px; }
  body:has(.hide-player) .topbar button { min-height: 34px; }
  body:has(.hide-player) .round-button { width: 36px; height: 36px; }
}
