/* MGC Bridge: home page (hx-*). Self-contained; does not depend on home.css. */

.hx {
  /* Default palette = Monday (Royal Sapphire & Gold). Each day below overrides these variables. */
  --navy: #07123a; --navy2: #0f2466; --royal: #1f3f9e;
  --gold: #d9ac3e; --gold2: #f2d27a; --gold-deep: #a97f1c; --gold-soft: #f9f0d5; --gold-ink: #6b4f0e;
  --ink: #0b1536; --mute: #46557a; --line: #dde4f3; --edge: #bcc9e6; --sky: #eef2fb; --paper: #f6f8fd;
  --h1: #0a1d5c; --h2: #153182; --h3: #2147b0;
  --acc: 217,172,62; --acc2: 70,110,230; --shade: 6,14,48;
  --red: #c8283c;
  --font-head: Poppins, Inter, system-ui, sans-serif; --hw: 700; --hs: 1; --track: -.01em; --track-h: -.02em;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  margin-bottom: -4rem; /* cancels the layout's pb-16 so the themed background reaches the footer */
  overflow-x: clip;
}
.hx[data-theme="sunday"] {
  --navy: #2e050f; --navy2: #5c0a1c; --royal: #a31230;
  --gold: #e6bd5e; --gold2: #f6dc98; --gold-deep: #b08a2e; --gold-soft: #faefd5; --gold-ink: #6e4f12;
  --ink: #2a0a12; --mute: #6b4f56; --line: #f0d9dc; --edge: #deb6bc; --sky: #fbeff0; --paper: #fff8f8;
  --h1: #4a0816; --h2: #7d0f26; --h3: #b01a3a;
  --acc: 230,189,94; --acc2: 240,80,100; --shade: 36,4,10;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1; --track: -.005em; --track-h: -.015em;
}
.hx[data-theme="tuesday"] {
  --navy: #04231c; --navy2: #0a4033; --royal: #0c6a50;
  --gold: #d4af37; --gold2: #efd57e; --gold-deep: #9e7f1c; --gold-soft: #f8f0d3; --gold-ink: #6b5412;
  --ink: #082a21; --mute: #466158; --line: #d6e8df; --edge: #b0d0c2; --sky: #eaf4ef; --paper: #f5faf7;
  --h1: #052f25; --h2: #0a5340; --h3: #0f6f56;
  --acc: 212,175,55; --acc2: 40,170,125; --shade: 2,22,17;
  --font-head: Fraunces, Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1; --track: -.005em; --track-h: -.02em;
}
.hx[data-theme="wednesday"] {
  --navy: #2b0814; --navy2: #4d0f27; --royal: #8a1c47;
  --gold: #e0b86a; --gold2: #f4dba0; --gold-deep: #a67c2e; --gold-soft: #f9eed6; --gold-ink: #6e4f16;
  --ink: #2a0d18; --mute: #6b4f5a; --line: #ecd9df; --edge: #d8b8c3; --sky: #f8eef1; --paper: #fcf7f9;
  --h1: #3e0b20; --h2: #66132f; --h3: #8f1d46;
  --acc: 224,184,106; --acc2: 210,70,120; --shade: 28,5,14;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1.14; --track: 0; --track-h: -.01em;
}
.hx[data-theme="thursday"] {
  --navy: #170a38; --navy2: #2b1363; --royal: #5e35c5;
  --gold: #e0b84f; --gold2: #f4da8a; --gold-deep: #a98124; --gold-soft: #f8efd4; --gold-ink: #6b4f10;
  --ink: #170c36; --mute: #55507a; --line: #e1dbf3; --edge: #c7bce6; --sky: #f1edfb; --paper: #f9f7fe;
  --h1: #24104f; --h2: #3a1d8c; --h3: #5a32c0;
  --acc: 224,184,79; --acc2: 140,100,245; --shade: 14,6,36;
  --font-head: Sora, Inter, system-ui, sans-serif; --hw: 700; --hs: 0.94; --track: -.02em; --track-h: -.035em;
}
.hx[data-theme="friday"] {
  --navy: #04262f; --navy2: #09424f; --royal: #0c6b80;
  --gold: #e3b95a; --gold2: #f5dc92; --gold-deep: #ad8628; --gold-soft: #f9efd6; --gold-ink: #6b5012;
  --ink: #062a33; --mute: #456068; --line: #d3e7ea; --edge: #aacfd6; --sky: #e9f5f7; --paper: #f5fafb;
  --h1: #053847; --h2: #0a5a6e; --h3: #0f7a92;
  --acc: 227,185,90; --acc2: 40,190,210; --shade: 2,26,34;
  --font-head: 'Space Grotesk', Inter, system-ui, sans-serif; --hw: 700; --hs: 1; --track: -.02em; --track-h: -.035em;
}
.hx[data-theme="saturday"] {
  --navy: #08080d; --navy2: #16161f; --royal: #7a5e12;
  --gold: #d9b23c; --gold2: #f3d98a; --gold-deep: #a37e1b; --gold-soft: #faf2d4; --gold-ink: #6b5412;
  --ink: #15141a; --mute: #5a574c; --line: #e6e2d6; --edge: #cfc8b2; --sky: #f4f2ec; --paper: #faf9f6;
  --h1: #0d0d14; --h2: #181826; --h3: #262640;
  --acc: 217,178,60; --acc2: 90,100,190; --shade: 4,4,10;
  --font-head: 'DM Serif Display', Georgia, 'Times New Roman', serif; --hw: 400; --hs: 1.04; --track: 0; --track-h: -.01em;
}

