:root {
  --bg:           #e8d88a;
  --navbar-bg:    rgba(0,0,0,0.75);
  --red:          #cc1a1a;
  --red-bright:   #ff2222;
  --red-muted:    #8a2020;
  --card-bg:      rgba(0,0,0,0.12);
  --card-hover:   rgba(0,0,0,0.22);
  --border:       rgba(180,30,30,0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--red);
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

.bk-navbar {
  background-color: var(--navbar-bg) !important;
  border-bottom: 1px solid rgba(200, 30, 30, 0.4);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  min-height: 56px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bk-brand {
  font-family: 'Special Elite', cursive !important;
  font-size: 1.05rem !important;
  color: #ff3333 !important;
  letter-spacing: 0.12em;
}

.bk-brand-sub {
  color: #aa3333;
  font-size: 0.78rem;
}

.bk-nav-link {
  color: #dd2222 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 1.1rem !important;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.bk-nav-link:hover,
.bk-nav-link.active {
  color: #ff5555 !important;
  border-bottom-color: #ff3333;
  background-color: rgba(200, 30, 30, 0.15);
}

.bk-toggler {
  border-color: rgba(200,30,30,0.5) !important;
  filter: invert(0.3) sepia(1) saturate(5) hue-rotate(320deg);
}

.bk-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(200,50,50,0.1) 0%, transparent 70%),
    var(--bg);
}

.bk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180,30,30,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,30,30,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.bk-hero-inner {
  position: relative;
  max-width: 700px;
  padding: 3rem 1.5rem;
}

.bk-tag {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--red-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bk-title {
  font-family: 'Special Elite', cursive;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--red-bright);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 40px rgba(200,30,30,0.3);
  animation: bk-flicker 9s infinite;
}

.bk-subtitle {
  font-family: 'Special Elite', cursive;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--red-muted);
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
}

.bk-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin-bottom: 1.8rem;
}

.bk-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--red);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.bk-warning {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  background: rgba(180, 30, 30, 0.12);
}

.bk-section-label {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red-muted);
}

.bk-cards-grid {
  border: 1px solid var(--border);
  background-color: var(--border);
}

.bk-card {
  background-color: var(--card-bg);
  color: var(--red);
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s;
  outline: 1px solid var(--border);
}

.bk-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.bk-card:hover {
  background-color: var(--card-hover);
}

.bk-card:hover::after {
  transform: scaleX(1);
}

.bk-card-icon {
  font-size: 1.6rem;
  filter: sepia(1) saturate(3) hue-rotate(320deg) brightness(0.6);
}

.bk-card-title {
  font-family: 'Special Elite', cursive;
  font-size: 1.05rem;
  color: var(--red-bright);
  letter-spacing: 0.05em;
}

.bk-card-desc {
  font-size: 0.78rem;
  color: var(--red);
  line-height: 1.75;
  margin-bottom: 0;
}

.bk-card-count {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--red-muted);
  text-transform: uppercase;
}

.bk-info-strip {
  border: 1px solid var(--border);
  background-color: var(--border);
}

.bk-info-block {
  background-color: var(--card-bg);
  outline: 1px solid var(--border);
}

.bk-info-title {
  font-family: 'Special Elite', cursive;
  font-size: 0.95rem;
  color: var(--red-bright);
  letter-spacing: 0.08em;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.1rem;
}

.bk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bk-list li {
  font-size: 0.8rem;
  color: var(--red);
  line-height: 1.85;
  padding: 0.15rem 0;
}

.bk-list li::before {
  content: '›  ';
  color: var(--red-bright);
}

.bk-info-text {
  font-size: 0.8rem;
  color: var(--red);
  line-height: 1.85;
}

.bk-link {
  color: var(--red-bright);
  text-decoration: underline;
}

.bk-link:hover {
  color: #ff6666;
}

.bk-footer {
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--red-muted);
  text-transform: uppercase;
  background-color: rgba(0,0,0,0.08);
}

@keyframes bk-flicker {
  0%, 94%, 100% { opacity: 1; }
  95%           { opacity: 0.82; }
  96%           { opacity: 1; }
  97.5%         { opacity: 0.55; }
  98%           { opacity: 1; }
}

