@font-face {
  font-family: "Tournament Arabic";
  src: url("../drawing-game/arabic-d7c65c17615b.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.tg-stage-host { position:relative; isolation:isolate; overflow:hidden; }
.tg-frame {
  position:absolute; top:0; left:0; width:1920px; height:1080px; overflow:hidden;
  transform-origin:top left; pointer-events:none; direction:ltr; color:#f4f1e9;
  font-family:"Tournament Arabic",Tahoma,Arial,sans-serif;
  text-align:center; text-rendering:optimizeLegibility;
}
.tg-frame, .tg-frame * { box-sizing:border-box; }
.tg-frame [hidden] { display:none !important; }
.tg-frame img { max-width:none; user-select:none; }
.tg-board,.tg-centered { position:absolute; inset:0; }
.tg-head {
  position:absolute; top:22px; left:50%; transform:translateX(-50%); z-index:2;
  display:flex; justify-content:center; width:max-content; max-width:1020px;
}
.tg-match-strip { display:flex; justify-content:center; align-items:center; gap:0; filter:drop-shadow(0 4px 8px #07080ac9); }
.tg-match-strip:empty { display:none; }
.tg-head-side {
  position:relative; display:flex; justify-content:center; align-items:center; gap:12px;
  min-width:132px; max-width:340px; min-height:56px; padding:5px 25px;
  border:1px solid #756451; border-bottom:3px solid #d99f69;
  border-radius:13px 3px 3px 13px;
  background:linear-gradient(120deg, #26232c 0%,#15141b 82%);
}
.tg-head-side:last-child {
  flex-direction:row-reverse; border-color:#445c60; border-bottom-color:#70c6bc;
  border-radius:3px 13px 13px 3px; background:linear-gradient(240deg,#1d3035,#15141b 82%);
}
.tg-head-name { font-size:24px; font-weight:700; line-height:1.45; max-width:250px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tg-head-score { font:700 26px/1.1 "Tournament Arabic",Tahoma,sans-serif; color:#f7d39e; }
.tg-versus {
  display:grid; place-items:center; align-self:stretch; min-width:52px; padding:0 8px;
  background:linear-gradient(165deg,#e4c184,#b88852); border-top:1px solid #fbd7a7; border-bottom:3px solid #71553b;
  font:900 italic 19px/1 Arial,sans-serif; color:#1c191c; letter-spacing:-.07em; text-indent:-2px;
}
.tg-title {
  position:absolute; top:108px; left:155px; right:155px; display:flex; direction:rtl;
  width:max-content; max-width:1480px; margin-inline:auto; justify-content:center;
  align-items:center; gap:23px; padding:6px 23px 8px;
  background:linear-gradient(100deg,rgba(20,18,22,.86),#17181dee 30%,#232021ee);
  border:1px solid #736553; border-radius:7px; box-shadow:0 3px 13px #0006;
}
.tg-title bdi { max-width:1020px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:33px; line-height:1.35; font-weight:700; }
.tg-title small { direction:rtl; font-size:19px; white-space:nowrap; color:#d5c3a6; padding-inline-start:20px; border-inline-start:1px solid #6c5d4d; }
.tg-scenery {
  position:absolute; inset:0; overflow:hidden; pointer-events:none; background:#18202a;
}
.tg-scenery img { position:absolute; display:block; height:auto; }
.tg-ghost-photo {
  width:90%; left:-27%; top:0;
  -webkit-mask-image:linear-gradient(90deg,#000 89%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 89%,transparent 100%);
}
.tg-art-photo {
  width:115%; left:56.6%; top:-8%;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10.5%);
  mask-image:linear-gradient(90deg,transparent 0,#000 10.5%);
}
.tg-scenery::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(0deg,rgba(8,11,17,.45),transparent 61%),
    linear-gradient(90deg,transparent 21%,rgba(8,11,17,.33) 44%,rgba(8,11,17,.33) 56%,transparent 82%);
}
.tg-draw {
  position:absolute; top:264px; left:190px; width:1540px; height:744px;
  transform:scale(.92); transform-origin:top center;
}
.tg-bracket { position:relative; width:100%; height:100%; direction:ltr; }
.tg-legs { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.tg-legs path { fill:none; stroke-linejoin:round; stroke-linecap:round; }
.tg-link-shadow { stroke:#161419e6; stroke-width:8px; }
.tg-link { stroke:#ac9b81; stroke-width:2.2px; }
.tg-link.tg-lit { stroke:#f4c77c; stroke-width:3.5px; }
.tg-col-label {
  position:absolute; top:0; transform:translateX(-50%); width:max-content;
  background:#202027ef; border-radius:4px; padding:1px 11px 3px;
  font-size:15px; line-height:1.5; font-weight:700; color:#eee1cc; box-shadow:0 2px 5px #08090dc4;
}
.tg-team-tile {
  position:absolute; transform:translate(-50%,-50%); height:79px;
  padding:5px 7px 4px; display:flex; justify-content:center; align-items:center; flex-direction:column;
  gap:2px; border:1px solid #746251; border-radius:6px 15px 6px 15px;
  border-bottom:3px solid #6a5544;
  background:linear-gradient(122deg,rgba(48,42,47,.98),rgba(24,25,32,.98) 60%);
  box-shadow:0 3px 9px #05050899, inset 0 1px 0 #ffffff10;
}
.tg-bracket-4 .tg-team-tile { height:110px; gap:4px; }
.tg-bracket-8 .tg-team-tile { height:94px; gap:4px; }
.tg-team-tile::after {
  content:''; position:absolute; bottom:-2px; left:25%; right:25%; height:2px;
  background:#bca47e; opacity:.7; border-radius:4px;
}
.tg-team-tile.tg-winning { border-color:#c19256; }
.tg-team-tile.tg-playing {
  border-color:#85d5c5; border-bottom-color:#6dcbbe;
  box-shadow:0 0 0 1px #152320,0 0 15px #67d7c54d,inset 0 0 15px #5c9c9026;
}
.tg-team-tile.tg-playing::after { background:#b3ffeb; }
.tg-badge {
  position:relative; flex:none; display:grid; align-items:center; justify-items:center;
  width:43px; height:41px; isolation:isolate;
}
.tg-initials {
  width:100%; height:100%; display:grid; place-items:center; color:var(--tg-ink,#cdbea4);
  font-size:25px; line-height:1; font-weight:700;
  border-radius:12px 4px 12px 4px; border:1px solid currentColor;
  background:linear-gradient(150deg,#39373c,#242228);
}
.tg-badge-image { width:100%; height:100%; object-fit:contain; position:absolute; inset:0; }
.tg-bracket-4 .tg-badge { width:54px; height:54px; }
.tg-bracket-8 .tg-badge { width:48px; height:46px; }
.tg-head-badge { width:34px; height:34px; }
.tg-head-badge .tg-initials { font-size:18px; }
.tg-pending-badge { opacity:.8; }
.tg-pending-badge::before,.tg-pending-badge::after {
  content:''; position:absolute; width:13px; height:13px;
  transform:rotate(45deg); border:1px solid #9f9281; border-radius:2px;
}
.tg-pending-badge::after { width:5px; height:5px; border:0; background:#9f9281; }
.tg-pending { background:linear-gradient(120deg,#29282bee,#202025f7); border-color:#655f58; border-bottom-color:#514c47; }
.tg-pending::after { opacity:.3; }
.tg-tile-name {
  font-size:19px; line-height:1.2; font-weight:700;
  width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tg-bracket-4 .tg-tile-name { font-size:23px; }
.tg-pending .tg-tile-name { color:#bbafa1; font-weight:400; }
.tg-crown {
  position:absolute; left:50%; transform:translate(-50%,-50%); width:154px; min-height:148px;
  border:1px solid #efd493; border-bottom:3px solid #b48c51; border-radius:29px 9px;
  display:flex; justify-content:center; align-items:center; flex-direction:column; gap:5px; padding:10px;
  background:radial-gradient(ellipse at 50% 25%,#52442a,#262125 68%,#1c191f);
  box-shadow:0 0 0 4px #141318c9,0 2px 18px #08070596;
}
.tg-trophy { width:102px; height:92px; object-fit:contain; filter:drop-shadow(0 2px 5px #0008); }
.tg-crown-tag { font-size:19px; line-height:1.3; font-weight:700; color:#ffe0a0; }
.tg-awarded { padding-top:8px; }
.tg-champion-team {
  display:flex; flex-direction:column; gap:3px; align-items:center; width:100%; padding-top:7px;
  border-top:1px solid #857052;
}
.tg-champion-team .tg-badge,.tg-bracket-4 .tg-champion-team .tg-badge,.tg-bracket-8 .tg-champion-team .tg-badge { width:48px; height:46px; }
.tg-champion-name { width:100%; font-size:18px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tg-league {
  display:flex; width:100%; height:100%; align-items:center; justify-content:center; gap:25px; direction:rtl;
}
.tg-table {
  border-spacing:0; border-collapse:separate; table-layout:fixed; direction:rtl;
  width:732px; overflow:hidden; border:1px solid #89745c; border-radius:12px 28px;
  background:#202027f2; box-shadow:0 6px 19px #05050870; font-size:23px; font-weight:700; color:#f2eadc;
}
.tg-league-4 .tg-table,.tg-league-8 .tg-table { width:930px; }
.tg-table th { padding:9px 0; background:linear-gradient(0deg,#403630,#4a3b32); color:#f2dec3; font-size:17px; }
.tg-table th:first-child { width:12%; }
.tg-table th:nth-child(2) { width:30%; }
.tg-table td { padding:5px 1px; height:72px; line-height:1.12; border-top:1px solid #534a46; }
.tg-table tbody tr:nth-child(even) { background:#272730f2; }
.tg-table-team { display:flex; flex-direction:column; align-items:center; gap:2px; width:100%; }
.tg-table-team bdi { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:18px; line-height:1.3; }
.tg-table-team .tg-badge { width:37px; height:35px; }
.tg-table-team .tg-initials { font-size:19px; }
.tg-rank { color:#cbbb9d; }
.tg-points { color:#f8d08d; }
.tg-league-playing { box-shadow:inset -4px 0 #81d7c7; }
.tg-league-champion { box-shadow:inset -4px 0 #efc06f; }
.tg-stinger {
  position:absolute; z-index:4; top:0; bottom:0; left:-14%; width:128%; overflow:hidden;
  transform:translateX(120%); will-change:transform;
  clip-path:polygon(9% 0,100% 0,91% 100%,0 100%);
  background:
    linear-gradient(104deg,transparent 0 10%,#f12e47 10.05% 10.75%,#b22139 10.85% 11.5%,transparent 11.6% 87%,#b3895f 87.05% 87.5%,#e93f50 87.55% 89%,transparent 89.05%),
    repeating-linear-gradient(105deg,#201b23 0 28px,#231e25 29px 30px,#201b23 31px 46px);
}
.tg-stinger::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse at center,#6b363e44,transparent 56%);
}
.tg-flash { position:absolute; inset:0; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
.tg-mark { width:243px; height:243px; object-fit:contain; filter:drop-shadow(0 10px 24px #0008); }
.tg-stinger-word { font:900 77px/1 Arial,sans-serif; letter-spacing:-.065em; color:#fff7ec; }
.tg-sweep { animation:tg-right-to-left var(--tg-duration,900ms) both; }
@keyframes tg-right-to-left {
  0% { transform:translateX(120%); animation-timing-function:cubic-bezier(.30,.06,.30,1); }
  43% { transform:translateX(0%); animation-timing-function:linear; }
  57% { transform:translateX(0%); animation-timing-function:cubic-bezier(.65,0,.66,.96); }
  100% { transform:translateX(-120%); }
}
