#host[data-game="tennis"] {
  --accent: #dbf176;
  --aces-ink: #12392f;
  background: #28483d;
}
#host[data-game="tennis"] .scene-shade {
  background: linear-gradient(90deg,#163b30bd 0%,#163b3059 39%,transparent 68%);
}
#host[data-game="tennis"] #panel {
  box-sizing: border-box;
  width: min(36vw, 470px);
  max-width: none;
  padding: clamp(20px,2.6vw,42px);
  left: clamp(16px,5vw,100px);
  border: 3px solid #9cb397;
  border-top: 7px solid var(--accent);
  border-radius: 0;
  background: #163a30f7;
  box-shadow: 5px 6px 0 #102d28b3, inset 0 0 0 2px #244d40;
  text-shadow: none;
}
#host[data-game="tennis"] #gameTitle img {
  display: block;
  width: min(100%,340px);
  image-rendering: pixelated;
  margin: .22em 0;
}
#host[data-game="tennis"] #panelLabel {color: #d7e8a1; letter-spacing: .085em}
#host[data-game="tennis"] #panelTitle {font-size: clamp(27px,3.4vw,52px)}
#host[data-game="tennis"] #instruction {font-size: clamp(16px,1.45vw,21px); line-height: 1.4}
#host[data-game="tennis"] #buttons {gap: .64rem}
#host[data-game="tennis"] #buttons :is(button,a),
#host[data-game="tennis"] :is(.icon,.game-locale,#count>div,#helpBox) {border-radius: 3px}
#host[data-game="tennis"] :is(.readouts span,.icon,.game-locale) {background-color: #163a30f5}
#host[data-game="tennis"] #count>div {border-top: 4px solid var(--accent); background: #163a30f7}
#host[data-game="tennis"] #scores {display:none}
#tennisScores {
  position: absolute; z-index: 1; pointer-events: none; top: calc(var(--edge) + 49px); left: var(--edge);
  width: clamp(135px,15vw,245px); background: #15362ef5; color: #fff7db;
  border: 2px solid #95a88b; box-shadow: 3px 3px 0 #17372ca8;
}
.aces-team {
  display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto;
  column-gap: 8px; padding: .38em .62em; font-size: clamp(13px,1.3vw,20px);
}
.aces-team + .aces-team {border-top: 1px solid #758978}
.aces-team div {display: grid; gap: 2px}
.aces-team span {border-inline-start: 4px solid var(--seat); padding-inline-start: .4em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700}
.aces-team b {font: 800 clamp(24px,2.7vw,46px)/1 ui-monospace,monospace; color: #edff9b}
.aces-team small {grid-column: 1/-1; color: #e1f598; font: 700 .78em/1.25 system-ui}
.aces-call {margin: 0; padding: .25em .65em; background: #d6ec94; color: #163a30; font: 750 clamp(14px,1.2vw,20px)/1.3 system-ui; text-align: center}
#phone[data-game="tennis"] {
  border: 5px solid #779980;
  background: repeating-linear-gradient(90deg,#163a30 0 32px,#183d33 32px 64px);
}
#phone[data-game="tennis"] .phone-inner {color: #fff8df; text-align: center; padding: 28px 22px}
#tennisHandPlayer {width: 82px; height: auto; image-rendering: pixelated; margin-bottom: 6px}
#phone[data-game="tennis"] #phoneButtons {justify-content: center}
#phone[data-game="tennis"] #phoneButtons button {border-radius: 4px; background: #dcf17f; color: #15382e}
#phone[data-game="tennis"] #phoneButtons .secondary {background: #214a3b; color: #f5f5dc}
@media (max-aspect-ratio: 1.16) {
  #host[data-game="tennis"] #panel {
    inset: auto 5% max(4vh,12px); transform:none; width:90%; max-height:calc(100% - 86px);
    padding:clamp(15px,3.5vw,26px);
  }
  #host[data-game="tennis"] #gameTitle img {width: min(44vw,225px)}
  #host[data-game="tennis"] .scene-shade {background:linear-gradient(to top,#183b30ba,transparent 75%)}
  #tennisScores {top:auto; bottom:max(8px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:min(94%,430px); display:flex; flex-wrap:wrap}
  .aces-call {width:100%}
  .aces-team {width:50%;padding:.3em .5em}
  .aces-team + .aces-team {border-top:0;border-inline-start:1px solid #758978}
  .aces-team small {display:none}
}
@media (max-height:540px) and (min-aspect-ratio:1.16) {
  #host[data-game="tennis"] #panel {padding:12px 16px;left:2vw;width:42vw;max-height:calc(100% - 50px)}
  #host[data-game="tennis"] #gameTitle img {width:min(25vw,145px)}
  #host[data-game="tennis"] #instruction {font-size:14px}
}
