/* OTBALL 6.0 — quiet, readable match messages shared by both sports */
#game .game-message {
  z-index: 7;
  top: 20%;
  width: min(430px, calc(100vw - 42px));
  padding: 11px 16px 12px;
  border: 1px solid #8cf2ed70;
  border-radius: 4px;
  background: linear-gradient(90deg, #07182ae9, #132755e9);
  box-shadow: 0 10px 26px #000a;
  opacity: 0;
  text-shadow: none;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .2s ease;
}

#game .game-message.show {
  opacity: 1;
  transform: translate(-50%, 0);
  animation: none;
}

#game .game-message small {
  color: #6cf4e7;
  font: 800 8px/1.2 system-ui, sans-serif;
  letter-spacing: 2px;
}

#game .game-message b {
  margin-top: 4px;
  color: #f5fbff;
  font: 900 clamp(18px, 3vw, 29px)/1 "Arial Black", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: .3px;
}

#game .rule-toast {
  z-index: 9;
  top: calc(78px + var(--safe-top));
  right: calc(14px + var(--safe-right));
  align-items: center;
  width: min(305px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid #ffd66b;
  border-left-width: 4px;
  border-radius: 4px;
  background: #191c2bed;
  box-shadow: 0 10px 25px #000a;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}

#game .rule-toast.show { opacity: 1; transform: translateY(0); }
#game .rule-toast-icon {
  position: relative;
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 2px solid #ffd66b;
  border-radius: 50%;
}

#game .rule-toast-icon::before,
#game .rule-toast-icon::after { content: ''; position: absolute; }
#game .rule-toast-icon::before { left: 6px; top: 12px; width: 12px; border-top: 2px solid #ffd66b; }
#game .rule-toast-icon::after { left: 11px; top: 6px; height: 12px; border-left: 2px solid #ffd66b; }

#game .rule-toast b { color: #ffe5a0; font-size: 9px; letter-spacing: 1.1px; }
#game .rule-toast p { margin-top: 3px; color: #eef2ff; font: 650 10px/1.4 system-ui, sans-serif; }

@media (orientation: landscape) and (max-height: 560px) {
  #game .game-message { top: 18%; padding: 8px 12px; }
  #game .game-message b { font-size: 19px; }
  #game .rule-toast { top: calc(54px + var(--safe-top)); padding: 8px 10px; }
  #game .rule-toast p { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #game .game-message,
  #game .rule-toast { transition: none; }
}
