/* The OX-Wettbewerb (ui/ox.js): the tab #ox-tab (an .edge-tab, fortune.css), the call #ox-call, the board #ox-board, the results
   #ox-result. Everything under its id. Phones: the html.touch rules at the end (fingers >= 44 CSS px). */
/* in the walled square only what the contest needs: no quests, world boss, events, travel, the pill of the auto-hunt, the tabs of the
   edge, the target bar and the notice boards (the board of the question stands there; the lines stay in the chat), no call of another event */
#ui.in-ox #quest-tracker, html.touch #ui.in-ox #quest-tracker, #ui.in-ox #travel-btn, #ui.in-ox #wb-timer, #ui.in-ox #wb-call, #ui.in-ox #ev-box,
#ui.in-ox #autopill, #ui.in-ox #edge, #ui.in-ox #target, #ui.in-ox #fest-call, #ui.in-ox #ox-call, #ui.in-ox #arena-q,
#ui.in-ox #tipboard, #ui.in-ox #bigboard { display: none; }

/* the call: the look of the Drachenspiele (fest.css #fest-call) */
#ox-call { position: absolute; left: 50%; top: 106px; transform: translateX(-50%); width: 200px; padding: 5px 7px 6px; z-index: 6;
  background: linear-gradient(180deg, rgba(120, 76, 14, .5), rgba(20, 12, 10, .2) 60%), var(--panel, #17110d);
  box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #c9973f, inset 0 0 0 2px var(--edge), 0 0 10px rgba(255, 190, 70, .4);
  animation: ox-call-in .45s ease-out; }
#ox-call.hidden { display: none; }
#ox-call .wc-top { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 5px; align-items: center; }
#ox-call .wc-emb { width: 30px; height: 30px; object-fit: contain; image-rendering: auto; }
#ox-call .wc-head { min-width: 0; }
#ox-call .wc-kick { font-size: 6px; line-height: 7px; letter-spacing: 1px; text-transform: uppercase; color: #ffc35a; }
#ox-call .wc-name { font-size: 11px; line-height: 11px; color: #ffe2a0; overflow-wrap: anywhere; text-shadow: 0 1px 0 #000; }
#ox-call .wc-time { text-align: right; min-width: 36px; }
#ox-call .wc-tl { font-size: 6px; line-height: 7px; color: var(--dim); white-space: nowrap; }
#ox-call .wc-t { font-size: 15px; line-height: 15px; color: var(--gold); text-shadow: 0 1px 0 #000; }
#ox-call .wc-sub { margin-top: 3px; font-size: 7px; line-height: 8px; color: #e8dcc4; overflow-wrap: anywhere; }
#ox-call .wc-btns { gap: 4px; margin-top: 5px; }
@keyframes ox-call-in { from { opacity: 0; translate: 0 -8px; scale: 1.06; } }
#ui.compact #ox-call { top: 48px; }

/* the board: the frame of the original BigBoard (notice.css #bigboard, the board of the OX event): rod on top, thin lines down and
   along the bottom, the black board inside the lines */
#ox-board { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 300px; max-width: max(200px, calc(100% - 270px)); min-height: 48px; z-index: 6;
  border-style: solid; border-width: 10px 12px 3px 12px; border-image: url(../assets/ui/notice_frame.png) 10 12 3 12 stretch;
  background: linear-gradient(rgba(0, 0, 0, .66), rgba(0, 0, 0, .66)) 10px 6px / calc(100% - 21px) calc(100% - 9px) no-repeat border-box;
  padding: 1px 5px 4px; text-align: center; pointer-events: none; animation: bb-unroll .45s steps(9) both; }