.hx[data-theme="silver"] {
  --navy: #0a1022; --navy2: #172036; --royal: #3d4f7a;
  --gold: #c9d2e0; --gold2: #e8edf5; --gold-deep: #8e9ab0; --gold-soft: #eef1f7; --gold-ink: #3d4a63;
  --ink: #0d1426; --mute: #4f5b73; --line: #dfe3ec; --edge: #c3cad9; --sky: #eff2f8; --paper: #f7f8fb;
  --h1: #0c1530; --h2: #19264a; --h3: #2a3b6b;
  --acc: 201,210,224; --acc2: 90,120,200; --shade: 6,10,24;
  --font-head: Poppins, Inter, system-ui, sans-serif; --hw: 700; --hs: 1; --track: -.01em; --track-h: -.02em;
}
.hx[data-theme="rose"] {
  --navy: #2a0f1c; --navy2: #4a1b32; --royal: #9a3a62;
  --gold: #e8a994; --gold2: #f6cfc0; --gold-deep: #b87560; --gold-soft: #fbeae3; --gold-ink: #7a3b2a;
  --ink: #2a1019; --mute: #6b5059; --line: #f0dce1; --edge: #dcbac6; --sky: #fbf0f3; --paper: #fff9fa;
  --h1: #451a30; --h2: #6f2a4a; --h3: #9a3f67;
  --acc: 232,169,148; --acc2: 215,90,140; --shade: 38,10,22;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1; --track: -.005em; --track-h: -.015em;
}
.hx[data-theme="bronze"] {
  --navy: #1c120c; --navy2: #3a2418; --royal: #8a5a2b;
  --gold: #cd9a5b; --gold2: #e9c996; --gold-deep: #9a6a32; --gold-soft: #f6e9d6; --gold-ink: #6a4219;
  --ink: #20150d; --mute: #65574b; --line: #eadfd2; --edge: #d3c0aa; --sky: #f7f0e7; --paper: #fcf9f5;
  --h1: #2d1b11; --h2: #50301c; --h3: #774a28;
  --acc: 205,154,91; --acc2: 190,120,60; --shade: 22,12,6;
  --font-head: Fraunces, Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1; --track: -.005em; --track-h: -.02em;
}
.hx[data-theme="indigo"] {
  --navy: #0b0f3a; --navy2: #1a2275; --royal: #3446d6;
  --gold: #5fd4c8; --gold2: #a3ece4; --gold-deep: #2fa79b; --gold-soft: #dff6f3; --gold-ink: #14645c;
  --ink: #0d1140; --mute: #4b5282; --line: #dde0f5; --edge: #bcc2ea; --sky: #eef0fc; --paper: #f7f8fe;
  --h1: #121a66; --h2: #1f2b9a; --h3: #3447d4;
  --acc: 95,212,200; --acc2: 90,110,255; --shade: 8,10,48;
  --font-head: 'Space Grotesk', Inter, system-ui, sans-serif; --hw: 700; --hs: 1; --track: -.02em; --track-h: -.035em;
}
.hx[data-theme="olive"] {
  --navy: #1a1f0c; --navy2: #333d17; --royal: #5f6e1f;
  --gold: #cfae4a; --gold2: #ecd88f; --gold-deep: #9a7e26; --gold-soft: #f6efd3; --gold-ink: #6b5412;
  --ink: #1e230f; --mute: #596046; --line: #e3e6d3; --edge: #c8cfae; --sky: #f3f5e8; --paper: #fafbf4;
  --h1: #28300f; --h2: #46531b; --h3: #66782a;
  --acc: 207,174,74; --acc2: 140,170,50; --shade: 14,18,5;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1.14; --track: 0; --track-h: -.01em;
}

.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx h1, .hx h2, .hx h3 { font-family: var(--font-head); font-weight: var(--hw); margin: 0; letter-spacing: var(--track); }
.hx p { margin: 0; }
.hx a { text-decoration: none; }
.hx-wrap { width: min(100% - 2rem, 1200px); margin-inline: auto; }

/* Focus */
.hx a:focus-visible, .hx button:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: .5rem; }
.hx-hero a:focus-visible, .hx-final a:focus-visible { outline-color: var(--gold2); }

/* Suit pips */
.hx-pip { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.12em; }
[data-suit="heart"] > .hx-pip, [data-suit="diamond"] > .hx-pip { color: var(--red); }

