.guides-grid-wrap {
  margin-top: 1rem;
}

.guides-activity-sequence {
  display: grid;
  gap: 0.7rem;
}

.guides-activity-step[hidden] {
  display: none !important;
}

.guides-activity-card {
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 224, 255, 0.35);
  background: linear-gradient(180deg, rgba(18, 41, 73, 0.74) 0%, rgba(12, 22, 47, 0.76) 100%);
}

.guides-activity-card h4 {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  color: #d9f8ff;
}

.guides-activity-card p {
  margin: 0.45rem 0 0;
  color: rgba(217, 248, 255, 0.86);
}

.guides-intro-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1rem;
  border-color: rgba(173, 239, 255, 0.45);
  background:
    radial-gradient(circle at 85% 12%, rgba(118, 216, 255, 0.22) 0%, rgba(118, 216, 255, 0) 48%),
    linear-gradient(180deg, rgba(17, 56, 92, 0.82) 0%, rgba(10, 31, 63, 0.86) 100%);
  box-shadow: 0 12px 28px rgba(4, 16, 34, 0.42), inset 0 0 0 1px rgba(148, 235, 255, 0.08);
}

.guides-intro-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.15rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(169, 239, 255, 0.62);
  background: rgba(125, 222, 255, 0.14);
  color: #d7f7ff;
  font-family: "Audiowide", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guides-intro-card__title {
  margin: 0.55rem 0 0;
  font-family: "Audiowide", sans-serif;
  font-size: clamp(1rem, 1.1vw + 0.8rem, 1.32rem);
  line-height: 1.3;
  color: #e5fcff;
  text-shadow: 0 0 16px rgba(120, 224, 255, 0.35);
  text-align: center;
}

.guides-intro-card__lead,
.guides-intro-card__body {
  margin: 0.62rem 0 0;
  color: rgba(220, 248, 255, 0.92);
  line-height: 1.62;
}

.guides-intro-card__lead {
  font-size: 0.98rem;
  text-align: center;
}

.guides-intro-card__body {
  font-size: 0.94rem;
}

.guides-intro-card__list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.44rem;
}

.guides-intro-card__list li {
  position: relative;
  padding-left: 1.08rem;
  color: rgba(230, 250, 255, 0.94);
  line-height: 1.46;
}

.guides-intro-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.57em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(199, 244, 255, 0.9);
  background: radial-gradient(circle, rgba(180, 241, 255, 0.95) 0%, rgba(102, 208, 243, 0.4) 70%, rgba(102, 208, 243, 0.06) 100%);
  box-shadow: 0 0 9px rgba(131, 229, 255, 0.32);
}

.guides-story-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.guides-info-card,
.guides-media-card {
  border-radius: 10px;
  border: 1px solid rgba(170, 230, 255, 0.22);
  background: rgba(14, 38, 65, 0.62);
  padding: 0.78rem 0.82rem;
}

.guides-info-card__title {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  font-size: 1.32rem;
  color: #e8faff;
  text-align: center;
}

.guides-info-card p,
.guides-media-card__text {
  margin: 0.52rem 0 0;
  color: rgba(226, 249, 255, 0.9);
  line-height: 1.58;
}

.guides-info-card__list {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  color: rgba(226, 249, 255, 0.92);
  line-height: 1.6;
}

.guides-info-card__list li + li {
  margin-top: 0.34rem;
}

.guides-info-card--danger {
  border-color: rgba(255, 122, 122, 0.42);
  background: linear-gradient(180deg, rgba(104, 28, 28, 0.34) 0%, rgba(68, 19, 19, 0.3) 100%);
}

.guides-info-card--warn {
  border-color: rgba(255, 194, 109, 0.48);
  background: linear-gradient(180deg, rgba(107, 73, 22, 0.3) 0%, rgba(80, 53, 16, 0.26) 100%);
}

.guides-info-card--info,
.guides-media-card {
  border-color: rgba(124, 218, 255, 0.42);
  background: linear-gradient(180deg, rgba(28, 78, 114, 0.28) 0%, rgba(20, 55, 88, 0.24) 100%);
}

