.pnc-game-page {
  background: #edf7fd;
}

.pnc-game-page .pnc-main {
  overflow: clip;
}

.pnc-game-header {
  position: relative;
  padding: 2.2rem 0 2rem;
  overflow: hidden;
  border-bottom: 1px solid rgb(21 91 147 / .13);
  background:
    radial-gradient(circle at 88% 18%, rgb(255 255 255 / .9) 0 4%, transparent 4.3%),
    linear-gradient(135deg, #e9f7ff, #ccecff 62%, #dff4ff);
}

.pnc-game-header::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -72px;
  width: 360px;
  height: 150px;
  border-radius: 50%;
  background: rgb(255 255 255 / .4);
  filter: blur(34px);
}

.pnc-game-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.pnc-game-header__inner > div:first-child {
  min-width: 0;
}

.pnc-game-header h1 {
  margin: .28rem 0 .45rem;
  color: var(--blue-dark);
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  letter-spacing: -.045em;
}

.pnc-game-header p {
  max-width: 740px;
  margin: 0;
  color: #345b78;
  font-size: 1.06rem;
}

.pnc-game-breadcrumb {
  display: flex;
  gap: .55rem;
  margin-bottom: 1.25rem !important;
  color: #59768c !important;
  font-size: .8rem !important;
  font-weight: 650;
}

.pnc-game-breadcrumb a {
  color: var(--blue);
}

.pnc-game-header__actions {
  display: flex;
  flex: 0 0 auto;
  gap: .65rem;
}

.pnc-game-shell {
  position: relative;
  min-height: 720px;
  padding: 2rem 0 4rem;
  background:
    linear-gradient(rgb(255 255 255 / .18) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .18) 1px, transparent 1px),
    linear-gradient(180deg, #d9f1ff, #eef8fc 52%, #f8fbfd);
  background-size: 32px 32px, 32px 32px, auto;
}

.pnc-game-noscript {
  padding: 1rem;
  border: 1px solid #e0a744;
  border-radius: var(--radius-md);
  background: #fff5d8;
}

.pnc-game-setup {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  min-height: 610px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(13 67 111 / .16);
  border-radius: 24px;
  background: white;
  box-shadow: 0 28px 70px rgb(20 75 115 / .16);
}

.pnc-game-setup__visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #0f66c2;
}

.pnc-game-setup__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pnc-game-setup__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgb(5 43 82 / .68));
}

.pnc-game-setup__mission {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  display: grid;
  gap: .25rem;
  max-width: 420px;
  color: white;
  text-shadow: 0 2px 16px rgb(0 35 70 / .45);
}

.pnc-game-setup__mission span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pnc-game-setup__mission strong {
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  line-height: 1.05;
}

.pnc-game-setup__form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.6rem);
}

.pnc-game-setup__form h2 {
  margin: .45rem 0 .5rem;
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -.035em;
}

.pnc-game-setup__form > p:not(.pnc-eyebrow, .pnc-game-setup__meta) {
  margin: 0 0 1.45rem;
  color: var(--ink-soft);
}

.pnc-player-fields {
  display: grid;
  gap: .65rem;
}

.pnc-player-field {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  align-items: center;
  gap: .65rem;
}

.pnc-player-color {
  width: 28px;
  height: 28px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(20 69 109 / .2), 0 4px 10px rgb(20 69 109 / .15);
}

.pnc-player-field input {
  width: 100%;
  padding: .72rem .8rem;
  border: 1px solid #c8d7e2;
  border-radius: .65rem;
  background: #fbfdff;
  color: var(--ink);
  font: 600 .95rem/1 var(--font-body);
}

.pnc-player-field input:focus {
  border-color: var(--blue);
  outline: 3px solid rgb(22 91 147 / .13);
}

.pnc-player-remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7890a2;
  cursor: pointer;
  font-size: 1.3rem;
}

.pnc-player-remove:hover {
  background: #f3f6f8;
  color: var(--danger);
}

.pnc-add-player {
  align-self: flex-start;
  margin: .8rem 0 1.2rem 2.7rem;
  padding: .3rem 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: 750 .88rem/1 var(--font-body);
}

