.pizza-tower {
  --pt-tomato: #bd351f;
  --pt-ink: #322519;
  --pt-basil: #59683e;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #e8d8bf;
  border-radius: 20px;
  color: var(--pt-ink);
  background: #fff8eb;
  box-sizing: border-box;
  font-family: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.pizza-tower *, .pizza-tower *::before, .pizza-tower *::after { box-sizing: border-box; }
.pizza-tower [hidden] { display: none !important; }
.pizza-tower .pt-top { display: flex; align-items: center; gap: 10px; flex: 0 0 40px; min-width: 0; }
.pizza-tower .pt-heading { display: flex; align-items: center; gap: 7px; margin-right: auto; min-width: 0; }
.pizza-tower .pt-brand { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; background: #bd351f; color: #fff3d4; transform: rotate(-7deg); }
.pizza-tower .pt-brand svg { width: 21px; height: 21px; }
.pizza-tower .pt-title { margin: 0; font: 600 17px/1.04 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.pizza-tower .pt-stat { display: flex; align-items: flex-end; flex-direction: column; gap: 1px; flex: 0 0 auto; }
.pizza-tower .pt-stat-label { color: #81715e; font-size: 9px; line-height: 1.1; white-space: nowrap; }
.pizza-tower .pt-best-label { max-width: 64px; white-space: normal; text-align: right; }
.pizza-tower .pt-stat-value { font-size: 21px; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.pizza-tower .pt-stat--best { padding-left: 10px; border-left: 1px solid #e4d4bc; }
.pizza-tower .pt-stat--best .pt-stat-value { color: var(--pt-basil); font-size: 19px; }
.pizza-tower .pt-record { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 15px; flex: 0 0 15px; overflow: hidden; color: #7c6b55; font-size: 10px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.pizza-tower .pt-record svg { width: 12px; height: 12px; flex: 0 0 12px; color: #967334; }
.pizza-tower .pt-record-text { overflow: hidden; text-overflow: ellipsis; }
.pizza-tower .pt-stage { position: relative; display: flex; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #ead9bb; border-radius: 13px; background: #f1e5cc; isolation: isolate; }
.pizza-tower .pt-canvas { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; outline: none; touch-action: manipulation; cursor: pointer; }
.pizza-tower .pt-canvas:focus-visible { outline: 3px solid #b43b21; outline-offset: -4px; }
.pizza-tower .pt-overlay { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 5px; padding: 8px 16px 30px; text-align: center; pointer-events: none; background: linear-gradient(180deg,rgba(255,248,231,.68),rgba(255,248,231,.82) 58%,rgba(255,248,231,.05)); }
.pizza-tower .pt-overline { color: #a24b30; font-size: 9px; line-height: 1.1; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.pizza-tower .pt-overlay-title { margin: 0; max-width: 100%; color: #42301e; font: 500 clamp(21px, 5vw, 29px)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; text-wrap: balance; }
.pizza-tower .pt-overlay-copy { max-width: 320px; margin: 0; color: #76624b; font-size: 11px; line-height: 1.4; text-wrap: balance; }
.pizza-tower .pt-controls { display: flex; flex: 0 0 44px; gap: 6px; min-height: 44px; }
.pizza-tower .pt-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; margin: 0; padding: 0 13px; border: 1px solid #d8c8ac; border-radius: 11px; background: #f9f0dd; color: #655239; font-family: inherit; font-size: 12px; line-height: 1.1; font-weight: 650; text-align: center; cursor: pointer; touch-action: manipulation; transition: background .15s, transform .15s; }
.pizza-tower .pt-button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.pizza-tower .pt-button:hover { background: #efe1c8; }
.pizza-tower .pt-button:active { transform: translateY(1px); }
.pizza-tower .pt-button:focus-visible { outline: 3px solid #706e36; outline-offset: 2px; }
.pizza-tower .pt-button:disabled { opacity: .5; cursor: default; }
.pizza-tower .pt-button--main { flex: 1 1 0; border-color: var(--pt-tomato); background: var(--pt-tomato); color: #fff9e9; box-shadow: 0 3px 0 #8d2819; font-size: 13px; }
.pizza-tower .pt-button--main:hover { background: #a92e1d; }
.pizza-tower .pt-button--icon { flex: 0 0 44px; width: 44px; padding: 0; }
.pizza-tower .pt-button[aria-pressed='true'] { background: #e5e9d9; border-color: #a9b68d; color: #4d6131; }
.pizza-tower .pt-help { min-height: 12px; flex: 0 0 12px; margin: 0; overflow: hidden; color: #8a7962; text-align: center; font-size: 9px; line-height: 12px; white-space: nowrap; text-overflow: ellipsis; }
.pizza-tower .pt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 360px) {
  .pizza-tower { padding: 8px; gap: 5px; border-radius: 17px; }
  .pizza-tower .pt-top { gap: 7px; }
  .pizza-tower .pt-heading { gap: 5px; }
  .pizza-tower .pt-title { font-size: 15px; }
  .pizza-tower .pt-stat--best { padding-left: 7px; }
  .pizza-tower .pt-stat-label { font-size: 8px; }
  .pizza-tower .pt-overlay-copy { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pizza-tower .pt-button { transition: none; }
}
