/* Pocket Change */
.gm-head [hidden] { display: none; }
.gm-pocket { --pc-track: var(--rail); }

/* Round strip (same shape as Landfall's) */
.pc-prog { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr) 1.2fr; gap: 6px; margin: 0 0 18px; padding: 0; }
.pc-prog li { border: 2px solid var(--rail); border-radius: 6px; padding: 4px 8px 5px; min-width: 0; }
.pc-prog .n { display: block; font-size: 11px; color: var(--quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-prog b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pc-prog .cur { border-color: var(--ink); }
.pc-prog .cur b { font-weight: 600; font-size: 15px; }
.pc-prog .done.hit { background: var(--gm-hit); border-color: var(--gm-hit); color: #fff; }
.pc-prog .done.hit .n { color: #DCE4FA; }
.pc-prog .done.near { background: var(--gm-near); border-color: var(--gm-near); }
.pc-prog .done.near .n { color: #5C4E00; }
.pc-prog .done.miss { background: var(--wash); border-color: var(--faint); }
.pc-prog .tot { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pc-prog .tot .n { color: #BDBDBD; }

/* The item */
.pc-card { border: 2px solid var(--ink); border-radius: 10px; padding: 22px 24px 20px; background: var(--paper); }
.pc-kick { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.pc-item { margin: 4px 0 0; font-size: clamp(28px, 6.5vw, 42px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pc-item .of { font-size: .5em; font-weight: 600; color: var(--quiet); letter-spacing: 0; }
.pc-detail { margin: 6px 0 0; color: var(--quiet); font-size: 16px; }
.pc-q { margin: 14px 0 0; font-size: 20px; }
.pc-year { display: inline-block; background: var(--hl); padding: 0 6px; border-radius: 3px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Entry: typed price, then the slider */
.pc-entry { margin-top: 20px; }
.pc-lbl { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); margin-bottom: 6px; }
.pc-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-cur { font-size: 32px; font-weight: 800; margin-right: -8px; }
.pc-in { width: 9.5ch; min-width: 0; height: 56px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper);
  color: var(--ink); font: 800 30px/1 var(--sans); font-variant-numeric: tabular-nums; }
.pc-in:focus { outline: 3px solid var(--cite); outline-offset: 2px; }
.pc-say { font-size: 18px; font-weight: 600; color: var(--quiet); min-height: 1.4em; }

.pc-slide { position: relative; margin: 22px 0 0; padding-bottom: 22px; }
.pc-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent;
  cursor: pointer; touch-action: pan-y; }
.pc-range:focus { outline: none; }
.pc-range:focus-visible { outline: 3px solid var(--cite); outline-offset: 4px; border-radius: 6px; }
.pc-range::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: var(--pc-track); border: 1px solid var(--faint); }
.pc-range::-moz-range-track { height: 10px; border-radius: 5px; background: var(--pc-track); border: 1px solid var(--faint); }
.pc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 34px; height: 34px; margin-top: -13px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.pc-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.pc-ticks { position: absolute; left: 17px; right: 17px; bottom: 0; height: 18px; font-size: 12px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.pc-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.pc-ticks span::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: var(--faint); }

.pc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.pc-hint { margin: 0; color: var(--quiet); font-size: 15px; max-width: 46ch; }
.pc-lock, .pc-next { min-width: 150px; flex-shrink: 0; }
.pc-err { margin: 8px 0 0; color: #B00020; font-weight: 600; min-height: 0; }
.pc-err:empty { display: none; }

/* Reveal */
.pc-out { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rail); animation: pc-in .35s var(--ease); }
.pc-out p { margin: 0; }
.pc-real { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pc-real .pc-lbl { margin: 0; }
.pc-real b { font-size: clamp(36px, 9vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-you { font-size: 18px; margin-top: 10px !important; }
.pc-now { font-size: 16px; color: #333; margin-top: 4px !important; }
.pc-pts { font-size: 18px; margin-top: 12px !important; }
.pc-pts b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 4px; }
.pc-out.hit .pc-pts b { background: var(--gm-hit); color: #fff; }
.pc-out.near .pc-pts b { background: var(--gm-near); }
.pc-out.miss .pc-pts b { background: var(--rail); }
.pc-src { margin: 0; font-size: 14px; color: var(--quiet); max-width: 52ch; overflow-wrap: anywhere; }
.pc-src a { color: var(--cite); }
@keyframes pc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Results table */
.pc-tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0 8px; }
.pc-tbl th, .pc-tbl td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--rail); vertical-align: top; }
.pc-tbl thead th { font-size: 12px; font-weight: 600; color: var(--quiet); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--ink); }
.pc-tbl tbody th { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.pc-tbl tbody th small { display: block; font-weight: 400; color: var(--quiet); font-size: 13px; }
.pc-tbl tbody th small a { color: var(--cite); }
.pc-tbl .rn { font-variant-numeric: tabular-nums; color: var(--quiet); min-width: 1em; }
.pc-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-tbl tfoot th, .pc-tbl tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }
.pc-tbl .chip { display: inline-block; min-width: 3.2em; text-align: center; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.pc-tbl .chip.hit { background: var(--gm-hit); color: #fff; }
.pc-tbl .chip.near { background: var(--gm-near); }
.pc-tbl .chip.miss { background: var(--rail); }
.pc-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pc-res-tot { font-size: 18px; }
.pc-res-tot b { font-size: 28px; font-weight: 800; }
.pc-res .pc-tbl { font-size: 14px; }
.pc-note { font-size: 13px; color: var(--quiet); }
.pc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .pc-prog { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .pc-prog li { padding: 3px 4px 4px; text-align: center; }
  .pc-prog .n { font-size: 0; }
  .pc-prog .n::before { content: attr(data-s); font-size: 10px; }
  .pc-prog b { font-size: 14px; }
  .pc-card { padding: 18px 16px 16px; }
  .pc-q { font-size: 18px; }
  .pc-in { height: 52px; font-size: 26px; width: 8.5ch; }
  .pc-cur { font-size: 28px; }
  .pc-ticks { font-size: 11px; }
  .pc-ticks.dense span:nth-child(even) { visibility: hidden; }
  .pc-bar { flex-wrap: wrap; }
  .pc-bar > .gm-btn { flex: 1 1 100%; }
  .pc-tbl { font-size: 14px; }
  .pc-tbl th, .pc-tbl td { padding: 6px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-out { animation: none; }
}
.pc-tbl .num { padding-left: 10px; }
@media (max-width: 640px) {
  .pc-tbl .num { padding-left: 6px; }
  .pc-res .pc-tbl tbody th small { display: none; }
  .pc-tbl thead th { font-size: 11px; letter-spacing: .02em; }
}