#ox-board.hidden { display: none; }
#ox-board .ox-head { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 9px; color: var(--gold); font-size: 7px; line-height: 9px; text-shadow: 1px 1px 0 #000; }
#ox-board .ox-head > span { min-width: 0; overflow-wrap: anywhere; }
#ox-board .ox-head i { flex: none; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-d)); }
#ox-board .ox-head i:last-child { background: linear-gradient(90deg, var(--gold-d), transparent); }
#ox-board .ox-q { padding: 2px 2px 0; color: #f2e7c1; font-size: 13px; line-height: 14px; text-shadow: 1px 1px 0 #000; text-wrap: balance; overflow-wrap: anywhere; }
#ox-board .ox-clock { margin-top: 2px; font-size: 22px; line-height: 22px; color: var(--gold); text-shadow: 2px 2px 0 #000, 0 0 6px rgba(242, 196, 90, .4); }
#ox-board .ox-clock.warn { color: #ff6a4c; animation: ox-beat 1s ease-out infinite; }
@keyframes ox-beat { from { transform: scale(1.25); } to { transform: scale(1); } }
#ox-board .ox-hint { margin-top: 2px; font-size: 7px; line-height: 8px; color: #cdbf9c; text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; }
#ox-board .ox-ans { padding-top: 1px; font-size: 20px; line-height: 21px; text-shadow: 2px 2px 0 #000; animation: ox-pop .3s ease-out; }
#ox-board .ox-ans.o { color: var(--gold); }
#ox-board .ox-ans.x { color: #ff5a3c; }
#ox-board .ox-qs { padding: 1px 2px 0; color: #d8cba8; font-size: 8px; line-height: 9px; text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; }
#ox-board .ox-mine { margin-top: 2px; font-size: 11px; line-height: 12px; text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; }
#ox-board .ox-mine.ok { color: #86e070; }
#ox-board .ox-mine.ko { color: #ff6a4c; }
#ox-board .ox-mine.none { color: #f2e7c1; font-size: 8px; line-height: 9px; }
#ox-board .ox-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1px 8px; margin-top: 3px; padding: 2px 2px 0; border-top: 1px solid rgba(201, 151, 63, .35);
  font-size: 7px; line-height: 9px; color: #e8dcc4; text-shadow: 1px 1px 0 #000; }
#ox-board .ox-field.o { color: var(--gold); }
#ox-board .ox-field.x { color: #ff6a4c; }
#ox-board .ox-field.none { color: var(--dim); }
@keyframes ox-pop { from { transform: scale(1.4); opacity: .4; } }

/* the end */
#ox-result { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); width: min(240px, calc(100% - 8px)); padding: 6px 8px 7px; z-index: 7000; display: flex; flex-direction: column; gap: 3px; }
#ox-result.hidden { display: none; }
#ox-result .ox-rtitle { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; line-height: 13px; text-shadow: var(--ol); }
#ox-result .ox-rtitle img { width: 22px; height: 22px; image-rendering: auto; }
#ox-result .ox-rmine { text-align: center; font-size: 9px; line-height: 10px; color: #fff3d1; overflow-wrap: anywhere; }
#ox-result .ox-rgain { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
#ox-result .ox-rline { flex: 0 0 72px; min-height: 40px; padding: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  font-size: 7px; line-height: 8px; color: #fff3d1; overflow-wrap: anywhere; background: linear-gradient(180deg, #1c1814, #110e0c); box-shadow: inset 0 0 0 1px var(--gold-d); animation: ox-pop .25s ease-out; }
#ox-result .ox-rline > span { max-width: 100%; }
#ox-result .ox-lic { flex: none; width: 22px; height: 22px; image-rendering: auto; }
#ox-result .ox-rsub { text-align: center; font-size: 8px; line-height: 9px; }
#ox-result .ox-rtab { display: flex; flex-direction: column; gap: 1px; max-height: 92px; overflow-y: auto; padding: 2px 3px; background: linear-gradient(180deg, #1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ox-result .ox-rrow { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 4px; align-items: center; font-size: 8px; line-height: 10px; }
#ox-result .ox-rrow.me { color: var(--gold); }
#ox-result .ox-rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ox-result .ox-rwait { text-align: center; font-size: 7px; line-height: 8px; color: var(--dim); }

/* phones: the call and the results like the Drachenspiele, the board between the player frame and the minimap */
html.touch #ui #ox-call { width: 230px; top: 40px; }
html.touch #ui #ox-call .btn { min-height: calc(44px / var(--px)); display: flex; align-items: center; justify-content: center; }
html.touch #ui #ox-board { top: 2px; width: 280px; max-width: calc(100% - 230px); }
html.touch #ui #ox-board .ox-q { font-size: 11px; line-height: 12px; }
html.touch #ui #ox-board .ox-clock { font-size: 18px; line-height: 18px; }
html.touch #ui #ox-result { top: 4px; transform: none; translate: -50% 0; scale: var(--wz); transform-origin: top center; width: min(300px, calc((100% - 8px) / var(--wz))); max-height: calc((100% - 8px) / var(--wz)); overflow-y: auto; }
html.touch #ui #ox-result .btn { min-height: calc(44px / (var(--px) * var(--wz))); }
html.touch #ui #ox-result .ox-rtab { max-height: 44px; }
