/* Official city events (ui/official-ui.js): the panel over the top of the screen while you're in one, the announcement
   cards, and the bits of the 🏆 City tab / 🎉 Event Admin app that the 📅 Events styles (events.css) don't cover. */
#ofHud { display: none; position: fixed; top: calc(env(safe-area-inset-top, 0px) + 112px); left: 8px; right: 8px; max-width: 460px; margin: 0 auto; z-index: 6;
  background: rgba(18,22,34,.9); color: #fff; border-radius: 18px; padding: 8px 10px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.35); font-family: var(--ui); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#ofHud.on { display: block; }
#ofHud.mini { background: none; box-shadow: none; padding: 0; text-align: center; -webkit-backdrop-filter: none; backdrop-filter: none; }
#ofHud button { font-family: var(--ui); cursor: pointer; }
.of-min { border: 0; border-radius: 999px; padding: 7px 14px; background: rgba(18,22,34,.88); color: #fff; font: 800 13px var(--ui); }
.of-hh { display: flex; align-items: center; gap: 7px; }
.of-hh b { font-size: 20px; } .of-hh strong { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-hh i { font-style: normal; font-size: 11px; font-weight: 800; color: #ff5a5a; }
.of-hh button { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; line-height: 1; }
#ofHud p { margin: 6px 2px 0; font-size: 12.5px; color: #d5d9e6; }
.of-big { font: 900 24px var(--ui); text-align: center; margin-top: 6px; font-variant-numeric: tabular-nums; }
.of-prog { height: 8px; border-radius: 99px; background: rgba(127,127,127,.3); overflow: hidden; margin-top: 8px; }
.of-prog i { display: block; height: 100%; background: linear-gradient(90deg, #ffd23f, #ff8a3d); border-radius: 99px; }
.of-qh { display: flex; justify-content: space-between; font-size: 12px; color: #b9c0d6; margin-top: 6px; } .of-qh b { color: #ffd23f; font-size: 15px; }
.of-q { font: 800 15px var(--ui); margin: 4px 0 8px; }
.of-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.of-ans button { border: 0; border-radius: 12px; padding: 10px 8px; background: #2c3550; color: #fff; font: 700 13px var(--ui); text-align: left; }
.of-ans button.picked { background: #4a5ad8; } .of-ans button.right { background: #1f9d55; } .of-ans button.wrong { background: #c0392b; }
.of-ans button:disabled { opacity: 1; }
.of-top { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: #ffd23f; }
.of-hints { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; max-height: 34vh; overflow-y: auto; }
.of-hints div { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.07); border-radius: 10px; padding: 6px 8px; font-size: 13px; }
.of-hints div.done { opacity: .55; } .of-hints span { flex: 1; } .of-hints em { font-style: normal; color: #ffd23f; font-size: 11.5px; }
.of-hints button { border: 0; background: #3d4a78; color: #fff; border-radius: 9px; padding: 5px 8px; }
#ofCard { display: none; position: fixed; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 60px); max-width: 420px; margin: 0 auto; z-index: 9;
  background: linear-gradient(135deg, #1d2440, #3a1f4f); color: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-family: var(--ui); animation: ofIn .35s ease-out; }
#ofCard.on { display: block; }
@keyframes ofIn { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
#ofCard .of-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; color: #fff; font-size: 20px; cursor: pointer; }
.of-ch { display: flex; gap: 10px; align-items: flex-start; } .of-ch > b { font-size: 30px; }
.of-ch span { display: flex; flex-direction: column; gap: 2px; padding-right: 18px; } .of-ch em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #ffd23f; text-transform: uppercase; letter-spacing: .04em; }
.of-ch strong { font-size: 16px; } .of-ch i { font-style: normal; font-size: 12.5px; color: #d5d9e6; }
.of-cb { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.of-cb button { flex: 1; border: 0; border-radius: 12px; padding: 9px 8px; background: rgba(255,255,255,.15); color: #fff; font: 800 12.5px var(--ui); cursor: pointer; white-space: nowrap; }
.of-cb button.go { background: #ffd23f; color: #241a00; }
.ev-ic.of-ic { background: linear-gradient(135deg, #1d2440, #3a1f4f); }
.ev-hero.of-hero { background: linear-gradient(135deg, #1d2440, #3a1f4f); }
.of-win { margin-top: -4px; }
.of-budget { background: #fff; border-radius: 14px; padding: 8px 12px 10px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); font: 700 12px var(--ui); color: #3a3d42; }
.of-budget .of-prog { margin: 0 0 6px; }
.of-prz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .of-prz .ev-l { margin-top: 0; }
.of-qe { background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 6px; }
.of-qrow { display: flex; gap: 6px; align-items: center; margin: 3px 0; }
.of-qrow input { flex: 1; min-width: 0; border: 1.5px solid #dcdde1; border-radius: 10px; padding: 7px 9px; font: 600 13px var(--ui); }
.of-tick { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid #c9cbd0; background: #fff; color: #fff; font-weight: 900; }
.of-tick.on { background: #1f9d55; border-color: #1f9d55; }
.of-mine { margin-bottom: 8px; } .of-mine .ev-btns { margin-top: -2px; }
.of-admin b.bad, #oaPool b.bad { color: #c0392b; }
/* talent shows (ui/official-ui.js talentBody): the acts to vote for, the small links */
#ofHud .of-acts button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
#ofHud .of-acts button i { font-style: normal; font-size: 11px; opacity: .75; }
#ofHud .of-link { background: none; border: 0; padding: 0 2px; color: #ffd23f; text-decoration: underline; font: inherit; cursor: pointer; }