.bk-page-header {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(200,50,50,0.09) 0%, transparent 70%),
    var(--bg);
}

.bk-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180,30,30,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,30,30,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.bk-skip-btn {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  background: rgba(180, 30, 30, 0.1);
  transition: background 0.2s, color 0.2s;
}

.bk-skip-btn:hover {
  background: rgba(180, 30, 30, 0.22);
  color: #ff6666;
}

.bk-intro-block {
  border-left: 2px solid var(--red-muted);
  padding-left: 1.5rem;
}

.bk-section-title {
  font-family: 'Special Elite', cursive;
  font-size: 1.2rem;
  color: var(--red-bright);
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.bk-section-sublabel {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-muted);
}

.bk-body-text {
  font-size: 0.85rem;
  color: var(--red);
  line-height: 1.95;
  margin-bottom: 1.1rem;
}

.bk-highlight {
  color: var(--red-bright);
  font-style: normal;
}

.bk-level-list {
  border: 1px solid var(--border);
}

.bk-level-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  transition: background 0.18s;
}

.bk-level-row:last-child {
  border-bottom: none;
}

.bk-level-row:hover {
  background: var(--card-hover);
}

.bk-level-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--red-muted);
  letter-spacing: 0.12em;
  min-width: 80px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.bk-level-name {
  font-family: 'Special Elite', cursive;
  font-size: 1rem;
  color: var(--red-bright);
  letter-spacing: 0.04em;
}

.bk-entity-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--red-muted);
  letter-spacing: 0.1em;
  min-width: 96px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.bk-entity-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border: 1px solid transparent;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.bk-tag-hostile {
  color: #ff4444;
  border-color: rgba(200, 30, 30, 0.55);
  background: rgba(180, 20, 20, 0.12);
}

.bk-tag-neutral {
  color: #c8a840;
  border-color: rgba(180, 150, 40, 0.45);
  background: rgba(160, 130, 20, 0.1);
}

.bk-legend {
  font-size: 0.72rem;
  color: var(--red-muted);
  letter-spacing: 0.05em;
}

.bk-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bk-obj-card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--card-bg);
  position: relative;
}

.bk-obj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--red-muted);
}

.bk-obj-redacted {
  opacity: 0.7;
}

.bk-obj-num {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--red-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}

.bk-obj-title {
  font-family: 'Special Elite', cursive;
  font-size: 1.4rem;
  color: var(--red-bright);
  margin: 0;
  letter-spacing: 0.04em;
}

.bk-obj-rating {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.bk-rating-safe {
  color: #4caf72;
  border-color: rgba(60, 160, 90, 0.45);
  background: rgba(40, 130, 70, 0.1);
}

.bk-rating-neutral {
  color: #c8a840;
  border-color: rgba(180, 150, 40, 0.45);
  background: rgba(160, 130, 20, 0.1);
}

.bk-rating-hostile {
  color: #ff4444;
  border-color: rgba(200, 30, 30, 0.55);
  background: rgba(180, 20, 20, 0.12);
}

.bk-rating-legend {
  font-size: 0.75rem;
}

.bk-img-placeholder {
  border: 1px dashed rgba(180, 30, 30, 0.4);
  background: rgba(0, 0, 0, 0.15);
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--red-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: 'Share Tech Mono', monospace;
}

.bk-revision-notice {
  border: 1px solid rgba(180, 150, 40, 0.5);
  background: rgba(160, 130, 20, 0.08);
  color: #b09030;
  font-size: 0.8rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  padding: 1rem 1.2rem;
}

.bk-back-top {
  display: inline-block;
  border: 1px solid var(--red-muted);
  color: var(--red);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.6rem;
  background: rgba(180, 30, 30, 0.07);
  transition: background 0.2s, color 0.2s;
}

.bk-back-top:hover {
  background: rgba(180, 30, 30, 0.18);
  color: var(--red-bright);
}

.ph-infographic {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.08) 0%,
    rgba(180,30,30,0.04) 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ph-inf-title {
  font-family: 'Special Elite', cursive;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--red-bright);
  letter-spacing: 0.06em;
}

