/* Pet Games shared UI: mode cards, level pickers, cups, the table, the podium
   and the online lobby. Both events link this after their own style.css and
   inherit its in-world panel language (dark glass, gold #ffc34d accent). */

.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 10px; }
.mode-card, .cup-card, .segmented__option {
  display: grid; align-content: start; gap: 4px; min-height: 74px; padding: 12px 13px;
  border: 1px solid #ffffff26; border-radius: 5px; background: #ffffff0c; color: #f8f3df;
  text-align: left; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.mode-card b, .cup-card b, .segmented__option b { font-size: .95rem; letter-spacing: .01em; }
.mode-card small, .cup-card small, .segmented__option small { color: #a9bdae; font-size: .68rem; line-height: 1.35; }
.mode-card:not(:disabled):hover, .cup-card:hover, .segmented__option:hover { border-color: #ffc34d99; background: #ffc34d14; transform: translateY(-1px); }
.mode-card:disabled { opacity: .45; cursor: wait; }
.mode-card { border-top: 3px solid #61d17d; }
.mode-card--cup { border-top-color: #ffc34d; }
.mode-card--online { border-top-color: #6ec8ff; }
.career-line { min-height: 1.1em; margin: 4px 0 0; color: #ffd98a; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }

.option-note { margin: 2px 0 8px; color: #a9bdae; font-size: .72rem; line-height: 1.4; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.panel-actions .secondary { margin-left: 0; }
.setup-panel .secondary { border: 1px solid #ffffff2c; border-radius: 4px; background: #ffffff0b; color: #f8f3df; }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.segmented__option { min-height: 58px; padding: 9px 11px; }
.segmented__option[aria-checked="true"], .cup-card[aria-checked="true"] { border-color: #ffc34d; background: #ffc34d1f; box-shadow: inset 4px 0 #ffc34d; }

.cup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0 4px; }
.cup-card { min-height: 112px; }
.cup-card__shelf { display: flex; gap: 5px; margin-top: 5px; }
.trophy-pip { display: grid; place-items: center; min-width: 30px; height: 24px; padding: 0 5px; border: 1px solid #ffffff2a; border-radius: 3px; color: #a9bdae; font-size: .64rem; font-weight: 800; }
.trophy-pip--bronze { border-color: #b8753a88; }
.trophy-pip--silver { border-color: #c9ced688; }
.trophy-pip--gold { border-color: #e8b93a88; }
.trophy-pip.is-won { color: #15271f; font-size: .8rem; }
.trophy-pip--bronze.is-won { background: #b8753a; }
.trophy-pip--silver.is-won { background: #c9ced6; }
.trophy-pip--gold.is-won { background: #e8b93a; }

.standings { display: grid; gap: 3px; max-height: 290px; margin: 12px 0 6px; padding: 0; overflow: auto; list-style: none; }
.standings li { display: grid; grid-template-columns: 26px 14px 1fr auto 44px; align-items: center; gap: 8px; padding: 4px 9px; border-radius: 3px; background: #ffffff08; font-size: .85rem; }
.standings li.is-player { background: #ffc34d24; box-shadow: inset 3px 0 #ffc34d; font-weight: 800; }
.standings__place { color: #ffc34d; font-weight: 900; text-align: center; }
.standings__gain { color: #61d17d; font-size: .72rem; font-weight: 800; }
.standings__points { text-align: right; font-size: 1rem; }
.standings .pet-dot { margin: 0; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 16px 0 10px; }
.podium__step { display: grid; justify-items: center; gap: 3px; text-align: center; }
.podium__step b { font-size: .88rem; }
.podium__step small { color: #a9bdae; font-size: .7rem; }
.podium__block { display: grid; place-items: center; width: 100%; margin-top: 6px; border-radius: 4px 4px 0 0; background: linear-gradient(#ffffff22, #ffffff0a); color: #fff; font: 900 1.2rem Georgia, serif; }
.podium__step--1 .podium__block { height: 92px; background: linear-gradient(#e8b93a, #9b7314); color: #2a1d05; }
.podium__step--2 .podium__block { height: 66px; background: linear-gradient(#d7dbe1, #8a9098); color: #1f252c; }
.podium__step--3 .podium__block { height: 48px; background: linear-gradient(#c98a4f, #7c4b22); color: #2a1406; }
.podium__step.is-player b { color: #ffc34d; }
.prize-line { min-height: 1.2em; margin: 8px 0 0; color: #ffd98a; font-size: .82rem; font-weight: 800; line-height: 1.4; }

/* The online lobby. */
.online-panel h2 em { color: #6ec8ff; }
.online-record { margin: 0 0 8px; color: #ffd98a; font-size: .74rem; font-weight: 800; }
.online-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.online-modes .mode-card { border-top-color: #6ec8ff; }
.online-join { display: flex; gap: 8px; margin: 8px 0; }
.online-join__code { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #ffffff38; border-radius: 4px; background: #071b14; color: #f8f3df; font: 900 1rem/1 ui-monospace, monospace; letter-spacing: .25em; text-transform: uppercase; }
.online-join .secondary { margin: 0; }
.online-note { margin: 10px 0; color: #c7d6cc; font-size: .8rem; }
.online-note--pulse { animation: pet-games-pulse 1.4s ease-in-out infinite; }
.online-error { min-height: 1em; margin: 6px 0 0; color: #ff9d8a; font-size: .74rem; font-weight: 700; }
.online-back { margin-top: 8px; }
.room-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0; }
.room-head .kicker { margin: 0; }
.room-code { color: #6ec8ff; font: 900 1.8rem/1 ui-monospace, monospace; letter-spacing: .18em; }
.room-meta { color: #a9bdae; font-size: .72rem; }
.room-roster { display: grid; gap: 4px; max-height: 190px; margin: 6px 0 8px; padding: 0; overflow: auto; list-style: none; }
.room-roster li { display: grid; grid-template-columns: 14px auto 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 3px; background: #ffffff09; font-size: .84rem; }
.room-roster li.is-me { box-shadow: inset 3px 0 #6ec8ff; background: #6ec8ff14; }
.room-roster .pet-dot { margin: 0; }
.roster-name { font-weight: 800; }
.roster-pet { color: #a9bdae; font-size: .72rem; }
.roster-host { padding: 2px 6px; border-radius: 3px; background: #ffc34d; color: #15271f; font-size: .58rem; letter-spacing: .1em; }
.room-settings .race-options { margin: 6px 0; }
.room-settings.is-guest select { opacity: .75; }
.room-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.room-actions .secondary { margin: 0; }

@keyframes pet-games-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .online-note--pulse { animation: none; } .mode-card, .cup-card, .segmented__option { transition: none; } }

@media (max-width: 620px) {
  .mode-grid, .cup-grid { grid-template-columns: 1fr; }
  .mode-card, .cup-card { min-height: 0; }
  .segmented__option small { display: none; }
  .segmented__option { min-height: 0; }
  .podium__step--1 .podium__block { height: 64px; }
  .podium__step--2 .podium__block { height: 46px; }
  .podium__step--3 .podium__block { height: 34px; }
}
.mode-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
