.pnp-page {
  background: var(--snow);
}

.pnp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--content);
  margin: 0 auto;
  padding: 24px 0;
}

.pnp-brand {
  color: var(--ink);
}

.pnp-brand .brand-logo {
  width: clamp(156px, 22vw, 224px);
}

.pnp-hero,
.pnp-guide,
.print-sheet,
.pnp-footer {
  width: var(--content);
  margin: 0 auto;
}

.pnp-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  padding: 44px 0 56px;
}

.pnp-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
}

.pnp-hero p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.pnp-hero img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pnp-guide,
.print-sheet {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pnp-guide {
  padding: 28px;
  margin-bottom: 24px;
}

.pnp-guide h2,
.sheet-title h2 {
  margin: 0;
  line-height: 1.2;
}

.pnp-guide ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pnp-guide li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.print-sheet {
  padding: 28px;
  margin-bottom: 24px;
}

.sheet-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.sheet-title p {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: min(100%, 720px);
  margin: 0 auto;
  border: 4px solid #8ccbe5;
  background: #8ccbe5;
  gap: 4px;
}

.board-grid span {
  aspect-ratio: 1 / 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #c9ddeb;
  border-radius: 8px;
}

.piece-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.penguin-token {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px;
  color: #ffffff;
  border: 3px solid currentColor;
  border-radius: 50%;
  text-align: center;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.28);
}

.penguin-token strong {
  font-size: 1.9rem;
  line-height: 1;
}

.penguin-token span {
  font-size: 0.82rem;
  font-weight: 900;
}

.penguin-token.leader::before {
  content: "王冠";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid #ffffff;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.penguin-token.blue {
  background: var(--blue);
}

.penguin-token.red {
  background: var(--red);
}

.penguin-token.yellow {
  color: var(--ink);
  background: var(--yellow);
}

.penguin-token.green {
  background: var(--green);
}

.wall-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.wall-area span {
  position: relative;
  min-height: 42px;
  border: 2px solid #8ccbe5;
  border-radius: 8px;
  background: linear-gradient(135deg, #eefaff, #bfe6f4);
}

.wall-area span::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 50%;
  border-left: 2px solid rgba(29, 115, 168, 0.5);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rules-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rules-grid h3 {
  margin: 0 0 6px;
}

.rules-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.pnp-footer {
  padding: 18px 0 42px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .pnp-header,
  .pnp-hero {
    grid-template-columns: 1fr;
  }

  .pnp-header {
    align-items: flex-start;
  }

  .pnp-hero,
  .pnp-guide,
  .print-sheet,
  .pnp-footer {
    width: min(100% - 28px, 1120px);
  }

  .pnp-guide ul,
  .piece-area,
  .wall-area,
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4;
  margin: 10mm;
}

@media print {
  :root {
    --content: 100%;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .pnp-header,
  .pnp-hero,
  .pnp-guide,
  .pnp-footer,
  .print-button {
    display: none;
  }

  .print-sheet {
    width: 100%;
    min-height: calc(297mm - 20mm);
    margin: 0;
    padding: 0;
    border: 0;
    break-after: page;
    page-break-after: always;
  }

  .print-sheet:last-of-type {
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-title {
    margin-bottom: 8mm;
  }

  .board-grid {
    width: 176mm;
    gap: 1.5mm;
    border-width: 2mm;
  }

  .piece-area {
    grid-template-columns: repeat(4, 1fr);
    gap: 8mm;
  }

  .penguin-token {
    min-height: 36mm;
    box-shadow: none;
  }

  .wall-area {
    grid-template-columns: repeat(4, 1fr);
    gap: 6mm;
  }

  .wall-area span {
    min-height: 14mm;
  }

  .rules-grid {
    gap: 5mm;
  }
}
