/* Rad des Schicksals and the daily login bonus (ui/fortune.js, ui/wheel.js) */

/* ---------- tabs at the left edge under the Discord link (#edge, game.css) ---------- */
/* 30 px like the Discord tab: the timer of the bonus ("23:59:59") keeps 2 px to the edge of the screen */
.edge-tab { position: relative; width: 30px; padding: 2px; }
.edge-tab .et-ic { position: relative; display: flex; align-items: center; justify-content: center; height: 18px; }
.edge-tab .et-ic img { display: block; width: 16px; height: 16px; }
.edge-tab:hover .et-ic img { filter: brightness(1.25); }
.edge-tab.locked .et-ic img { filter: grayscale(.8) brightness(.7); }
.edge-tab .et-time { height: 8px; margin-bottom: 1px; font-size: 6px; line-height: 8px; text-align: center;
  color: var(--dim); white-space: nowrap; overflow: hidden; }
.edge-tab.ready .et-time { color: var(--gold); }
/* something to do: a red stud with a white "!" on the icon, only while it is so (like the hints of the menu bar) */
.et-dot { display: none; position: absolute; right: 0; top: 0; width: 7px; height: 7px; background: #d23a2c;
  box-shadow: 0 0 0 1px var(--edge), inset 0 1px 0 #ff8a78, inset 0 -1px 0 #8a1c14; }
.et-dot::before { content: ''; position: absolute; left: 3px; top: 1px; width: 1px; height: 3px; background: #fff; }
.et-dot::after { content: ''; position: absolute; left: 3px; top: 5px; width: 1px; height: 1px; background: #fff; }
.edge-tab.ready .et-dot { display: block; }
.edge-tab.ready::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #ffd24a; animation: ring-pulse 1.2s ease-in-out infinite; }
/* "Rad bereit!" next to the tab until the window is opened; a stepped arrow points at the tab */
.et-bubble { position: absolute; left: 35px; top: 5px; height: 11px; padding: 0 4px; line-height: 11px; font-size: 7px; white-space: nowrap;
  color: #fff6dc; text-shadow: 1px 1px 0 var(--ink); background: linear-gradient(#c08c3c, #8c5f24);
  box-shadow: 0 0 0 1px var(--edge), inset 0 1px 0 #f6d27c, inset 0 -1px 0 #5a3c14; pointer-events: none; animation: et-bob 1s steps(1) infinite; }
.et-bubble::before { content: ''; position: absolute; left: -3px; top: 2px; width: 2px; height: 7px; background: #a8762e; }
.et-bubble::after { content: ''; position: absolute; left: -5px; top: 4px; width: 2px; height: 3px; background: #a8762e; }
@keyframes et-bob { 0% { transform: translateX(0); } 50% { transform: translateX(1px); } }

/* ---------- Täglich (ui/dailyhub.js): the tab at the left edge for the wheel, the bonus and Vote4Buff, and the strip
   of tabs that moves under the title of the one of their windows that is open ---------- */
#day-tab .et-ic img { image-rendering: auto; }
#ui .win > .dh-tabs { flex: none; margin: 6px 9px 0; }
#ui #vote4buff > .dh-tabs { margin: 5px 5px 0; }
#ui .dh-tabs .dh-tab { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: 20px; padding: 0 4px; line-height: normal; }
.dh-tab .dh-ic { flex: none; width: 12px; height: 12px; }
.dh-tab .dh-ic img { display: block; width: 12px; height: 12px; image-rendering: auto; }
.dh-tab .dh-tx { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.dh-tab .dh-n { font-size: 7px; line-height: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-tab .dh-t { font-size: 6px; line-height: 7px; color: var(--dim); white-space: nowrap; }
.dh-tab.new .dh-t { color: var(--gold); }
.dh-tab.locked .dh-ic img { filter: grayscale(.8) brightness(.7); }
/* a phone: the tabs in the title bar in place of the title (ui/dailyhub.js sync), as high as the bar (a finger) */
html.touch #ui .win-title > .dh-tabs { flex: 1 1 auto; align-self: stretch; flex-wrap: nowrap; min-width: 0; margin: 0 6px 0 0; }
html.touch #ui .win-title:has(> .dh-tabs:not(.hidden)) > :is(.dh-ttl, .vb-tic) { display: none; }
html.touch #ui .win-title > .dh-tabs .dh-tab { height: auto; min-width: 0; min-height: var(--finger); }

/* ---------- the wheel ---------- */
#wheel .win-body { padding: 5px; }
.wh-stage { display: flex; justify-content: center; }
.wh-cv { display: block; }
.wh-status { min-height: 10px; margin: 3px 0 2px; font-size: 8px; line-height: 10px; text-align: center; }
.wh-result { margin-top: 4px; }
.wh-opts { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; }
.wh-opt { display: flex; align-items: center; gap: 4px; font-size: 7px; line-height: 8px; color: var(--dim); }
.wh-opt input { flex: none; }
.wh-opt span { min-width: 0; }

/* ---------- the login bonus: every day's complete rewards, no hover needed ---------- */
#daily .win-body { padding: 5px; }
.dl-head { margin-bottom: 4px; font-size: 8px; line-height: 9px; }
.dl-head .dim, .dl-head .red { margin-top: 1px; font-size: 7px; line-height: 8px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
.dl-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 4px;
  background: #15100d; box-shadow: inset 0 0 0 1px #33281d; }
.dl-day { display: flex; align-items: center; justify-content: space-between; min-height: 12px; margin-bottom: 2px; }
.dl-num { font-size: 8px; line-height: 10px; color: var(--dim); }
.dl-card .cd-row { font-size: 8px; line-height: 10px; }
.dl-card.done .cd-ic img { opacity: .65; }
.dl-card.done .dl-num { color: var(--green); }
.dl-tick { flex: none; width: 12px; height: 12px; background: var(--ic-tick) 0 0 / 12px 12px no-repeat; }
.dl-card.today { background: #2a2018; box-shadow: inset 0 0 0 1px #ffd24a; }
.dl-card.today .dl-num { color: var(--gold); }
.dl-card.next .dl-num { color: var(--gold); }
.dl-card.next { box-shadow: inset 0 0 0 1px var(--bronze); }
.dl-card.pop { animation: dl-pop .4s steps(2) 1; }
@keyframes dl-pop { 0% { transform: translateY(-2px); } 100% { transform: none; } }
.dl-box { margin-top: 5px; }
.dl-btns { margin-top: 5px; }
.dl-btns .btn { min-width: 120px; }
.dl-hide { margin-top: 5px; }