/* ================= HERO ================= */
.hx-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(1.8rem, 5vw, 4rem) 0 clamp(5.5rem, 10vw, 7.5rem);
  background:
    radial-gradient(55rem 28rem at 88% -8%, rgba(var(--acc),.20), transparent 62%),
    radial-gradient(48rem 30rem at -5% 108%, rgba(var(--acc2),.38), transparent 60%),
    linear-gradient(135deg, var(--h1) 0%, var(--h2) 52%, var(--h3) 100%);
}
.hx-hero-media { position: absolute; inset: 0; z-index: -3; }
.hx-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }

/* No upload: soft vignette plus a quiet pattern of the four suits */
.hx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(var(--shade),0) 40%, rgba(var(--shade),.4) 100%);
}
.hx-hero:not(.has-photo)::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg fill='white' fill-opacity='.055'%3E%3Cpath transform='translate(16 14) scale(1.3)' d='M12 1.5C9 6 3.5 9.2 3.5 13.6a4.1 4.1 0 006.7 3.1c-.1 1.9-.8 3.7-2.4 5.8h8.4c-1.6-2.1-2.3-3.9-2.4-5.8a4.1 4.1 0 006.7-3.1C20.5 9.2 15 6 12 1.5z'/%3E%3Cpath transform='translate(104 28) scale(1.3)' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3Cpath transform='translate(34 98) scale(1.3)' d='M12 1.5l7.5 10.5L12 22.5 4.5 12z'/%3E%3Cg transform='translate(108 100) scale(1.3)'%3E%3Ccircle cx='12' cy='6.8' r='4.3'/%3E%3Ccircle cx='6.8' cy='14' r='4.3'/%3E%3Ccircle cx='17.2' cy='14' r='4.3'/%3E%3Cpath d='M12 11c0 4.2-.9 7.6-3.3 11.2h6.6C12.9 18.6 12 15.2 12 11z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 170px 170px;
  -webkit-mask-image: linear-gradient(95deg, #000 0%, rgba(0,0,0,.55) 100%); mask-image: linear-gradient(95deg, #000 0%, rgba(0,0,0,.55) 100%);
}
/* With an uploaded photo: darker on the left so the title stays readable */
.hx-hero.has-photo::before {
  background: linear-gradient(95deg, rgba(var(--shade),.92) 0%, rgba(var(--shade),.78) 38%, rgba(var(--shade),.35) 72%, rgba(var(--shade),.25) 100%);
}
.hx-hero-suits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-hero-suits svg {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--s, 3rem); height: var(--s, 3rem);
  color: var(--c, #fff); opacity: var(--o, .08);
  transform: rotate(var(--r, 0deg));
  animation: hx-float var(--d, 14s) ease-in-out infinite; animation-delay: var(--dl, 0s);
}
.hx-hero-suits svg:nth-child(1) { --x: 3%;  --y: 62%; --s: 5.5rem; --o: .08; --r: -12deg; --d: 15s; }
.hx-hero-suits svg:nth-child(2) { --x: 44%; --y: 8%;  --s: 3rem;   --o: .10; --r: 10deg;  --d: 12s; --dl: -3s; --c: var(--gold2); }
.hx-hero-suits svg:nth-child(3) { --x: 90%; --y: 6%;  --s: 4.5rem; --o: .08; --r: 14deg;  --d: 17s; --dl: -6s; }
.hx-hero-suits svg:nth-child(4) { --x: 84%; --y: 70%; --s: 7rem;   --o: .07; --r: -8deg;  --d: 19s; --dl: -2s; }
.hx-hero-suits svg:nth-child(5) { --x: 27%; --y: 78%; --s: 2.6rem; --o: .12; --r: 8deg;   --d: 13s; --dl: -8s; --c: var(--gold2); }
.hx-hero-suits svg:nth-child(6) { --x: 62%; --y: 84%; --s: 3.4rem; --o: .08; --r: -16deg; --d: 16s; --dl: -5s; }
.hx-hero-suits svg:nth-child(7) { --x: 70%; --y: 30%; --s: 2.2rem; --o: .10; --r: 20deg;  --d: 11s; --dl: -1s; --c: var(--gold2); }
.hx-hero-suits svg:nth-child(8) { --x: 12%; --y: 10%; --s: 2.4rem; --o: .08; --r: -6deg;  --d: 14s; --dl: -9s; }
@keyframes hx-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

.hx-hero-grid { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 900px) { .hx-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 2.5rem; } }

