@font-face {
  font-family: DBDArabic;
  src: url('/drawing-game/arabic-d7c65c17615b.woff') format('woff');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #111a27;
  --paper: #e9ece6;
  --line: #ffffff20;
  --muted: #9daab9;
  --blue: #5366ed;
  --lime: #d6f05d;
  --coral: #f77b58;
  --ice: #72baca;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 14px/1.7 DBDArabic,Tahoma,Arial,sans-serif; }
a { color: inherit; text-decoration: none; }
button,input,select { font: inherit; }
button { cursor: pointer; border: 1px solid #ffffff30; border-radius: 4px; background: #253244; color: var(--paper); padding: 9px 14px; transition: background-color .15s ease, border-color .15s ease; }
button:disabled { opacity: .42; cursor: default; }
button:focus-visible,input:focus-visible,select:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
input,select { width: 100%; padding: 11px 13px; border: 1px solid #ffffff35; background: #172332; color: var(--paper); border-radius: 4px; min-width: 0; }
label { display: block; margin: 12px 0 5px; }
h1,h2,p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(29px,3vw,44px); font-weight: 800; line-height: 1.5; letter-spacing: -.6px; }
h1 em { font-style: normal; color: var(--lime); }
h2 { font-size: 18px; margin: 0; line-height: 1.6; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none!important; }

.tl-top { max-width: 1512px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 30px; border-bottom: 1px solid var(--line); }
.tl-brand { display: flex; align-items: center; gap: 10px; }
.tl-brand img { width: 33px; height: 33px; }
.tl-brand b { font-size: 13px; }
.tl-brand bdi { color: var(--paper); font: 700 13px system-ui; }
.tl-top>a:last-child { font-size: 12px; color: #b6c1ce; }
.tl-shell { max-width: 1512px; margin: auto; padding: 28px 30px 60px; }
.tl-studio-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 26px; }
.tl-heading { display: flex; align-items: center; gap: 18px; }
.tl-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #adb8c5; margin: 0 0 6px; }
.tl-eyebrow>span { width: 20px; height: 5px; background: var(--coral); border-inline-start: 6px solid var(--lime); box-shadow: -6px 0 var(--blue); margin-inline-end: 4px; }
.tl-help { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: transparent; color: #b5c0cf; border-color: #ffffff38; }
.tl-shell .db-game-tools { flex-wrap: nowrap; justify-content: start; gap: 8px; margin: 0; }
.tl-shell .db-game-tool { min-inline-size: 78px; padding: 2px 4px; gap: 7px; color: #bac4d2; font-size: 11px; }
.tl-shell .db-game-tool-icon { inline-size: 43px; block-size: 43px; background: transparent; color: #d6dee7; border: 1px solid #ffffff38; box-shadow: none; }
.tl-shell .db-game-tool-icon svg { inline-size: 20px; block-size: 20px; }
.tl-shell .db-game-tool:hover .db-game-tool-icon { background: #29374a; border-color: var(--paper); color: var(--paper); }
.tl-shell .db-game-tool:is([aria-expanded="true"],[aria-pressed="true"],[data-game-active="true"]) .db-game-tool-icon { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: 0 0 0 3px #d6f05d18; }
.tl-shell .db-game-tool:is([data-state="connected"],[data-state="partial"]) .db-game-tool-icon { background: var(--ice); color: var(--ink); border-color: var(--ice); box-shadow: 0 0 0 3px #72baca20; }
.tl-shell .db-game-tool:focus-visible { outline-color: var(--lime); }

.tl-categories { display: flex; justify-content: flex-start; gap: 10px; padding: 19px 0 22px; margin: 0 0 27px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-categories::before { content: 'المحتوى'; font-size: 11px; color: var(--muted); align-self: center; margin-inline-end: 16px; padding-inline-start: 2px; }
.tl-categories .db-game-tool { --category-color: #72baca; min-inline-size: 110px; gap: 8px; }
.tl-categories [data-category=killers] { --category-color: #f77b58; }
.tl-categories [data-category=killerperks] { --category-color: #b3b8ff; }
.tl-categories [data-category=survivorperks] { --category-color: #d6f05d; }
.tl-categories [data-category=survivors] { --category-color: #f7ba69; }
.tl-categories [data-category=custom] { --category-color: #c2c8d8; }
.tl-categories .db-game-tool>span:last-child { max-width: 110px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tl-categories .db-game-tool-icon { inline-size: 49px; block-size: 49px; color: var(--category-color); border-color: #ffffff30; }
.tl-categories .db-game-tool-icon svg { inline-size: 24px; block-size: 24px; }
.tl-category-mark .tl-solid { fill: currentColor; stroke: none; }
.tl-category-mark .tl-detail { fill: none; stroke: var(--paper); stroke-width: 1.5; }
.tl-category-mark .tl-cut { fill: var(--ink); stroke: none; }
.tl-category-mark .tl-cut-line { fill: none; stroke: var(--ink); stroke-width: 1.7; }
.tl-categories [aria-pressed=true] .tl-category-mark .tl-cut { fill: var(--category-color); }
.tl-categories [aria-pressed=true] .tl-category-mark .tl-cut-line { stroke: var(--category-color); }
.tl-categories [aria-pressed=true] .tl-category-mark .tl-detail { stroke: var(--ink); }
.tl-categories .db-game-tool[aria-pressed=true] { color: var(--paper); }
.tl-categories .db-game-tool[aria-pressed=true] .db-game-tool-icon { color: var(--ink); background: var(--category-color); border-color: var(--category-color); box-shadow: 0 0 0 4px #ffffff0b; }
.tl-categories .db-game-tool[aria-pressed=true]>span:last-child::after { content: ''; display: block; width: 13px; height: 2px; margin: 6px auto -8px; background: var(--category-color); }
.tl-categories .db-game-tool:hover .db-game-tool-icon { color: var(--category-color); border-color: var(--category-color); background: #253244; }
.tl-categories .db-game-tool[aria-pressed=true]:hover .db-game-tool-icon { color: var(--ink); background: var(--category-color); }

.tl-workspace { display: grid; grid-template-columns: minmax(0,1fr) 308px; gap: 30px; align-items: start; }
.tl-board-panel { min-width: 0; }
.tl-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.tl-section-title { display: flex; align-items: baseline; gap: 11px; }
.tl-section-title { min-width: 0; }
.tl-section-title h2 { overflow-wrap: anywhere; }
.tl-section-heading>#boardCount { flex-shrink: 0; white-space: nowrap; }
.tl-title-edit { flex-shrink: 0; padding: 4px; border: 0; background: transparent; color: var(--ice); border-radius: 50%; }
.tl-title-edit svg { width: 17px; height: 17px; }
.tl-title-edit:hover { color: var(--paper); background: #ffffff12; }
.tl-custom-hint { margin: -4px 0 15px; color: var(--ice); font-size: 11px; }
.tl-custom-hint bdi { font: 700 14px/1 system-ui; }
.tl-section-index { color: var(--ice); font: 600 12px/1 system-ui; letter-spacing: 1px; }
.tl-muted { color: var(--muted); font-size: 12px; }
.tl-notice { padding: 12px 15px; border-inline-start: 3px solid var(--coral); background: #f77b5810; color: #ffc7b7; margin: 0 0 20px; }
.tl-board { display: grid; gap: 1px; border: 1px solid #62728555; background: #62728555; }
.tl-row { display: grid; grid-template-columns: 94px minmax(0,1fr); min-height: 106px; background: #172332; }
.tl-row-label { position: relative; display: flex; flex-direction: column-reverse; justify-content: center; align-items: center; gap: 5px; text-align: center; padding: 12px 8px; background: var(--row-color,#d6f05d); color: var(--label-ink,#111a27); overflow-wrap: anywhere; }
.tl-row-label b { font-size: 12px; font-weight: 700; line-height: 1.5; }
.tl-row-score { font: 800 27px/1.1 system-ui; letter-spacing: -1px; }
.tl-row-items { display: flex; flex-wrap: wrap; align-content: center; align-items: start; gap: 7px; min-height: 104px; padding: 9px 10px; }
.tl-row.is-drop { position: relative; z-index: 1; outline: 2px solid var(--lime); outline-offset: 0; background: #d6f05d14; }
.tl-row-empty { display: flex; justify-content: flex-start; align-items: center; gap: 8px; flex: 1; min-height: 83px; color: #8290a2; font-size: 11px; padding-inline-start: 10px; }
.tl-row-empty::before { content: '+'; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #b6c4d436; border-radius: 50%; color: #9ba9b9; font: 300 17px/1 system-ui; }
.tl-item { display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 0; width: 70px; min-width: 0; padding: 0; border: 1px solid #ffffff25; border-radius: 3px; background: var(--paper); color: var(--ink); text-align: center; line-height: 1.4; overflow: hidden; touch-action: manipulation; transition: transform .13s ease, outline-color .13s ease; }
.tl-item:hover { transform: translateY(-3px); background: var(--paper); border-color: var(--paper); }
.tl-item.is-selected { border-color: var(--lime); outline: 2px solid var(--lime); outline-offset: 2px; background: var(--lime); }
.tl-avatar { display: grid; place-items: center; flex: none; overflow: hidden; width: 100%; height: 69px; border-radius: 0; background: #2b3b50; color: var(--ice); font-weight: 800; font-size: 25px; }
.tl-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-item-label { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 27px; padding: 3px 2px; font: 600 9px/1.35 Arial,DBDArabic,sans-serif; overflow-wrap: anywhere; }
.tl-item[draggable=true] { cursor: grab; }
.tl-pool-heading { display: flex; gap: 15px; align-items: center; justify-content: space-between; margin: 28px 0 14px; padding-top: 21px; border-top: 2px solid #e9ece64d; }
.tl-search { display: flex; align-items: center; gap: 5px; width: 225px; max-width: 45%; margin: 0; border-bottom: 1px solid #8e9baa99; }
.tl-search svg { width: 16px; height: 16px; flex: none; color: #9eacbc; }
.tl-search input { font-size: 12px; padding: 7px 4px; background: transparent; border: 0; border-radius: 0; }
.tl-pool { display: flex; flex-wrap: wrap; align-content: start; gap: 10px; min-height: 142px; max-height: 465px; overflow: auto; padding: 4px 4px 15px; scrollbar-width: thin; scrollbar-color: #657386 transparent; }
.tl-pool .tl-item { width: 84px; }
.tl-pool .tl-avatar { height: 88px; }
.tl-pool .tl-item-label { min-height: 30px; font-size: 10px; }
.tl-item.is-custom { border-top: 3px solid var(--ice); }
.tl-item.is-custom .tl-avatar-text { min-height: 93px; height: 93px; padding: 8px 5px; background: var(--paper); color: var(--ink); font: 700 var(--custom-text-size,16px)/1.5 DBDArabic,Tahoma,Arial,sans-serif; overflow-wrap: anywhere; }
.tl-item.is-custom.is-selected .tl-avatar-text { background: var(--lime); }
.tl-item.is-custom .tl-item-label { display: none; }
.tl-pool .tl-item.is-custom .tl-avatar-text { min-height: 115px; height: 115px; }
.tl-empty { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 134px; border: 1px dashed #ffffff26; color: var(--muted); font-size: 12px; text-align: center; margin: 0; padding: 25px 15px; }

.tl-rating-panel { color-scheme: light; position: sticky; top: 22px; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); padding: 22px; }
.tl-rating-panel .tl-section-heading { margin-bottom: 18px; }
.tl-panel-kicker { font-size: 10px; margin: 0 0 1px; color: #617183; }
.tl-rating-panel h2 { font-size: 25px; font-weight: 800; }
.tl-timer { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid #111a2730; border-radius: 50%; background: var(--lime); color: var(--ink); font: 800 21px/1 system-ui; }
.tl-target { min-height: 226px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 17px 12px 14px; background: #d9dfd7; margin-bottom: 12px; text-align: center; border-top: 3px solid var(--blue); }
.tl-target .tl-avatar { width: 110px; height: 119px; margin-bottom: 12px; border: 1px solid #111a2720; background: #26364b; color: var(--ice); }
.tl-target strong { font: 700 17px/1.4 Arial,DBDArabic,sans-serif; }
.tl-target .tl-target-custom { font: 800 25px/1.7 DBDArabic,Tahoma,Arial,sans-serif; overflow-wrap: anywhere; width: 100%; }
.tl-target small { font-size: 11px; color: #556576; }
.tl-target-empty { display: grid; justify-items: center; gap: 14px; max-width: 175px; font-size: 12px; line-height: 1.9; color: #5f6c7b; }
.tl-target-empty::before { content: ''; display: block; width: 50px; height: 65px; border: 1px solid #62728566; background: #e9ece6; box-shadow: 7px -5px 0 #c5cec5, 8px -6px 0 #62728566; transform: rotate(-8deg); }
.tl-rating-panel .tl-muted { color: #526276; font-size: 11px; min-height: 35px; margin: 0; }
.tl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tl-primary { color: white; background: var(--blue); border-color: var(--blue); font-weight: 700; }
.tl-primary:hover { background: #4053d6; border-color: #4053d6; }
.tl-quiet { background: transparent; }
.tl-danger { color: #ffc0ab; background: #f77b580c; border-color: #f77b5855; }
.tl-rating-panel .tl-actions button { flex-grow: 1; }
.tl-rating-panel button:not(.tl-primary) { background: transparent; color: var(--ink); border-color: #111a2738; }
.tl-rating-panel button:not(.tl-primary):hover { background: #111a270a; }
.tl-rating-panel button:focus-visible { outline-color: var(--blue); }
.tl-rating-panel #startVote { width: 100%; padding-block: 12px; }
.tl-vote-status { font-size: 11px; line-height: 1.8; font-weight: 700; color: #4e60cf; margin: 14px 0 8px; }
.tl-vote-status:empty { margin: 0; }
.tl-vote-counts { display: grid; gap: 8px; }
.tl-vote-row { display: grid; grid-template-columns: 18px minmax(0,1fr) 20px; align-items: center; gap: 9px; font: 600 10px/1.2 system-ui; color: #5c6978; }
.tl-vote-bar { height: 5px; background: #111a2712; overflow: hidden; }
.tl-vote-bar i { display: block; height: 100%; width: var(--percentage,0); background: var(--row-color,#5366ed); min-width: 0; }
.tl-placement-heading { margin-top: 22px; padding-top: 16px; border-top: 1px solid #111a2728; color: #617183; font-size: 10px; }
.tl-placement { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding-top: 9px; }
.tl-placement button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 10px; text-align: start; overflow: hidden; text-overflow: ellipsis; min-height: 33px; }
.tl-placement button small { font: 800 12px/1 system-ui; opacity: .6; }
.tl-rating-panel #resetBtn { display: block; width: fit-content; margin: 22px auto 0; padding: 4px 0; font-size: 10px; color: #6f7d89; border: 0; border-bottom: 1px solid #111a2726; border-radius: 0; }
.tl-rating-panel #resetBtn:hover { color: #b3452e; background: transparent; border-color: #b3452e; }

dialog.db-game-tool-dialog { border-radius: 5px; background: #172332; color: var(--paper); border: 1px solid #5d6c7d; padding: 26px; box-shadow: 0 20px 80px #0009; }
.db-game-tool-dialog::backdrop { background: #050c17c9; }
.db-game-tool-heading { border-bottom: 1px solid #ffffff25; padding-bottom: 15px; margin-bottom: 18px; }
.db-game-tool-heading h2 { font-size: 22px; }
.db-game-tool-close { background: transparent; border-color: #ffffff38; border-radius: 50%; }
.db-game-tool-close:hover { background: #2c3d53; }
.tl-row-editors { display: grid; gap: 10px; margin: 18px 0; }
.tl-row-editor { display: grid; grid-template-columns: 24px 44px minmax(0,1fr); gap: 9px; align-items: center; }
.tl-row-editor>b { font: 800 14px system-ui; color: var(--ice); }
.tl-row-editor input[type=color] { padding: 3px; height: 43px; cursor: pointer; }
.tl-row-editor input[type=text] { font-size: 13px; }
.tl-help-list { padding-inline-start: 23px; color: #bfcbd8; }
.tl-help-list li { margin: 12px 0; line-height: 1.9; }
.db-game-tool-dialog .tl-notice { margin: 15px 0 0; }
.tl-clear-confirm { margin-top: 22px; padding: 14px 16px; border-inline-start: 3px solid var(--coral); background: #f77b580c; font-size: 12px; color: #ffc0ab; }
.tl-clear-confirm p { margin-bottom: 0; }
.tl-clear-confirm .tl-actions { margin-bottom: 0; }
.tl-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media(max-width:1100px) {
  .tl-shell { padding-inline: 24px; }
  .tl-workspace { grid-template-columns: minmax(0,1fr) 280px; gap: 22px; }
  .tl-rating-panel { padding: 18px; }
  .tl-categories .db-game-tool { min-inline-size: 100px; }
  .tl-categories::before { margin-inline-end: 4px; }
}
@media(max-width:850px) {
  .tl-studio-header { gap: 20px; align-items: flex-start; }
  .tl-heading { gap: 10px; }
  h1 { font-size: 29px; }
  .tl-shell .db-game-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 6px; }
  .tl-shell .db-game-tools .db-game-tool { min-inline-size: 70px; font-size: 10px; }
  .tl-shell .db-game-tools .db-game-tool-icon { inline-size: 36px; block-size: 36px; }
  .tl-workspace { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .tl-rating-panel { position: static; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 24px; padding: 20px; }
  .tl-rating-panel>.tl-section-heading { grid-column: 1/-1; }
  .tl-target { grid-column: 1; grid-row: 2/6; min-height: 210px; margin: 0; }
  .tl-rating-panel>#voteInstruction,.tl-rating-panel>.tl-actions,.tl-vote-status,.tl-vote-counts { grid-column: 2; }
  .tl-rating-panel .tl-actions { margin-block: 12px; }
  .tl-placement-heading { grid-column: 1/-1; margin-top: 17px; }
  .tl-placement { grid-column: 1/-1; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tl-rating-panel #resetBtn { grid-column: 1/-1; margin-top: 16px; }
  .tl-categories { justify-content: space-between; gap: 2px; }
  .tl-categories::before { display: none; }
  .tl-categories .db-game-tool { min-inline-size: 84px; }
}
@media(max-width:520px) {
  .tl-shell { padding: 22px 15px 35px; }
  .tl-top { padding: 12px 15px; }
  .tl-top>a:last-child { font-size: 10px; }
  .tl-brand b,.tl-brand bdi { font-size: 11px; }
  .tl-brand img { width: 28px; height: 28px; }
  .tl-studio-header { display: block; padding-bottom: 18px; }
  .tl-heading { justify-content: space-between; margin-bottom: 19px; }
  h1 { font-size: 31px; }
  .tl-eyebrow { font-size: 10px; }
  .tl-shell .db-game-tools { display: flex; justify-content: space-between; gap: 4px; }
  .tl-shell .db-game-tools .db-game-tool { min-inline-size: 66px; }
  .tl-shell .db-game-tools .db-game-tool-icon { inline-size: 38px; block-size: 38px; }
  .tl-categories { margin-bottom: 22px; padding: 17px 0; gap: 0; }
  .tl-categories .db-game-tool { min-inline-size: 0; width: calc(100%/6); font-size: 9px; gap: 8px; padding-inline: 0; }
  .tl-categories .db-game-tool-icon { inline-size: 38px; block-size: 38px; }
  .tl-categories .db-game-tool-icon svg { inline-size: 21px; block-size: 21px; }
  .tl-section-title { gap: 8px; }
  h2 { font-size: 15px; }
  .tl-muted { font-size: 10px; }
  .tl-section-index { font-size: 10px; }
  .tl-row { grid-template-columns: 70px minmax(0,1fr); min-height: 99px; }
  .tl-row-label { padding: 10px 5px; }
  .tl-row-label b { font-size: 10px; }
  .tl-row-score { font-size: 23px; }
  .tl-row-items { padding: 7px; gap: 6px; min-height: 97px; }
  .tl-row-empty { min-height: 82px; padding-inline-start: 3px; font-size: 10px; }
  .tl-item { width: 62px; }
  .tl-avatar { height: 60px; }
  .tl-item-label { min-height: 24px; font-size: 8px; }
  .tl-item.is-custom .tl-avatar-text { min-height: 81px; height: 81px; }
  .tl-pool-heading { gap: 8px; padding-top: 17px; }
  .tl-search { max-width: 45%; }
  .tl-search input { font-size: 10px; }
  .tl-pool { gap: 9px; max-height: 410px; }
  .tl-pool .tl-item { width: calc((100% - 27px)/4); }
  .tl-pool .tl-avatar { height: 77px; }
  .tl-pool .tl-item-label { font-size: 9px; min-height: 31px; }
  .tl-pool .tl-item.is-custom .tl-avatar-text { min-height: 105px; height: 105px; }
  .tl-rating-panel { gap: 0 15px; padding: 17px; }
  .tl-rating-panel h2 { font-size: 23px; }
  .tl-target { min-height: 210px; padding: 14px 7px; }
  .tl-target .tl-avatar { width: 84px; height: 94px; }
  .tl-target strong { font-size: 14px; }
  .tl-target-empty { font-size: 10px; }
  .tl-rating-panel .tl-muted { font-size: 10px; }
  .tl-rating-panel .tl-actions button { font-size: 11px; padding-inline: 5px; }
  .tl-placement { grid-template-columns: repeat(2,minmax(0,1fr)); }
  dialog.db-game-tool-dialog { padding: 19px; }
}
@media(prefers-reduced-motion:reduce) {
  button,.tl-item,.db-game-tool-icon { transition: none; }
  .tl-item:hover { transform: none; }
}
