/* Chesstive v1.52 — Layout Studio v2 export, based on the v1.51 site. */
@import url("layout-v1_51.css?v=1.51");

body {
  display: block !important;
  place-items: initial !important;
  padding: 0 !important;
  overflow-x: hidden;
}

body .app.chesstive-layout {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  min-height: 520px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.app.chesstive-layout .site-brand,
.app.chesstive-layout .board-column,
.app.chesstive-layout .action-column {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
}

.app.chesstive-layout .site-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
}

.app.chesstive-layout .brand-lockup {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: var(--layout-logo-gap);
}

.app.chesstive-layout .brand-mark {
  width: var(--layout-logo-mark);
  height: var(--layout-logo-mark-height);
  flex: 0 0 var(--layout-logo-mark);
}

.app.chesstive-layout .brand-copy h1 {
  font-size: var(--layout-logo-title);
  line-height: .88;
}

.app.chesstive-layout .brand-copy .tagline {
  margin-top: var(--layout-logo-caption-gap);
  font-size: var(--layout-logo-caption);
  line-height: 1;
}

.app.chesstive-layout #connection-status {
  margin-top: var(--layout-logo-caption-gap);
  font-size: var(--layout-online-font);
  line-height: 1;
}

.app.chesstive-layout .board-column {
  display: block;
  min-width: 0;
  min-height: 0;
  z-index: auto;
}

.app.chesstive-layout .board-game-layout,
.app.chesstive-layout .board-game-layout.has-powerups {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-columns: none;
  grid-template-rows: none;
  gap: 0;
}

.app.chesstive-layout .board-stage,
.app.chesstive-layout .board-game-layout.has-powerups .board-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
}

.app.chesstive-layout .board-topline {
  position: absolute;
  left: var(--layout-overlay-x);
  top: var(--layout-overlay-y);
  display: block;
  width: var(--layout-canvas-width);
  height: var(--layout-canvas-height);
  min-height: 0;
  margin: 0;
  padding: 0;
  z-index: auto;
}

.app.chesstive-layout .player-summary {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  color: #f4f0df;
}

.app.chesstive-layout .player-summary .summary-box {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: var(--layout-summary-font);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.app.chesstive-layout .player-summary .username-box {
  color: #f4f0df;
  font-weight: 900;
  text-overflow: ellipsis;
}

.app.chesstive-layout .player-summary .score-box {
  color: #f4f0df;
  font-size: var(--layout-score-font);
  font-weight: 950;
}

.app.chesstive-layout .player-summary .score-box.score-counting { color: #e7b84f; }

.app.chesstive-layout .player-summary .aura-box {
  gap: .18em;
  color: #e7b84f;
  font-size: var(--layout-aura-font);
  font-weight: 900;
}

.app.chesstive-layout .player-summary .aura-label { color: #e7b84f; }

.app.chesstive-layout #sound-toggle {
  position: absolute;
  right: auto;
  margin: 0;
  padding: 0;
  flex: none;
  transform: none;
}

.app.chesstive-layout #sound-toggle svg {
  width: var(--layout-sound-icon);
  height: var(--layout-sound-icon);
}

.app.chesstive-layout .board-wrap {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 1 / 1;
  flex: none;
  align-self: auto;
  margin: 0;
}

.app.chesstive-layout .board {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.app.chesstive-layout .powerup-card-rail {
  position: absolute;
  left: var(--layout-overlay-x);
  top: var(--layout-overlay-y);
  z-index: auto;
  display: block;
  box-sizing: border-box;
  width: var(--layout-canvas-width);
  height: var(--layout-canvas-height);
  max-height: none;
  overflow: visible;
  padding: 0;
  pointer-events: none;
}

.app.chesstive-layout .powerup-card-rail[hidden] { display: none !important; }
.app.chesstive-layout .active-powerup-cards { display: contents; }

.app.chesstive-layout .powerup-card-rail .mystery-box,
.app.chesstive-layout .powerup-card-rail .powerup-card-item {
  position: absolute;
  box-sizing: border-box;
  width: var(--layout-card-width);
  height: var(--layout-card-height);
  min-width: 0;
  max-width: none;
  margin: 0;
  flex: none;
}

.app.chesstive-layout .powerup-card-rail .mystery-box { pointer-events: auto; }
.app.chesstive-layout .powerup-card-rail .powerup-card-item { pointer-events: none; }

.app.chesstive-layout .powerup-card-rail .mystery-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--layout-card-inner-gap);
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: var(--layout-card-padding);
  border-width: var(--layout-card-border);
  border-radius: var(--layout-card-radius);
  font-size: var(--layout-card-font);
  overflow: hidden;
}

.app.chesstive-layout .powerup-card-rail .mystery-label { flex: 0 0 auto; font-size: var(--layout-card-small-font); line-height: 1.1; }
.app.chesstive-layout .powerup-card-rail .mystery-reel { box-sizing: border-box; flex: 0 0 auto; width: var(--layout-card-reel); height: var(--layout-card-reel); border-width: var(--layout-card-border); font-size: var(--layout-card-reel); }
.app.chesstive-layout .powerup-card-rail .mystery-reel-glyph { font-size: .74em; line-height: 1; }
.app.chesstive-layout .powerup-card-rail .mystery-card strong { flex: 0 0 auto; font-size: var(--layout-card-font); line-height: 1.12; }
.app.chesstive-layout .powerup-card-rail .mystery-card p { margin: 0; font-size: var(--layout-card-small-font); line-height: 1.2; }
.app.chesstive-layout .powerup-card-rail .powerup-icon { font-size: var(--layout-card-icon); }
.app.chesstive-layout .powerup-card-rail .powerup-icon svg { width: var(--layout-card-icon); height: var(--layout-card-icon); }
.app.chesstive-layout .powerup-card-rail .powerup-two-x { font-size: var(--layout-card-icon); line-height: 1; }
.app.chesstive-layout .powerup-card-rail .powerup-card .powerup-remaining { font-size: var(--layout-card-small-font); line-height: 1.1; }

.app.chesstive-layout .action-column {
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  z-index: auto;
  pointer-events: none;
}

.app.chesstive-layout .action-column > button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: var(--layout-button-padding-y) var(--layout-button-padding-x);
  gap: var(--layout-button-gap);
  border-radius: var(--layout-button-radius);
  font-size: var(--layout-button-font);
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  pointer-events: auto;
}

.app.chesstive-layout .action-column > button svg {
  width: var(--layout-button-icon);
  height: var(--layout-button-icon);
  flex: 0 0 var(--layout-button-icon);
}

.app.chesstive-layout .side { display: none !important; }

@media (max-width: 760px) {
  body .app.chesstive-layout {
    display: block;
    width: 100vw;
    height: 100dvh;
    min-height: 520px;
    padding: 0;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  .app.chesstive-layout .site-brand,
  .app.chesstive-layout .board-column,
  .app.chesstive-layout .action-column { grid-column: auto; grid-row: auto; }
  .app.chesstive-layout .action-column { grid-template-columns: none; grid-template-rows: none; margin: 0; }
}
