.dwem-public {
	--dwem-primary: #fff;
	--dwem-accent: #f47c20;
	--dwem-bg: #101114;
	background:
		linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 28px 28px,
		var(--dwem-bg);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 14px;
	box-sizing: border-box;
	color: var(--dwem-primary);
	font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	margin: 24px 0;
	overflow: hidden;
}

.dwem-public *,
.dwem-public *::before,
.dwem-public *::after { box-sizing: border-box; }
.dwem-public h2, .dwem-public h3, .dwem-public p { color: inherit; margin: 0; }

.dwem-panel-header,
.dwem-display-header {
	align-items: center;
	background: rgba(0,0,0,.32);
	border-bottom: 3px solid var(--dwem-accent);
	display: flex;
	justify-content: space-between;
	padding: 22px 28px;
}

.dwem-panel-header h2,
.dwem-display-header h2 {
	font-size: clamp(25px, 4vw, 52px);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1;
	text-transform: uppercase;
}

.dwem-kicker {
	color: var(--dwem-accent);
	display: block;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .18em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.dwem-live-dot {
	align-items: center;
	display: flex;
	font-size: 12px;
	font-weight: 800;
	gap: 8px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.dwem-live-dot::before {
	animation: dwem-pulse 1.6s infinite;
	background: var(--dwem-accent);
	border-radius: 50%;
	content: "";
	height: 10px;
	width: 10px;
}

.dwem-stats {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(3, 1fr);
	background: rgba(255,255,255,.12);
}

.dwem-stats > div {
	background: rgba(0,0,0,.3);
	padding: 18px 24px;
}

.dwem-stats span {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	opacity: .66;
	text-transform: uppercase;
}

.dwem-stats strong {
	display: block;
	font-size: clamp(22px, 3vw, 36px);
	line-height: 1.15;
	margin-top: 5px;
}

.dwem-ranking { padding: 14px 18px 20px; }
.dwem-ranking-head,
.dwem-ranking-row {
	align-items: center;
	display: grid;
	gap: 16px;
	grid-template-columns: 70px minmax(160px, 1fr) 100px 120px;
	padding: 11px 16px;
}

.dwem-ranking-head {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .14em;
	opacity: .55;
	text-transform: uppercase;
}

.dwem-ranking-row {
	background: rgba(255,255,255,.055);
	border-left: 3px solid transparent;
	border-radius: 7px;
	margin-bottom: 6px;
}

.dwem-ranking-row.is-leader {
	background: linear-gradient(90deg, rgba(244,124,32,.25), rgba(244,124,32,.06));
	border-left-color: var(--dwem-accent);
}

.dwem-rank {
	color: var(--dwem-accent);
	font-size: 22px;
	font-weight: 900;
}

.dwem-name strong { display: block; font-size: 18px; text-transform: uppercase; }
.dwem-name small { display: block; opacity: .58; }
.dwem-score { color: var(--dwem-accent); font-size: 28px; text-align: right; }
.dwem-empty { opacity: .65; padding: 32px; text-align: center; }

.dwem-public-matches {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 20px;
}

.dwem-public-match {
	background: rgba(255,255,255,.055);
	border: 1px solid rgba(255,255,255,.09);
	border-radius: 9px;
	overflow: hidden;
}

.dwem-public-match.is-running { border-color: var(--dwem-accent); box-shadow: 0 0 20px rgba(244,124,32,.14); }
.dwem-match-meta { display: flex; font-size: 10px; font-weight: 800; justify-content: space-between; letter-spacing: .1em; opacity: .65; padding: 10px 14px; text-transform: uppercase; }
.dwem-public-match.is-running .dwem-match-meta { background: var(--dwem-accent); color: #111; opacity: 1; }
.dwem-match-player { align-items: center; border-top: 1px solid rgba(255,255,255,.07); display: flex; font-size: 18px; font-weight: 700; justify-content: space-between; padding: 11px 14px; text-transform: uppercase; }
.dwem-match-player strong { font-size: 24px; }
.dwem-match-player.is-winner { color: var(--dwem-accent); }

.dwem-bracket-scroll {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	padding: 24px;
}

.dwem-bracket-round {
	display: flex;
	flex: 0 0 250px;
	flex-direction: column;
}

.dwem-bracket-round h3 {
	color: var(--dwem-accent);
	font-size: 12px;
	letter-spacing: .12em;
	margin-bottom: 12px;
	text-align: center;
	text-transform: uppercase;
}

.dwem-bracket-round-matches {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-around;
	gap: 14px;
}

.dwem-bracket-match {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 7px;
	box-shadow: 0 5px 16px rgba(0,0,0,.22);
	overflow: hidden;
}

.dwem-bracket-match > div {
	display: flex;
	font-size: 13px;
	justify-content: space-between;
	padding: 9px 11px;
}

.dwem-bracket-match > div + div { border-top: 1px solid rgba(255,255,255,.1); }
.dwem-bracket-match .is-winner { background: rgba(244,124,32,.18); color: var(--dwem-accent); font-weight: 800; }

.dwem-display {
	border-radius: 0;
	margin: 0;
	min-height: min(100vh, 1080px);
	padding-bottom: 94px;
	position: relative;
}

.dwem-display-header { padding: 25px 38px; }
.dwem-brand { align-items: center; display: flex; gap: 20px; }
.dwem-brand img { max-height: 76px; max-width: 220px; object-fit: contain; }
.dwem-brand-mark { align-items: center; background: var(--dwem-accent); border-radius: 50%; color: #111; display: flex; font-size: 23px; font-weight: 900; height: 62px; justify-content: center; width: 62px; }
.dwem-event-meta { font-size: 16px; font-weight: 700; opacity: .72; }
.dwem-display-content { padding: 20px 28px; }
.dwem-display-content .dwem-ranking { padding-left: 0; padding-right: 0; }
.dwem-display-content .dwem-public-matches { padding: 0; }

.dwem-winner {
	background: linear-gradient(90deg, var(--dwem-accent), #ffb04f);
	color: #111;
	padding: 14px 34px;
	text-align: center;
}

.dwem-winner span { font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.dwem-winner strong { display: block; font-size: clamp(28px, 5vw, 58px); font-style: italic; text-transform: uppercase; }

.dwem-brand-footer {
	align-items: center;
	background: #08090a;
	border-top: 3px solid var(--dwem-accent, #f47c20);
	color: #fff;
	display: flex;
	gap: 22px;
	justify-content: space-between;
	min-height: 76px;
	padding: 13px 22px;
	width: 100%;
}

.dwem-brand-footer.is-display {
	bottom: 0;
	position: absolute;
}

.dwem-footer-logo {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
}

.dwem-footer-logo img {
	max-height: 48px;
	max-width: 150px;
	object-fit: contain;
}

.dwem-footer-mark {
	align-items: center;
	background: var(--dwem-accent, #f47c20);
	border-radius: 50%;
	color: #111;
	display: flex;
	font-size: 15px;
	font-weight: 900;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.dwem-footer-claim {
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
}

.dwem-footer-contact {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	font-size: 12px;
	font-weight: 800;
	text-align: right;
}

.dwem-footer-contact a {
	color: var(--dwem-accent, #f47c20);
	text-decoration: none;
}

.dwem-live-header > div:last-child { text-align: right; }
.dwem-live-meta { display: block; font-size: 13px; margin-top: 7px; opacity: .65; }
.dwem-live-content { padding: 0; }
.dwem-live-section { padding: 22px; }
.dwem-live-section + .dwem-live-section { border-top: 1px solid rgba(255,255,255,.1); }
.dwem-live-section > h3 { color: var(--dwem-accent); font-size: 16px; letter-spacing: .12em; margin: 0 0 14px; text-transform: uppercase; }
.dwem-live-section .dwem-public-matches,
.dwem-live-section .dwem-bracket-scroll { padding: 0; }

.dwem-no-active-content {
	min-height: 260px;
	padding: clamp(55px, 8vw, 95px) 28px;
	text-align: center;
}

.dwem-no-active-content .dwem-kicker { display: block; }
.dwem-no-active-content h2 { font-size: clamp(28px, 5vw, 52px); }
.dwem-error { padding: 20px; }
.dwem-public.is-refreshed { animation: dwem-fade .35s ease-out; }

.dwem-standalone-display {
	background: #08090a;
	margin: 0;
}

.dwem-auto-page {
	--dwem-auto-width: 1280px;
	background: #101114;
	color: #fff;
	font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	min-height: 70vh;
}

.dwem-auto-container {
	margin-inline: auto;
	max-width: var(--dwem-auto-width);
	padding-inline: 28px;
	width: 100%;
}

.dwem-directory-hero,
.dwem-event-detail-hero {
	background:
		linear-gradient(110deg, rgba(244,124,32,.17), transparent 48%),
		linear-gradient(135deg, #191b20, #101114);
	border-bottom: 1px solid rgba(255,255,255,.1);
	overflow: hidden;
	padding-block: clamp(70px, 10vw, 135px);
	position: relative;
}

.dwem-directory-hero::after,
.dwem-event-detail-hero::after {
	border: 48px solid rgba(255,255,255,.025);
	border-radius: 50%;
	content: "";
	height: 410px;
	position: absolute;
	right: -70px;
	top: -135px;
	width: 410px;
}

.dwem-directory-hero h1,
.dwem-event-detail-hero h1 {
	color: #fff;
	font-size: clamp(3rem, 7vw, 6.8rem);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -.04em;
	line-height: .95;
	margin: 0 0 18px;
	position: relative;
	text-transform: uppercase;
	z-index: 1;
}

.dwem-directory-hero p,
.dwem-event-detail-hero p {
	color: rgba(255,255,255,.7);
	font-size: clamp(17px, 2vw, 23px);
	margin: 0;
	max-width: 760px;
	position: relative;
	z-index: 1;
}

.dwem-directory-content {
	padding-block: clamp(50px, 7vw, 95px);
}

.dwem-event-picker {
	align-items: center;
	background: rgba(255,255,255,.045);
	border: 1px solid rgba(255,255,255,.1);
	display: flex;
	gap: 22px;
	margin-bottom: 34px;
	padding: 18px 22px;
}

.dwem-event-picker label {
	color: var(--dwem-accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.dwem-event-picker select {
	background: #fff;
	border: 0;
	border-radius: 3px;
	color: #111;
	flex: 1;
	max-width: 600px;
	padding: 10px 12px;
}

.dwem-event-cards {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dwem-event-card {
	background:
		radial-gradient(circle at 110% 110%, rgba(244,124,32,.13), transparent 45%),
		#191b20;
	border: 1px solid rgba(255,255,255,.1);
	color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 310px;
	overflow: hidden;
	padding: 24px;
	position: relative;
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}

.dwem-event-card::before {
	background: var(--dwem-accent);
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 62%;
	top: 0;
	transition: right .25s ease;
}

.dwem-event-card:hover {
	border-color: var(--dwem-accent);
	color: #fff;
	transform: translateY(-5px);
}

.dwem-event-card:hover::before { right: 0; }

.dwem-event-card-top {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.dwem-event-status,
.dwem-event-mode {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.dwem-event-status {
	background: rgba(255,255,255,.1);
	border-radius: 999px;
	padding: 5px 9px;
}

.dwem-event-card.is-active .dwem-event-status,
.dwem-event-status.is-active {
	background: var(--dwem-accent);
	color: #111;
}

.dwem-event-card.is-finished { opacity: .72; }
.dwem-event-mode { color: var(--dwem-accent); }
.dwem-event-card-body { margin-block: auto; padding-block: 35px; }

.dwem-event-date {
	color: rgba(255,255,255,.57);
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.dwem-event-card h2 {
	color: #fff;
	font-size: clamp(26px, 3vw, 40px);
	font-style: italic;
	line-height: 1;
	margin: 0 0 13px;
	text-transform: uppercase;
}

.dwem-event-card p { color: rgba(255,255,255,.62); margin: 0; }

.dwem-event-card-link {
	align-items: center;
	color: var(--dwem-accent);
	display: flex;
	font-size: 11px;
	font-weight: 900;
	justify-content: space-between;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.dwem-event-card-link strong { font-size: 21px; }

.dwem-directory-empty {
	border: 1px solid rgba(255,255,255,.1);
	padding: 70px 30px;
	text-align: center;
}

.dwem-directory-empty h2 { color: #fff; }
.dwem-back-link { color: var(--dwem-accent); display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .1em; margin-bottom: 35px; text-decoration: none; text-transform: uppercase; }

.dwem-event-detail-heading {
	align-items: flex-end;
	display: flex;
	gap: 30px;
	justify-content: space-between;
	position: relative;
	z-index: 1;
}

.dwem-event-detail-heading .dwem-event-status {
	flex: 0 0 auto;
	font-size: 12px;
	padding: 8px 13px;
}

.dwem-event-view-nav {
	align-items: center;
	border-bottom: 1px solid rgba(255,255,255,.11);
	display: flex;
	gap: 4px;
	margin-bottom: 28px;
	overflow-x: auto;
	padding-top: 28px;
}

.dwem-event-view-nav a {
	border-bottom: 3px solid transparent;
	color: rgba(255,255,255,.7);
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .1em;
	padding: 13px 16px;
	text-decoration: none;
	text-transform: uppercase;
}

.dwem-event-view-nav a:hover,
.dwem-event-view-nav a.is-active {
	border-bottom-color: var(--dwem-accent);
	color: #fff;
}

.dwem-event-view-nav .dwem-tv-link {
	background: var(--dwem-accent);
	border-bottom: 0;
	color: #111;
	margin-left: auto;
}

.dwem-event-view-nav .dwem-tv-link:hover { color: #111; }
.dwem-event-auto-content { padding-bottom: 80px; }
.dwem-event-auto-content > .dwem-public { margin: 0 0 28px; }

@keyframes dwem-pulse { 50% { box-shadow: 0 0 0 7px rgba(244,124,32,0); opacity: .65; } }
@keyframes dwem-fade { from { opacity: .72; } to { opacity: 1; } }

@media (max-width: 720px) {
	.dwem-panel-header, .dwem-display-header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px; }
	.dwem-stats { grid-template-columns: 1fr 1fr; }
	.dwem-stats > div:last-child { grid-column: span 2; }
	.dwem-ranking { padding: 8px; }
	.dwem-ranking-head { display: none; }
	.dwem-ranking-row { gap: 8px; grid-template-columns: 42px 1fr 42px 64px; padding: 10px; }
	.dwem-public-matches { grid-template-columns: 1fr; padding: 10px; }
	.dwem-event-meta { font-size: 13px; }
	.dwem-display-content { padding: 10px; }
	.dwem-brand-footer { align-items: center; flex-direction: column; gap: 8px; padding: 14px; text-align: center; }
	.dwem-footer-contact { text-align: center; }
	.dwem-display { padding-bottom: 175px; }
	.dwem-live-header > div:last-child { text-align: left; }
	.dwem-auto-container { padding-inline: 16px; }
	.dwem-event-cards { grid-template-columns: 1fr; }
	.dwem-event-picker { align-items: stretch; flex-direction: column; }
	.dwem-event-picker select { max-width: none; width: 100%; }
	.dwem-event-detail-heading { align-items: flex-start; flex-direction: column; }
	.dwem-event-view-nav .dwem-tv-link { margin-left: 0; }
}

@media (min-width: 721px) and (max-width: 1050px) {
	.dwem-event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