.hx-hero-copy > * { animation: hx-up .7s cubic-bezier(.2,.8,.2,1) both; }
.hx-hero-copy > :nth-child(2) { animation-delay: .08s; }
.hx-hero-copy > :nth-child(3) { animation-delay: .16s; }
.hx-hero-copy > :nth-child(4) { animation-delay: .24s; }
.hx-hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes hx-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hx-pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem;
  border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  font-size: .85rem; font-weight: 600; color: var(--gold2); margin-bottom: 1rem;
}
.hx .hx-hero h1 { color: #fff; font-size: calc(clamp(2rem, 5.2vw, 3.8rem) * var(--hs)); line-height: 1.1; font-weight: var(--hw); letter-spacing: var(--track-h); text-wrap: balance; text-shadow: 0 2px 24px rgba(5,12,32,.35); }
.hx .hx-hero h1 span { color: var(--gold); }
.hx-lede { margin-top: 1rem; max-width: 36rem; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; color: rgba(255,255,255,.86); }

.hx-facts { list-style: none; padding: 0; margin: 1.3rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hx-facts li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: .7rem;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: .92rem;
}
.hx-facts svg { color: var(--gold); flex: none; }

.hx-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hx-cta--center { justify-content: center; }

/* Buttons */
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.35rem;
  border-radius: .7rem; border: 1.5px solid transparent; font: 600 .95rem/1.1 Inter, system-ui, sans-serif;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn:active { transform: translateY(0) scale(.98); }
.hx-btn--sm { min-height: 2.5rem; padding: .55rem 1.05rem; font-size: .88rem; }
.hx-btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px -10px rgba(var(--acc),.9); }
.hx-btn--gold:hover { background: var(--gold2); }
.hx-btn--line { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); }
.hx-btn--line:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.hx-btn--navy { background: var(--navy); color: #fff; }
.hx-btn--navy:hover { background: var(--royal); }
.hx-btn--ghost { background: transparent; color: var(--navy); border-color: var(--edge); }
.hx-btn--ghost:hover { border-color: var(--royal); background: #fff; }

/* Countdown */
.hx-count {
  padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: 1.25rem; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.7);
  animation: hx-up .8s .3s cubic-bezier(.2,.8,.2,1) both;
}
.hx-count-title { font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin-bottom: .9rem; color: #fff; }
.hx-count-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.hx-count-grid[hidden] { display: none; }
.hx-count-box { background: #fff; color: var(--navy); border-radius: .8rem; padding: .7rem .2rem .55rem; text-align: center; min-width: 0; }
.hx-count-box b { display: block; font: var(--hw) clamp(1.4rem, 4.4vw, 2.2rem)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.hx-count-box span { display: block; margin-top: .3rem; font-size: clamp(.62rem, 1.7vw, .75rem); font-weight: 600; color: var(--mute); }
.hx-count-note { margin-top: .9rem; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.85); }
.hx-count-msg { font: var(--hw) 1.15rem/1.4 var(--font-head); margin: .2rem 0 .3rem; }


/* Slow colour aurora behind the hero (transform only, so it stays smooth on phones) */
.hx-aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hx-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hx-aurora i:nth-child(1) { width: 34rem; height: 34rem; right: -9rem; top: -11rem; background: rgba(var(--acc), .30); animation: hx-drift1 22s ease-in-out infinite alternate; }
.hx-aurora i:nth-child(2) { width: 38rem; height: 38rem; left: -13rem; bottom: -17rem; background: rgba(var(--acc2), .40); animation: hx-drift2 26s ease-in-out infinite alternate; }
.hx-hero.has-photo .hx-aurora { opacity: .35; }
@keyframes hx-drift1 { to { transform: translate3d(-6rem, 5rem, 0) scale(1.15); } }
@keyframes hx-drift2 { to { transform: translate3d(7rem, -4rem, 0) scale(1.1); } }

/* The year glows like gold leaf */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hx .hx-hero h1 span {
    background: linear-gradient(100deg, var(--gold) 0%, var(--gold2) 45%, var(--gold) 90%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: hx-leaf 7s linear infinite;
  }
}
@keyframes hx-leaf { to { background-position: -220% 0; } }

/* Smooth hand-over when the theme changes (e.g. at midnight while the page is open) */
.hx, .hx-hero, .hx-sec--sky { transition: background-color .8s ease; }

/* ================= QUICK LINKS: a hand of four cards ================= */
.hx-quick-wrap { position: relative; z-index: 5; margin-top: calc(-1 * clamp(2.7rem, 5vw, 3.5rem)); }
.hx-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.hx-q {
  position: relative; display: flex; align-items: center; gap: .75rem; min-width: 0;
  padding: .85rem 1.6rem .85rem .9rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: .95rem; overflow: hidden;
  box-shadow: 0 16px 32px -20px rgba(var(--shade),.6);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: hx-deal .65s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.5s + var(--i, 0) * .1s);
}
@keyframes hx-deal { from { opacity: 0; transform: translateY(22px) rotate(-3deg); } to { opacity: 1; transform: none; } }
.hx-q::after { /* shine sweep on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(var(--acc),.22), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.hx-q:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 22px 36px -20px rgba(var(--shade),.65); }
.hx-q:hover::after { left: 130%; }
.hx-q:active { transform: translateY(-1px) scale(.98); }
.hx-q > .hx-pip { position: absolute; top: .5rem; right: .55rem; width: .9rem; height: .9rem; color: var(--ink); opacity: .55; transition: transform .35s ease, opacity .25s; }
.hx-q:hover > .hx-pip { transform: rotate(18deg) scale(1.25); opacity: 1; }
.hx-q-ico {
  display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--navy); color: var(--gold); transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .25s;
}
.hx-q:hover .hx-q-ico { transform: scale(1.12) rotate(-8deg); background: var(--royal); }
.hx-q-txt { display: flex; flex-direction: column; min-width: 0; }
.hx-q-txt b { font-size: .98rem; font-weight: 700; line-height: 1.2; }
.hx-q-txt small { margin-top: .15rem; font-size: .78rem; line-height: 1.3; color: var(--mute); }

@media (max-width: 999px) { .hx-q-txt small { display: none; } }
@media (max-width: 700px) {
  .hx-quick { gap: .45rem; }
  .hx-q { flex-direction: column; justify-content: center; text-align: center; gap: .35rem; padding: .7rem .2rem .6rem; border-radius: .8rem; }
  .hx-q > .hx-pip { top: .3rem; right: .3rem; width: .7rem; height: .7rem; }
  .hx-q-ico { width: 2.15rem; height: 2.15rem; }
  .hx-q-ico svg { width: 17px; height: 17px; }
  .hx-q-txt b { font-size: .72rem; line-height: 1.15; text-wrap: balance; }
}
@media (max-width: 360px) { .hx-q-txt b { font-size: .66rem; } .hx-q-ico { width: 1.9rem; height: 1.9rem; } }

/* ================= SECTIONS ================= */
.hx-sec { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.hx-sec--sky { background: var(--sky); }
.hx-sec--tight { padding-top: 0; }
.hx-sec--sky + .hx-sec--tight { padding-top: clamp(2.6rem, 6vw, 4.5rem); }
.hx-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.6rem; }
.hx-kicker { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .4rem; font-size: .88rem; font-weight: 600; color: var(--royal); }
.hx-kicker .hx-pip { color: var(--gold); width: 1rem; height: 1rem; }
.hx .hx-h2 { font-size: calc(clamp(1.45rem, 3.4vw, 2.3rem) * var(--hs)); line-height: 1.15; font-weight: var(--hw); color: var(--navy); text-wrap: balance; }
.hx-p { margin-top: 1rem; max-width: 38rem; line-height: 1.75; color: var(--mute); font-size: 1.02rem; }
.hx-link { font-weight: 600; color: var(--royal); border-bottom: 2px solid var(--gold); padding-bottom: 1px; transition: color .2s; }
.hx-link:hover { color: var(--navy); }
.hx-empty { padding: 1.4rem; border: 1.5px dashed var(--edge); border-radius: 1rem; color: var(--mute); background: #fff; }

.hx-grid { display: grid; gap: 1.1rem; }
.hx-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
.hx-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }

/* Scroll reveal: only items below the fold are hidden, and only by the script, so nothing can stay invisible */
.hx-rv.hx-pre { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.hx-rv.hx-pre.in { opacity: 1; transform: none; }

/* Events */
.hx-ev {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 1rem;
  box-shadow: 0 14px 30px -26px rgba(var(--shade),.6); transition: box-shadow .25s ease, transform .25s ease;
}
.hx-ev:hover { box-shadow: 0 22px 36px -24px rgba(var(--shade),.6); }
.hx-ev .hx-ev-bg { position: absolute; right: -.7rem; bottom: -.9rem; width: 6.5rem; height: 6.5rem; color: var(--navy); opacity: .05; pointer-events: none; }
.hx-ev[data-suit="heart"] .hx-ev-bg, .hx-ev[data-suit="diamond"] .hx-ev-bg { color: var(--red); opacity: .07; }
.hx-ev-date { align-self: flex-start; padding: .25rem .65rem; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); font-size: .78rem; font-weight: 700; }
.hx .hx-ev h3 { font-size: 1.15rem; line-height: 1.3; color: var(--navy); }
.hx-ev p { font-size: .93rem; line-height: 1.6; color: var(--mute); }
.hx-ev-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .7rem; position: relative; }

/* About */
.hx-about { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hx-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; } }
.hx-photo { position: relative; margin: 0; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 30px 50px -34px rgba(var(--shade),.8); background: var(--navy2); }
.hx-photo img { display: block; width: 100%; height: auto; }
.hx-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .15rem; padding: 2.5rem 1.1rem .9rem;
  color: #fff; background: linear-gradient(to top, rgba(var(--shade),.85), transparent);
}
.hx-photo figcaption b { font-size: .98rem; }
.hx-photo figcaption span { font-size: .82rem; color: rgba(255,255,255,.85); }

