.tomato-demo { margin: 0; scroll-margin-top: 80px; container-type: inline-size; }
.tomato-room { display: grid; grid-template-columns: minmax(0, 2fr) minmax(152px, 1fr); grid-template-rows: minmax(0, auto); overflow: hidden; background: #f7f7f8; border: 1px solid #dedee3; border-radius: 10px; color: #18181b; }
.tomato-stream { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; }
.tomato-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: 1cqi; padding: 2.4cqi; color: #efeff1; background: radial-gradient(ellipse at bottom, #39254c, #17121f 78%); }
.tomato-live { justify-self: start; display: flex; align-items: center; gap: 5px; font: 700 clamp(8px, 2.5cqi, 11px) var(--mono); }
.tomato-live span { background: #d90020; color: white; padding: 3px 5px; border-radius: 4px; }
.tomato-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 2cqi; align-items: center; }
.tomato-score { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1px 4px; color: #ff9db4; }
.tomato-score[data-player="1"] { color: #c6b2ff; }
.tomato-score span { font: 500 clamp(8px, 2.7cqi, 11px) var(--mono); }
.tomato-score progress { width: 100%; height: clamp(4px, 1.8cqi, 8px); accent-color: currentColor; }
.tomato-vs { color: var(--muted); font: 500 12px var(--mono); }
.tomato-arena { position: relative; display: flex; align-items: end; justify-content: space-around; min-height: 0; border-bottom: 1px solid #ffffff30; }
.tomato-fighter { display: grid; place-items: end center; grid-template-rows: minmax(0, 1fr); width: 32%; height: 100%; min-height: 0; }
.tomato-fighter img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 3px 5px #0008); }
.tomato-fighter.knocked-out { opacity: .3; }
.tomato-projectile { position: absolute; bottom: 34%; font-size: clamp(13px, 6cqi, 28px); pointer-events: none; }
.tomato-cue { margin: 0; min-height: 2.5em; display: grid; place-items: center; text-align: center; font: 500 clamp(8px, 2.8cqi, 12px)/1.2 var(--mono); }
.tomato-channel { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.tomato-avatar { display: grid; place-items: center; width: 36px; height: 36px; background: #522439; border-radius: 50%; }
.tomato-channel strong, .tomato-channel div > span { display: block; }
.tomato-channel div > span { color: #53535f; font-size: 13px; }
.tomato-chat { display: flex; flex-direction: column; min-width: 0; contain: size; background: #fff; border-left: 1px solid #dedee3; }
.tomato-chat h3 { margin: 0; padding: 10px; border-bottom: 1px solid #dedee3; text-align: center; font-size: 13px; }
.tomato-log { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 10px; overflow-wrap: anywhere; }
.tomato-log p { margin: 0 0 7px; font-size: 14px; }
.tomato-log b { color: #6441a5; }
.tomato-log .gift-line { color: #6f2dbd; background: #f3eaff; border-radius: 4px; padding: 4px; }
.games-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 3vw, 48px); padding: 38px 0 30px; }
.games-copy h1 { font: 800 clamp(34px, 4vw, 58px)/1.02 var(--display); letter-spacing: -.035em; margin: 14px 0; }
.games-copy .hl { color: var(--lime); }
.games-copy .lede { color: var(--muted); margin: 0 0 18px; }
.games-hero + #kinds { scroll-margin-top: 64px; }
@container (max-width: 365px) {
  .tomato-room { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .tomato-chat { contain: none; border-left: 0; border-top: 1px solid #dedee3; }
  .tomato-log { height: 104px; flex: none; }
}
@media (max-width: 900px) {
  .games-hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .games-copy { grid-row: 2; }
}

.tomato-rosters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: clamp(8px, 2.7cqi, 12px); }
.tomato-rosters strong { color: #ff9db4; font: 600 1em var(--mono); }
.tomato-rosters > :last-child strong { color: #c6b2ff; }
.tomato-rosters ul { display: flex; flex-wrap: wrap; gap: 1px 5px; min-height: 2.2em; margin: 1px 0 0; padding: 0; list-style: none; line-height: 1.1; overflow-wrap: anywhere; }
.tomato-score strong { font: 800 clamp(9px, 3.2cqi, 17px) var(--display); }

.tomato-projectile, .tomato-splash { z-index: 1; }
.tomato-splash { position: absolute; bottom: 34%; pointer-events: none; }
.tomato-splash::before { content: ''; position: absolute; inset: -12px; border: 3px solid #ff9371; border-radius: 50%; animation: tomato-ring 480ms ease-out both; }
.tomato-splash i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ff5848; animation: tomato-drop 480ms ease-out both; }
.tomato-splash i:nth-child(even) { background: #ffac64; }
@keyframes tomato-ring {
  from { transform: scale(.4); opacity: 1; }
  to { transform: scale(3); opacity: 0; }
}
@keyframes tomato-drop {
  from { transform: rotate(var(--angle)) translateX(3px) scale(1.3); opacity: 1; }
  to { transform: rotate(var(--angle)) translateX(42px) scale(.25); opacity: 0; }
}
.tomato-result { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 2cqi; background: #140d20bc; }
.tomato-result[hidden] { display: none; }
.tomato-result-card { display: grid; gap: 4px; width: min(100%, 290px); max-height: 100%; overflow: auto; padding: 4px 7px; text-align: center; border: 1px solid #f2bb68; border-radius: 10px; background: #291733; box-shadow: 0 0 30px #ffc56e45; }
.tomato-result strong { color: #ffd489; font: 800 clamp(12px, 4cqi, 22px) var(--display); }
.tomato-result [data-final-hp] { color: #efeff1; font: 500 11px var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  .tomato-result-card { animation: tomato-victory 420ms cubic-bezier(.2,.8,.3,1.25) both; }
}
@keyframes tomato-victory {
  from { opacity: 0; transform: translateY(12px) scale(.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tomato-result-card p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; margin: 4px 0 0; font-size: 12px; font-weight: 700; }
.tomato-result-card small { color: #d8c6df; font-weight: 400; }
.tomato-result-card ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.tomato-result-card li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 1px 4px; border-radius: 4px; background: #ffffff12; font-size: 11px; text-align: left; overflow-wrap: anywhere; }
.tomato-result-card li:nth-child(1) { color: #ffe198; background: #ffe1982e; font-size: 13px; }
.tomato-result-card li:nth-child(2) { color: #e5ecf8; background: #e5ecf81f; }
.tomato-result-card li:nth-child(3) { color: #ffbe9d; background: #ffbe9d24; }
.tomato-place { border-radius: 3px; background: #ffffff18; font: 700 10px/12px var(--mono); text-align: center; }
.tomato-result-card li:nth-child(1) .tomato-place { color: #291733; background: #ffe198; }
.tomato-result-card li:nth-child(2) .tomato-place { color: #291733; background: #e5ecf8; }
.tomato-result-card li:nth-child(3) .tomato-place { color: #291733; background: #ffbe9d; }

.tomato-channel .tomato-channel-category { color: #6441a5; }
.tomato-channel .tomato-channel-details { min-width: 0; }
.tomato-chat h3::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #9147ff; vertical-align: 2px; }
