:root{--rugby:#123b25;--pitch:#176b3a}body{background:#f4f6f5;color:#18231d}.bg-rugby{background:var(--rugby)!important}.page-wrap{max-width:1200px}.card{border:0;border-radius:16px;box-shadow:0 2px 12px #0000000d}.btn-rugby{background:var(--rugby);color:#fff}.btn-rugby:hover{background:#0c2919;color:#fff}.touch{min-height:52px}.score{font-size:3rem;font-weight:800;line-height:1}.live-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:620px;margin:auto}.pos-card{min-height:82px;border-radius:12px;border:2px solid #dbe4de;background:#fff;padding:8px;text-align:center}.pos-card strong{display:block;font-size:1.25rem}.pos-card .name{font-size:.8rem}.bench{display:flex;flex-wrap:wrap;gap:8px}.bench button{min-height:48px}.timeline-item{border-left:4px solid var(--pitch);padding:8px 12px;margin-bottom:10px;background:#fff;border-radius:0 10px 10px 0}.muted{color:#68746d}.auth-card{max-width:430px;margin:8vh auto}.pitch{background:linear-gradient(90deg,#16703c,#1b7d45);border-radius:20px;padding:14px}.pitch .pos-card{background:#f9fff9}.event-btn{min-height:58px;font-weight:700}.sticky-actions{position:sticky;bottom:0;background:#ffffffee;padding:10px;margin:0 -12px -12px;backdrop-filter:blur(8px)}@media(min-width:768px){.position-grid{grid-template-columns:repeat(5,1fr)}.live-grid{grid-template-columns:2fr 1fr}}
.match-heading .vs{font-weight:400;color:#68746d;margin:0 .4rem}.match-clock{font-size:2rem;font-weight:800;font-variant-numeric:tabular-nums}.score-card{background:#fff}.score-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;font-weight:700}.score-teams>span:last-child{text-align:left}.score-teams>span:first-child{text-align:right}.score-label{font-size:.7rem;letter-spacing:.08em;color:#68746d}.player-time{display:block;font-size:.7rem;color:#567061;margin-top:3px}.timeline-card{overflow:hidden}.timeline-head{display:grid;grid-template-columns:1fr 58px 1fr;gap:8px;font-size:.72rem;font-weight:700;color:#68746d;border-bottom:1px solid #e4e9e6;padding-bottom:7px}.timeline-head div:first-child{text-align:right}.timeline-head div:nth-child(2){text-align:center}.timeline-row{display:grid;grid-template-columns:1fr 58px 1fr;gap:8px;align-items:stretch;min-height:58px;border-bottom:1px solid #eef1ef;padding:7px 0}.timeline-side{font-size:.78rem;display:flex;align-items:center;gap:6px;min-width:0}.home-side{justify-content:flex-end;text-align:right}.away-side{justify-content:flex-start;text-align:left}.timeline-side small{display:block;color:#68746d;font-size:.68rem}.timeline-icon{font-size:1.15rem;flex:0 0 auto}.timeline-time{display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.72rem;color:#123b25;background:#f4f6f5;border-radius:8px}.neutral-event .timeline-time{grid-column:2}.event-now{background:#f4f6f5;border-radius:10px;padding:10px;font-size:.85rem;color:#567061}.team-block{padding:2px}.bench-player .small{opacity:.75}@media(max-width:575px){.match-heading .d-flex{align-items:flex-start}.score-teams{font-size:.8rem}.timeline-head,.timeline-row{grid-template-columns:1fr 50px 1fr}.timeline-side{font-size:.7rem}.timeline-icon{font-size:1rem}}

/* Keep the site-wide RugbyBuddy logo within the requested maximum size. */
.rb-site-logo { display: block; width: auto; max-width: 300px; max-height: 64px; height: auto; object-fit: contain; }
.rb-action-btn{display:flex;align-items:center;justify-content:flex-start;gap:.75rem;text-align:left;min-height:48px;padding:.7rem 1rem}.rb-action-btn .rb-button-icon{flex:0 0 24px;width:24px;height:24px}.rb-action-btn span{min-width:0}.rb-action-btn.btn-lg{min-height:56px}
