/* Collection app only. The shop handoff page does not load this file. */
[hidden] {
  display: none !important;
}
:root {
  --bg: #0e141b;
  --bg-2: #131b24;
  --card: #18222d;
  --line: rgba(198, 214, 230, 0.18);
  --text: #e7eef6;
  --muted: #93a3b5;
  --gold: #5e0d43;
  --gold-2: #d5e2f0;
  --ink: #ffffff;
  --ok: #b7d4c4;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  --sp-blue: #2f6fed;
  --sp-blue-hot: #4c8dff;
}
body { background: var(--bg); }
.app {
  background:
    radial-gradient(120% 42% at 50% -12%, rgba(47, 111, 237, 0.16), transparent 52%),
    var(--bg);
}
.top { align-items: center; }
.brand { min-width: 0; flex: 1; }
.brand h1 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 650;
  font-size: clamp(22px, 6.2vw, 28px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hole { flex-wrap: wrap; align-items: stretch; }
.hole-name { flex: 1 1 100%; min-width: 0; }
.hole-name strong { display: block; }
.hole-name .meta { margin-top: 2px; }
.hole-actions { display: flex; gap: 8px; width: 100%; margin-left: 0; }
.want-raise { margin-top: 8px; }
.hole-actions .btn, .hole-actions .btn-ghost {
  flex: 1 1 0;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  padding: 8px 10px;
}
.slip-line { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.slip-line strong { display: block; }
.home-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}
.home-tools .btn,
.home-tools .btn-ghost { flex: 1 1 140px; }
.fav-head { font-size: 16px; margin: 8px 0 0; }
button.fav {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 12px 14px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
button.fav h2 { margin: 0; font-size: 16px; }
button.fav p { margin: 4px 0 0; }
.fav-more { margin-top: 8px; }
.tiles { margin-top: 0; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 14px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
}
.tile small {
  display: block;
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.tile b, .tile span { overflow-wrap: anywhere; }
.search:focus, input:focus, select:focus, textarea:focus { outline-color: #e4b4d0; }
select {
  border-radius: 8px;
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2393a3b5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6.2L8 10.5l4.5-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
select option { background-color: #18222d; color: #e7eef6; }
.notice-pick {
  width: 100%;
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  scroll-margin-top: 12px;
  scroll-margin-bottom: 96px;
}
.screen.notices-room {
  padding-bottom: max(calc(92px + env(safe-area-inset-bottom)), var(--notice-room, 92px));
}
a.notice-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--gold-2);
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.notice-jump:focus-visible {
  outline: 2px solid #e4b4d0;
  outline-offset: 2px;
}
.notice-pick legend {
  padding: 0;
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.notice-pick .hint { margin: 0 0 4px; }
label.notice-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
.notice-opt input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 1px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #5e0d43;
}
.notice-opt span { display: block; min-width: 0; }
.notice-opt strong { display: block; color: var(--text); font-size: 15px; font-weight: 700; }
.notice-opt small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.notice-opt:has(input:checked) {
  border-color: #e4b4d0;
  background: rgba(94, 13, 67, 0.35);
}
.notice-opt:has(input:focus-visible) {
  outline: 2px solid #e4b4d0;
  outline-offset: 2px;
}
.shop-back { margin-top: 18px; }
input[type="checkbox"] { accent-color: #5e0d43; width: 22px; height: 22px; margin-top: 2px; }
.icon-btn, .btn, .btn-ghost, .chip, a.btn, a.btn-ghost, a.btn-quiet, button.btn-quiet, .photo-clear {
  border-radius: 8px;
}
.kicker {
  border-radius: 4px;
  background: rgba(213, 226, 240, 0.1);
  color: var(--gold-2);
  letter-spacing: 0.06em;
}
.tabs { background: rgba(14, 20, 27, 0.94); }
.toast { background: #d7e3f0; color: #101820; border-radius: 8px; }
.toast:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 899px) {
  /* Above the tabs. A top toast was covering the coin name. */
  .toast:not([hidden]) {
    position: fixed;
    z-index: 40;
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(408px, calc(100% - 32px));
    margin: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }
}
.toast-act {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #101820;
  color: #d7e3f0;
  font-weight: 700;
}
.pay-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pay-line input { flex: 1 1 120px; min-width: 0; }
.pay-line .btn, .pay-line .btn-ghost { flex: 0 0 auto; }
.common-own { margin: 8px 0 0; }
.photo-clear { background: rgba(14, 20, 27, 0.82); color: var(--text); }
.shot {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  min-height: 0;
  line-height: 0;
}
.shot .thumb { margin: 0; }
.viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0e141b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
.viewer img {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  max-height: min(68vh, 640px);
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}
.viewer .hint { text-align: center; max-width: 360px; }
.viewer .row { justify-content: center; }
.viewer-close { align-self: flex-end; }
.reg-tag {
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 10px 6px;
  background: #fff;
  border-radius: 8px;
}
.reg-tag p {
  margin: 0 0 6px;
  color: #5e0d43;
  font: 700 11px/1 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reg-tag a { display: block; line-height: 0; }
.reg-tag svg { display: block; width: 200px; max-width: 100%; height: auto; }
.counter-pic {
  display: block;
  width: min(100%, 220px);
  height: 220px;
  object-fit: contain;
  margin: 10px 0;
  background: #000;
  border-radius: 8px;
}
.miss-pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  margin: 0;
  background:
    radial-gradient(80% 70% at 50% 38%, rgba(213, 226, 240, 0.16), transparent 62%),
    #18222d;
  border: 1px solid rgba(198, 214, 230, 0.22);
  border-radius: 8px;
  color: #d5e2f0;
}
.miss-pic svg { width: 64px; height: 64px; display: block; }
.miss-pic span {
  font: 700 11px/1.2 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d5e2f0;
}
.miss-pic.counter {
  width: min(100%, 220px);
  height: 220px;
  margin: 10px 0;
}
.miss-pic.thumb {
  width: 96px;
  height: 96px;
  margin: 10px 0;
  gap: 4px;
  border-radius: 12px;
}
.miss-pic.thumb svg { width: 40px; height: 40px; }
.miss-pic.thumb span { font-size: 9px; letter-spacing: 0.08em; }
.miss-pic.tight { margin: 0; }
.miss-pic.shot-miss {
  width: 100%;
  height: 88px;
  gap: 2px;
  border: 0;
  border-radius: 10px;
}
.miss-pic.shot-miss svg { width: 36px; height: 36px; }
.miss-pic.shot-miss span { font-size: 9px; letter-spacing: 0.08em; }
.miss-pic.preview-miss {
  width: 100%;
  min-height: 180px;
  border: 0;
  border-radius: 0;
}
.miss-pic.viewer-miss {
  width: min(100%, 280px);
  height: 220px;
}
.another { margin-top: 8px; }
body.counter-hand .tabs,
body.counter-hand #account-btn { display: none; }
body.counter-hand .screen { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  body { background: #090d12; }
}
.shop-live { position: relative; }
.shop-live > h2,
.shop-live > .kicker { padding-right: 36px; }
.live-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.live-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #d7e6ff 0%, var(--sp-blue-hot) 42%, var(--sp-blue) 100%);
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.35);
  animation: live-beat 1.8s ease-in-out infinite;
}
.live-mark:focus-visible {
  outline: 2px solid var(--sp-blue-hot);
  outline-offset: 2px;
}
@keyframes live-beat {
  0%, 46%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.35); }
  8% { transform: scale(1.22); box-shadow: 0 0 0 5px rgba(76, 141, 255, 0); }
  16% { transform: scale(1); box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.35); }
  28% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(76, 141, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-mark::before { animation: none; }
}