.pnc-add-player span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: .35rem;
  border-radius: 50%;
  background: #e6f2fb;
}

.pnc-game-option {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: auto;
  padding: .9rem;
  border: 1px solid #d8e4ec;
  border-radius: .7rem;
  background: #f7fafc;
  cursor: pointer;
}

.pnc-game-option input {
  width: 18px;
  height: 18px;
  margin-top: .1rem;
  accent-color: var(--blue);
}

.pnc-game-option span {
  display: grid;
  gap: .15rem;
}

.pnc-game-option small {
  color: var(--muted);
  line-height: 1.35;
}

.pnc-game-start {
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding-block: .9rem;
}

.pnc-game-setup__meta {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.pnc-game-setup__meta span {
  margin: 0 .4rem;
}

.pnc-game-play {
  width: min(1540px, calc(100% - 2rem));
  margin: 0 auto;
}

.pnc-game-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 380px) auto;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: .9rem;
  padding: .75rem .9rem;
  border: 1px solid rgb(18 77 124 / .12);
  border-radius: .9rem;
  background: rgb(255 255 255 / .9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.pnc-game-turn-pill {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
}

.pnc-game-turn-pill > span:not(.pnc-game-turn-dot) {
  color: var(--muted);
}

.pnc-game-turn-dot {
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 1px rgb(20 69 109 / .2);
}

.pnc-game-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.pnc-game-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #dce9f1;
}

.pnc-game-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #17a15c, #0d6fc2);
  transition: width .4s ease;
}

.pnc-game-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d1dfe8;
  border-radius: 50%;
  background: white;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 1.25rem;
}

.pnc-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 1rem;
}

.pnc-board-scroll {
  overflow: auto;
  border: 1px solid rgb(18 77 124 / .17);
  border-radius: 1.1rem;
  background: #0e67c4;
  box-shadow: 0 22px 54px rgb(14 65 106 / .18);
  scrollbar-color: #8bb5d4 transparent;
  scrollbar-width: thin;
}

.pnc-board {
  position: relative;
  width: 100%;
  min-width: 780px;
  aspect-ratio: 1000 / 707;
  overflow: hidden;
  isolation: isolate;
  background: #0d66c4;
}

.pnc-board > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.pnc-board::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgb(255 255 255 / .22);
  box-shadow: inset 0 0 60px rgb(4 36 72 / .14);
  pointer-events: none;
}

.pnc-board-pieces {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.pnc-game-piece {
  --piece-color: #e64138;
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(24px, 3.1vw, 42px);
  height: clamp(24px, 3.1vw, 42px);
  border: 3px solid white;
  border-radius: 50% 50% 48% 48%;
  background: var(--piece-color);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--piece-color), #000 30%), 0 9px 15px rgb(0 31 63 / .35);
  color: white;
  font: 850 clamp(.65rem, 1.1vw, .9rem)/1 var(--font-body);
  transform: translate(-50%, -72%);
  transition: left .28s cubic-bezier(.2, .8, .2, 1), top .28s cubic-bezier(.2, .8, .2, 1), transform .2s ease;
}

.pnc-game-piece.is-active {
  z-index: 4;
  outline: 4px solid rgb(255 255 255 / .45);
  transform: translate(-50%, -78%) scale(1.12);
}

.pnc-game-piece.is-moving {
  transform: translate(-50%, -104%) scale(1.08);
}