.guides-media-card__video {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0.64rem auto 0;
  border-radius: 10px;
  border: 1px solid rgba(173, 238, 255, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  background: rgba(7, 19, 33, 0.9);
}

@media (max-width: 768px) {
  .guides-intro-card {
    padding: 0.95rem 0.85rem;
  }

  .guides-intro-card__title {
    font-size: 1.02rem;
  }

  .guides-intro-card__lead,
  .guides-intro-card__body,
  .guides-intro-card__list li {
    font-size: 0.9rem;
  }

  .guides-info-card,
  .guides-media-card {
    padding: 0.68rem 0.72rem;
  }

  .guides-info-card__title {
    font-size: 0.82rem;
  }

  .guides-info-card p,
  .guides-info-card__list li,
  .guides-media-card__text {
    font-size: 0.88rem;
  }
}

guides-key-input-board {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.guides-key-input-board {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.guides-key-input-board__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.guides-key-input-panel {
  position: absolute;
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(149, 149, 149, 0.95);
  background: linear-gradient(180deg, rgba(88, 88, 88, 0.98) 0%, rgba(63, 63, 63, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(210, 210, 210, 0.18), 0 4px 10px rgba(0, 0, 0, 0.45);
}

.guides-key-input-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  min-width: 25px;
  padding: 0;
  border: 1px solid rgba(28, 28, 28, 0.95);
  background: linear-gradient(180deg, rgba(133, 133, 133, 0.96) 0%, rgba(82, 82, 82, 0.98) 100%);
  box-shadow: inset 1px 1px 0 rgba(220, 220, 220, 0.22), inset -1px -1px 0 rgba(25, 25, 25, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  pointer-events: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.guides-key-input-button.is-hidden {
  display: none;
}

.guides-key-input-button.is-active {
  border-color: rgba(255, 214, 114, 0.98);
  background: linear-gradient(180deg, rgba(156, 134, 49, 0.98) 0%, rgba(102, 84, 26, 0.98) 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 236, 173, 0.32), inset -1px -1px 0 rgba(66, 44, 10, 0.5);
  transform: translateY(1px);
}

.guides-key-input-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.guides-key-input-button__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem;
  font-family: Tahoma, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: #f0f0f0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.guides-key-input-button__icon {
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.guides-key-input-button--text {
  aspect-ratio: auto;
  min-height: 21px;
}

.guides-key-input-button--compact {
  min-height: 25px;
  height: 25px;
}

.guides-key-input-button--compact img {
  object-fit: fill;
  object-position: center;
}

.guides-key-input-button--wide {
  grid-column: 1 / -1;
}

.guides-key-input-button--section-gap {
  margin-top: 12px;
}

.guides-key-input-button--stop .guides-key-input-button__label {
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.guides-key-input-button--dim {
  opacity: 0.6;
}

.guides-layered-board {
  position: relative;
}

.guides-activity-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.guides-activity-counter {
  font-size: 0.85rem;
  color: rgba(221, 243, 255, 0.86);
}

.guides-activity-note {
  flex: 1 1 100%;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 200, 120, 0.75);
  border-radius: 8px;
  background: rgba(80, 42, 5, 0.35);
  color: #ffd99b;
  font-size: 0.82rem;
  line-height: 1.3;
}

.guides-process-modal[hidden] {
  display: none !important;
}

.guides-process-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.guides-process-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.62);
  backdrop-filter: blur(2px);
}

.guides-process-modal__panel {
  position: relative;
  width: min(92vw, 440px);
  border-radius: 12px;
  border: 1px solid rgba(140, 224, 255, 0.4);
  background: linear-gradient(180deg, rgba(18, 41, 73, 0.96) 0%, rgba(12, 22, 47, 0.97) 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
  padding: 1rem;
}

.guides-process-modal__title {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  font-size: 1rem;
  color: #d9f8ff;
}

.guides-process-modal__body {
  margin: 0.65rem 0 0;
  color: rgba(217, 248, 255, 0.9);
  line-height: 1.45;
  text-align: center;
}

.guides-process-modal__body p {
  margin: 0;
}

.guides-process-modal__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

guides-wall-board {
  display: block;
}

.guides-board {
  position: relative;
  width: min(100%, 980px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(167, 210, 255, 0.35);
  box-shadow: 0 10px 26px rgba(8, 8, 20, 0.35);
}

.guides-board--plain {
  margin-top: 1rem;
}

.guides-center-start-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  min-width: 120px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(159, 232, 255, 0.8);
  background: linear-gradient(180deg, rgba(21, 53, 93, 0.92) 0%, rgba(13, 30, 58, 0.94) 100%);
  color: #ebf9ff;
  font-family: "Audiowide", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(175, 239, 255, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.guides-center-start-btn:hover {
  filter: brightness(1.08);
  border-color: rgba(194, 242, 255, 0.98);
}

.guides-center-start-btn:active {
  transform: translate(-50%, -50%) scale(0.98);
}

.guides-center-restart-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 6;
  min-width: 120px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 159, 0.85);
  background: linear-gradient(180deg, rgba(87, 54, 17, 0.92) 0%, rgba(60, 37, 12, 0.94) 100%);
  color: #fff6e9;
  font-family: "Audiowide", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 234, 205, 0.22);
  transition: filter 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.guides-center-restart-btn:hover {
  filter: brightness(1.08);
  border-color: rgba(255, 232, 196, 0.98);
}

.guides-center-restart-btn:active {
  transform: scale(0.98);
}

.guides-background {
  display: block;
  width: 100%;
  height: auto;
}

.guides-background-large guides-wall-board .guides-background {
  width: 120%;
  max-width: none;
  transform: translateX(-10%);
}

.guides-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  grid-template-rows: repeat(11, minmax(0, 1fr));
}

.guides-cell {
  border: 1px solid rgba(167, 210, 255, 0.45);
  background: rgba(14, 21, 49, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: default;
  padding: 0.15rem;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.guides-cell.is-green {
  background: rgba(30, 198, 92, 0.35);
  border-color: rgba(137, 255, 183, 0.85);
}

.guides-cell.is-red {
  background: rgba(220, 38, 38, 0.35);
  border-color: rgba(255, 168, 168, 0.8);
}

.guides-cell::before {
  content: attr(data-coord);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.guides-cell:hover::before {
  opacity: 1;
}

.guides-grid--icons {
  pointer-events: none;
}

.guides-icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.guides-icon-cell img {
  width: 220%;
  height: 220%;
  object-fit: contain;
  image-rendering: pixelated;
  transform: translateY(20%);
}

.guides-required-wall-hint {
  align-self: stretch;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.guides-required-wall-hint.is-visible {
  opacity: 1;
}

.guides-required-wall-hint__image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.guides-quiz {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(140, 224, 255, 0.4);
  background: linear-gradient(180deg, rgba(18, 41, 73, 0.76) 0%, rgba(12, 22, 47, 0.78) 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.guides-actions {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(165, 198, 225, 0.35);
  background: linear-gradient(180deg, rgba(62, 68, 80, 0.5) 0%, rgba(40, 45, 58, 0.56) 100%);
}

.guides-actions h4 {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  font-size: 0.96rem;
  color: #eff8ff;
}

.guides-actions-list {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.guides-action-btn {
  min-width: 64px;
  border: 1px solid rgba(191, 199, 217, 0.55);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(88, 95, 109, 0.9) 0%, rgba(67, 74, 88, 0.92) 100%);
  color: #eef3fb;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.guides-action-btn:hover {
  filter: brightness(1.08);
}

.guides-action-btn:active {
  transform: translateY(1px);
}

.guides-quiz h4 {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  font-size: 1.05rem;
  color: #d9f8ff;
}

.guides-quiz p {
  margin-top: 0.4rem;
  margin-bottom: 0.85rem;
  color: rgba(217, 248, 255, 0.84);
  font-size: 0.88rem;
}

.guides-quiz-form {
  display: grid;
  gap: 0.55rem;
}

.guides-quiz-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 210, 255, 0.3);
  background: linear-gradient(180deg, rgba(9, 15, 34, 0.62) 0%, rgba(5, 10, 24, 0.62) 100%);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.guides-quiz-option:hover {
  border-color: rgba(120, 223, 255, 0.65);
  background: linear-gradient(180deg, rgba(20, 35, 70, 0.72) 0%, rgba(12, 24, 52, 0.72) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.guides-quiz-option input {
  accent-color: #58d9ff;
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.guides-quiz-choice {
  display: grid;
  gap: 0.15rem;
}

.guides-quiz-choice strong {
  font-size: 0.9rem;
  color: #eefcff;
  font-weight: 700;
}

.guides-quiz-choice small {
  font-size: 0.78rem;
  color: rgba(203, 239, 255, 0.82);
}

.guides-quiz-wall {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  justify-self: end;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.guides-quiz-option:has(input:checked) {
  border-color: rgba(88, 217, 255, 0.95);
  background: linear-gradient(180deg, rgba(33, 78, 120, 0.76) 0%, rgba(16, 44, 77, 0.76) 100%);
  box-shadow: 0 0 0 1px rgba(88, 217, 255, 0.35), 0 8px 16px rgba(0, 0, 0, 0.24);
}

.center-text-p{
  text-align: center;
}

.guides-info-card p{
  text-align: center;
}

.guides-media-card__text{
  text-align: center;
}