/* The game guide (/guide): contents links, then a section each: its text on the left and a picture on the right (the
   game's own card faces and token badges, or a small map), the picture under the text on a narrow screen */
.GuidePage {
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 40px 16px;
  color: rgba(255, 255, 255, 0.9);
}

.GuidePage .guide {
  max-width: 1360px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.5;
}

.GuidePage h2 {
  margin: 0 0 16px;
  font-size: 36px;
  color: white;
}

.GuidePage .contents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.GuidePage .contents a {
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(118, 75, 162, 0.35);
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.GuidePage .contents a:hover {
  background: rgba(118, 75, 162, 0.7);
}

.GuidePage section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 16px;
}

.GuidePage section .text {
  flex: 1 1 320px;
}

.GuidePage section .example {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none; /* a picture: its buttons don't do anything */
}

.GuidePage h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #b9a3f5;
}

.GuidePage p {
  margin: 0 0 10px;
}

.GuidePage p a {
  color: #b9a3f5;
}

.GuidePage p.spirit {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.GuidePage strong {
  color: white;
}

.GuidePage .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* A small map: 44px squares, a character's portrait on its square */
.GuidePage .mapDiagram {
  margin: 0;
  text-align: center;
}

.GuidePage .mapDiagram .squares {
  display: grid;
  grid-auto-rows: 44px;
  gap: 2px;
  justify-content: center;
}

.GuidePage .mapDiagram .square {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #3d4a36; /* ground */
  font-size: 13px;
  color: white;
}

.GuidePage .mapDiagram .square img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.GuidePage .mapDiagram .square.place { background: #2e8b3e; }
.GuidePage .mapDiagram .square.range { background: rgba(211, 47, 47, 0.75); }
.GuidePage .mapDiagram .square.wall { background: #555; }
.GuidePage .mapDiagram .square.fog { background: #151515; }

.GuidePage .mapDiagram .square.lastSeen img {
  opacity: 0.45;
}

.GuidePage .mapDiagram .square.lastSeen span {
  position: absolute;
  bottom: -2px;
  font-size: 9px;
  white-space: nowrap;
}

.GuidePage .mapDiagram figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* The movement die's six faces, drawn like the game's die (MovementDie) */
.GuidePage .dieFaces {
  display: flex;
  gap: 8px;
}

.GuidePage .joinCode {
  display: flex;
  align-items: center;
  gap: 8px;
}

.GuidePage .joinCode span {
  font-family: monospace;
  font-size: 28px;
  letter-spacing: 3px;
  margin-right: 8px;
}

.GuidePage .joinCode button,
.GuidePage .alliances button {
  margin: 0;
  font-size: 15px;
  padding: 8px 16px;
}

.GuidePage .statuses div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.GuidePage .statuses .bubble {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.GuidePage .statuses .bubble.takingTurn { background: #1f5fbf; }
.GuidePage .statuses .bubble.ended { background: #28a745; }
.GuidePage .statuses .bubble.offline { background: #dc3545; }

.GuidePage .damage {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.GuidePage .damage .attack,
.GuidePage .damage .defense {
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 26px;
  font-weight: bold;
}

.GuidePage .damage .attack { background: #b3261e; }
.GuidePage .damage .defense { background: #1f5fbf; }

.GuidePage .tokenExample {
  display: flex;
  align-items: flex-start;
  margin: 5px;
}

/* The character's portrait (not its token badges' icons), then its badges in columns as tall as it */
.GuidePage .tokenExample img.portrait {
  width: 110px;
  height: 110px;
  border-radius: 4px;
  object-fit: cover;
}

.GuidePage .tokenExample .TokenBadges {
  height: 110px;
  margin: 0 0 0 6px;
}

.GuidePage .alliances {
  display: flex;
  align-items: center;
  gap: 8px;
}

.GuidePage .alliances .badge {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
}

.GuidePage .alliances .badge.ally { background: #28a745; }
.GuidePage .alliances .badge.enemy { background: #dc3545; }
