.technical-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  min-height: 40px;
  padding: 9px;
  border: 1px solid #343434;
  border-radius: 8px;
  background: #181818;
  color: #c9c9c9;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    background 0.16s,
    transform 0.16s,
    border-color 0.16s;
}
.technical-trigger:hover {
  background: #262626;
  color: #fff;
  border-color: #525252;
  transform: translateY(-1px);
}
.technical-trigger:active {
  transform: scale(0.96);
}
.technical-trigger svg,
.technical-trigger .game-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.technical-trigger:focus-visible,
.technical-panel button:focus-visible,
.technical-panel a:focus-visible,
.technical-panel summary:focus-visible {
  outline: 2px solid #c8b7fa;
  outline-offset: 3px;
}
.technical-panel {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(560px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-left: 1px solid #353535;
  border-radius: 0;
  background: #111;
  color: #f2f2f2;
  box-shadow: -24px 0 80px #0007;
  font-family: inherit;
  overflow: hidden;
}
.technical-panel[open] {
  display: flex;
  flex-direction: column;
  animation: technical-slide-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.technical-panel::backdrop {
  background: #0008;
  backdrop-filter: blur(3px);
  animation: technical-fade-in 0.2s ease;
}
.technical-panel.is-closing {
  animation: technical-slide-out 0.16s ease forwards;
}
.technical-panel.is-closing::backdrop {
  animation: technical-fade-out 0.16s ease forwards;
}
.technical-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid #2c2c2c;
  background: #151515;
  flex-shrink: 0;
}
.technical-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #a9a9a9;
}
.technical-panel-heading h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 7px 0 0;
  font-weight: 600;
}
.technical-panel-heading > button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #202020;
  border: 1px solid #383838;
  border-radius: 8px;
  color: #ddd;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.technical-panel-body {
  padding: 26px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  font-size: 14px;
  line-height: 1.7;
}
.technical-panel-body section + section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #2b2b2b;
}
.technical-panel-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #eee;
  margin: 0 0 10px;
}
.technical-panel-body p {
  margin: 0 0 12px;
  color: #b9b9b9;
  font-size: 14px;
  line-height: 1.7;
}
.technical-panel-body ul,
.technical-panel-body ol {
  padding-left: 20px;
  margin: 10px 0 16px;
  color: #b9b9b9;
}
.technical-panel-body li {
  margin: 7px 0;
}
.technical-panel-body strong {
  color: #eee;
  font-weight: 600;
}
.technical-panel-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85em;
  color: #ded5fb;
  overflow-wrap: anywhere;
}
.technical-panel-body pre {
  border: 1px solid #323232;
  border-radius: 8px;
  background: #090909;
  padding: 18px;
  white-space: pre-wrap;
  overflow: auto;
  margin: 8px 0 20px;
  font-size: 12px;
  line-height: 1.7;
}
.technical-panel-body pre code {
  color: #ccc;
  font-size: inherit;
}
.technical-panel-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin: 16px 0;
}
.technical-panel-body th,
.technical-panel-body td {
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #303030;
  color: #bbb;
  overflow-wrap: anywhere;
}
.technical-panel-body th {
  color: #ededed;
  font-weight: 600;
}
.technical-panel-body a {
  color: #d6c8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.technical-copy,
.technical-panel-body button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #383838;
  border-radius: 6px;
  background: #232323;
  color: #eee;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.technical-panel-body .technical-copy {
  float: none;
  display: block;
  margin-left: auto;
}
.technical-panel-status {
  padding: 0 28px 18px;
  margin: 0;
  color: #bcbcbc;
  flex-shrink: 0;
  font-size: 12px;
}
.technical-panel-status:empty {
  display: none;
}
@keyframes technical-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0.5;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes technical-slide-out {
  to {
    transform: translateX(100%);
    opacity: 0.4;
  }
}
@keyframes technical-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes technical-fade-out {
  to {
    opacity: 0;
  }
}
@media (max-width: 600px) {
  .technical-panel-heading {
    padding: 22px 20px 18px;
  }
  .technical-panel-body {
    padding: 22px 20px;
  }
  .technical-panel-heading h2 {
    font-size: 22px;
  }
  .technical-panel-status {
    padding: 0 20px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .technical-panel[open],
  .technical-panel::backdrop,
  .technical-panel.is-closing,
  .technical-panel.is-closing::backdrop {
    animation: none;
  }
  .technical-trigger {
    transition: none;
  }
}
