/* V3.3: standard generated lines only. No generator or print changes. */
@media screen {
  html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-ready-content:has(> .ll-ticket-ball-layout > .ll-ticket-special-group) {
    container: ll-balls / inline-size;
  }
  html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-ball-layout:has(> .ll-ticket-special-group) {
    --ll-ball-size: clamp(28px, 8cqw, 48px);
    --ll-ball-gap: clamp(3px, 1cqw, 8px);
    display:flex!important; flex-direction:row!important; flex-wrap:wrap!important;
    align-items:center!important; justify-content:flex-start!important;
    gap:10px!important; width:100%!important; min-width:0!important;
  }
  html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-ball-layout:has(> .ll-ticket-special-group) > .balls.ll-ticket-main-balls {
    display:flex!important; flex:0 1 auto!important; flex-wrap:nowrap!important;
    width:auto!important; min-width:0!important; max-width:100%!important;
    align-items:center!important; justify-content:flex-start!important;
    margin:0!important; padding:0!important; gap:var(--ll-ball-gap)!important; min-height:0!important;
  }
  html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-ball-layout > .ll-ticket-special-group {
    display:flex!important; flex:0 0 auto!important; width:auto!important; max-width:100%!important;
    min-height:0!important; min-width:0!important; align-items:center!important;
    border:0!important; border-inline-start:1px solid #b9d0df!important;
    padding:0 0 0 10px!important; margin:0!important;
  }
  html[data-theme="dark"] body[data-game] #lines#lines .line-card .ll-ticket-ball-layout > .ll-ticket-special-group {border-inline-start-color:#45637a!important;}
  html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-special-group > .extra-row {
    display:flex!important; flex-wrap:nowrap!important; align-items:center!important; gap:7px!important;
    width:auto!important; min-width:0!important; border:0!important; margin:0!important; padding:0!important;
  }
  html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-special-group .extra-name {
    white-space:nowrap!important; min-width:0!important; max-width:none!important; margin:0!important; padding:0!important;
    font-size:11px!important; line-height:1.2!important;
  }
  html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-special-group .balls {
    display:flex!important; flex-wrap:nowrap!important; width:auto!important; min-width:0!important;
    min-height:0!important; align-items:center!important; gap:var(--ll-ball-gap)!important; padding:0!important; margin:0!important;
  }
  html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-ball-layout:has(> .ll-ticket-special-group) :is(.ll-ticket-main-balls,.ll-ticket-special-group .balls) > .number-ball:not(.ball-placeholder) {
    box-sizing:border-box!important; flex:0 1 var(--ll-ball-size)!important;
    width:var(--ll-ball-size)!important; height:auto!important; aspect-ratio:1!important;
    min-width:0!important; min-height:0!important; max-width:var(--ll-ball-size)!important; max-height:var(--ll-ball-size)!important;
    font-size:clamp(11px,2.8cqw,16px)!important; line-height:1!important;
  }
  @container ll-balls (max-width: 340px) {
    html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-ball-layout:has(> .ll-ticket-special-group) {--ll-ball-size:clamp(24px,8cqw,30px);--ll-ball-gap:3px;}
  }
  /* Label above special balls on narrow cards; ball centres remain aligned. */
  @container ll-balls (max-width: 470px) {
    html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-ball-layout:has(> .ll-ticket-special-group) {align-items:flex-end!important;gap:7px!important;}
    html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-ball-layout > .ll-ticket-special-group {padding-inline-start:7px!important;}
    html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-special-group > .extra-row {flex-direction:column!important; align-items:flex-start!important;gap:4px!important;}
    html body[data-game] #lines#lines .line-card.ll-ticket-line-ready:not([data-selection-mode="custom"]) .ll-ticket-special-group .extra-name {white-space:normal!important; font-size:9px!important; max-width:110px!important;}
  }
}