.pnc-board-spotlight {
  position: absolute;
  z-index: 3;
  width: 95px;
  height: 70px;
  border: 3px solid rgb(255 255 255 / .75);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 8px rgb(16 96 180 / .22), 0 0 30px rgb(255 255 255 / .75);
  transform: translate(-50%, -50%) scale(.7);
  transition: left .3s ease, top .3s ease, opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.pnc-board-spotlight.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pnc-game-console {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: .8rem;
}

.pnc-turn-card,
.pnc-game-players,
.pnc-game-log {
  border: 1px solid rgb(18 77 124 / .14);
  border-radius: .95rem;
  background: rgb(255 255 255 / .96);
  box-shadow: 0 10px 30px rgb(28 75 109 / .1);
}

.pnc-turn-card {
  padding: 1.2rem;
  border-top: 4px solid var(--turn-color, #ef4444);
}

.pnc-turn-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pnc-turn-card__top > div {
  display: grid;
  gap: .15rem;
}

.pnc-turn-card__label {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pnc-turn-card__top strong {
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.pnc-position-badge {
  padding: .35rem .55rem;
  border-radius: .45rem;
  background: #e8f3fa;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 850;
}

.pnc-dice-zone {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 105px;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: .8rem;
  background: #f1f7fb;
}

.pnc-die {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid #c7d8e4;
  border-radius: 17px;
  background: white;
  box-shadow: inset -5px -6px 0 #dbe8f0, 0 7px 13px rgb(23 67 100 / .14);
  color: var(--blue-dark);
  font: 850 2rem/1 var(--font-body);
  transform: rotate(-2deg);
}

.pnc-die.is-rolling {
  animation: pnc-die-roll .52s cubic-bezier(.3, .8, .4, 1);
}

@keyframes pnc-die-roll {
  0% { transform: rotate(-2deg) scale(1); }
  30% { transform: rotate(28deg) translateY(-12px) scale(1.08); }
  65% { transform: rotate(-18deg) translateY(-4px); }
  100% { transform: rotate(-2deg) scale(1); }
}

.pnc-dice-zone > div:last-child {
  display: grid;
  gap: .3rem;
}

.pnc-dice-zone strong {
  color: var(--blue-dark);
  line-height: 1.2;
}

.pnc-dice-zone p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

.pnc-roll-button,
.pnc-next-button {
  justify-content: center;
  width: 100%;
}

.pnc-roll-button:disabled {
  cursor: wait;
  opacity: .65;
}

.pnc-game-players {
  padding: 1rem 1.1rem;
}

.pnc-game-console__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}

.pnc-game-console__heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: .95rem;
}

.pnc-game-console__heading span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.pnc-game-players ol,
.pnc-game-log ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pnc-game-player-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .48rem .35rem;
  border-radius: .5rem;
  color: var(--ink-soft);
  font-size: .82rem;
}

.pnc-game-player-row.is-active {
  background: #eef6fb;
  color: var(--blue-dark);
  font-weight: 750;
}

.pnc-game-player-row i {
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--piece-color);
  box-shadow: 0 0 0 1px rgb(20 69 109 / .2);
}

.pnc-game-player-row small {
  color: var(--muted);
  font-size: .7rem;
}

.pnc-game-player-row .is-paused {
  color: #c15933;
}

.pnc-game-log {
  overflow: hidden;
}

.pnc-game-log summary {
  display: flex;
  justify-content: space-between;
  padding: .85rem 1rem;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 750;
  list-style: none;
}

.pnc-game-log summary::-webkit-details-marker {
  display: none;
}

.pnc-game-log ol {
  display: grid;
  gap: .45rem;
  max-height: 150px;
  padding: 0 1rem .85rem;
  overflow: auto;
}

.pnc-game-log li {
  padding-left: .65rem;
  border-left: 2px solid #d6e5ef;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.35;
}

.pnc-game-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pnc-game-dialog {
  width: min(520px, calc(100% - 2rem));
  padding: clamp(1.5rem, 4vw, 2.4rem);
  overflow: hidden;
  border: 0;
  border-radius: 1.15rem;
  box-shadow: 0 30px 90px rgb(6 39 70 / .32);
  color: var(--ink);
}

.pnc-game-dialog::backdrop {
  background: rgb(6 30 54 / .58);
  backdrop-filter: blur(5px);
}

.pnc-game-dialog[open] {
  animation: pnc-dialog-in .24s ease both;
}

@keyframes pnc-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.pnc-event-dialog {
  text-align: center;
}

.pnc-event-dialog__accent {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--event-color, var(--blue));
}

.pnc-event-dialog__icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--event-color, var(--blue)), white 84%);
  color: var(--event-color, var(--blue));
  font-size: 2rem;
  transform: rotate(-3deg);
}

