/* Sport 7.14.199 – compact Pingpong RSVP on phones. Desktop remains unchanged. */
.pp-terms .pp-arrival-mini-label{display:none}
@media (max-width:600px){
  /* Main entrance: show the upcoming roster before secondary navigation links. */
  .pp-terms.pp-terms-nearest{display:flex;flex-direction:column;gap:0;min-width:0}
  .pp-terms.pp-terms-nearest>.pp-terms-heading{order:0}
  .pp-terms.pp-terms-nearest>.alert{order:1}
  .pp-terms.pp-terms-nearest>.pp-terms-list,
  .pp-terms.pp-terms-nearest>.pp-empty{order:2}
  .pp-terms.pp-terms-nearest>.pp-terms-tabs{order:3}
  .pp-terms.pp-terms-nearest>.pp-terms-footnote{order:4}
  /* Remove long introductory copy on mobile without removing form or result data. */
  .pp-terms .pp-terms-heading{margin:0 0 7px!important;padding:0!important;gap:2px!important}
  .pp-terms .pp-terms-heading h1{font-size:21px!important;line-height:1.12;margin:1px 0!important}
  .pp-terms .pp-terms-heading p{display:none}
  .pp-terms .pp-terms-heading .eyebrow{font-size:10px!important;letter-spacing:.035em}
  .pp-terms .pp-terms-list{gap:7px;margin:0 0 7px}
  .pp-terms .pp-term-card{padding:8px 8px 9px;border-radius:12px}
  .pp-terms .pp-term-top{display:grid;grid-template-columns:59px minmax(0,1fr) 66px;gap:8px;align-items:center}
  .pp-terms .pp-term-date{padding:5px 3px;border-radius:8px;align-items:center;text-align:center;gap:0}
  .pp-terms .pp-term-date small{font-size:8px;line-height:1.15}
  .pp-terms .pp-term-date strong{font-size:17px;line-height:1.05;letter-spacing:-.05em}
  .pp-terms .pp-term-date span{font-size:9px;line-height:1.2;white-space:nowrap}
  .pp-terms .pp-term-info{padding:0;min-width:0}
  .pp-terms .pp-term-info h2{font-size:14px;line-height:1.13;margin:0 0 2px}
  .pp-terms .pp-term-info p{font-size:10px;line-height:1.25;margin:2px 0;gap:3px;min-width:0;overflow-wrap:anywhere}
  .pp-terms .pp-term-info p:not(.pp-term-note):nth-of-type(2){display:none} /* date is already on the left */
  .pp-terms .pp-term-info p svg,.pp-terms .pp-term-info p .sport-icon{width:12px;height:12px;flex:none}
  .pp-terms .pp-term-info .pp-term-note{font-size:10px;line-height:1.3;margin:2px 0;padding:2px 4px;max-height:38px;overflow:auto}
  .pp-terms .pp-term-cap{grid-column:auto;padding:0;text-align:right;min-width:0}
  .pp-terms .pp-cap-label{justify-content:flex-end;flex-direction:column;align-items:flex-end;gap:0}
  .pp-terms .pp-cap-label strong{font-size:16px;line-height:1.1}
  .pp-terms .pp-cap-label span{font-size:9px;line-height:1.2;text-align:right}
  .pp-terms .pp-cap-track{display:none}
  .pp-terms .pp-term-cap>small{display:none}
  .pp-terms .pp-arrival-totals{display:none} /* visible on the roster itself */
  .pp-terms .pp-my-state{margin:5px 0 0;font-size:10px;line-height:1.35;white-space:normal}
  .pp-terms .pp-my-state small{font-size:10px}
  .pp-terms .pp-rsvp{margin-top:5px;padding-top:5px;gap:5px;grid-template-columns:repeat(3,minmax(0,1fr))}
  .pp-terms .pp-arrival-choice{grid-column:1/-1;display:flex;align-items:center;gap:6px;padding:0 0 2px;margin:0;border:0;border-radius:0;background:none;min-height:28px;flex-wrap:nowrap}
  .pp-terms .pp-arrival-choice legend{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;padding:0!important}
  .pp-terms .pp-arrival-mini-label{display:inline;font-size:10px;font-weight:800;color:var(--muted,#64748b);white-space:nowrap;flex:none}
  .pp-terms .pp-arrival-options{display:flex;flex-wrap:nowrap;gap:5px}
  .pp-terms .pp-arrival-option span{padding:5px 8px;min-width:60px;min-height:28px;line-height:17px;font-size:11px;border-radius:7px}
  .pp-terms .pp-arrival-choice>small{display:none}
  .pp-terms .pp-answer{min-height:34px;padding:5px 2px;font-size:11px;gap:4px;border-radius:8px}
  .pp-terms .pp-answer svg,.pp-terms .pp-answer .sport-icon{width:13px;height:13px;flex:none}
  .pp-terms .pp-login-note,.pp-terms .pp-closed{margin-top:5px;padding-top:5px}
  /* Condensed participant panel: actual names remain visible without expanding. */
  .pp-terms .pp-attendance{margin-top:6px;padding-top:5px}
  .pp-terms .pp-attendance-title{margin:0 0 5px;gap:5px}
  .pp-terms .pp-attendance-title strong{font-size:11px}
  .pp-terms .pp-attendance-title small{display:none}
  .pp-terms .pp-attendance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .pp-terms .pp-attendance-status{border-radius:8px;min-width:0}
  .pp-terms .pp-attendance-status.status-playing,
  .pp-terms .pp-attendance-status.status-waitlist{grid-column:1/-1}
  .pp-terms .pp-attendance-status.status-maybe:not(.is-empty),
  .pp-terms .pp-attendance-status.status-no:not(.is-empty){grid-column:1/-1}
  .pp-terms .pp-attendance-status>header{min-height:26px;padding:4px 6px;gap:5px}
  .pp-terms .pp-attendance-status>header strong{font-size:10.5px}
  .pp-terms .pp-attendance-status-icon{width:16px;height:16px;border-radius:5px;font-size:11px}
  .pp-terms .pp-attendance-count{min-width:17px;min-height:17px;padding:0 4px;font-size:10px}
  .pp-terms .pp-attendance-status.is-empty>header{border:0;min-height:25px}
  .pp-terms .pp-attendance-empty{display:none}
  .pp-terms .pp-attendance-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px}
  .pp-terms .pp-attendance-person{padding:4px 5px;gap:4px;min-width:0;min-height:26px;font-size:10px;line-height:1.25;border-radius:6px}
  .pp-terms .pp-attendance-player-name{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:10px}
  .pp-terms .pp-attendance-time{padding:2px 3px;font-size:9px;margin-left:auto;flex:none}
  .pp-terms .pp-attendance-person .pp-category-tag{display:none} /* optional VIP/Člen/Host remains on desktop */
  .pp-terms.pp-terms-nearest>.pp-terms-tabs{margin:8px 0 9px;padding:3px;flex-wrap:nowrap;gap:4px;border-radius:10px}
  .pp-terms.pp-terms-nearest>.pp-terms-tabs a{padding:6px 8px;font-size:10px;gap:5px;flex:1 1 0;justify-content:center;min-width:0}
  .pp-terms.pp-terms-nearest>.pp-terms-tabs .sport-icon{width:14px;height:14px;flex:none}
  .pp-terms.pp-terms-nearest>.pp-terms-tabs b{padding:1px 4px;font-size:9px}
  .pp-terms .pp-terms-footnote{font-size:10px;line-height:1.45;margin:7px 1px 12px}
}
@media(max-width:340px){
  .pp-terms .pp-term-top{grid-template-columns:54px minmax(0,1fr) 58px;gap:5px}
  .pp-terms .pp-term-date strong{font-size:15px}
  .pp-terms .pp-attendance-players{grid-template-columns:minmax(0,1fr)}
  .pp-terms .pp-arrival-option span{min-width:51px;padding-inline:5px}
}


/* Sport 7.14.199: remove redundant mobile labels and put names closer to top.
   Scope strictly to .pp-terms and max-width:600px; desktop remains identical. */
.pp-terms .pp-mobile-rules{display:none}
@media(max-width:600px){
  /* On nearest, app chrome already says Nejbližší; keep H1 available to screen readers. */
  .pp-terms.pp-terms-nearest>.pp-terms-heading{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important;border:0!important}
  .pp-terms:not(.pp-terms-nearest)>.pp-terms-heading{margin:0 0 4px!important;padding:0!important}
  .pp-terms:not(.pp-terms-nearest)>.pp-terms-heading .eyebrow{display:none}
  .pp-terms:not(.pp-terms-nearest)>.pp-terms-heading h1{font-size:17px!important;margin:0!important}
  .pp-terms .pp-terms-list{gap:5px;margin:0 0 4px}
  .pp-terms .pp-term-card{padding:6px 7px 7px;border-radius:11px}
  .pp-terms .pp-term-top{grid-template-columns:64px minmax(0,1fr) 48px;align-items:center;gap:6px}
  .pp-terms .pp-term-date{padding:4px 2px;border-radius:7px;gap:0;min-height:35px;justify-content:center}
  .pp-terms .pp-term-date small{font-size:8px;line-height:1.1;letter-spacing:0}
  .pp-terms .pp-term-date strong{font-size:16px;line-height:1.12;letter-spacing:-.035em}
  .pp-terms .pp-term-date span{font-size:9px;line-height:1.1}
  /* Arrival options already include the starting hour, so don't print it in the date tile again. */
  .pp-terms .pp-term-card.has-arrival-picker .pp-term-date span{display:none}
  .pp-terms .pp-term-info{min-width:0;padding:0}
  .pp-terms .pp-term-info h2{font-size:13px;line-height:1.15;margin:0 0 2px}
  .pp-terms .pp-term-info p{margin:1px 0;gap:3px;font-size:9.5px;line-height:1.2;min-width:0}
  .pp-terms .pp-term-info p:not(.pp-term-note):first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
  .pp-terms .pp-term-info p:not(.pp-term-note):first-of-type .sport-icon{display:none}
  .pp-terms .pp-term-info .pp-term-note{max-height:32px;font-size:9.5px;padding:1px 3px;line-height:1.15}
  .pp-terms .pp-term-cap{padding:0;align-self:center}
  .pp-terms .pp-cap-label{justify-content:flex-end;align-items:center}
  .pp-terms .pp-cap-label strong{font-size:13px;line-height:1.1}
  .pp-terms .pp-cap-label span{display:none} /* Already express capacity as N / max. */
  .pp-terms .pp-my-state{display:none} /* Selected buttons show Přijdu/Váhám/Nepřijdu. */
  .pp-terms .pp-my-state.pp-my-state-waiting{display:block;margin:4px 0 0;font-size:10px;line-height:1.2}
  .pp-terms .pp-my-state.pp-my-state-waiting small{display:none} /* Arrival stays selected above. */
  .pp-terms .pp-term-card:not(.has-arrival-picker) .pp-my-state{display:block;margin-top:4px;font-size:10px;line-height:1.2}
  .pp-terms .pp-rsvp{margin-top:3px;padding-top:3px;gap:3px;border-top-color:var(--line-soft,#e9edf6)}
  .pp-terms .pp-arrival-choice{min-height:30px;padding:0;margin:0;border:0;gap:0}
  .pp-terms .pp-arrival-mini-label{display:none!important}
  .pp-terms .pp-arrival-options{display:flex;gap:5px;flex-wrap:nowrap}
  .pp-terms .pp-arrival-option span{min-width:64px;min-height:29px;padding:5px 9px;line-height:17px;font-size:11px;border-radius:7px}
  .pp-terms .pp-answer{min-height:34px;padding:5px 2px;font-size:11px;line-height:1.2;border-radius:7px}
  .pp-terms .pp-attendance{margin-top:3px;padding-top:3px}
  .pp-terms .pp-attendance-title{display:none} /* Each status has a self-describing header. */
  .pp-terms .pp-attendance-grid{gap:3px}
  .pp-terms .pp-attendance-status>header{min-height:23px;padding:2px 5px;gap:5px}
  .pp-terms .pp-attendance-status>header strong{font-size:10px}
  .pp-terms .pp-attendance-count{font-size:9px;min-height:16px;min-width:16px}
  .pp-terms .pp-attendance-status.is-empty>header{min-height:22px}
  .pp-terms .pp-attendance-players{gap:3px;padding:3px}
  .pp-terms .pp-attendance-person{min-height:25px;padding:3px 5px;gap:3px;border-radius:5px}
  .pp-terms .pp-attendance-time{padding:1px 2px;font-size:9px}
  .pp-terms .pp-terms-footnote{display:none}
  .pp-terms .pp-mobile-rules{display:block;margin:6px 1px 8px;padding:0;border:0;color:var(--muted,#64748b);font-size:10px}
  .pp-terms .pp-mobile-rules>summary{cursor:pointer;display:list-item;width:fit-content;font-size:10px;font-weight:700;line-height:1.6;padding:0 4px}
  .pp-terms .pp-mobile-rules>p{font-size:10px;line-height:1.45;margin:5px 0 0;padding:5px 7px;background:var(--surface-2,#f6f8fc);border-radius:7px}
}
@media(max-width:340px){
  .pp-terms .pp-term-top{grid-template-columns:55px minmax(0,1fr) 42px;gap:4px}
  .pp-terms .pp-term-date strong{font-size:15px}
  .pp-terms .pp-term-info h2{font-size:12px}
  .pp-terms .pp-arrival-option span{min-width:59px;padding-inline:6px}
}

/* Mobile rendering of confirmed players: time once per column, not at each name. */
.pp-terms .pp-playing-mobile-groups{display:none}
@media(max-width:600px){
  .pp-terms.pp-terms-nearest>.pp-mobile-rules{order:5}
  .pp-terms .pp-attendance-status.status-playing>.pp-attendance-players{display:none}
  .pp-terms .pp-playing-mobile-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:3px}
  .pp-terms .pp-playing-mobile-group{min-width:0;border-radius:6px;background:var(--surface,#fff);border:1px solid var(--line-soft,#e6ecf3)}
  .pp-terms .pp-playing-mobile-group:only-child{grid-column:1/-1}
  .pp-terms .pp-playing-mobile-time{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:21px;padding:3px 5px;border-bottom:1px solid var(--line-soft,#e6ecf3);background:var(--surface-2,#f6f8fc)}
  .pp-terms .pp-playing-mobile-time strong{font-size:10px;line-height:1.1;color:var(--primary,#1269ed);font-weight:850}
  .pp-terms .pp-playing-mobile-time b{font-size:9px;color:var(--muted,#63748b);font-weight:750}
  .pp-terms .pp-playing-mobile-names{display:flex;flex-direction:column;gap:2px;padding:3px}
  .pp-terms .pp-playing-mobile-names span{display:block;min-width:0;min-height:23px;padding:4px 5px;border-radius:5px;color:var(--text,#1b2e48);font-size:10px;line-height:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:var(--surface-2,#f7f9fd)}
  .pp-terms .pp-attendance-status.status-maybe .pp-attendance-time{display:none}
}
