@font-face { font-family: 'Mont'; font-weight: 500; src: url('/fonts/montserrat-latin-500-normal.woff2') format('woff2'), url('/fonts/montserrat-latin-500-normal.woff') format('woff'); }
@font-face { font-family: 'Mont'; font-weight: 700; src: url('/fonts/montserrat-latin-700-normal.woff2') format('woff2'), url('/fonts/montserrat-latin-700-normal.woff') format('woff'); }
@font-face { font-family: 'Mont'; font-weight: 800; src: url('/fonts/montserrat-latin-800-normal.woff2') format('woff2'), url('/fonts/montserrat-latin-800-normal.woff') format('woff'); }

html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #000; cursor: none; }
* { box-sizing: border-box; }

/* Fixed 1920x1080 design canvas, scaled to fit the screen by display.js */
#stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  margin-left: -960px; margin-top: -540px;
  overflow: hidden; background: #111; color: #fff;
  font-family: 'Mont', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#slides { position: absolute; left: 0; top: 0; right: 0; bottom: 96px; }
#stage.no-footer #slides { bottom: 0; }

.slide { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; -webkit-transition: opacity 0.9s ease; transition: opacity 0.9s ease; overflow: hidden; }
.slide.on { opacity: 1; z-index: 2; }

/* ---------- Promo slide ---------- */
.promo .bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.promo .bg.on-anim { -webkit-animation: kenburns 20s ease-out forwards; animation: kenburns 20s ease-out forwards; }
@-webkit-keyframes kenburns { from { -webkit-transform: scale(1.0); } to { -webkit-transform: scale(1.08); } }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.08); } }

