/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden='until-found'])) {
    display: none !important;
  }
}
@layer utilities {
  .collapse {
    visibility: collapse;
  }
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .top-3 {
    top: calc(var(--spacing) * 3);
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-block {
    display: inline-block;
  }
  .table {
    display: table;
  }
  .grow {
    flex-grow: 1;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .capitalize {
    text-transform: capitalize;
  }
  .lowercase {
    text-transform: lowercase;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .\[active\:chess\] {
    active: chess;
  }
  .\[advancedpawn\:chess\] {
    advancedpawn: chess;
  }
  .\[anti-losalamos\:losalamos\] {
    anti-losalamos: losalamos;
  }
  .\[atomic-giveaway-hill\:giveaway\] {
    atomic-giveaway-hill: giveaway;
  }
  .\[atomic-giveaway\:giveaway\] {
    atomic-giveaway: giveaway;
  }
  .\[capture\:chess\] {
    capture: chess;
  }
  .\[captureall\:extinction\] {
    captureall: extinction;
  }
  .\[coffeehouse\:crazyhouse\] {
    coffeehouse: crazyhouse;
  }
  .\[cornerrook\:chess\] {
    cornerrook: chess;
  }
  .\[crossing\:kingofthehill\] {
    crossing: kingofthehill;
  }
  .\[diana\:losalamos\] {
    diana: losalamos;
  }
  .\[doublearmy\:chess\] {
    doublearmy: chess;
  }
  .\[empire\:chess\] {
    empire: chess;
  }
  .\[flipello\:flipersi\] {
    flipello: flipersi;
  }
  .\[gemini\:janus\] {
    gemini: janus;
  }
  .\[gothhouse\:capablanca\] {
    gothhouse: capablanca;
  }
  .\[grandhouse\:grand\] {
    grandhouse: grand;
  }
  .\[janggihouse\:janggi\] {
    janggihouse: janggi;
  }
  .\[makrukhouse\:makruk\] {
    makrukhouse: makruk;
  }
  .\[microchess\:gardner\] {
    microchess: gardner;
  }
  .\[orda\:chess\] {
    orda: chess;
  }
  .\[ordamirror\:chess\] {
    ordamirror: chess;
  }
  .\[pawnsmassacre\:chess\] {
    pawnsmassacre: chess;
  }
  .\[peasant\:chess\] {
    peasant: chess;
  }
  .\[screen\:placement\] {
    screen: placement;
  }
  .\[semitorpedo\:chess\] {
    semitorpedo: chess;
  }
  .\[shinobi\:chess\] {
    shinobi: chess;
  }
  .\[shogun\:crazyhouse\] {
    shogun: crazyhouse;
  }
  .\[synochess\:pocketknight\] {
    synochess: pocketknight;
  }
  .\[upsidedown\:chess\] {
    upsidedown: chess;
  }
  .\[weak\:chess\] {
    weak: chess;
  }
  .\[wildebeest\:chess\] {
    wildebeest: chess;
  }
  .\[xiangqihouse\:xiangqi\] {
    xiangqihouse: xiangqi;
  }
}
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
html {
  zoom: 1.0;
}
html, body {
  background-color: #000000;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  color: #f5f5f5;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}
body {
  display: flex;
  flex-direction: column;
}
header, footer {
  padding: 10px 20px;
  background: #141414;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
header {
  border-bottom: 1px solid #2a2a2a;
}
footer {
  border-top: 1px solid #2a2a2a;
  color: #d0d0d0;
  font-size: 0.8rem;
}
h1 {
  font-size: 2em;
}
main {
  flex: 1 1 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 699px) {
  header, footer {
    padding: 8px 12px;
  }
  h1 {
    font-size: 1.35rem;
  }
  main {
    padding: 8px;
  }
}
@media (min-width: 700px) and (max-width: 1099px) {
  main {
    padding: 10px;
  }
}
.game_panel {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.game_panel_left, .game_panel_config, .game_panel_right_top, .game_panel_right_bottom {
  background: #171717;
  border: 1px solid #2d2d2d;
  border-radius: 0;
  padding: 16px;
  min-width: 0;
  overflow: visible;
}
.game_panel_left {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.game_panel_config {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.game_panel_config select, .game_panel_config input, .game_panel_config textarea, .game_panel_config button {
  width: 100%;
  border: 1px solid #3a3a3a;
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 6px 8px;
}
.config_clock_enable {
  display: flex;
  align-items: center;
  gap: 8px;
}
.game_panel_config input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.config_panel_title {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 700;
}
.game_config_panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 700px) and (max-width: 1099px) {
  .game_panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    grid-template-areas: "left rightTop" "left rightBottom" "config config";
    gap: 10px;
    align-items: start;
  }
  .game_panel_config {
    grid-area: config;
    padding: 12px;
  }
  .game_panel_left {
    grid-area: left;
    position: sticky;
    top: 8px;
    z-index: 10;
    padding: 8px;
    align-self: start;
  }
  .game_panel_right_top {
    grid-area: rightTop;
    padding: 12px;
    min-height: 0;
  }
  .game_panel_right_bottom {
    grid-area: rightBottom;
    padding: 12px;
  }
}
@media (max-width: 699px) {
  .game_panel {
    gap: 10px;
  }
  .game_panel_left {
    order: 1;
  }
  .game_panel_right_top {
    order: 2;
  }
  .game_panel_right_bottom {
    order: 3;
  }
  .game_panel_config {
    order: 4;
  }
  .game_panel_left, .game_panel_config, .game_panel_right_top, .game_panel_right_bottom {
    padding: 10px;
  }
  .game_panel_left {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #171717;
    border-bottom: 1px solid #2d2d2d;
  }
  .play_chrome {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 0 -10px;
    padding: 8px 10px;
    background: #171717;
    border-top: 1px solid #2d2d2d;
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.35);
  }
  .game_panel_config textarea, #fen_input {
    min-height: 2.6em;
  }
}
@media (min-width: 1100px) {
  .game_panel {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 520px;
    grid-template-rows: 1.35fr 0.65fr;
    grid-template-areas: "config left rightTop" "config left rightBottom";
    overflow: hidden;
  }
  .game_panel_config {
    grid-area: config;
  }
  .game_panel_left, .game_panel_config, .game_panel_right_top, .game_panel_right_bottom {
    min-height: 0;
    overflow: auto;
  }
  .game_panel_left {
    grid-area: left;
    container-type: size;
    height: 100%;
    overflow: hidden;
  }
  .game_panel_right_top {
    grid-area: rightTop;
  }
  .game_panel_right_bottom {
    grid-area: rightBottom;
    overflow: hidden;
  }
}
.chess_board_wrapper {
  --board-files: 8;
  --board-ranks: 8;
  --board-size: min(92vw, 640px);
  width: var(--board-size);
  height: var(--board-size);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(14px, 2.5cqw, 22px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) clamp(14px, 2.5cqw, 22px);
  gap: 4px;
  box-sizing: border-box;
  margin: 0 auto;
}
.board_spacer {
  width: clamp(18px, 2vw, 24px);
  height: clamp(18px, 2vw, 24px);
}
.board_files {
  display: grid;
  grid-template-columns: repeat(var(--board-files), 1fr);
  align-items: center;
  text-align: center;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  font-weight: 700;
  color: #d9d9d9;
}
.board_ranks {
  display: grid;
  grid-template-rows: repeat(var(--board-ranks), 1fr);
  align-items: center;
  text-align: center;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  font-weight: 700;
  color: #d9d9d9;
}
.board_label {
  user-select: none;
}
.chess_board {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(var(--board-files), minmax(0, 1fr));
  grid-template-rows: repeat(var(--board-ranks), minmax(0, 1fr));
  margin: 0;
  border: 2px solid #3a3a3a;
  align-self: center;
  justify-self: center;
  box-sizing: border-box;
}
.chess_board_square {
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  box-sizing: border-box;
}
.chess_board_square_legal_destination::before {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.65), -1px -1px 2px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 20;
}
.chess_board_square_legal_capture::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 47%;
  width: 6%;
  height: 84%;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.75);
  box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 20;
  transform: rotate(45deg);
}
.chess_board_square_legal_promotion::after {
  background: rgba(16, 16, 16, 0.58);
}
.chess_board_square_light {
  background-color: #f9ac71;
}
.chess_board_square_dark {
  background-color: #673314;
}
.piece_img {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
  margin: 0;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: element;
  z-index: 2;
  transition: top 0.4s ease-out, left 0.4s ease-out;
}
.piece_img_selected {
  filter: drop-shadow(0 0 0 #001018) drop-shadow(0 0 2px #001018) drop-shadow(0 0 0 #39ff14) drop-shadow(0 0 8px #39ff14) drop-shadow(0 0 14px #39ff14);
  transform: scale(1.14);
  transition: transform 120ms ease, filter 120ms ease;
  z-index: 2;
}
.piece_img_dragging {
  opacity: 0.7;
  cursor: grabbing;
}
.chess_board_square_suggested {
  box-shadow: inset 0 0 0 3px #67e8f9;
  background: rgba(103, 232, 249, 0.10);
  position: relative;
}
.chess_board_square_suggested_from {
  box-shadow: inset 0 0 0 3px #d97706;
  background: rgba(217, 119, 6, 0.18);
  position: relative;
}
.chess_board_square_suggested[data-hint-rank]::after {
  content: attr(data-hint-rank);
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 3;
  min-width: 1rem;
  padding: 0 3px;
  border-radius: 999px;
  background: #0c4a6e;
  color: #f0f9ff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.chess_board_square_suggested_from[data-hint-rank]::after {
  content: attr(data-hint-rank);
  position: absolute;
  top: 2px;
  left: 3px;
  right: auto;
  z-index: 3;
  min-width: 1rem;
  padding: 0 3px;
  border-radius: 999px;
  background: #92400e;
  color: #fffbeb;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
@media (min-width: 700px) and (max-width: 1099px) {
  .chess_board_wrapper {
    --board-size: min(100%, 48vw, 520px);
  }
}
@media (min-width: 1100px) {
  .chess_board_wrapper {
    --board-size: min(100cqw, 100cqh, 100%);
    max-height: 100%;
  }
}
.chess_board_wrapper[data-game-type="xianqi"] {
  --xq-line: #2b1a0e;
  --xq-pad: 7%;
  --xq-border: 2px;
}
.chess_board_wrapper[data-game-type="xianqi"] .chess_board.xianqi_board {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 8 / 9;
  display: block;
  margin: 0 auto;
  border: var(--xq-border) solid var(--xq-line);
  background-color: #efd8a0;
  overflow: visible;
  padding: var(--xq-pad);
  box-sizing: border-box;
}
.chess_board_wrapper[data-game-type="xianqi"] .board_files {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  justify-self: center;
  width: var(--xq-board-w, 100%);
  padding-left: var(--xq-label-pad-x, calc(var(--xq-border) + var(--xq-pad)));
  padding-right: var(--xq-label-pad-x, calc(var(--xq-border) + var(--xq-pad)));
  grid-template-columns: unset;
}
.chess_board_wrapper[data-game-type="xianqi"] .board_ranks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  align-self: center;
  width: 100%;
  height: var(--xq-board-h, 100%);
  padding-top: var(--xq-label-pad-y, calc(var(--xq-border) + var(--xq-pad)));
  padding-bottom: var(--xq-label-pad-y, calc(var(--xq-border) + var(--xq-pad)));
  grid-template-rows: unset;
}
.chess_board_wrapper[data-game-type="xianqi"] .board_files .board_label, .chess_board_wrapper[data-game-type="xianqi"] .board_ranks .board_label {
  flex: 0 0 auto;
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_field {
  position: relative;
  width: 100%;
  height: 100%;
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_artwork {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_h_line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
  background: var(--xq-line);
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_v_line {
  position: absolute;
  width: 2px;
  margin-left: -1px;
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_v_outer {
  top: 0;
  bottom: 0;
  background: var(--xq-line);
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_v_inner {
  top: 0;
  bottom: 0;
  background: transparent;
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_v_inner::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  top: 0;
  height: calc(100% * 4 / 9);
  background: var(--xq-line);
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_v_inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  top: calc(100% * 5 / 9);
  height: calc(100% * 4 / 9);
  background: var(--xq-line);
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_palace {
  position: absolute;
  width: calc(100% * 2 / 8);
  height: calc(100% * 2 / 9);
  pointer-events: none;
  background: linear-gradient( to top left, transparent calc(50% - 1px), var(--xq-line) calc(50% - 1px), var(--xq-line) calc(50% + 1px), transparent calc(50% + 1px) ), linear-gradient( to top right, transparent calc(50% - 1px), var(--xq-line) calc(50% - 1px), var(--xq-line) calc(50% + 1px), transparent calc(50% + 1px) );
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_palace_top {
  left: calc(100% * 3 / 8);
  top: 0;
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_palace_bottom {
  left: calc(100% * 3 / 8);
  top: calc(100% * 7 / 9);
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_points {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_points .chess_board_square {
  position: absolute;
  width: calc(100% / 8);
  height: calc(100% / 9);
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  aspect-ratio: unset;
  overflow: visible;
}
.chess_board_wrapper[data-game-type="xianqi"] .xianqi_points .chess_board_square_light, .chess_board_wrapper[data-game-type="xianqi"] .xianqi_points .chess_board_square_dark {
  background: transparent;
}
.chess_board_wrapper[data-game-type="xianqi"] .piece_img {
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.chess_board_wrapper[data-game-type="xianqi"] .piece_img_selected {
  filter: drop-shadow(0 0 0 #001018) drop-shadow(0 0 3px #c02828) drop-shadow(0 0 8px #c02828);
  transform: translate(-50%, -50%) scale(1.12);
}
.chess_board_wrapper[data-game-type="xianqi"] .chess_board_square_suggested {
  box-shadow: inset 0 0 0 3px #1d4ed8;
  background: rgba(29, 78, 216, 0.22);
}
.chess_board_wrapper[data-game-type="xianqi"] .chess_board_square_suggested_from {
  box-shadow: inset 0 0 0 3px #b45309;
  background: rgba(180, 83, 9, 0.28);
}
.chess_board_wrapper[data-game-type="xianqi"] .chess_board_square_suggested[data-hint-rank]::after {
  top: 8%;
  right: 8%;
  background: #1e3a8a;
  color: #eff6ff;
  font-size: 0.65rem;
}
.chess_board_wrapper[data-game-type="xianqi"] .chess_board_square_suggested_from[data-hint-rank]::after {
  top: 8%;
  left: 8%;
  right: auto;
  background: #9a3412;
  color: #fff7ed;
  font-size: 0.65rem;
}
.chess_board_wrapper[data-game-type="shogi"] .chess_board {
  --shogi-line: #3d2a1a;
  --shogi-wood: #e0c9a0;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--shogi-line);
  background: var(--shogi-wood);
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
}
.chess_board_wrapper[data-game-type="shogi"] .chess_board_square {
  border: 1px solid var(--shogi-line);
  background-color: var(--shogi-wood);
}
.chess_board_wrapper[data-game-type="shogi"] .chess_board_square_light, .chess_board_wrapper[data-game-type="shogi"] .chess_board_square_dark {
  background-color: var(--shogi-wood);
}
.chess_board_wrapper[data-game-type="shogi"] .piece_img {
  top: 6%;
  left: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.chess_board_wrapper[data-game-type="shogi"] .piece_img_selected {
  filter: drop-shadow(0 0 0 #1a0a00) drop-shadow(0 0 3px #b45309) drop-shadow(0 0 8px #b45309);
  transform: scale(1.1);
}
.chess_board_wrapper[data-game-type="shogi"] .piece_img[data-color="black"] {
  transform: rotate(180deg);
}
.chess_board_wrapper[data-game-type="shogi"] .piece_img_selected[data-color="black"] {
  transform: rotate(180deg) scale(1.1);
}
.chess_board_wrapper[data-game-type="shogi"] .chess_board_square_suggested {
  box-shadow: inset 0 0 0 3px #1d4ed8;
  background: rgba(29, 78, 216, 0.22);
}
.chess_board_wrapper[data-game-type="shogi"] .chess_board_square_suggested_from {
  box-shadow: inset 0 0 0 3px #b45309;
  background: rgba(180, 83, 9, 0.28);
}
.chess_board_wrapper[data-game-type="shogi"] .chess_board_square_suggested[data-hint-rank]::after {
  background: #1e3a8a;
  color: #eff6ff;
}
.chess_board_wrapper[data-game-type="shogi"] .chess_board_square_suggested_from[data-hint-rank]::after {
  background: #9a3412;
  color: #fff7ed;
}
.chess_board_wrapper[data-game-type="shogi"] .chess_board_square_suggested_drop {
  outline: 3px dashed #1d4ed8;
  outline-offset: -3px;
}
.shogi_hand_piece_hint {
  outline: 3px solid #b45309;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fffbeb;
  position: relative;
}
.shogi_hand_piece_hint[data-hint-rank]::before {
  content: attr(data-hint-rank);
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 3;
  min-width: 1rem;
  padding: 0 3px;
  border-radius: 999px;
  background: #b45309;
  color: #fffbeb;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
}
.game_info_capture_value.shogi_hand {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-height: 2rem;
}
.shogi_hand_piece {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid #3d2a1a;
  border-radius: 4px;
  background: #e0c9a0;
  cursor: pointer;
}
span.shogi_hand_piece {
  cursor: default;
}
.shogi_hand_piece:disabled {
  opacity: 0.45;
  cursor: default;
}
.shogi_hand_piece_selected {
  outline: 2px solid #b45309;
  outline-offset: 1px;
}
.shogi_hand_piece img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  pointer-events: none;
}
.shogi_hand_piece img[data-color="black"] {
  transform: rotate(180deg);
}
.shogi_hand_count {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 0.95rem;
  padding: 0 3px;
  border-radius: 999px;
  background: #1a0a00;
  color: #f5e6c8;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.game_panel_right_top, .game_panel_right_bottom {
  flex: 1 1 auto;
}
.game_panel_right_bottom {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.game_info_table {
  border: 1px solid #2d2d2d;
  border-radius: 0;
  background: #0f0f0f;
  overflow: hidden;
}
.game_info_winprob_wrapper {
  padding: 10px 10px 8px;
  border-bottom: 1px solid #252525;
  background: #121212;
}
.game_info_winprob_track {
  width: 100%;
  height: 30px;
  display: flex;
  overflow: visible;
  border: 1px solid #343434;
  background: #0b0b0b;
}
.game_info_winprob_segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 0;
  transition: width 180ms ease;
  position: relative;
  overflow: visible;
}
.game_info_winprob_segment_white {
  background: #d8d8d8;
  color: #101010;
  justify-content: flex-start;
  padding-left: 10px;
}
.game_info_winprob_segment_black {
  background: #1f1f1f;
  color: #f5f5f5;
  justify-content: flex-end;
  padding-right: 10px;
}
.game_info_winprob_label {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.game_info_winprob_segment_tiny {
  z-index: 2;
}
.game_info_winprob_label_outside_white, .game_info_winprob_label_outside_black {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.game_info_winprob_label_outside_white {
  left: calc(100% + 6px);
}
.game_info_winprob_label_outside_black {
  right: calc(100% + 6px);
}
.game_info_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #252525;
}
.game_info_row:last-child {
  border-bottom: none;
}
.game_info_header {
  background: #1b1b1b;
  font-weight: 700;
}
.game_info_cell {
  padding: 8px 10px;
  font-size: 0.92rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.game_info_side {
  text-align: center;
}
.game_info_item_value {
  display: block;
  line-height: 1.4;
}
.game_info_capture_value {
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.game_info_col_active {
  background: #4a2f12;
  color: #ffd3a1;
  font-weight: 700;
}
.game_info_col_in_check {
  background: #4a1f1f;
  color: #ffb3b3;
  font-weight: 700;
}
.game_info_notes_box {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 10px 12px;
  flex: 1 1 auto;
  min-height: 180px;
  resize: none;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}
.game_info_notes_box[readonly] {
  opacity: 0.8;
  cursor: not-allowed;
}
.game_panel_right_bottom label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.game_info_result_win {
  color: #95f2a4;
  font-weight: 800;
}
.game_info_result_loss {
  color: #ff9f9f;
  font-weight: 800;
}
.game_info_result_draw {
  color: #cfd3ff;
  font-weight: 800;
}
.play_chrome {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.command_row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}
@media (max-width: 699px) {
  .command_row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .command_row input {
    flex: 1 1 100%;
    max-width: none;
  }
  .command_row button {
    flex: 1 1 auto;
  }
  .review_moves_row, .review_playback_row {
    width: 100%;
  }
  .review_playback_row button {
    flex: 1 1 0;
  }
  #review_moves_input {
    min-height: 2.8em;
  }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .command_row {
    flex-wrap: wrap;
  }
  .command_row input {
    flex: 1 1 140px;
    max-width: none;
  }
}
.command_row input {
  flex: 0 1 45%;
  max-width: 240px;
  min-width: 100px;
  padding: 2px 8px;
  height: 26px;
  border-radius: 0;
  border: 1px solid #3a3a3a;
  background: #0f0f0f;
  color: #f5f5f5;
}
.command_row button {
  flex: 0 0 auto;
  padding: 5px 14px;
  height: 36px;
  border-radius: 0;
  border: 1px solid #4a4a4a;
  background: #262626;
  color: #f5f5f5;
  cursor: pointer;
  white-space: nowrap;
}
.review_moves_block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 10px;
}
.review_moves_block label {
  font-size: 0.9rem;
}
#review_moves_input {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 4.5em;
  padding: 6px 8px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #0f0f0f;
  color: #f5f5f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}
.review_moves_row input[type="file"] {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  height: auto;
  padding: 4px 0;
  border: none;
  background: transparent;
  color: #d0d0d0;
}
.game_panel_config .review_moves_row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.game_panel_config .review_moves_row input[type="file"] {
  width: 100%;
  text-align: center;
}
.game_panel_config #review_moves_load {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.game_panel_config .review_playback_row {
  width: 100%;
  justify-content: center;
}
.game_panel_config .review_playback_row button {
  flex: 1 1 0;
  justify-content: center;
}
.review_playback_row {
  margin-top: 2px;
}
.review_moves_ply {
  font-size: 0.85rem;
  color: #c8c8c8;
  white-space: nowrap;
}
#review_moves_prev:disabled, #review_moves_next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.diagram_import_block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 10px;
}
.diagram_import_block label {
  font-size: 0.9rem;
}
.diagram_import_hint, .diagram_import_note {
  margin: 0;
  font-size: 0.8rem;
  color: #b8b8b8;
  line-height: 1.35;
}
.game_panel_config .diagram_import_row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.game_panel_config .diagram_import_row input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #0f0f0f;
  color: #f5f5f5;
  text-align: center;
}
.game_panel_config #diagram_import_recognize, .game_panel_config #diagram_import_confirm_btn, .game_panel_config #diagram_import_cancel_btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.diagram_import_confirm {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.diagram_import_confirm[hidden] {
  display: none !important;
}
#diagram_import_fen {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 3.5em;
  padding: 6px 8px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #0f0f0f;
  color: #f5f5f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}
.diagram_preview_board {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 220px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
}
.diagram_preview_board[data-files="9"] {
  max-width: 260px;
}
.diagram_preview_rank {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.diagram_preview_board[data-files="9"] .diagram_preview_rank {
  grid-template-columns: repeat(9, 1fr);
}
.diagram_preview_sq {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c9b896;
}
.diagram_preview_rank:nth-child(even) .diagram_preview_sq:nth-child(odd), .diagram_preview_rank:nth-child(odd) .diagram_preview_sq:nth-child(even) {
  background: #6b5238;
}
.diagram_preview_board[data-game="shogi"] {
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border: 3px solid #3d2a1a;
  background: #e0c9a0;
}
.diagram_preview_board[data-game="shogi"] .diagram_preview_rank {
  flex: 1 1 0;
  min-height: 0;
}
.diagram_preview_board[data-game="shogi"] .diagram_preview_sq {
  aspect-ratio: unset;
  height: 100%;
  border: 1px solid #3d2a1a;
  background: #e0c9a0;
}
.diagram_preview_board[data-game="shogi"] .diagram_preview_rank:nth-child(even) .diagram_preview_sq:nth-child(odd), .diagram_preview_board[data-game="shogi"] .diagram_preview_rank:nth-child(odd) .diagram_preview_sq:nth-child(even) {
  background: #e0c9a0;
}
.diagram_preview_board[data-game="shogi"] .diagram_preview_piece {
  width: 88%;
  height: 88%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.diagram_preview_xq {
  width: 100%;
  max-width: 260px;
}
.diagram_preview_xq_field {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 9;
  box-sizing: border-box;
  border: 2px solid #2b1a0e;
  background: #efd8a0;
}
.diagram_preview_xq_art {
  position: absolute;
  inset: 7%;
  pointer-events: none;
}
.diagram_preview_xq_h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  margin-top: -0.5px;
  background: #2b1a0e;
}
.diagram_preview_xq_v {
  position: absolute;
  width: 1px;
  margin-left: -0.5px;
}
.diagram_preview_xq_v_outer {
  top: 0;
  bottom: 0;
  background: #2b1a0e;
}
.diagram_preview_xq_v_inner {
  top: 0;
  bottom: 0;
  background: transparent;
}
.diagram_preview_xq_v_inner::before, .diagram_preview_xq_v_inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  background: #2b1a0e;
}
.diagram_preview_xq_v_inner::before {
  top: 0;
  height: calc(100% * 4 / 9);
}
.diagram_preview_xq_v_inner::after {
  top: calc(100% * 5 / 9);
  height: calc(100% * 4 / 9);
}
.diagram_preview_xq_palace {
  position: absolute;
  width: calc(100% * 2 / 8);
  height: calc(100% * 2 / 9);
  pointer-events: none;
  background: linear-gradient( to top left, transparent calc(50% - 0.5px), #2b1a0e calc(50% - 0.5px), #2b1a0e calc(50% + 0.5px), transparent calc(50% + 0.5px) ), linear-gradient( to top right, transparent calc(50% - 0.5px), #2b1a0e calc(50% - 0.5px), #2b1a0e calc(50% + 0.5px), transparent calc(50% + 0.5px) );
}
.diagram_preview_xq_palace_top {
  left: calc(100% * 3 / 8);
  top: 0;
}
.diagram_preview_xq_palace_bottom {
  left: calc(100% * 3 / 8);
  top: calc(100% * 7 / 9);
}
.diagram_preview_xq_points {
  position: absolute;
  inset: 7%;
}
.diagram_preview_xq_point {
  position: absolute;
  width: calc(100% / 8);
  height: calc(100% / 9);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram_preview_xq_piece {
  width: 95%;
  height: 95%;
  object-fit: contain;
  pointer-events: none;
}
.diagram_preview_piece {
  width: 85%;
  height: 85%;
  object-fit: contain;
  pointer-events: none;
}
.diagram_preview_board[data-game="shogi"] .diagram_preview_piece[data-color="black"] {
  transform: rotate(180deg);
}
.diagram_preview_hands {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-width: 260px;
}
.diagram_preview_hand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.diagram_preview_hand_label {
  min-width: 3.2em;
  font-size: 0.75rem;
  color: #cfcfcf;
}
.diagram_preview_hand_empty {
  font-size: 0.75rem;
  color: #888;
}
.diagram_preview_hand_piece {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}
.diagram_preview_hand_piece[data-color="black"] {
  transform: rotate(180deg);
}
.diagram_import_fen_fallback {
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #3a3a3a;
  background: #0f0f0f;
  color: #f5f5f5;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.game_panel_config .diagram_import_actions {
  flex-direction: column;
  gap: 8px;
}
.promotion_picker_hidden {
  display: none;
}
.promotion_picker_visible {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
}
.promotion_picker_panel {
  width: min(420px, 92vw);
  border: 1px solid #4a4a4a;
  background: #111111;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}
.promotion_picker_panel h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}
.promotion_picker_choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.promotion_choice_btn {
  border: 1px solid #5a5a5a;
  background: #1d1d1d;
  color: #f5f5f5;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}
.promotion_choice_btn:hover, .promotion_choice_btn:focus-visible {
  border-color: #39ff14;
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.35);
}
#game_config_apply, #run_simulation_btn, #sim_next_move_btn, #sim_next_game_btn, #simulation_download_json_btn, #simulation_download_csv_btn, .run-simulation-btn {
  padding: 8px 16px;
  margin-left: 0px;
  border-radius: 6px;
  background-color: #334155;
  color: #fff;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  vertical-align: middle;
}
#game_config_apply:hover, #run_simulation_btn:hover, #sim_next_move_btn:hover, #sim_next_game_btn:hover, #simulation_download_json_btn:hover, #simulation_download_csv_btn:hover, .run-simulation-btn:hover {
  background-color: #475569;
}
#run_simulation_btn, #sim_next_move_btn, #sim_next_game_btn {
  margin-top: 2px;
}
#run_simulation_btn[disabled], #sim_next_move_btn[disabled], #sim_next_game_btn[disabled], .run-simulation-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
#chess_flag, #chess_new_game {
  background-color: #334155;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#chess_flag:hover, #chess_new_game:hover {
  background-color: #475569;
}
#chess_command_submit {
  background-color: #334155;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#chess_command_submit:hover {
  background-color: #475569;
}
.chess_move_history_section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.chess_move_history_title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.chess_move_history_panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 0;
  flex: 1;
}
.chess_move_history_panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chess_move_history_side_title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.chess_move_history_list {
  list-style: decimal;
  list-style-position: inside;
  margin: 0;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  line-height: 1.6;
  border: 1px solid #2d2d2d;
  border-radius: 0;
  background: #0f0f0f;
  padding: 10px 12px;
}
.chess_move_history_list li {
  padding: 2px 0 2px 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
}
.chess_move_history_piece_icon {
  font-size: 2rem;
  line-height: 1;
  vertical-align: -0.08em;
}
.chess_move_history_piece_icon img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.chess_move_history_piece_icon img[data-color="black"] {
  transform: rotate(180deg);
}
.chess_move_history_placeholder {
  list-style: none;
  margin-left: 0;
  color: #888;
  font-family: inherit;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .chess_move_history_panels {
    grid-template-columns: 1fr;
  }
  .simulation_summary_table th, .simulation_summary_table td {
    font-size: 0.72rem;
    padding: 2px 3px;
  }
}
.simulation_summary_panel {
  margin: 6px 0 8px;
  border: 1px solid #2d2d2d;
  background: #0f0f0f;
  padding: 6px 8px;
}
.simulation_summary_hidden {
  display: none;
}
.simulation_summary_table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.simulation_summary_table th, .simulation_summary_table td {
  border: 1px solid #2d2d2d;
  padding: 3px 4px;
  text-align: center;
  font-size: 0.78rem;
}
.simulation_summary_table th {
  color: #b6c2d0;
  font-weight: 600;
}
.simulation_summary_table td {
  color: #f5f5f5;
  font-weight: 700;
}
.simulation_result_details {
  margin-top: 6px;
}
.simulation_result_details > summary {
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.78rem;
  user-select: none;
}
.simulation_result_list {
  margin-top: 4px;
  max-height: 72px;
  overflow-y: auto;
  border-top: 1px solid #2d2d2d;
  padding-top: 4px;
}
.simulation_result_list li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.35;
}
.simulation_download_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.simulation_download_btn {
  margin-left: 0;
  font-size: 0.78rem;
  padding: 6px 12px;
}
#simulation_download_json_btn[disabled], #simulation_download_csv_btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
