/* PedroDuty 3D — game shell chrome (canvas, HUD, props tray) */
.game-body { margin: 0; overflow: hidden; background: #0f1512; }
#pd-game-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#pd-game-ui {
  position: fixed; top: 16px; left: 16px; z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
  font-family: inherit;
}
#pd-clockin {
  align-self: flex-start; background: #00c853; color: #04220f; border: 0;
  border-radius: 10px; padding: 12px 20px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
#pd-clockin[disabled] { opacity: .45; cursor: default; }
#pd-exit {
  align-self: flex-start; background: transparent; color: #9ad7b5;
  border: 1px solid rgba(0, 200, 83, .45); border-radius: 10px;
  padding: 10px 16px; font-weight: 600; font-size: .9rem; cursor: pointer;
}
#pd-exit:hover { background: rgba(0, 200, 83, .12); color: #d7efe0; }
#pd-hud {
  background: rgba(9, 15, 12, .88); border: 1px solid rgba(0, 200, 83, .35);
  border-radius: 12px; color: #d7efe0; padding: 14px 16px; max-width: 320px;
  font-size: .9rem; line-height: 1.45;
}
#pd-hud h3 { margin: 0 0 8px; color: #00e676; font-size: 1rem; }
#pd-hud .pd-stat { display: flex; justify-content: space-between; gap: 14px; }
#pd-hud .pd-stat b { color: #b9f6ca; }
#pd-hud button {
  margin-top: 10px; background: #00c853; color: #04220f; border: 0;
  border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer;
}
#pd-props {
  position: fixed; bottom: 18px; right: 18px; z-index: 20;
  display: none; gap: 10px;
}
#pd-props.pd-show { display: flex; }
#pd-props button {
  background: rgba(18, 36, 28, .92); border: 1px solid #00c853; color: #d7efe0;
  padding: 12px 16px; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: .95rem;
}
#pd-level-menu {
  position: fixed; inset: 0; z-index: 30; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(ellipse at 50% 30%, rgba(6, 30, 18, .82), rgba(6, 10, 8, .94));
  color: #d7efe0; text-align: center;
}
#pd-level-menu.pd-show { display: flex; }
#pd-level-menu h3 { font-size: 1.6rem; color: #00e676; margin: 0 0 22px; }
#pd-level-menu .pd-lvls { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
#pd-level-menu .pd-lvl {
  width: 250px; padding: 18px 16px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(10, 20, 15, .9); border: 1px solid rgba(0, 200, 83, .3); color: #d7efe0;
  display: flex; flex-direction: column; gap: 8px; font: inherit;
}
#pd-level-menu .pd-lvl b { color: #00e676; font-size: 1.05rem; }
#pd-level-menu .pd-lvl span { font-size: .82rem; opacity: .8; line-height: 1.4; }
#pd-level-menu .pd-lvl:hover { border-color: #00c853; transform: translateY(-2px); }
#pd-level-menu .pd-lvl.pd-sel { border-color: #00e676; box-shadow: 0 0 0 2px rgba(0, 230, 118, .45) inset; }
#pd-level-menu #pd-lvl-hint { margin-top: 20px; font-size: .9rem; opacity: .85; }
#pd-hud .pd-ghost {
  margin-left: 8px; background: transparent !important; color: #9ad7b5 !important;
  border: 1px solid rgba(0, 200, 83, .4) !important;
}

#pd-suite {
  position: fixed; right: 22px; bottom: 130px; z-index: 24;
  max-width: 340px; display: flex; gap: 10px; align-items: flex-start;
  font-family: system-ui, sans-serif;
}
#pd-suite[hidden] { display: none; }
.pd-suite__avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #b3261e, #7a100a); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; border: 2px solid rgba(255, 255, 255, .25);
}
.pd-suite__body {
  position: relative; background: #fffdf5; color: #26221a;
  border: 2px solid #b3261e; border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55);
}
.pd-suite__body::before {
  content: ""; position: absolute; left: -9px; top: 14px;
  border: 8px solid transparent; border-right-color: #b3261e;
}
.pd-suite__who { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #b3261e; margin-bottom: 4px; }
.pd-suite__say { font-size: .92rem; line-height: 1.35; }
#pd-suite.pd-suite--rage .pd-suite__body { background: #3b0a06; color: #ffe3dd; border-color: #ff5252; }
#pd-suite.pd-suite--rage .pd-suite__who { color: #ff8a80; }
#pd-suite.pd-suite--rage .pd-suite__say { font-weight: 800; letter-spacing: .02em; }
#pd-suite.pd-suite--rage .pd-suite__body::before { border-right-color: #ff5252; }
#pd-suite.pd-shake .pd-suite__body { animation: pd-shake .35s linear 3; }
@keyframes pd-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-.6deg); }
  40% { transform: translateX(5px) rotate(.6deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Provo explosion event panel */
#pd-ex {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 4.6rem; z-index: 26;
  max-width: min(92vw, 34rem);
  background: rgba(10, 14, 11, .94);
  border: 1px solid rgba(0, 230, 118, .35); border-left: 4px solid #ff6d00;
  border-radius: 12px; padding: .9rem 1.1rem;
  color: #e8f5ee; font: 500 .95rem/1.45 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
#pd-ex p { margin: 0 0 .7rem; }
#pd-ex button {
  display: inline-block; margin: .2rem .4rem 0 0; padding: .55rem 1rem;
  border: 0; border-radius: 8px; background: #ff6d00; color: #fff;
  font-weight: 700; font-size: .92rem; cursor: pointer;
}
#pd-ex button:hover { background: #ffa040; }
