<% source_mode = local_assigns.fetch(:source_mode, "localstorage") display_mode = local_assigns.fetch(:display_mode, "fullscreen") show_mat_banner = local_assigns.fetch(:show_mat_banner, false) show_stats = local_assigns.fetch(:show_stats, false) mat = local_assigns[:mat] match = local_assigns[:match] tournament = local_assigns[:tournament] || match&.tournament fullscreen = display_mode == "fullscreen" root_style = if fullscreen "min-height: 100vh; background: #000; color: #fff; display: flex; align-items: stretch; justify-content: stretch; padding: 0; margin: 0; position: relative;" elsif show_stats "background: #000; color: #fff; padding: 0; margin: 0; position: relative; width: 100%; border: 1px solid #222;" else "background: #000; color: #fff; display: flex; align-items: stretch; justify-content: stretch; padding: 0; margin: 0; position: relative; width: 100%; min-height: 260px; border: 1px solid #222;" end inner_style = if fullscreen "display: grid; grid-template-rows: auto 1fr; width: 100vw; min-height: 100vh;" elsif show_stats "display: grid; grid-template-rows: auto auto auto; width: 100%;" else "display: grid; grid-template-rows: auto 1fr; width: 100%; min-height: 260px;" end board_style = fullscreen ? "display: grid; grid-template-columns: 1fr 1.3fr 1fr; width: 100%; min-height: 0;" : "display: grid; grid-template-columns: 1fr 1.2fr 1fr; width: 100%; min-height: 0; min-height: 260px;" panel_padding = fullscreen ? "2vw" : "1rem" name_size = fullscreen ? "clamp(2rem, 4vw, 4rem)" : "clamp(1rem, 2vw, 1.8rem)" school_size = fullscreen ? "clamp(1rem, 2vw, 2rem)" : "clamp(0.85rem, 1.3vw, 1.1rem)" score_size = fullscreen ? "clamp(8rem, 18vw, 16rem)" : "clamp(3rem, 8vw, 6rem)" period_size = fullscreen ? "clamp(1.5rem, 3vw, 2.5rem)" : "clamp(1rem, 2vw, 1.5rem)" clock_size = fullscreen ? "clamp(6rem, 16vw, 14rem)" : "clamp(3rem, 10vw, 5.5rem)" banner_offset = fullscreen ? "6vw" : "2rem" banner_border = fullscreen ? "0.45vw" : "4px" center_border = fullscreen ? "1vw" : "6px" %>
<% if show_mat_banner %>
Mat <%= mat&.name %>
Bout <%= match&.bout_number || "" %>
<% else %>
Bout <%= match&.bout_number || "" %>
<% end %>
NO MATCH
0
No Match
-
No Match
NO MATCH
0
<% if show_stats %>
Red Stats

        
Green Stats

        
Last Match Result
-
<% end %>
; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;">
; font-weight: 800; line-height: 1; margin-top: 0.5vh;">