/* TOMBÉLA — game and companion presentation.
   Load after the main and companion styles. The extra scope also wins against
   the game's injected stylesheet without changing its canvas or state rules. */

.game-shell .game-page {
  color: #191919;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 1120px;
  padding: 38px 0 48px;
}
.game-shell .game-page .game-eyebrow {
  color: #747474;
  font: 400 10px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.game-shell .game-page .game-title {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(30px, 3.3vw, 44px) !important;
  font-weight: 400 !important;
  letter-spacing: -.045em !important;
  line-height: 1.08;
  margin-bottom: 19px;
  max-width: 660px;
}
.game-shell .game-page .game-intro {
  max-width: 640px;
  font-size: 13px !important;
  line-height: 1.65;
  color: #595959;
  margin: 0 0 12px;
}
.game-shell .game-page .game-reward-rules {
  font-size: 11px;
  line-height: 1.65;
  color: #737373;
  margin: 0 0 26px;
}
.game-shell .game-page .game-frame {
  border-color: #d8d8d4;
  background: #f4f4f2;
  border-radius: 0;
  box-shadow: none;
}
.game-shell .game-page .game-hud {
  background: #fff;
  border-color: #dfdfdc;
}
.game-shell .game-page .game-stat {
  padding: 13px 15px;
  border-color: #e5e5e2;
  min-width: 0;
  gap: 8px;
}
.game-shell .game-page .game-stat-label {
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .04em;
  font-weight: 400;
  color: #757575;
}
.game-shell .game-page .game-stat-value {
  color: #191919;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.025em;
}
.game-shell .game-page .game-lives {
  color: #191919;
  font-size: 16px;
  letter-spacing: 2px;
}
.game-shell .game-page .game-effects {
  background: #f4f4f2;
  border-color: #dfdfdc;
  padding: 8px 13px;
  min-height: 46px;
  gap: 7px;
  color: #555;
  font-size: 11px;
}
.game-shell .game-page .game-effect {
  color: #343434;
  background: #fff;
  border: 1px solid #d4d4cf;
  border-radius: 2px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 400;
  max-width: 100%;
}
.game-shell .game-page .game-effect b { font-weight: 400; }
.game-shell .game-page .game-effect-bad { border-color: #888; border-style: dashed; }
.game-shell .game-page .game-effect-good { background: #ecece8; border-color: #c8c8c2; }
.game-shell .game-page .game-effect-meter { background: #dcdcd7; border-radius: 0; width: 28px; }
.game-shell .game-page .game-effect-meter span { background: #4f4f4d; }
.game-shell .game-page .game-effects-empty { opacity: 1; color: #7b7b76; }
.game-shell .game-page .game-canvas { filter: none; }
.game-shell .game-page .game-legend { background: #e1e1dd; border-color: #dfdfdc; }
.game-shell .game-page .game-legend-item {
  color: #676764;
  background: #fafaf9;
  font-size: 10px;
  line-height: 1.55;
  padding: 12px 14px;
}
.game-shell .game-page .game-legend-item strong { color: #252525; font-size: 11px; font-weight: 400; margin-bottom: 3px; }
.game-shell .game-page .game-overlay { background: rgba(244, 244, 242, .36); }
.game-shell .game-page .game-dialog {
  width: min(100%, 350px);
  padding: 26px;
  border: 1px solid #d8d8d4;
  border-radius: 0;
  background: #fff;
  color: #191919;
  box-shadow: 0 8px 30px #1919190c;
}
.game-shell .game-page .game-dialog-title {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 400;
  margin-bottom: 13px;
}
.game-shell .game-page .game-dialog-text { color: #676767; font-size: 12px; line-height: 1.65; margin-bottom: 20px; }
.game-shell .game-page .game-button {
  min-height: 44px;
  padding: 13px 20px;
  border: 1px solid #191919;
  border-radius: 0;
  background: #191919;
  color: #fff;
  font: 400 11px/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  box-shadow: none;
  transition: background .15s, color .15s;
}
.game-shell .game-page .game-button:hover { background: #363636; color: #fff; }
.game-shell .game-page .game-button-light,
.game-shell .game-page .game-button-orange { background: #fff; border-color: #c9c9c4; color: #191919; }
.game-shell .game-page .game-button-light:hover,
.game-shell .game-page .game-button-orange:hover { background: #ececea; color: #191919; }
.game-shell .game-page .game-button-orange { min-width: 56px; font-size: 16px; }
.game-shell .game-page .game-button:active { transform: none; }
.game-shell .game-page .game-button:disabled { opacity: .38; }
.game-shell .game-page .game-button:focus-visible,
.game-shell .game-page .game-result-close:focus-visible { outline: 2px solid #191919; outline-offset: 3px; }
.game-shell .game-page .game-canvas:focus-visible { outline: 2px solid #191919; outline-offset: -4px; }
.game-shell .game-page .game-footer { background: #fff; border-color: #dfdfdc; padding: 13px 16px; gap: 18px; }
.game-shell .game-page .game-help { color: #70706c; font-size: 11px; line-height: 1.7; }
.game-shell .game-page .game-help kbd { color: #4f4f4d; border-color: #deded9; font-size: 10px; font-weight: 400; background: #fafaf8; }
.game-shell .game-page .game-controls,
.game-shell .game-page .game-table-actions { gap: 8px; }
.game-shell .game-page .game-status { color: #696966; font-size: 11px; line-height: 1.65; margin-top: 14px; }
.game-shell .game-page .game-note { color: #848480; opacity: 1; font-size: 10px; line-height: 1.6; }
.game-shell .game-page .game-note strong { font-weight: 400; color: #5b5b58; }
.game-shell .game-page .game-result-modal {
  width: min(390px, calc(100vw - 32px));
  background: #fff;
  color: #191919;
  border: 1px solid #d8d8d4;
  border-radius: 0;
  padding: 28px;
  box-shadow: 0 12px 48px #19191912;
  font-family: Arial, Helvetica, sans-serif;
}
.game-shell .game-page .game-result-modal::backdrop { background: rgba(25, 25, 25, .48); }
.game-shell .game-page .game-result-heading { font-size: 25px; line-height: 1.15; letter-spacing: -.035em; font-weight: 400; }
.game-shell .game-page .game-result-amount { font-size: 68px; font-weight: 400; letter-spacing: -.055em; margin: 20px 0; }
.game-shell .game-page .game-result-amount.game-no-gain { font-size: 25px; letter-spacing: -.03em; }
.game-shell .game-page .game-result-rank { color: #525252; font-size: 12px; }
.game-shell .game-page .game-result-gift { background: #f4f4f2; color: #393937; border-color: #dfdfda; font-size: 11px; }
.game-shell .game-page .game-result-best { color: #797974; font-size: 11px; line-height: 1.7; }
.game-shell .game-page .game-result-close { color: #191919; font-weight: 400; font-size: 24px; }

/* Leave launcher positioning and visual-viewport variables to companion.js. */
body .tcomp {
  --tcomp-ink: #191919;
  --tcomp-coral: #191919;
  font-family: Arial, Helvetica, sans-serif;
  color: #191919;
  line-height: 1.5;
}
.tcomp .tcomp-launcher {
  background: #f4f4f2;
  border: 1px solid #deded9;
  border-radius: 50%;
  box-shadow: 0 2px 9px #19191908;
}
.tcomp .tcomp-mascot { animation: none; filter: none; }
.tcomp .tcomp-launcher:hover .tcomp-mascot { animation: none; }
.tcomp .tcomp-launcher-label {
  color: #191919;
  background: #fff;
  border-color: #deded9;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 400;
}
.tcomp .tcomp-panel {
  color: #191919;
  background: #fff;
  border: 1px solid #dadad5;
  border-radius: 6px;
  box-shadow: 0 8px 32px #19191914;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
}
.tcomp .tcomp-header { background: #f4f4f2; border-color: #e2e2dd; padding: 13px 12px; gap: 9px; }
.tcomp .tcomp-avatar { filter: none; }
.tcomp .tcomp-title { font: 400 15px/1.25 Arial, Helvetica, sans-serif; letter-spacing: -.02em; margin-bottom: 3px; }
.tcomp .tcomp-subtitle { color: #7a7a75; font-size: 10px; line-height: 1.45; }
.tcomp .tcomp-header-actions { gap: 2px; }
.tcomp .tcomp-icon-button { color: #555550; border-radius: 2px; width: 34px; height: 36px; min-width: 34px; font-weight: 400; }
.tcomp .tcomp-icon-button:hover { background: #e9e9e5; color: #191919; }
.tcomp .tcomp-context { color: #81817b; border-color: #ecece7; font-size: 10px; padding: 8px 14px; }
.tcomp .tcomp-log { padding: 15px 13px; gap: 14px; scrollbar-color: #bcbcb5 transparent; }
.tcomp .tcomp-message { border-radius: 3px; padding: 10px 12px; max-width: 96%; color: #343432; }
.tcomp .tcomp-message-bot { background: #f4f4f2; border: 1px solid #edede9; }
.tcomp .tcomp-message-user { background: #e9e9e5; border: 1px solid #e3e3de; }
.tcomp .tcomp-speaker { color: #85857f; font-size: 9px; letter-spacing: 0; font-weight: 400; margin-bottom: 4px; }
.tcomp .tcomp-message-text { font-size: 12px; line-height: 1.65; }
.tcomp .tcomp-link { color: #191919; border-color: #a7a7a0; font-size: 11px; text-underline-offset: 3px; }
.tcomp .tcomp-link:hover { border-color: #191919; }
.tcomp .tcomp-quick { border-color: #e9e9e4; padding: 10px 12px 5px; gap: 6px; }
.tcomp .tcomp-quick-button {
  background: #fff;
  color: #5b5b55;
  border-color: #dcdcd6;
  border-radius: 2px;
  font-size: 10px !important;
  font-weight: 400;
  min-height: 32px;
  padding: 7px 10px;
}
.tcomp .tcomp-quick-button:hover { background: #f4f4f2; color: #191919; }
.tcomp .tcomp-form { padding: 8px 12px 5px; gap: 7px; }
.tcomp .tcomp-input {
  color: #191919;
  background: #fff;
  border-color: #d0d0ca;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px !important;
  height: 44px;
  padding: 11px;
}
.tcomp .tcomp-input::placeholder { color: #8a8a84; font-size: 12px; }
.tcomp .tcomp-send { color: #fff; background: #191919; border-radius: 2px; width: 44px; height: 44px; font-size: 21px !important; }
.tcomp .tcomp-send:hover { background: #363636; }
.tcomp .tcomp-note { color: #898982; padding: 5px 14px 11px; font-size: 9px; line-height: 1.45; }
.tcomp button:focus-visible,
.tcomp a:focus-visible,
.tcomp input:focus-visible { outline: 2px solid #191919; outline-offset: 3px; }

@media (max-width: 700px) {
  .game-shell .game-page { padding: 27px 0 36px; }
  .game-shell .game-page .game-title { font-size: 32px !important; letter-spacing: -.045em !important; margin-bottom: 17px; }
  .game-shell .game-page .game-intro { font-size: 12px !important; }
  .game-shell .game-page .game-reward-rules { font-size: 10px; margin-bottom: 22px; }
  .game-shell .game-page .game-stat { padding: 11px 6px; }
  .game-shell .game-page .game-stat-label { font-size: 8px; letter-spacing: 0; margin-bottom: 5px; }
  .game-shell .game-page .game-stat-value { font-size: 17px; }
  .game-shell .game-page .game-lives { font-size: 14px; letter-spacing: 1px; }
  .game-shell .game-page .game-effects { padding: 7px 8px; min-height: 43px; }
  .game-shell .game-page .game-effect { font-size: 9px; padding: 6px; gap: 6px; }
  .game-shell .game-page .game-legend-item { padding: 10px; }
  .game-shell .game-page .game-footer { gap: 11px; padding: 12px; }
  .game-shell .game-page .game-help { font-size: 10px; line-height: 1.65; }
  .game-shell .game-page .game-button { padding: 12px 14px; }
  .game-shell .game-page .game-table-actions { flex-wrap: wrap; }
  .game-shell .game-page .game-table-actions .game-button { flex: 1; }
  .game-shell .game-page .game-dialog { padding: 22px; }
  .game-shell .game-page .game-dialog-title { font-size: 22px; }
  .game-shell .game-page .game-result-modal { padding: 25px 22px; }
  .game-shell .game-page .game-result-heading { font-size: 24px; }
  .game-shell .game-page .game-result-amount { font-size: 62px; }
}
@media (max-width: 600px) {
  .tcomp .tcomp-panel { border-radius: 5px; }
  .tcomp .tcomp-header { padding: 10px; gap: 7px; }
  .tcomp .tcomp-subtitle { font-size: 9px; }
  .tcomp .tcomp-quick { padding: 8px 10px 4px; gap: 5px; }
  .tcomp .tcomp-quick-button { padding: 7px 8px; }
  .tcomp .tcomp-form { padding: 6px 10px 5px; }
  .tcomp .tcomp-note { padding: 4px 12px 9px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-shell .game-page .game-button { transition: none; }
  .tcomp .tcomp-launcher-label { transition: none; }
}