.pnc-event-dialog h2 {
  margin: .35rem 0 .55rem;
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  letter-spacing: -.04em;
}

.pnc-event-dialog__lead {
  margin: 0 auto 1.25rem;
  color: var(--ink-soft);
}

.pnc-question-card {
  display: grid;
  gap: .6rem;
  margin: 1.2rem 0;
  padding: 1.25rem;
  border: 1px solid #cadce8;
  border-radius: .8rem;
  background: #f2f8fc;
  text-align: left;
}

.pnc-question-card[hidden] {
  display: none;
}

.pnc-question-card > span {
  color: var(--blue);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pnc-question-card strong {
  color: var(--blue-dark);
  font-size: 1.15rem;
  line-height: 1.38;
}

.pnc-question-card small {
  padding-top: .55rem;
  border-top: 1px solid #d6e4ed;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.pnc-question-card button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: 700 .75rem/1 var(--font-body);
}

.pnc-event-dialog > .pnc-button {
  justify-content: center;
  min-width: 180px;
}

.pnc-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf3f7;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.45rem;
}

.pnc-rules-dialog h2 {
  margin: .35rem 0 1.25rem;
  color: var(--blue-dark);
  font-size: 2.25rem;
}

.pnc-rules-steps {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pnc-rules-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .7rem;
}

.pnc-rules-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e7f3fb;
  color: var(--blue);
  font-weight: 850;
}

.pnc-rules-steps strong {
  color: var(--blue-dark);
}

.pnc-rules-steps p {
  margin: .15rem 0 0;
  color: var(--muted);
  font-size: .83rem;
}

.pnc-rules-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: .8rem;
  background: #f4f7f9;
}

.pnc-rules-legend span {
  display: flex;
  gap: .45rem;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.35;
}

.pnc-rules-legend i {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-style: normal;
  font-weight: 850;
}

.pnc-rules-dialog > form:last-child .pnc-button {
  justify-content: center;
  width: 100%;
}

.pnc-winner-dialog {
  text-align: center;
}

.pnc-winner-plane {
  display: block;
  margin: .5rem 0 1rem;
  color: var(--red);
  font-size: 4rem;
  transform: rotate(-12deg);
}

.pnc-winner-dialog h2 {
  margin: .4rem 0 .8rem;
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 5vw, 2.45rem);
  line-height: 1.12;
}

.pnc-winner-dialog p {
  color: var(--ink-soft);
}

.pnc-winner-dialog .pnc-button {
  justify-content: center;
  margin-top: .7rem;
}

.pnc-winner-confetti i {
  position: absolute;
  top: -15px;
  width: 10px;
  height: 24px;
  border-radius: 3px;
  background: var(--red);
  animation: pnc-confetti 2.4s ease-in infinite;
}

.pnc-winner-confetti i:nth-child(1) { left: 8%; background: #f6b51b; animation-delay: -.3s; }
.pnc-winner-confetti i:nth-child(2) { left: 23%; background: #0a73c9; animation-delay: -1.2s; }
.pnc-winner-confetti i:nth-child(3) { left: 41%; background: #4ba447; animation-delay: -.7s; }
.pnc-winner-confetti i:nth-child(4) { left: 60%; background: #e64238; animation-delay: -1.7s; }
.pnc-winner-confetti i:nth-child(5) { left: 77%; background: #7548be; animation-delay: -.9s; }
.pnc-winner-confetti i:nth-child(6) { left: 91%; background: #f6b51b; animation-delay: -2s; }

@keyframes pnc-confetti {
  to { transform: translateY(520px) rotate(520deg); }
}

.pnc-game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  overflow: hidden;
  border: 1px solid #ccdae4;
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow-lg);
}

.pnc-game-feature__preview {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #086bc9;
}

.pnc-game-feature__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pnc-game-feature__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 55px rgb(0 39 80 / .2);
  pointer-events: none;
}

.pnc-game-feature__badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: .55rem .7rem;
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: .55rem;
  background: rgb(255 255 255 / .92);
  box-shadow: 0 8px 24px rgb(0 39 80 / .18);
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 750;
}

.pnc-game-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 4rem);
}