.promo .fallback { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.promo .fallback .big-code { position: absolute; right: 70px; bottom: 10px; font-size: 420px; font-weight: 800; line-height: 1; color: rgba(255,255,255,0.10); letter-spacing: -10px; }
.promo .fallback .flag-wrap { position: absolute; right: 140px; top: 120px; width: 420px; height: 300px; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.promo .fallback .flag-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.promo .panel {
  position: absolute; top: 48px; bottom: 48px; left: 48px; width: 880px;
  border-radius: 36px; padding: 64px 70px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.30);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column;
}
.promo.layout-right .panel { left: auto; right: 48px; }
.promo.layout-right .fallback .big-code { right: auto; left: 70px; }
.promo.layout-right .fallback .flag-wrap { right: auto; left: 140px; }
.promo.layout-full .panel { left: 50%; width: 1240px; margin-left: -620px; text-align: center; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.promo.layout-full .shade { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); }

.panel .logo { height: 120px; margin-bottom: 40px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.panel .logo .badge { width: 120px; height: 120px; border-radius: 60px; background: #fff; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; overflow: hidden; -webkit-flex-shrink: 0; flex-shrink: 0; }
.panel .logo .badge img { max-width: 84px; max-height: 84px; }
.panel .logo .badge span { font-size: 44px; font-weight: 800; }
.panel .logo .bn { margin-left: 26px; text-align: left; }
.panel .logo .bn b { display: block; font-size: 38px; font-weight: 800; line-height: 1.1; }
.panel .logo .bn i { display: block; font-style: normal; font-size: 22px; font-weight: 500; opacity: 0.85; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }

.panel h1 { margin: 0; font-weight: 800; line-height: 1.04; letter-spacing: -1px; }
.panel .sub { margin: 26px 0 0; font-size: 36px; font-weight: 500; line-height: 1.3; opacity: 0.95; }
.panel .spacer { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.panel .rates { display: -webkit-box; display: -webkit-flex; display: flex; margin-top: 36px; }
.panel .rate { background: #fff; color: #1a1a1a; border-radius: 24px; padding: 24px 30px 26px; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; text-align: left; }
.panel .rate + .rate { margin-left: 22px; }
.panel .rate .lbl { font-size: 22px; font-weight: 800; letter-spacing: 3px; }
.panel .rate .eq { font-size: 26px; font-weight: 700; margin-top: 8px; color: #555; }
.panel .rate .val { font-size: 72px; font-weight: 800; line-height: 1.05; white-space: nowrap; letter-spacing: -1px; }
.panel .rate .val small { font-size: 32px; font-weight: 700; margin-left: 8px; letter-spacing: 0; }
.panel .rates.single .val { font-size: 96px; }
.panel .foot { margin: 24px 0 0; font-size: 20px; font-weight: 500; opacity: 0.85; }

/* ---------- Rates board ---------- */
.board { background: #f5f3f0; color: #1a1a1a; padding: 56px 80px 40px; }
.board .head { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin-bottom: 34px; }
.board .head h1 { font-size: 72px; font-weight: 800; margin: 0; letter-spacing: -1px; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.board .head .base { font-size: 28px; font-weight: 700; color: #666; text-align: right; }
.board .cols { display: -webkit-box; display: -webkit-flex; display: flex; }
.board .col { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; }
.board .col + .col { margin-left: 50px; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.board th { font-size: 24px; font-weight: 800; letter-spacing: 3px; text-align: right; padding: 0 28px 4px; }
.board th:first-child { text-align: left; }
.board td { background: #fff; padding: 0 28px; font-weight: 700; }
.board td:first-child { border-radius: 18px 0 0 18px; }
.board td:last-child { border-radius: 0 18px 18px 0; }
.board td.cur { text-align: left; white-space: nowrap; }
.board td.cur img { width: 64px; height: 44px; border-radius: 6px; vertical-align: middle; margin-right: 22px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.board td.cur b { font-size: 38px; vertical-align: middle; }
.board td.cur span { font-size: 22px; color: #777; margin-left: 14px; vertical-align: middle; font-weight: 500; }
.board td.num { text-align: right; font-size: 42px; font-weight: 800; white-space: nowrap; }
.board td.na { color: #bbb; }

/* ---------- Idle ---------- */
.idle { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; text-align: center; }
.idle h1 { font-size: 110px; font-weight: 800; margin: 0; }
.idle p { font-size: 36px; opacity: 0.85; margin: 16px 0 0; }
.idle img { max-height: 220px; max-width: 600px; margin-bottom: 40px; }

/* ---------- Footer ---------- */
#footer { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: #141414; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; z-index: 5; }
#stage.no-footer #footer { display: none; }
.f-brand { padding: 0 40px; height: 100%; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; font-size: 30px; font-weight: 800; white-space: nowrap; -webkit-flex-shrink: 0; flex-shrink: 0; }
.f-brand img { height: 56px; margin-right: 18px; display: none; }
.f-ticker { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; overflow: hidden; height: 100%; position: relative; background: #1f1f1f; }
#ticker { position: absolute; top: 0; left: 0; height: 96px; line-height: 96px; white-space: nowrap; font-size: 30px; font-weight: 700; }
#ticker .t { display: inline-block; padding: 0 40px; }
#ticker .t img { width: 44px; height: 30px; border-radius: 4px; vertical-align: middle; margin: -4px 14px 0 0; object-fit: cover; }
#ticker .t em { font-style: normal; font-weight: 500; opacity: 0.6; font-size: 22px; margin: 0 8px 0 18px; letter-spacing: 2px; }
#ticker.static { position: static; text-align: center; font-size: 24px; font-weight: 500; opacity: 0.8; }
.f-clock { padding: 0 40px; text-align: right; -webkit-flex-shrink: 0; flex-shrink: 0; }
.f-clock #clock-time { font-size: 36px; font-weight: 800; line-height: 1.1; }
.f-clock #clock-date { font-size: 18px; font-weight: 500; opacity: 0.7; letter-spacing: 1px; }
#stage.no-clock .f-clock { display: none; }

#offline { position: absolute; top: 20px; right: 20px; z-index: 10; background: rgba(0,0,0,0.6); color: #fff; font-size: 18px; padding: 8px 16px; border-radius: 10px; display: none; }
#stage.is-offline #offline { display: block; }