.hx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; }
@media (max-width: 800px) { .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.hx-stat { position: relative; padding: 1.1rem 1.1rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.hx-stat > .hx-pip { position: absolute; top: .7rem; right: .7rem; width: 1.1rem; height: 1.1rem; color: var(--navy); opacity: .5; }
.hx-stat b { display: block; font: var(--hw) clamp(1.6rem, 4vw, 2.3rem)/1.1 var(--font-head); color: var(--navy); font-variant-numeric: tabular-nums; }
.hx-stat span { display: block; margin-top: .35rem; font-size: .86rem; font-weight: 500; color: var(--mute); }

/* News + results */
.hx-two { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .hx-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.hx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hx-row {
  display: flex; gap: .95rem; align-items: flex-start; padding: .95rem 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 1rem; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hx-row:hover { border-color: var(--gold); transform: translateX(4px); box-shadow: 0 14px 28px -22px rgba(var(--shade),.6); }
.hx-row-date { flex: none; display: grid; place-items: center; width: 3.2rem; padding: .45rem 0; border-radius: .7rem; background: var(--navy); color: #fff; text-align: center; line-height: 1.1; }
.hx-row-date b { font: var(--hw) 1.2rem/1 var(--font-head); }
.hx-row-date span { font-size: .7rem; font-weight: 600; color: var(--gold2); }
.hx-row-date--gold { align-self: center; height: 3.2rem; background: var(--gold-soft); color: var(--red); font-size: 1.4rem; }
.hx-row-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.hx-row-body small { font-size: .78rem; font-weight: 600; color: var(--royal); }
.hx-row-body b { font-size: 1rem; line-height: 1.35; color: var(--navy); }
.hx-row-body p { font-size: .9rem; line-height: 1.55; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Gallery */
.hx-gal { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 1rem; overflow: hidden; background: var(--navy2); }
.hx-gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hx-gal:hover img { transform: scale(1.06); }
.hx-gal span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(to top, rgba(var(--shade),.88), transparent);
}

/* Visit */
.hx-visit { position: relative; border-radius: 1.3rem; overflow: hidden; background: var(--navy); box-shadow: 0 30px 50px -36px rgba(var(--shade),.8); }
.hx-visit-img img { display: block; width: 100%; height: auto; }
.hx-visit-card { padding: 1.4rem 1.3rem 1.5rem; background: #fff; }
.hx-visit-card address { margin-top: .8rem; font-style: normal; line-height: 1.7; color: var(--mute); }
.hx-visit-card address strong { display: block; color: var(--navy); }
@media (min-width: 900px) {
  .hx-visit-card { position: absolute; left: 1.5rem; bottom: 1.5rem; max-width: 23rem; border-radius: 1rem; box-shadow: 0 24px 40px -24px rgba(0,0,0,.6); }
}

/* Final call to action */
.hx-final {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  padding: clamp(2.2rem, 6vw, 3.8rem) 1.4rem; border-radius: 1.4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
}
.hx-final h2 { font-size: clamp(1.5rem, 3.8vw, 2.4rem); }
.hx-final p { max-width: 34rem; margin: .8rem auto 0; line-height: 1.7; color: rgba(255,255,255,.86); }
.hx-final-suits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-final-suits svg { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); color: var(--gold2); opacity: .14; transform: rotate(var(--r)); }

/* Large screens: let the hero breathe */
@media (min-width: 1500px) { .hx-wrap { width: min(100% - 4rem, 1280px); } }

/* Small phones */
@media (max-width: 480px) {
  .hx-cta .hx-btn:not(.hx-btn--sm) { flex: 1 1 auto; }
  .hx-facts li { font-size: .84rem; padding: .5rem .75rem; }
  .hx-row:hover { transform: none; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
  .hx-rv.hx-pre { opacity: 1; transform: none; }
}


/* ================= Royal finish: metallic gold, jewel depth, fine gold rules ================= */
.hx-hero { box-shadow: inset 0 -3px 0 rgba(var(--acc), .6); }
.hx-pill { background: rgba(var(--shade), .35); border-color: rgba(var(--acc), .55); color: var(--gold2); }
.hx-facts li { border-color: rgba(var(--acc), .32); background: rgba(var(--shade), .28); }

.hx .hx-btn--gold,
.hx .hx-btn--gold:hover {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  border-color: rgba(255,255,255,.28); color: var(--navy);
  box-shadow: 0 12px 24px -12px rgba(var(--acc), .95), inset 0 1px 0 rgba(255,255,255,.5);
}
.hx .hx-btn--gold:hover { filter: brightness(1.07) saturate(1.05); }
.hx .hx-btn--line { border-color: rgba(var(--acc), .6); }
.hx .hx-btn--line:hover { border-color: var(--gold2); background: rgba(var(--acc), .16); }
.hx .hx-btn--navy { background: linear-gradient(145deg, var(--navy2), var(--navy)); box-shadow: inset 0 0 0 1px rgba(var(--acc), .45); }

/* Countdown: jewelled glass with a gold thread across the top */
.hx-count { position: relative; border-color: rgba(var(--acc), .45); background: rgba(var(--shade), .38); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.22); }
.hx-count::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold2), transparent); }
.hx-count-title { color: var(--gold2); }
.hx-count-box { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 3px solid var(--gold); }

/* Quick cards: gold-ringed medallions */
.hx-q { box-shadow: 0 18px 36px -22px rgba(var(--shade), .7); }
.hx-q-ico { background: linear-gradient(145deg, var(--navy2), var(--navy)); box-shadow: 0 0 0 2px rgba(var(--acc), .6), 0 6px 14px -6px rgba(var(--shade), .8); }
.hx-q:hover { box-shadow: 0 24px 40px -22px rgba(var(--shade), .75), 0 0 0 1px rgba(var(--acc), .5); }

/* Headings get a short gold rule; cards get a gold crown line */
.hx .hx-h2::after { content: ""; display: block; width: 3.2rem; height: 3px; margin-top: .75rem; border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold2)); }
.hx-sec--sky { background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%); }
.hx-ev, .hx-stat, .hx-row { box-shadow: 0 18px 38px -28px rgba(var(--shade), .55); }
.hx-ev { border-top-color: var(--gold); }
.hx-stat { border-top: 3px solid var(--gold); }
.hx-row-date { background: linear-gradient(160deg, var(--navy2), var(--navy)); box-shadow: inset 0 0 0 1px rgba(var(--acc), .4); }
.hx-visit { box-shadow: 0 34px 60px -38px rgba(var(--shade), .85), 0 0 0 1px rgba(var(--acc), .35); }
.hx-photo { box-shadow: 0 34px 56px -36px rgba(var(--shade), .85), 0 0 0 1px rgba(var(--acc), .3); }
.hx-link { border-bottom-color: var(--gold); }


