/* Application specific styles (lobby, framework shim helpers) */

html {
  background-color: #102f50;
  min-height: 100%;
}

#topbar #logoiconimg {
  height: 44px;
  width: auto;
}

#tableinfos .table_ref_item:empty {
  display: none;
}

/* logs */
#logs .log {
  position: relative;
}
#logs .log .timestamp {
  position: absolute;
  right: 6px;
  bottom: -2px;
  font-size: 9px;
  color: #999;
  opacity: 0;
  transition: opacity 0.2s;
}
#logs .log:hover .timestamp {
  opacity: 1;
}
#chatinput {
  padding: 4px 0;
}
#chatinput_field {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13px;
}
.head_errormsg_log {
  color: #c00;
}

/* messages */
#head_infomsg {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.head_infomsg_item {
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  font-size: 15px;
  transition: opacity 0.4s;
  background: #fff;
  color: #000;
}
.head_infomsg_item.head_errormsg {
  background: #c02020;
  color: #fff;
}

/* tooltip */
.kot-tooltip {
  position: absolute;
  z-index: 4000;
  max-width: 420px;
  pointer-events: none;
}
.kot-tooltip .dijitTooltipContainer {
  background: #fff;
  border: 1px solid #b3b3b3;
  border-radius: 4px;
  padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  color: #000;
}
.tooltipaction {
  margin-top: 4px;
  color: #444;
}

/* popin: keep it centered in the viewport */
.standard_popin {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  max-height: 90vh;
  overflow: auto;
  z-index: 2001;
  display: none;
}
.standard_popin_underlay {
  z-index: 2000;
  display: none;
}
.kot-ranking table {
  margin: 10px auto;
  border-collapse: collapse;
  font-size: 18px;
}
.kot-ranking td {
  padding: 6px 14px;
}
.kot-ranking td.rank {
  font-weight: bold;
  font-size: 22px;
}
.kot-ranking td.score {
  text-align: right;
}

/* player panel */
.player-board .player-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-board .player_status.status_offline {
  color: #999;
}
.player-board.eliminated-player {
  opacity: 0.7;
}
#spectatorbox_wrapper .player-board {
  padding: 6px 8px;
  font-size: 13px;
}
#kot-spectator-notice {
  background: #fff;
  border-radius: 8px 0 0 8px;
  padding: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

/* lobby */
#lobby-root {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
  font-family: Roboto, Arial, sans-serif;
  color: #222;
}
#lobby-root .whiteblock {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
#lobby-root h1 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  font-family: 'goodgirl webfont', Roboto, sans-serif;
  font-size: 44px;
  text-align: center;
  margin: 10px 0 20px;
  letter-spacing: 1px;
}
#lobby-root h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
#lobby-root label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
  font-size: 14px;
}
#lobby-root input[type='text'] {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 15px;
}
#lobby-root .lobby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#lobby-root .seat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
#lobby-root .seat-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}
#lobby-root .seat-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  display: inline-block;
}
#lobby-root .seat-host {
  font-size: 12px;
  background: #ffcf13;
  color: #333;
  padding: 1px 6px;
  border-radius: 8px;
}
#lobby-root .seat-offline {
  color: #999;
  font-size: 12px;
}
#lobby-root .share-url {
  font-family: monospace;
  background: #f4f4f4;
  padding: 4px 8px;
  border-radius: 4px;
  user-select: all;
}
#lobby-root .tables-list li {
  padding: 4px 0;
}
#lobby-root .hint {
  font-size: 13px;
  color: #666;
}
#lobby-root .kot-logo {
  display: block;
  margin: 0 auto 6px;
  width: 140px;
}
#lobby-root .monster-strip {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}
#lobby-root .monster-strip .monster-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* in-game: kick offline player */
.kot-kick-button {
  font-size: 11px;
  margin-left: 6px;
}

/* preference menu labels */
#ingame_menu_display_buttons .preference_control_wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
}
#ingame_menu_display_buttons select {
  padding: 4px;
}

#lobby-root .bgabutton {
  display: inline-block;
  width: auto;
}

/* in-game menu: host-only restart entry (font-awesome icon instead of the BGA sprite) */
#ingame_menu_restart .icon64 {
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--game-bga-color-black);
}

/* in-game menu: sound volume slider */
#ingame_menu_display_buttons .kot-volume-wrap input[type='range'] {
  width: 100%;
  margin: 6px 0;
  accent-color: var(--palette-bga-input-blue, #2695db);
}
