/* Team Boca matchday miniature: a self-contained app screen and its Home teaser. */
.tb-screen[data-view="matchday"] { background: #071329; }
.tb-matchday, .tb-matchday * { box-sizing: border-box; }
.tb-matchday { position: relative; flex: 1; min-height: 0; overflow: hidden; isolation: isolate; color: #f8fbff; background: radial-gradient(ellipse at 48% 47%, #1a3850 0%, #0c2035 48%, #071329 100%); font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.tb-matchday [hidden] { display: none !important; }
.md-sky { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 75% 44% at 55% 54%, rgba(47, 180, 141, .18), transparent 80%), radial-gradient(circle at 80% 7%, rgba(71, 150, 255, .24), transparent 38%); transition: background .5s; }
.tb-matchday.is-night .md-sky { background: radial-gradient(ellipse 75% 44% at 55% 54%, rgba(11, 87, 102, .13), transparent 80%), radial-gradient(circle at 78% 14%, rgba(22, 66, 171, .25), transparent 40%); }
.md-stage { position: absolute; inset: 0; z-index: 0; touch-action: none; cursor: grab; }
.md-stage:active { cursor: grabbing; }
.md-stage canvas { display: block; width: 100%; height: 100%; }
.md-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 13, 31, .78) 0%, transparent 29%, transparent 58%, rgba(3, 11, 24, .86) 100%), linear-gradient(90deg, rgba(3, 11, 24, .42), transparent 22%, transparent 80%, rgba(3, 11, 24, .35)); }
.md-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top) + 16px) 22px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; pointer-events: none; }
.md-top > * { pointer-events: auto; }
.md-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.md-brand img { flex: none; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .3)); }
.md-brand h1 { margin: 1px 0 0; color: #fff; font-size: clamp(17px, 2vw, 25px); line-height: 1.05; letter-spacing: -.045em; white-space: nowrap; font-weight: 820; }
.md-brand h1 em { font-style: normal; font-weight: 440; color: #b7d4f8; }
.md-eyebrow { font-size: 9px; font-weight: 850; line-height: 1; letter-spacing: .24em; color: #73cbff; white-space: nowrap; }
.md-back { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0 0 4px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(9, 31, 60, .7); color: white; font-family: inherit; font-size: 30px; font-weight: 300; line-height: 1; cursor: pointer; }
.md-back:hover, .md-control:hover { background: rgba(255, 255, 255, .16); }
.md-scoreboard { display: grid; grid-template-columns: auto auto auto; align-items: center; column-gap: 14px; row-gap: 3px; padding: 9px 18px 7px; border: 1px solid rgba(180, 217, 255, .22); border-radius: 16px; background: rgba(7, 24, 49, .83); box-shadow: 0 12px 35px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.md-team { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 850; letter-spacing: .06em; white-space: nowrap; }
.md-team-away { color: #cbd5e1; }
.md-team-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #247ff3; color: #fff; font-size: 11px; letter-spacing: -.04em; box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset; }
.md-team-mark-away { background: #e57557; }
.md-score { display: flex; gap: 7px; align-items: baseline; justify-content: center; color: #fff; font-size: 25px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.06em; line-height: 1; }
.md-score-dash { font-size: 20px; color: #7b98ba; font-weight: 500; }
.md-score.is-goal { animation: md-score-pop .7s ease-out; }
@keyframes md-score-pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.35); text-shadow: 0 0 18px #64cfff; } }
.md-matchclock { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 7px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 5px; font-size: 10px; font-weight: 750; letter-spacing: .13em; font-variant-numeric: tabular-nums; color: #a9c4e0; }
.md-live-dot, .md-dot { width: 6px; height: 6px; border-radius: 50%; background: #48e5aa; box-shadow: 0 0 8px rgba(72,229,170,.9); }
.md-clock-label { margin-left: 8px; color: #70a8db; }
.md-side-label { position: absolute; z-index: 2; color: rgba(226, 242, 255, .45); font-size: 10px; letter-spacing: .21em; font-weight: 800; white-space: nowrap; pointer-events: none; }
.md-side-label-top { top: 49%; left: 15px; transform: rotate(-90deg) translateX(-50%); transform-origin: left center; display: flex; align-items: center; gap: 9px; }
.md-side-label-bottom { top: 47%; right: 15px; transform: rotate(90deg) translateX(50%); transform-origin: right center; }
.md-caption { position: absolute; z-index: 3; left: 50%; bottom: 195px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 34px); display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 100px; background: rgba(4, 20, 39, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #f1f7ff; box-shadow: 0 6px 22px rgba(0, 0, 0, .22); font-size: 12px; font-weight: 620; text-align: center; transition: opacity .2s, transform .2s; pointer-events: none; }
.md-caption-index { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1c70e9; font-family: inherit; font-size: 11px; font-weight: 900; line-height: 1; }
.md-live-region { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.md-goal { position: absolute; z-index: 4; top: 42%; left: 50%; width: min(660px, 90%); transform: translate(-50%, -50%) scale(.65); opacity: 0; pointer-events: none; text-align: center; filter: drop-shadow(0 15px 30px rgba(0,0,0,.5)); transition: opacity .32s ease, transform .6s cubic-bezier(.16,1.4,.35,1); }
.md-goal.is-show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.md-goal-kicker { font-size: clamp(10px, 1.5vw, 15px); font-weight: 900; letter-spacing: .35em; color: #80dbff; }
.md-goal-word { color: #fff; font-size: clamp(77px, 14vw, 194px); line-height: .93; font-weight: 1000; font-style: italic; letter-spacing: -.1em; text-shadow: 0 7px 0 #1669e1, 0 0 60px rgba(100,203,255,.45); }
.md-goal-word span { color: #4ddfff; }
.md-goal-sub { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; padding: 8px 19px; background: #0b3273; border: 1px solid #62d5ff; border-radius: 100px; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.md-goal-sub span { color: #6fd8ff; font-size: 17px; letter-spacing: 0; }
.tb-matchday.is-goal .md-vignette { animation: md-flash 1.3s ease-out; }
@keyframes md-flash { 0% { background-color: rgba(255,255,255,.5); } 100% { background-color: transparent; } }
.md-bottom { position: absolute; z-index: 3; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 14px); width: min(980px, calc(100% - 34px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 14px; }
.md-story { padding: 16px 20px 25px; border: 1px solid rgba(154, 196, 242, .22); border-radius: 18px; background: rgba(7, 24, 49, .84); box-shadow: 0 10px 35px rgba(0, 0, 0, .21); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.md-story-head { display: flex; justify-content: space-between; align-items: center; color: #9bbad9; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.md-story-time { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.md-track { position: relative; height: 3px; margin-top: 17px; background: rgba(158, 197, 237, .3); border-radius: 4px; }
.md-track-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg,#238cff,#6eeaff); border-radius: inherit; box-shadow: 0 0 12px rgba(68,196,255,.65); }
.md-track-fill::after { content: ''; position: absolute; right: -5px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #1872db, 0 0 13px #51d7ff; }
.md-moment { appearance: none; border: 0; position: absolute; top: -5px; left: var(--at); transform: translateX(-50%); width: 14px; height: 14px; padding: 0; background: #0b3768; border: 2px solid #90c6f8; border-radius: 50%; cursor: pointer; }
.md-moment span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); color: #9cb9d5; white-space: nowrap; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.md-moment-goal { border-color: #6eeaff; box-shadow: 0 0 10px rgba(93,216,255,.65); }
.md-moment:hover { background: #5bd5ff; }
.md-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.md-control { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 87px; height: 40px; padding: 0 13px; border: 1px solid rgba(187, 217, 252, .24); border-radius: 11px; background: rgba(12, 37, 70, .81); color: #eaf6ff; font-family: inherit; font-size: 12px; font-weight: 730; line-height: 1; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s, transform .2s, border-color .2s; }
.md-control:active { transform: scale(.96); }
.md-control[aria-pressed="true"] { background: rgba(27, 102, 179, .8); border-color: #68c7ff; }
.md-primary { background: #1974ed; border-color: #71beff; box-shadow: 0 5px 15px rgba(3,58,152,.28); }
.md-primary:hover { background: #3189fa; }
.md-control-icon { font-size: 17px; line-height: .8; }
.md-info { min-width: 40px; padding: 0 10px; }
.md-info .md-control-icon { font: 800 15px/1 Georgia,serif; font-style: italic; }
.md-hint { text-align: center; color: rgba(201, 222, 243, .55); font-size: 10px; font-weight: 600; letter-spacing: .045em; }
.md-about { position: absolute; z-index: 8; right: 20px; top: calc(env(safe-area-inset-top) + 98px); width: min(340px, calc(100% - 40px)); padding: 24px; border: 1px solid rgba(146, 204, 255, .34); border-radius: 20px; background: rgba(7, 26, 53, .96); color: #dcecff; box-shadow: 0 18px 60px rgba(0, 0, 0, .4); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.md-about h2 { margin: 13px 0 12px; color: white; font-size: 25px; line-height: 1.08; letter-spacing: -.04em; }
.md-about p { font-size: 13px; line-height: 1.55; color: #b7d1ec; margin: 0 0 11px; }
.md-about p:last-child { margin: 0; }
.md-about-close { position: absolute; right: 12px; top: 10px; width: 29px; height: 29px; border: 0; background: transparent; color: #bed7f0; font-size: 25px; cursor: pointer; }
.md-fallback { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; padding: 22px; background: #0b2141; text-align: center; }
.md-fallback > div { max-width: 350px; }
.md-fallback h2 { margin: 0 0 10px; color: white; }
.md-fallback p { color: #bad2eb; }
.tb-matchday button:focus-visible, .tb-matchday-teaser:focus-visible { outline: 2px solid #6fe1ff; outline-offset: 3px; }

/* Entry point on the Games screen. */
.tb-matchday-teaser { display: flex; position: relative; align-items: center; width: calc(100% - 32px); min-height: 96px; margin: 14px 16px 2px; padding: 15px 20px; border: 1px solid rgba(82, 155, 255, .4); border-radius: 19px; overflow: hidden; background: linear-gradient(105deg, #08234d, #0d4692 62%, #146bd4); color: #fff; text-align: left; font: inherit; box-shadow: 0 8px 24px rgba(10, 65, 157, .16); cursor: pointer; }
.tb-matchday-teaser::before { content: ''; position: absolute; right: -5%; top: -22px; width: 43%; height: 140px; border: 2px solid rgba(255,255,255,.28); border-radius: 50%; transform: rotate(-25deg); }
.tb-matchday-teaser::after { content: ''; position: absolute; right: 10%; top: -32px; width: 1px; height: 170px; background: rgba(255,255,255,.28); transform: rotate(27deg); }
.tb-matchday-teaser-art { position: absolute; right: 10%; top: 19px; width: 58px; height: 58px; border: 5px solid #fff; border-radius: 50%; background: radial-gradient(circle at 50% 48%,#103275 0 26%,#fff 28% 54%,#1c4e9b 57% 64%,#fff 67%); box-shadow: 0 8px 25px rgba(1,12,31,.45), 0 0 0 8px rgba(255,255,255,.07); transform: rotate(-17deg); }
.tb-matchday-teaser-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; max-width: 78%; }
.tb-matchday-teaser-copy small { font-size: 10px; font-weight: 850; letter-spacing: .18em; color: #70d3ff; }
.tb-matchday-teaser-copy b { font-size: 20px; letter-spacing: -.035em; line-height: 1.1; }
.tb-matchday-teaser-copy span { color: #c1e4ff; font-size: 12px; }
.tb-matchday-teaser-go { z-index: 1; margin-left: auto; align-self: flex-end; color: #fff; font-size: 19px; font-weight: 700; }
.tb-arcade-watch { margin-top: 28px; }
.tb-arcade-watch h2 { margin: 0 2px 11px; color: var(--tb-text); font-size: 16px; font-weight: 800; }
.tb-arcade-watch .tb-matchday-teaser { width: 100%; margin: 0; }

@media (max-width: 760px) {
	.md-top { display: block; padding: calc(env(safe-area-inset-top) + 9px) 12px 0; }
	.md-brand { gap: 7px; }
	.md-brand img { width: 33px; height: 33px; }
	.md-brand h1 { font-size: 17px; }
	.md-eyebrow { font-size: 8px; }
	.md-back { width: 32px; height: 32px; border-radius: 9px; font-size: 26px; }
	.md-scoreboard { width: min(380px, 100%); margin: 9px auto 0; padding: 6px 14px 5px; gap: 1px 8px; border-radius: 13px; }
	.md-team { font-size: 9px; gap: 5px; }
	.md-team-mark { width: 21px; height: 21px; border-radius: 6px; font-size: 9px; }
	.md-score { font-size: 21px; }
	.md-matchclock { font-size: 8px; padding-top: 3px; }
	.md-stage { top: calc(env(safe-area-inset-top) + 105px); bottom: calc(env(safe-area-inset-bottom) + 153px); }
	.md-vignette { background: linear-gradient(180deg,rgba(4,13,31,.52),transparent 33%,transparent 64%,rgba(3,11,24,.72)); }
	.md-side-label { display: none; }
	.md-goal { top: 45%; }
	.md-goal-word { font-size: clamp(72px, 17vw, 130px); }
	.md-goal-sub { gap: 8px; padding: 6px 11px; font-size: 9px; }
	.md-caption { bottom: calc(env(safe-area-inset-bottom) + 178px); font-size: 11px; }
	.md-bottom { width: calc(100% - 16px); bottom: calc(env(safe-area-inset-bottom) + 7px); gap: 7px; }
	.md-story { padding: 9px 13px 20px; border-radius: 13px; }
	.md-story-head { font-size: 9px; }
	.md-track { margin-top: 12px; }
	.md-moment span { font-size: 7px; }
	.md-controls { gap: 4px; flex-wrap: nowrap; }
	.md-control { flex: 1; min-width: 0; height: 37px; padding: 0 4px; gap: 3px; border-radius: 8px; font-size: 10px; }
	.md-control-icon { font-size: 15px; }
	.md-info { flex: 0 0 32px; }
	.md-info-text { display: none; }
	.md-hint { font-size: 9px; }
	.md-hint span { display: none; }
	.md-about { top: calc(env(safe-area-inset-top) + 115px); right: 8px; width: min(340px, calc(100% - 16px)); }
}
@media (max-width: 380px) { .md-team > span:not(.md-team-mark) { font-size: 8px; } .md-control span:last-child { font-size: 9px; } .md-goal-sub { font-size: 8px; } }
@media (max-height: 600px) and (max-width: 760px) { .md-stage { top: 96px; bottom: 135px; } .md-hint { display: none; } .md-caption { bottom: 153px; } .md-bottom { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .tb-matchday *, .tb-matchday *::before, .tb-matchday *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