/* ================= Colour picker (floating button + panel) ================= */
.hx-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--gold); color: var(--gold2);
  background: linear-gradient(145deg, var(--navy2), var(--navy));
  box-shadow: 0 14px 28px -10px rgba(var(--shade), .8), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .25s ease;
}
.hx-fab:hover { transform: rotate(14deg) scale(1.08); }
.hx-fab:active { transform: scale(.94); }
.hx-fab svg { width: 1.45rem; height: 1.45rem; }
.hx-fab::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: hx-ring 2.2s ease-out 1.6s 3; pointer-events: none; }
@keyframes hx-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.hx-fab[aria-expanded="true"] { transform: rotate(90deg); }

.hx-pal {
  position: fixed; right: 1rem; bottom: calc(4.7rem + env(safe-area-inset-bottom, 0px)); z-index: 56;
  width: min(calc(100vw - 2rem), 21.5rem); max-height: calc(100dvh - 7rem); overflow: auto;
  padding: 1rem 1rem 1.05rem; border-radius: 1.2rem; color: var(--ink);
  background: rgba(255,255,255,.97); border: 1px solid var(--edge); border-top: 3px solid var(--gold);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 34px 70px -28px rgba(var(--shade), .8);
  transform-origin: bottom right; opacity: 0; transform: translateY(12px) scale(.94); visibility: hidden;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.9,.3,1), visibility 0s linear .3s;
}
.hx-pal.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.hx-pal-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; }
.hx-pal-head b { font: var(--hw) 1.02rem/1.2 var(--font-head); color: var(--navy); }
.hx-pal-x { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hx-pal-x:hover { background: var(--gold-soft); }

.hx-auto {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .8rem; margin-bottom: .85rem; text-align: left; cursor: pointer;
  border: 1.5px solid var(--edge); border-radius: .85rem; background: var(--paper); color: var(--ink); font: 600 .86rem/1.25 Inter, system-ui, sans-serif;
  transition: border-color .2s, background .2s;
}
.hx-auto small { display: block; font-weight: 500; font-size: .75rem; color: var(--mute); }
.hx-auto svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--gold-deep); }
.hx-auto:hover { border-color: var(--gold); }
.hx-auto[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }

