/* Small, practical additions to the painted casino lobby. */
.lobby-search { margin-bottom: 14px; }
.lobby-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 5px 32px;
}
.lobby-views, .lobby-extra-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.lobby-toolbar button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 2px solid #bba77880;
  border-radius: 6px 3px 8px 4px;
  background: #202b2df2;
  color: #efdab1;
  font-size: .875rem;
  font-weight: 800;
  box-shadow: 2px 3px #101b2480;
  transition: background .18s, color .18s, border-color .18s;
}
.lobby-toolbar button:hover { background: #374641; border-color: #e6c88b; }
.lobby-views button[aria-pressed="true"] { background: #e8bc70; border-color: #362b27; color: #332b27; }
.lobby-views button > span:last-child, #achievement-count {
  font-size: .8125rem;
  min-width: 23px;
  padding: 1px 5px;
  background: #090f171f;
  border-radius: 3px;
}
#lobby-music svg { flex-shrink: 0; opacity: .55; }
#lobby-music.music-playing svg { opacity: 1; color: #edc880; }
.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #2c2827;
  border-radius: 6px 3px 8px 4px;
  background: #293632ed;
  color: #ffe6b3;
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: 2px 3px #12252a66;
  transition: background .18s, color .18s, transform .18s;
}
.favorite-button:hover { transform: rotate(7deg); background: #466052; }
.favorite-button.is-favorite { color: #413024; background: #f3c66f; }
.lobby-toolbar button:focus-visible, .favorite-button:focus-visible, .achievement-toast button:focus-visible {
  outline: 3px solid #fff2cc;
  outline-offset: 4px;
}
.modal.achievements-modal { max-width: 920px; }
.achievements-modal h2 { padding-right: 18px; }
.achievement-summary { display: grid; gap: 10px; margin: 16px 0 24px; }
.achievement-summary > strong { font-size: 1rem; color: #5c432d; }
.achievement-summary > span { font-size: .875rem; line-height: 1.5; color: #665240; }
.achievement-summary progress { width: 100%; height: 10px; accent-color: #8a5a2f; }
.achievement-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.achievement-card {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  align-items: start;
  gap: 12px;
  padding: 16px 14px;
  border: 2px solid #ac92665e;
  border-radius: 7px 4px 9px 3px;
  background: #f2e1c24d;
}
.achievement-card.is-earned { border-color: #927039; background: #f4d699; box-shadow: 2px 3px #9d794427; }
.achievement-art { display: flex; align-items: center; justify-content: center; height: 76px; }
.achievement-art .paint-sprite { width: min(100%,calc(76px * var(--ratio))); height: auto; max-height: 76px; }
.is-locked .achievement-art { filter: grayscale(.85); opacity: .6; }
.achievement-state { font-size: .75rem; letter-spacing: .06em; font-weight: 900; color: #75634f; }
.is-earned .achievement-state { color: #725018; }
.achievement-card h3 { font-family: 'Kalam',cursive; font-size: 1.125rem; line-height: 1.3; color: #493b2f; margin: 6px 0; overflow-wrap: anywhere; }
.modal .achievement-card p { font-size: .875rem; line-height: 1.5; color: #66513d; margin: 0; }
.achievement-card small { display: block; font-size: .75rem; color: #765c3e; margin-top: 8px; }
.achievement-toast {
  position: fixed;
  top: 94px;
  right: 18px;
  z-index: 35;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 32px;
  align-items: center;
  gap: 10px;
  width: min(390px,calc(100% - 28px));
  padding: 12px 10px;
  border: 3px solid #302b27;
  border-radius: 7px 4px 10px 3px;
  background: #efcf96;
  color: #4c392b;
  box-shadow: 4px 5px #15252b69;
  pointer-events: none;
  animation: achievement-arrival .25s ease-out;
}
.achievement-toast[hidden] { display: none; }
.achievement-toast-art { display: flex; align-items: center; justify-content: center; height: 58px; }
.achievement-toast-art .paint-sprite { width: min(100%,calc(58px * var(--ratio))); max-height: 58px; }
.achievement-toast > div > span { display: block; font-size: .75rem; font-weight: 900; letter-spacing: .035em; margin-bottom: 4px; }
.achievement-toast strong { display: block; font-family: 'Kalam',cursive; font-size: 1rem; line-height: 1.35; }
.achievement-toast button { pointer-events: auto; width: 32px; height: 36px; border: 0; background: transparent; color: #68503b; font-size: 1.5rem; align-self: start; border-radius: 4px; }
.achievement-toast button:hover { background: #76522a1a; }
#achievements-button { font-size: .875rem; }
@keyframes achievement-arrival { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) { .lobby-toolbar { max-width: 850px; margin: 0 auto 30px; } }
@media (max-width: 800px) { .lobby-toolbar { max-width: 650px; } .achievement-list { grid-template-columns: minmax(0,1fr); } .achievement-toast { top: 82px; } }
@media (max-width: 480px) {
  .lobby-toolbar { max-width: 360px; gap: 12px; }
  .lobby-views { width: 100%; }
  .lobby-views button { flex: 1 1 auto; }
  .lobby-extra-tools { width: 100%; justify-content: space-between; }
  .lobby-toolbar button { padding: 8px 10px; }
  .achievement-card { grid-template-columns: 48px minmax(0,1fr); gap: 10px; padding: 13px 10px; }
  .achievement-toast { top: 72px; right: 14px; }
  .site-footer #achievements-button { margin-left: auto; }
  .site-footer #rules-button { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .favorite-button, .lobby-toolbar button { transition: none; }
  .favorite-button:hover { transform: none; }
  .achievement-toast { animation: none; }
}
