/* Gold band under the logo: two lines taking turns (front pages, and the welcome line after sign-in) */
.zgb { position: relative; z-index: 3; overflow: hidden; text-align: center; color: #fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,.85) 0, rgba(0,0,0,.35) 7px, rgba(0,0,0,0) 18px),
    radial-gradient(ellipse 55% 140% at 52% 40%, rgba(255,240,170,.75), rgba(255,240,170,0) 70%),
    linear-gradient(100deg, #8a6418 0%, #b88a2a 18%, #d8b14a 38%, #e9c862 50%, #cfa43e 64%, #a97d22 84%, #7d5a14 100%);
  border-bottom: 1px solid #6e5012; box-shadow: inset 0 -1px 0 rgba(255,236,170,.45); }
.zgb::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,250,220,.38) 48%, transparent 60%);
  transform: translateX(-100%); animation: zgbShine 7s ease-in-out infinite; }
.zgb-in { position: relative; display: grid; min-height: clamp(62px, 9vw, 84px); padding: 10px 16px 8px; }
.zgb-msg { grid-area: 1 / 1; margin: 0; align-self: center; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: Inter, system-ui, sans-serif; text-shadow: 0 1px 2px rgba(60,40,0,.7), 0 0 14px rgba(80,55,0,.35); }
.zgb-main { font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.6rem); line-height: 1.2; letter-spacing: -.005em; text-wrap: balance; }
.zgb-by { font-weight: 700; font-size: clamp(.8rem, 1.7vw, 1.05rem); letter-spacing: .02em; }
.zgb-msg--1 { animation: zgbOne 10s ease-in-out infinite; }
.zgb-msg--2 { opacity: 0; animation: zgbTwo 10s ease-in-out infinite; }
.zgb .pmark, .zgb .pmark b { color: inherit; }
@keyframes zgbOne { 0%, 42% { opacity: 1; transform: none; filter: none; } 50%, 92% { opacity: 0; transform: translateY(-8px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes zgbTwo { 0%, 42% { opacity: 0; transform: translateY(8px); filter: blur(3px); } 50%, 92% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: translateY(-8px); filter: blur(3px); } }
@keyframes zgbShine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }


/* welcome page after sign-in: the line moves across the gold band */
.zgb--mq { display: flex; align-items: center; min-height: clamp(52px, 7vw, 64px); }
.zgb--mq::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(125,90,20,.95), rgba(125,90,20,0) 7%, rgba(125,90,20,0) 93%, rgba(125,90,20,.95)); }
.zmq-track { position: relative; display: flex; width: max-content; padding-top: 4px; animation: zmqRun 34s linear infinite; }
.zgb--mq:hover .zmq-track { animation-play-state: paused; }
.zmq-run { display: flex; align-items: center; flex-shrink: 0; }
.zmq-item { font: 700 clamp(.95rem, 2vw, 1.2rem)/1.3 Inter, system-ui, sans-serif; white-space: nowrap; color: #fff;
  text-shadow: 0 1px 2px rgba(60,40,0,.7), 0 0 14px rgba(80,55,0,.35); }
.zmq-dot { padding: 0 clamp(22px, 4vw, 44px); color: #fff6d6; font-size: .62rem; text-shadow: 0 1px 2px rgba(60,40,0,.6); }
@keyframes zmqRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .zgb::after { animation: none; display: none; }
  .zgb-msg--1, .zgb-msg--2 { animation: none; opacity: 1; }
  .zgb-msg--2 { grid-area: 2 / 1; margin-top: 4px; }
  .zmq-track { animation: none; width: 100%; justify-content: center; }
  .zmq-run:nth-child(2), .zmq-run > :nth-child(n+4) { display: none; }
  .zmq-item { white-space: normal; text-align: center; }
}