.hx-sw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem .4rem; }
.hx-sw { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .25rem 0 .1rem; border: 0; background: none; cursor: pointer; color: var(--mute); font: 600 .68rem/1.1 Inter, system-ui, sans-serif; }
.hx-pal.open .hx-sw { animation: hx-pop .45s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--n, 0) * 28ms + 60ms); }
@keyframes hx-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.hx-sw-dot { position: relative; width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.55); transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .2s; }
.hx-sw:hover .hx-sw-dot { transform: scale(1.12) rotate(-8deg); }
.hx-sw[aria-pressed="true"] { color: var(--navy); }
.hx-sw[aria-pressed="true"] .hx-sw-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--gold-deep), 0 8px 16px -6px rgba(0,0,0,.5); }
.hx-sw[aria-pressed="true"] .hx-sw-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .5rem; height: .9rem; margin: -.55rem 0 0 -.25rem;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.hx-pal-note { margin-top: .85rem; font-size: .75rem; line-height: 1.45; color: var(--mute); }
.hx-fab:focus-visible, .hx-pal button:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }

/* Full-screen colour wipe played when a theme is picked (appended to <body>, so it uses plain colours) */
.hx-wipe { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

@media (max-width: 480px) {
  .hx-fab { width: 2.8rem; height: 2.8rem; right: .8rem; }
  .hx-pal { right: .8rem; bottom: calc(4.3rem + env(safe-area-inset-bottom, 0px)); }
  .hx-sw-dot { width: 2.45rem; height: 2.45rem; }
}
@media print { .hx-fab, .hx-pal, .hx-wipe { display: none !important; } }


/* ================= Sponsors on the home page ================= */
.hx-spt { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.hx-spt li { display: flex; }
.hx-spt-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .65rem; width: 100%; padding: 1rem 1rem .95rem; text-align: center; color: var(--ink); overflow: hidden;
  border: 2px solid transparent; border-radius: 1.1rem;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--gold2), var(--gold-deep), var(--gold2)) border-box;
  box-shadow: 0 22px 40px -30px rgba(var(--shade), .8);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