.pnc-game-feature__copy h3 {
  margin: .4rem 0 .75rem;
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -.035em;
}

.pnc-game-feature__copy > p:not(.pnc-eyebrow) {
  color: var(--ink-soft);
}

.pnc-check-list {
  display: grid;
  gap: .6rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.pnc-check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  font-size: .9rem;
}

.pnc-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .05rem;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2f3e8;
  color: #247147;
  font-size: .7rem;
  font-weight: 900;
}

.pnc-game-shell:fullscreen {
  padding: 1rem;
  overflow: auto;
  background: #d9f1ff;
}

.pnc-game-shell:fullscreen .pnc-game-play {
  width: 100%;
}

@media (max-width: 1100px) {
  .pnc-game-layout {
    grid-template-columns: 1fr;
  }

  .pnc-game-console {
    position: static;
    grid-template-columns: minmax(300px, 1fr) minmax(250px, .7fr);
  }

  .pnc-game-log {
    grid-column: 1 / -1;
  }

  .pnc-game-setup {
    grid-template-columns: 1fr 430px;
  }
}

@media (max-width: 820px) {
  .pnc-game-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .pnc-game-header__inner > div:first-child {
    width: 100%;
  }

  .pnc-game-header__actions {
    min-width: 0;
    width: 100%;
  }

  .pnc-game-header__actions .pnc-button {
    min-width: 0;
    flex: 1;
    justify-content: center;
  }

  .pnc-game-setup {
    grid-template-columns: 1fr;
    width: calc(100% - 2rem);
  }

  .pnc-game-setup__visual {
    min-height: 280px;
  }

  .pnc-game-setup__form {
    padding: 2rem;
  }

  .pnc-game-option {
    margin-top: 1rem;
  }

  .pnc-game-toolbar {
    grid-template-columns: 1fr auto;
  }

  .pnc-game-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pnc-game-console {
    display: contents;
  }

  .pnc-turn-card {
    order: -2;
  }

  .pnc-board-scroll {
    order: -1;
  }

  .pnc-game-feature {
    grid-template-columns: 1fr;
  }

  .pnc-game-feature__preview {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .pnc-game-header__inner {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .pnc-game-header__inner > div:first-child,
  .pnc-game-header__actions {
    width: 100%;
    max-width: 100%;
  }

  .pnc-game-header p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .pnc-game-header {
    padding: 1.5rem 0;
  }

  .pnc-game-header h1 {
    font-size: 2.25rem;
  }

  .pnc-game-header__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .pnc-game-header__actions .pnc-button {
    flex: 1 1 140px;
    white-space: normal;
    padding: .65rem .5rem;
    font-size: .78rem;
  }

  .pnc-game-shell {
    padding-top: 1rem;
  }

  .pnc-game-setup__visual {
    min-height: 220px;
  }

  .pnc-game-setup {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .pnc-game-setup__mission {
    left: 1rem;
    bottom: 1rem;
  }

  .pnc-game-setup__form {
    padding: 1.4rem;
  }

  .pnc-game-play {
    width: calc(100% - 1rem);
  }

  .pnc-game-toolbar {
    gap: .6rem;
    padding: .65rem;
  }

  .pnc-board {
    min-width: 720px;
  }

  .pnc-board-scroll::after {
    content: "Przesuń planszę palcem";
    position: sticky;
    left: 12px;
    bottom: 12px;
    display: inline-block;
    margin: 0 0 10px 10px;
    padding: .4rem .55rem;
    border-radius: .45rem;
    background: rgb(5 45 83 / .78);
    color: white;
    font-size: .68rem;
    pointer-events: none;
  }

  .pnc-game-piece {
    width: 31px;
    height: 31px;
    font-size: .7rem;
  }

  .pnc-rules-legend {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pnc-game-piece,
  .pnc-board-spotlight,
  .pnc-die,
  .pnc-game-dialog[open],
  .pnc-winner-confetti i {
    animation: none !important;
    transition: none !important;
  }
}
