/* Shared extras for the side islands (putt putt, fishing): sheets, score panels, meters. */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; }
.sheet-wrap[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.sheet-card { position: relative; width: min(560px, 100%); max-height: 85vh; overflow-y: auto; background: var(--bg-elev); color: var(--ink); border-radius: 20px; padding: 22px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.sheet-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); }
.sheet-card h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.sheet-card h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.sheet-card p, .sheet-card li { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.sheet-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet-card td, .sheet-card th { padding: 7px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.sheet-card th { color: var(--ink-3); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sheet-card td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-card tr.me td { color: var(--correct); font-weight: 600; }
.sheet-card .btn { margin-top: 14px; }

.score-panel {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 60px); transform: translateX(-50%); z-index: 6;
  display: flex; gap: 12px; align-items: baseline; white-space: nowrap;
  background: rgba(255, 255, 255, .9); color: #1b1b1d; padding: 8px 14px; border-radius: 14px;
  font: 500 13px var(--sans); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); max-width: calc(100vw - 28px);
}
.score-panel b { font-weight: 700; font-size: 14px; }
.score-panel[hidden] { display: none; }

.meter { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 150px); transform: translateX(-50%); z-index: 6; width: 180px; height: 12px; border-radius: 6px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .5); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4fa36b, #e9b949, #e0634f); }
.meter[hidden] { display: none; }

.catch-card {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 64px); transform: translateX(-50%); z-index: 7;
  width: min(360px, calc(100vw - 32px)); background: var(--bg-elev); color: var(--ink); border-radius: 16px; padding: 14px 16px;
  border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); animation: tin .3s var(--ease);
}
.catch-card[hidden] { display: none; }
.catch-card h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.catch-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 32vh; overflow-y: auto; }
.catch-card li { display: flex; justify-content: space-between; font-size: 14px; }
.catch-card li.bad { color: #e0634f; }
.catch-card li.big { color: var(--present); font-weight: 600; }
.catch-card .total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-weight: 600; }
.catch-card small { color: var(--ink-3); }

.netlevel { position: fixed; left: 14px; bottom: calc(env(safe-area-inset-bottom) + 16px); z-index: 6; background: rgba(255, 255, 255, .85); color: #1b1b1d; padding: 8px 12px; border-radius: 12px; font: 600 12px var(--sans); line-height: 1.4; pointer-events: none; }
.netlevel b { display: block; font-size: 14px; }
.netlevel .bar { width: 120px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .15); margin-top: 4px; overflow: hidden; }
.netlevel .bar i { display: block; height: 100%; background: #3d8fd6; }
.netlevel[hidden] { display: none; }
@media (max-width: 640px) { .catch-card { top: calc(env(safe-area-inset-top) + 112px); } }
@media (max-width: 640px) { body.putting .itoasts { top: calc(env(safe-area-inset-top) + 156px); } }

/* Salon */
.salon .sheet-card { width: min(520px, 100%); }
.salon h3 { margin: 16px 0 8px; }
.swatches, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.swatch.on { border-color: var(--ink); }
.chips .chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font: 500 13px var(--sans); cursor: pointer; }
.chips .chip.on { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); }
.salon .sheet-card > .btn { width: 100%; }

/* Nearby player actions */
.social { pointer-events: auto; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 8px 6px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); animation: rise .3s var(--ease); margin-bottom: 4px; }
.social[hidden] { display: none; }
.social-name { font: 600 13px var(--sans); color: #1b1b1d; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social button { border: 0; border-radius: 999px; padding: 9px 13px; font: 600 13px var(--sans); background: #1b1b1d; color: #fff; cursor: pointer; }
.social button.slap { background: #e0634f; }
.social.cool button { opacity: .55; }
.bubble.pts { font: 800 18px var(--sans); color: #ffd25a; text-shadow: 0 2px 0 #1b1b1d, 0 0 8px rgba(0,0,0,.4); background: transparent; padding: 0; }

/* Shops */
.shop-wallet { font-size: 18px; }
.muted { color: var(--ink-3); }
.shop { display: grid; gap: 8px; margin-top: 8px; }
.shop-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.shop-item.maxed { opacity: .7; }
.shop-icon { font-size: 24px; text-align: center; }
.shop-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-main b { font-size: 14px; }
.shop-main b small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.shop-main span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.shop-main .next { color: var(--ink-3); }
.shop-item .buy { border: 0; border-radius: 999px; padding: 9px 12px; font: 600 13px var(--sans); background: var(--ink); color: var(--bg-elev); white-space: nowrap; cursor: pointer; }
.shop-item .buy:disabled { opacity: .4; cursor: default; }
.shop-item .owned { font: 600 12px var(--sans); color: var(--correct); white-space: nowrap; }
