/* Top menu: "a hand of cards". Transparent header on the page background, thin contact bar above.
   Loaded after main.css (see templates/layout.php) so it overrides the older .main-nav rules. */

/* thin contact bar */
.topbar{background:linear-gradient(90deg,var(--c1),var(--c2) 35%,var(--c3) 70%,var(--c4));color:#0D0B14;font-size:13px;font-weight:700}
.topbar-in{max-width:1320px;margin:0 auto;padding:5px 24px;display:flex;align-items:center;justify-content:space-between;gap:8px 24px;flex-wrap:wrap;min-height:30px}
.topbar a{color:inherit;text-decoration:none}
.topbar a:hover,.topbar a:focus-visible{text-decoration:underline}
.topbar-contact{display:flex;gap:6px 22px;flex-wrap:wrap}
.topbar-pull{font-weight:800}

/* header: no border, same background as the page, room around the logo */
.site-header-wrap{background:var(--bg);padding:0 24px}
.site-header{background:transparent;border:0;border-radius:0;box-shadow:none;padding:38px 0 18px;gap:24px}
.site-header .brand{flex:none;padding:0 8px 0 4px;line-height:0}
.site-header .brand img{display:block;height:84px;width:auto}
@media (min-width:1101px){
  .site-header .nav-panel{flex:1;gap:16px;min-width:0}
  .site-header .main-nav{flex:1;display:flex;justify-content:center}
}

/* the hand */
.site-header .main-nav ul{display:flex;flex-wrap:nowrap;list-style:none;margin:0;padding:12px 0 6px;gap:0;justify-content:center}
.site-header .main-nav li{margin-left:-2px;--c:var(--c1)}
.site-header .main-nav li:first-child{margin-left:0}
.site-header .main-nav li:nth-child(5n+2){--c:var(--c2)}
.site-header .main-nav li:nth-child(5n+3){--c:var(--c3)}
.site-header .main-nav li:nth-child(5n+4){--c:var(--c4)}
.site-header .main-nav li:nth-child(5n+5){--c:var(--c5)}
.site-header .main-nav li:nth-child(1) a{--r:-8deg;--y:6px}
.site-header .main-nav li:nth-child(2) a{--r:-6deg;--y:2px}
.site-header .main-nav li:nth-child(3) a{--r:-4deg;--y:-1px}
.site-header .main-nav li:nth-child(4) a{--r:-2deg;--y:-3px}
.site-header .main-nav li:nth-child(5) a{--r:0deg;--y:-4px}
.site-header .main-nav li:nth-child(6) a{--r:2deg;--y:-3px}
.site-header .main-nav li:nth-child(7) a{--r:4deg;--y:-1px}
.site-header .main-nav li:nth-child(8) a{--r:6deg;--y:2px}
.site-header .main-nav li:nth-child(9) a{--r:8deg;--y:6px}
.site-header .main-nav li:hover{z-index:5}

.site-header .main-nav li a{
  position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;text-align:left;
  width:106px;height:96px;min-height:0;padding:9px 8px 10px;
  border-radius:14px;background:var(--c);color:#0D0B14;
  font-size:13px;font-weight:700;white-space:nowrap;text-shadow:none;animation:none;
  rotate:var(--r,0deg);translate:0 var(--y,0);transform:none;
  box-shadow:-3px 4px 10px rgba(0,0,0,.45),inset 0 2px 0 rgba(255,255,255,.4);
  transition:translate .3s cubic-bezier(.3,1.6,.5,1),rotate .3s ease,box-shadow .3s ease,filter .2s;
}
.site-header .main-nav li a::before,.site-header .main-nav li a::after{content:none}
.site-header .main-nav .card-n{font-size:11px;font-weight:800;letter-spacing:.14em;opacity:.8}
.site-header .main-nav .card-l{font-family:'Syne',sans-serif;font-weight:800;font-size:10px;line-height:1.1;text-transform:uppercase;text-align:left;letter-spacing:-.02em;white-space:normal}
.site-header .main-nav .card-l.is-long{font-size:7.8px;letter-spacing:-.03em}
.site-header .main-nav .card-mt{position:absolute;right:9px;top:8px;width:18px;height:18px;opacity:.85}
.site-header .main-nav li a:hover,
.site-header .main-nav li a:focus-visible{translate:0 -14px;rotate:0deg;filter:brightness(1.08);color:#0D0B14;
  box-shadow:0 20px 28px -10px var(--c),inset 0 2px 0 rgba(255,255,255,.5)}
.site-header .main-nav li a[aria-current="page"]{translate:0 -10px;rotate:0deg;outline:3px solid #fff;outline-offset:2px;z-index:4}
.site-header .main-nav li a:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* Daily Card: a little deck that wobbles and fans out on hover */
.site-header .header-cta{align-items:center;flex:none}
.site-header .header-cta .btn-card{
  position:relative;display:block;width:84px;height:96px;min-height:0;padding:0;margin:0 6px 0 0;
  border:0;border-radius:12px;background:none;box-shadow:none;animation:none;color:inherit;
}
.site-header .header-cta .btn-card i,
.site-header .header-cta .btn-card b{
  position:absolute;left:14px;top:10px;width:58px;height:78px;border-radius:11px;
  border:2px solid var(--c3);background:#1D1928;transition:.3s ease;
}
.site-header .header-cta .btn-card i:nth-child(1){rotate:-14deg;border-color:var(--c4)}
.site-header .header-cta .btn-card i:nth-child(2){rotate:12deg;border-color:var(--c5)}
.site-header .header-cta .btn-card b{
  display:grid;place-items:center;text-align:center;font-size:11px;font-weight:800;line-height:1.15;letter-spacing:.04em;
  text-transform:uppercase;color:var(--c3);background:linear-gradient(160deg,rgba(var(--c3-rgb),.25),#1D1928);
  animation:card-wobble 2.6s ease-in-out infinite;transform-origin:50% 90%;
}
.site-header .header-cta .btn-card:hover i:nth-child(1){rotate:-28deg;translate:-14px 0}
.site-header .header-cta .btn-card:hover i:nth-child(2){rotate:26deg;translate:14px 0}
.site-header .header-cta .btn-card:hover b,
.site-header .header-cta .btn-card:focus-visible b{animation-play-state:paused;background:var(--c3);color:#0D0B14;translate:0 -6px}
.site-header .header-cta .btn-card:focus-visible{outline:3px solid #fff;outline-offset:4px}
@keyframes card-wobble{0%,100%{rotate:0deg}15%{rotate:-8deg}35%{rotate:7deg}55%{rotate:-4deg}75%{rotate:2deg}}

/* smaller desktops: smaller cards */
@media (min-width:1101px) and (max-width:1280px){
  .site-header .main-nav li a{width:84px;height:86px}
  .site-header .main-nav .card-l{font-size:9.5px}
  .site-header .main-nav .card-l.is-long{font-size:7.6px}
  .site-header .brand img{height:72px}
}

/* tablet / phone: the menu opens as a stack of full-width cards */
@media (max-width:1100px){
  .site-header-wrap{padding:0 16px}
  .site-header{padding:14px 0;border-radius:0}
  .site-header .brand img{height:64px}
  .site-header .nav-panel{flex:1 0 100%}
  .site-header .main-nav ul{flex-direction:column;gap:8px;padding:0}
  .site-header .main-nav li,.site-header .main-nav li:first-child{margin-left:0}
  .site-header .main-nav li a,
  .site-header .main-nav li a:hover,
  .site-header .main-nav li a:focus-visible,
  .site-header .main-nav li a[aria-current="page"]{
    flex-direction:row;align-items:center;gap:14px;width:100%;height:54px;padding:0 18px;rotate:0deg;translate:0 0;
  }
  .site-header .main-nav .card-l{font-size:14px;letter-spacing:.02em;order:2}
  .site-header .main-nav .card-l.is-long{font-size:14px}
  .site-header .main-nav .card-mt{position:static;margin-left:auto;order:3}
  .site-header .header-cta .btn-card{margin:6px auto}

}
@media (prefers-reduced-motion:reduce){
  .site-header .header-cta .btn-card b{animation:none}
  .site-header .main-nav li a{transition:none}
}

/* Paragraph / body font for the whole site: Plus Jakarta Sans (headings stay Syne) */
:root{--body-font:'Plus Jakarta Sans','DM Sans',system-ui,sans-serif}
body,button,input,select,textarea,.btn,.site-footer,.footer-contact,.footer-social,
.drawer-pop-share,.drawer-pop-close,.drawer-pop-head,.drawer-pop-author,.drawer-mini-head,.drawer-mini-author{font-family:var(--body-font)}
p,li,blockquote{letter-spacing:.005em}
p{line-height:1.65}

/* hero: breathing room between the paragraph and the buttons */
.hero-lead{margin:0 0 32px;line-height:1.65}

/* brand mark takes the theme's main colour */
.brand-mark{color:var(--c1)}

/* Main headings: Zilla Slab, a slab serif in the spirit of the logo lettering */
h1,.aw-title,.cl-title{font-family:'Zilla Slab',Georgia,serif;font-weight:700;letter-spacing:.01em;line-height:1.05}

/* All buttons: shaped like the site's cards (rounded rectangle, bevel, small tilt, lifts straight on hover) */
.btn{
  border-radius:14px;min-height:48px;padding:0 24px;
  rotate:-1.5deg;
  box-shadow:-2px 3px 8px rgba(0,0,0,.4),inset 0 2px 0 rgba(255,255,255,.35);
  transition:translate .25s cubic-bezier(.3,1.6,.5,1),rotate .25s ease,box-shadow .25s ease,background-color .2s ease,color .2s ease,border-color .2s ease;
}
.btn:hover,.btn:focus-visible{rotate:0deg;translate:0 -4px;box-shadow:0 14px 20px -10px rgba(0,0,0,.6),inset 0 2px 0 rgba(255,255,255,.45)}
.btn-lg{min-height:58px;padding:0 32px;border-radius:16px}
.btn-sm{border-radius:12px}
.btn-outline,.btn-outline-dark{border-width:2px}
.btn-outline{box-shadow:-2px 3px 8px rgba(0,0,0,.35)}
/* the header's Daily Card deck keeps its own shape */
.site-header .header-cta .btn-card{rotate:0deg;translate:none;box-shadow:none}
.site-header .header-cta .btn-card:hover,.site-header .header-cta .btn-card:focus-visible{translate:none;box-shadow:none}
@media (prefers-reduced-motion:reduce){.btn{transition:none;rotate:0deg}.btn:hover,.btn:focus-visible{translate:none}}

/* the bottom of the sticky header fades out into transparency, so content scrolling underneath dissolves softly */
.site-header-wrap{background:var(--bg)}
.site-header-wrap::after{
  content:"";position:absolute;left:0;right:0;top:100%;height:56px;pointer-events:none;
  background:linear-gradient(to bottom,var(--bg) 0%,rgba(13,11,20,.82) 25%,rgba(13,11,20,.45) 55%,rgba(13,11,20,.12) 85%,rgba(13,11,20,0) 100%);
}

/* pills become cards too: topic chips, deadline badge, share button, social buttons, preview switches */
.chips li{
  border-radius:10px;padding:9px 16px;font-weight:700;color:#0D0B14;background:var(--c1);
  rotate:-2deg;box-shadow:-2px 3px 6px rgba(0,0,0,.4),inset 0 2px 0 rgba(255,255,255,.4);
  transition:translate .25s cubic-bezier(.3,1.6,.5,1),rotate .25s ease;
}
.chips li:nth-child(5n+2){background:var(--c2);rotate:1.5deg}
.chips li:nth-child(5n+3){background:var(--c3);rotate:-1deg}
.chips li:nth-child(5n+4){background:var(--c4);rotate:2deg}
.chips li:nth-child(5n+5){background:var(--c5);rotate:-1.5deg}
.chips li:hover{rotate:0deg;translate:0 -4px}
.aw-deadline{border-radius:12px!important;rotate:-1.5deg;box-shadow:-2px 3px 6px rgba(0,0,0,.4),inset 0 2px 0 rgba(255,255,255,.4)}
.drawer-pop-share{border-radius:12px;box-shadow:-2px 3px 8px rgba(0,0,0,.4),inset 0 2px 0 rgba(255,255,255,.4)}
.social-links a,.alt-note,.alt-switch a{border-radius:12px}
@media (prefers-reduced-motion:reduce){.chips li{rotate:0deg;transition:none}.chips li:hover{translate:none}}

/* top bar: rotating messages (left), contact (middle), Nominate (right) */
.topbar-in{flex-wrap:nowrap}
.topbar-rotator{list-style:none;margin:0;padding:0;display:grid;flex:1 1 0;min-width:0}
.topbar-rotator li{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s linear .5s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-rotator li.is-on{opacity:1;visibility:visible;transition:opacity .5s ease}
.topbar-contact{flex:none}
.topbar-pull{flex:none}
@media (max-width:900px){
  .topbar-in{flex-wrap:wrap;justify-content:center;text-align:center}
  .topbar-rotator{flex:1 1 100%}
  .topbar-rotator li{white-space:normal}
  .topbar-pull{display:inline}
}
@media (prefers-reduced-motion:reduce){.topbar-rotator li{transition:none}}

/* Podcast section: cover art as a card, and categories in four colours taken from the cover */
.podcast-cover{display:block;border-radius:18px;overflow:hidden;rotate:-1.5deg;
  box-shadow:-4px 6px 16px rgba(0,0,0,.5),0 0 0 2px #F2A93B;
  transition:rotate .3s ease,translate .3s cubic-bezier(.3,1.6,.5,1),box-shadow .3s ease}
.podcast-cover img{display:block;width:100%;height:auto}
.podcast-cover:hover,.podcast-cover:focus-visible{rotate:0deg;translate:0 -6px;box-shadow:0 22px 30px -12px rgba(242,169,59,.55),0 0 0 2px #F2A93B}
.podcast-cover:focus-visible{outline:3px solid #fff;outline-offset:3px}
.podcast-art{overflow:hidden;background:#F2A93B}
.podcast-art img{display:block;width:100%;height:100%;object-fit:cover}
.podcast-text .chips li{color:#0D0B14}
.podcast-text .chips li:nth-child(4n+1){background:#F2A93B}   /* gold */
.podcast-text .chips li:nth-child(4n+2){background:#E8503A}   /* red-orange */
.podcast-text .chips li:nth-child(4n+3){background:#E5599A}   /* magenta */
.podcast-text .chips li:nth-child(4n+4){background:#2FB3C9}   /* teal */
@media (prefers-reduced-motion:reduce){.podcast-cover{rotate:0deg;transition:none}.podcast-cover:hover{translate:none}}

/* podcast panel: text centred beside the taller cover */
.podcast-panel{align-items:center}

/* top bar: the gradient flows through the full range of brand colours, one complete loop every 10 seconds */
.topbar{
  background:linear-gradient(90deg,var(--c1),var(--c2),var(--c3),var(--c4),var(--c5),var(--c1));
  background-size:200% 100%;
  animation:topbar-flow 10s linear infinite;
}
@keyframes topbar-flow{from{background-position-x:0%}to{background-position-x:200%}}
@media (prefers-reduced-motion:reduce){
  .topbar{animation:none;background:linear-gradient(90deg,var(--c1),var(--c2) 35%,var(--c3) 70%,var(--c4))}
}

/* podcast: more air between the categories and the Spotify row, and a pulsing play triangle */
.podcast-text .chips{margin-bottom:0}
.podcast-text .podcast-row{margin-top:44px}
#podcast{scroll-margin-top:150px}
.podcast-ep{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--c3);color:#0D0B14;font-size:16px;padding-left:3px;
  animation:play-pulse 1.8s ease-out infinite}
.podcast-row:hover .podcast-ep,.podcast-row:focus-visible .podcast-ep{animation-duration:.9s;scale:1.1}
@keyframes play-pulse{
  0%{box-shadow:0 0 0 0 rgba(var(--c3-rgb),.7)}
  70%,100%{box-shadow:0 0 0 18px rgba(var(--c3-rgb),0)}
}

/* animated play button on the book video */
.bf-play{position:absolute;z-index:3;left:50%;top:50%;translate:-50% -50%;width:84px;height:84px;padding:0 0 0 5px;border:0;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;color:#0D0B14;
  background:linear-gradient(135deg,var(--c3),var(--c2));
  box-shadow:0 10px 30px rgba(0,0,0,.55),inset 0 2px 0 rgba(255,255,255,.5);
  animation:bf-play-bob 2.4s ease-in-out infinite;
  transition:scale .2s ease,opacity .25s ease,visibility 0s}
.bf-play-icon{position:relative;z-index:1}
.bf-play-ring{position:absolute;inset:0;border-radius:50%;border:3px solid var(--c3);animation:bf-ring 2s ease-out infinite;pointer-events:none}
.bf-play-ring2{animation-delay:1s;border-color:var(--c1)}
.bf-play:hover,.bf-play:focus-visible{scale:1.12}
.bf-play:focus-visible{outline:3px solid #fff;outline-offset:4px}
.bf-frame.is-playing .bf-play{opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s linear .25s}
@keyframes bf-ring{0%{transform:scale(1);opacity:.9}100%{transform:scale(2.1);opacity:0}}
@keyframes bf-play-bob{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@media (prefers-reduced-motion:reduce){.podcast-ep,.bf-play,.bf-play-ring{animation:none}.bf-play-ring{display:none}}

/* section heading with its button on the same line (Latest news + All news) */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap}
.section-head .mid-title{margin-bottom:0}
.section-head .btn{margin-bottom:6px}
.a2-fan-wrap .section-head{margin-bottom:28px}

/* Latest news on the home page: two per row on phones */
@media (max-width:799px){
  .a2-fan{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .a2-fan .news-card{border-radius:20px}
  .a2-fan .news-body{padding:12px 14px 16px;gap:6px}
  .a2-fan .news-title{font-size:15px}
  .a2-fan .news-excerpt{font-size:13px}
  .a2-fan .news-source,.a2-fan .news-more{font-size:12px}
}


/* Women in iGaming card: group photo, tilted the other way and blended into the black */
.book-cover{position:relative;overflow:hidden;isolation:isolate}
.book-cover-photo{position:absolute;z-index:-1;inset:-10% -55%;display:block;rotate:-7deg;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.15) 0%,#000 28%,#000 52%,rgba(0,0,0,.2) 82%,transparent 100%);
          mask-image:linear-gradient(180deg,rgba(0,0,0,.15) 0%,#000 28%,#000 52%,rgba(0,0,0,.2) 82%,transparent 100%)}
.book-cover-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:42% 55%;opacity:.8;filter:saturate(.9) contrast(1.05)}
.book-cover::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(13,11,20,.55) 0%,rgba(13,11,20,0) 30%,rgba(13,11,20,0) 45%,rgba(13,11,20,.88) 85%,var(--bg) 100%),
             radial-gradient(120% 90% at 50% 50%,transparent 55%,rgba(13,11,20,.9) 100%)}
.book-cover-label{position:relative;z-index:1;text-shadow:0 2px 14px rgba(13,11,20,.9)}
.book-cover-label{font-size:.74em;line-height:1.05;max-width:100%;overflow-wrap:anywhere}

/* top bar without the contact details: messages left, Nominate right */
.topbar-rotator{flex:1 1 auto}

/* phones and tablets: no top bar (the menu button and Daily Card are enough up there) */
@media (max-width:900px){.topbar{display:none}}

/* open phone menu: compact cards, and it scrolls inside itself when taller than the screen */
@media (max-width:1100px){
  .site-header .nav-panel.is-open{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:20px}
  .site-header .main-nav ul{gap:6px}
  .site-header .main-nav li a,
  .site-header .main-nav li a:hover,
  .site-header .main-nav li a:focus-visible,
  .site-header .main-nav li a[aria-current="page"]{height:48px}
}

/* no sideways scrolling, and a narrower desktop (1101-1180px) gets smaller cards so nothing spills out */
html,body{overflow-x:clip}
@media (min-width:1101px) and (max-width:1180px){
  .site-header .main-nav li a{width:80px;height:82px;padding:8px 7px}
  .site-header .main-nav .card-l{font-size:8.4px}
  .site-header .main-nav .card-l.is-long{font-size:6.4px}
  .site-header .main-nav .card-mt{width:14px;height:14px;right:6px}
  .site-header .brand img{height:60px}
  .site-header{gap:12px}
}
/* home hero keeps the original Syne headline */
.a2-hero-text h1{font-family:'Syne',sans-serif;font-weight:800;letter-spacing:-.03em;line-height:.95}