.ph-inf-sub {
  font-size: 0.82rem;
  color: var(--red-muted);
  letter-spacing: 0.1em;
}

.ph-inf-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.6rem 1.4rem;
  position: relative;
  transition: background 0.2s;
}

.ph-inf-card:hover {
  background: var(--card-hover);
}

.ph-inf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-muted), transparent);
}

.ph-inf-icon {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
  filter: sepia(1) saturate(2) hue-rotate(310deg) brightness(0.65);
}

.ph-inf-card-title {
  font-family: 'Special Elite', cursive;
  font-size: 1rem;
  color: var(--red-bright);
  margin-bottom: 0.7rem;
  letter-spacing: 0.05em;
}

.ph-inf-card-text {
  font-size: 0.78rem;
  color: var(--red);
  line-height: 1.82;
  margin: 0;
}

.ph-swiper-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.ph-swiper {
  border: 1px solid var(--border);
  background: var(--surface);
  padding-bottom: 52px !important;
}

.ph-slide-inner {
  min-height: 460px;
}

.ph-slide-left {
  background: rgba(0,0,0,0.18);
  border-right: 1px solid var(--border);
}

.ph-slide-right {
  background: var(--card-bg);
}

.ph-slide-num {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--red-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.ph-slide-title {
  font-family: 'Special Elite', cursive;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--red-bright);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.ph-slide-tag {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border: 1px solid transparent;
  margin-bottom: 1rem;
}

.ph-tag-hostile {
  color: #ff4444;
  border-color: rgba(200,30,30,0.55);
  background: rgba(180,20,20,0.12);
}

.ph-tag-neutral {
  color: #c8a840;
  border-color: rgba(180,150,40,0.45);
  background: rgba(160,130,20,0.1);
}

.ph-slide-physic {
  font-size: 0.77rem;
  color: var(--red-muted);
  line-height: 1.8;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

.ph-slide-section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-muted);
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.ph-slide-body {
  font-size: 0.8rem;
  color: var(--red);
  line-height: 1.85;
  margin-bottom: 0.8rem;
}

.ph-slide-body:last-child {
  margin-bottom: 0;
}

.ph-swiper-prev,
.ph-swiper-next {
  color: var(--red) !important;
  background: rgba(0,0,0,0.3);
  width: 36px !important;
  height: 36px !important;
  border-radius: 0 !important;
  border: 1px solid var(--border);
  top: auto !important;
  bottom: 10px;
  transition: background 0.2s;
}

.ph-swiper-prev { left: calc(50% - 50px) !important; }
.ph-swiper-next { right: calc(50% - 50px) !important; }

.ph-swiper-prev:hover,
.ph-swiper-next:hover {
  background: rgba(180,30,30,0.25) !important;
}

.ph-swiper-prev::after,
.ph-swiper-next::after {
  font-size: 0.85rem !important;
  font-weight: bold;
}

.ph-swiper-pagination {
  bottom: 14px !important;
}

.ph-swiper-pagination .swiper-pagination-bullet {
  background: var(--red-muted) !important;
  opacity: 0.5;
  border-radius: 0 !important;
  width: 8px;
  height: 3px;
}

.ph-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--red-bright) !important;
  opacity: 1;
  width: 18px;
}

.ph-swiper-hint {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--red-muted);
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .ph-slide-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .ph-slide-inner {
    min-height: unset;
  }
}

.bk-entity-row-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bk-entity-row-link .bk-level-row {
  transition: background 0.18s, padding-left 0.18s;
}

.bk-entity-row-link:hover .bk-level-row {
  background: var(--card-hover);
  padding-left: 1.8rem;
}

.bk-entity-arrow {
  font-size: 0.75rem;
  color: var(--red-muted);
  margin-left: 0.8rem;
  flex-shrink: 0;
  transition: color 0.18s;
}

.bk-entity-row-link:hover .bk-entity-arrow {
  color: var(--red-bright);
}
