/* WIGUEL Tournaments */
#wiguel-tourney { --tc: #22d3ee; --tv: #8b5cf6; max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.4rem; }
.wgt-eyebrow { margin: 0 0 .4rem; font: 800 .74rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .28em; text-transform: uppercase; color: var(--tc); }
.wgt-h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.wgt-lead { max-width: 40rem; margin: .8rem 0 0; color: #b9bfe6; font-size: 1.1rem; }
.wgt-hero { padding: 1rem 0 .5rem; }
.wgt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
.wgt-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.wgt-stack { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.wgt-card {
	position: relative; padding: 1.4rem 1.5rem; border-radius: 22px;
	background: radial-gradient(120% 60% at 0% 0%, rgba(34, 211, 238, .1), transparent 60%), linear-gradient(180deg, rgba(22, 25, 54, .88), rgba(9, 10, 24, .94));
	box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .2), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.wgt-card h2 { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 900; }
.wgt-center { text-align: center; padding: 2.4rem 1.5rem; }
.wgt-f { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.wgt-f__l { font: 800 .7rem/1 ui-monospace, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; color: #8f96c2; }
.wgt-in { width: 100%; padding: .75rem .9rem; border: 0; border-radius: 12px; color: #fff; font: 700 1.05rem/1.2 system-ui, sans-serif; background: rgba(7, 7, 15, .75); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .25); }
.wgt-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tc), 0 0 18px rgba(34, 211, 238, .3); }
.wgt-code-in { font: 900 2rem/1 ui-monospace, Menlo, monospace; letter-spacing: .35em; text-align: center; text-transform: uppercase; padding: 1rem; margin-bottom: .6rem; }
.wgt-range { display: flex; align-items: center; gap: 1rem; }
.wgt-range input { flex: 1; accent-color: var(--tc); }
.wgt-num { min-width: 2.6rem; text-align: center; font: 900 1.6rem/1 ui-monospace, Menlo, monospace; color: var(--tc); }
.wgt-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; margin-bottom: 1rem; border-radius: 14px; background: rgba(7, 7, 15, .6); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .16); }
.wgt-seg button { padding: .6rem; border: 0; border-radius: 10px; background: none; color: #a3a9c9; font: 800 .82rem/1 system-ui, sans-serif; cursor: pointer; }
.wgt-seg button[aria-pressed="true"] { color: #04121a; background: linear-gradient(135deg, var(--tc), var(--tv)); }
.wgt-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; max-height: 340px; overflow: auto; margin-bottom: 1rem; padding: .2rem; }
.wgt-pick__g { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: .4rem; border-radius: 12px; cursor: pointer; font-size: .78rem; font-weight: 700; background: rgba(7, 7, 15, .55); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .16); }
.wgt-pick__g img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.wgt-pick__g input { position: absolute; top: .6rem; left: .6rem; width: 18px; height: 18px; accent-color: var(--tc); }
.wgt-pick__g:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tc), 0 0 16px rgba(34, 211, 238, .35); }
.wgt-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.wgt-go { width: 100%; justify-content: center; margin-top: .4rem; }
.wgt-msg { margin: 0 0 .4rem; color: #fb7185; font-weight: 600; font-size: .9rem; }
.wgt-msg:empty { display: none; }
.wgt-note { margin: .8rem 0 0; color: #8f96c2; font-size: .85rem; }
.wgt-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.wgt-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; background: linear-gradient(90deg, var(--tc), var(--tv)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wgt-sub { margin: .5rem 0 0; color: #a3a9c9; }
.wgt-share { display: flex; gap: .6rem; }
.wgt-tl { display: flex; gap: .5rem; overflow-x: auto; margin: 0; padding: .2rem .1rem .6rem; list-style: none; scrollbar-width: thin; }
.wgt-tl__i { position: relative; flex: none; width: 112px; padding: .35rem; border-radius: 12px; background: rgba(9, 10, 24, .85); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .16); opacity: .55; }
.wgt-tl__i img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; display: block; }
.wgt-tl__n { position: absolute; top: .55rem; left: .55rem; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 900 .7rem/1 ui-monospace, monospace; color: #04121a; background: #c7cbea; }
.wgt-tl__t { display: block; margin-top: .3rem; font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wgt-tl__i.is-done { opacity: .9; } .wgt-tl__i.is-done .wgt-tl__n { background: #34d399; }
.wgt-tl__i.is-cur { opacity: 1; box-shadow: inset 0 0 0 2px var(--tc), 0 0 22px rgba(34, 211, 238, .45); }
.wgt-tl__i.is-cur .wgt-tl__n { background: var(--tc); }
.wgt-board { display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: 0; list-style: none; max-height: 560px; overflow: auto; }
.wgt-row { display: grid; grid-template-columns: 1.8rem 34px minmax(0, 1fr) auto auto auto; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 12px; background: rgba(7, 7, 15, .5); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .12); }
.wgt-row.is-me { box-shadow: inset 0 0 0 1.5px var(--tc); }
.wgt-row.is-kicked, .wgt-row.is-left { opacity: .45; }
.wgt-row.is-fin .wgt-row__st { color: #34d399; }
.wgt-row__pos { font: 900 .9rem/1 ui-monospace, monospace; color: #8f96c2; text-align: center; }
.wgt-row__av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; color: #04121a; background: linear-gradient(135deg, var(--tc), var(--tv)); }
.wgt-row__name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgt-row__st { font-size: .78rem; color: #a3a9c9; white-space: nowrap; }
.wgt-row__st.is-wait { color: #fbbf24; }
.wgt-row__pts { font: 900 .9rem/1 ui-monospace, monospace; color: #fff; }
.wgt-kick { width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; color: #fb7185; background: rgba(251, 113, 133, .12); font-size: 1.1rem; line-height: 1; }
.wgt-wait { color: #fbbf24; font-weight: 700; margin: 1rem 0 .4rem; }
.wgt-link { padding: 0; border: 0; background: none; color: #8f96c2; text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.wgt-acts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.wgt-start { flex: 1 1 100%; justify-content: center; }
.wgt-danger { padding: .6rem 1rem; border: 0; border-radius: 12px; cursor: pointer; font: 800 .78rem/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fda4af; background: rgba(225, 29, 72, .12); box-shadow: inset 0 0 0 1px rgba(225, 29, 72, .4); }
.wgt-glist { margin: 0; padding-left: 1.3rem; columns: 2; color: #c7cbea; font-size: .92rem; }
.wgt-play { border-radius: 22px; overflow: hidden; background: #0b0c1d; box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .2); }
.wgt-play__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .9rem 1.1rem; }
.wgt-play__bar.is-practice { background: linear-gradient(90deg, rgba(251, 191, 36, .2), transparent); }
.wgt-play__bar.is-scored { background: linear-gradient(90deg, rgba(34, 211, 238, .25), rgba(139, 92, 246, .2)); }
.wgt-play__mode { font: 800 .78rem/1.4 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.is-practice .wgt-play__mode { color: #fde68a; } .is-scored .wgt-play__mode { color: #a5f3fc; }
.wgt-stage { padding: .6rem; }
.wgt-loading { text-align: center; padding: 3rem 1rem; color: #8f96c2; }
.wgt-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .8rem; max-width: 640px; width: 100%; margin: 1rem auto 0; }
.wgt-pod { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; animation: wgt-rise .8s cubic-bezier(.2, .9, .3, 1.2) both; }
.wgt-pod--2 { animation-delay: .2s; } .wgt-pod--3 { animation-delay: .35s; }
@keyframes wgt-rise { from { opacity: 0; transform: translateY(40px); } }
.wgt-pod__medal { font-size: 2.6rem; filter: drop-shadow(0 0 14px rgba(251, 191, 36, .6)); }
.wgt-pod__name { font-size: 1.15rem; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wgt-pod__pts { font: 800 .85rem/1 ui-monospace, monospace; color: #a5f3fc; }
.wgt-pod__step { display: grid; place-items: center; width: 100%; margin-top: .4rem; border-radius: 14px 14px 0 0; font: 900 2rem/1 ui-monospace, monospace; color: rgba(255, 255, 255, .85); background: linear-gradient(180deg, rgba(139, 92, 246, .55), rgba(34, 211, 238, .18)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.wgt-pod--1 .wgt-pod__step { height: 150px; background: linear-gradient(180deg, rgba(251, 191, 36, .75), rgba(244, 114, 182, .25)); }
.wgt-pod--2 .wgt-pod__step { height: 110px; } .wgt-pod--3 .wgt-pod__step { height: 80px; }
.wgt-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translateX(-50%); padding: .8rem 1.2rem; border-radius: 14px; font-weight: 700; color: #04121a; background: linear-gradient(135deg, #22d3ee, #a78bfa); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); animation: wgt-rise .4s ease both; }
.wgt-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9998; pointer-events: none; }
@media (max-width: 860px) {
	.wgt-grid, .wgt-cols { grid-template-columns: 1fr; }
	.wgt-opts { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
	.wgt-row { grid-template-columns: 1.4rem 30px minmax(0, 1fr) auto auto; gap: .45rem; padding: .45rem .55rem; }
	.wgt-row__st { grid-column: 3 / -1; grid-row: 2; white-space: normal; }
	.wgt-row__av { width: 30px; height: 30px; }
	.wgt-glist { columns: 1; }
	.wgt-stage { padding: 0; }
}
/* fixes */
.wgt-pick[hidden], .wgt-f[hidden] { display: none; }
body:has(#wiguel-tourney) .page__head { display: none; }
.wgt-row { grid-template-columns: 1.6rem 34px minmax(0, 1fr) auto auto; }
.wgt-row__st { grid-column: 3 / -1; grid-row: 2; white-space: normal; margin-top: -.2rem; }
.wgt-row:not(:has(.wgt-row__st:not(:empty))) .wgt-row__st { display: none; }
.wgt-opts { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.wgt-in[type="number"] { padding-right: .4rem; }

/* Chat */
.wgt-chat { display: flex; flex-direction: column; gap: .7rem; }
.wgt-chat h2 { margin-bottom: 0; }
.wgt-chat__list { display: flex; flex-direction: column; gap: .35rem; height: 260px; overflow-y: auto; margin: 0; padding: .6rem; list-style: none; border-radius: 14px; background: rgba(7, 7, 15, .55); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .14); }
.wgt-chat__m { position: relative; padding-right: 1.6rem; font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.wgt-chat__m b { margin-right: .45rem; color: #22d3ee; }
.wgt-chat__m.is-react span { font-size: 1.3rem; }
.wgt-chat__empty { color: #8f96c2; font-size: .9rem; }
.wgt-chat__rep { position: absolute; right: 0; top: 0; padding: 0 .2rem; border: 0; background: none; color: #8f96c2; cursor: pointer; opacity: 0; font-size: .85rem; }
.wgt-chat__m:hover .wgt-chat__rep, .wgt-chat__rep:focus { opacity: 1; }
@media (hover: none) { .wgt-chat__rep { opacity: .5; } }
.wgt-chat__react { display: flex; flex-wrap: wrap; gap: .3rem; }
.wgt-chat__react button { width: 40px; height: 40px; border: 0; border-radius: 12px; font-size: 1.25rem; cursor: pointer; background: rgba(7, 7, 15, .6); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .16); transition: transform .2s cubic-bezier(.2, 1.6, .4, 1); }
.wgt-chat__react button:hover { transform: scale(1.18) rotate(-6deg); }
.wgt-chat__form { display: flex; gap: .5rem; }
.wgt-chat__form .btn { padding: .7rem 1rem; }
.wgt-chat__form[hidden], .wgt-chat__react[hidden] { display: none; }
.wgt-float { position: fixed; bottom: 10vh; z-index: 9997; font-size: 2.6rem; pointer-events: none; animation: wgt-float 2.6s ease-out forwards; }
@keyframes wgt-float { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-60vh) scale(1) rotate(-12deg); } }

/* 3, 2, 1 */
.wgt-count { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: rgba(4, 4, 12, .82); backdrop-filter: blur(6px); }
.wgt-count__t { font: 800 .9rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .25em; text-transform: uppercase; color: #a5f3fc; text-align: center; padding: 0 1rem; }
.wgt-count__n { font: 900 clamp(6rem, 22vw, 12rem)/1 system-ui, sans-serif; background: linear-gradient(135deg, #22d3ee, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(34, 211, 238, .6)); animation: wgt-pop .9s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes wgt-pop { from { transform: scale(2.2); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); } }

/* QR and rematch */
.wgt-qr { text-align: center; }
.wgt-qr__img { width: min(220px, 100%); margin: 0 auto; padding: 10px; border-radius: 16px; background: #fff; }
.wgt-qr__img svg { display: block; width: 100%; height: auto; }
.wgt-rematch { max-width: 520px; align-self: center; }
.wgt-center-t { text-align: center; }
@media (prefers-reduced-motion: reduce) { .wgt-count__n, .wgt-float { animation: none; } }
.wgt-more { padding: .5rem .7rem; color: #8f96c2; font-size: .88rem; text-align: center; }
.wgt-prog { height: 10px; margin: 1rem auto .2rem; max-width: 420px; border-radius: 10px; overflow: hidden; background: rgba(148, 163, 255, .14); }
.wgt-prog span { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #8b5cf6); box-shadow: 0 0 14px rgba(34, 211, 238, .7); transition: width .8s ease; }
.wgt-eye { margin-left: .5rem; width: 46px; height: 46px; vertical-align: middle; border: 0; border-radius: 14px; font-size: 1.3rem; cursor: pointer; background: rgba(7, 7, 15, .6); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .25); }
.wgt-eye:hover { box-shadow: inset 0 0 0 1px #22d3ee, 0 0 16px rgba(34, 211, 238, .4); }
.wgt-qr__img { position: relative; overflow: hidden; }
.wgt-qr__img.is-hidden svg { filter: blur(14px); }
.wgt-qr__show { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; padding: .7rem 1rem; border: 0; border-radius: 12px; cursor: pointer; font: 800 .85rem/1 system-ui, sans-serif; color: #04121a; background: linear-gradient(135deg, #22d3ee, #a78bfa); }

/* Open tournaments */
.wgt-open { display: flex; flex-direction: column; gap: .8rem; }
.wgt-open__head { display: flex; align-items: center; gap: .8rem; }
.wgt-open__head h2 { margin: 0; font-size: 1.5rem; font-weight: 900; }
.wgt-live { display: inline-flex; align-items: center; gap: .4rem; font: 800 .68rem/1 ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #fb7185; }
.wgt-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; animation: wgt-live 1.6s ease-out infinite; }
@keyframes wgt-live { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(244, 63, 94, 0); } }
.wgt-open__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .9rem; }
.wgt-open__empty { margin: 0; padding: 1.2rem; border-radius: 16px; color: #a3a9c9; background: rgba(9, 10, 24, .7); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .14); }
.wgt-oc { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .8rem; border-radius: 18px; background: linear-gradient(180deg, rgba(22, 25, 54, .88), rgba(9, 10, 24, .94)); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .2); transition: transform .3s ease, box-shadow .3s ease; }
.wgt-oc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px #22d3ee, 0 16px 40px -18px rgba(34, 211, 238, .6); }
.wgt-oc__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 12px; overflow: hidden; }
.wgt-oc__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.wgt-oc__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.wgt-oc__title { font-size: 1.05rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgt-oc__meta { color: #a3a9c9; font-size: .78rem; }
.wgt-oc__bar { display: block; height: 6px; border-radius: 6px; background: rgba(148, 163, 255, .14); overflow: hidden; }
.wgt-oc__bar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #8b5cf6); }
.wgt-oc__count { font: 800 .75rem/1 ui-monospace, monospace; color: #a5f3fc; }
.wgt-oc__join { padding: .7rem 1.1rem; }
.wgt-switch { display: flex; align-items: center; gap: .7rem; margin: .2rem 0 1rem; cursor: pointer; font-size: .9rem; color: #c7cbea; }
.wgt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wgt-switch__ui { position: relative; flex: none; width: 46px; height: 26px; border-radius: 26px; background: rgba(148, 163, 255, .25); transition: background .25s ease; }
.wgt-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s ease; }
.wgt-switch input:checked + .wgt-switch__ui { background: linear-gradient(135deg, #22d3ee, #8b5cf6); }
.wgt-switch input:checked + .wgt-switch__ui::after { transform: translateX(20px); }
.wgt-switch input:focus-visible + .wgt-switch__ui { outline: 3px solid #22d3ee; outline-offset: 2px; }
.wgt-title2 { margin: .4rem 0 0; font-size: 1.3rem; font-weight: 800; color: #e9ebfa; }
.wgt-badge { display: inline-block; margin-right: .6rem; padding: .25rem .55rem; border-radius: 999px; font: 800 .66rem/1 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #04121a; background: #a3e635; vertical-align: middle; }
@media (max-width: 600px) { .wgt-open__list { grid-template-columns: 1fr; } .wgt-oc { grid-template-columns: 72px minmax(0, 1fr); } .wgt-oc__join { grid-column: 1 / -1; } }
.wgt-vis { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.1rem; }
.wgt-vis__b { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: .9rem 1rem; border: 0; border-radius: 16px; cursor: pointer; text-align: left; color: #e9ebfa; background: rgba(7, 7, 15, .6); box-shadow: inset 0 0 0 1px rgba(148, 163, 255, .2); transition: box-shadow .25s ease, transform .2s ease; }
.wgt-vis__b b { font-size: 1.05rem; } .wgt-vis__b small { color: #a3a9c9; font-size: .78rem; line-height: 1.35; }
.wgt-vis__i { font-size: 1.5rem; }
.wgt-vis__b[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #22d3ee, 0 0 22px rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); }
.wgt-pass { position: relative; display: block; }
.wgt-pass .wgt-in { padding-right: 3rem; }
.wgt-pass__eye { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; cursor: pointer; font-size: 1.1rem; }
.wgt-badge.is-private { background: #fbbf24; }
@media (max-width: 420px) { .wgt-vis { grid-template-columns: 1fr; } }