a.hx-spt-card:hover { transform: translateY(-6px); box-shadow: 0 30px 46px -28px rgba(var(--shade), .85); }
.hx-spt-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(var(--acc), .28), transparent); transform: skewX(-18deg); transition: left .75s ease; }
a.hx-spt-card:hover::after { left: 135%; }
.hx-spt-tag { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); }
.hx-spt-logo { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: .8rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.hx-spt-logo img { position: absolute; inset: .6rem; width: calc(100% - 1.2rem); height: calc(100% - 1.2rem); max-width: none; object-fit: contain; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.hx-spt-logo .hx-mono { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
a.hx-spt-card:hover .hx-spt-logo img { transform: scale(1.07); }
.hx-spt-name { font: var(--hw) .98rem/1.3 var(--font-head); color: var(--navy); }
.hx-mono { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; font: var(--hw) 1.15rem/1 var(--font-head); color: var(--gold2); background: linear-gradient(145deg, var(--navy2), var(--navy)); box-shadow: 0 0 0 2px rgba(var(--acc), .55); }
.hx-mono--sm { width: 2.8rem; height: 2.8rem; font-size: .95rem; }

/* Scrolling strip of associate sponsors and partners */
.hx-mq { position: relative; overflow: hidden; margin-top: .4rem; padding: .7rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hx-mq-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: hx-mq 42s linear infinite; }
.hx-mq:hover .hx-mq-track, .hx-mq:focus-within .hx-mq-track { animation-play-state: paused; }
@keyframes hx-mq { to { transform: translateX(calc(-100% / var(--rep, 2))); } }
.hx-mq-track li { flex: none; margin-right: 1rem; }
.hx-mq-item { position: relative; display: block; overflow: hidden; width: 11.5rem; height: 5.4rem; background: #fff; border: 1px solid var(--line); border-radius: .95rem; box-shadow: 0 14px 28px -24px rgba(var(--shade), .7); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
a.hx-mq-item:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 30px -22px rgba(var(--shade), .8); }
.hx-mq-item img { position: absolute; inset: .5rem; width: calc(100% - 1rem); height: calc(100% - 1rem); max-width: none; object-fit: contain; }
.hx-mq-item .hx-mono { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@media (max-width: 560px) { .hx-mq-item { width: 9.2rem; height: 4.6rem; } }
@media (prefers-reduced-motion: reduce) {
  .hx-mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hx-mq-track { animation: none !important; }
}


/* ================= Banner mode: an uploaded hero picture is shown whole, with the countdown in a bar underneath ================= */
.hx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hx-hero.has-photo { padding: 0 0 clamp(3.9rem, 7vw, 5rem); background: linear-gradient(135deg, var(--h1) 0%, var(--h2) 55%, var(--h3) 100%); }
.hx-hero.has-photo::before, .hx-hero.has-photo::after { display: none; }
.hx-hero.has-photo .hx-hero-media { position: relative; inset: auto; z-index: auto; }
.hx-hero.has-photo .hx-hero-media img { width: 100%; height: auto; max-height: min(80vh, 38rem); object-fit: cover; object-position: center; display: block; }
.hx-hero.has-photo .hx-hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(var(--shade), .5)); }
.hx-hero.has-photo .hx-wrap { padding-top: clamp(1rem, 2.4vw, 1.6rem); }
.hx-hero.has-photo .hx-hero-grid { display: block; }

.hx-hero.has-photo .hx-count {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem 2rem; padding: 0; margin: 0;
  background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none;
}
.hx-hero.has-photo .hx-count::before { display: none; }
.hx-hero.has-photo .hx-count-title { margin: 0; font-size: 1rem; }
.hx-hero.has-photo .hx-count-grid { width: min(100%, 23rem); }
.hx-hero.has-photo .hx-count-note { margin: 0; font-size: .92rem; max-width: 20rem; }
.hx-hero.has-photo .hx-count-msg { margin: 0; }

@media (max-width: 700px) {
  .hx-hero.has-photo .hx-hero-media img { max-height: none; }
  .hx-hero.has-photo .hx-count { flex-direction: column; align-items: stretch; text-align: center; gap: .7rem; }
  .hx-hero.has-photo .hx-count-grid { width: 100%; }
  .hx-hero.has-photo .hx-count-note { max-width: none; }
}
