/* Hidden pictures online (assets/play/hidden.js) */
.hp-view { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 3px var(--navy); background: #fff;
  touch-action: manipulation; cursor: crosshair; margin: 0 auto;
  max-width: min(100%, max(300px, calc((100vh - 250px) * 1.209))); }
.game:fullscreen .hp-view { max-width: min(100%, max(300px, calc((100vh - 280px) * 1.209))); }
.hp-stage { position: relative; transform-origin: 0 0; transition: transform .25s; }
.hp-stage.hp-drag { transition: none; }
.hp-stage img { display: block; width: 100%; height: auto; pointer-events: none; }
.hp-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hp-tools { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.hp-gap { flex: 1; }
.hp-tools .g-btn[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 3px 0 #000; opacity: 1; }
.hp-tools .g-btn[aria-pressed="false"] { opacity: 1; }

.hp-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.hp-item { position: relative; border: 0; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line);
  width: 70px; padding: 5px 2px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font: inherit; color: var(--navy); transition: transform .12s, background .2s; }
.hp-item svg { width: 44px; height: 44px; display: block; }
.hp-item small { font: 700 .68rem/1.1 var(--body); color: var(--muted); text-align: center; max-width: 66px; }
.hp-glyphs .hp-item { width: 54px; padding: 4px 2px; }
.hp-item b { font: 800 2rem/44px var(--display); color: var(--navy); }
.hp-item.hp-want { box-shadow: inset 0 0 0 3px var(--blue); transform: translateY(-3px); }
.hp-item.hp-got { background: #e6f7ee; box-shadow: inset 0 0 0 2px var(--green); }
.hp-item.hp-got svg, .hp-item.hp-got b { opacity: .45; }
.hp-item.hp-got::after { content: "\2713"; position: absolute; top: -7px; right: -5px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font: 800 .9rem/24px var(--body); text-align: center; animation: pop .3s ease-out; }
@media (hover: hover) { .hp-item:hover { box-shadow: inset 0 0 0 3px var(--blue); } }
@media (max-width: 600px) {
  .hp-view { border-radius: 10px; }
  .hp-item { width: 58px; } .hp-item svg { width: 36px; height: 36px; } .hp-item small { font-size: .62rem; max-width: 56px; }
  .hp-glyphs .hp-item { width: 46px; } .hp-item b { font-size: 1.7rem; line-height: 38px; }
}
