/* Mike's Peg Drop — mobile-first game skin with one original Mike character asset. */
.pd-view {
  --pd-gold: #f4ca62;
  --pd-mint: #8de0cf;
  --pd-night: #061c29;
  min-width: 0;
  overflow-x: clip;
  color: #f7f2dc;
  background: radial-gradient(circle at 50% 0, rgba(42, 128, 146, .2), transparent 34%);
}
.pd-view *, .pd-view *::before, .pd-view *::after { box-sizing: border-box; }
.pd-view button { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pd-head {
  width: min(100%, 1060px);
  min-height: 68px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 8px max(8px, env(safe-area-inset-left));
}
.pd-heading { min-width: 0; }
.pd-heading small, .pd-heading h1 { display: block; overflow: hidden; margin: 0; white-space: nowrap; text-overflow: ellipsis; }
.pd-heading small { color: #91bebc; font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.pd-heading h1 { font-size: clamp(1.08rem, 5vw, 1.7rem); line-height: 1.05; }
.pd-icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 204, 98, .38);
  border-radius: 14px;
  color: #ffe8a3;
  background: rgba(5, 35, 47, .96);
  font-weight: 950;
  cursor: pointer;
}
.pd-back { font-size: 1.65rem; }
.pd-help-button { font-size: 1.15rem; }
.pd-wallet {
  min-width: 54px;
  max-width: 90px;
  overflow: hidden;
  padding: 8px 9px;
  border: 1px solid rgba(247, 200, 94, .28);
  border-radius: 999px;
  color: #ffe493;
  background: #072331;
  font-size: .78rem;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pd-wallet::before { content: "◉ "; color: #e9b73e; }
.pd-shell {
  width: min(calc(100% - 10px), 1060px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin: 0 auto max(22px, env(safe-area-inset-bottom));
}
.pd-board-card, .pd-controls {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(248, 203, 97, .33);
  border-radius: 23px;
  background: linear-gradient(155deg, rgba(8, 49, 63, .98), rgba(3, 24, 35, .99));
  box-shadow: 0 20px 42px rgba(0, 0, 0, .32);
}
.pd-board-card { padding: 11px; }
.pd-board-copy { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.pd-board-copy small, .pd-board-copy h2, .pd-control-title small, .pd-control-title h2 { display: block; margin: 0; }
.pd-board-copy small, .pd-control-title small { color: #90b9ba; font-size: .61rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pd-board-copy h2, .pd-control-title h2 { margin-top: 2px; font-size: .98rem; line-height: 1.1; }
.pd-board-copy > span { flex: none; padding: 6px 8px; border-radius: 999px; color: #ffe79a; background: rgba(229, 180, 54, .13); font-size: .58rem; font-weight: 900; }
.pd-board-stage { min-width: 0; }
.pd-mike-dock {
  position: relative;
  min-width: 0;
  height: 100px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(150, 227, 215, .2);
  border-radius: 18px;
  isolation: isolate;
  background:
    radial-gradient(circle at 87% 40%, rgba(255, 230, 139, .34), transparent 27%),
    linear-gradient(112deg, #0d4557, #082c40 58%, #123b45);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .18);
}
.pd-mike-dock::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .44;
  background:
    radial-gradient(circle at 10% 20%, #fff3b4 0 1px, transparent 2px),
    radial-gradient(circle at 34% 72%, #9af2e2 0 1px, transparent 2px),
    radial-gradient(circle at 64% 22%, #fff3b4 0 1.5px, transparent 2.5px);
  background-size: 43px 39px, 58px 47px, 71px 61px;
}
.pd-mike-copy {
  position: absolute;
  z-index: 3;
  left: 13px;
  top: 50%;
  width: calc(100% - 118px);
  max-width: 270px;
  transform: translateY(-50%);
}
.pd-mike-copy small, .pd-mike-copy b { display: block; }
.pd-mike-copy small { color: #99e0d6; font-size: .56rem; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.pd-mike-copy b { margin-top: 4px; color: #fff1b5; font-size: clamp(.7rem, 3vw, .9rem); line-height: 1.15; }
.pd-mike-orbit {
  position: absolute;
  z-index: 1;
  right: 8px;
  top: 50%;
  width: 96px;
  height: 52px;
  border: 1px solid rgba(255, 229, 140, .55);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-13deg);
  box-shadow: 0 0 18px rgba(250, 210, 91, .16);
}
.pd-mike-art {
  position: absolute;
  z-index: 2;
  right: 2px;
  bottom: -9px;
  width: 104px;
  height: 112px;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .38));
  pointer-events: none;
  user-select: none;
}
.pd-board {
  position: relative;
  width: 100%;
  height: clamp(360px, 118vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(147, 222, 214, .19);
  border-radius: 20px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 102%, rgba(242, 184, 66, .2), transparent 36%),
    linear-gradient(180deg, #092b41, #061b2b 64%, #071821);
  box-shadow: inset 0 0 46px rgba(0, 0, 0, .34);
}
.pd-board::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .32;
  background:
    radial-gradient(circle at 16% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 10%, #c8fff5 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 37%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 29% 42%, #fff 0 1px, transparent 1.5px);
  background-size: 62px 73px, 83px 68px, 91px 89px, 79px 97px;
}
.pd-sky { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.pd-sky i { position: absolute; width: 18px; height: 18px; filter: drop-shadow(0 0 7px rgba(255, 222, 128, .6)); }
.pd-sky i::before, .pd-sky i::after { content: ""; position: absolute; background: #ffeaa0; }
.pd-sky i::before { width: 100%; height: 2px; left: 0; top: 8px; }
.pd-sky i::after { width: 2px; height: 100%; left: 8px; top: 0; }
.pd-sky i:nth-child(1) { top: 11%; left: 9%; transform: scale(.6); }
.pd-sky i:nth-child(2) { top: 19%; right: 12%; transform: scale(.45); }
.pd-sky i:nth-child(3) { top: 47%; left: 5%; transform: scale(.35); }
.pd-sky i:nth-child(4) { top: 57%; right: 5%; transform: scale(.55); }
.pd-sky i:nth-child(5) { top: 4%; right: 34%; transform: scale(.28); }
.pd-peg-field {
  position: absolute;
  z-index: 3;
  inset: 10% 7% 15%;
  display: grid;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
}
.pd-peg-row { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.pd-peg-row:nth-child(1) { width: 9%; }
.pd-peg-row:nth-child(2) { width: 19%; }
.pd-peg-row:nth-child(3) { width: 29%; }
.pd-peg-row:nth-child(4) { width: 39%; }
.pd-peg-row:nth-child(5) { width: 49%; }
.pd-peg-row:nth-child(6) { width: 59%; }
.pd-peg-row:nth-child(7) { width: 69%; }
.pd-peg-row:nth-child(8) { width: 79%; }
.pd-peg-row i {
  width: clamp(9px, 3.1vw, 14px);
  aspect-ratio: 1;
  border: 2px solid #f9df8e;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff2b0, #bd7c25);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .55), 0 0 0 4px rgba(78, 190, 177, .07);
}
.pd-peg-row i.is-hit { border-color: #fff; background: #8df1dd; box-shadow: 0 0 0 5px rgba(95, 233, 211, .15), 0 0 18px #75e8d2; }
.pd-ball {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 3%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #fff4bd;
  border-radius: 50%;
  color: #693d08;
  background: linear-gradient(145deg, #fff5ae, #d79727);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .48), 0 0 17px rgba(247, 207, 99, .55);
  font-size: .78rem;
  transform: translate(-50%, -50%);
  transition: left .14s cubic-bezier(.3, .7, .35, 1), top .14s cubic-bezier(.3, .7, .35, 1), transform .16s ease;
}
.pd-ball.is-dropping { transform: translate(-50%, -50%) rotate(22deg) scale(.92); }
.pd-ball.is-landed { transform: translate(-50%, -55%) scale(1.14); }
.pd-pockets {
  position: absolute;
  z-index: 4;
  left: 2%;
  right: 2%;
  bottom: 2.5%;
  height: 9.5%;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 2px;
}
.pd-pockets span {
  min-width: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 231, 160, .25);
  border-radius: 5px 5px 10px 10px;
  color: #ffeeb0;
  background: #124d56;
  font-size: clamp(.42rem, 2.1vw, .68rem);
  font-weight: 950;
  letter-spacing: -.04em;
}
.pd-pockets span:nth-child(1), .pd-pockets span:nth-child(9) { color: #fff1aa; background: #a23d34; }
.pd-pockets span:nth-child(2), .pd-pockets span:nth-child(8) { background: #725022; }
.pd-pockets span:nth-child(5) { color: #b5c9c7; background: #17333e; }
.pd-pockets span.is-landed { color: #162e31; background: #fff09d; box-shadow: 0 0 20px rgba(255, 225, 116, .7); transform: translateY(-3px); }
.pd-result {
  min-height: 70px;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(1, 19, 27, .58);
}
.pd-result > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #ffe591; background: #174757; font-size: 1.05rem; font-style: normal; }
.pd-result strong, .pd-result span { display: block; }
.pd-result strong { font-size: .8rem; }
.pd-result span { margin-top: 2px; color: #96b4b8; font-size: .59rem; line-height: 1.2; }
.pd-result b { min-width: 42px; padding: 7px 5px; border-radius: 10px; color: #ffe694; background: rgba(218, 166, 41, .15); font-size: .76rem; text-align: center; }
.pd-result[data-kind="win"] { background: rgba(127, 89, 15, .28); }
.pd-result[data-kind="win"] strong { color: #ffe385; }
.pd-result[data-kind="loss"] strong, .pd-result[data-kind="error"] strong { color: #ffb8ad; }
.pd-controls { padding: 13px; }
.pd-control-title { padding: 3px 2px 8px; }
.pd-bet { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 7px 6px 11px; border: 1px solid rgba(190, 222, 216, .13); border-radius: 14px; background: rgba(1, 19, 27, .45); font-size: .7rem; font-weight: 900; }
.pd-stepper { display: grid; grid-template-columns: 44px 62px 44px; overflow: hidden; border-radius: 11px; background: #061b25; }
.pd-stepper button, .pd-stepper input { width: 100%; min-height: 44px; border: 0; color: #ffeca8; background: transparent; text-align: center; font-weight: 950; }
.pd-stepper button { font-size: 1.15rem; cursor: pointer; }
.pd-stepper input { appearance: textfield; font-size: .75rem; }
.pd-stepper input::-webkit-inner-spin-button { display: none; }
.pd-play { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 9px; border: 0; border-radius: 14px; color: #153039; background: linear-gradient(145deg, #fff09c, #d69b2e); box-shadow: 0 10px 24px rgba(221, 166, 40, .24); font-weight: 1000; cursor: pointer; }
.pd-play:disabled, .pd-stepper button:disabled, .pd-stepper input:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.pd-fair-note { margin: 9px 3px 0; color: #8facb1; font-size: .61rem; line-height: 1.4; text-align: center; }
.pd-fair-note strong { color: #cde7e5; }
.pd-mini-paytable { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
.pd-mini-paytable span { min-width: 0; padding: 7px 1px; border-radius: 6px; color: #ffe5a0; background: rgba(23, 71, 87, .72); font-size: clamp(.4rem, 2vw, .62rem); font-weight: 900; text-align: center; }
.pd-help {
  width: min(540px, calc(100% - 16px));
  max-height: calc(100dvh - 20px);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(245, 201, 92, .43);
  border-radius: 21px;
  color: #f8f1d5;
  background: #082c3a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .62);
}
.pd-help::backdrop { background: rgba(0, 12, 18, .8); backdrop-filter: blur(4px); }
.pd-help form { padding: 14px; }
.pd-help header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd-help header small, .pd-help header h2 { display: block; margin: 0; }
.pd-help header small { color: #96b8bd; font-size: .61rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pd-help header h2 { margin-top: 2px; font-size: 1.08rem; }
.pd-help header button { width: 44px; height: 44px; flex: none; border: 1px solid rgba(244, 204, 102, .3); border-radius: 13px; color: #ffe6a1; background: #104052; font-size: 1.3rem; cursor: pointer; }
.pd-help-steps { display: grid; gap: 7px; margin: 13px 0; padding: 0; list-style: none; }
.pd-help-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; color: #c7dadd; font-size: .72rem; line-height: 1.35; }
.pd-help-steps b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #263b38; background: #ebbd4d; }
.pd-paytable { overflow-x: auto; border: 1px solid rgba(193, 222, 217, .14); border-radius: 13px; }
.pd-paytable table { width: 100%; border-collapse: collapse; font-size: .65rem; }
.pd-paytable th, .pd-paytable td { padding: 7px 8px; border-bottom: 1px solid rgba(190, 221, 215, .1); text-align: left; white-space: nowrap; }
.pd-paytable th { color: #ffe39a; background: rgba(1, 18, 26, .5); font-size: .56rem; letter-spacing: .05em; text-transform: uppercase; }
.pd-paytable th:nth-child(n+2), .pd-paytable td:nth-child(n+2) { text-align: right; }
.pd-paytable tr:last-child td { border-bottom: 0; }
.pd-help > form > p { margin: 12px 2px 0; color: #a6bec2; font-size: .66rem; line-height: 1.4; }
.pd-help > form > p strong { color: #ffe092; }
.pd-help-close { width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 13px; color: #16323a; background: linear-gradient(145deg, #ffe79a, #d49a2e); font-weight: 950; cursor: pointer; }
.pd-icon-button:focus-visible, .pd-play:focus-visible, .pd-stepper button:focus-visible, .pd-help button:focus-visible { outline: 3px solid #fff2a9; outline-offset: 2px; }

@media (min-width: 780px) {
  .pd-shell { grid-template-columns: minmax(420px, 1.16fr) minmax(290px, .84fr); align-items: start; gap: 14px; }
  .pd-board-card { padding: 15px; }
  .pd-mike-dock { height: 126px; margin-bottom: 12px; }
  .pd-mike-copy { left: 19px; width: calc(100% - 156px); max-width: 390px; }
  .pd-mike-copy small { font-size: .62rem; }
  .pd-mike-copy b { max-width: 300px; font-size: 1rem; }
  .pd-mike-orbit { right: 15px; width: 126px; height: 69px; }
  .pd-mike-art { right: 6px; bottom: -12px; width: 142px; height: 150px; }
  .pd-board { height: min(600px, calc(100dvh - 190px)); min-height: 490px; }
  .pd-controls { position: sticky; top: 78px; padding: 18px; }
}
@media (max-width: 359px) {
  .pd-head { gap: 4px; padding-inline: 5px; }
  .pd-wallet { min-width: 48px; max-width: 64px; padding-inline: 6px; font-size: .7rem; }
  .pd-board-card, .pd-controls { border-radius: 20px; }
  .pd-board-card { padding: 8px; }
  .pd-mike-dock { height: 92px; border-radius: 16px; }
  .pd-mike-copy { left: 10px; width: calc(100% - 100px); }
  .pd-mike-copy b { font-size: .67rem; }
  .pd-mike-art { right: -1px; width: 94px; height: 103px; }
  .pd-mike-orbit { right: 5px; width: 86px; height: 48px; }
  .pd-board { height: 372px; border-radius: 17px; }
  .pd-result { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px; }
  .pd-controls { padding: 10px; }
  .pd-stepper { grid-template-columns: 44px 54px 44px; }
  .pd-mini-paytable { gap: 1px; }
  .pd-mini-paytable span { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-view *, .pd-view *::before, .pd-view *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .pd-pockets span.is-landed, .pd-ball.is-dropping, .pd-ball.is-landed { transform: translate(-50%, -50%); }
  .pd-pockets span.is-landed { transform: none; }
}
.tile-peg-drop{color:#fff;background:linear-gradient(145deg,#15566a,#071b2b)}.peg-drop-tile-art{overflow:hidden}.peg-drop-tile-art::before{content:"";position:absolute;width:88%;height:74px;background:radial-gradient(circle,#f4d675 0 3px,transparent 4px);background-size:17px 15px;clip-path:polygon(50% 0,100% 100%,0 100%);opacity:.72}.peg-drop-tile-art i{position:relative;z-index:1;width:42px;height:42px;display:grid;place-items:center;border:2px solid #fff0aa;border-radius:50%;color:#6b3f08;background:linear-gradient(145deg,#fff2a7,#d29428);box-shadow:0 8px 18px rgba(0,0,0,.34);font:normal 900 1.1rem/1 system-ui,sans-serif}
